@chamn/render 0.0.29 → 0.0.31
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/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1209 -1216
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +5 -5
- package/dist/index.umd.js.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
"use strict";var ga=Object.defineProperty;var ya=(t,e,r)=>e in t?ga(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var y=(t,e,r)=>(ya(t,typeof e!="symbol"?e+"":e,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react"),ba=require("react-dom");function _a(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const Sa=_a(ba),ja=t=>()=>{console.warn(`${t} need to be implement getComponent`)},Oa=["customPageRootRender"],Ur=["pageRender","render","convertModelToComponent","getComponent","getContext","getUtils","getDataLink","createDataLink","transformProps","transformData","transformGlobalData","errorCatch","clear"],Fn=t=>[...Ur,...Oa].reduce((r,n)=>{var o;return t!=null&&t[n]?r[n]=(o=t[n])==null?void 0:o.bind(t):Ur.includes(n)&&(r[n]=ja),r},{});var wa=Object.defineProperty,Ca=(t,e,r)=>e in t?wa(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,_=(t,e,r)=>(Ca(t,typeof e!="symbol"?e+"":e,r),r),Ea=typeof global=="object"&&global&&global.Object===Object&&global;const Bn=Ea;var $a=typeof self=="object"&&self&&self.Object===Object&&self,Na=Bn||$a||Function("return this")();const X=Na;var Ta=X.Symbol;const V=Ta;var Un=Object.prototype,xa=Un.hasOwnProperty,Aa=Un.toString,kt=V?V.toStringTag:void 0;function Ma(t){var e=xa.call(t,kt),r=t[kt];try{t[kt]=void 0;var n=!0}catch{}var o=Aa.call(t);return n&&(e?t[kt]=r:delete t[kt]),o}var Pa=Object.prototype,Ra=Pa.toString;function Da(t){return Ra.call(t)}var Ia="[object Null]",La="[object Undefined]",kr=V?V.toStringTag:void 0;function mt(t){return t==null?t===void 0?La:Ia:kr&&kr in Object(t)?Ma(t):Da(t)}function K(t){return t!=null&&typeof t=="object"}var Fa="[object Symbol]";function or(t){return typeof t=="symbol"||K(t)&&mt(t)==Fa}function ar(t,e){for(var r=-1,n=t==null?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}var Ba=Array.isArray;const R=Ba;var Ua=1/0,Vr=V?V.prototype:void 0,zr=Vr?Vr.toString:void 0;function kn(t){if(typeof t=="string")return t;if(R(t))return ar(t,kn)+"";if(or(t))return zr?zr.call(t):"";var e=t+"";return e=="0"&&1/t==-Ua?"-0":e}function J(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function sr(t){return t}var ka="[object AsyncFunction]",Va="[object Function]",za="[object GeneratorFunction]",Ga="[object Proxy]";function ir(t){if(!J(t))return!1;var e=mt(t);return e==Va||e==za||e==ka||e==Ga}var Ha=X["__core-js_shared__"];const Ae=Ha;var Gr=function(){var t=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Wa(t){return!!Gr&&Gr in t}var Ja=Function.prototype,Qa=Ja.toString;function gt(t){if(t!=null){try{return Qa.call(t)}catch{}try{return t+""}catch{}}return""}var qa=/[\\^$.*+?()[\]{}|]/g,Ya=/^\[object .+?Constructor\]$/,Ka=Function.prototype,Xa=Object.prototype,Za=Ka.toString,ts=Xa.hasOwnProperty,es=RegExp("^"+Za.call(ts).replace(qa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function rs(t){if(!J(t)||Wa(t))return!1;var e=ir(t)?es:Ya;return e.test(gt(t))}function ns(t,e){return t==null?void 0:t[e]}function yt(t,e){var r=ns(t,e);return rs(r)?r:void 0}var os=yt(X,"WeakMap");const Be=os;var Hr=Object.create,as=function(){function t(){}return function(e){if(!J(e))return{};if(Hr)return Hr(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();const ss=as;function is(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function cs(){}function Vn(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}var us=800,ls=16,fs=Date.now;function ps(t){var e=0,r=0;return function(){var n=fs(),o=ls-(n-r);if(r=n,o>0){if(++e>=us)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function ds(t){return function(){return t}}var hs=function(){try{var t=yt(Object,"defineProperty");return t({},"",{}),t}catch{}}();const fe=hs;var vs=fe?function(t,e){return fe(t,"toString",{configurable:!0,enumerable:!1,value:ds(e),writable:!0})}:sr;const ms=vs;var gs=ps(ms);const zn=gs;function ys(t,e){for(var r=-1,n=t==null?0:t.length;++r<n&&e(t[r],r,t)!==!1;);return t}function bs(t,e,r,n){for(var o=t.length,a=r+(n?1:-1);n?a--:++a<o;)if(e(t[a],a,t))return a;return-1}function _s(t){return t!==t}function Ss(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}function js(t,e,r){return e===e?Ss(t,e,r):bs(t,_s,r)}function Os(t,e){var r=t==null?0:t.length;return!!r&&js(t,e,0)>-1}var ws=9007199254740991,Cs=/^(?:0|[1-9]\d*)$/;function me(t,e){var r=typeof t;return e=e??ws,!!e&&(r=="number"||r!="symbol"&&Cs.test(t))&&t>-1&&t%1==0&&t<e}function cr(t,e,r){e=="__proto__"&&fe?fe(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function ee(t,e){return t===e||t!==t&&e!==e}var Es=Object.prototype,$s=Es.hasOwnProperty;function ur(t,e,r){var n=t[e];(!($s.call(t,e)&&ee(n,r))||r===void 0&&!(e in t))&&cr(t,e,r)}function Tt(t,e,r,n){var o=!r;r||(r={});for(var a=-1,i=e.length;++a<i;){var s=e[a],c=n?n(r[s],t[s],s,r,t):void 0;c===void 0&&(c=t[s]),o?cr(r,s,c):ur(r,s,c)}return r}var Wr=Math.max;function Gn(t,e,r){return e=Wr(e===void 0?t.length-1:e,0),function(){for(var n=arguments,o=-1,a=Wr(n.length-e,0),i=Array(a);++o<a;)i[o]=n[e+o];o=-1;for(var s=Array(e+1);++o<e;)s[o]=n[o];return s[e]=r(i),is(t,this,s)}}function Hn(t,e){return zn(Gn(t,e,sr),t+"")}var Ns=9007199254740991;function lr(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Ns}function ge(t){return t!=null&&lr(t.length)&&!ir(t)}function Ts(t,e,r){if(!J(r))return!1;var n=typeof e;return(n=="number"?ge(r)&&me(e,r.length):n=="string"&&e in r)?ee(r[e],t):!1}function xs(t){return Hn(function(e,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=t.length>3&&typeof a=="function"?(o--,a):void 0,i&&Ts(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),e=Object(e);++n<o;){var s=r[n];s&&t(e,s,n,a)}return e})}var As=Object.prototype;function fr(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||As;return t===r}function Ms(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var Ps="[object Arguments]";function Jr(t){return K(t)&&mt(t)==Ps}var Wn=Object.prototype,Rs=Wn.hasOwnProperty,Ds=Wn.propertyIsEnumerable,Is=Jr(function(){return arguments}())?Jr:function(t){return K(t)&&Rs.call(t,"callee")&&!Ds.call(t,"callee")};const Jt=Is;function Ls(){return!1}var Jn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Qr=Jn&&typeof module=="object"&&module&&!module.nodeType&&module,Fs=Qr&&Qr.exports===Jn,qr=Fs?X.Buffer:void 0,Bs=qr?qr.isBuffer:void 0,Us=Bs||Ls;const Qt=Us;var ks="[object Arguments]",Vs="[object Array]",zs="[object Boolean]",Gs="[object Date]",Hs="[object Error]",Ws="[object Function]",Js="[object Map]",Qs="[object Number]",qs="[object Object]",Ys="[object RegExp]",Ks="[object Set]",Xs="[object String]",Zs="[object WeakMap]",ti="[object ArrayBuffer]",ei="[object DataView]",ri="[object Float32Array]",ni="[object Float64Array]",oi="[object Int8Array]",ai="[object Int16Array]",si="[object Int32Array]",ii="[object Uint8Array]",ci="[object Uint8ClampedArray]",ui="[object Uint16Array]",li="[object Uint32Array]",N={};N[ri]=N[ni]=N[oi]=N[ai]=N[si]=N[ii]=N[ci]=N[ui]=N[li]=!0;N[ks]=N[Vs]=N[ti]=N[zs]=N[ei]=N[Gs]=N[Hs]=N[Ws]=N[Js]=N[Qs]=N[qs]=N[Ys]=N[Ks]=N[Xs]=N[Zs]=!1;function fi(t){return K(t)&&lr(t.length)&&!!N[mt(t)]}function pr(t){return function(e){return t(e)}}var Qn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zt=Qn&&typeof module=="object"&&module&&!module.nodeType&&module,pi=zt&&zt.exports===Qn,Me=pi&&Bn.process,di=function(){try{var t=zt&&zt.require&&zt.require("util").types;return t||Me&&Me.binding&&Me.binding("util")}catch{}}();const jt=di;var Yr=jt&&jt.isTypedArray,hi=Yr?pr(Yr):fi;const dr=hi;var vi=Object.prototype,mi=vi.hasOwnProperty;function qn(t,e){var r=R(t),n=!r&&Jt(t),o=!r&&!n&&Qt(t),a=!r&&!n&&!o&&dr(t),i=r||n||o||a,s=i?Ms(t.length,String):[],c=s.length;for(var u in t)(e||mi.call(t,u))&&!(i&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||me(u,c)))&&s.push(u);return s}function Yn(t,e){return function(r){return t(e(r))}}var gi=Yn(Object.keys,Object);const yi=gi;var bi=Object.prototype,_i=bi.hasOwnProperty;function Si(t){if(!fr(t))return yi(t);var e=[];for(var r in Object(t))_i.call(t,r)&&r!="constructor"&&e.push(r);return e}function ye(t){return ge(t)?qn(t):Si(t)}function ji(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var Oi=Object.prototype,wi=Oi.hasOwnProperty;function Ci(t){if(!J(t))return ji(t);var e=fr(t),r=[];for(var n in t)n=="constructor"&&(e||!wi.call(t,n))||r.push(n);return r}function re(t){return ge(t)?qn(t,!0):Ci(t)}var Ei=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$i=/^\w*$/;function hr(t,e){if(R(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||or(t)?!0:$i.test(t)||!Ei.test(t)||e!=null&&t in Object(e)}var Ni=yt(Object,"create");const qt=Ni;function Ti(){this.__data__=qt?qt(null):{},this.size=0}function xi(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Ai="__lodash_hash_undefined__",Mi=Object.prototype,Pi=Mi.hasOwnProperty;function Ri(t){var e=this.__data__;if(qt){var r=e[t];return r===Ai?void 0:r}return Pi.call(e,t)?e[t]:void 0}var Di=Object.prototype,Ii=Di.hasOwnProperty;function Li(t){var e=this.__data__;return qt?e[t]!==void 0:Ii.call(e,t)}var Fi="__lodash_hash_undefined__";function Bi(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=qt&&e===void 0?Fi:e,this}function pt(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}pt.prototype.clear=Ti;pt.prototype.delete=xi;pt.prototype.get=Ri;pt.prototype.has=Li;pt.prototype.set=Bi;function Ui(){this.__data__=[],this.size=0}function be(t,e){for(var r=t.length;r--;)if(ee(t[r][0],e))return r;return-1}var ki=Array.prototype,Vi=ki.splice;function zi(t){var e=this.__data__,r=be(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():Vi.call(e,r,1),--this.size,!0}function Gi(t){var e=this.__data__,r=be(e,t);return r<0?void 0:e[r][1]}function Hi(t){return be(this.__data__,t)>-1}function Wi(t,e){var r=this.__data__,n=be(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function et(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}et.prototype.clear=Ui;et.prototype.delete=zi;et.prototype.get=Gi;et.prototype.has=Hi;et.prototype.set=Wi;var Ji=yt(X,"Map");const Yt=Ji;function Qi(){this.size=0,this.__data__={hash:new pt,map:new(Yt||et),string:new pt}}function qi(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function _e(t,e){var r=t.__data__;return qi(e)?r[typeof e=="string"?"string":"hash"]:r.map}function Yi(t){var e=_e(this,t).delete(t);return this.size-=e?1:0,e}function Ki(t){return _e(this,t).get(t)}function Xi(t){return _e(this,t).has(t)}function Zi(t,e){var r=_e(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}function rt(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}rt.prototype.clear=Qi;rt.prototype.delete=Yi;rt.prototype.get=Ki;rt.prototype.has=Xi;rt.prototype.set=Zi;var tc="Expected a function";function vr(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(tc);var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=t.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(vr.Cache||rt),r}vr.Cache=rt;var ec=500;function rc(t){var e=vr(t,function(n){return r.size===ec&&r.clear(),n}),r=e.cache;return e}var nc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oc=/\\(\\)?/g,ac=rc(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(nc,function(r,n,o,a){e.push(o?a.replace(oc,"$1"):n||r)}),e});const sc=ac;function ic(t){return t==null?"":kn(t)}function xt(t,e){return R(t)?t:hr(t,e)?[t]:sc(ic(t))}var cc=1/0;function At(t){if(typeof t=="string"||or(t))return t;var e=t+"";return e=="0"&&1/t==-cc?"-0":e}function Se(t,e){e=xt(e,t);for(var r=0,n=e.length;t!=null&&r<n;)t=t[At(e[r++])];return r&&r==n?t:void 0}function Kn(t,e,r){var n=t==null?void 0:Se(t,e);return n===void 0?r:n}function mr(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}var Kr=V?V.isConcatSpreadable:void 0;function uc(t){return R(t)||Jt(t)||!!(Kr&&t&&t[Kr])}function gr(t,e,r,n,o){var a=-1,i=t.length;for(r||(r=uc),o||(o=[]);++a<i;){var s=t[a];e>0&&r(s)?e>1?gr(s,e-1,r,n,o):mr(o,s):n||(o[o.length]=s)}return o}function lc(t){var e=t==null?0:t.length;return e?gr(t,1):[]}function fc(t){return zn(Gn(t,void 0,lc),t+"")}var pc=Yn(Object.getPrototypeOf,Object);const yr=pc;var dc="[object Object]",hc=Function.prototype,vc=Object.prototype,Xn=hc.toString,mc=vc.hasOwnProperty,gc=Xn.call(Object);function B(t){if(!K(t)||mt(t)!=dc)return!1;var e=yr(t);if(e===null)return!0;var r=mc.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Xn.call(r)==gc}function yc(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),r=r>o?o:r,r<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var a=Array(o);++n<o;)a[n]=t[n+e];return a}function bc(){this.__data__=new et,this.size=0}function _c(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}function Sc(t){return this.__data__.get(t)}function jc(t){return this.__data__.has(t)}var Oc=200;function wc(t,e){var r=this.__data__;if(r instanceof et){var n=r.__data__;if(!Yt||n.length<Oc-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new rt(n)}return r.set(t,e),this.size=r.size,this}function H(t){var e=this.__data__=new et(t);this.size=e.size}H.prototype.clear=bc;H.prototype.delete=_c;H.prototype.get=Sc;H.prototype.has=jc;H.prototype.set=wc;function Cc(t,e){return t&&Tt(e,ye(e),t)}function Ec(t,e){return t&&Tt(e,re(e),t)}var Zn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Xr=Zn&&typeof module=="object"&&module&&!module.nodeType&&module,$c=Xr&&Xr.exports===Zn,Zr=$c?X.Buffer:void 0,tn=Zr?Zr.allocUnsafe:void 0;function to(t,e){if(e)return t.slice();var r=t.length,n=tn?tn(r):new t.constructor(r);return t.copy(n),n}function Nc(t,e){for(var r=-1,n=t==null?0:t.length,o=0,a=[];++r<n;){var i=t[r];e(i,r,t)&&(a[o++]=i)}return a}function eo(){return[]}var Tc=Object.prototype,xc=Tc.propertyIsEnumerable,en=Object.getOwnPropertySymbols,Ac=en?function(t){return t==null?[]:(t=Object(t),Nc(en(t),function(e){return xc.call(t,e)}))}:eo;const br=Ac;function Mc(t,e){return Tt(t,br(t),e)}var Pc=Object.getOwnPropertySymbols,Rc=Pc?function(t){for(var e=[];t;)mr(e,br(t)),t=yr(t);return e}:eo;const ro=Rc;function Dc(t,e){return Tt(t,ro(t),e)}function no(t,e,r){var n=e(t);return R(t)?n:mr(n,r(t))}function Ue(t){return no(t,ye,br)}function _r(t){return no(t,re,ro)}var Ic=yt(X,"DataView");const ke=Ic;var Lc=yt(X,"Promise");const Ve=Lc;var Fc=yt(X,"Set");const St=Fc;var rn="[object Map]",Bc="[object Object]",nn="[object Promise]",on="[object Set]",an="[object WeakMap]",sn="[object DataView]",Uc=gt(ke),kc=gt(Yt),Vc=gt(Ve),zc=gt(St),Gc=gt(Be),lt=mt;(ke&<(new ke(new ArrayBuffer(1)))!=sn||Yt&<(new Yt)!=rn||Ve&<(Ve.resolve())!=nn||St&<(new St)!=on||Be&<(new Be)!=an)&&(lt=function(t){var e=mt(t),r=e==Bc?t.constructor:void 0,n=r?gt(r):"";if(n)switch(n){case Uc:return sn;case kc:return rn;case Vc:return nn;case zc:return on;case Gc:return an}return e});const Kt=lt;var Hc=Object.prototype,Wc=Hc.hasOwnProperty;function Jc(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&Wc.call(t,"index")&&(r.index=t.index,r.input=t.input),r}var Qc=X.Uint8Array;const pe=Qc;function Sr(t){var e=new t.constructor(t.byteLength);return new pe(e).set(new pe(t)),e}function qc(t,e){var r=e?Sr(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}var Yc=/\w*$/;function Kc(t){var e=new t.constructor(t.source,Yc.exec(t));return e.lastIndex=t.lastIndex,e}var cn=V?V.prototype:void 0,un=cn?cn.valueOf:void 0;function Xc(t){return un?Object(un.call(t)):{}}function oo(t,e){var r=e?Sr(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var Zc="[object Boolean]",tu="[object Date]",eu="[object Map]",ru="[object Number]",nu="[object RegExp]",ou="[object Set]",au="[object String]",su="[object Symbol]",iu="[object ArrayBuffer]",cu="[object DataView]",uu="[object Float32Array]",lu="[object Float64Array]",fu="[object Int8Array]",pu="[object Int16Array]",du="[object Int32Array]",hu="[object Uint8Array]",vu="[object Uint8ClampedArray]",mu="[object Uint16Array]",gu="[object Uint32Array]";function yu(t,e,r){var n=t.constructor;switch(e){case iu:return Sr(t);case Zc:case tu:return new n(+t);case cu:return qc(t,r);case uu:case lu:case fu:case pu:case du:case hu:case vu:case mu:case gu:return oo(t,r);case eu:return new n;case ru:case au:return new n(t);case nu:return Kc(t);case ou:return new n;case su:return Xc(t)}}function ao(t){return typeof t.constructor=="function"&&!fr(t)?ss(yr(t)):{}}var bu="[object Map]";function _u(t){return K(t)&&Kt(t)==bu}var ln=jt&&jt.isMap,Su=ln?pr(ln):_u;const ju=Su;var Ou="[object Set]";function wu(t){return K(t)&&Kt(t)==Ou}var fn=jt&&jt.isSet,Cu=fn?pr(fn):wu;const Eu=Cu;var $u=1,Nu=2,Tu=4,so="[object Arguments]",xu="[object Array]",Au="[object Boolean]",Mu="[object Date]",Pu="[object Error]",io="[object Function]",Ru="[object GeneratorFunction]",Du="[object Map]",Iu="[object Number]",co="[object Object]",Lu="[object RegExp]",Fu="[object Set]",Bu="[object String]",Uu="[object Symbol]",ku="[object WeakMap]",Vu="[object ArrayBuffer]",zu="[object DataView]",Gu="[object Float32Array]",Hu="[object Float64Array]",Wu="[object Int8Array]",Ju="[object Int16Array]",Qu="[object Int32Array]",qu="[object Uint8Array]",Yu="[object Uint8ClampedArray]",Ku="[object Uint16Array]",Xu="[object Uint32Array]",C={};C[so]=C[xu]=C[Vu]=C[zu]=C[Au]=C[Mu]=C[Gu]=C[Hu]=C[Wu]=C[Ju]=C[Qu]=C[Du]=C[Iu]=C[co]=C[Lu]=C[Fu]=C[Bu]=C[Uu]=C[qu]=C[Yu]=C[Ku]=C[Xu]=!0;C[Pu]=C[io]=C[ku]=!1;function Gt(t,e,r,n,o,a){var i,s=e&$u,c=e&Nu,u=e&Tu;if(r&&(i=o?r(t,n,o,a):r(t)),i!==void 0)return i;if(!J(t))return t;var l=R(t);if(l){if(i=Jc(t),!s)return Vn(t,i)}else{var p=Kt(t),f=p==io||p==Ru;if(Qt(t))return to(t,s);if(p==co||p==so||f&&!o){if(i=c||f?{}:ao(t),!s)return c?Dc(t,Ec(i,t)):Mc(t,Cc(i,t))}else{if(!C[p])return o?t:{};i=yu(t,p,s)}}a||(a=new H);var d=a.get(t);if(d)return d;a.set(t,i),Eu(t)?t.forEach(function(b){i.add(Gt(b,e,r,b,t,a))}):ju(t)&&t.forEach(function(b,j){i.set(j,Gt(b,e,r,j,t,a))});var h=u?c?_r:Ue:c?re:ye,g=l?void 0:h(t);return ys(g||t,function(b,j){g&&(j=b,b=t[j]),ur(i,j,Gt(b,e,r,j,t,a))}),i}var Zu=1,tl=4;function uo(t){return Gt(t,Zu|tl)}var el="__lodash_hash_undefined__";function rl(t){return this.__data__.set(t,el),this}function nl(t){return this.__data__.has(t)}function Xt(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new rt;++e<r;)this.add(t[e])}Xt.prototype.add=Xt.prototype.push=rl;Xt.prototype.has=nl;function ol(t,e){for(var r=-1,n=t==null?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function lo(t,e){return t.has(e)}var al=1,sl=2;function fo(t,e,r,n,o,a){var i=r&al,s=t.length,c=e.length;if(s!=c&&!(i&&c>s))return!1;var u=a.get(t),l=a.get(e);if(u&&l)return u==e&&l==t;var p=-1,f=!0,d=r&sl?new Xt:void 0;for(a.set(t,e),a.set(e,t);++p<s;){var h=t[p],g=e[p];if(n)var b=i?n(g,h,p,e,t,a):n(h,g,p,t,e,a);if(b!==void 0){if(b)continue;f=!1;break}if(d){if(!ol(e,function(j,O){if(!lo(d,O)&&(h===j||o(h,j,r,n,a)))return d.push(O)})){f=!1;break}}else if(!(h===g||o(h,g,r,n,a))){f=!1;break}}return a.delete(t),a.delete(e),f}function il(t){var e=-1,r=Array(t.size);return t.forEach(function(n,o){r[++e]=[o,n]}),r}function jr(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var cl=1,ul=2,ll="[object Boolean]",fl="[object Date]",pl="[object Error]",dl="[object Map]",hl="[object Number]",vl="[object RegExp]",ml="[object Set]",gl="[object String]",yl="[object Symbol]",bl="[object ArrayBuffer]",_l="[object DataView]",pn=V?V.prototype:void 0,Pe=pn?pn.valueOf:void 0;function Sl(t,e,r,n,o,a,i){switch(r){case _l:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case bl:return!(t.byteLength!=e.byteLength||!a(new pe(t),new pe(e)));case ll:case fl:case hl:return ee(+t,+e);case pl:return t.name==e.name&&t.message==e.message;case vl:case gl:return t==e+"";case dl:var s=il;case ml:var c=n&cl;if(s||(s=jr),t.size!=e.size&&!c)return!1;var u=i.get(t);if(u)return u==e;n|=ul,i.set(t,e);var l=fo(s(t),s(e),n,o,a,i);return i.delete(t),l;case yl:if(Pe)return Pe.call(t)==Pe.call(e)}return!1}var jl=1,Ol=Object.prototype,wl=Ol.hasOwnProperty;function Cl(t,e,r,n,o,a){var i=r&jl,s=Ue(t),c=s.length,u=Ue(e),l=u.length;if(c!=l&&!i)return!1;for(var p=c;p--;){var f=s[p];if(!(i?f in e:wl.call(e,f)))return!1}var d=a.get(t),h=a.get(e);if(d&&h)return d==e&&h==t;var g=!0;a.set(t,e),a.set(e,t);for(var b=i;++p<c;){f=s[p];var j=t[f],O=e[f];if(n)var x=i?n(O,j,f,e,t,a):n(j,O,f,t,e,a);if(!(x===void 0?j===O||o(j,O,r,n,a):x)){g=!1;break}b||(b=f=="constructor")}if(g&&!b){var E=t.constructor,I=e.constructor;E!=I&&"constructor"in t&&"constructor"in e&&!(typeof E=="function"&&E instanceof E&&typeof I=="function"&&I instanceof I)&&(g=!1)}return a.delete(t),a.delete(e),g}var El=1,dn="[object Arguments]",hn="[object Array]",ce="[object Object]",$l=Object.prototype,vn=$l.hasOwnProperty;function Nl(t,e,r,n,o,a){var i=R(t),s=R(e),c=i?hn:Kt(t),u=s?hn:Kt(e);c=c==dn?ce:c,u=u==dn?ce:u;var l=c==ce,p=u==ce,f=c==u;if(f&&Qt(t)){if(!Qt(e))return!1;i=!0,l=!1}if(f&&!l)return a||(a=new H),i||dr(t)?fo(t,e,r,n,o,a):Sl(t,e,c,r,n,o,a);if(!(r&El)){var d=l&&vn.call(t,"__wrapped__"),h=p&&vn.call(e,"__wrapped__");if(d||h){var g=d?t.value():t,b=h?e.value():e;return a||(a=new H),o(g,b,r,n,a)}}return f?(a||(a=new H),Cl(t,e,r,n,o,a)):!1}function Or(t,e,r,n,o){return t===e?!0:t==null||e==null||!K(t)&&!K(e)?t!==t&&e!==e:Nl(t,e,r,n,Or,o)}var Tl=1,xl=2;function Al(t,e,r,n){var o=r.length,a=o,i=!n;if(t==null)return!a;for(t=Object(t);o--;){var s=r[o];if(i&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++o<a;){s=r[o];var c=s[0],u=t[c],l=s[1];if(i&&s[2]){if(u===void 0&&!(c in t))return!1}else{var p=new H;if(n)var f=n(u,l,c,t,e,p);if(!(f===void 0?Or(l,u,Tl|xl,n,p):f))return!1}}return!0}function po(t){return t===t&&!J(t)}function Ml(t){for(var e=ye(t),r=e.length;r--;){var n=e[r],o=t[n];e[r]=[n,o,po(o)]}return e}function ho(t,e){return function(r){return r==null?!1:r[t]===e&&(e!==void 0||t in Object(r))}}function Pl(t){var e=Ml(t);return e.length==1&&e[0][2]?ho(e[0][0],e[0][1]):function(r){return r===t||Al(r,t,e)}}function Rl(t,e){return t!=null&&e in Object(t)}function Dl(t,e,r){e=xt(e,t);for(var n=-1,o=e.length,a=!1;++n<o;){var i=At(e[n]);if(!(a=t!=null&&r(t,i)))break;t=t[i]}return a||++n!=o?a:(o=t==null?0:t.length,!!o&&lr(o)&&me(i,o)&&(R(t)||Jt(t)))}function Il(t,e){return t!=null&&Dl(t,e,Rl)}var Ll=1,Fl=2;function Bl(t,e){return hr(t)&&po(e)?ho(At(t),e):function(r){var n=Kn(r,t);return n===void 0&&n===e?Il(r,t):Or(e,n,Ll|Fl)}}function Ul(t){return function(e){return e==null?void 0:e[t]}}function kl(t){return function(e){return Se(e,t)}}function Vl(t){return hr(t)?Ul(At(t)):kl(t)}function wr(t){return typeof t=="function"?t:t==null?sr:typeof t=="object"?R(t)?Bl(t[0],t[1]):Pl(t):Vl(t)}function zl(t){return function(e,r,n){for(var o=-1,a=Object(e),i=n(e),s=i.length;s--;){var c=i[t?s:++o];if(r(a[c],c,a)===!1)break}return e}}var Gl=zl();const Hl=Gl;function ze(t,e,r){(r!==void 0&&!ee(t[e],r)||r===void 0&&!(e in t))&&cr(t,e,r)}function Ge(t){return K(t)&&ge(t)}function He(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function Wl(t){return Tt(t,re(t))}function Jl(t,e,r,n,o,a,i){var s=He(t,r),c=He(e,r),u=i.get(c);if(u){ze(t,r,u);return}var l=a?a(s,c,r+"",t,e,i):void 0,p=l===void 0;if(p){var f=R(c),d=!f&&Qt(c),h=!f&&!d&&dr(c);l=c,f||d||h?R(s)?l=s:Ge(s)?l=Vn(s):d?(p=!1,l=to(c,!0)):h?(p=!1,l=oo(c,!0)):l=[]:B(c)||Jt(c)?(l=s,Jt(s)?l=Wl(s):(!J(s)||ir(s))&&(l=ao(c))):p=!1}p&&(i.set(c,l),o(l,c,n,a,i),i.delete(c)),ze(t,r,l)}function vo(t,e,r,n,o){t!==e&&Hl(e,function(a,i){if(o||(o=new H),J(a))Jl(t,e,i,r,vo,n,o);else{var s=n?n(He(t,i),a,i+"",t,e,o):void 0;s===void 0&&(s=a),ze(t,i,s)}},re)}function Ql(t,e,r){for(var n=-1,o=t==null?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}function mo(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}function ql(t,e){return e.length<2?t:Se(t,yc(e,0,-1))}var Yl=xs(function(t,e,r){vo(t,e,r)});const go=Yl;var Kl="Expected a function";function Xl(t){if(typeof t!="function")throw new TypeError(Kl);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Zl(t,e){return e=xt(e,t),t=ql(t,e),t==null||delete t[At(mo(e))]}function tf(t){return B(t)?void 0:t}var ef=1,rf=2,nf=4,of=fc(function(t,e){var r={};if(t==null)return r;var n=!1;e=ar(e,function(a){return a=xt(a,t),n||(n=a.length>1),a}),Tt(t,_r(t),r),n&&(r=Gt(r,ef|rf|nf,tf));for(var o=e.length;o--;)Zl(r,e[o]);return r});const yo=of;function af(t,e,r,n){if(!J(t))return t;e=xt(e,t);for(var o=-1,a=e.length,i=a-1,s=t;s!=null&&++o<a;){var c=At(e[o]),u=r;if(c==="__proto__"||c==="constructor"||c==="prototype")return t;if(o!=i){var l=s[c];u=n?n(l,c,s):void 0,u===void 0&&(u=J(l)?l:me(e[o+1])?[]:{})}ur(s,c,u),s=s[c]}return t}function sf(t,e,r){for(var n=-1,o=e.length,a={};++n<o;){var i=e[n],s=Se(t,i);r(s,i)&&af(a,xt(i,t),s)}return a}function cf(t,e){if(t==null)return{};var r=ar(_r(t),function(n){return[n]});return e=wr(e),sf(t,r,function(n,o){return e(n,o[0])})}function uf(t,e){return cf(t,Xl(wr(e)))}var lf=1/0,ff=St&&1/jr(new St([,-0]))[1]==lf?function(t){return new St(t)}:cs;const pf=ff;var df=200;function hf(t,e,r){var n=-1,o=Os,a=t.length,i=!0,s=[],c=s;if(r)i=!1,o=Ql;else if(a>=df){var u=e?null:pf(t);if(u)return jr(u);i=!1,o=lo,c=new Xt}else c=e?[]:s;t:for(;++n<a;){var l=t[n],p=e?e(l):l;if(l=r||l!==0?l:0,i&&p===p){for(var f=c.length;f--;)if(c[f]===p)continue t;e&&c.push(p),s.push(l)}else o(c,p,r)||(c!==s&&c.push(p),s.push(l))}return s}var vf=Hn(function(t){var e=mo(t);return Ge(e)&&(e=void 0),hf(gr(t,1,Ge,!0),wr(e))});const mf=vf;class bo extends TypeError{constructor(e,r){let n;const{message:o,...a}=e,{path:i}=e,s=i.length===0?o:"At path: "+i.join(".")+" -- "+o;super(s),this.value=void 0,this.key=void 0,this.type=void 0,this.refinement=void 0,this.path=void 0,this.branch=void 0,this.failures=void 0,Object.assign(this,a),this.name=this.constructor.name,this.failures=()=>{var c;return(c=n)!=null?c:n=[e,...r()]}}}function gf(t){return W(t)&&typeof t[Symbol.iterator]=="function"}function W(t){return typeof t=="object"&&t!=null}function U(t){return typeof t=="string"?JSON.stringify(t):""+t}function yf(t){const{done:e,value:r}=t.next();return e?void 0:r}function bf(t,e,r,n){if(t===!0)return;t===!1?t={}:typeof t=="string"&&(t={message:t});const{path:o,branch:a}=e,{type:i}=r,{refinement:s,message:c="Expected a value of type `"+i+"`"+(s?" with refinement `"+s+"`":"")+", but received: `"+U(n)+"`"}=t;return{value:n,type:i,refinement:s,key:o[o.length-1],path:o,branch:a,...t,message:c}}function*mn(t,e,r,n){gf(t)||(t=[t]);for(const o of t){const a=bf(o,e,r,n);a&&(yield a)}}function*Cr(t,e,r){r===void 0&&(r={});const{path:n=[],branch:o=[t],coerce:a=!1,mask:i=!1}=r,s={path:n,branch:o};if(a&&(t=e.coercer(t,s),i&&e.type!=="type"&&W(e.schema)&&W(t)&&!Array.isArray(t)))for(const u in t)e.schema[u]===void 0&&delete t[u];let c="valid";for(const u of e.validator(t,s))c="not_valid",yield[u,void 0];for(let[u,l,p]of e.entries(t,s)){const f=Cr(l,p,{path:u===void 0?n:[...n,u],branch:u===void 0?o:[...o,l],coerce:a,mask:i});for(const d of f)d[0]?(c=d[0].refinement!=null?"not_refined":"not_valid",yield[d[0],void 0]):a&&(l=d[1],u===void 0?t=l:t instanceof Map?t.set(u,l):t instanceof Set?t.add(l):W(t)&&(t[u]=l))}if(c!=="not_valid")for(const u of e.refiner(t,s))c="not_refined",yield[u,void 0];c==="valid"&&(yield[void 0,t])}class Z{constructor(e){this.TYPE=void 0,this.type=void 0,this.schema=void 0,this.coercer=void 0,this.validator=void 0,this.refiner=void 0,this.entries=void 0;const{type:r,schema:n,validator:o,refiner:a,coercer:i=c=>c,entries:s=function*(){}}=e;this.type=r,this.schema=n,this.entries=s,this.coercer=i,o?this.validator=(c,u)=>{const l=o(c,u);return mn(l,u,this,c)}:this.validator=()=>[],a?this.refiner=(c,u)=>{const l=a(c,u);return mn(l,u,this,c)}:this.refiner=()=>[]}assert(e){return _o(e,this)}create(e){return _f(e,this)}is(e){return jf(e,this)}mask(e){return Sf(e,this)}validate(e,r){return r===void 0&&(r={}),Mt(e,this,r)}}function _o(t,e){const r=Mt(t,e);if(r[0])throw r[0]}function _f(t,e){const r=Mt(t,e,{coerce:!0});if(r[0])throw r[0];return r[1]}function Sf(t,e){const r=Mt(t,e,{coerce:!0,mask:!0});if(r[0])throw r[0];return r[1]}function jf(t,e){return!Mt(t,e)[0]}function Mt(t,e,r){r===void 0&&(r={});const n=Cr(t,e,r),o=yf(n);return o[0]?[new bo(o[0],function*(){for(const a of n)a[0]&&(yield a[0])}),void 0]:[void 0,o[1]]}function Er(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];const n=e[0].type==="type",o=e.map(i=>i.schema),a=Object.assign({},...o);return n?wo(a):w(a)}function st(t,e){return new Z({type:t,schema:null,validator:e})}function Ot(t){return new Z({type:"dynamic",schema:null,*entries(e,r){yield*t(e,r).entries(e,r)},validator(e,r){return t(e,r).validator(e,r)},coercer(e,r){return t(e,r).coercer(e,r)},refiner(e,r){return t(e,r).refiner(e,r)}})}function So(t,e){const{schema:r}=t,n={...r};for(const o of e)delete n[o];switch(t.type){case"type":return wo(n);default:return w(n)}}function A(){return st("any",()=>!0)}function P(t){return new Z({type:"array",schema:t,*entries(e){if(t&&Array.isArray(e))for(const[r,n]of e.entries())yield[r,n,t]},coercer(e){return Array.isArray(e)?e.slice():e},validator(e){return Array.isArray(e)||"Expected an array value, but received: "+U(e)}})}function dt(){return st("boolean",t=>typeof t=="boolean")}function We(t){const e={},r=t.map(n=>U(n)).join();for(const n of t)e[n]=n;return new Z({type:"enums",schema:e,validator(n){return t.includes(n)||"Expected one of `"+r+"`, but received: "+U(n)}})}function jo(){return st("func",t=>typeof t=="function"||"Expected a function, but received: "+U(t))}function L(t){const e=U(t),r=typeof t;return new Z({type:"literal",schema:r==="string"||r==="number"||r==="boolean"?t:null,validator(n){return n===t||"Expected the literal `"+e+"`, but received: "+U(n)}})}function Of(){return st("never",()=>!1)}function Oo(){return st("number",t=>typeof t=="number"&&!isNaN(t)||"Expected a number, but received: "+U(t))}function w(t){const e=t?Object.keys(t):[],r=Of();return new Z({type:"object",schema:t||null,*entries(n){if(t&&W(n)){const o=new Set(Object.keys(n));for(const a of e)o.delete(a),yield[a,n[a],t[a]];for(const a of o)yield[a,n[a],r]}},validator(n){return W(n)||"Expected an object, but received: "+U(n)},coercer(n){return W(n)?{...n}:n}})}function v(t){return new Z({...t,validator:(e,r)=>e===void 0||t.validator(e,r),refiner:(e,r)=>e===void 0||t.refiner(e,r)})}function Ht(t,e){return new Z({type:"record",schema:null,*entries(r){if(W(r))for(const n in r){const o=r[n];yield[n,n,t],yield[n,o,e]}},validator(r){return W(r)||"Expected an object, but received: "+U(r)}})}function m(){return st("string",t=>typeof t=="string"||"Expected a string, but received: "+U(t))}function wo(t){const e=Object.keys(t);return new Z({type:"type",schema:t,*entries(r){if(W(r))for(const n of e)yield[n,r[n],t[n]]},validator(r){return W(r)||"Expected an object, but received: "+U(r)}})}function F(t){const e=t.map(r=>r.type).join(" | ");return new Z({type:"union",schema:null,coercer(r,n){return(t.find(o=>{const[a]=o.validate(r,{coerce:!0});return!a})||wf()).coercer(r,n)},validator(r,n){const o=[];for(const a of t){const[...i]=Cr(r,a,n),[s]=i;if(s[0])for(const[c]of i)c&&o.push(c);else return[]}return["Expected the value to satisfy a union of `"+e+"`, but received: "+U(r),...o]}})}function wf(){return st("unknown",()=>!0)}const $r=w({package:m(),version:m(),name:m(),exportName:v(m()),destructuring:v(dt()),subName:v(m()),main:v(m()),cssPaths:v(P(m()))}),Cf=P($r),Ef=["CBlock","CContainer","CImage","CCanvas","CVideo","CAudio","CText","CNativeTag"];var k=(t=>(t.SLOT="SLOT",t.FUNCTION="FUNCTION",t.EXPRESSION="EXPRESSION",t))(k||{}),Nr=(t=>(t.DESIGN="design",t.SAVE="save",t))(Nr||{}),Je=(t=>(t.FUNC="FUNC",t.COMP="COMP",t))(Je||{});const $f=()=>st("normalObj",t=>!B(t)||[k.SLOT,k.EXPRESSION,k.FUNCTION].includes(t==null?void 0:t.type)?!1:(Mt(t,Ht(m(),Tr)),!0)),Tr=F([m(),Oo(),dt(),w({type:L(k.SLOT),renderType:We([Je.FUNC,Je.COMP]),params:v(P(m())),value:Ot(()=>F([wt,P(wt)]))}),w({type:L(k.EXPRESSION),value:m()}),w({type:L(k.FUNCTION),value:m()}),$f(),P(Ot(()=>Tr))]),gn=w({type:L(k.EXPRESSION),value:m()}),wt=w({id:v(m()),title:v(m()),componentName:m(),props:v(Ht(m(),Tr)),nodeName:v(m()),state:v(Ht(m(),A())),children:Ot(()=>v(P(F([m(),wt])))),configure:v(A()),css:v(A()),style:v(A()),classNames:v(P(A())),refId:v(m()),extra:v(Ht(A(),A())),condition:v(F([dt(),gn])),loop:v(w({open:dt(),data:F([P(A()),gn]),args:v(P(m())),forName:v(m()),forIndex:v(m()),key:v(A()),name:v(m())})),methods:v(P(A()))}),de=F([m(),w({label:m(),tip:v(m())})]),Nf=w({type:L("shape"),value:P(w({name:m(),title:de,valueType:Ot(()=>je)}))}),Tf=w({type:L("enums"),value:P(m())});w({type:L("array"),value:Ot(()=>je)});const xf=w({type:L("array"),value:Ot(()=>P(je))}),je=F([We(["array","boolean","number","object","string"]),We(["component","expression","function"]),Nf,Tf,xf]),Af=F([m(),w({componentName:m(),props:v(A()),initialValue:v(A()),component:v(A()),hiddenLabel:v(dt())})]),Re=w({name:m(),title:de,valueType:je,description:v(m()),defaultValue:A(),setters:v(P(Af)),condition:v(jo())});F([m(),jo()]);var Qe=(t=>(t.SINGLE="single",t.GROUP="group",t))(Qe||{});F([m(),w({name:m(),describe:v(m()),params:v(w({name:m(),description:m()})),template:m()})]);const Mf=w({id:v(m()),title:m(),snapshot:F([m(),A()]),snapshotText:v(m()),description:v(m()),tags:v(P(m())),groupName:v(m()),category:v(m()),schema:Er(So(wt,["id"]),w({componentName:v(m())}))}),Pf=w({componentName:m(),title:m(),screenshot:v(m()),icon:v(m()),tags:v(P(m())),groupName:v(m()),category:v(m()),priority:v(Oo()),npm:v($r),snippets:P(Mf),props:P(F([Re,w({title:v(de),type:L("single"),content:Re}),w({title:v(de),type:L("group"),content:P(Re)})])),fixedProps:v(A()),isContainer:v(F([dt(),w({placeholder:m(),width:m(),height:m()})])),disableEditorDragDom:v(A()),isLayout:v(dt()),rootSelector:v(m()),advanceCustom:v(A()),extra:v(Ht(A(),A()))}),Rf=t=>({data:e,message:r,throwError:n})=>{const o=t({data:e,message:r,throwError:n});if(o.isValidate)return o;if(n)throw o.message||r?new Error(`${o.message||r}
|
|
1
|
+
"use strict";var va=Object.defineProperty;var ma=(t,e,r)=>e in t?va(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var y=(t,e,r)=>(ma(t,typeof e!="symbol"?e+"":e,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react"),ga=require("react-dom");function ya(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const ba=ya(ga),_a=t=>()=>{console.warn(`${t} need to be implement getComponent`)},Sa=["customPageRootRender"],Br=["pageRender","render","convertModelToComponent","getComponent","getContext","getUtils","getDataLink","createDataLink","transformProps","transformData","transformGlobalData","errorCatch","clear"],In=t=>[...Br,...Sa].reduce((r,n)=>{var o;return t!=null&&t[n]?r[n]=(o=t[n])==null?void 0:o.bind(t):Br.includes(n)&&(r[n]=_a),r},{});var ja=Object.defineProperty,Oa=(t,e,r)=>e in t?ja(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,_=(t,e,r)=>(Oa(t,typeof e!="symbol"?e+"":e,r),r),wa=typeof global=="object"&&global&&global.Object===Object&&global;const Ln=wa;var Ca=typeof self=="object"&&self&&self.Object===Object&&self,Ea=Ln||Ca||Function("return this")();const K=Ea;var $a=K.Symbol;const z=$a;var Fn=Object.prototype,Na=Fn.hasOwnProperty,Ta=Fn.toString,kt=z?z.toStringTag:void 0;function xa(t){var e=Na.call(t,kt),r=t[kt];try{t[kt]=void 0;var n=!0}catch{}var o=Ta.call(t);return n&&(e?t[kt]=r:delete t[kt]),o}var Aa=Object.prototype,Ma=Aa.toString;function Pa(t){return Ma.call(t)}var Ra="[object Null]",Da="[object Undefined]",Ur=z?z.toStringTag:void 0;function vt(t){return t==null?t===void 0?Da:Ra:Ur&&Ur in Object(t)?xa(t):Pa(t)}function Y(t){return t!=null&&typeof t=="object"}var Ia="[object Symbol]";function or(t){return typeof t=="symbol"||Y(t)&&vt(t)==Ia}function ar(t,e){for(var r=-1,n=t==null?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}var La=Array.isArray;const R=La;var Fa=1/0,kr=z?z.prototype:void 0,Vr=kr?kr.toString:void 0;function Bn(t){if(typeof t=="string")return t;if(R(t))return ar(t,Bn)+"";if(or(t))return Vr?Vr.call(t):"";var e=t+"";return e=="0"&&1/t==-Fa?"-0":e}function Q(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function sr(t){return t}var Ba="[object AsyncFunction]",Ua="[object Function]",ka="[object GeneratorFunction]",Va="[object Proxy]";function ir(t){if(!Q(t))return!1;var e=vt(t);return e==Ua||e==ka||e==Ba||e==Va}var za=K["__core-js_shared__"];const Ae=za;var zr=function(){var t=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Ga(t){return!!zr&&zr in t}var Ha=Function.prototype,Wa=Ha.toString;function mt(t){if(t!=null){try{return Wa.call(t)}catch{}try{return t+""}catch{}}return""}var Ja=/[\\^$.*+?()[\]{}|]/g,Qa=/^\[object .+?Constructor\]$/,qa=Function.prototype,Ya=Object.prototype,Ka=qa.toString,Xa=Ya.hasOwnProperty,Za=RegExp("^"+Ka.call(Xa).replace(Ja,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ts(t){if(!Q(t)||Ga(t))return!1;var e=ir(t)?Za:Qa;return e.test(mt(t))}function es(t,e){return t==null?void 0:t[e]}function gt(t,e){var r=es(t,e);return ts(r)?r:void 0}var rs=gt(K,"WeakMap");const Be=rs;var Gr=Object.create,ns=function(){function t(){}return function(e){if(!Q(e))return{};if(Gr)return Gr(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();const os=ns;function as(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function ss(){}function Un(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}var is=800,cs=16,us=Date.now;function ls(t){var e=0,r=0;return function(){var n=us(),o=cs-(n-r);if(r=n,o>0){if(++e>=is)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function fs(t){return function(){return t}}var ps=function(){try{var t=gt(Object,"defineProperty");return t({},"",{}),t}catch{}}();const fe=ps;var ds=fe?function(t,e){return fe(t,"toString",{configurable:!0,enumerable:!1,value:fs(e),writable:!0})}:sr;const hs=ds;var vs=ls(hs);const kn=vs;function ms(t,e){for(var r=-1,n=t==null?0:t.length;++r<n&&e(t[r],r,t)!==!1;);return t}function gs(t,e,r,n){for(var o=t.length,a=r+(n?1:-1);n?a--:++a<o;)if(e(t[a],a,t))return a;return-1}function ys(t){return t!==t}function bs(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}function _s(t,e,r){return e===e?bs(t,e,r):gs(t,ys,r)}function Ss(t,e){var r=t==null?0:t.length;return!!r&&_s(t,e,0)>-1}var js=9007199254740991,Os=/^(?:0|[1-9]\d*)$/;function me(t,e){var r=typeof t;return e=e??js,!!e&&(r=="number"||r!="symbol"&&Os.test(t))&&t>-1&&t%1==0&&t<e}function cr(t,e,r){e=="__proto__"&&fe?fe(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function ee(t,e){return t===e||t!==t&&e!==e}var ws=Object.prototype,Cs=ws.hasOwnProperty;function ur(t,e,r){var n=t[e];(!(Cs.call(t,e)&&ee(n,r))||r===void 0&&!(e in t))&&cr(t,e,r)}function Nt(t,e,r,n){var o=!r;r||(r={});for(var a=-1,i=e.length;++a<i;){var s=e[a],c=n?n(r[s],t[s],s,r,t):void 0;c===void 0&&(c=t[s]),o?cr(r,s,c):ur(r,s,c)}return r}var Hr=Math.max;function Vn(t,e,r){return e=Hr(e===void 0?t.length-1:e,0),function(){for(var n=arguments,o=-1,a=Hr(n.length-e,0),i=Array(a);++o<a;)i[o]=n[e+o];o=-1;for(var s=Array(e+1);++o<e;)s[o]=n[o];return s[e]=r(i),as(t,this,s)}}function zn(t,e){return kn(Vn(t,e,sr),t+"")}var Es=9007199254740991;function lr(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Es}function ge(t){return t!=null&&lr(t.length)&&!ir(t)}function $s(t,e,r){if(!Q(r))return!1;var n=typeof e;return(n=="number"?ge(r)&&me(e,r.length):n=="string"&&e in r)?ee(r[e],t):!1}function Ns(t){return zn(function(e,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=t.length>3&&typeof a=="function"?(o--,a):void 0,i&&$s(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),e=Object(e);++n<o;){var s=r[n];s&&t(e,s,n,a)}return e})}var Ts=Object.prototype;function fr(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||Ts;return t===r}function xs(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var As="[object Arguments]";function Wr(t){return Y(t)&&vt(t)==As}var Gn=Object.prototype,Ms=Gn.hasOwnProperty,Ps=Gn.propertyIsEnumerable,Rs=Wr(function(){return arguments}())?Wr:function(t){return Y(t)&&Ms.call(t,"callee")&&!Ps.call(t,"callee")};const Jt=Rs;function Ds(){return!1}var Hn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Jr=Hn&&typeof module=="object"&&module&&!module.nodeType&&module,Is=Jr&&Jr.exports===Hn,Qr=Is?K.Buffer:void 0,Ls=Qr?Qr.isBuffer:void 0,Fs=Ls||Ds;const Qt=Fs;var Bs="[object Arguments]",Us="[object Array]",ks="[object Boolean]",Vs="[object Date]",zs="[object Error]",Gs="[object Function]",Hs="[object Map]",Ws="[object Number]",Js="[object Object]",Qs="[object RegExp]",qs="[object Set]",Ys="[object String]",Ks="[object WeakMap]",Xs="[object ArrayBuffer]",Zs="[object DataView]",ti="[object Float32Array]",ei="[object Float64Array]",ri="[object Int8Array]",ni="[object Int16Array]",oi="[object Int32Array]",ai="[object Uint8Array]",si="[object Uint8ClampedArray]",ii="[object Uint16Array]",ci="[object Uint32Array]",$={};$[ti]=$[ei]=$[ri]=$[ni]=$[oi]=$[ai]=$[si]=$[ii]=$[ci]=!0;$[Bs]=$[Us]=$[Xs]=$[ks]=$[Zs]=$[Vs]=$[zs]=$[Gs]=$[Hs]=$[Ws]=$[Js]=$[Qs]=$[qs]=$[Ys]=$[Ks]=!1;function ui(t){return Y(t)&&lr(t.length)&&!!$[vt(t)]}function pr(t){return function(e){return t(e)}}var Wn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zt=Wn&&typeof module=="object"&&module&&!module.nodeType&&module,li=zt&&zt.exports===Wn,Me=li&&Ln.process,fi=function(){try{var t=zt&&zt.require&&zt.require("util").types;return t||Me&&Me.binding&&Me.binding("util")}catch{}}();const St=fi;var qr=St&&St.isTypedArray,pi=qr?pr(qr):ui;const dr=pi;var di=Object.prototype,hi=di.hasOwnProperty;function Jn(t,e){var r=R(t),n=!r&&Jt(t),o=!r&&!n&&Qt(t),a=!r&&!n&&!o&&dr(t),i=r||n||o||a,s=i?xs(t.length,String):[],c=s.length;for(var u in t)(e||hi.call(t,u))&&!(i&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||me(u,c)))&&s.push(u);return s}function Qn(t,e){return function(r){return t(e(r))}}var vi=Qn(Object.keys,Object);const mi=vi;var gi=Object.prototype,yi=gi.hasOwnProperty;function bi(t){if(!fr(t))return mi(t);var e=[];for(var r in Object(t))yi.call(t,r)&&r!="constructor"&&e.push(r);return e}function ye(t){return ge(t)?Jn(t):bi(t)}function _i(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var Si=Object.prototype,ji=Si.hasOwnProperty;function Oi(t){if(!Q(t))return _i(t);var e=fr(t),r=[];for(var n in t)n=="constructor"&&(e||!ji.call(t,n))||r.push(n);return r}function re(t){return ge(t)?Jn(t,!0):Oi(t)}var wi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ci=/^\w*$/;function hr(t,e){if(R(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||or(t)?!0:Ci.test(t)||!wi.test(t)||e!=null&&t in Object(e)}var Ei=gt(Object,"create");const qt=Ei;function $i(){this.__data__=qt?qt(null):{},this.size=0}function Ni(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Ti="__lodash_hash_undefined__",xi=Object.prototype,Ai=xi.hasOwnProperty;function Mi(t){var e=this.__data__;if(qt){var r=e[t];return r===Ti?void 0:r}return Ai.call(e,t)?e[t]:void 0}var Pi=Object.prototype,Ri=Pi.hasOwnProperty;function Di(t){var e=this.__data__;return qt?e[t]!==void 0:Ri.call(e,t)}var Ii="__lodash_hash_undefined__";function Li(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=qt&&e===void 0?Ii:e,this}function ft(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ft.prototype.clear=$i;ft.prototype.delete=Ni;ft.prototype.get=Mi;ft.prototype.has=Di;ft.prototype.set=Li;function Fi(){this.__data__=[],this.size=0}function be(t,e){for(var r=t.length;r--;)if(ee(t[r][0],e))return r;return-1}var Bi=Array.prototype,Ui=Bi.splice;function ki(t){var e=this.__data__,r=be(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():Ui.call(e,r,1),--this.size,!0}function Vi(t){var e=this.__data__,r=be(e,t);return r<0?void 0:e[r][1]}function zi(t){return be(this.__data__,t)>-1}function Gi(t,e){var r=this.__data__,n=be(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function tt(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}tt.prototype.clear=Fi;tt.prototype.delete=ki;tt.prototype.get=Vi;tt.prototype.has=zi;tt.prototype.set=Gi;var Hi=gt(K,"Map");const Yt=Hi;function Wi(){this.size=0,this.__data__={hash:new ft,map:new(Yt||tt),string:new ft}}function Ji(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function _e(t,e){var r=t.__data__;return Ji(e)?r[typeof e=="string"?"string":"hash"]:r.map}function Qi(t){var e=_e(this,t).delete(t);return this.size-=e?1:0,e}function qi(t){return _e(this,t).get(t)}function Yi(t){return _e(this,t).has(t)}function Ki(t,e){var r=_e(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}function et(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}et.prototype.clear=Wi;et.prototype.delete=Qi;et.prototype.get=qi;et.prototype.has=Yi;et.prototype.set=Ki;var Xi="Expected a function";function vr(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(Xi);var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=t.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(vr.Cache||et),r}vr.Cache=et;var Zi=500;function tc(t){var e=vr(t,function(n){return r.size===Zi&&r.clear(),n}),r=e.cache;return e}var ec=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rc=/\\(\\)?/g,nc=tc(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(ec,function(r,n,o,a){e.push(o?a.replace(rc,"$1"):n||r)}),e});const oc=nc;function ac(t){return t==null?"":Bn(t)}function Tt(t,e){return R(t)?t:hr(t,e)?[t]:oc(ac(t))}var sc=1/0;function xt(t){if(typeof t=="string"||or(t))return t;var e=t+"";return e=="0"&&1/t==-sc?"-0":e}function Se(t,e){e=Tt(e,t);for(var r=0,n=e.length;t!=null&&r<n;)t=t[xt(e[r++])];return r&&r==n?t:void 0}function qn(t,e,r){var n=t==null?void 0:Se(t,e);return n===void 0?r:n}function mr(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}var Yr=z?z.isConcatSpreadable:void 0;function ic(t){return R(t)||Jt(t)||!!(Yr&&t&&t[Yr])}function gr(t,e,r,n,o){var a=-1,i=t.length;for(r||(r=ic),o||(o=[]);++a<i;){var s=t[a];e>0&&r(s)?e>1?gr(s,e-1,r,n,o):mr(o,s):n||(o[o.length]=s)}return o}function cc(t){var e=t==null?0:t.length;return e?gr(t,1):[]}function uc(t){return kn(Vn(t,void 0,cc),t+"")}var lc=Qn(Object.getPrototypeOf,Object);const yr=lc;var fc="[object Object]",pc=Function.prototype,dc=Object.prototype,Yn=pc.toString,hc=dc.hasOwnProperty,vc=Yn.call(Object);function B(t){if(!Y(t)||vt(t)!=fc)return!1;var e=yr(t);if(e===null)return!0;var r=hc.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Yn.call(r)==vc}function mc(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),r=r>o?o:r,r<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var a=Array(o);++n<o;)a[n]=t[n+e];return a}function gc(){this.__data__=new tt,this.size=0}function yc(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}function bc(t){return this.__data__.get(t)}function _c(t){return this.__data__.has(t)}var Sc=200;function jc(t,e){var r=this.__data__;if(r instanceof tt){var n=r.__data__;if(!Yt||n.length<Sc-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new et(n)}return r.set(t,e),this.size=r.size,this}function W(t){var e=this.__data__=new tt(t);this.size=e.size}W.prototype.clear=gc;W.prototype.delete=yc;W.prototype.get=bc;W.prototype.has=_c;W.prototype.set=jc;function Oc(t,e){return t&&Nt(e,ye(e),t)}function wc(t,e){return t&&Nt(e,re(e),t)}var Kn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Kr=Kn&&typeof module=="object"&&module&&!module.nodeType&&module,Cc=Kr&&Kr.exports===Kn,Xr=Cc?K.Buffer:void 0,Zr=Xr?Xr.allocUnsafe:void 0;function Xn(t,e){if(e)return t.slice();var r=t.length,n=Zr?Zr(r):new t.constructor(r);return t.copy(n),n}function Ec(t,e){for(var r=-1,n=t==null?0:t.length,o=0,a=[];++r<n;){var i=t[r];e(i,r,t)&&(a[o++]=i)}return a}function Zn(){return[]}var $c=Object.prototype,Nc=$c.propertyIsEnumerable,tn=Object.getOwnPropertySymbols,Tc=tn?function(t){return t==null?[]:(t=Object(t),Ec(tn(t),function(e){return Nc.call(t,e)}))}:Zn;const br=Tc;function xc(t,e){return Nt(t,br(t),e)}var Ac=Object.getOwnPropertySymbols,Mc=Ac?function(t){for(var e=[];t;)mr(e,br(t)),t=yr(t);return e}:Zn;const to=Mc;function Pc(t,e){return Nt(t,to(t),e)}function eo(t,e,r){var n=e(t);return R(t)?n:mr(n,r(t))}function Ue(t){return eo(t,ye,br)}function _r(t){return eo(t,re,to)}var Rc=gt(K,"DataView");const ke=Rc;var Dc=gt(K,"Promise");const Ve=Dc;var Ic=gt(K,"Set");const _t=Ic;var en="[object Map]",Lc="[object Object]",rn="[object Promise]",nn="[object Set]",on="[object WeakMap]",an="[object DataView]",Fc=mt(ke),Bc=mt(Yt),Uc=mt(Ve),kc=mt(_t),Vc=mt(Be),ut=vt;(ke&&ut(new ke(new ArrayBuffer(1)))!=an||Yt&&ut(new Yt)!=en||Ve&&ut(Ve.resolve())!=rn||_t&&ut(new _t)!=nn||Be&&ut(new Be)!=on)&&(ut=function(t){var e=vt(t),r=e==Lc?t.constructor:void 0,n=r?mt(r):"";if(n)switch(n){case Fc:return an;case Bc:return en;case Uc:return rn;case kc:return nn;case Vc:return on}return e});const Kt=ut;var zc=Object.prototype,Gc=zc.hasOwnProperty;function Hc(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&Gc.call(t,"index")&&(r.index=t.index,r.input=t.input),r}var Wc=K.Uint8Array;const pe=Wc;function Sr(t){var e=new t.constructor(t.byteLength);return new pe(e).set(new pe(t)),e}function Jc(t,e){var r=e?Sr(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}var Qc=/\w*$/;function qc(t){var e=new t.constructor(t.source,Qc.exec(t));return e.lastIndex=t.lastIndex,e}var sn=z?z.prototype:void 0,cn=sn?sn.valueOf:void 0;function Yc(t){return cn?Object(cn.call(t)):{}}function ro(t,e){var r=e?Sr(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var Kc="[object Boolean]",Xc="[object Date]",Zc="[object Map]",tu="[object Number]",eu="[object RegExp]",ru="[object Set]",nu="[object String]",ou="[object Symbol]",au="[object ArrayBuffer]",su="[object DataView]",iu="[object Float32Array]",cu="[object Float64Array]",uu="[object Int8Array]",lu="[object Int16Array]",fu="[object Int32Array]",pu="[object Uint8Array]",du="[object Uint8ClampedArray]",hu="[object Uint16Array]",vu="[object Uint32Array]";function mu(t,e,r){var n=t.constructor;switch(e){case au:return Sr(t);case Kc:case Xc:return new n(+t);case su:return Jc(t,r);case iu:case cu:case uu:case lu:case fu:case pu:case du:case hu:case vu:return ro(t,r);case Zc:return new n;case tu:case nu:return new n(t);case eu:return qc(t);case ru:return new n;case ou:return Yc(t)}}function no(t){return typeof t.constructor=="function"&&!fr(t)?os(yr(t)):{}}var gu="[object Map]";function yu(t){return Y(t)&&Kt(t)==gu}var un=St&&St.isMap,bu=un?pr(un):yu;const _u=bu;var Su="[object Set]";function ju(t){return Y(t)&&Kt(t)==Su}var ln=St&&St.isSet,Ou=ln?pr(ln):ju;const wu=Ou;var Cu=1,Eu=2,$u=4,oo="[object Arguments]",Nu="[object Array]",Tu="[object Boolean]",xu="[object Date]",Au="[object Error]",ao="[object Function]",Mu="[object GeneratorFunction]",Pu="[object Map]",Ru="[object Number]",so="[object Object]",Du="[object RegExp]",Iu="[object Set]",Lu="[object String]",Fu="[object Symbol]",Bu="[object WeakMap]",Uu="[object ArrayBuffer]",ku="[object DataView]",Vu="[object Float32Array]",zu="[object Float64Array]",Gu="[object Int8Array]",Hu="[object Int16Array]",Wu="[object Int32Array]",Ju="[object Uint8Array]",Qu="[object Uint8ClampedArray]",qu="[object Uint16Array]",Yu="[object Uint32Array]",E={};E[oo]=E[Nu]=E[Uu]=E[ku]=E[Tu]=E[xu]=E[Vu]=E[zu]=E[Gu]=E[Hu]=E[Wu]=E[Pu]=E[Ru]=E[so]=E[Du]=E[Iu]=E[Lu]=E[Fu]=E[Ju]=E[Qu]=E[qu]=E[Yu]=!0;E[Au]=E[ao]=E[Bu]=!1;function Gt(t,e,r,n,o,a){var i,s=e&Cu,c=e&Eu,u=e&$u;if(r&&(i=o?r(t,n,o,a):r(t)),i!==void 0)return i;if(!Q(t))return t;var l=R(t);if(l){if(i=Hc(t),!s)return Un(t,i)}else{var p=Kt(t),f=p==ao||p==Mu;if(Qt(t))return Xn(t,s);if(p==so||p==oo||f&&!o){if(i=c||f?{}:no(t),!s)return c?Pc(t,wc(i,t)):xc(t,Oc(i,t))}else{if(!E[p])return o?t:{};i=mu(t,p,s)}}a||(a=new W);var d=a.get(t);if(d)return d;a.set(t,i),wu(t)?t.forEach(function(b){i.add(Gt(b,e,r,b,t,a))}):_u(t)&&t.forEach(function(b,j){i.set(j,Gt(b,e,r,j,t,a))});var h=u?c?_r:Ue:c?re:ye,g=l?void 0:h(t);return ms(g||t,function(b,j){g&&(j=b,b=t[j]),ur(i,j,Gt(b,e,r,j,t,a))}),i}var Ku=1,Xu=4;function io(t){return Gt(t,Ku|Xu)}var Zu="__lodash_hash_undefined__";function tl(t){return this.__data__.set(t,Zu),this}function el(t){return this.__data__.has(t)}function Xt(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new et;++e<r;)this.add(t[e])}Xt.prototype.add=Xt.prototype.push=tl;Xt.prototype.has=el;function rl(t,e){for(var r=-1,n=t==null?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function co(t,e){return t.has(e)}var nl=1,ol=2;function uo(t,e,r,n,o,a){var i=r&nl,s=t.length,c=e.length;if(s!=c&&!(i&&c>s))return!1;var u=a.get(t),l=a.get(e);if(u&&l)return u==e&&l==t;var p=-1,f=!0,d=r&ol?new Xt:void 0;for(a.set(t,e),a.set(e,t);++p<s;){var h=t[p],g=e[p];if(n)var b=i?n(g,h,p,e,t,a):n(h,g,p,t,e,a);if(b!==void 0){if(b)continue;f=!1;break}if(d){if(!rl(e,function(j,O){if(!co(d,O)&&(h===j||o(h,j,r,n,a)))return d.push(O)})){f=!1;break}}else if(!(h===g||o(h,g,r,n,a))){f=!1;break}}return a.delete(t),a.delete(e),f}function al(t){var e=-1,r=Array(t.size);return t.forEach(function(n,o){r[++e]=[o,n]}),r}function jr(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var sl=1,il=2,cl="[object Boolean]",ul="[object Date]",ll="[object Error]",fl="[object Map]",pl="[object Number]",dl="[object RegExp]",hl="[object Set]",vl="[object String]",ml="[object Symbol]",gl="[object ArrayBuffer]",yl="[object DataView]",fn=z?z.prototype:void 0,Pe=fn?fn.valueOf:void 0;function bl(t,e,r,n,o,a,i){switch(r){case yl:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case gl:return!(t.byteLength!=e.byteLength||!a(new pe(t),new pe(e)));case cl:case ul:case pl:return ee(+t,+e);case ll:return t.name==e.name&&t.message==e.message;case dl:case vl:return t==e+"";case fl:var s=al;case hl:var c=n&sl;if(s||(s=jr),t.size!=e.size&&!c)return!1;var u=i.get(t);if(u)return u==e;n|=il,i.set(t,e);var l=uo(s(t),s(e),n,o,a,i);return i.delete(t),l;case ml:if(Pe)return Pe.call(t)==Pe.call(e)}return!1}var _l=1,Sl=Object.prototype,jl=Sl.hasOwnProperty;function Ol(t,e,r,n,o,a){var i=r&_l,s=Ue(t),c=s.length,u=Ue(e),l=u.length;if(c!=l&&!i)return!1;for(var p=c;p--;){var f=s[p];if(!(i?f in e:jl.call(e,f)))return!1}var d=a.get(t),h=a.get(e);if(d&&h)return d==e&&h==t;var g=!0;a.set(t,e),a.set(e,t);for(var b=i;++p<c;){f=s[p];var j=t[f],O=e[f];if(n)var T=i?n(O,j,f,e,t,a):n(j,O,f,t,e,a);if(!(T===void 0?j===O||o(j,O,r,n,a):T)){g=!1;break}b||(b=f=="constructor")}if(g&&!b){var M=t.constructor,I=e.constructor;M!=I&&"constructor"in t&&"constructor"in e&&!(typeof M=="function"&&M instanceof M&&typeof I=="function"&&I instanceof I)&&(g=!1)}return a.delete(t),a.delete(e),g}var wl=1,pn="[object Arguments]",dn="[object Array]",ce="[object Object]",Cl=Object.prototype,hn=Cl.hasOwnProperty;function El(t,e,r,n,o,a){var i=R(t),s=R(e),c=i?dn:Kt(t),u=s?dn:Kt(e);c=c==pn?ce:c,u=u==pn?ce:u;var l=c==ce,p=u==ce,f=c==u;if(f&&Qt(t)){if(!Qt(e))return!1;i=!0,l=!1}if(f&&!l)return a||(a=new W),i||dr(t)?uo(t,e,r,n,o,a):bl(t,e,c,r,n,o,a);if(!(r&wl)){var d=l&&hn.call(t,"__wrapped__"),h=p&&hn.call(e,"__wrapped__");if(d||h){var g=d?t.value():t,b=h?e.value():e;return a||(a=new W),o(g,b,r,n,a)}}return f?(a||(a=new W),Ol(t,e,r,n,o,a)):!1}function Or(t,e,r,n,o){return t===e?!0:t==null||e==null||!Y(t)&&!Y(e)?t!==t&&e!==e:El(t,e,r,n,Or,o)}var $l=1,Nl=2;function Tl(t,e,r,n){var o=r.length,a=o,i=!n;if(t==null)return!a;for(t=Object(t);o--;){var s=r[o];if(i&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++o<a;){s=r[o];var c=s[0],u=t[c],l=s[1];if(i&&s[2]){if(u===void 0&&!(c in t))return!1}else{var p=new W;if(n)var f=n(u,l,c,t,e,p);if(!(f===void 0?Or(l,u,$l|Nl,n,p):f))return!1}}return!0}function lo(t){return t===t&&!Q(t)}function xl(t){for(var e=ye(t),r=e.length;r--;){var n=e[r],o=t[n];e[r]=[n,o,lo(o)]}return e}function fo(t,e){return function(r){return r==null?!1:r[t]===e&&(e!==void 0||t in Object(r))}}function Al(t){var e=xl(t);return e.length==1&&e[0][2]?fo(e[0][0],e[0][1]):function(r){return r===t||Tl(r,t,e)}}function Ml(t,e){return t!=null&&e in Object(t)}function Pl(t,e,r){e=Tt(e,t);for(var n=-1,o=e.length,a=!1;++n<o;){var i=xt(e[n]);if(!(a=t!=null&&r(t,i)))break;t=t[i]}return a||++n!=o?a:(o=t==null?0:t.length,!!o&&lr(o)&&me(i,o)&&(R(t)||Jt(t)))}function Rl(t,e){return t!=null&&Pl(t,e,Ml)}var Dl=1,Il=2;function Ll(t,e){return hr(t)&&lo(e)?fo(xt(t),e):function(r){var n=qn(r,t);return n===void 0&&n===e?Rl(r,t):Or(e,n,Dl|Il)}}function Fl(t){return function(e){return e==null?void 0:e[t]}}function Bl(t){return function(e){return Se(e,t)}}function Ul(t){return hr(t)?Fl(xt(t)):Bl(t)}function wr(t){return typeof t=="function"?t:t==null?sr:typeof t=="object"?R(t)?Ll(t[0],t[1]):Al(t):Ul(t)}function kl(t){return function(e,r,n){for(var o=-1,a=Object(e),i=n(e),s=i.length;s--;){var c=i[t?s:++o];if(r(a[c],c,a)===!1)break}return e}}var Vl=kl();const zl=Vl;function ze(t,e,r){(r!==void 0&&!ee(t[e],r)||r===void 0&&!(e in t))&&cr(t,e,r)}function Ge(t){return Y(t)&&ge(t)}function He(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function Gl(t){return Nt(t,re(t))}function Hl(t,e,r,n,o,a,i){var s=He(t,r),c=He(e,r),u=i.get(c);if(u){ze(t,r,u);return}var l=a?a(s,c,r+"",t,e,i):void 0,p=l===void 0;if(p){var f=R(c),d=!f&&Qt(c),h=!f&&!d&&dr(c);l=c,f||d||h?R(s)?l=s:Ge(s)?l=Un(s):d?(p=!1,l=Xn(c,!0)):h?(p=!1,l=ro(c,!0)):l=[]:B(c)||Jt(c)?(l=s,Jt(s)?l=Gl(s):(!Q(s)||ir(s))&&(l=no(c))):p=!1}p&&(i.set(c,l),o(l,c,n,a,i),i.delete(c)),ze(t,r,l)}function po(t,e,r,n,o){t!==e&&zl(e,function(a,i){if(o||(o=new W),Q(a))Hl(t,e,i,r,po,n,o);else{var s=n?n(He(t,i),a,i+"",t,e,o):void 0;s===void 0&&(s=a),ze(t,i,s)}},re)}function Wl(t,e,r){for(var n=-1,o=t==null?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}function ho(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}function Jl(t,e){return e.length<2?t:Se(t,mc(e,0,-1))}var Ql=Ns(function(t,e,r){po(t,e,r)});const vo=Ql;var ql="Expected a function";function Yl(t){if(typeof t!="function")throw new TypeError(ql);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Kl(t,e){return e=Tt(e,t),t=Jl(t,e),t==null||delete t[xt(ho(e))]}function Xl(t){return B(t)?void 0:t}var Zl=1,tf=2,ef=4,rf=uc(function(t,e){var r={};if(t==null)return r;var n=!1;e=ar(e,function(a){return a=Tt(a,t),n||(n=a.length>1),a}),Nt(t,_r(t),r),n&&(r=Gt(r,Zl|tf|ef,Xl));for(var o=e.length;o--;)Kl(r,e[o]);return r});const mo=rf;function nf(t,e,r,n){if(!Q(t))return t;e=Tt(e,t);for(var o=-1,a=e.length,i=a-1,s=t;s!=null&&++o<a;){var c=xt(e[o]),u=r;if(c==="__proto__"||c==="constructor"||c==="prototype")return t;if(o!=i){var l=s[c];u=n?n(l,c,s):void 0,u===void 0&&(u=Q(l)?l:me(e[o+1])?[]:{})}ur(s,c,u),s=s[c]}return t}function of(t,e,r){for(var n=-1,o=e.length,a={};++n<o;){var i=e[n],s=Se(t,i);r(s,i)&&nf(a,Tt(i,t),s)}return a}function af(t,e){if(t==null)return{};var r=ar(_r(t),function(n){return[n]});return e=wr(e),of(t,r,function(n,o){return e(n,o[0])})}function sf(t,e){return af(t,Yl(wr(e)))}var cf=1/0,uf=_t&&1/jr(new _t([,-0]))[1]==cf?function(t){return new _t(t)}:ss;const lf=uf;var ff=200;function pf(t,e,r){var n=-1,o=Ss,a=t.length,i=!0,s=[],c=s;if(r)i=!1,o=Wl;else if(a>=ff){var u=e?null:lf(t);if(u)return jr(u);i=!1,o=co,c=new Xt}else c=e?[]:s;t:for(;++n<a;){var l=t[n],p=e?e(l):l;if(l=r||l!==0?l:0,i&&p===p){for(var f=c.length;f--;)if(c[f]===p)continue t;e&&c.push(p),s.push(l)}else o(c,p,r)||(c!==s&&c.push(p),s.push(l))}return s}var df=zn(function(t){var e=ho(t);return Ge(e)&&(e=void 0),pf(gr(t,1,Ge,!0),wr(e))});const hf=df;class go extends TypeError{constructor(e,r){let n;const{message:o,...a}=e,{path:i}=e,s=i.length===0?o:"At path: "+i.join(".")+" -- "+o;super(s),this.value=void 0,this.key=void 0,this.type=void 0,this.refinement=void 0,this.path=void 0,this.branch=void 0,this.failures=void 0,Object.assign(this,a),this.name=this.constructor.name,this.failures=()=>{var c;return(c=n)!=null?c:n=[e,...r()]}}}function vf(t){return J(t)&&typeof t[Symbol.iterator]=="function"}function J(t){return typeof t=="object"&&t!=null}function U(t){return typeof t=="string"?JSON.stringify(t):""+t}function mf(t){const{done:e,value:r}=t.next();return e?void 0:r}function gf(t,e,r,n){if(t===!0)return;t===!1?t={}:typeof t=="string"&&(t={message:t});const{path:o,branch:a}=e,{type:i}=r,{refinement:s,message:c="Expected a value of type `"+i+"`"+(s?" with refinement `"+s+"`":"")+", but received: `"+U(n)+"`"}=t;return{value:n,type:i,refinement:s,key:o[o.length-1],path:o,branch:a,...t,message:c}}function*vn(t,e,r,n){vf(t)||(t=[t]);for(const o of t){const a=gf(o,e,r,n);a&&(yield a)}}function*Cr(t,e,r){r===void 0&&(r={});const{path:n=[],branch:o=[t],coerce:a=!1,mask:i=!1}=r,s={path:n,branch:o};if(a&&(t=e.coercer(t,s),i&&e.type!=="type"&&J(e.schema)&&J(t)&&!Array.isArray(t)))for(const u in t)e.schema[u]===void 0&&delete t[u];let c="valid";for(const u of e.validator(t,s))c="not_valid",yield[u,void 0];for(let[u,l,p]of e.entries(t,s)){const f=Cr(l,p,{path:u===void 0?n:[...n,u],branch:u===void 0?o:[...o,l],coerce:a,mask:i});for(const d of f)d[0]?(c=d[0].refinement!=null?"not_refined":"not_valid",yield[d[0],void 0]):a&&(l=d[1],u===void 0?t=l:t instanceof Map?t.set(u,l):t instanceof Set?t.add(l):J(t)&&(t[u]=l))}if(c!=="not_valid")for(const u of e.refiner(t,s))c="not_refined",yield[u,void 0];c==="valid"&&(yield[void 0,t])}class X{constructor(e){this.TYPE=void 0,this.type=void 0,this.schema=void 0,this.coercer=void 0,this.validator=void 0,this.refiner=void 0,this.entries=void 0;const{type:r,schema:n,validator:o,refiner:a,coercer:i=c=>c,entries:s=function*(){}}=e;this.type=r,this.schema=n,this.entries=s,this.coercer=i,o?this.validator=(c,u)=>{const l=o(c,u);return vn(l,u,this,c)}:this.validator=()=>[],a?this.refiner=(c,u)=>{const l=a(c,u);return vn(l,u,this,c)}:this.refiner=()=>[]}assert(e){return yo(e,this)}create(e){return yf(e,this)}is(e){return _f(e,this)}mask(e){return bf(e,this)}validate(e,r){return r===void 0&&(r={}),At(e,this,r)}}function yo(t,e){const r=At(t,e);if(r[0])throw r[0]}function yf(t,e){const r=At(t,e,{coerce:!0});if(r[0])throw r[0];return r[1]}function bf(t,e){const r=At(t,e,{coerce:!0,mask:!0});if(r[0])throw r[0];return r[1]}function _f(t,e){return!At(t,e)[0]}function At(t,e,r){r===void 0&&(r={});const n=Cr(t,e,r),o=mf(n);return o[0]?[new go(o[0],function*(){for(const a of n)a[0]&&(yield a[0])}),void 0]:[void 0,o[1]]}function Er(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];const n=e[0].type==="type",o=e.map(i=>i.schema),a=Object.assign({},...o);return n?jo(a):w(a)}function st(t,e){return new X({type:t,schema:null,validator:e})}function jt(t){return new X({type:"dynamic",schema:null,*entries(e,r){yield*t(e,r).entries(e,r)},validator(e,r){return t(e,r).validator(e,r)},coercer(e,r){return t(e,r).coercer(e,r)},refiner(e,r){return t(e,r).refiner(e,r)}})}function bo(t,e){const{schema:r}=t,n={...r};for(const o of e)delete n[o];switch(t.type){case"type":return jo(n);default:return w(n)}}function x(){return st("any",()=>!0)}function P(t){return new X({type:"array",schema:t,*entries(e){if(t&&Array.isArray(e))for(const[r,n]of e.entries())yield[r,n,t]},coercer(e){return Array.isArray(e)?e.slice():e},validator(e){return Array.isArray(e)||"Expected an array value, but received: "+U(e)}})}function pt(){return st("boolean",t=>typeof t=="boolean")}function We(t){const e={},r=t.map(n=>U(n)).join();for(const n of t)e[n]=n;return new X({type:"enums",schema:e,validator(n){return t.includes(n)||"Expected one of `"+r+"`, but received: "+U(n)}})}function _o(){return st("func",t=>typeof t=="function"||"Expected a function, but received: "+U(t))}function L(t){const e=U(t),r=typeof t;return new X({type:"literal",schema:r==="string"||r==="number"||r==="boolean"?t:null,validator(n){return n===t||"Expected the literal `"+e+"`, but received: "+U(n)}})}function Sf(){return st("never",()=>!1)}function So(){return st("number",t=>typeof t=="number"&&!isNaN(t)||"Expected a number, but received: "+U(t))}function w(t){const e=t?Object.keys(t):[],r=Sf();return new X({type:"object",schema:t||null,*entries(n){if(t&&J(n)){const o=new Set(Object.keys(n));for(const a of e)o.delete(a),yield[a,n[a],t[a]];for(const a of o)yield[a,n[a],r]}},validator(n){return J(n)||"Expected an object, but received: "+U(n)},coercer(n){return J(n)?{...n}:n}})}function v(t){return new X({...t,validator:(e,r)=>e===void 0||t.validator(e,r),refiner:(e,r)=>e===void 0||t.refiner(e,r)})}function Ht(t,e){return new X({type:"record",schema:null,*entries(r){if(J(r))for(const n in r){const o=r[n];yield[n,n,t],yield[n,o,e]}},validator(r){return J(r)||"Expected an object, but received: "+U(r)}})}function m(){return st("string",t=>typeof t=="string"||"Expected a string, but received: "+U(t))}function jo(t){const e=Object.keys(t);return new X({type:"type",schema:t,*entries(r){if(J(r))for(const n of e)yield[n,r[n],t[n]]},validator(r){return J(r)||"Expected an object, but received: "+U(r)}})}function F(t){const e=t.map(r=>r.type).join(" | ");return new X({type:"union",schema:null,coercer(r,n){return(t.find(o=>{const[a]=o.validate(r,{coerce:!0});return!a})||jf()).coercer(r,n)},validator(r,n){const o=[];for(const a of t){const[...i]=Cr(r,a,n),[s]=i;if(s[0])for(const[c]of i)c&&o.push(c);else return[]}return["Expected the value to satisfy a union of `"+e+"`, but received: "+U(r),...o]}})}function jf(){return st("unknown",()=>!0)}const $r=w({package:m(),version:m(),name:m(),exportName:v(m()),destructuring:v(pt()),subName:v(m()),main:v(m()),cssPaths:v(P(m()))}),Of=P($r),wf=["CBlock","CContainer","CImage","CCanvas","CVideo","CAudio","CText","CNativeTag"];var V=(t=>(t.SLOT="SLOT",t.FUNCTION="FUNCTION",t.EXPRESSION="EXPRESSION",t))(V||{}),Nr=(t=>(t.DESIGN="design",t.SAVE="save",t))(Nr||{}),Je=(t=>(t.FUNC="FUNC",t.COMP="COMP",t))(Je||{});const Cf=()=>st("normalObj",t=>!B(t)||[V.SLOT,V.EXPRESSION,V.FUNCTION].includes(t==null?void 0:t.type)?!1:(At(t,Ht(m(),Tr)),!0)),Tr=F([m(),So(),pt(),w({type:L(V.SLOT),renderType:We([Je.FUNC,Je.COMP]),params:v(P(m())),value:jt(()=>F([Ot,P(Ot)]))}),w({type:L(V.EXPRESSION),value:m()}),w({type:L(V.FUNCTION),value:m()}),Cf(),P(jt(()=>Tr))]),mn=w({type:L(V.EXPRESSION),value:m()}),Ot=w({id:v(m()),title:v(m()),componentName:m(),props:v(Ht(m(),Tr)),nodeName:v(m()),state:v(Ht(m(),x())),children:jt(()=>v(P(F([m(),Ot])))),configure:v(x()),css:v(x()),style:v(x()),classNames:v(P(x())),refId:v(m()),extra:v(Ht(x(),x())),condition:v(F([pt(),mn])),loop:v(w({open:pt(),data:F([P(x()),mn]),args:v(P(m())),forName:v(m()),forIndex:v(m()),key:v(x()),name:v(m())})),methods:v(P(x()))}),de=F([m(),w({label:m(),tip:v(m())})]),Ef=w({type:L("shape"),value:P(w({name:m(),title:de,valueType:jt(()=>je)}))}),$f=w({type:L("enums"),value:P(m())});w({type:L("array"),value:jt(()=>je)});const Nf=w({type:L("array"),value:jt(()=>P(je))}),je=F([We(["array","boolean","number","object","string"]),We(["component","expression","function"]),Ef,$f,Nf]),Tf=F([m(),w({componentName:m(),props:v(x()),initialValue:v(x()),component:v(x()),hiddenLabel:v(pt())})]),Re=w({name:m(),title:de,valueType:je,description:v(m()),defaultValue:x(),setters:v(P(Tf)),condition:v(_o())});F([m(),_o()]);var Qe=(t=>(t.SINGLE="single",t.GROUP="group",t))(Qe||{});F([m(),w({name:m(),describe:v(m()),params:v(w({name:m(),description:m()})),template:m()})]);const xf=w({id:v(m()),title:m(),snapshot:F([m(),x()]),snapshotText:v(m()),description:v(m()),tags:v(P(m())),groupName:v(m()),category:v(m()),schema:Er(bo(Ot,["id"]),w({componentName:v(m())}))}),Af=w({componentName:m(),title:m(),screenshot:v(m()),icon:v(m()),tags:v(P(m())),groupName:v(m()),category:v(m()),priority:v(So()),npm:v($r),snippets:P(xf),props:P(F([Re,w({title:v(de),type:L("single"),content:Re}),w({title:v(de),type:L("group"),content:P(Re)})])),fixedProps:v(x()),isContainer:v(F([pt(),w({placeholder:m(),width:m(),height:m()})])),disableEditorDragDom:v(x()),isLayout:v(pt()),rootSelector:v(m()),advanceCustom:v(x()),extra:v(Ht(x(),x()))}),Mf=t=>({data:e,message:r,throwError:n})=>{const o=t({data:e,message:r,throwError:n});if(o.isValidate)return o;if(n)throw o.message||r?new Error(`${o.message||r}
|
|
2
2
|
originData: ${JSON.stringify(e)}`):new Error(`${JSON.stringify(e)}
|
|
3
3
|
data struct format is invalidate`);return o.message||r?console.warn(`${o.message||r}
|
|
4
4
|
originData: ${JSON.stringify(e)}`):console.warn(`${JSON.stringify(e)}
|
|
5
|
-
data struct format is invalidate`),o},xr=t=>{const{data:e,message:r,throwError:n,dataStruct:o}=t;return
|
|
6
|
-
`)),{isValidate:!1,message:s,error:i}}})({data:e,message:r,throwError:n})};var Pt=(t=>(t.ROOT_CONTAINER="RootContainer",t))(Pt||{});const Df=w({type:L(k.FUNCTION),value:m()}),If=Er(So(wt,["componentName"]),w({componentName:L("RootContainer")}));function Lf(t){return{all:t=t||new Map,on:function(e,r){var n=t.get(e);n?n.push(r):t.set(e,[r])},off:function(e,r){var n=t.get(e);n&&(r?n.splice(n.indexOf(r)>>>0,1):t.set(e,[]))},emit:function(e,r){var n=t.get(e);n&&n.slice().map(function(o){o(r)}),(n=t.get("*"))&&n.slice().map(function(o){o(e,r)})}}}const ne=Lf(),Ff=(t,e)=>{const r={...t,value:[]},n=t.value;let o=new ht([]);return e&&(o=e.materialsMode||new ht([])),n&&(R(n)?r.value=n.map(a=>new M(a,{parent:e,materials:o})):B(n)&&r.value.push(new M(n,{parent:e,materials:o}))),r};class Ct{constructor(e,r){_(this,"nodeType","SLOT"),_(this,"rawData"),_(this,"parent"),_(this,"emitter",ne),_(this,"data"),_(this,"id"),_(this,"materialsMode"),this.parent=(r==null?void 0:r.parent)||null,this.rawData=e;const n=(r==null?void 0:r.materials)||new ht([]);this.materialsMode=n,this.id=tt(),this.data=Ff(e,this)}get value(){return this.data}export(e){const r=this.data,n=o=>{if(o instanceof M)return o.export(e);if(B(o)){const a={};return Object.keys(o||{}).forEach(i=>{a[i]=n(o[i])}),a}return R(o)?o.map(a=>n(a)):(e==="design"&&delete o.id,o)};return n(r)}}const Co=t=>{let e=[];return t.forEach(r=>{const n=r;n.type?n.type===Qe.SINGLE?e.push(n.content):n.type===Qe.GROUP&&(e=[...e,...Co(n.content)]):e.push(r)}),e},qe=(t,e,r)=>{if(t.type)return t.type===k.SLOT?new Ct(t,{parent:e,materials:r}):t;if(B(t)){const n={};return Object.keys(t).forEach(o=>{n[o]=Ye(t[o],e,r)}),n}else return Array.isArray(t)?t.map(n=>qe(n,e,r)):t},Ye=(t,e,r)=>B(t)?qe(t,e,r):R(t)?t.map(n=>qe(n,e,r)):t;class at{constructor(e,r,n){_(this,"nodeType","PROP"),_(this,"rawData"),_(this,"parent"),_(this,"emitter",ne),_(this,"data"),_(this,"name"),_(this,"materialsMode");const o=(n==null?void 0:n.materials)||new ht([]);this.materialsMode=o,this.parent=n==null?void 0:n.parent,this.rawData=r,this.name=e,this.data=Ye(r,this,o)}isIncludeSlot(){return!1}isIncludeExpression(){return!1}get value(){return this.data}updateValue(e){const r=this.data;this.data=Ye(e??r,this,this.materialsMode),this.emitter.emit("onPropChange",{value:this.data,preValue:r,node:this}),this.parent&&!(this.parent instanceof Ct)&&this.emitter.emit("onNodeChange",{value:this.parent.value,preValue:this.parent.value,node:this.parent})}get material(){const e=this.parent;if(e instanceof M){const r=e.material;return Co((r==null?void 0:r.value.props)||[]).find(n=>n.name===this.name)}else return null}export(e){const r=this.data,n=o=>{if(o instanceof at||o instanceof Ct||o instanceof M)return o.export(e);if(R(o))return o.map(a=>n(a));if(B(o)){const a={};return Object.keys(o||{}).forEach(i=>{a[i]=n(o[i])}),a}return o};return n(r)}}const Bf=t=>{if(typeof t=="string")return!0;xr({data:t,dataStruct:wt,throwError:!1})},yn=(t,e,r=new ht([]))=>{if(typeof t=="string")return t;const n={...t,id:t.id??tt(),children:[],props:{},methods:t.methods||[],configure:go(t.configure||{},{propsSetter:{},advanceSetter:{}})},o=Object.keys(t.props||{});return o.length&&o.forEach(a=>{var i;const s=(i=t.props)==null?void 0:i[a];if(s instanceof at){n.props[a]=s;return}n.props[a]=new at(a,s||"",{parent:e,materials:r})}),t.children&&(Array.isArray(t.children)?n.children=t.children.map(a=>{if(a instanceof M)return a;if(B(a)){const i=a;return new M(i,{parent:e,materials:r})}else return a}):(t.children instanceof M&&(n.children=[t.children]),n.children=[new M(t.children,{parent:e,materials:r})])),n};class M{constructor(e,r){_(this,"nodeType","NODE"),_(this,"rawData"),_(this,"data"),_(this,"emitter",ne),_(this,"parent"),_(this,"materialsModel"),_(this,"listenerHandle"),_(this,"onChangeCbQueue"),this.rawData=JSON.parse(JSON.stringify(e)),Bf(e);const n=(r==null?void 0:r.materials)||new ht([]);this.parent=(r==null?void 0:r.parent)||null,this.materialsModel=n,this.data=yn(e,this,n),this.listenerHandle=[],this.onChangeCbQueue=[],this.registerListener()}registerListener(){const e=r=>{const{node:n}=r;n===this&&n.id===this.id&&this.onChangeCbQueue.forEach(o=>o(r))};this.emitter.on("onNodeChange",e),this.listenerHandle.push(()=>{this.emitter.off("onNodeChange",e)})}onChange(e){return this.onChangeCbQueue.push(e),()=>{this.onChangeCbQueue=this.onChangeCbQueue.filter(r=>r!==e)}}destroy(){this.listenerHandle.forEach(e=>e())}get id(){return this.data.id}get value(){return this.data}clone(e){const r={...this.export("design"),id:e||tt()};return new M(r,{materials:this.materialsModel})}updateWithPlainObj(e){const r={...this.data,...e};return this.data=yn(r,this),r}updateValue(e){const r=this.data,n=this.updateWithPlainObj(e);this.emitter.emit("onNodeChange",{value:n,preValue:r,node:this})}contains(e){return Mr(this,e)}get props(){return this.data.props}get material(){const e=this.materialsModel;return e==null?void 0:e.findByComponentName(this.data.componentName)}getPlainProps(){const e=this.data,r={};return Object.keys(e.props||{}).forEach(n=>{r[n]=e.props[n].export("design")}),r}getMaterialConfig(e){var r;return this.data.configure[e]!==void 0?this.data.configure.isContainer:(r=this.material)==null?void 0:r.value.isContainer}isContainer(){return this.getMaterialConfig("isContainer")}export(e){var r;const n=this.data;if(typeof n=="string")return n;const o={};Object.keys(n.props||{}).forEach(l=>{o[l]=n.props[l].export(e)});const a=(r=n.children)==null?void 0:r.map(l=>l instanceof M?l.export(e):l),i=n.configure||{},s=i.propsSetter||{},c={};Object.keys(s).forEach(l=>{const p=Kn(s,l,!1);p&&(c[l]=p)}),i.propsSetter=c,this.material&&this.materialsModel.usedMaterials.push(this.material);let u={...n,configure:i,props:o,children:a};return e==="design"&&delete u.id,u=Ar(u),u}}const bn=(t,e,r)=>{const n={...t,id:tt(),props:{},componentName:Pt.ROOT_CONTAINER,children:[],methods:t.methods||[],configure:go(t.configure||{},{propsSetter:{},advanceSetter:{}})};let o=[];R(t.children)?o=t.children.map(i=>i instanceof M?i:B(i)?new M(i,{parent:e,materials:r}):i):t.children instanceof M?o.push(t.children):t.children&&B(t.children)&&o.push(new M(t.children,{parent:e,materials:r}));const a=Object.keys(t.props||{});return a.length&&a.forEach(i=>{var s;const c=(s=t.props)==null?void 0:s[i];c instanceof at?n.props[i]=c:n.props[i]=new at(i,c||"",{parent:e,materials:r})}),n.children=o,n};class Zt{constructor(e,{parent:r,materials:n}){_(this,"rawData"),_(this,"data"),_(this,"nodeType",Pt.ROOT_CONTAINER),_(this,"emitter",ne),_(this,"materialsModel"),_(this,"listenerHandle"),_(this,"onChangeCbQueue"),_(this,"parent"),this.materialsModel=n,this.rawData=JSON.parse(JSON.stringify(e)),this.data=bn(e,this,n),this.listenerHandle=[],this.onChangeCbQueue=[],this.registerListener(),this.parent=r}registerListener(){const e=r=>{const{node:n}=r;n===this&&n.id===this.id&&this.onChangeCbQueue.forEach(o=>o(r))};this.emitter.on("onNodeChange",e),this.listenerHandle.push(()=>{this.emitter.off("onNodeChange",e)})}onChange(e){return this.onChangeCbQueue.push(e),()=>{this.onChangeCbQueue=this.onChangeCbQueue.filter(r=>r!==e)}}get id(){return this.data.id}get value(){return this.data}get props(){return this.data.props}get material(){const e=this.materialsModel;return e==null?void 0:e.findByComponentName(this.data.componentName)}updateWithPlainObj(e){const r={...this.data,...e};return this.data=bn(r,this,this.materialsModel),r}updateValue(e){const r=this.data;this.updateWithPlainObj(e),this.emitter.emit("onNodeChange",{value:this.data,preValue:r,node:this})}contains(e){return Mr(this,e)}getMaterialConfig(e){var r;return this.data.configure[e]!==void 0?this.data.configure.isContainer:(r=this.material)==null?void 0:r.value.isContainer}isContainer(){return this.getMaterialConfig("isContainer")}export(e=Nr.SAVE){var r;const n=this.data,o={};Object.keys(n.props||{}).forEach(c=>{o[c]=n.props[c].export(e)});const a=((r=n.children)==null?void 0:r.map(c=>{var u;return(u=c==null?void 0:c.export)==null?void 0:u.call(c,e)}))||[],i={...n,props:o,children:a.filter(c=>c)};let s=yo(i,["id"]);return s=Ar(s),s}getPlainProps(){const e=this.data,r={};return Object.keys(e.props||{}).forEach(n=>{r[n]=e.props[n].export("design")}),r}destroy(){this.listenerHandle.forEach(e=>e())}clone(e){const r={...this.export("design"),id:e||tt()};return new Zt(r,{materials:this.materialsModel,parent:null})}}const ut=t=>(t==null?void 0:t.type)===k.EXPRESSION,Uf=t=>(t==null?void 0:t.type)===k.FUNCTION,tt=()=>Math.random().toString(32).slice(3,9),kf=t=>(t==null?void 0:t.nodeType)==="NODE",De=t=>(t==null?void 0:t.nodeType)==="PROP",Vf=t=>(t==null?void 0:t.nodeType)==="SLOT",Ar=t=>uf(t,e=>B(e)?!Object.keys(e).length:R(e)?!e.length:!e);function zf(t,e){const r=[t];for(;r.length;){const n=r.shift();if(n&&e(n))return n;const o=(n==null?void 0:n.props)||{},a=s=>{if(s instanceof M){r.push(s);return}if(s instanceof Ct&&a(s.value.value),s instanceof at){a(s.value);return}if(B(s)){const c=s;Object.keys(c).forEach(u=>{a(c[u])});return}if(R(s)){s.forEach(c=>{a(c)});return}};a(o);const i=(n==null?void 0:n.value.children.filter(s=>s instanceof M))||[];r.push(...i)}}function Mr(t,e){return zf(t,r=>r.id===e)}const Gf=t=>{const e=uo(t),r=e.snippets;return delete e.snippets,e.snippets=r.map(n=>({...e,...n,id:n.id||`${t.componentName}-${tt()}`,title:n.title||t.title,category:n.category||t.category,tags:[...n.tags||[],...t.tags||[]],groupName:n.groupName||t.groupName,snapshot:n.snapshot||t.icon,snapshotText:n.snapshotText,schema:{...n.schema,componentName:n.schema.componentName||t.componentName}})),e};class Hf{constructor(e){_(this,"rawData"),_(this,"data"),this.rawData=e,this.data=Gf(e)}get value(){return this.data}get rawValue(){return this.rawData}get componentName(){return this.data.componentName}get snippets(){return this.data.snippets}getSnippetById(e){return this.data.snippets.find(r=>r.id===e)}}const Wf=t=>{if(!R(t))throw new Error("Materials must be a array");return t.map(e=>new Hf(e))},Jf=t=>{t==null||t.forEach(e=>{xr({data:e,dataStruct:Pf,throwError:!1})})};class ht{constructor(e){_(this,"rawData"),_(this,"data"),_(this,"usedMaterials",[]),this.rawData=e,Jf(e),this.data=Wf(e)}findByComponentName(e){return this.data.find(r=>r.componentName===e)}findSnippetById(e){const r=[...this.data];let n=null;for(;!n&&r.length;){const o=r.pop();n=o==null?void 0:o.getSnippetById(e)}return n}getAllSnippets(){const e=this.data.reduce((a,i)=>(a.push(...i.snippets),a),[]),r=[],n={default:[]};e.forEach(a=>{const i=a.groupName||"default";r.includes(i)||(r.push(i),n[i]=[]),n[i].push(a)});let o=[];return r.forEach(a=>{const i=["default"],s={default:[]},c=n[a];if(c.length!==0){c.forEach(p=>{const f=p.category||"default";i.includes(f)||(i.push(f),s[f]=[]),s[f].push(p)});const u=[];i.forEach(p=>{s[p].length&&u.push({name:p,list:s[p]})});const l={name:a,list:u};o.push(l)}}),o=o.sort((a,i)=>(a.name||"")>(i.name||"")?1:-1),o}get value(){return this.data}get rawValue(){return this.rawData}}const Qf=w({version:m(),name:m(),css:v(m()),renderType:v(F([L("COMPONENT"),L("PAGE")])),loadType:v(A()),lifecycle:v(A()),props:v(A()),methods:v(P(Df)),componentsMeta:P(Er(w({componentName:m()}),$r)),thirdLibs:v(Cf),componentsTree:If,assets:v(P(A()))}),Eo=t=>(xr({data:t,dataStruct:Qf,throwError:!1}),t),Ie=(t,e,r)=>({...t,componentsTree:new Zt(t.componentsTree,{parent:e,materials:r})});class he{constructor(e,r){_(this,"nodeType","PAGE"),_(this,"rawData"),_(this,"emitter",ne),_(this,"data"),_(this,"parent"),_(this,"materialsModel"),_(this,"assetPackagesList"),Eo(e),this.rawData=JSON.parse(JSON.stringify(e)),this.materialsModel=new ht((r==null?void 0:r.materials)||[]),this.data=Ie(e,this,this.materialsModel),this.assetPackagesList=[...(r==null?void 0:r.assetPackagesList)||[],...this.data.assets||[]]}updatePage(e){const r=this.data;this.rawData=JSON.parse(JSON.stringify(e)),this.data=Ie(e,this,this.materialsModel),this.emitter.emit("onPageChange",{value:this.data,preValue:r,node:this})}reloadPage(e){const r=this.data;this.rawData=JSON.parse(JSON.stringify(e)),this.data=Ie(e,this,this.materialsModel),this.emitter.emit("onReloadPage",{value:this.data,preValue:r,node:this})}get value(){return this.data}getNode(e){if(!e)return;const r=this.data.componentsTree;return Mr(r,e)}addNode(e,r,n="AFTER"){var o;if(n==="AFTER"||n==="BEFORE"){const a=r.parent;if(a===null&&r instanceof Zt)return console.warn("Not found parent node"),!1;if(a instanceof at)return console.warn("CProp can not add node"),!1;if(a instanceof Ct){const s=a.value.value,c=s.findIndex(u=>u===r)??-1;return c>=0?(n==="BEFORE"?s.splice(c,0,e):s.splice(c+1,0,e),e.parent=a,(o=a.parent)==null||o.updateValue(),!0):!1}if(a instanceof he)return!1;const i=(a==null?void 0:a.value.children.findIndex(s=>s===r))??-1;return i>=0?(n==="BEFORE"?a==null||a.value.children.splice(i,0,e):a==null||a.value.children.splice(i+1,0,e),e.parent=a,a==null||a.updateValue(),!0):(console.warn("Not found target node"),!1)}if(n==="CHILD_START")return r.value.children.unshift(e),e.parent=r,r.updateValue(),!0;if(n==="CHILD_END")return r.value.children.push(e),e.parent=r,r.updateValue(),!0;if(B(n)){const a=n;if(a.type==="CHILD"){const i=a.pos,s=a.index||0;return i==="BEFORE"?r==null||r.value.children.splice(s,0,e):r==null||r.value.children.splice(s+1,0,e),e.parent=r,r.updateValue(),!0}else console.warn("Can not parse pos obj")}return!1}createNode(e){return delete e.id,new M(e,{parent:null,materials:this.materialsModel})}addNodeById(e,r,n="AFTER"){const o=this.getNode(r);return o?this.addNode(e,o,n):(console.warn(`Not find a node by ${r}, pls check it`),!1)}copyNode(e){const r=e.export("design");r.id=tt();const n=new M(r,{parent:e.parent,materials:this.materialsModel});return this.addNode(n,e,"AFTER"),n}copyNodeById(e){const r=this.getNode(e);return r&&r instanceof M?this.copyNode(r):!1}moveNode(e,r,n){this.deleteNode(e);let o=r;return["AFTER","BEFORE"].includes(n)&&(o=r.parent),e.parent=o,this.addNode(e,r,n)}moveNodeById(e,r,n){const o=this.getNode(e),a=this.getNode(r);return o&&a&&o instanceof M&&a instanceof M?this.moveNode(o,a,n):!1}deleteNode(e){var r;const n=e.parent;if(!n)throw new Error("parent node is null or undefined, pls check it");if(n instanceof Ct){const o=n.value.value,a=o.findIndex(s=>s===e),i=o[a];return o.splice(a,1),(r=n.parent)==null||r.updateValue(),i}if(n instanceof M||n instanceof Zt){const o=n.value.children,a=o.findIndex(s=>s===e),i=o[a];return o.splice(a,1),n.updateValue(),i}}deleteNodeById(e){const r=this.getNode(e);if(r)return this.deleteNode(r)}export(e=Nr.SAVE){var r;const n=this.data.componentsTree.export(e),o=this.assetPackagesList,a=[],i=this.materialsModel.usedMaterials.map(c=>{const u=o.find(l=>{var p;return l.package===((p=c.value.npm)==null?void 0:p.package)});return u&&a.push(u),{componentName:c.componentName,...uo(c.value.npm||{})}}).filter(c=>!!(c.componentName&&c.package&&c.version));this.materialsModel.usedMaterials=[];let s={...this.data,componentsTree:Ar(n),componentsMeta:i,thirdLibs:this.data.thirdLibs,assets:[]};return(r=this.data.thirdLibs)==null||r.forEach(c=>{const u=o.find(l=>c.package===l.package);u&&a.push(u)}),s.assets=mf(a,c=>c.package),s=yo(s,["id"]),JSON.parse(JSON.stringify(s))}getRootNode(){return this.data.componentsTree}}Pt.ROOT_CONTAINER;var qf=typeof global=="object"&&global&&global.Object===Object&&global;const $o=qf;var Yf=typeof self=="object"&&self&&self.Object===Object&&self,Kf=$o||Yf||Function("return this")();const Rt=Kf;var Xf=Rt.Symbol;const Et=Xf;var No=Object.prototype,Zf=No.hasOwnProperty,tp=No.toString,Vt=Et?Et.toStringTag:void 0;function ep(t){var e=Zf.call(t,Vt),r=t[Vt];try{t[Vt]=void 0;var n=!0}catch{}var o=tp.call(t);return n&&(e?t[Vt]=r:delete t[Vt]),o}var rp=Object.prototype,np=rp.toString;function op(t){return np.call(t)}var ap="[object Null]",sp="[object Undefined]",_n=Et?Et.toStringTag:void 0;function oe(t){return t==null?t===void 0?sp:ap:_n&&_n in Object(t)?ep(t):op(t)}function Dt(t){return t!=null&&typeof t=="object"}var ip="[object Symbol]";function cp(t){return typeof t=="symbol"||Dt(t)&&oe(t)==ip}function up(t,e){for(var r=-1,n=t==null?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}var lp=Array.isArray;const $t=lp;var fp=1/0,Sn=Et?Et.prototype:void 0,jn=Sn?Sn.toString:void 0;function To(t){if(typeof t=="string")return t;if($t(t))return up(t,To)+"";if(cp(t))return jn?jn.call(t):"";var e=t+"";return e=="0"&&1/t==-fp?"-0":e}function bt(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function xo(t){return t}var pp="[object AsyncFunction]",dp="[object Function]",hp="[object GeneratorFunction]",vp="[object Proxy]";function Pr(t){if(!bt(t))return!1;var e=oe(t);return e==dp||e==hp||e==pp||e==vp}var mp=Rt["__core-js_shared__"];const Le=mp;var On=function(){var t=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function gp(t){return!!On&&On in t}var yp=Function.prototype,bp=yp.toString;function _p(t){if(t!=null){try{return bp.call(t)}catch{}try{return t+""}catch{}}return""}var Sp=/[\\^$.*+?()[\]{}|]/g,jp=/^\[object .+?Constructor\]$/,Op=Function.prototype,wp=Object.prototype,Cp=Op.toString,Ep=wp.hasOwnProperty,$p=RegExp("^"+Cp.call(Ep).replace(Sp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Np(t){if(!bt(t)||gp(t))return!1;var e=Pr(t)?$p:jp;return e.test(_p(t))}function Tp(t,e){return t==null?void 0:t[e]}function Rr(t,e){var r=Tp(t,e);return Np(r)?r:void 0}var wn=Object.create,xp=function(){function t(){}return function(e){if(!bt(e))return{};if(wn)return wn(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();const Ap=xp;function Mp(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function Pp(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}var Rp=800,Dp=16,Ip=Date.now;function Lp(t){var e=0,r=0;return function(){var n=Ip(),o=Dp-(n-r);if(r=n,o>0){if(++e>=Rp)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Fp(t){return function(){return t}}var Bp=function(){try{var t=Rr(Object,"defineProperty");return t({},"",{}),t}catch{}}();const ve=Bp;var Up=ve?function(t,e){return ve(t,"toString",{configurable:!0,enumerable:!1,value:Fp(e),writable:!0})}:xo;const kp=Up;var Vp=Lp(kp);const zp=Vp;var Gp=9007199254740991,Hp=/^(?:0|[1-9]\d*)$/;function Ao(t,e){var r=typeof t;return e=e??Gp,!!e&&(r=="number"||r!="symbol"&&Hp.test(t))&&t>-1&&t%1==0&&t<e}function Dr(t,e,r){e=="__proto__"&&ve?ve(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function Oe(t,e){return t===e||t!==t&&e!==e}var Wp=Object.prototype,Jp=Wp.hasOwnProperty;function Qp(t,e,r){var n=t[e];(!(Jp.call(t,e)&&Oe(n,r))||r===void 0&&!(e in t))&&Dr(t,e,r)}function qp(t,e,r,n){var o=!r;r||(r={});for(var a=-1,i=e.length;++a<i;){var s=e[a],c=n?n(r[s],t[s],s,r,t):void 0;c===void 0&&(c=t[s]),o?Dr(r,s,c):Qp(r,s,c)}return r}var Cn=Math.max;function Yp(t,e,r){return e=Cn(e===void 0?t.length-1:e,0),function(){for(var n=arguments,o=-1,a=Cn(n.length-e,0),i=Array(a);++o<a;)i[o]=n[e+o];o=-1;for(var s=Array(e+1);++o<e;)s[o]=n[o];return s[e]=r(i),Mp(t,this,s)}}function Kp(t,e){return zp(Yp(t,e,xo),t+"")}var Xp=9007199254740991;function Mo(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Xp}function Ir(t){return t!=null&&Mo(t.length)&&!Pr(t)}function Zp(t,e,r){if(!bt(r))return!1;var n=typeof e;return(n=="number"?Ir(r)&&Ao(e,r.length):n=="string"&&e in r)?Oe(r[e],t):!1}function td(t){return Kp(function(e,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=t.length>3&&typeof a=="function"?(o--,a):void 0,i&&Zp(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),e=Object(e);++n<o;){var s=r[n];s&&t(e,s,n,a)}return e})}var ed=Object.prototype;function Po(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||ed;return t===r}function rd(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var nd="[object Arguments]";function En(t){return Dt(t)&&oe(t)==nd}var Ro=Object.prototype,od=Ro.hasOwnProperty,ad=Ro.propertyIsEnumerable,sd=En(function(){return arguments}())?En:function(t){return Dt(t)&&od.call(t,"callee")&&!ad.call(t,"callee")};const Ke=sd;function id(){return!1}var Do=typeof exports=="object"&&exports&&!exports.nodeType&&exports,$n=Do&&typeof module=="object"&&module&&!module.nodeType&&module,cd=$n&&$n.exports===Do,Nn=cd?Rt.Buffer:void 0,ud=Nn?Nn.isBuffer:void 0,ld=ud||id;const Io=ld;var fd="[object Arguments]",pd="[object Array]",dd="[object Boolean]",hd="[object Date]",vd="[object Error]",md="[object Function]",gd="[object Map]",yd="[object Number]",bd="[object Object]",_d="[object RegExp]",Sd="[object Set]",jd="[object String]",Od="[object WeakMap]",wd="[object ArrayBuffer]",Cd="[object DataView]",Ed="[object Float32Array]",$d="[object Float64Array]",Nd="[object Int8Array]",Td="[object Int16Array]",xd="[object Int32Array]",Ad="[object Uint8Array]",Md="[object Uint8ClampedArray]",Pd="[object Uint16Array]",Rd="[object Uint32Array]",T={};T[Ed]=T[$d]=T[Nd]=T[Td]=T[xd]=T[Ad]=T[Md]=T[Pd]=T[Rd]=!0;T[fd]=T[pd]=T[wd]=T[dd]=T[Cd]=T[hd]=T[vd]=T[md]=T[gd]=T[yd]=T[bd]=T[_d]=T[Sd]=T[jd]=T[Od]=!1;function Dd(t){return Dt(t)&&Mo(t.length)&&!!T[oe(t)]}function Id(t){return function(e){return t(e)}}var Lo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Wt=Lo&&typeof module=="object"&&module&&!module.nodeType&&module,Ld=Wt&&Wt.exports===Lo,Fe=Ld&&$o.process,Fd=function(){try{var t=Wt&&Wt.require&&Wt.require("util").types;return t||Fe&&Fe.binding&&Fe.binding("util")}catch{}}();const Tn=Fd;var xn=Tn&&Tn.isTypedArray,Bd=xn?Id(xn):Dd;const Fo=Bd;var Ud=Object.prototype,kd=Ud.hasOwnProperty;function Vd(t,e){var r=$t(t),n=!r&&Ke(t),o=!r&&!n&&Io(t),a=!r&&!n&&!o&&Fo(t),i=r||n||o||a,s=i?rd(t.length,String):[],c=s.length;for(var u in t)(e||kd.call(t,u))&&!(i&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Ao(u,c)))&&s.push(u);return s}function zd(t,e){return function(r){return t(e(r))}}function Gd(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var Hd=Object.prototype,Wd=Hd.hasOwnProperty;function Jd(t){if(!bt(t))return Gd(t);var e=Po(t),r=[];for(var n in t)n=="constructor"&&(e||!Wd.call(t,n))||r.push(n);return r}function Bo(t){return Ir(t)?Vd(t,!0):Jd(t)}var Qd=Rr(Object,"create");const te=Qd;function qd(){this.__data__=te?te(null):{},this.size=0}function Yd(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Kd="__lodash_hash_undefined__",Xd=Object.prototype,Zd=Xd.hasOwnProperty;function th(t){var e=this.__data__;if(te){var r=e[t];return r===Kd?void 0:r}return Zd.call(e,t)?e[t]:void 0}var eh=Object.prototype,rh=eh.hasOwnProperty;function nh(t){var e=this.__data__;return te?e[t]!==void 0:rh.call(e,t)}var oh="__lodash_hash_undefined__";function ah(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=te&&e===void 0?oh:e,this}function vt(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}vt.prototype.clear=qd;vt.prototype.delete=Yd;vt.prototype.get=th;vt.prototype.has=nh;vt.prototype.set=ah;function sh(){this.__data__=[],this.size=0}function we(t,e){for(var r=t.length;r--;)if(Oe(t[r][0],e))return r;return-1}var ih=Array.prototype,ch=ih.splice;function uh(t){var e=this.__data__,r=we(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():ch.call(e,r,1),--this.size,!0}function lh(t){var e=this.__data__,r=we(e,t);return r<0?void 0:e[r][1]}function fh(t){return we(this.__data__,t)>-1}function ph(t,e){var r=this.__data__,n=we(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function nt(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}nt.prototype.clear=sh;nt.prototype.delete=uh;nt.prototype.get=lh;nt.prototype.has=fh;nt.prototype.set=ph;var dh=Rr(Rt,"Map");const Uo=dh;function hh(){this.size=0,this.__data__={hash:new vt,map:new(Uo||nt),string:new vt}}function vh(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Ce(t,e){var r=t.__data__;return vh(e)?r[typeof e=="string"?"string":"hash"]:r.map}function mh(t){var e=Ce(this,t).delete(t);return this.size-=e?1:0,e}function gh(t){return Ce(this,t).get(t)}function yh(t){return Ce(this,t).has(t)}function bh(t,e){var r=Ce(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}function It(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}It.prototype.clear=hh;It.prototype.delete=mh;It.prototype.get=gh;It.prototype.has=yh;It.prototype.set=bh;function ko(t){return t==null?"":To(t)}var _h=zd(Object.getPrototypeOf,Object);const Vo=_h;var Sh="[object Object]",jh=Function.prototype,Oh=Object.prototype,zo=jh.toString,wh=Oh.hasOwnProperty,Ch=zo.call(Object);function Nt(t){if(!Dt(t)||oe(t)!=Sh)return!1;var e=Vo(t);if(e===null)return!0;var r=wh.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&zo.call(r)==Ch}function Eh(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),r=r>o?o:r,r<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var a=Array(o);++n<o;)a[n]=t[n+e];return a}function $h(t,e,r){var n=t.length;return r=r===void 0?n:r,!e&&r>=n?t:Eh(t,e,r)}var Nh="\\ud800-\\udfff",Th="\\u0300-\\u036f",xh="\\ufe20-\\ufe2f",Ah="\\u20d0-\\u20ff",Mh=Th+xh+Ah,Ph="\\ufe0e\\ufe0f",Rh="\\u200d",Dh=RegExp("["+Rh+Nh+Mh+Ph+"]");function Go(t){return Dh.test(t)}function Ih(t){return t.split("")}var Ho="\\ud800-\\udfff",Lh="\\u0300-\\u036f",Fh="\\ufe20-\\ufe2f",Bh="\\u20d0-\\u20ff",Uh=Lh+Fh+Bh,kh="\\ufe0e\\ufe0f",Vh="["+Ho+"]",Xe="["+Uh+"]",Ze="\\ud83c[\\udffb-\\udfff]",zh="(?:"+Xe+"|"+Ze+")",Wo="[^"+Ho+"]",Jo="(?:\\ud83c[\\udde6-\\uddff]){2}",Qo="[\\ud800-\\udbff][\\udc00-\\udfff]",Gh="\\u200d",qo=zh+"?",Yo="["+kh+"]?",Hh="(?:"+Gh+"(?:"+[Wo,Jo,Qo].join("|")+")"+Yo+qo+")*",Wh=Yo+qo+Hh,Jh="(?:"+[Wo+Xe+"?",Xe,Jo,Qo,Vh].join("|")+")",Qh=RegExp(Ze+"(?="+Ze+")|"+Jh+Wh,"g");function qh(t){return t.match(Qh)||[]}function Yh(t){return Go(t)?qh(t):Ih(t)}function Kh(t){return function(e){e=ko(e);var r=Go(e)?Yh(e):void 0,n=r?r[0]:e.charAt(0),o=r?$h(r,1).join(""):e.slice(1);return n[t]()+o}}var Xh=Kh("toUpperCase");const Zh=Xh;function tv(t){return Zh(ko(t).toLowerCase())}function ev(){this.__data__=new nt,this.size=0}function rv(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}function nv(t){return this.__data__.get(t)}function ov(t){return this.__data__.has(t)}var av=200;function sv(t,e){var r=this.__data__;if(r instanceof nt){var n=r.__data__;if(!Uo||n.length<av-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new It(n)}return r.set(t,e),this.size=r.size,this}function Lt(t){var e=this.__data__=new nt(t);this.size=e.size}Lt.prototype.clear=ev;Lt.prototype.delete=rv;Lt.prototype.get=nv;Lt.prototype.has=ov;Lt.prototype.set=sv;var Ko=typeof exports=="object"&&exports&&!exports.nodeType&&exports,An=Ko&&typeof module=="object"&&module&&!module.nodeType&&module,iv=An&&An.exports===Ko,Mn=iv?Rt.Buffer:void 0,Pn=Mn?Mn.allocUnsafe:void 0;function cv(t,e){if(e)return t.slice();var r=t.length,n=Pn?Pn(r):new t.constructor(r);return t.copy(n),n}var uv=Rt.Uint8Array;const Rn=uv;function lv(t){var e=new t.constructor(t.byteLength);return new Rn(e).set(new Rn(t)),e}function fv(t,e){var r=e?lv(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function pv(t){return typeof t.constructor=="function"&&!Po(t)?Ap(Vo(t)):{}}function dv(t){return function(e,r,n){for(var o=-1,a=Object(e),i=n(e),s=i.length;s--;){var c=i[t?s:++o];if(r(a[c],c,a)===!1)break}return e}}var hv=dv();const vv=hv;function tr(t,e,r){(r!==void 0&&!Oe(t[e],r)||r===void 0&&!(e in t))&&Dr(t,e,r)}function mv(t){return Dt(t)&&Ir(t)}function er(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function gv(t){return qp(t,Bo(t))}function yv(t,e,r,n,o,a,i){var s=er(t,r),c=er(e,r),u=i.get(c);if(u){tr(t,r,u);return}var l=a?a(s,c,r+"",t,e,i):void 0,p=l===void 0;if(p){var f=$t(c),d=!f&&Io(c),h=!f&&!d&&Fo(c);l=c,f||d||h?$t(s)?l=s:mv(s)?l=Pp(s):d?(p=!1,l=cv(c,!0)):h?(p=!1,l=fv(c,!0)):l=[]:Nt(c)||Ke(c)?(l=s,Ke(s)?l=gv(s):(!bt(s)||Pr(s))&&(l=pv(c))):p=!1}p&&(i.set(c,l),o(l,c,n,a,i),i.delete(c)),tr(t,r,l)}function Xo(t,e,r,n,o){t!==e&&vv(e,function(a,i){if(o||(o=new Lt),bt(a))yv(t,e,i,r,Xo,n,o);else{var s=n?n(er(t,i),a,i+"",t,e,o):void 0;s===void 0&&(s=a),tr(t,i,s)}},Bo)}var bv=td(function(t,e,r){Xo(t,e,r)});const _v=bv,Sv=function(t){return!(!t||typeof t!="function"||!t.prototype)};function Zo(t){const e=t==null?void 0:t.prototype;return!!(e&&e.isReactComponent)}function ta(t){var n,o;const r=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.forward_ref"):60112;return(t==null?void 0:t.$$typeof)===r||((n=t==null?void 0:t.prototype)==null?void 0:n.isReactComponent)||((o=t==null?void 0:t.prototype)==null?void 0:o.setState)||t._forwardRef}function ea(t){class e extends S.Component{render(){return S.createElement(t,this.props)}}return e.displayName=t.displayName,e}const ft=(t,e)=>{const r=n=>{const a=`
|
|
5
|
+
data struct format is invalidate`),o},xr=t=>{const{data:e,message:r,throwError:n,dataStruct:o}=t;return Mf(({data:a})=>{try{return yo(a,o),{isValidate:!0}}catch(i){let s=i;return i instanceof go&&(s=i.failures().map(c=>`【${c.path.join(".")}】: ${c.message}
|
|
6
|
+
`)),{isValidate:!1,message:s,error:i}}})({data:e,message:r,throwError:n})};var Mt=(t=>(t.ROOT_CONTAINER="RootContainer",t))(Mt||{});const Pf=w({type:L(V.FUNCTION),value:m()}),Rf=Er(bo(Ot,["componentName"]),w({componentName:L("RootContainer")}));function Df(t){return{all:t=t||new Map,on:function(e,r){var n=t.get(e);n?n.push(r):t.set(e,[r])},off:function(e,r){var n=t.get(e);n&&(r?n.splice(n.indexOf(r)>>>0,1):t.set(e,[]))},emit:function(e,r){var n=t.get(e);n&&n.slice().map(function(o){o(r)}),(n=t.get("*"))&&n.slice().map(function(o){o(e,r)})}}}const ne=Df(),If=(t,e)=>{const r={...t,value:[]},n=t.value;let o=new dt([]);return e&&(o=e.materialsMode||new dt([])),n&&(R(n)?r.value=n.map(a=>new A(a,{parent:e,materials:o})):B(n)&&r.value.push(new A(n,{parent:e,materials:o}))),r};class wt{constructor(e,r){_(this,"nodeType","SLOT"),_(this,"rawData"),_(this,"parent"),_(this,"emitter",ne),_(this,"data"),_(this,"id"),_(this,"materialsMode"),this.parent=(r==null?void 0:r.parent)||null,this.rawData=e;const n=(r==null?void 0:r.materials)||new dt([]);this.materialsMode=n,this.id=Z(),this.data=If(e,this)}get value(){return this.data}export(e){const r=this.data,n=o=>{if(o instanceof A)return o.export(e);if(B(o)){const a={};return Object.keys(o||{}).forEach(i=>{a[i]=n(o[i])}),a}return R(o)?o.map(a=>n(a)):(e==="design"&&delete o.id,o)};return n(r)}}const Oo=t=>{let e=[];return t.forEach(r=>{const n=r;n.type?n.type===Qe.SINGLE?e.push(n.content):n.type===Qe.GROUP&&(e=[...e,...Oo(n.content)]):e.push(r)}),e},qe=(t,e,r)=>{if(t.type)return t.type===V.SLOT?new wt(t,{parent:e,materials:r}):t;if(B(t)){const n={};return Object.keys(t).forEach(o=>{n[o]=Ye(t[o],e,r)}),n}else return Array.isArray(t)?t.map(n=>qe(n,e,r)):t},Ye=(t,e,r)=>B(t)?qe(t,e,r):R(t)?t.map(n=>qe(n,e,r)):t;class at{constructor(e,r,n){_(this,"nodeType","PROP"),_(this,"rawData"),_(this,"parent"),_(this,"emitter",ne),_(this,"data"),_(this,"name"),_(this,"materialsMode");const o=(n==null?void 0:n.materials)||new dt([]);this.materialsMode=o,this.parent=n==null?void 0:n.parent,this.rawData=r,this.name=e,this.data=Ye(r,this,o)}isIncludeSlot(){return!1}isIncludeExpression(){return!1}get value(){return this.data}updateValue(e){const r=this.data;this.data=Ye(e??r,this,this.materialsMode),this.emitter.emit("onPropChange",{value:this.data,preValue:r,node:this}),this.parent&&!(this.parent instanceof wt)&&this.emitter.emit("onNodeChange",{value:this.parent.value,preValue:this.parent.value,node:this.parent})}get material(){const e=this.parent;if(e instanceof A){const r=e.material;return Oo((r==null?void 0:r.value.props)||[]).find(n=>n.name===this.name)}else return null}export(e){const r=this.data,n=o=>{if(o instanceof at||o instanceof wt||o instanceof A)return o.export(e);if(R(o))return o.map(a=>n(a));if(B(o)){const a={};return Object.keys(o||{}).forEach(i=>{a[i]=n(o[i])}),a}return o};return n(r)}}const Lf=t=>{if(typeof t=="string")return!0;xr({data:t,dataStruct:Ot,throwError:!1})},gn=(t,e,r=new dt([]))=>{if(typeof t=="string")return t;const n={...t,id:t.id??Z(),children:[],props:{},methods:t.methods||[],configure:vo(t.configure||{},{propsSetter:{},advanceSetter:{}})},o=Object.keys(t.props||{});return o.length&&o.forEach(a=>{var i;const s=(i=t.props)==null?void 0:i[a];if(s instanceof at){n.props[a]=s;return}n.props[a]=new at(a,s||"",{parent:e,materials:r})}),t.children&&(Array.isArray(t.children)?n.children=t.children.map(a=>{if(a instanceof A)return a;if(B(a)){const i=a;return new A(i,{parent:e,materials:r})}else return a}):(t.children instanceof A&&(n.children=[t.children]),n.children=[new A(t.children,{parent:e,materials:r})])),n};class A{constructor(e,r){_(this,"nodeType","NODE"),_(this,"rawData"),_(this,"data"),_(this,"emitter",ne),_(this,"parent"),_(this,"materialsModel"),_(this,"listenerHandle"),_(this,"onChangeCbQueue"),this.rawData=JSON.parse(JSON.stringify(e)),Lf(e);const n=(r==null?void 0:r.materials)||new dt([]);this.parent=(r==null?void 0:r.parent)||null,this.materialsModel=n,this.data=gn(e,this,n),this.listenerHandle=[],this.onChangeCbQueue=[],this.registerListener()}registerListener(){const e=r=>{const{node:n}=r;n===this&&n.id===this.id&&this.onChangeCbQueue.forEach(o=>o(r))};this.emitter.on("onNodeChange",e),this.listenerHandle.push(()=>{this.emitter.off("onNodeChange",e)})}onChange(e){return this.onChangeCbQueue.push(e),()=>{this.onChangeCbQueue=this.onChangeCbQueue.filter(r=>r!==e)}}destroy(){this.listenerHandle.forEach(e=>e())}get id(){return this.data.id}get value(){return this.data}clone(e){const r={...this.export("design"),id:e||Z()};return new A(r,{materials:this.materialsModel})}updateWithPlainObj(e){const r={...this.data,...e};return this.data=gn(r,this),r}updateValue(e){const r=this.data,n=this.updateWithPlainObj(e);this.emitter.emit("onNodeChange",{value:n,preValue:r,node:this})}contains(e){return Mr(this,e)}get props(){return this.data.props}get material(){const e=this.materialsModel;return e==null?void 0:e.findByComponentName(this.data.componentName)}getPlainProps(){const e=this.data,r={};return Object.keys(e.props||{}).forEach(n=>{r[n]=e.props[n].export("design")}),r}getMaterialConfig(e){var r;return this.data.configure[e]!==void 0?this.data.configure.isContainer:(r=this.material)==null?void 0:r.value.isContainer}isContainer(){return this.getMaterialConfig("isContainer")}export(e){var r;const n=this.data;if(typeof n=="string")return n;const o={};Object.keys(n.props||{}).forEach(l=>{o[l]=n.props[l].export(e)});const a=(r=n.children)==null?void 0:r.map(l=>l instanceof A?l.export(e):l),i=n.configure||{},s=i.propsSetter||{},c={};Object.keys(s).forEach(l=>{const p=qn(s,l,!1);p&&(c[l]=p)}),i.propsSetter=c,this.material&&this.materialsModel.usedMaterials.push(this.material);let u={...n,configure:i,props:o,children:a};return e==="design"&&delete u.id,u=Ar(u),u}}const yn=(t,e,r)=>{const n={...t,id:Z(),props:{},componentName:Mt.ROOT_CONTAINER,children:[],methods:t.methods||[],configure:vo(t.configure||{},{propsSetter:{},advanceSetter:{}})};let o=[];R(t.children)?o=t.children.map(i=>i instanceof A?i:B(i)?new A(i,{parent:e,materials:r}):i):t.children instanceof A?o.push(t.children):t.children&&B(t.children)&&o.push(new A(t.children,{parent:e,materials:r}));const a=Object.keys(t.props||{});return a.length&&a.forEach(i=>{var s;const c=(s=t.props)==null?void 0:s[i];c instanceof at?n.props[i]=c:n.props[i]=new at(i,c||"",{parent:e,materials:r})}),n.children=o,n};class Zt{constructor(e,{parent:r,materials:n}){_(this,"rawData"),_(this,"data"),_(this,"nodeType",Mt.ROOT_CONTAINER),_(this,"emitter",ne),_(this,"materialsModel"),_(this,"listenerHandle"),_(this,"onChangeCbQueue"),_(this,"parent"),this.materialsModel=n,this.rawData=JSON.parse(JSON.stringify(e)),this.data=yn(e,this,n),this.listenerHandle=[],this.onChangeCbQueue=[],this.registerListener(),this.parent=r}registerListener(){const e=r=>{const{node:n}=r;n===this&&n.id===this.id&&this.onChangeCbQueue.forEach(o=>o(r))};this.emitter.on("onNodeChange",e),this.listenerHandle.push(()=>{this.emitter.off("onNodeChange",e)})}onChange(e){return this.onChangeCbQueue.push(e),()=>{this.onChangeCbQueue=this.onChangeCbQueue.filter(r=>r!==e)}}get id(){return this.data.id}get value(){return this.data}get props(){return this.data.props}get material(){const e=this.materialsModel;return e==null?void 0:e.findByComponentName(this.data.componentName)}updateWithPlainObj(e){const r={...this.data,...e};return this.data=yn(r,this,this.materialsModel),r}updateValue(e){const r=this.data;this.updateWithPlainObj(e),this.emitter.emit("onNodeChange",{value:this.data,preValue:r,node:this})}contains(e){return Mr(this,e)}getMaterialConfig(e){var r;return this.data.configure[e]!==void 0?this.data.configure.isContainer:(r=this.material)==null?void 0:r.value.isContainer}isContainer(){return this.getMaterialConfig("isContainer")}export(e=Nr.SAVE){var r;const n=this.data,o={};Object.keys(n.props||{}).forEach(c=>{o[c]=n.props[c].export(e)});const a=((r=n.children)==null?void 0:r.map(c=>{var u;return(u=c==null?void 0:c.export)==null?void 0:u.call(c,e)}))||[],i={...n,props:o,children:a.filter(c=>c)};let s=mo(i,["id"]);return s=Ar(s),s}getPlainProps(){const e=this.data,r={};return Object.keys(e.props||{}).forEach(n=>{r[n]=e.props[n].export("design")}),r}destroy(){this.listenerHandle.forEach(e=>e())}clone(e){const r={...this.export("design"),id:e||Z()};return new Zt(r,{materials:this.materialsModel,parent:null})}}const ct=t=>(t==null?void 0:t.type)===V.EXPRESSION,Ff=t=>(t==null?void 0:t.type)===V.FUNCTION,Z=()=>Math.random().toString(32).slice(3,9),Bf=t=>(t==null?void 0:t.nodeType)==="NODE",De=t=>(t==null?void 0:t.nodeType)==="PROP",Uf=t=>(t==null?void 0:t.nodeType)==="SLOT",Ar=t=>sf(t,e=>B(e)?!Object.keys(e).length:R(e)?!e.length:!e);function kf(t,e){const r=[t];for(;r.length;){const n=r.shift();if(n&&e(n))return n;const o=(n==null?void 0:n.props)||{},a=s=>{if(s instanceof A){r.push(s);return}if(s instanceof wt&&a(s.value.value),s instanceof at){a(s.value);return}if(B(s)){const c=s;Object.keys(c).forEach(u=>{a(c[u])});return}if(R(s)){s.forEach(c=>{a(c)});return}};a(o);const i=(n==null?void 0:n.value.children.filter(s=>s instanceof A))||[];r.push(...i)}}function Mr(t,e){return kf(t,r=>r.id===e)}const Vf=t=>{const e=io(t),r=e.snippets;return delete e.snippets,e.snippets=r.map(n=>({...e,...n,id:n.id||`${t.componentName}-${Z()}`,title:n.title||t.title,category:n.category||t.category,tags:[...n.tags||[],...t.tags||[]],groupName:n.groupName||t.groupName,snapshot:n.snapshot||t.icon,snapshotText:n.snapshotText,schema:{...n.schema,componentName:n.schema.componentName||t.componentName}})),e};class zf{constructor(e){_(this,"rawData"),_(this,"data"),this.rawData=e,this.data=Vf(e)}get value(){return this.data}get rawValue(){return this.rawData}get componentName(){return this.data.componentName}get snippets(){return this.data.snippets}getSnippetById(e){return this.data.snippets.find(r=>r.id===e)}}const Gf=t=>{if(!R(t))throw new Error("Materials must be a array");return t.map(e=>new zf(e))},Hf=t=>{t==null||t.forEach(e=>{xr({data:e,dataStruct:Af,throwError:!1})})};class dt{constructor(e){_(this,"rawData"),_(this,"data"),_(this,"usedMaterials",[]),this.rawData=e,Hf(e),this.data=Gf(e)}findByComponentName(e){return this.data.find(r=>r.componentName===e)}findSnippetById(e){const r=[...this.data];let n=null;for(;!n&&r.length;){const o=r.pop();n=o==null?void 0:o.getSnippetById(e)}return n}getAllSnippets(){const e=this.data.reduce((a,i)=>(a.push(...i.snippets),a),[]),r=[],n={default:[]};e.forEach(a=>{const i=a.groupName||"default";r.includes(i)||(r.push(i),n[i]=[]),n[i].push(a)});let o=[];return r.forEach(a=>{const i=["default"],s={default:[]},c=n[a];if(c.length!==0){c.forEach(p=>{const f=p.category||"default";i.includes(f)||(i.push(f),s[f]=[]),s[f].push(p)});const u=[];i.forEach(p=>{s[p].length&&u.push({name:p,list:s[p]})});const l={name:a,list:u};o.push(l)}}),o=o.sort((a,i)=>(a.name||"")>(i.name||"")?1:-1),o}get value(){return this.data}get rawValue(){return this.rawData}}const Wf=w({version:m(),name:m(),css:v(m()),renderType:v(F([L("COMPONENT"),L("PAGE")])),loadType:v(x()),lifecycle:v(x()),props:v(x()),methods:v(P(Pf)),componentsMeta:P(Er(w({componentName:m()}),$r)),thirdLibs:v(Of),componentsTree:Rf,assets:v(P(x()))}),wo=t=>(xr({data:t,dataStruct:Wf,throwError:!1}),t),Ie=(t,e,r)=>({...t,componentsTree:new Zt(t.componentsTree,{parent:e,materials:r})});class he{constructor(e,r){_(this,"nodeType","PAGE"),_(this,"rawData"),_(this,"emitter",ne),_(this,"data"),_(this,"parent"),_(this,"materialsModel"),_(this,"assetPackagesList"),wo(e),this.rawData=JSON.parse(JSON.stringify(e)),this.materialsModel=new dt((r==null?void 0:r.materials)||[]),this.data=Ie(e,this,this.materialsModel),this.assetPackagesList=[...(r==null?void 0:r.assetPackagesList)||[],...this.data.assets||[]]}updatePage(e){const r=this.data;this.rawData=JSON.parse(JSON.stringify(e)),this.data=Ie(e,this,this.materialsModel),this.emitter.emit("onPageChange",{value:this.data,preValue:r,node:this})}reloadPage(e){const r=this.data;this.rawData=JSON.parse(JSON.stringify(e)),this.data=Ie(e,this,this.materialsModel),this.emitter.emit("onReloadPage",{value:this.data,preValue:r,node:this})}get value(){return this.data}getNode(e){if(!e)return;const r=this.data.componentsTree;return Mr(r,e)}addNode(e,r,n="AFTER"){var o;if(n==="AFTER"||n==="BEFORE"){const a=r.parent;if(a===null&&r instanceof Zt)return console.warn("Not found parent node"),!1;if(a instanceof at)return console.warn("CProp can not add node"),!1;if(a instanceof wt){const s=a.value.value,c=s.findIndex(u=>u===r)??-1;return c>=0?(n==="BEFORE"?s.splice(c,0,e):s.splice(c+1,0,e),e.parent=a,(o=a.parent)==null||o.updateValue(),!0):!1}if(a instanceof he)return!1;const i=(a==null?void 0:a.value.children.findIndex(s=>s===r))??-1;return i>=0?(n==="BEFORE"?a==null||a.value.children.splice(i,0,e):a==null||a.value.children.splice(i+1,0,e),e.parent=a,a==null||a.updateValue(),!0):(console.warn("Not found target node"),!1)}if(n==="CHILD_START")return r.value.children.unshift(e),e.parent=r,r.updateValue(),!0;if(n==="CHILD_END")return r.value.children.push(e),e.parent=r,r.updateValue(),!0;if(B(n)){const a=n;if(a.type==="CHILD"){const i=a.pos,s=a.index||0;return i==="BEFORE"?r==null||r.value.children.splice(s,0,e):r==null||r.value.children.splice(s+1,0,e),e.parent=r,r.updateValue(),!0}else console.warn("Can not parse pos obj")}return!1}createNode(e){return delete e.id,new A(e,{parent:null,materials:this.materialsModel})}addNodeById(e,r,n="AFTER"){const o=this.getNode(r);return o?this.addNode(e,o,n):(console.warn(`Not find a node by ${r}, pls check it`),!1)}copyNode(e){const r=e.export("design");r.id=Z();const n=new A(r,{parent:e.parent,materials:this.materialsModel});return this.addNode(n,e,"AFTER"),n}copyNodeById(e){const r=this.getNode(e);return r&&r instanceof A?this.copyNode(r):!1}moveNode(e,r,n){this.deleteNode(e);let o=r;return["AFTER","BEFORE"].includes(n)&&(o=r.parent),e.parent=o,this.addNode(e,r,n)}moveNodeById(e,r,n){const o=this.getNode(e),a=this.getNode(r);return o&&a&&o instanceof A&&a instanceof A?this.moveNode(o,a,n):!1}deleteNode(e){var r;const n=e.parent;if(!n)throw new Error("parent node is null or undefined, pls check it");if(n instanceof wt){const o=n.value.value,a=o.findIndex(s=>s===e),i=o[a];return o.splice(a,1),(r=n.parent)==null||r.updateValue(),i}if(n instanceof A||n instanceof Zt){const o=n.value.children,a=o.findIndex(s=>s===e),i=o[a];return o.splice(a,1),n.updateValue(),i}}deleteNodeById(e){const r=this.getNode(e);if(r)return this.deleteNode(r)}export(e=Nr.SAVE){var r;const n=this.data.componentsTree.export(e),o=this.assetPackagesList,a=[],i=this.materialsModel.usedMaterials.map(c=>{const u=o.find(l=>{var p;return l.package===((p=c.value.npm)==null?void 0:p.package)});return u&&a.push(u),{componentName:c.componentName,...io(c.value.npm||{})}}).filter(c=>!!(c.componentName&&c.package&&c.version));this.materialsModel.usedMaterials=[];let s={...this.data,componentsTree:Ar(n),componentsMeta:i,thirdLibs:this.data.thirdLibs,assets:[]};return(r=this.data.thirdLibs)==null||r.forEach(c=>{const u=o.find(l=>c.package===l.package);u&&a.push(u)}),s.assets=hf(a,c=>c.package),s=mo(s,["id"]),JSON.parse(JSON.stringify(s))}getRootNode(){return this.data.componentsTree}}Mt.ROOT_CONTAINER;var Jf=typeof global=="object"&&global&&global.Object===Object&&global;const Co=Jf;var Qf=typeof self=="object"&&self&&self.Object===Object&&self,qf=Co||Qf||Function("return this")();const Pt=qf;var Yf=Pt.Symbol;const Ct=Yf;var Eo=Object.prototype,Kf=Eo.hasOwnProperty,Xf=Eo.toString,Vt=Ct?Ct.toStringTag:void 0;function Zf(t){var e=Kf.call(t,Vt),r=t[Vt];try{t[Vt]=void 0;var n=!0}catch{}var o=Xf.call(t);return n&&(e?t[Vt]=r:delete t[Vt]),o}var tp=Object.prototype,ep=tp.toString;function rp(t){return ep.call(t)}var np="[object Null]",op="[object Undefined]",bn=Ct?Ct.toStringTag:void 0;function oe(t){return t==null?t===void 0?op:np:bn&&bn in Object(t)?Zf(t):rp(t)}function Rt(t){return t!=null&&typeof t=="object"}var ap="[object Symbol]";function sp(t){return typeof t=="symbol"||Rt(t)&&oe(t)==ap}function ip(t,e){for(var r=-1,n=t==null?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}var cp=Array.isArray;const Et=cp;var up=1/0,_n=Ct?Ct.prototype:void 0,Sn=_n?_n.toString:void 0;function $o(t){if(typeof t=="string")return t;if(Et(t))return ip(t,$o)+"";if(sp(t))return Sn?Sn.call(t):"";var e=t+"";return e=="0"&&1/t==-up?"-0":e}function yt(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function No(t){return t}var lp="[object AsyncFunction]",fp="[object Function]",pp="[object GeneratorFunction]",dp="[object Proxy]";function Pr(t){if(!yt(t))return!1;var e=oe(t);return e==fp||e==pp||e==lp||e==dp}var hp=Pt["__core-js_shared__"];const Le=hp;var jn=function(){var t=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function vp(t){return!!jn&&jn in t}var mp=Function.prototype,gp=mp.toString;function yp(t){if(t!=null){try{return gp.call(t)}catch{}try{return t+""}catch{}}return""}var bp=/[\\^$.*+?()[\]{}|]/g,_p=/^\[object .+?Constructor\]$/,Sp=Function.prototype,jp=Object.prototype,Op=Sp.toString,wp=jp.hasOwnProperty,Cp=RegExp("^"+Op.call(wp).replace(bp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ep(t){if(!yt(t)||vp(t))return!1;var e=Pr(t)?Cp:_p;return e.test(yp(t))}function $p(t,e){return t==null?void 0:t[e]}function Rr(t,e){var r=$p(t,e);return Ep(r)?r:void 0}var On=Object.create,Np=function(){function t(){}return function(e){if(!yt(e))return{};if(On)return On(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();const Tp=Np;function xp(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function Ap(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}var Mp=800,Pp=16,Rp=Date.now;function Dp(t){var e=0,r=0;return function(){var n=Rp(),o=Pp-(n-r);if(r=n,o>0){if(++e>=Mp)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Ip(t){return function(){return t}}var Lp=function(){try{var t=Rr(Object,"defineProperty");return t({},"",{}),t}catch{}}();const ve=Lp;var Fp=ve?function(t,e){return ve(t,"toString",{configurable:!0,enumerable:!1,value:Ip(e),writable:!0})}:No;const Bp=Fp;var Up=Dp(Bp);const kp=Up;var Vp=9007199254740991,zp=/^(?:0|[1-9]\d*)$/;function To(t,e){var r=typeof t;return e=e??Vp,!!e&&(r=="number"||r!="symbol"&&zp.test(t))&&t>-1&&t%1==0&&t<e}function Dr(t,e,r){e=="__proto__"&&ve?ve(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function Oe(t,e){return t===e||t!==t&&e!==e}var Gp=Object.prototype,Hp=Gp.hasOwnProperty;function Wp(t,e,r){var n=t[e];(!(Hp.call(t,e)&&Oe(n,r))||r===void 0&&!(e in t))&&Dr(t,e,r)}function Jp(t,e,r,n){var o=!r;r||(r={});for(var a=-1,i=e.length;++a<i;){var s=e[a],c=n?n(r[s],t[s],s,r,t):void 0;c===void 0&&(c=t[s]),o?Dr(r,s,c):Wp(r,s,c)}return r}var wn=Math.max;function Qp(t,e,r){return e=wn(e===void 0?t.length-1:e,0),function(){for(var n=arguments,o=-1,a=wn(n.length-e,0),i=Array(a);++o<a;)i[o]=n[e+o];o=-1;for(var s=Array(e+1);++o<e;)s[o]=n[o];return s[e]=r(i),xp(t,this,s)}}function qp(t,e){return kp(Qp(t,e,No),t+"")}var Yp=9007199254740991;function xo(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Yp}function Ir(t){return t!=null&&xo(t.length)&&!Pr(t)}function Kp(t,e,r){if(!yt(r))return!1;var n=typeof e;return(n=="number"?Ir(r)&&To(e,r.length):n=="string"&&e in r)?Oe(r[e],t):!1}function Xp(t){return qp(function(e,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=t.length>3&&typeof a=="function"?(o--,a):void 0,i&&Kp(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),e=Object(e);++n<o;){var s=r[n];s&&t(e,s,n,a)}return e})}var Zp=Object.prototype;function Ao(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||Zp;return t===r}function td(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var ed="[object Arguments]";function Cn(t){return Rt(t)&&oe(t)==ed}var Mo=Object.prototype,rd=Mo.hasOwnProperty,nd=Mo.propertyIsEnumerable,od=Cn(function(){return arguments}())?Cn:function(t){return Rt(t)&&rd.call(t,"callee")&&!nd.call(t,"callee")};const Ke=od;function ad(){return!1}var Po=typeof exports=="object"&&exports&&!exports.nodeType&&exports,En=Po&&typeof module=="object"&&module&&!module.nodeType&&module,sd=En&&En.exports===Po,$n=sd?Pt.Buffer:void 0,id=$n?$n.isBuffer:void 0,cd=id||ad;const Ro=cd;var ud="[object Arguments]",ld="[object Array]",fd="[object Boolean]",pd="[object Date]",dd="[object Error]",hd="[object Function]",vd="[object Map]",md="[object Number]",gd="[object Object]",yd="[object RegExp]",bd="[object Set]",_d="[object String]",Sd="[object WeakMap]",jd="[object ArrayBuffer]",Od="[object DataView]",wd="[object Float32Array]",Cd="[object Float64Array]",Ed="[object Int8Array]",$d="[object Int16Array]",Nd="[object Int32Array]",Td="[object Uint8Array]",xd="[object Uint8ClampedArray]",Ad="[object Uint16Array]",Md="[object Uint32Array]",N={};N[wd]=N[Cd]=N[Ed]=N[$d]=N[Nd]=N[Td]=N[xd]=N[Ad]=N[Md]=!0;N[ud]=N[ld]=N[jd]=N[fd]=N[Od]=N[pd]=N[dd]=N[hd]=N[vd]=N[md]=N[gd]=N[yd]=N[bd]=N[_d]=N[Sd]=!1;function Pd(t){return Rt(t)&&xo(t.length)&&!!N[oe(t)]}function Rd(t){return function(e){return t(e)}}var Do=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Wt=Do&&typeof module=="object"&&module&&!module.nodeType&&module,Dd=Wt&&Wt.exports===Do,Fe=Dd&&Co.process,Id=function(){try{var t=Wt&&Wt.require&&Wt.require("util").types;return t||Fe&&Fe.binding&&Fe.binding("util")}catch{}}();const Nn=Id;var Tn=Nn&&Nn.isTypedArray,Ld=Tn?Rd(Tn):Pd;const Io=Ld;var Fd=Object.prototype,Bd=Fd.hasOwnProperty;function Ud(t,e){var r=Et(t),n=!r&&Ke(t),o=!r&&!n&&Ro(t),a=!r&&!n&&!o&&Io(t),i=r||n||o||a,s=i?td(t.length,String):[],c=s.length;for(var u in t)(e||Bd.call(t,u))&&!(i&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||To(u,c)))&&s.push(u);return s}function kd(t,e){return function(r){return t(e(r))}}function Vd(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var zd=Object.prototype,Gd=zd.hasOwnProperty;function Hd(t){if(!yt(t))return Vd(t);var e=Ao(t),r=[];for(var n in t)n=="constructor"&&(e||!Gd.call(t,n))||r.push(n);return r}function Lo(t){return Ir(t)?Ud(t,!0):Hd(t)}var Wd=Rr(Object,"create");const te=Wd;function Jd(){this.__data__=te?te(null):{},this.size=0}function Qd(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var qd="__lodash_hash_undefined__",Yd=Object.prototype,Kd=Yd.hasOwnProperty;function Xd(t){var e=this.__data__;if(te){var r=e[t];return r===qd?void 0:r}return Kd.call(e,t)?e[t]:void 0}var Zd=Object.prototype,th=Zd.hasOwnProperty;function eh(t){var e=this.__data__;return te?e[t]!==void 0:th.call(e,t)}var rh="__lodash_hash_undefined__";function nh(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=te&&e===void 0?rh:e,this}function ht(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ht.prototype.clear=Jd;ht.prototype.delete=Qd;ht.prototype.get=Xd;ht.prototype.has=eh;ht.prototype.set=nh;function oh(){this.__data__=[],this.size=0}function we(t,e){for(var r=t.length;r--;)if(Oe(t[r][0],e))return r;return-1}var ah=Array.prototype,sh=ah.splice;function ih(t){var e=this.__data__,r=we(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():sh.call(e,r,1),--this.size,!0}function ch(t){var e=this.__data__,r=we(e,t);return r<0?void 0:e[r][1]}function uh(t){return we(this.__data__,t)>-1}function lh(t,e){var r=this.__data__,n=we(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function rt(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}rt.prototype.clear=oh;rt.prototype.delete=ih;rt.prototype.get=ch;rt.prototype.has=uh;rt.prototype.set=lh;var fh=Rr(Pt,"Map");const Fo=fh;function ph(){this.size=0,this.__data__={hash:new ht,map:new(Fo||rt),string:new ht}}function dh(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Ce(t,e){var r=t.__data__;return dh(e)?r[typeof e=="string"?"string":"hash"]:r.map}function hh(t){var e=Ce(this,t).delete(t);return this.size-=e?1:0,e}function vh(t){return Ce(this,t).get(t)}function mh(t){return Ce(this,t).has(t)}function gh(t,e){var r=Ce(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}function Dt(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Dt.prototype.clear=ph;Dt.prototype.delete=hh;Dt.prototype.get=vh;Dt.prototype.has=mh;Dt.prototype.set=gh;function Bo(t){return t==null?"":$o(t)}var yh=kd(Object.getPrototypeOf,Object);const Uo=yh;var bh="[object Object]",_h=Function.prototype,Sh=Object.prototype,ko=_h.toString,jh=Sh.hasOwnProperty,Oh=ko.call(Object);function $t(t){if(!Rt(t)||oe(t)!=bh)return!1;var e=Uo(t);if(e===null)return!0;var r=jh.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&ko.call(r)==Oh}function wh(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),r=r>o?o:r,r<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var a=Array(o);++n<o;)a[n]=t[n+e];return a}function Ch(t,e,r){var n=t.length;return r=r===void 0?n:r,!e&&r>=n?t:wh(t,e,r)}var Eh="\\ud800-\\udfff",$h="\\u0300-\\u036f",Nh="\\ufe20-\\ufe2f",Th="\\u20d0-\\u20ff",xh=$h+Nh+Th,Ah="\\ufe0e\\ufe0f",Mh="\\u200d",Ph=RegExp("["+Mh+Eh+xh+Ah+"]");function Vo(t){return Ph.test(t)}function Rh(t){return t.split("")}var zo="\\ud800-\\udfff",Dh="\\u0300-\\u036f",Ih="\\ufe20-\\ufe2f",Lh="\\u20d0-\\u20ff",Fh=Dh+Ih+Lh,Bh="\\ufe0e\\ufe0f",Uh="["+zo+"]",Xe="["+Fh+"]",Ze="\\ud83c[\\udffb-\\udfff]",kh="(?:"+Xe+"|"+Ze+")",Go="[^"+zo+"]",Ho="(?:\\ud83c[\\udde6-\\uddff]){2}",Wo="[\\ud800-\\udbff][\\udc00-\\udfff]",Vh="\\u200d",Jo=kh+"?",Qo="["+Bh+"]?",zh="(?:"+Vh+"(?:"+[Go,Ho,Wo].join("|")+")"+Qo+Jo+")*",Gh=Qo+Jo+zh,Hh="(?:"+[Go+Xe+"?",Xe,Ho,Wo,Uh].join("|")+")",Wh=RegExp(Ze+"(?="+Ze+")|"+Hh+Gh,"g");function Jh(t){return t.match(Wh)||[]}function Qh(t){return Vo(t)?Jh(t):Rh(t)}function qh(t){return function(e){e=Bo(e);var r=Vo(e)?Qh(e):void 0,n=r?r[0]:e.charAt(0),o=r?Ch(r,1).join(""):e.slice(1);return n[t]()+o}}var Yh=qh("toUpperCase");const Kh=Yh;function Xh(t){return Kh(Bo(t).toLowerCase())}function Zh(){this.__data__=new rt,this.size=0}function tv(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}function ev(t){return this.__data__.get(t)}function rv(t){return this.__data__.has(t)}var nv=200;function ov(t,e){var r=this.__data__;if(r instanceof rt){var n=r.__data__;if(!Fo||n.length<nv-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Dt(n)}return r.set(t,e),this.size=r.size,this}function It(t){var e=this.__data__=new rt(t);this.size=e.size}It.prototype.clear=Zh;It.prototype.delete=tv;It.prototype.get=ev;It.prototype.has=rv;It.prototype.set=ov;var qo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,xn=qo&&typeof module=="object"&&module&&!module.nodeType&&module,av=xn&&xn.exports===qo,An=av?Pt.Buffer:void 0,Mn=An?An.allocUnsafe:void 0;function sv(t,e){if(e)return t.slice();var r=t.length,n=Mn?Mn(r):new t.constructor(r);return t.copy(n),n}var iv=Pt.Uint8Array;const Pn=iv;function cv(t){var e=new t.constructor(t.byteLength);return new Pn(e).set(new Pn(t)),e}function uv(t,e){var r=e?cv(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function lv(t){return typeof t.constructor=="function"&&!Ao(t)?Tp(Uo(t)):{}}function fv(t){return function(e,r,n){for(var o=-1,a=Object(e),i=n(e),s=i.length;s--;){var c=i[t?s:++o];if(r(a[c],c,a)===!1)break}return e}}var pv=fv();const dv=pv;function tr(t,e,r){(r!==void 0&&!Oe(t[e],r)||r===void 0&&!(e in t))&&Dr(t,e,r)}function hv(t){return Rt(t)&&Ir(t)}function er(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function vv(t){return Jp(t,Lo(t))}function mv(t,e,r,n,o,a,i){var s=er(t,r),c=er(e,r),u=i.get(c);if(u){tr(t,r,u);return}var l=a?a(s,c,r+"",t,e,i):void 0,p=l===void 0;if(p){var f=Et(c),d=!f&&Ro(c),h=!f&&!d&&Io(c);l=c,f||d||h?Et(s)?l=s:hv(s)?l=Ap(s):d?(p=!1,l=sv(c,!0)):h?(p=!1,l=uv(c,!0)):l=[]:$t(c)||Ke(c)?(l=s,Ke(s)?l=vv(s):(!yt(s)||Pr(s))&&(l=lv(c))):p=!1}p&&(i.set(c,l),o(l,c,n,a,i),i.delete(c)),tr(t,r,l)}function Yo(t,e,r,n,o){t!==e&&dv(e,function(a,i){if(o||(o=new It),yt(a))mv(t,e,i,r,Yo,n,o);else{var s=n?n(er(t,i),a,i+"",t,e,o):void 0;s===void 0&&(s=a),tr(t,i,s)}},Lo)}var gv=Xp(function(t,e,r){Yo(t,e,r)});const yv=gv,bv=function(t){return!(!t||typeof t!="function"||!t.prototype)};function Ko(t){const e=t==null?void 0:t.prototype;return!!(e&&e.isReactComponent)}function Xo(t){var n,o;const r=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.forward_ref"):60112;return(t==null?void 0:t.$$typeof)===r||((n=t==null?void 0:t.prototype)==null?void 0:n.isReactComponent)||((o=t==null?void 0:t.prototype)==null?void 0:o.setState)||t._forwardRef}function Zo(t){class e extends S.Component{render(){return S.createElement(t,this.props)}}return e.displayName=t.displayName,e}const lt=(t,e)=>{const r=n=>{const a=`
|
|
7
7
|
${Object.keys(e).map(i=>`const ${i} = $$context['${i}'];`).join(`
|
|
8
8
|
`)}
|
|
9
9
|
return ${n};
|
|
10
|
-
`;return new Function("$$context",a)(e)};try{return r(t)}catch(n){console.warn(n);const o=`[${t}] expression run failed`;return console.warn(o),null}},
|
|
10
|
+
`;return new Function("$$context",a)(e)};try{return r(t)}catch(n){console.warn(n);const o=`[${t}] expression run failed`;return console.warn(o),null}},ta=(t,e,r)=>function(...o){let a;try{a=`
|
|
11
11
|
var $$$__args__$$$ = Array.from(arguments);
|
|
12
12
|
function $$_run_$$() {
|
|
13
13
|
var $$_f_$$ = ${t||"function () {}"};
|
|
@@ -17,7 +17,7 @@ function $$_run_$$() {
|
|
|
17
17
|
return $$_f_$$.apply($$_f_$$, $$$__args__$$$);
|
|
18
18
|
}
|
|
19
19
|
return $$_run_$$();
|
|
20
|
-
`,new Function(a)(...o,e,r)}catch(i){console.log(a),console.warn(i)}},rr=(t,e)=>{const r={};return e.forEach((n,o)=>{r[n]=t[o]}),r},nr=(t=[])=>{const e={};return t.forEach(({property:r,value:n})=>{let o=r.replace("-webkit","Webkit");o=o.replace("-ms","ms"),o=o.replace("-moz","Moz"),o=o.replace("-o","O");let a=o.split("-");a.length>=2&&(a=a.map((i,s)=>s!==0?tv(i):i)),e[a.join("")]=n}),e},jv=t=>{let e="";return Object.keys(t||{}).forEach(r=>{e+=`${r}:${t[r]};`}),e},Ov=(t,e)=>{const r={};return t.forEach(n=>{if(n.globalName){const o=e[n.globalName];o&&(r[n.globalName]=o)}}),r},wv=(t,e=1)=>{let r=0,n=t,o={},a={};for(;r<e;)Object.keys(n).forEach(i=>{o={...o,...n[i]}}),a=o,n=o,o={},r+=1;return a},na=(t,e)=>{const r=[];return e.forEach(n=>{const a=n.exec(t);a!=null&&a.length&&r.push(a[1])}),r},oa=(t,e)=>{const r={};return e.forEach(n=>{t[n.name]&&(r[n.name]=t[n.name])}),r},Cv=(t,e)=>oa(t,e),Ev=(t,e)=>oa(t,e),le=t=>{var r;return((r=t.value.css)==null?void 0:r.class)||`c_${t.id}`},ue="DYNAMIC",$v=["$$context","$$nodeModel"],Dn=t=>{let e;const r=new Set,n=(c,u)=>{const l=typeof c=="function"?c(e):c;if(!Object.is(l,e)){const p=e;e=u??typeof l!="object"?l:Object.assign({},e,l),r.forEach(f=>f(e,p))}},o=()=>e,s={setState:n,getState:o,subscribe:c=>(r.add(c),()=>r.delete(c)),destroy:()=>{({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}};return e=t(n,o,s),s},Nv=t=>t?Dn(t):Dn;class Tv{constructor(){y(this,"storeMap",new Map)}addStore(e,r){const n=Nv(r);return this.storeMap.set(e,n),n.name=e,n}setStore(e,r){this.storeMap.set(e,r)}removeStore(e){this.storeMap.delete(e)}getStore(e){return this.storeMap.get(e)}getState(e){var r;return(r=this.storeMap.get(e))==null?void 0:r.getState()}getStateObj(e){return{state:this.getState(e),updateState:r=>{this.setState(e,r)}}}setState(e,r){var n;return(n=this.storeMap.get(e))==null?void 0:n.setState(r)}connect(e,r){const n=this.storeMap.get(e);return n?n.subscribe(r):(console.warn("store not exits"),()=>{})}getStateSnapshot(){const e={};return this.storeMap.forEach((r,n)=>{e[n]=this.getStateObj(n)}),e}destroy(){this.storeMap=new Map}}class xv{constructor(){y(this,"varSpace",new Map)}get(e){return this.varSpace.get(e)}add(e,r){this.varSpace.set(e,r)}remove(e){this.varSpace.delete(e)}destroy(){this.varSpace.clear()}getStateSnapshot(){const e={};return this.varSpace.forEach((r,n)=>{e[n]=r}),e}}const In={};class aa{constructor(){y(this,"renderMode","normal");y(this,"components",{});y(this,"storeManager",new Tv);y(this,"variableManager",new xv);y(this,"runtimeComponentCache",new Map);y(this,"onGetRef");y(this,"onGetComponent");y(this,"onComponentMount");y(this,"onComponentDestroy");y(this,"processNodeConfigHook")}getComponent(e){var o;const r=e.value.componentName;let n=this.components[r]||(()=>`Component [${r}] not found`);return ta(n)||(n=ea(n),this.components[r]=n),this.onGetComponent&&(n=(o=this.onGetComponent)==null?void 0:o.call(this,n,e)),n}getContext(e={},r){let n=e;return r&&(n={...e},n.__proto__=r||null),n}pageRender(e,{components:r,onGetRef:n,$$context:o={},onGetComponent:a,onComponentMount:i,onComponentDestroy:s,renderMode:c,processNodeConfigHook:u}){this.renderMode=c,this.components=r,this.onGetRef=n,this.onGetComponent=a,this.onComponentMount=i,this.onComponentDestroy=s,this.processNodeConfigHook=u;const l=e.value.componentsTree,p=this.getComponent(l),f=this.convertModelToComponent(p,e.value.componentsTree),d={},h=l.props;return Object.keys(h).forEach(g=>{d[g]=h[g].value}),d.$$context=o,this.render(f,d)}transformProps(e={},{$$context:r}){const n=e,o=i=>{if(Array.isArray(i))return i.map(s=>o(s));if(De(i))return o(i.value);if(Vf(i)){const s=i.value,c=s.value;if(!c)return console.warn("slot value is null, this maybe cause some error, pls check it",e),()=>{};const u=l=>{const p=`${l.id}-${ue}`;if(this.runtimeComponentCache.get(l.id))return{key:p,component:this.runtimeComponentCache.get(l.id)};const f=this.getComponent(l),d=this.convertModelToComponent(f,l),h=s.params||[];return{component:(...j)=>{const O=rr(j,h),x=this.getContext({params:O},r);return this.render(d,{$$context:x,key:p})},key:p}};if(Array.isArray(c)){const l=c==null?void 0:c.map(p=>u(p));return(...p)=>l.map(f=>{if(Zo(f.component)){const h=f.component;return S.createElement(h,{$$context:r,key:f.key})}else{const h=f.component;return h==null?void 0:h(...p)}})}else return u(c).component}else{if(ut(i))return ft(i.value,r||{});if(Uf(i))return ra(i.value,r,this.storeManager);if(Nt(i)){let s=i;De(i)&&(s=i.value);const c=s,u={};return Object.keys(s).forEach(l=>{u[l]=o(c[l])}),u}else return i}},a={};return Object.keys(n).forEach(i=>{const s=n[i];a[i]=o(s)}),a}collectSpecialProps(e={},r){const n=[],o=(a,i)=>{let s=i;De(i)&&(s=i.value),r(s)?n.push({keyPath:a,val:s}):$t(s)?s.forEach((c,u)=>{o([...a,String(u)],c)}):Nt(s)&&Object.keys(s).forEach(c=>{o([...a,c],s[c])})};return o(["$root"],e),n}convertModelToComponent(e,r){const n=this;class o extends S.Component{constructor(s){super(s);y(this,"_CONDITION",!0);y(this,"_DESIGN_BOX",!1);y(this,"_NODE_MODEL",r);y(this,"_NODE_ID",r.id);y(this,"UNIQUE_ID",`${r.id}_${tt()}`);y(this,"targetComponentRef");y(this,"listenerHandle",[]);y(this,"storeState");y(this,"storeListenDisposeList",[]);y(this,"domHeader");y(this,"mediaStyleDomMap",{});y(this,"variableSpace");y(this,"nodeName");y(this,"updateState",s=>{this.storeState.setState(s),this.forceUpdate()});y(this,"getStyleDomById",s=>{const c=this.mediaStyleDomMap;let u=c[s];return u||(u=document.createElement("style"),c[s]=u),u.id=s,u});y(this,"addMediaCSS",()=>{var u;let s=this.domHeader;if(s||(s=(u=document.getElementsByTagName("head"))==null?void 0:u[0],this.domHeader=s),!this.domHeader)return;const c=this._NODE_MODEL.value.css;c&&c.value.forEach(l=>{var d;const p=`${this.UNIQUE_ID}_${l.state}`;let f=le(this._NODE_MODEL);if(l.state!=="normal"&&(f=`${f}:${l.state}`),l.text){const h=this.getStyleDomById(p);h.innerText=`.${f} { ${l.text} }`,s==null||s.appendChild(h)}(d=l.media)!=null&&d.length&&l.media.forEach(h=>{const g=`${p}_${h.type}_${h.value}`,b=this.getStyleDomById(g);b.media=`screen and (${h.type}:${h.value}px)`,b.innerHTML=`.${f} { ${h.text} }`,s==null||s.appendChild(b)})})});y(this,"removeMediaCSS",()=>{const s=this.mediaStyleDomMap;Object.keys(s).forEach(c=>{var u;(u=this.domHeader)==null||u.removeChild(s[c])}),this.mediaStyleDomMap={}});y(this,"rebuildNode",()=>{this.storeListenDisposeList.forEach(s=>s()),this.removeMediaCSS(),this.connectStore(),this.addMediaCSS(),this.forceUpdate()});this.targetComponentRef=S.createRef(),this.state=r.value.state||{};const c=r.value.nodeName||r.id;this.nodeName=c;const u=n.storeManager.getStore(c);u?(this.storeState=u,u.setState({...r.value.state||{}})):this.storeState=n.storeManager.addStore(c,()=>({...r.value.state||{}})),this.storeState.subscribe(p=>{this.setState({...p})}),this.connectStore();const l=n.variableManager.get(c);l?this.variableSpace=l:(this.variableSpace={staticVar:{},methods:{}},n.variableManager.add(c,this.variableSpace))}connectStore(){const s=n.collectSpecialProps(r.props,f=>!!ut(f)),c=n.collectSpecialProps({css:r.value.css,class:r.value.classNames},f=>!!ut(f));let u=[];[...s,...c].map(f=>{const d=f.val,h=[/\$\$context.stateManager\.(.+?)\./gim,/\$\$context.stateManager\["(.+?)"\]/gim,/\$\$context.stateManager\['(.+?)'\]/gim,/getStateObj\('(.+?)'\)/gim,/getStateObj\("(.+?)"\)/gim,/getStateById\('(.+?)'\)/gim,/getStateById\("(.+?)"\)/gim],g=na(d.value,h);u=[...u,...g]}).filter(Boolean);const l=Array.from(new Set(u)),p=[];l.length&&l.forEach(f=>{n.storeManager.getStore(f)||(n.storeManager.addStore(f,()=>({})),console.warn(n.storeManager,f,"not exits"));const h=n.storeManager.connect(f,()=>{this.forceUpdate()});p.push(h)}),this.storeListenDisposeList=p}componentDidMount(){var c;this.addMediaCSS(),n.onGetRef&&n.onGetRef(this.targetComponentRef,r,this),(c=n.onComponentMount)==null||c.call(n,this,r);const s=()=>{n.storeManager.setStore(r.value.nodeName||r.id,this.storeState),this.storeState.setState({...this.state,...r.value.state||{}}),this.rebuildNode()};r.onChange(s)}componentWillUnmount(){var s;this.storeListenDisposeList.forEach(c=>c()),this.removeMediaCSS(),(s=n.onComponentDestroy)==null||s.call(n,this,r)}render(){var Lr;console.log("rerender",this.nodeName);const{$$context:s,...c}=this.props,u=r.value.nodeName||r.id,l={key:r.id,...r.props,...c},p={state:this.state||{},staticVar:this.variableSpace.staticVar,updateState:this.updateState,storeManager:n.storeManager,getState:()=>n.storeManager.getStateObj(u),getStateObj:()=>n.storeManager.getStateObj(u),getStateObjById:D=>n.storeManager.getStateObj(D),stateManager:n.storeManager.getStateSnapshot(),getMethods:()=>n.variableManager.get(u).methods,getMethodsById:D=>n.variableManager.get(D).methods,getStaticVar:()=>n.variableManager.get(u).staticVar,getStaticVarById:D=>n.variableManager.get(D).staticVar};r.value.componentName===Pt.ROOT_CONTAINER&&(p.globalState=this.state,p.updateGlobalState=this.updateState);const f=n.getContext(p,s),g=n.transformProps({methods:r.value.methods},{$$context:f}).methods.reduce((D,z)=>(D[z.name]=z.define,D),{});f.methods=g,this.variableSpace.methods=Object.assign(this.variableSpace.methods,g);const b=r.value.loop;let j=[];if(b&&b.open){this.targetComponentRef.current=[];let D=b.data||[];if(ut(b.data)){const z=b.data;D=ft(z.value,f||{})}return j=D.map((...z)=>{var Fr;const Ft=z[1],_t=[b.forName||"item",b.forIndex||"index"],$e=rr(z,_t);let Ne="loopData";b.name&&(Ne=`${Ne}${b.name}`);const Bt=n.getContext({[Ne]:$e},f),Y=n.transformProps(l,{$$context:Bt}),ha=((Fr=r.value.classNames)==null?void 0:Fr.map(G=>{var ie;const Ut=G.name;return(ut(G.status)?ft(String(((ie=G.status)==null?void 0:ie.value)||""),Bt):!1)?Ut:""}))||[];let Te=`${Y.className??""} ${ha.join(" ")}`.trim();r.value.css&&(Te=`${le(r)} ${Te}`.trim()),Y.className=Te;const va=n.transformProps({style:r.value.style},{$$context:Bt});r.value.style&&(Y.style=nr(va.style||[]));const{children:se}=Y;let xe=[];if(se!==void 0)delete Y.children,xe=Array.isArray(se)?se:[se];else{const G=[];r.value.children.forEach((Br,ie)=>{const ma=n.buildComponent(Br,{$$context:Bt,idx:ie});G.push(ma)}),xe=G}if(Y.key=`${Y.key}-${Ft}`,ut(b.key)){const G=b.key,Ut=ft(G.value,Bt||{});Y.key+=`-${Ut}`}return Y.ref=G=>{this.targetComponentRef.current=this.targetComponentRef.current||[],this.targetComponentRef.current[Ft]=G},n.render(e,Y,...xe)}),j}const O=n.transformProps(l,{$$context:f}),{children:x}=O;let E=[];const I=In[r.id];if(I)E=I;else{if(x!==void 0)delete O.children,E=Array.isArray(x)?x:[x];else{const D=[];r.value.children.forEach((Ft,_t)=>{const $e=n.buildComponent(Ft,{$$context:f,idx:_t});D.push($e)}),E=D}In[r.id]=E}O.ref=this.targetComponentRef;const Q=((Lr=r.value.classNames)==null?void 0:Lr.map(D=>{var _t;const z=D.name;return(ut(D.status)?ft(((_t=D.status)==null?void 0:_t.value)||"",f):!1)?z:""}))||[];let it=`${O.className??""} ${Q.join(" ")}`.trim();r.value.css&&(it=`${le(r)} ${it}`.trim()),O.className=it;const $=n.transformProps({style:r.value.style},{$$context:f});r.value.style&&(O.style=nr($.style||[]));let ct=r.value.condition??!0;typeof ct!="boolean"&&(ct=ft(ct.value,f||{}));let q={condition:ct,props:O};n.processNodeConfigHook&&(q=n.processNodeConfigHook(q,r));const ae=n.render(e,q.props,...E);return this._CONDITION=q.condition,q.condition?ae:S.createElement("div",{style:{display:"none"}},ae)}}return y(o,"__CP_TYPE__",ue),o.displayName=`${r.value.componentName}Dynamic`,o}buildComponent(e,{$$context:r={}}){const n=this.runtimeComponentCache;return typeof e=="string"?this.render(e):kf(e)?(({currentNode:a})=>{const i=a.value.id;let s=null;if(n.get(i)){const l=n.get(i);s=l==null?void 0:l.component}else{const l=this.getComponent(a);s=this.convertModelToComponent(l,a),!n.get(i)&&this.renderMode!=="design"&&n.set(i,{component:s})}const c=`${i}-${ue}`,u={$$context:r,$$nodeModel:e,key:c};return this.render(s,u)})({currentNode:e}):void 0}render(e,r={},...n){return typeof e=="string"||typeof e=="number"?String(e):($v.forEach(a=>{a in r&&e.__CP_TYPE__!==ue&&delete r[a]}),S.createElement(e,r,...n))}clear(){this.runtimeComponentCache.clear(),this.storeManager.destroy()}}const Av=Fn(new aa),Mv=["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"];var Pv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rv(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var sa={exports:{}},Ee={};/**
|
|
20
|
+
`,new Function(a)(...o,e,r)}catch(i){console.log(a),console.warn(i)}},rr=(t,e)=>{const r={};return e.forEach((n,o)=>{r[n]=t[o]}),r},nr=(t=[])=>{const e={};return t.forEach(({property:r,value:n})=>{let o=r.replace("-webkit","Webkit");o=o.replace("-ms","ms"),o=o.replace("-moz","Moz"),o=o.replace("-o","O");let a=o.split("-");a.length>=2&&(a=a.map((i,s)=>s!==0?Xh(i):i)),e[a.join("")]=n}),e},_v=t=>{let e="";return Object.keys(t||{}).forEach(r=>{e+=`${r}:${t[r]};`}),e},Sv=(t,e)=>{const r={};return t.forEach(n=>{if(n.globalName){const o=e[n.globalName];o&&(r[n.globalName]=o)}}),r},jv=(t,e=1)=>{let r=0,n=t,o={},a={};for(;r<e;)Object.keys(n).forEach(i=>{o={...o,...n[i]}}),a=o,n=o,o={},r+=1;return a},ea=(t,e)=>{const r=[];return e.forEach(n=>{const a=n.exec(t);a!=null&&a.length&&r.push(a[1])}),r},ra=(t,e)=>{const r={};return e.forEach(n=>{t[n.name]&&(r[n.name]=t[n.name])}),r},Ov=(t,e)=>ra(t,e),wv=(t,e)=>ra(t,e),le=t=>{var r;return((r=t.value.css)==null?void 0:r.class)||`c_${t.id}`},ue="DYNAMIC",Cv=["$$context","$$nodeModel"],Rn=t=>{let e;const r=new Set,n=(c,u)=>{const l=typeof c=="function"?c(e):c;if(!Object.is(l,e)){const p=e;e=u??typeof l!="object"?l:Object.assign({},e,l),r.forEach(f=>f(e,p))}},o=()=>e,s={setState:n,getState:o,subscribe:c=>(r.add(c),()=>r.delete(c)),destroy:()=>{({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}};return e=t(n,o,s),s},Ev=t=>t?Rn(t):Rn;class $v{constructor(){y(this,"storeMap",new Map)}addStore(e,r){const n=Ev(r);return this.storeMap.set(e,n),n.name=e,n}setStore(e,r){this.storeMap.set(e,r)}removeStore(e){this.storeMap.delete(e)}getStore(e){return this.storeMap.get(e)}getState(e){var r;return(r=this.storeMap.get(e))==null?void 0:r.getState()}getStateObj(e){return{state:this.getState(e),updateState:r=>{this.setState(e,r)}}}setState(e,r){var n;return(n=this.storeMap.get(e))==null?void 0:n.setState(r)}connect(e,r){const n=this.storeMap.get(e);return n?n.subscribe(r):(console.warn("store not exits"),()=>{})}getStateSnapshot(){const e={};return this.storeMap.forEach((r,n)=>{e[n]=this.getStateObj(n)}),e}destroy(){this.storeMap=new Map}}class Nv{constructor(){y(this,"varSpace",new Map)}get(e){return this.varSpace.get(e)}add(e,r){this.varSpace.set(e,r)}remove(e){this.varSpace.delete(e)}destroy(){this.varSpace.clear()}getStateSnapshot(){const e={};return this.varSpace.forEach((r,n)=>{e[n]=r}),e}}class na{constructor(){y(this,"renderMode","normal");y(this,"components",{});y(this,"storeManager",new $v);y(this,"variableManager",new Nv);y(this,"runtimeComponentCache",new Map);y(this,"onGetRef");y(this,"onGetComponent");y(this,"onComponentMount");y(this,"onComponentDestroy");y(this,"processNodeConfigHook")}getComponent(e){var o;const r=e.value.componentName;let n=this.components[r]||(()=>`Component [${r}] not found`);return Xo(n)||(n=Zo(n),this.components[r]=n),this.onGetComponent&&(n=(o=this.onGetComponent)==null?void 0:o.call(this,n,e)),n}getContext(e={},r){let n=e;return r&&(n={...e},n.__proto__=r||null),n}pageRender(e,{components:r,onGetRef:n,$$context:o={},onGetComponent:a,onComponentMount:i,onComponentDestroy:s,renderMode:c,processNodeConfigHook:u}){this.renderMode=c,this.components=r,this.onGetRef=n,this.onGetComponent=a,this.onComponentMount=i,this.onComponentDestroy=s,this.processNodeConfigHook=u;const l=e.value.componentsTree,p=this.getComponent(l),f=this.convertModelToComponent(p,e.value.componentsTree),d={},h=l.props;return Object.keys(h).forEach(g=>{d[g]=h[g].value}),d.$$context=o,this.render(f,d)}transformProps(e={},{$$context:r}){const n=e,o=i=>{if(Array.isArray(i))return i.map(s=>o(s));if(De(i))return o(i.value);if(Uf(i)){const s=i.value,c=s.value;if(!c)return console.warn("slot value is null, this maybe cause some error, pls check it",e),()=>{};const u=l=>{const p=`${l.id}-${ue}`;if(this.runtimeComponentCache.get(l.id))return{key:p,component:this.runtimeComponentCache.get(l.id)};const f=this.getComponent(l),d=this.convertModelToComponent(f,l),h=s.params||[];return{component:(...j)=>{const O=rr(j,h),T=this.getContext({params:O},r);return this.render(d,{$$context:T,key:p})},key:p}};if(Array.isArray(c)){const l=c==null?void 0:c.map(p=>u(p));return(...p)=>l.map(f=>{if(Ko(f.component)){const h=f.component;return S.createElement(h,{$$context:r,key:f.key})}else{const h=f.component;return h==null?void 0:h(...p)}})}else return u(c).component}else{if(ct(i))return lt(i.value,r||{});if(Ff(i))return ta(i.value,r,this.storeManager);if($t(i)){let s=i;De(i)&&(s=i.value);const c=s,u={};return Object.keys(s).forEach(l=>{u[l]=o(c[l])}),u}else return i}},a={};return Object.keys(n).forEach(i=>{const s=n[i];a[i]=o(s)}),a}collectSpecialProps(e={},r){const n=[],o=(a,i)=>{let s=i;De(i)&&(s=i.value),r(s)?n.push({keyPath:a,val:s}):Et(s)?s.forEach((c,u)=>{o([...a,String(u)],c)}):$t(s)&&Object.keys(s).forEach(c=>{o([...a,c],s[c])})};return o(["$root"],e),n}convertModelToComponent(e,r){const n=this;class o extends S.Component{constructor(s){super(s);y(this,"_CONDITION",!0);y(this,"_DESIGN_BOX",!1);y(this,"_NODE_MODEL",r);y(this,"_NODE_ID",r.id);y(this,"UNIQUE_ID",`${r.id}_${Z()}`);y(this,"targetComponentRef");y(this,"listenerHandle",[]);y(this,"storeState");y(this,"storeListenDisposeList",[]);y(this,"domHeader");y(this,"mediaStyleDomMap",{});y(this,"variableSpace");y(this,"nodeName");y(this,"updateState",s=>{this.storeState.setState(s),this.forceUpdate()});y(this,"getStyleDomById",s=>{const c=this.mediaStyleDomMap;let u=c[s];return u||(u=document.createElement("style"),c[s]=u),u.id=s,u});y(this,"addMediaCSS",()=>{var u;let s=this.domHeader;if(s||(s=(u=document.getElementsByTagName("head"))==null?void 0:u[0],this.domHeader=s),!this.domHeader)return;const c=this._NODE_MODEL.value.css;c&&c.value.forEach(l=>{var d;const p=`${this.UNIQUE_ID}_${l.state}`;let f=le(this._NODE_MODEL);if(l.state!=="normal"&&(f=`${f}:${l.state}`),l.text){const h=this.getStyleDomById(p);h.innerText=`.${f} { ${l.text} }`,s==null||s.appendChild(h)}(d=l.media)!=null&&d.length&&l.media.forEach(h=>{const g=`${p}_${h.type}_${h.value}`,b=this.getStyleDomById(g);b.media=`screen and (${h.type}:${h.value}px)`,b.innerHTML=`.${f} { ${h.text} }`,s==null||s.appendChild(b)})})});y(this,"removeMediaCSS",()=>{const s=this.mediaStyleDomMap;Object.keys(s).forEach(c=>{var u;(u=this.domHeader)==null||u.removeChild(s[c])}),this.mediaStyleDomMap={}});y(this,"rebuildNode",()=>{this.storeListenDisposeList.forEach(s=>s()),this.removeMediaCSS(),this.connectStore(),this.addMediaCSS(),this.forceUpdate()});this.targetComponentRef=S.createRef(),this.state=r.value.state||{};const c=r.value.nodeName||r.id;this.nodeName=c;const u=n.storeManager.getStore(c);u?(this.storeState=u,u.setState({...r.value.state||{}})):this.storeState=n.storeManager.addStore(c,()=>({...r.value.state||{}})),this.storeState.subscribe(p=>{this.setState({...p})}),this.connectStore();const l=n.variableManager.get(c);l?this.variableSpace=l:(this.variableSpace={staticVar:{},methods:{}},n.variableManager.add(c,this.variableSpace))}connectStore(){const s=n.collectSpecialProps(r.props,f=>!!ct(f)),c=n.collectSpecialProps({css:r.value.css,class:r.value.classNames},f=>!!ct(f));let u=[];[...s,...c].map(f=>{const d=f.val,h=[/\$\$context.stateManager\.(.+?)\./gim,/\$\$context.stateManager\["(.+?)"\]/gim,/\$\$context.stateManager\['(.+?)'\]/gim,/getStateObj\('(.+?)'\)/gim,/getStateObj\("(.+?)"\)/gim,/getStateById\('(.+?)'\)/gim,/getStateById\("(.+?)"\)/gim],g=ea(d.value,h);u=[...u,...g]}).filter(Boolean);const l=Array.from(new Set(u)),p=[];l.length&&l.forEach(f=>{n.storeManager.getStore(f)||(n.storeManager.addStore(f,()=>({})),console.warn(n.storeManager,f,"not exits"));const h=n.storeManager.connect(f,()=>{this.forceUpdate()});p.push(h)}),this.storeListenDisposeList=p}componentDidMount(){var c;this.addMediaCSS(),n.onGetRef&&n.onGetRef(this.targetComponentRef,r,this),(c=n.onComponentMount)==null||c.call(n,this,r);const s=()=>{n.storeManager.setStore(r.value.nodeName||r.id,this.storeState),this.storeState.setState({...this.state,...r.value.state||{}}),this.rebuildNode()};r.onChange(s)}componentWillUnmount(){var s;this.storeListenDisposeList.forEach(c=>c()),this.removeMediaCSS(),(s=n.onComponentDestroy)==null||s.call(n,this,r)}render(){var ae;console.log("rerender",this.nodeName);const{$$context:s,...c}=this.props,u=r.value.nodeName||r.id,l={key:r.id,...r.props,...c},p={state:this.state||{},staticVar:this.variableSpace.staticVar,updateState:this.updateState,storeManager:n.storeManager,getState:()=>n.storeManager.getStateObj(u),getStateObj:()=>n.storeManager.getStateObj(u),getStateObjById:D=>n.storeManager.getStateObj(D),stateManager:n.storeManager.getStateSnapshot(),getMethods:()=>n.variableManager.get(u).methods,getMethodsById:D=>n.variableManager.get(D).methods,getStaticVar:()=>n.variableManager.get(u).staticVar,getStaticVarById:D=>n.variableManager.get(D).staticVar};r.value.componentName===Mt.ROOT_CONTAINER&&(p.globalState=this.state,p.updateGlobalState=this.updateState);const f=n.getContext(p,s),g=n.transformProps({methods:r.value.methods},{$$context:f}).methods.reduce((D,G)=>(D[G.name]=G.define,D),{});f.methods=g,this.variableSpace.methods=Object.assign(this.variableSpace.methods,g);const b=r.value.loop;let j=[];if(b&&b.open){this.targetComponentRef.current=[];let D=b.data||[];if(ct(b.data)){const G=b.data;D=lt(G.value,f||{})}return j=D.map((...G)=>{var Lr;const Ft=G[1],bt=[b.forName||"item",b.forIndex||"index"],$e=rr(G,bt);let Ne="loopData";b.name&&(Ne=`${Ne}${b.name}`);const Bt=n.getContext({[Ne]:$e},f),q=n.transformProps(l,{$$context:Bt}),pa=((Lr=r.value.classNames)==null?void 0:Lr.map(H=>{var ie;const Ut=H.name;return(ct(H.status)?lt(String(((ie=H.status)==null?void 0:ie.value)||""),Bt):!1)?Ut:""}))||[];let Te=`${q.className??""} ${pa.join(" ")}`.trim();r.value.css&&(Te=`${le(r)} ${Te}`.trim()),q.className=Te;const da=n.transformProps({style:r.value.style},{$$context:Bt});r.value.style&&(q.style=nr(da.style||[]));const{children:se}=q;let xe=[];if(se!==void 0)delete q.children,xe=Array.isArray(se)?se:[se];else{const H=[];r.value.children.forEach((Fr,ie)=>{const ha=n.buildComponent(Fr,{$$context:Bt,idx:ie});H.push(ha)}),xe=H}if(q.key=`${q.key}-${Ft}`,ct(b.key)){const H=b.key,Ut=lt(H.value,Bt||{});q.key+=`-${Ut}`}return q.ref=H=>{this.targetComponentRef.current=this.targetComponentRef.current||[],this.targetComponentRef.current[Ft]=H},n.render(e,q,...xe)}),j}const O=n.transformProps(l,{$$context:f}),{children:T}=O;let M=[];if(T!==void 0)delete O.children,M=Array.isArray(T)?T:[T];else{const D=[];r.value.children.forEach((Ft,bt)=>{const $e=n.buildComponent(Ft,{$$context:f,idx:bt});D.push($e)}),M=D}O.ref=this.targetComponentRef;const I=((ae=r.value.classNames)==null?void 0:ae.map(D=>{var bt;const G=D.name;return(ct(D.status)?lt(((bt=D.status)==null?void 0:bt.value)||"",f):!1)?G:""}))||[];let k=`${O.className??""} ${I.join(" ")}`.trim();r.value.css&&(k=`${le(r)} ${k}`.trim()),O.className=k;const Lt=n.transformProps({style:r.value.style},{$$context:f});r.value.style&&(O.style=nr(Lt.style||[]));let C=r.value.condition??!0;typeof C!="boolean"&&(C=lt(C.value,f||{}));let ot={condition:C,props:O};n.processNodeConfigHook&&(ot=n.processNodeConfigHook(ot,r));const it=n.render(e,ot.props,...M);return this._CONDITION=ot.condition,ot.condition?it:S.createElement("div",{style:{display:"none"}},it)}}return y(o,"__CP_TYPE__",ue),o.displayName=`${r.value.componentName}Dynamic`,o}buildComponent(e,{$$context:r={}}){const n=this.runtimeComponentCache;return typeof e=="string"?this.render(e):Bf(e)?(({currentNode:a})=>{const i=a.value.id;let s=null;if(n.get(i)){const l=n.get(i);s=l==null?void 0:l.component}else{const l=this.getComponent(a);s=this.convertModelToComponent(l,a),!n.get(i)&&this.renderMode!=="design"&&n.set(i,{component:s})}const c=`${i}-${ue}`,u={$$context:r,$$nodeModel:e,key:c};return this.render(s,u)})({currentNode:e}):void 0}render(e,r={},...n){return typeof e=="string"||typeof e=="number"?String(e):(Cv.forEach(a=>{a in r&&e.__CP_TYPE__!==ue&&delete r[a]}),S.createElement(e,r,...n))}clear(){this.runtimeComponentCache.clear(),this.storeManager.destroy()}}const Tv=In(new na),xv=["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"];var Av=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mv(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var oa={exports:{}},Ee={};/**
|
|
21
21
|
* @license React
|
|
22
22
|
* react-jsx-runtime.production.min.js
|
|
23
23
|
*
|
|
@@ -25,5 +25,5 @@ return $$_run_$$();
|
|
|
25
25
|
*
|
|
26
26
|
* This source code is licensed under the MIT license found in the
|
|
27
27
|
* LICENSE file in the root directory of this source tree.
|
|
28
|
-
*/var Dv=S,Iv=Symbol.for("react.element"),Lv=Symbol.for("react.fragment"),Fv=Object.prototype.hasOwnProperty,Bv=Dv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Uv={key:!0,ref:!0,__self:!0,__source:!0};function ia(t,e,r){var n,o={},a=null,i=null;r!==void 0&&(a=""+r),e.key!==void 0&&(a=""+e.key),e.ref!==void 0&&(i=e.ref);for(n in e)Fv.call(e,n)&&!Uv.hasOwnProperty(n)&&(o[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps,e)o[n]===void 0&&(o[n]=e[n]);return{$$typeof:Iv,type:t,key:a,ref:i,props:o,_owner:Bv.current}}Ee.Fragment=Lv;Ee.jsx=ia;Ee.jsxs=ia;sa.exports=Ee;var kv=sa.exports;const Vv=kv.jsx,ot=t=>{const e={};return t.forEach(r=>{e[r.key]=r.value}),e},zv=[...Mv,...Ef],Gv=zv.reduce((t,e)=>(t[e]=({children:r,$$attributes:n=[],...o})=>{let a=r;return Array.isArray(r)||(a=[r]),S.createElement(e,{...o,...ot(n)},...a)},t),{}),Hv=({children:t,width:e,height:r,$$attributes:n=[],...o})=>{let a=t;Array.isArray(t)||(a=[t]),a=a.filter(u=>u!==void 0);const{style:i={},...s}=ot(n),c={height:r,width:e,...i,...o.style||{}};return S.createElement("div",{...o,...s,style:c},...a)},Wv=({afterMount:t,beforeDestroy:e,$$attributes:r=[],...n})=>(S.useEffect(()=>(t==null||t(n),()=>{e==null||e(n)}),[]),S.createElement("canvas",{...n,...ot(r)})),Jv=({children:t,$$attributes:e=[],...r})=>{let n=t;return Array.isArray(t)||(n=[t]),S.createElement("img",{...r,...ot(e)},...n)},Qv=({children:t,$$attributes:e=[],...r})=>{let n=t;return Array.isArray(t)||(n=[t]),S.createElement("video",{...r,...ot(e)},...n)},qv=({children:t,$$attributes:e=[],...r})=>{let n=t;return Array.isArray(t)||(n=[t]),S.createElement("audio",{...r,...ot(e)},...n)},Yv=({$$attributes:t=[],content:e,...r})=>S.createElement("span",{...r,...ot(t)},e),Kv=({children:t,$$attributes:e=[],afterMount:r,beforeDestroy:n,...o})=>{let a=t;return Array.isArray(t)||(a=[t]),S.useEffect(()=>(r==null||r(o),()=>{n==null||n(o)}),[]),Vv("div",{...o,...ot(e),children:a})},Xv=({children:t,$$attributes:e=[],htmlTag:r="div",...n})=>{let o=t;Array.isArray(t)||(o=[t]);const{style:a={},...i}=ot(e),s={...a,...n.style||{}};return S.createElement(r,{...n,...i,style:s},...o)},Zv={RootContainer:({children:t})=>t,...Gv,CContainer:Kv,CVideo:Qv,CAudio:qv,CBlock:Hv,CImage:Jv,CText:Yv,CCanvas:Wv,CNativeTag:Xv};class tm{constructor(){y(this,"refMap",new Map)}get(e){return this.refMap.get(e)}add(e,r){this.refMap.set(e,r)}remove(e){this.refMap.delete(e)}destroy(){this.refMap.clear()}}class ca extends S.Component{constructor(r){super(r);y(this,"refManager");y(this,"dynamicComponentInstanceMap",new Map);y(this,"onGetRef",(r,n,o)=>{var a,i;(i=(a=this.props).onGetRef)==null||i.call(a,r,n,o),this.dynamicComponentInstanceMap.set(n.id,o),this.refManager.add(n.value.refId||n.id,r)});y(this,"rerender",r=>{if(this.props.adapter.clear(),(r==null?void 0:r.nodeType)==="PAGE"&&r)this.setState({pageModel:r});else if(Nt(r)&&Eo(r)){const n=r;this.setState({pageModel:new he(n,{materials:this.state.pageModel.materialsModel.rawValue})})}});this.state={pageModel:r.pageModel||new he(r.page)},this.refManager=new tm}getPageModel(){return this.state.pageModel}componentDidMount(){const{render:r}=this.props;r&&(r.ref.current=this)}componentWillUnmount(){this.refManager.destroy()}render(){const{props:r}=this,{adapter:n,onGetComponent:o,onComponentDestroy:a,onComponentMount:i}=r,{pageModel:s}=this.state;if(!s)return console.warn("pageModel is null"),null;const c={...Zv,...r.components},u=this.props.$$context??{};return u.refs=this.refManager,n.pageRender(s,{libs:{},components:c,onGetRef:this.onGetRef,onGetComponent:o,onComponentMount:i,onComponentDestroy:a,$$context:u,renderMode:r.renderMode,processNodeConfigHook:r.processNodeConfigHook})}}const em=()=>{const t=S.useRef(null);return{ref:t,rerender:function(...e){t.current&&t.current.rerender(...e)}}};class rm extends S.Component{constructor(r){super(r);y(this,"onDoubleClick",()=>{this.setState({hasError:!1,error:null})});this.state={hasError:!1,error:""}}static getDerivedStateFromError(r){return{hasError:!0,error:r}}componentDidCatch(r,n){var o,a;(a=(o=this.props).onError)==null||a.call(o,n)}render(){if(this.state.hasError){const{onDoubleClick:r}=this,n=this.props.node.value;console.error(this.props.node,this.props.children);const o=S.createElement("div",{style:{backgroundColor:"rgb(255 206 215 / 13%)",padding:"5px",color:"#ff0000b0",textAlign:"center",fontSize:"12px"}},"Render error, node id: ",n.id,", node name:",n.title," component name:",n.title||n.componentName,S.createElement("p",null,"msg: ",String(this.state.error)),S.createElement("button",{onDoubleClick:r,style:{border:"1px solid rgba(100,100,100,0.1)",backgroundColor:"#fff",padding:"5px 10px",borderRadius:"2px",color:"gray",cursor:"pointer",marginTop:"5px"}},"double click to refresh"),S.createElement("div",{style:{display:"none"}}));return S.createElement(this.props.targetComponent,{onlyRenderChild:!0},o)}return this.props.children}}class ua{constructor(){y(this,"instanceMap",new Map)}get(e){return this.instanceMap.get(e)}add(e,r){const n=this.instanceMap.get(e);n?n.push(r):this.instanceMap.set(e,[r])}remove(e,r){const n=this.instanceMap.get(e);if(r!==void 0&&Array.isArray(n)){const o=n.filter(a=>a!==r);this.instanceMap.set(e,o)}else this.instanceMap.delete(e)}destroy(){this.instanceMap.clear()}}const la=t=>{const{node:e}=t,r=S.useMemo(()=>{const s=e.isContainer();return Nt(s)?s:{placeholder:"Drag the component to place it",width:"100%",height:"100%",style:{}}},[t.node]),{placeholder:n,height:o,width:a,style:i}=r;return S.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(200,200,200,0.1)",border:"1px solid rgba(0,0,0,0.1)",borderRadius:"2px",fontSize:"14px",color:"gray",cursor:"default",width:a,height:o,...i}},n)};class nm extends S.Component{constructor(r){super(r);y(this,"instanceManager",new ua);y(this,"renderRef");y(this,"dropPlaceholder",la);y(this,"onGetComponent",(r,n)=>{var c,u;const o=this;let a=r;const i=(u=(c=n.material)==null?void 0:c.value.advanceCustom)==null?void 0:u.wrapComponent;i&&(a=i(r,{node:n,ctx:window.__C_ENGINE_DESIGNER_PLUGIN_CTX__}));class s extends S.Component{constructor(){super(...arguments);y(this,"_DESIGN_BOX",!0);y(this,"_NODE_MODEL",n);y(this,"_NODE_ID",n.id);y(this,"_UNIQUE_ID",`${n.id}_${tt()}`);y(this,"_STATUS")}componentDidMount(){o.instanceManager.add(n.id,this)}componentWillUnmount(){this._STATUS="DESTROY",o.instanceManager.remove(n.id,this)}render(){var j,O;const{children:f=[],onlyRenderChild:d,...h}=this.props;let g=f;if($t(f)||(g=[f]),!!!g.filter(Boolean).length&&(n.isContainer()||n.value.componentName===Pt.ROOT_CONTAINER)){const x=(O=(j=n.material)==null?void 0:j.value.advanceCustom)==null?void 0:O.dropPlaceholder;g.push(S.createElement(x||o.dropPlaceholder,{node:n}))}return d?g:S.createElement(a,h,...g)}}return S.forwardRef(function(p,f){return S.createElement(rm,{node:n,targetComponent:s},S.createElement(s,{ref:f,...p}))})});this.renderRef=S.createRef(),r.dropPlaceholder&&(this.dropPlaceholder=r.dropPlaceholder)}componentDidMount(){var r,n;(n=(r=this.props).onMount)==null||n.call(r,this)}getPageModel(){var r;return(r=this.renderRef.current)==null?void 0:r.state.pageModel}rerender(r){var n;return(n=this.renderRef.current)==null?void 0:n.rerender(r)}getInstancesById(r,n){let o=[...this.instanceManager.get(r)||[]];return n!==void 0&&(o=o.filter(a=>n===(a==null?void 0:a._UNIQUE_ID))),o}getInstanceByDom(r){const n=fa(r);if(!n)return null;const o=pa(n);return(o==null?void 0:o.stateNode)||null}getDomsById(r,n){const o=this.getInstancesById(r),a=[];return o==null||o.forEach(i=>{var c;if((i==null?void 0:i._STATUS)==="DESTROY")return;const s=Sa.findDOMNode(i);if(s&&!(s instanceof Text))if(n){const u=Array.from(((c=s.querySelectorAll)==null?void 0:c.call(s,n))||[]);a.push(...u)}else a.push(s)}),a}getDomRectById(r,n){return this.getDomsById(r,n).map(i=>i==null?void 0:i.getBoundingClientRect()).filter(Boolean)}render(){const{props:r,onGetComponent:n}=this,{render:o,...a}=r;return o&&(o.ref.current=this),S.createElement(ca,{onGetComponent:n,...a,processNodeConfigHook:(i,s)=>{var h,g;if(s.nodeType!=="NODE")return i;const{props:c,condition:u}=i;let l={...c};const p=((h=s.value.configure)==null?void 0:h.devState)||{},f=(g=s.material)==null?void 0:g.value.fixedProps;if(f!==void 0){if(Nt(f))l={...l,...f};else if(typeof f=="function"){const b=f(l);l={...l,...b}}}let d=u;return p.condition===!1&&(d=p.condition),{props:_v(l,p.props||{}),condition:d}},ref:this.renderRef})}}const fa=t=>{if(!t)return null;const e=Object.keys(t).find(r=>r.startsWith("__reactInternalInstance$")||r.startsWith("__reactFiber$"))||"";return e?t[e]:fa(t.parentElement)},pa=t=>{var e;return t?(e=t==null?void 0:t.stateNode)!=null&&e._DESIGN_BOX?t:pa(t.return):null},om=()=>{const t=S.useRef(null);return{ref:t,rerender:function(...e){t.current&&t.current.rerender(...e)},getInstancesById(e,r){var n;return((n=t.current)==null?void 0:n.getInstancesById(e,r))||[]},getInstanceByDom(e){var r;return((r=t.current)==null?void 0:r.getInstanceByDom(e))||null},getDomsById(e,r){var n;return((n=t.current)==null?void 0:n.getDomsById(e,r))||[]},getDomRectById(e,r){var n;return((n=t.current)==null?void 0:n.getDomRectById(e,r))||[]}}};var da={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(Pv,function(){var r=function(){},n={},o={},a={};function i(f,d){f=f.push?f:[f];var h=[],g=f.length,b=g,j,O,x,E;for(j=function(I,Q){Q.length&&h.push(I),b--,b||d(h)};g--;){if(O=f[g],x=o[O],x){j(O,x);continue}E=a[O]=a[O]||[],E.push(j)}}function s(f,d){if(f){var h=a[f];if(o[f]=d,!!h)for(;h.length;)h[0](f,d),h.splice(0,1)}}function c(f,d){f.call&&(f={success:f}),d.length?(f.error||r)(d):(f.success||r)(f)}function u(f,d,h,g){var b=document,j=h.async,O=(h.numRetries||0)+1,x=h.before||r,E=f.replace(/[\?|#].*$/,""),I=f.replace(/^(css|img|module|nomodule)!/,""),Q,it,$;if(g=g||0,/(^css!|\.css$)/.test(E))$=b.createElement("link"),$.rel="stylesheet",$.href=I,Q="hideFocus"in $,Q&&$.relList&&(Q=0,$.rel="preload",$.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(E))$=b.createElement("img"),$.src=I;else if($=b.createElement("script"),$.src=I,$.async=j===void 0?!0:j,it="noModule"in $,/^module!/.test(E)){if(!it)return d(f,"l");$.type="module"}else if(/^nomodule!/.test(E)&&it)return d(f,"l");$.onload=$.onerror=$.onbeforeload=function(ct){var q=ct.type[0];if(Q)try{$.sheet.cssText.length||(q="e")}catch(ae){ae.code!=18&&(q="e")}if(q=="e"){if(g+=1,g<O)return u(f,d,h,g)}else if($.rel=="preload"&&$.as=="style")return $.rel="stylesheet";d(f,q,ct.defaultPrevented)},x(f,$)!==!1&&b.head.appendChild($)}function l(f,d,h){f=f.push?f:[f];var g=f.length,b=g,j=[],O,x;for(O=function(E,I,Q){if(I=="e"&&j.push(E),I=="b")if(Q)j.push(E);else return;g--,g||d(j)},x=0;x<b;x++)u(f[x],O,h)}function p(f,d,h){var g,b;if(d&&d.trim&&(g=d),b=(g?h:d)||{},g){if(g in n)throw"LoadJS";n[g]=!0}function j(O,x){l(f,function(E){c(b,E),O&&c({success:O,error:x},E),s(g,E)},b)}if(b.returnPromise)return new Promise(j);j()}return p.ready=function(d,h){return i(d,function(g){c(h,g)}),p},p.done=function(d){s(d,[])},p.reset=function(){n={},o={},a={}},p.isDefined=function(d){return d in n},p})})(da);var am=da.exports;const Ln=Rv(am);class sm{constructor(e,r){y(this,"assets");y(this,"loadStatus");y(this,"win",window);y(this,"_onSuccessList",[]);y(this,"_onErrorList",[]);this.assets=JSON.parse(JSON.stringify(e||[])),this.loadStatus="INIT",r!=null&&r.window&&(this.win=r.window)}load(){const e=this.assets||[],r=[];for(let n=0;n<e.length;n++){const o=e[n];o.id||(o.id=tt()),r.push(o.id);const a=o.resources.map(i=>i.src);a.length&&Ln(a,o.id,{async:!1,before:(i,s)=>(this.win.document.body.appendChild(s),!1)})}return new Promise((n,o)=>{if(e.length===0){this._onSuccessList.forEach(a=>a()),n("");return}Ln.ready(r,{success:()=>{this._onSuccessList.forEach(a=>a()),n("")},error:a=>{this._onErrorList.forEach(i=>i(a)),o(a)}})})}onSuccess(e){return this._onSuccessList.push(e),this}onError(e){return this._onErrorList.push(e),this}}exports.AssetLoader=sm;exports.ComponentInstanceManager=ua;exports.DefaultDropPlaceholder=la;exports.DefineReactAdapter=aa;exports.DesignRender=nm;exports.ReactAdapter=Av;exports.Render=ca;exports.canAcceptsRef=ta;exports.collectVariable=Ov;exports.compWrapper=ea;exports.convertCodeStringToFunction=ra;exports.flatObject=wv;exports.formatSourceStylePropertyName=nr;exports.getAdapter=Fn;exports.getCSSTextValue=jv;exports.getComponentsLibs=Cv;exports.getMatchVal=na;exports.getNodeCssClassName=le;exports.getObjFromArrayMap=rr;exports.getThirdLibs=Ev;exports.isClass=Sv;exports.runExpression=ft;exports.shouldConstruct=Zo;exports.useDesignRender=om;exports.useRender=em;
|
|
28
|
+
*/var Pv=S,Rv=Symbol.for("react.element"),Dv=Symbol.for("react.fragment"),Iv=Object.prototype.hasOwnProperty,Lv=Pv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Fv={key:!0,ref:!0,__self:!0,__source:!0};function aa(t,e,r){var n,o={},a=null,i=null;r!==void 0&&(a=""+r),e.key!==void 0&&(a=""+e.key),e.ref!==void 0&&(i=e.ref);for(n in e)Iv.call(e,n)&&!Fv.hasOwnProperty(n)&&(o[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps,e)o[n]===void 0&&(o[n]=e[n]);return{$$typeof:Rv,type:t,key:a,ref:i,props:o,_owner:Lv.current}}Ee.Fragment=Dv;Ee.jsx=aa;Ee.jsxs=aa;oa.exports=Ee;var Bv=oa.exports;const Uv=Bv.jsx,nt=t=>{const e={};return t.forEach(r=>{e[r.key]=r.value}),e},kv=[...xv,...wf],Vv=kv.reduce((t,e)=>(t[e]=({children:r,$$attributes:n=[],...o})=>{let a=r;return Array.isArray(r)||(a=[r]),S.createElement(e,{...o,...nt(n)},...a)},t),{}),zv=({children:t,width:e,height:r,$$attributes:n=[],...o})=>{let a=t;Array.isArray(t)||(a=[t]),a=a.filter(u=>u!==void 0);const{style:i={},...s}=nt(n),c={height:r,width:e,...i,...o.style||{}};return S.createElement("div",{...o,...s,style:c},...a)},Gv=({afterMount:t,beforeDestroy:e,$$attributes:r=[],...n})=>(S.useEffect(()=>(t==null||t(n),()=>{e==null||e(n)}),[]),S.createElement("canvas",{...n,...nt(r)})),Hv=({children:t,$$attributes:e=[],...r})=>{let n=t;return Array.isArray(t)||(n=[t]),S.createElement("img",{...r,...nt(e)},...n)},Wv=({children:t,$$attributes:e=[],...r})=>{let n=t;return Array.isArray(t)||(n=[t]),S.createElement("video",{...r,...nt(e)},...n)},Jv=({children:t,$$attributes:e=[],...r})=>{let n=t;return Array.isArray(t)||(n=[t]),S.createElement("audio",{...r,...nt(e)},...n)},Qv=({$$attributes:t=[],content:e,...r})=>S.createElement("span",{...r,...nt(t)},e),qv=({children:t,$$attributes:e=[],afterMount:r,beforeDestroy:n,...o})=>{let a=t;return Array.isArray(t)||(a=[t]),S.useEffect(()=>(r==null||r(o),()=>{n==null||n(o)}),[]),Uv("div",{...o,...nt(e),children:a})},Yv=({children:t,$$attributes:e=[],htmlTag:r="div",...n})=>{let o=t;Array.isArray(t)||(o=[t]);const{style:a={},...i}=nt(e),s={...a,...n.style||{}};return S.createElement(r,{...n,...i,style:s},...o)},Kv={RootContainer:({children:t})=>t,...Vv,CContainer:qv,CVideo:Wv,CAudio:Jv,CBlock:zv,CImage:Hv,CText:Qv,CCanvas:Gv,CNativeTag:Yv};class Xv{constructor(){y(this,"refMap",new Map)}get(e){return this.refMap.get(e)}add(e,r){this.refMap.set(e,r)}remove(e){this.refMap.delete(e)}destroy(){this.refMap.clear()}}class sa extends S.Component{constructor(r){super(r);y(this,"refManager");y(this,"dynamicComponentInstanceMap",new Map);y(this,"onGetRef",(r,n,o)=>{var a,i;(i=(a=this.props).onGetRef)==null||i.call(a,r,n,o),this.dynamicComponentInstanceMap.set(n.id,o),this.refManager.add(n.value.refId||n.id,r)});y(this,"rerender",r=>{if(this.props.adapter.clear(),(r==null?void 0:r.nodeType)==="PAGE"&&r)this.setState({pageModel:r});else if($t(r)&&wo(r)){const n=r;this.setState({pageModel:new he(n,{materials:this.state.pageModel.materialsModel.rawValue})})}});this.state={pageModel:r.pageModel||new he(r.page)},this.refManager=new Xv}getPageModel(){return this.state.pageModel}componentDidMount(){const{render:r}=this.props;r&&(r.ref.current=this)}componentWillUnmount(){this.refManager.destroy()}render(){const{props:r}=this,{adapter:n,onGetComponent:o,onComponentDestroy:a,onComponentMount:i}=r,{pageModel:s}=this.state;if(!s)return console.warn("pageModel is null"),null;const c={...Kv,...r.components},u=this.props.$$context??{};return u.refs=this.refManager,n.pageRender(s,{libs:{},components:c,onGetRef:this.onGetRef,onGetComponent:o,onComponentMount:i,onComponentDestroy:a,$$context:u,renderMode:r.renderMode,processNodeConfigHook:r.processNodeConfigHook})}}const Zv=()=>{const t=S.useRef(null);return{ref:t,rerender:function(...e){t.current&&t.current.rerender(...e)}}};class tm extends S.Component{constructor(r){super(r);y(this,"onDoubleClick",()=>{this.setState({hasError:!1,error:null})});this.state={hasError:!1,error:""}}static getDerivedStateFromError(r){return{hasError:!0,error:r}}componentDidCatch(r,n){var o,a;(a=(o=this.props).onError)==null||a.call(o,n)}render(){if(this.state.hasError){const{onDoubleClick:r}=this,n=this.props.node.value;console.error(this.props.node,this.props.children);const o=S.createElement("div",{style:{backgroundColor:"rgb(255 206 215 / 13%)",padding:"5px",color:"#ff0000b0",textAlign:"center",fontSize:"12px"}},"Render error, node id: ",n.id,", node name:",n.title," component name:",n.title||n.componentName,S.createElement("p",null,"msg: ",String(this.state.error)),S.createElement("button",{onDoubleClick:r,style:{border:"1px solid rgba(100,100,100,0.1)",backgroundColor:"#fff",padding:"5px 10px",borderRadius:"2px",color:"gray",cursor:"pointer",marginTop:"5px"}},"double click to refresh"),S.createElement("div",{style:{display:"none"}}));return S.createElement(this.props.targetComponent,{onlyRenderChild:!0},o)}return this.props.children}}class ia{constructor(){y(this,"instanceMap",new Map)}get(e){return this.instanceMap.get(e)}add(e,r){const n=this.instanceMap.get(e);n?n.push(r):this.instanceMap.set(e,[r])}remove(e,r){const n=this.instanceMap.get(e);if(r!==void 0&&Array.isArray(n)){const o=n.filter(a=>a!==r);this.instanceMap.set(e,o)}else this.instanceMap.delete(e)}destroy(){this.instanceMap.clear()}}const ca=t=>{const{node:e}=t,r=S.useMemo(()=>{const s=e.isContainer();return $t(s)?s:{placeholder:"Drag the component to place it",width:"100%",height:"100%",style:{}}},[t.node]),{placeholder:n,height:o,width:a,style:i}=r;return S.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(200,200,200,0.1)",border:"1px solid rgba(0,0,0,0.1)",borderRadius:"2px",fontSize:"14px",color:"gray",cursor:"default",width:a,height:o,...i}},n)};class em extends S.Component{constructor(r){super(r);y(this,"instanceManager",new ia);y(this,"renderRef");y(this,"dropPlaceholder",ca);y(this,"onGetComponent",(r,n)=>{var c,u;const o=this;let a=r;const i=(u=(c=n.material)==null?void 0:c.value.advanceCustom)==null?void 0:u.wrapComponent;i&&(a=i(r,{node:n,ctx:window.__C_ENGINE_DESIGNER_PLUGIN_CTX__}));class s extends S.Component{constructor(){super(...arguments);y(this,"_DESIGN_BOX",!0);y(this,"_NODE_MODEL",n);y(this,"_NODE_ID",n.id);y(this,"_UNIQUE_ID",`${n.id}_${Z()}`);y(this,"_STATUS")}componentDidMount(){o.instanceManager.add(n.id,this)}componentWillUnmount(){this._STATUS="DESTROY",o.instanceManager.remove(n.id,this)}render(){var j,O;const{children:f=[],onlyRenderChild:d,...h}=this.props;let g=f;if(Et(f)||(g=[f]),!!!g.filter(Boolean).length&&(n.isContainer()||n.value.componentName===Mt.ROOT_CONTAINER)){const T=(O=(j=n.material)==null?void 0:j.value.advanceCustom)==null?void 0:O.dropPlaceholder;g.push(S.createElement(T||o.dropPlaceholder,{node:n}))}return d?g:S.createElement(a,h,...g)}}return S.forwardRef(function(p,f){return S.createElement(tm,{node:n,targetComponent:s},S.createElement(s,{ref:f,...p}))})});this.renderRef=S.createRef(),r.dropPlaceholder&&(this.dropPlaceholder=r.dropPlaceholder)}componentDidMount(){var r,n;(n=(r=this.props).onMount)==null||n.call(r,this)}getPageModel(){var r;return(r=this.renderRef.current)==null?void 0:r.state.pageModel}rerender(r){var n;return(n=this.renderRef.current)==null?void 0:n.rerender(r)}getInstancesById(r,n){let o=[...this.instanceManager.get(r)||[]];return n!==void 0&&(o=o.filter(a=>n===(a==null?void 0:a._UNIQUE_ID))),o}getInstanceByDom(r){const n=ua(r);if(!n)return null;const o=la(n);return(o==null?void 0:o.stateNode)||null}getDomsById(r,n){const o=this.getInstancesById(r),a=[];return o==null||o.forEach(i=>{var c;if((i==null?void 0:i._STATUS)==="DESTROY")return;const s=ba.findDOMNode(i);if(s&&!(s instanceof Text))if(n){const u=Array.from(((c=s.querySelectorAll)==null?void 0:c.call(s,n))||[]);a.push(...u)}else a.push(s)}),a}getDomRectById(r,n){return this.getDomsById(r,n).map(i=>i==null?void 0:i.getBoundingClientRect()).filter(Boolean)}render(){const{props:r,onGetComponent:n}=this,{render:o,...a}=r;return o&&(o.ref.current=this),S.createElement(sa,{onGetComponent:n,...a,processNodeConfigHook:(i,s)=>{var h,g;if(s.nodeType!=="NODE")return i;const{props:c,condition:u}=i;let l={...c};const p=((h=s.value.configure)==null?void 0:h.devState)||{},f=(g=s.material)==null?void 0:g.value.fixedProps;if(f!==void 0){if($t(f))l={...l,...f};else if(typeof f=="function"){const b=f(l);l={...l,...b}}}let d=u;return p.condition===!1&&(d=p.condition),{props:yv(l,p.props||{}),condition:d}},ref:this.renderRef})}}const ua=t=>{if(!t)return null;const e=Object.keys(t).find(r=>r.startsWith("__reactInternalInstance$")||r.startsWith("__reactFiber$"))||"";return e?t[e]:ua(t.parentElement)},la=t=>{var e;return t?(e=t==null?void 0:t.stateNode)!=null&&e._DESIGN_BOX?t:la(t.return):null},rm=()=>{const t=S.useRef(null);return{ref:t,rerender:function(...e){t.current&&t.current.rerender(...e)},getInstancesById(e,r){var n;return((n=t.current)==null?void 0:n.getInstancesById(e,r))||[]},getInstanceByDom(e){var r;return((r=t.current)==null?void 0:r.getInstanceByDom(e))||null},getDomsById(e,r){var n;return((n=t.current)==null?void 0:n.getDomsById(e,r))||[]},getDomRectById(e,r){var n;return((n=t.current)==null?void 0:n.getDomRectById(e,r))||[]}}};var fa={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(Av,function(){var r=function(){},n={},o={},a={};function i(f,d){f=f.push?f:[f];var h=[],g=f.length,b=g,j,O,T,M;for(j=function(I,k){k.length&&h.push(I),b--,b||d(h)};g--;){if(O=f[g],T=o[O],T){j(O,T);continue}M=a[O]=a[O]||[],M.push(j)}}function s(f,d){if(f){var h=a[f];if(o[f]=d,!!h)for(;h.length;)h[0](f,d),h.splice(0,1)}}function c(f,d){f.call&&(f={success:f}),d.length?(f.error||r)(d):(f.success||r)(f)}function u(f,d,h,g){var b=document,j=h.async,O=(h.numRetries||0)+1,T=h.before||r,M=f.replace(/[\?|#].*$/,""),I=f.replace(/^(css|img|module|nomodule)!/,""),k,Lt,C;if(g=g||0,/(^css!|\.css$)/.test(M))C=b.createElement("link"),C.rel="stylesheet",C.href=I,k="hideFocus"in C,k&&C.relList&&(k=0,C.rel="preload",C.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(M))C=b.createElement("img"),C.src=I;else if(C=b.createElement("script"),C.src=I,C.async=j===void 0?!0:j,Lt="noModule"in C,/^module!/.test(M)){if(!Lt)return d(f,"l");C.type="module"}else if(/^nomodule!/.test(M)&&Lt)return d(f,"l");C.onload=C.onerror=C.onbeforeload=function(ot){var it=ot.type[0];if(k)try{C.sheet.cssText.length||(it="e")}catch(ae){ae.code!=18&&(it="e")}if(it=="e"){if(g+=1,g<O)return u(f,d,h,g)}else if(C.rel=="preload"&&C.as=="style")return C.rel="stylesheet";d(f,it,ot.defaultPrevented)},T(f,C)!==!1&&b.head.appendChild(C)}function l(f,d,h){f=f.push?f:[f];var g=f.length,b=g,j=[],O,T;for(O=function(M,I,k){if(I=="e"&&j.push(M),I=="b")if(k)j.push(M);else return;g--,g||d(j)},T=0;T<b;T++)u(f[T],O,h)}function p(f,d,h){var g,b;if(d&&d.trim&&(g=d),b=(g?h:d)||{},g){if(g in n)throw"LoadJS";n[g]=!0}function j(O,T){l(f,function(M){c(b,M),O&&c({success:O,error:T},M),s(g,M)},b)}if(b.returnPromise)return new Promise(j);j()}return p.ready=function(d,h){return i(d,function(g){c(h,g)}),p},p.done=function(d){s(d,[])},p.reset=function(){n={},o={},a={}},p.isDefined=function(d){return d in n},p})})(fa);var nm=fa.exports;const Dn=Mv(nm);class om{constructor(e,r){y(this,"assets");y(this,"loadStatus");y(this,"win",window);y(this,"_onSuccessList",[]);y(this,"_onErrorList",[]);this.assets=JSON.parse(JSON.stringify(e||[])),this.loadStatus="INIT",r!=null&&r.window&&(this.win=r.window)}load(){const e=this.assets||[],r=[];for(let n=0;n<e.length;n++){const o=e[n];o.id||(o.id=Z()),r.push(o.id);const a=o.resources.map(i=>i.src);a.length&&Dn(a,o.id,{async:!1,before:(i,s)=>(this.win.document.body.appendChild(s),!1)})}return new Promise((n,o)=>{if(e.length===0){this._onSuccessList.forEach(a=>a()),n("");return}Dn.ready(r,{success:()=>{this._onSuccessList.forEach(a=>a()),n("")},error:a=>{this._onErrorList.forEach(i=>i(a)),o(a)}})})}onSuccess(e){return this._onSuccessList.push(e),this}onError(e){return this._onErrorList.push(e),this}}exports.AssetLoader=om;exports.ComponentInstanceManager=ia;exports.DefaultDropPlaceholder=ca;exports.DefineReactAdapter=na;exports.DesignRender=em;exports.ReactAdapter=Tv;exports.Render=sa;exports.canAcceptsRef=Xo;exports.collectVariable=Sv;exports.compWrapper=Zo;exports.convertCodeStringToFunction=ta;exports.flatObject=jv;exports.formatSourceStylePropertyName=nr;exports.getAdapter=In;exports.getCSSTextValue=_v;exports.getComponentsLibs=Ov;exports.getMatchVal=ea;exports.getNodeCssClassName=le;exports.getObjFromArrayMap=rr;exports.getThirdLibs=wv;exports.isClass=bv;exports.runExpression=lt;exports.shouldConstruct=Ko;exports.useDesignRender=rm;exports.useRender=Zv;
|
|
29
29
|
//# sourceMappingURL=index.js.map
|