@byteluck-fe/model-driven-engine 7.0.0-props.64 → 7.0.0-props.66
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.umd.js +2 -2
- package/package.json +3 -3
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var a2=Object.defineProperty,l2=Object.defineProperties;var c2=Object.getOwnPropertyDescriptors;var Hi=Object.getOwnPropertySymbols,f2=Object.getPrototypeOf,vf=Object.prototype.hasOwnProperty,mf=Object.prototype.propertyIsEnumerable,h2=Reflect.get;var Qi=Math.pow,gf=(ue,_e,xe)=>_e in ue?a2(ue,_e,{enumerable:!0,configurable:!0,writable:!0,value:xe}):ue[_e]=xe,Ee=(ue,_e)=>{for(var xe in _e||(_e={}))vf.call(_e,xe)&&gf(ue,xe,_e[xe]);if(Hi)for(var xe of Hi(_e))mf.call(_e,xe)&&gf(ue,xe,_e[xe]);return ue},Er=(ue,_e)=>l2(ue,c2(_e));var fs=(ue,_e)=>{var xe={};for(var at in ue)vf.call(ue,at)&&_e.indexOf(at)<0&&(xe[at]=ue[at]);if(ue!=null&&Hi)for(var at of Hi(ue))_e.indexOf(at)<0&&mf.call(ue,at)&&(xe[at]=ue[at]);return xe};var yf=(ue,_e,xe)=>h2(f2(ue),xe,_e);var Pt=(ue,_e,xe)=>new Promise((at,An)=>{var Ji=Bt=>{try{zr(xe.next(Bt))}catch(wr){An(wr)}},lr=Bt=>{try{zr(xe.throw(Bt))}catch(wr){An(wr)}},zr=Bt=>Bt.done?at(Bt.value):Promise.resolve(Bt.value).then(Ji,lr);zr((xe=xe.apply(ue,_e)).next())});(function(ue,_e){typeof exports=="object"&&typeof module!="undefined"?_e(exports,require("crypto"),require("path"),require("url"),require("fs"),require("util")):typeof define=="function"&&define.amd?define(["exports","crypto","path","url","fs","util"],_e):(ue=typeof globalThis!="undefined"?globalThis:ue||self,_e(ue.modelDrivenEngine={},ue.require$$0,ue.require$$1,ue.require$$3,ue.require$$0$1,ue.require$$0$2))})(this,function(ue,_e,xe,at,An,Ji){"use strict";function lr(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var zr=lr(_e),Bt=lr(xe),wr=lr(at),Df=lr(An),Ef=lr(Ji);const se=(t,e,r)=>{if(!t)return console.error("getLocaleText\u7684key\u4E0D\u80FD\u4E3A\u7A7A"),"";const n=t.split(".");let i;const u=(window.baitedaWorkers||{}).languageMessages||{};n.forEach((a,s)=>{s===0?i=u[a]:i&&(i=i[a])});let o="";return i&&(o=i),e&&Object.keys(e).forEach(a=>{const s=e[a];o=o.replace(new RegExp(`\\{\\s*${a}\\s*\\}`,"g"),s)}),o||(r?o=r:o=t),o};var wf="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",Cf="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",Af="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",bf="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",Ff="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",_f="{caption}\u5FC5\u586B",Bf="\u8BF7\u8F93\u5165\u6807\u9898",Sf="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",Of="\u8BF7\u8F93\u5165\u884C\u6807\u9898",Mf="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",xf="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",If="\u8BF7\u7ED1\u5B9A\u8868\u5355",Tf="\u8BF7\u7ED1\u5B9A\u5217\u8868",Pf="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",Nf="\u8BF7\u8F93\u5165\u663E\u793A\u503C",$f="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",Rf="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",Lf="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",kf="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",qf="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",jf="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",Uf="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",Vf="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",Wf="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",zf="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",Gf="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",Hf="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Qf="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u8D85\u8FC7\u4E86\u9650\u5236",Jf="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",Zf="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",Xf="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",Kf="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",Yf="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",eh="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",th="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",rh="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",nh="\u8BF7\u7ED1\u5B9A\u670D\u52A1",ih="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",uh="\u8BF7\u9009\u62E9\u7701",oh="\u8BF7\u9009\u62E9\u5E02",sh="\u8BF7\u9009\u62E9\u533A",ah="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",lh="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",ch="\u8BF7\u8F93\u5165\u5217\u5BBD",fh="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",hh="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",dh="\u8BF7\u9009\u62E9\u63A7\u4EF6",ph="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",gh="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",vh="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",mh="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",yh="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Dh="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Eh="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",wh="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Ch="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Ah="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",bh="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",Fh="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",_h="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Bh="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",Sh="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Oh="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",Mh="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",xh="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",Ih="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Th="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Ph="\u8BF7\u8F93\u5165\u5B50\u8868\u522B\u540D",Nh="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u4E1A\u52A1\u6A21\u578B",$h="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u7ED1\u5B9A\u670D\u52A1",Rh="\u8BF7\u9009\u62E9\u5173\u8054\u5B50\u8868\u5B57\u6BB5",Lh="\u8BF7\u9009\u62E9\u5173\u8054\u4E3B\u8868\u5B57\u6BB5",kh="\u8BF7\u9009\u62E9\u6392\u5E8F\u5B57\u6BB5",qh="\u6279\u91CF\u5220\u9664",jh="\u6279\u91CF\u6253\u5370",Uh="\u6279\u91CF\u6253\u5370\u8BB0\u5F55",Vh="\u6309\u94AE",Wh="\u521B\u5EFA\u5355\u636E",zh="\u4EEA\u8868\u76D8",Gh="\u5206\u5272\u7EBF",Hh="\u5BFC\u51FA",Qh="\u8868\u5355\u64CD\u4F5C",Jh="\u5BFC\u5165",Zh="\u53D1\u7968\u8BC6\u522B",Xh="\u94FE\u63A5",Kh="\u5217\u8868\u9009\u62E9",Yh="\u5217\u8868\u89C6\u56FE",e0="\u64CD\u4F5C\u6309\u94AE",t0="\u5206\u9875",r0="\u6279\u91CF\u63D0\u4EA4\u8BB0\u5F55",n0="\u8BF4\u660E\u6587\u5B57",i0="\u6587\u5B57\u8BC6\u522B",u0="\u6807\u9898\u7EC4\u4EF6",o0="\u5F53\u524D\u5BA1\u6279\u72B6\u6001",s0="\u6570\u7EC4",a0="\u81EA\u52A8\u7F16\u53F7",l0="\u81EA\u5B9A\u4E49",c0="\u6570\u503C",f0="\u90E8\u95E8",h0="\u4EBA\u5458",d0="\u9644\u4EF6",p0="\u56FE\u7247",g0="\u5730\u5740",v0="\u64CD\u4F5C",m0="\u5E8F\u53F7",y0="\u4EBA\u5458",D0="\u957F\u6587\u672C",E0="\u65E5\u671F\u533A\u95F4",w0="\u65E5\u671F",C0="\u77ED\u6587\u672C",A0="\u6362\u884C\u5BB9\u5668Wrap",b0="\u8868\u683C",F0="\u660E\u7EC6\u5B50\u8868",_0="\u5730\u5740",B0="\u91D1\u989D",S0="\u8BA1\u7B97\u516C\u5F0F",O0="\u591A\u9009",M0="\u7535\u5B50\u7B7E\u7AE0",x0="\u5355\u884C\u6587\u672C",I0="\u6570\u5B57",T0="\u4E1A\u52A1\u7EC4\u7EC7",P0="\u5355\u9009",N0="\u5BCC\u6587\u672C",$0="\u8BC4\u5206",R0="\u6570\u5B57\u533A\u95F4",L0="\u4E0B\u62C9\u5355\u9009",k0="\u4E0B\u62C9\u591A\u9009",q0="\u5173\u8054\u5355\u9009",j0="\u591A\u884C\u6587\u672C",U0="\u6811",V0="Vue\u5BB9\u5668",W0="Vue\u9875\u9762",z0="\u5728\u7EBF\u6587\u6863",G0="\u6309\u94AE\u64CD\u4F5C\u680F",H0="\u9AD8\u7EA7\u5BB9\u5668",Q0="\u5206\u7EC4",J0="\u6805\u683C\u5217",Z0="\u6570\u636E\u5BB9\u5668",X0="\u753B\u5E03",K0="\u6362\u884C\u5BB9\u5668",Y0="\u6805\u683C\u7B49\u5206\u884C",ed="\u5217\u8868\u5BB9\u5668",td="\u81EA\u7531\u9875\u9762",rd="\u5B9A\u4F4D\u5B50\u5BB9\u5668",nd="\u5B9A\u4F4D\u5BB9\u5668",id="\u6805\u683C\u5E03\u5C40",ud="\u660E\u7EC6\u5B50\u8868\u5355\u5143\u683C",od="\u660E\u7EC6\u5B50\u8868\u884C",sd="\u6807\u7B7E\u9875",ad="\u6807\u7B7E\u5355\u5143",ld="\u5DE5\u5177\u680F",cd="\u6279\u91CF\u63D0\u4EA4",fd="\u5BFC\u51FA\u8BB0\u5F55",hd="\u5217\u8868\u89C6\u56FE",dd="\u7ED3\u675F\u65F6\u95F4",pd="\u5F00\u59CB\u65F6\u95F4",gd="\u5355\u4F4D",vd="\u7ED3\u679C",md="\u5E01\u79CD",yd="\u7ED3\u675F\u65E5\u671F",Dd="\u5F00\u59CB\u65E5\u671F",Ed="\u8BF7\u9009\u62E9\u516C\u53F8\u540D\u79F0",wd="\u8BF7\u9009\u62E9\u624B\u673A\u53F7/\u90AE\u7BB1",Cd="\u8BF7\u9009\u62E9\u7B7E\u7AE0\u7C7B\u578B",Ad="\u8BF7\u9009\u62E9\u7B7E\u7F72\u4EBA",bd="\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u7B7E\u7F72\u4EBA",Fd="\u8BF7\u9009\u62E9\u7B7E\u7F72\u6587\u4EF6",_d="\u8BF7\u9009\u62E9",Bd="\u8BF7\u9009\u62E9\u7EC4\u7EC7",Sd="\u8BF7\u9009\u62E9\u90E8\u95E8",Od="\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",Md="\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F",xd="\u8BF7\u9009\u62E9\u5730\u5740",Id="\u5F39\u7A97\u786E\u8BA4\u65F6",Td="\u6807\u7B7E\u9875\u5207\u6362\u65F6",Pd="\u884C\u9009\u4E2D\u65F6",Nd="\u5217\u8868\u6570\u636E\u5BFC\u5165\u524D",$d="\u884C\u5220\u9664\u524D",Rd="\u884C\u70B9\u51FB\u65F6",Ld="\u64CD\u4F5C\u5217\u6E32\u67D3\u65F6",kd="\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6",qd="\u91CD\u547D\u540D\u65F6",jd="\u4FDD\u5B58\u6587\u4EF6\u65F6",Ud="\u6253\u5F00\u6587\u4EF6\u65F6",Vd="\u83B7\u53D6\u7126\u70B9\u65F6",Wd="\u5931\u53BB\u7126\u70B9\u65F6",zd="\u7528\u6237\u8F93\u5165\u65F6",Gd="\u5217\u8868\u6570\u636E\u63D2\u5165\u524D",Hd="\u5217\u8868\u6570\u636E\u5220\u9664\u65F6",Qd="\u5217\u8868\u6570\u636E\u8FD4\u56DE\u65F6",Jd="\u5217\u8868\u6570\u636E\u67E5\u8BE2\u6784\u5EFA\u65F6",Zd="\u5217\u8868\u6570\u636E\u53D8\u5316\u65F6",Xd="\u641C\u7D22\u65F6",Kd="\u503C\u53D1\u751F\u53D8\u5316\u65F6",Yd="\u6267\u884C\u5B8C\u6210\u65F6",ep="\u70B9\u51FB\u65F6",tp="\u8BF7\u8F93\u5165\u4EBA\u5458\u59D3\u540D\u6216\u90AE\u7BB1",rp="\u8BF7\u8F93\u5165\u65E5\u671F",np="\u8BF7\u8F93\u5165\u81EA\u52A8\u7F16\u53F7",ip="\u8BF7\u8F93\u5165",up="\u9ED8\u8BA4\u6A21\u7248",op="\u5DE6\u53F3\u5E03\u5C40",sp="\u4E0A\u4E0B\u5E03\u5C40",ap="\u53EA\u8BFB",lp="\u5FC5\u586B",cp="\u63D0\u793A\u6587\u5B57",fp="\u9690\u85CF\u6807\u9898",hp="\u6807\u9898\u5FC5\u586B",dp="\u7EC4\u7EC7\u5F62\u6001",pp="\u4E1A\u52A1\u7C7B\u578B",gp="\u786E\u5B9A\u8981\u5220\u9664\u6B64\u6761\u6570\u636E\u5417\uFF1F",vp="\u9690\u85CF",mp="\u6D41\u7A0B\u72B6\u6001",yp="\u5BA1\u6279\u901A\u8FC7\u5355\u636E",Dp="\u5220\u9664",Ep="\u7F16\u8F91",wp="\u67E5\u770B",Cp="\u52A0\u8F7D\u81EA\u5B9A\u4E49\u63A7\u4EF6\u5F02\u5E38\uFF0C\u4F1A\u5F71\u54CD\u5230\u7684\u63A7\u4EF6\uFF1A{id}",Ap="\u5185\u7F6E\u7EC4\u4EF6\u52A0\u8F7D\u9519\u8BEF",bp="\u5145\u6EE1\u6574\u884C",Fp="\u6700\u5C0F\u503C",_p="\u6700\u5927\u503C",Bp="\u65B0\u5EFA\u6587\u6863",Sp="\u91CD\u7F6E",Op="\u67E5\u8BE2",Mp="\u660E\u7EC6",xp="\u6253\u5370",Ip="\u4FDD\u5B58\u8349\u7A3F",Tp="\u4FDD\u5B58",Pp="\u53D6\u6D88",Np="\u4E0A\u4F20\u56FE\u7247",$p="\u53D1\u8D77\u7B7E\u7F72",Rp="\u4E0A\u4F20\u9644\u4EF6",Lp="\u6211\u662F\u4E00\u4E2A\u94FE\u63A5",kp="\u5F15\u7528\u5217\u8868",qp="\u9009\u9879\u4E00",jp="\u9009\u9879\u4E8C",Up="\u9009\u9879\u4E09",Vp={isNotNumber:wf,isNotString:Cf,isNotObject:Af,isNotArray:bf,isNotBoolean:Ff,runtimeRequired:_f,pleaseEnterCaption:Bf,pleaseEnterCaptionTip:Sf,pleaseEnterRowCaption:Of,pleaseEnterPlaceholder:Mf,pleaseEnterFieldCode:xf,pleaseEnterForm:If,pleaseEnterList:Tf,pleaseEnterProcess:Pf,pleaseEnterLabel:Nf,pleaseEnterValue:$f,bizKeyNotBindFiled:Rf,pleaseSelectOneField:Lf,pleaseEnterNumberRange:kf,pleaseEnterAValueGreaterThanMin:qf,pleaseEnterAValueLessThanMax:jf,numberRangeSetError:Uf,stringRangeError:Vf,attachmentMaxSize:Wf,pleaseEnterTotalScoreSetting:zf,theTotalScoreMustNotBeLessThan1:Gf,scoreDefaultValueRange:Hf,attachmentLimitError:Qf,PleaseReselectTheOptionalQuantity:Jf,TheMaximumLengthIsGreaterThanTheMinimumLength:Zf,TheMinimumLengthIsGreaterThanTheMaximumLength:Xf,PleaseSelectTheCorrectOptionSettings:Kf,optionIdIsRepeat:Yf,optionIsRequired:eh,pleaseEnterDataCode:th,pleaseEnterValueFieldCode:rh,pleaseEnterSvcCode:nh,pleaseBindAtLeastOneDisplayValue:ih,pleaseSelectProvince:uh,pleaseSelectCity:oh,pleaseSelectDistrict:sh,limitRowsCannotBeLessThan0:ah,TheNumberOfRowsCannotBeLessThanMinRows:lh,pleaseEnterColumnWidth:ch,pleaseSetTheLogicalRelationshipOfAllRuleConditions:fh,pleaseCompleteAllRulesAndConditions:hh,pleaseSelectControl:dh,pleaseSelectAtLeastOneColumn:ph,pleaseSelectFillBackMode:gh,pleaseSelectDashboard:vh,rootNodeIsRequired:mh,theViewNameCannotBeEmpty:yh,pleaseSelectOcrType:Dh,pleaseSelectAtLeastOneFieldToFillIn:Eh,pleaseChooseAtLeastOne:wh,pleaseEnterButtonContent:Ch,pleaseEnterDataCodeInDataSetting:Ah,pleaseEnterValueFieldCodeInDataSetting:bh,pleaseEnterSvcCodeInDataSetting:Fh,pleaseBindAtLeastOneDisplayValueInDataSetting:_h,rootNodeIsRequiredInDataSetting:Bh,pleaseEnterMaxHeight:Sh,pleaseEnterWatermark:Oh,pleaseEnterFileName:Mh,pleaseUploadAtLeastOnePrintTemplate:xh,pleaseAssignBusiness:Ih,pleaseAssignExternal:Th,pleaseEnterAliasCode:Ph,pleaseSelectDataCode:Nh,pleaseSelectSvcCode:$h,pleaseSelectJoinFieldCode:Rh,pleaseSelectMainFieldCode:Lh,pleaseSelectSortFieldCode:kh,batchDeleteButton:qh,batchPrintListButton:jh,batchPrintRecordList:Uh,button:Vh,createFormListButton:Wh,dashboard:zh,divider:Gh,exportListButton:Hh,formSelectButton:Qh,importRecordListButton:Jh,invoiceCheckButton:Zh,link:Xh,listSelectButton:Kh,ListViewSelect:Yh,operationButton:e0,pagination:t0,submissionRecordListButton:r0,text:n0,textOcrButton:i0,title:u0,approvalStatusColumn:o0,array:s0,autoNumber:a0,custom:l0,decimal:c0,department:f0,employee:h0,file:d0,image:p0,location:g0,operation:v0,order:m0,people:y0,long:D0,timescope:E0,timestamp:w0,varchar:C0,gridLayoutWrap:A0,gridTable:b0,subTable:F0,address:_0,amount:B0,calc:S0,checkBox:O0,electronicSignature:M0,input:x0,number:I0,organizationSelection:T0,radio:P0,richText:N0,score:$0,searchNumberRange:R0,select:L0,selectMultiple:k0,selectRelation:q0,textarea:j0,tree:U0,vueFormItem:V0,vuePage:W0,WPS:z0,actionBar:G0,advancedContainer:H0,cardGroup:Q0,col:J0,dataView:Z0,grid:X0,gridLayoutContainer:K0,gridRow:Y0,listView:ed,page:td,position:rd,positioningContainer:nd,row:id,subtableColumn:ud,subtableRow:od,tab:sd,tabPane:ad,toolbox:ld,batchSubmissionListButton:cd,exportRecordListButton:fd,listViewSelect:hd,endTime:dd,startTime:pd,unit:gd,result:vd,currency:md,endDate:yd,startDate:Dd,pleaseSelectCompanyName:Ed,pleaseSelectPhoneOrEmail:wd,pleaseSelectSignType:Cd,pleaseSelectSigner:Ad,pleaseSelectOnlyOne:bd,pleaseSelectSignFile:Fd,pleaseSelect:_d,pleaseSelectOrg:Bd,pleaseSelectDept:Sd,pleaseSelectEndDate:Od,pleaseSelectStartDate:Md,pleaseChooseAddress:xd,modalConfirm:Id,tabChange:Td,rowSelected:Pd,listDataImport:Nd,rowDelete:$d,rowClick:Rd,cellRender:Ld,onClickBtn:kd,rename:qd,onSaveFile:jd,onOpenFile:Ud,onFocus:Vd,onBlur:Wd,onInput:zd,listDataAdd:Gd,listDataDelete:Hd,listDataBack:Qd,listDataCreate:Jd,listDataChange:Zd,search:Xd,valueChange:Kd,finished:Yd,click:ep,pleaseEnterNameorEmail:tp,pleaseEnterDate:rp,pleaseEnterAutonumber:np,pleaseEnter:ip,defaultTemplate:up,left:op,top:sp,default:"\u666E\u901A",readonly:ap,required:lp,textTip:cp,hideCaption:fp,titleRequired:hp,organizationalForm:dp,businessType:pp,deleteConfirm:gp,hide:vp,processStatus:mp,approvedDocuments:yp,delete:Dp,edit:Ep,view:wp,loadCtrlErrorTip:Cp,loadCtrlError:Ap,fullLine:bp,min:Fp,max:_p,createWPS:Bp,reset:Sp,query:Op,detailed:Mp,print:xp,draft:Ip,save:Tp,cancel:Pp,uploadImg:Np,signature:$p,uploadFile:Rp,linkContent:Lp,referenceList:kp,optionOne:qp,optionTwo:jp,optionThird:Up},Wp="Please enter a number",zp="Please enter a string",Gp="Please enter an object",Hp="Please enter an array",Qp="Please enter a boolean",Jp="{caption} Required",Zp="Please enter the title",Xp="Please enter the bubble prompt",Kp="Please enter the row title",Yp="Please enter the prompt text",eg="Please bind data items",tg="Please bind the form",rg="Please bind the list",ng="Please bind the process",ig="Please enter the displayed value",ug="Please enter the stored value",og="The document number is not bound to the data item",sg="Please select at least one display field",ag="Please enter a value greater than or equal to {min} and less than or equal to {max}",lg="Please enter a value greater than or equal to {min}",cg="Please enter a value less than or equal to {max}",fg="The value range is set incorrectly",hg="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",dg="The attachment size must be between 0MB and 1000MB",pg="Please fill in the total score setting",gg="The total score cannot be less than 1",vg="The default value must be between {min} and {max}",mg="The number of attachment uploads exceeds the limit",yg="Please re-select the optional quantity",Dg="The maximum length of the control must be greater than the minimum length",Eg="The minimum length of the control must be less than the maximum length",wg="Please select the correct option setting",Cg="Option ID cannot be repeated",Ag="Please enter at least one option",bg="Please bind the data source",Fg="Please bind the stored value",_g="Please bind the service",Bg="At least one display value must be bound",Sg="Please select a province",Og="Please select a city",Mg="Please select a district",xg="The minimum number of lines to fill in cannot be less than 0",Ig="The number of rows cannot be less than {min} rows",Tg="Please enter the column width",Pg="Please set the logical relationship of all rule conditions",Ng="Please complete all rules and conditions",$g="please select control",Rg="Please select the dashboard",Lg="View name cannot be empty",kg="Please select recognition type",qg="Please select at least one field to fill in",jg="Please select at least one",Ug="Please enter the button title",Vg="Please bind the business model in the data settings",Wg="Please bind storage values in data settings",zg="Please bind the service in the data settings",Gg="Please bind at least one display value in the data settings",Hg="Please select the root node in the data settings",Qg="Please enter the maximum height",Jg="The input content cannot be empty",Zg="Watermark cannot be empty",Xg="File name cannot be empty",Kg="Please upload at least one printing template!\uFF01",Yg="Please select a specific business department",ev="Please select a specified external organization",tv="Please enter a sub table alias",rv="Please select the associated table to set the business model",nv="Please select the association table to set the binding service",iv="Select associated sub table fields",uv="Please select the associated main table field",ov="Please select the sort field",sv="\u6279\u91CF\u5220\u9664",av="\u6279\u91CF\u6253\u5370",lv="\u6279\u91CF\u6253\u5370\u8BB0\u5F55",cv="\u6309\u94AE",fv="\u521B\u5EFA\u5355\u636E",hv="\u4EEA\u8868\u76D8",dv="\u5206\u5272\u7EBF",pv="\u5BFC\u51FA",gv="\u8868\u5355\u64CD\u4F5C",vv="\u5BFC\u5165",mv="\u53D1\u7968\u8BC6\u522B",yv="\u94FE\u63A5",Dv="\u5217\u8868\u9009\u62E9",Ev="\u5217\u8868\u89C6\u56FE",wv="\u64CD\u4F5C\u6309\u94AE",Cv="\u5206\u9875",Av="\u6279\u91CF\u63D0\u4EA4\u8BB0\u5F55",bv="\u8BF4\u660E\u6587\u5B57",Fv="\u6587\u5B57\u8BC6\u522B",_v="\u6807\u9898\u7EC4\u4EF6",Bv="\u5F53\u524D\u5BA1\u6279\u72B6\u6001",Sv="\u6570\u7EC4",Ov="\u81EA\u52A8\u7F16\u53F7",Mv="\u81EA\u5B9A\u4E49",xv="\u6570\u503C",Iv="\u90E8\u95E8",Tv="\u4EBA\u5458",Pv="\u9644\u4EF6",Nv="\u56FE\u7247",$v="\u5730\u5740",Rv="\u64CD\u4F5C",Lv="\u5E8F\u53F7",kv="\u4EBA\u5458",qv="\u957F\u6587\u672C",jv="\u65E5\u671F\u533A\u95F4",Uv="\u65E5\u671F",Vv="\u77ED\u6587\u672C",Wv="\u6362\u884C\u5BB9\u5668Wrap",zv="\u8868\u683C",Gv="\u660E\u7EC6\u5B50\u8868",Hv="\u5730\u5740",Qv="\u91D1\u989D",Jv="\u8BA1\u7B97\u516C\u5F0F",Zv="\u591A\u9009",Xv="\u7535\u5B50\u7B7E\u7AE0",Kv="\u5355\u884C\u6587\u672C",Yv="\u6570\u5B57",em="\u4E1A\u52A1\u7EC4\u7EC7",tm="\u5355\u9009",rm="\u5BCC\u6587\u672C",nm="\u8BC4\u5206",im="\u6570\u5B57\u533A\u95F4",um="\u4E0B\u62C9\u5355\u9009",om="\u4E0B\u62C9\u591A\u9009",sm="\u5173\u8054\u5355\u9009",am="\u591A\u884C\u6587\u672C",lm="\u6811",cm="Vue\u5BB9\u5668",fm="Vue\u9875\u9762",hm="\u5728\u7EBF\u6587\u6863",dm="\u6309\u94AE\u64CD\u4F5C\u680F",pm="\u9AD8\u7EA7\u5BB9\u5668",gm="\u5206\u7EC4",vm="\u6805\u683C\u5217",mm="\u6570\u636E\u5BB9\u5668",ym="\u753B\u5E03",Dm="\u6362\u884C\u5BB9\u5668",Em="\u6805\u683C\u7B49\u5206\u884C",wm="\u5217\u8868\u5BB9\u5668",Cm="\u81EA\u7531\u9875\u9762",Am="\u5B9A\u4F4D\u5B50\u5BB9\u5668",bm="\u5B9A\u4F4D\u5BB9\u5668",Fm="\u6805\u683C\u5E03\u5C40",_m="\u660E\u7EC6\u5B50\u8868\u5355\u5143\u683C",Bm="\u660E\u7EC6\u5B50\u8868\u884C",Sm="\u6807\u7B7E\u9875",Om="\u6807\u7B7E\u5355\u5143",Mm="\u5DE5\u5177\u680F",xm="\u6279\u91CF\u63D0\u4EA4",Im="\u5BFC\u51FA\u8BB0\u5F55",Tm="\u5217\u8868\u89C6\u56FE",Pm="\u5F15\u7528\u5217\u8868",Nm="\u9009\u9879\u4E00",$m="\u9009\u9879\u4E8C",Rm="\u9009\u9879\u4E09",Lm={isNotNumber:Wp,isNotString:zp,isNotObject:Gp,isNotArray:Hp,isNotBoolean:Qp,runtimeRequired:Jp,pleaseEnterCaption:Zp,pleaseEnterCaptionTip:Xp,pleaseEnterRowCaption:Kp,pleaseEnterPlaceholder:Yp,pleaseEnterFieldCode:eg,pleaseEnterForm:tg,pleaseEnterList:rg,pleaseEnterProcess:ng,pleaseEnterLabel:ig,pleaseEnterValue:ug,bizKeyNotBindFiled:og,pleaseSelectOneField:sg,pleaseEnterNumberRange:ag,pleaseEnterAValueGreaterThanMin:lg,pleaseEnterAValueLessThanMax:cg,numberRangeSetError:fg,stringRangeError:hg,attachmentMaxSize:dg,pleaseEnterTotalScoreSetting:pg,theTotalScoreMustNotBeLessThan1:gg,scoreDefaultValueRange:vg,attachmentLimitError:mg,PleaseReselectTheOptionalQuantity:yg,TheMaximumLengthIsGreaterThanTheMinimumLength:Dg,TheMinimumLengthIsGreaterThanTheMaximumLength:Eg,PleaseSelectTheCorrectOptionSettings:wg,optionIdIsRepeat:Cg,optionIsRequired:Ag,pleaseEnterDataCode:bg,pleaseEnterValueFieldCode:Fg,pleaseEnterSvcCode:_g,pleaseBindAtLeastOneDisplayValue:Bg,pleaseSelectProvince:Sg,pleaseSelectCity:Og,pleaseSelectDistrict:Mg,limitRowsCannotBeLessThan0:xg,TheNumberOfRowsCannotBeLessThanMinRows:Ig,pleaseEnterColumnWidth:Tg,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Pg,pleaseCompleteAllRulesAndConditions:Ng,pleaseSelectControl:$g,pleaseSelectDashboard:Rg,theViewNameCannotBeEmpty:Lg,pleaseSelectOcrType:kg,pleaseSelectAtLeastOneFieldToFillIn:qg,pleaseChooseAtLeastOne:jg,pleaseEnterButtonContent:Ug,pleaseEnterDataCodeInDataSetting:Vg,pleaseEnterValueFieldCodeInDataSetting:Wg,pleaseEnterSvcCodeInDataSetting:zg,pleaseBindAtLeastOneDisplayValueInDataSetting:Gg,rootNodeIsRequiredInDataSetting:Hg,pleaseEnterMaxHeight:Qg,pleaseEnter:Jg,pleaseEnterWatermark:Zg,pleaseEnterFileName:Xg,pleaseUploadAtLeastOnePrintTemplate:Kg,pleaseAssignBusiness:Yg,pleaseAssignExternal:ev,pleaseEnterAliasCode:tv,pleaseSelectDataCode:rv,pleaseSelectSvcCode:nv,pleaseSelectJoinFieldCode:iv,pleaseSelectMainFieldCode:uv,pleaseSelectSortFieldCode:ov,batchDeleteButton:sv,batchPrintListButton:av,batchPrintRecordList:lv,button:cv,createFormListButton:fv,dashboard:hv,divider:dv,exportListButton:pv,formSelectButton:gv,importRecordListButton:vv,invoiceCheckButton:mv,link:yv,listSelectButton:Dv,ListViewSelect:Ev,operationButton:wv,pagination:Cv,submissionRecordListButton:Av,text:bv,textOcrButton:Fv,title:_v,approvalStatusColumn:Bv,array:Sv,autoNumber:Ov,custom:Mv,decimal:xv,department:Iv,employee:Tv,file:Pv,image:Nv,location:$v,operation:Rv,order:Lv,people:kv,long:qv,timescope:jv,timestamp:Uv,varchar:Vv,gridLayoutWrap:Wv,gridTable:zv,subTable:Gv,address:Hv,amount:Qv,calc:Jv,checkBox:Zv,electronicSignature:Xv,input:Kv,number:Yv,organizationSelection:em,radio:tm,richText:rm,score:nm,searchNumberRange:im,select:um,selectMultiple:om,selectRelation:sm,textarea:am,tree:lm,vueFormItem:cm,vuePage:fm,WPS:hm,actionBar:dm,advancedContainer:pm,cardGroup:gm,col:vm,dataView:mm,grid:ym,gridLayoutContainer:Dm,gridRow:Em,listView:wm,page:Cm,position:Am,positioningContainer:bm,row:Fm,subtableColumn:_m,subtableRow:Bm,tab:Sm,tabPane:Om,toolbox:Mm,batchSubmissionListButton:xm,exportRecordListButton:Im,listViewSelect:Tm,referenceList:Pm,optionOne:Nm,optionTwo:$m,optionThird:Rm},km="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",qm="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",jm="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Um="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Vm="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Wm="{caption}\u5FC5\u9808",zm="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Gm="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Hm="\u884C\u30D8\u30C3\u30C0\u30FC\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Qm="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Jm="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Zm="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Xm="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Km="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ym="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",e1="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",t1="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",r1="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",n1="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",i1="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",u1="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",o1="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",s1="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",a1="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",l1="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",c1="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",f1="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",h1="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306E\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u6570\u304C\u5236\u9650\u3092\u8D85\u3048\u3066\u3044\u307E\u3059",d1="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",p1="\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u6700\u5927\u5024\u306F\u6700\u5C0F\u5024\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",g1="\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u6700\u5C0F\u5024\u306F\u6700\u5927\u5024\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",v1="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",m1="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",y1="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",D1="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",E1="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",w1="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",C1="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",A1="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",b1="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",F1="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",_1="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",B1="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",S1="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",O1="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",M1="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",x1="please select control",I1="\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",T1="\u30D3\u30E5\u30FC\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",P1="\u8B58\u5225\u30BF\u30A4\u30D7\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",N1="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",$1="\u5C11\u306A\u304F\u3068\u30821\u3064\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",R1="\u30DC\u30BF\u30F3\u306E\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",L1="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",k1="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u683C\u7D0D\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",q1="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30B5\u30FC\u30D3\u30B9\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",j1="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",U1="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30EB\u30FC\u30C8\u30CE\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",V1="\u6700\u5927\u9AD8\u3055\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",W1="\u5165\u529B\u5185\u5BB9\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",z1="\u900F\u304B\u3057\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",G1="\u30D5\u30A1\u30A4\u30EB\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",H1="\u5370\u5237\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u5C11\u306A\u304F\u3068\u30821\u3064\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\uFF01\uFF01",Q1="\u6307\u5B9A\u3055\u308C\u305F\u30D3\u30B8\u30CD\u30B9\u90E8\u9580\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",J1="\u5916\u90E8\u7D44\u7E54\u306E\u6307\u5B9A\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Z1="\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u5225\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",X1="\u95A2\u9023\u8868\u3092\u9078\u629E\u3057\u3066\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044",K1="\u95A2\u9023\u30C6\u30FC\u30D6\u30EB\u8A2D\u5B9A\u30D0\u30A4\u30F3\u30C9\u30B5\u30FC\u30D3\u30B9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Y1="\u95A2\u9023\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u9078\u629E",ey="\u95A2\u9023\u30DE\u30B9\u30BF\u30FC\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ty="\u30BD\u30FC\u30C8\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ry="\u6279\u91CF\u5220\u9664",ny="\u6279\u91CF\u6253\u5370",iy="\u6279\u91CF\u6253\u5370\u8BB0\u5F55",uy="\u6309\u94AE",oy="\u521B\u5EFA\u5355\u636E",sy="\u4EEA\u8868\u76D8",ay="\u5206\u5272\u7EBF",ly="\u5BFC\u51FA",cy="\u8868\u5355\u64CD\u4F5C",fy="\u5BFC\u5165",hy="\u53D1\u7968\u8BC6\u522B",dy="\u94FE\u63A5",py="\u5217\u8868\u9009\u62E9",gy="\u5217\u8868\u89C6\u56FE",vy="\u64CD\u4F5C\u6309\u94AE",my="\u5206\u9875",yy="\u6279\u91CF\u63D0\u4EA4\u8BB0\u5F55",Dy="\u8BF4\u660E\u6587\u5B57",Ey="\u6587\u5B57\u8BC6\u522B",wy="\u6807\u9898\u7EC4\u4EF6",Cy="\u5F53\u524D\u5BA1\u6279\u72B6\u6001",Ay="\u6570\u7EC4",by="\u81EA\u52A8\u7F16\u53F7",Fy="\u81EA\u5B9A\u4E49",_y="\u6570\u503C",By="\u90E8\u95E8",Sy="\u4EBA\u5458",Oy="\u9644\u4EF6",My="\u56FE\u7247",xy="\u5730\u5740",Iy="\u64CD\u4F5C",Ty="\u5E8F\u53F7",Py="\u4EBA\u5458",Ny="\u957F\u6587\u672C",$y="\u65E5\u671F\u533A\u95F4",Ry="\u65E5\u671F",Ly="\u77ED\u6587\u672C",ky="\u6362\u884C\u5BB9\u5668Wrap",qy="\u8868\u683C",jy="\u660E\u7EC6\u5B50\u8868",Uy="\u5730\u5740",Vy="\u91D1\u989D",Wy="\u8BA1\u7B97\u516C\u5F0F",zy="\u591A\u9009",Gy="\u7535\u5B50\u7B7E\u7AE0",Hy="\u5355\u884C\u6587\u672C",Qy="\u6570\u5B57",Jy="\u4E1A\u52A1\u7EC4\u7EC7",Zy="\u5355\u9009",Xy="\u5BCC\u6587\u672C",Ky="\u8BC4\u5206",Yy="\u6570\u5B57\u533A\u95F4",eD="\u4E0B\u62C9\u5355\u9009",tD="\u4E0B\u62C9\u591A\u9009",rD="\u5173\u8054\u5355\u9009",nD="\u591A\u884C\u6587\u672C",iD="\u6811",uD="Vue\u5BB9\u5668",oD="Vue\u9875\u9762",sD="\u5728\u7EBF\u6587\u6863",aD="\u6309\u94AE\u64CD\u4F5C\u680F",lD="\u9AD8\u7EA7\u5BB9\u5668",cD="\u5206\u7EC4",fD="\u6805\u683C\u5217",hD="\u6570\u636E\u5BB9\u5668",dD="\u753B\u5E03",pD="\u6362\u884C\u5BB9\u5668",gD="\u6805\u683C\u7B49\u5206\u884C",vD="\u5217\u8868\u5BB9\u5668",mD="\u81EA\u7531\u9875\u9762",yD="\u5B9A\u4F4D\u5B50\u5BB9\u5668",DD="\u5B9A\u4F4D\u5BB9\u5668",ED="\u6805\u683C\u5E03\u5C40",wD="\u660E\u7EC6\u5B50\u8868\u5355\u5143\u683C",CD="\u660E\u7EC6\u5B50\u8868\u884C",AD="\u6807\u7B7E\u9875",bD="\u6807\u7B7E\u5355\u5143",FD="\u5DE5\u5177\u680F",_D="\u6279\u91CF\u63D0\u4EA4",BD="\u5BFC\u51FA\u8BB0\u5F55",SD="\u5217\u8868\u89C6\u56FE",OD="\u5F15\u7528\u5217\u8868",MD="\u9009\u9879\u4E00",xD="\u9009\u9879\u4E8C",ID="\u9009\u9879\u4E09",TD={isNotNumber:km,isNotString:qm,isNotObject:jm,isNotArray:Um,isNotBoolean:Vm,runtimeRequired:Wm,pleaseEnterCaption:zm,pleaseEnterCaptionTip:Gm,pleaseEnterRowCaption:Hm,pleaseEnterPlaceholder:Qm,pleaseEnterFieldCode:Jm,pleaseEnterForm:Zm,pleaseEnterList:Xm,pleaseEnterProcess:Km,pleaseEnterLabel:Ym,pleaseEnterValue:e1,bizKeyNotBindFiled:t1,pleaseSelectOneField:r1,pleaseEnterNumberRange:n1,pleaseEnterAValueGreaterThanMin:i1,pleaseEnterAValueLessThanMax:u1,numberRangeSetError:o1,stringRangeError:s1,attachmentMaxSize:a1,pleaseEnterTotalScoreSetting:l1,theTotalScoreMustNotBeLessThan1:c1,scoreDefaultValueRange:f1,attachmentLimitError:h1,PleaseReselectTheOptionalQuantity:d1,TheMaximumLengthIsGreaterThanTheMinimumLength:p1,TheMinimumLengthIsGreaterThanTheMaximumLength:g1,PleaseSelectTheCorrectOptionSettings:v1,optionIdIsRepeat:m1,optionIsRequired:y1,pleaseEnterDataCode:D1,pleaseEnterValueFieldCode:E1,pleaseEnterSvcCode:w1,pleaseBindAtLeastOneDisplayValue:C1,pleaseSelectProvince:A1,pleaseSelectCity:b1,pleaseSelectDistrict:F1,limitRowsCannotBeLessThan0:_1,TheNumberOfRowsCannotBeLessThanMinRows:B1,pleaseEnterColumnWidth:S1,pleaseSetTheLogicalRelationshipOfAllRuleConditions:O1,pleaseCompleteAllRulesAndConditions:M1,pleaseSelectControl:x1,pleaseSelectDashboard:I1,theViewNameCannotBeEmpty:T1,pleaseSelectOcrType:P1,pleaseSelectAtLeastOneFieldToFillIn:N1,pleaseChooseAtLeastOne:$1,pleaseEnterButtonContent:R1,pleaseEnterDataCodeInDataSetting:L1,pleaseEnterValueFieldCodeInDataSetting:k1,pleaseEnterSvcCodeInDataSetting:q1,pleaseBindAtLeastOneDisplayValueInDataSetting:j1,rootNodeIsRequiredInDataSetting:U1,pleaseEnterMaxHeight:V1,pleaseEnter:W1,pleaseEnterWatermark:z1,pleaseEnterFileName:G1,pleaseUploadAtLeastOnePrintTemplate:H1,pleaseAssignBusiness:Q1,pleaseAssignExternal:J1,pleaseEnterAliasCode:Z1,pleaseSelectDataCode:X1,pleaseSelectSvcCode:K1,pleaseSelectJoinFieldCode:Y1,pleaseSelectMainFieldCode:ey,pleaseSelectSortFieldCode:ty,batchDeleteButton:ry,batchPrintListButton:ny,batchPrintRecordList:iy,button:uy,createFormListButton:oy,dashboard:sy,divider:ay,exportListButton:ly,formSelectButton:cy,importRecordListButton:fy,invoiceCheckButton:hy,link:dy,listSelectButton:py,ListViewSelect:gy,operationButton:vy,pagination:my,submissionRecordListButton:yy,text:Dy,textOcrButton:Ey,title:wy,approvalStatusColumn:Cy,array:Ay,autoNumber:by,custom:Fy,decimal:_y,department:By,employee:Sy,file:Oy,image:My,location:xy,operation:Iy,order:Ty,people:Py,long:Ny,timescope:$y,timestamp:Ry,varchar:Ly,gridLayoutWrap:ky,gridTable:qy,subTable:jy,address:Uy,amount:Vy,calc:Wy,checkBox:zy,electronicSignature:Gy,input:Hy,number:Qy,organizationSelection:Jy,radio:Zy,richText:Xy,score:Ky,searchNumberRange:Yy,select:eD,selectMultiple:tD,selectRelation:rD,textarea:nD,tree:iD,vueFormItem:uD,vuePage:oD,WPS:sD,actionBar:aD,advancedContainer:lD,cardGroup:cD,col:fD,dataView:hD,grid:dD,gridLayoutContainer:pD,gridRow:gD,listView:vD,page:mD,position:yD,positioningContainer:DD,row:ED,subtableColumn:wD,subtableRow:CD,tab:AD,tabPane:bD,toolbox:FD,batchSubmissionListButton:_D,exportRecordListButton:BD,listViewSelect:SD,referenceList:OD,optionOne:MD,optionTwo:xD,optionThird:ID},Zi={zhCN:Vp,enUS:Lm,jaJP:TD},jt=function(t){return t.Number="Number",t.Operator="Operator",t.VariableInMainTable="VariableInMainTable",t.VariableInCurrentSubTable="VariableInCurrentSubTable",t.VariableInOtherSubTable="VariableInOtherSubTable",t.UndefinedVariable="UndefinedVariable",t}({}),bn=function(t){return t.SUM="SUM",t.AVG="AVG",t.MAX="MAX",t.MIN="MIN",t}({}),Xi,hs=(Xi=window.localStorage.getItem("locale"))!==null&&Xi!==void 0?Xi:"zh-CN",de=function(t){return t.BASE="base",t.FORM="form",t.LAYOUT="layout",t.WRAP="wrap",t.COLUMN="column",t.LIST="list",t.SEARCH="search",t}({}),Te=function(t){return t.TITLE="title",t.LINK="link",t.IFRAME="iframe",t.BUTTON="button",t.DIVIDER="divider",t.TEXT="text",t.CREATE_FORM_LIST_BUTTON="list-page-btn-create-form",t.BATCH_SUBMISSION_LIST_BUTTON="list-page-btn-batch-submission",t.BATCH_DELETE_LIST_BUTTON="list-page-btn-batch-delete",t.SUBMISSION_RECORD_LIST_BUTTON="list-page-btn-submission-record",t.IMPORT_RECORD_LIST_BUTTON="list-page-btn-import-record",t.EXPORT_RECORD_LIST_BUTTON="list-page-btn-export-record",t.EXPORT_LIST_BUTTON="list-page-btn-export-list",t.LIST_SELECT_BUTTON="list-select-button",t.ORGANIZATION_SELECTION="organization-selection",t.FORM_SELECT_BUTTON="form-select-button",t.LIST_VIEW_SELECT="list-view-select",t.TEXT_OCR_BUTTON="text-ocr-button",t.INVOICE_CHECK_BUTTON="invoice-check-button",t.LIST_PAGE_BTN_BATCH_PRINT="list-page-btn-batch-print",t.LIST_PAGE_BTN_BATCH_PRINT_RECORD="list-page-btn-batch-print-record",t.COMMENT="comment",t.VARCHAR_COLUMN="varchar-column",t.TEXT_COLUMN="text-column",t.DECIMAL_COLUMN="decimal-column",t.TIMESCOPE_COLUMN="timescope-column",t.TIMESTAMP_COLUMN="timestamp-column",t.ARRAY_COLUMN="array-column",t.DEPARTMENT_COLUMN="department-column",t.AUTO_NUMBER_COLUMN="auto-number-column",t.FILE_COLUMN="file-column",t.IMAGE_COLUMN="image-column",t.PEOPLE_COLUMN="people-column",t.LOCATION_COLUMN="location-column",t.CUSTOM_COLUMN="custom-column",t.ORDER_COLUMN="order-column",t.OPERATION_COLUMN="operation-column",t.OPERATION_BUTTON="operation-button",t.EMPLOYEE_COLUMN="employee-column",t.Approval_Status_Column="approval-status-column",t.GROUP_COLUMN="group-column",t.ADDRESS="address",t.AMOUNT="amount",t.ATTACHMENT="attachment",t.AUTO_NUMBER="auto-number",t.CALC="calc",t.CHECKBOX="checkbox",t.CASCADER="cascader",t.COUNTER="counter",t.SLIDER="slider",t.SWITCH="switch",t.TAG="tag",t.BARCODE="barcode",t.QR_CODE="qr-code",t.DATE_PICKER="date-picker",t.DATE_RANGE="date-range",t.TIME_PICKER="time-picker",t.TIME_RANGE="time-range",t.DEPARTMENT="department",t.EMPLOYEE="employee",t.IMAGE="image",t.INPUT="input",t.NUMBER="number",t.RADIO="radio",t.RICH_TEXT="rich-text",t.SCORE="score",t.SEARCH_DATE_RANGE="search-date-range",t.SEARCH_NUMBER_RANGE="search-number-range",t.SEARCH_INPUT="search-input",t.SELECT="select",t.SELECT_MULTIPLE="select-multiple",t.SELECT_RELATION="select-relation",t.VUE_FORM_ITEM="vue-form-item",t.TEXTAREA="textarea",t.EMAIL="email",t.FOOTER="footer",t.HEADER="header",t.ID_CARD="id-card",t.MOBILE="mobile",t.PHONE="phone",t.RADIO_IMAGE="radio-image",t.ELECTRONIC_SIGNATURE="electronic-signature",t.WPS="wps",t.CARD_GROUP="card-group",t.BLANK_CONTAINER="blank-container",t.COL="col",t.GRID="grid",t.GRID_ROW="grid-row",t.GRID_TABLE_COLUMN="grid-table-column",t.GRID_LAYOUT_CONTAINER="grid-layout-container",t.ROW="row",t.TWO_COLUMNS="two-columns",t.SUBTABLE_COLUMN="subtable-column",t.SUBTABLE_ROW="subtable-row",t.TAB="tab",t.TAB_PANE="tab-pane",t.TOOLBOX="toolbox",t.DATA_VIEW="data-view",t.LIST_VIEW="list-view",t.ACTION_BAR="action-bar",t.TABLE_LAYOUT="table-layout",t.TABLE_LAYOUT_ROW="table-layout-row",t.TABLE_LAYOUT_COL="table-layout-col",t.TABLE_LAYOUT_WRAPPER="table-layout-wrapper",t.COLLAPSE="collapse",t.COLLAPSE_PANE="collapse-pane",t.SUBTABLE="subtable",t.GRID_TABLE="grid-table",t.SIMPLE_SEARCH="simple-search",t.PAGINATION="pagination",t.CHECKBOX_IMAGE="checkbox-image",t.DASHBOARD="dashboard",t.TREE="tree",t.EMPLOYEE2="employee2",t.DEPARTMENT2="department2",t.GRID_LAYOUT_WRAP="grid-layout-wrap",t.VUE_PAGE="vue-page",t.REFERENCE_LIST="reference-list",t.STEP="step",t.STEP_PANE="step-pane",t}({}),je=function(t){return t.VARCHAR="varchar",t.TEXT="text",t.ARRAY="array",t.ADDRESS="location",t.DECIMAL="decimal",t.DECIMAL_RANGE="decimal_range",t.TIMESTAMP="timestamp",t.EMPLOYEES="people",t.DEPARTMENTS="department",t.MONEY="money",t.TIMESCOPE="timescope",t.FILE="file",t.IMAGE="image",t.AUTO_NUMBER="auto_number",t.CALC="calc",t.LIST="list",t.JSON="json",t.ANY="ANY",t}({}),ds="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",PD=ds+"0123456789";function Fn(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,e="",r=0;r<t;r++){var n=r===0?ds:PD,i=Math.random()*n.length;e+=n[parseInt(String(i),10)]}return e}function Ki(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ND(t){if(Array.isArray(t))return Ki(t)}function $D(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ps(t,e,r){return e=Gr(e),qD(t,eu()?Reflect.construct(e,r||[],Gr(t).constructor):e.apply(t,r))}function gs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _n(t,e,r){return eu()?_n=Reflect.construct:_n=function(i,u,o){var a=[null];a.push.apply(a,u);var s=Function.bind.apply(i,a),c=new s;return o&&Hr(c,o.prototype),c},_n.apply(null,arguments)}function Gr(t){return Gr=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Gr(t)}function vs(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Hr(t,e)}function RD(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function LD(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function kD(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function qD(t,e){return e&&(jD(e)==="object"||typeof e=="function")?e:$D(t)}function Hr(t,e){return Hr=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Hr(t,e)}function ms(t){return ND(t)||LD(t)||UD(t)||kD()}function jD(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function UD(t,e){if(!!t){if(typeof t=="string")return Ki(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ki(t,e)}}function Yi(t){var e=typeof Map=="function"?new Map:void 0;return Yi=function(n){if(n===null||!RD(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return _n(n,arguments,Gr(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Hr(i,n)},Yi(t)}function eu(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(eu=function(){return!!t})()}var tu=console;function Cr(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n,i=e.slice(1);(n=tu).warn.apply(n,["\u{1F9D0} Driven Warning:"+e[0]].concat(ms(i)))}function ru(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n,i=e.slice(1);(n=tu).log.apply(n,["\u{1F680} Driven Log:"+e[0]].concat(ms(i)))}function VD(t){return t+" \u{1F41B}\u{1F41B}\u{1F41B}"}var nu=function(t){vs(e,t);function e(r){gs(this,e);var n;return n=ps(this,e,[r]),n.name="\u{1F4A5} Driven Error",n.message=r?VD(r):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",n}return e}(Yi(Error)),WD=function(t){vs(e,t);function e(r){gs(this,e);var n;return n=ps(this,e,[r]),n.name="\u{1F6A8} Driven Reference Error",n}return e}(nu);function Ut(t){throw new nu(t)}function ys(t){throw new WD(t)}function Bn(t){tu.error(new nu(t))}function Vt(t,e){Array.isArray(t)&&t.map(function(r){switch(r.controlType){case"layout":Vt(r==null?void 0:r.children,e);break;case"wrap":Vt(r==null?void 0:r.children,e);break;case"search":Vt(r==null?void 0:r.children,e);break;case"form":e(r)}})}function zD(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ds(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function GD(t,e,r){return e&&Ds(t.prototype,e),r&&Ds(t,r),t}function HD(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Es=function(){function t(){zD(this,t)}return GD(t,null,[{key:"getMessage",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i;return se("CMD."+r,n,Zi==null||(i=Zi[hs.split("-").join("")])===null||i===void 0?void 0:i[r])}},{key:"resetI18n",value:function(){}},{key:"setLocale",value:function(r,n){}}]),t}();HD(Es,"$i18n",Es.resetI18n());function iu(t,e,r){var n=e.replace(/\[(\d)]/g,function(u,o){return"."+o}).split("."),i=!1;return n.reduce(function(u,o,a,s){var c=u;if(!!u){if(!Object.prototype.hasOwnProperty.call(u,o)){Cr("Can not set ".concat(e,"'s ").concat(o," property in current %o, Because there is no ").concat(o," property on the %o"),u,u);return}return a===s.length-1&&!Object.is(c[o],r)&&(c[o]=r,i=!0),c[o]}},t),i}var Xt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function QD(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var uu={exports:{}};(function(t){(function(e){var r=function(p,m,D){if(!c(m)||f(m)||h(m)||g(m)||s(m))return m;var E,w=0,_=0;if(l(m))for(E=[],_=m.length;w<_;w++)E.push(r(p,m[w],D));else{E={};for(var O in m)Object.prototype.hasOwnProperty.call(m,O)&&(E[p(O,D)]=r(p,m[O],D))}return E},n=function(p,m){m=m||{};var D=m.separator||"_",E=m.split||/(?=[A-Z])/;return p.split(E).join(D)},i=function(p){return y(p)?p:(p=p.replace(/[\-_\s]+(.)?/g,function(m,D){return D?D.toUpperCase():""}),p.substr(0,1).toLowerCase()+p.substr(1))},u=function(p){var m=i(p);return m.substr(0,1).toUpperCase()+m.substr(1)},o=function(p,m){return n(p,m).toLowerCase()},a=Object.prototype.toString,s=function(p){return typeof p=="function"},c=function(p){return p===Object(p)},l=function(p){return a.call(p)=="[object Array]"},f=function(p){return a.call(p)=="[object Date]"},h=function(p){return a.call(p)=="[object RegExp]"},g=function(p){return a.call(p)=="[object Boolean]"},y=function(p){return p=p-0,p===p},d=function(p,m){var D=m&&"process"in m?m.process:m;return typeof D!="function"?p:function(E,w){return D(E,p,w)}},v={camelize:i,decamelize:o,pascalize:u,depascalize:o,camelizeKeys:function(p,m){return r(d(i,m),p)},decamelizeKeys:function(p,m){return r(d(o,m),p,m)},pascalizeKeys:function(p,m){return r(d(u,m),p)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=v:e.humps=v})(Xt)})(uu);var ws={};Object.defineProperty(ws,"__esModule",{value:!0});function ou(t){if(typeof t!="object"||t===null)return t;if(Array.isArray(t))return t.map(e=>typeof e!="object"||e===null?e:ou(e));{const e={};for(const r in t){const n=t[r];e[r]=typeof n!="object"||n===null?n:ou(n)}return e}}var JD=ws.default=ou;function Cs(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function we(t){if(t!==void 0)return(typeof t=="undefined"?"undefined":Cs(t))==="object"?JD(t):t}function St(t){return Object.prototype.toString.call(t)==="[object Object]"}function ZD(t){return t!=null&&(typeof t=="undefined"?"undefined":Cs(t))==="object"&&Array.isArray(t)===!1}function cr(t){return Array.isArray(t)}function tt(t){return typeof t=="string"}function Sn(t){return typeof t=="number"}function As(t){return typeof t=="function"}function XD(t){return cr(t)&&t.every(function(e){return tt(e)})}function KD(t){return cr(t)&&t.every(function(e){return Sn(e)||e===""})}function bs(t){return/^\[.*?]$/.test(t)}function On(t){return/^{.*?}$/.test(t)}function YD(t){return Object.values(Te).includes(t)}function su(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function eE(t){if(Array.isArray(t))return su(t)}function Fs(t,e,r,n,i,u,o){try{var a=t[u](o),s=a.value}catch(c){r(c);return}a.done?e(s):Promise.resolve(s).then(n,i)}function tE(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var u=t.apply(e,r);function o(s){Fs(u,n,i,o,a,"next",s)}function a(s){Fs(u,n,i,o,a,"throw",s)}o(void 0)})}}function rE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function nE(t,e,r){return e&&_s(t.prototype,e),r&&_s(t,r),t}function Bs(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function iE(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function uE(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function au(t){return eE(t)||iE(t)||oE(t)||uE()}function oE(t,e){if(!!t){if(typeof t=="string")return su(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return su(t,e)}}function sE(t,e){var r,n,i,u={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype),a=Object.defineProperty;return a(o,"next",{value:s(0)}),a(o,"throw",{value:s(1)}),a(o,"return",{value:s(2)}),typeof Symbol=="function"&&a(o,Symbol.iterator,{value:function(){return this}}),o;function s(l){return function(f){return c([l,f])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(u=0)),u;)try{if(r=1,n&&(i=l[0]&2?n.return:l[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,l[1])).done)return i;switch(n=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return u.label++,{value:l[1],done:!1};case 5:u.label++,n=l[1],l=[0];continue;case 7:l=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){u=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){u.label=l[1];break}if(l[0]===6&&u.label<i[1]){u.label=i[1],i=l;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(l);break}i[2]&&u.ops.pop(),u.trys.pop();continue}l=e.call(t,u)}catch(f){l=[6,f],n=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}var Ss=function(){function t(){rE(this,t),Bs(this,"_events",new Map),Bs(this,"debug",!1)}return nE(t,[{key:"emit",value:function(r){for(var n=arguments.length,i=new Array(n>1?n-1:0),u=1;u<n;u++)i[u-1]=arguments[u];return tE(function(){var o,a,s,c,l,f,h,g,y,d,v,p;return sE(this,function(m){switch(m.label){case 0:if(o=this._events.get(r),a=[],!o)return[3,10];s=o.slice(),c=!0,l=!1,f=void 0,m.label=1;case 1:m.trys.push([1,8,9,10]),h=s[Symbol.iterator](),m.label=2;case 2:if(c=(g=h.next()).done)return[3,7];if(y=g.value,!o.includes(y))return[3,6];m.label=3;case 3:return m.trys.push([3,5,,6]),this.debug&&ru.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(r," \u4E8B\u4EF6: ").concat(y.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+y.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(i.map(function(){return"%o"}).join(","),"\u3002")].concat(au(i))),[4,y.apply(null,au(i))];case 4:return d=m.sent(),this.debug&&ru.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(r," \u4E8B\u4EF6: ").concat(y.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+y.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(i.map(function(){return"%o"}).join(","),"; \u51FD\u6570\u7684\u8FD4\u56DE\u7ED3\u679C\u4E3A%o")].concat(au(i),[d])),a.push(d),d===!1?[3,7]:[3,6];case 5:return v=m.sent(),Bn(String(v)+":"+String(v.stack)),[3,6];case 6:return c=!0,[3,2];case 7:return[3,10];case 8:return p=m.sent(),l=!0,f=p,[3,10];case 9:try{!c&&h.return!=null&&h.return()}finally{if(l)throw f}return[7];case 10:return[2,a]}})}).call(this)}},{key:"on",value:function(r,n){if(this._events.has(r)){var i;(i=this._events.get(r))===null||i===void 0||i.push(n)}else this._events.set(r,[n])}},{key:"off",value:function(r,n){if(this._events.has(r)){var i=this._events.get(r),u=i==null?void 0:i.indexOf(n);i==null||i.splice(u,1)}}},{key:"delete",value:function(r){this._events.has(r)&&this._events.delete(r)}},{key:"clear",value:function(){this._events=new Map}}]),t}();function aE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Os(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function lE(t,e,r){return e&&Os(t.prototype,e),r&&Os(t,r),t}function cE(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var fE=[{key:"on_click",name:se("CMD.click",null,"\u70B9\u51FB\u65F6"),code:"click"},{key:"on_click_finish",name:se("CMD.finished",null,"\u6267\u884C\u5B8C\u6210\u65F6"),code:"click-finish"},{key:"on_change",name:se("CMD.valueChange",null,"\u503C\u53D1\u751F\u53D8\u5316\u65F6"),code:"change"},{key:"on_search",name:se("CMD.search",null,"\u641C\u7D22\u65F6"),code:"search"},{key:"on_file_actions",name:se("CMD.onClickFileBtn",null,"\u70B9\u51FB\u6587\u4EF6\u6309\u94AE\u65F6"),code:"file-actions"},{key:"on_tree_search",name:se("CMD.treeDataCreate",null,"\u6811\u6570\u636E\u67E5\u8BE2\u6784\u5EFA\u65F6"),code:"tree-search"},{key:"on_list_change",name:se("CMD.listDataChange",null,"\u5217\u8868\u6570\u636E\u53D8\u5316\u65F6"),code:"list-change"},{key:"on_list_search",name:se("CMD.listDataCreate",null,"\u5217\u8868\u6570\u636E\u67E5\u8BE2\u6784\u5EFA\u65F6"),code:"list-search"},{key:"on_list_mounted",name:se("CMD.listDataBack",null,"\u5217\u8868\u6570\u636E\u8FD4\u56DE\u65F6"),code:"list-mounted"},{key:"on_list_delete",name:se("CMD.listDataDelete",null,"\u5217\u8868\u6570\u636E\u5220\u9664\u65F6"),code:"list-delete"},{key:"on_list_before_insert",name:se("CMD.listDataAdd",null,"\u5217\u8868\u6570\u636E\u63D2\u5165\u524D"),code:"list-before-insert"},{key:"on_input",name:se("CMD.onInput",null,"\u7528\u6237\u8F93\u5165\u65F6"),code:"input"},{key:"on_blur",name:se("CMD.onBlur",null,"\u5931\u53BB\u7126\u70B9\u65F6"),code:"blur"},{key:"on_focus",name:se("CMD.onFocus",null,"\u83B7\u53D6\u7126\u70B9\u65F6"),code:"focus"},{key:"on_wps_open",name:se("CMD.onOpenFile",null,"\u6253\u5F00\u6587\u4EF6\u65F6"),code:"wps-open"},{key:"on_wps_save",name:se("CMD.onSaveFile",null,"\u4FDD\u5B58\u6587\u4EF6\u65F6"),code:"wps-save"},{key:"on_wps_rename",name:se("CMD.rename",null,"\u91CD\u547D\u540D\u65F6"),code:"wps-rename"},{key:"on_list_actions",name:se("CMD.onClickBtn",null,"\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6"),code:"list-actions"},{key:"on_list_render_operation",name:se("CMD.cellRender",null,"\u64CD\u4F5C\u5217\u6E32\u67D3\u65F6"),code:"list-render-operation"},{key:"on_list_rowclick",name:se("CMD.rowClick",null,"\u884C\u70B9\u51FB\u65F6"),code:"list-rowclick"},{key:"on_list_before_rowdelete",name:se("CMD.rowDelete",null,"\u884C\u5220\u9664\u524D"),code:"list-before-rowdelete"},{key:"on_list_before_import",name:se("CMD.listDataImport",null,"\u5217\u8868\u6570\u636E\u5BFC\u5165\u524D"),code:"list-before-import"},{key:"on_list_rows_checked",name:se("CMD.rowSelected",null,"\u884C\u9009\u4E2D\u65F6"),code:"list-rows-checked"},{key:"on_change_tab",name:se("CMD.tabChange",null,"\u6807\u7B7E\u9875\u5207\u6362\u65F6"),code:"change-tab"},{key:"on_modal_ok",name:se("CMD.modalConfirm",null,"\u5F39\u7A97\u786E\u8BA4\u65F6"),code:"modal-ok"},{key:"on_change_steps",name:se("CMD.stepsChange",null,"\u6B65\u9AA4\u5207\u6362\u65F6"),code:"change-steps"},{key:"on_option_selected",name:se("CMD.optionSelected",null,"DOM\u70B9\u51FBoption\u4E8B\u4EF6"),code:"option_selected"}],Ms=function(){function t(){aE(this,t)}return lE(t,null,[{key:"getEventsFromKeys",value:function(r){var n=typeof r=="string"?[r]:r;return t.events.filter(function(i){return n.includes(i.key)})}},{key:"getEventsFromControl",value:function(r){var n=[],i=r.eventKeys;n=n.concat(t.events.filter(function(o){return i.includes(o.key)}));var u=r.customEvents.map(function(o){var a=o.key;return o.namespace!==void 0&&o.namespace!==null&&o.namespace!==""&&(a=o.namespace+":"+o.key),{key:a,code:o.key,name:o.name}});return n=n.concat(u),n}}]),t}();cE(Ms,"events",fE);function lu(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function hE(t){if(Array.isArray(t))return lu(t)}function dE(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function pE(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function xs(t){return hE(t)||dE(t)||gE(t)||pE()}function gE(t,e){if(!!t){if(typeof t=="string")return lu(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lu(t,e)}}function cu(t,e){var r;!((r=Object.getOwnPropertyDescriptors(t)[e])===null||r===void 0)&&r.enumerable&&Object.defineProperty(t,e,{enumerable:!1})}function Is(t,e,r){r!=="Runtime"&&(t.parent=e,cu(t,"parent"))}function vE(t,e,r){t.forEach(function(n){Is(n,e,r)})}var Ts=Symbol("targetKey");function Ps(t){var e;return(e=t[Ts])!==null&&e!==void 0?e:t}function Ns(t,e,r){return vE(t,e,r),new Proxy(t,{get:function(i,u){for(var o=arguments.length,a=new Array(o>2?o-2:0),s=2;s<o;s++)a[s-2]=arguments[s];var c;return u===Ts?i:(c=Reflect).get.apply(c,[i,u].concat(xs(a)))},set:function(i,u,o){for(var a=arguments.length,s=new Array(a>3?a-3:0),c=3;c<a;c++)s[c-3]=arguments[c];var l;if(cr(t)&&u==="length"&&o===t.length)return!0;var f=(l=Reflect).set.apply(l,[i,u,o].concat(xs(s)));return St(o)&&Is(o,e,r),f}})}function fu(t,e,r,n,i){var u=n!=null?n:t,o=Ns(Ps(r!=null?r:[]),u,i);Object.defineProperty(t,e,{get:function(){return o},set:function(s){o=Ns(Ps(s),u,i)},enumerable:!0})}function mE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function yE(t,e,r){return e&&$s(t.prototype,e),r&&$s(t,r),t}function Kt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Rs=[],Qr=function(){function t(e){mE(this,t),Kt(this,"registeredControlTypes",new Set),Kt(this,"controlConfigMap",new Map),Kt(this,"_controls",[]),Kt(this,"_type",void 0),this._type=e,this._initControls(e)}return yE(t,[{key:"registerControlConfig",value:function(r,n){return this.controlConfigMap.set(r,n),this}},{key:"getControlConfig",value:function(r){return this.controlConfigMap.get(r)}},{key:"getControls",value:function(){return this._controls}},{key:"register",value:function(r){r.__is_control__||Ut("".concat(r.name," is not a Control"));var n=this._controls.findIndex(function(i){return i.controlType===r.controlType});return n>-1&&(Cr("The ".concat(r.controlType," is repeat register, So it overwrites the one that was registered before.")),this._controls.splice(n,1)),this.registeredControlTypes.add(r.controlType),this._controls.push(r),this}},{key:"isLayoutControl",value:function(r){return r.controlType===de.LAYOUT}},{key:"isFormControl",value:function(r){return r.controlType===de.FORM}},{key:"isListControl",value:function(r){return r.controlType===de.LIST}},{key:"isColumnControl",value:function(r){return r.controlType===de.COLUMN}},{key:"createControl",value:function(r,n){var i=this;if(Array.isArray(r))return r.map(function(l){return i.createControl(l,n)});if(r.children&&(r.children=r.children.map(function(l){return i.createControl(l,n)})),this.isListControl(r)){var u=r.props;u.headers&&(u.headers=u.headers.map(function(l){return i.createControl(l,n)}))}var o=this.getControlFormType(r.type);if(o){var a=r;if(typeof n=="function"){var s=n(a);s&&(a=s)}var c;return o.mode==="Runtime"?(c=a,c.fieldType=o.controlFieldType,this._setParentPrototypeToSchema(c,this)):c=new o(a),c}else Ut("The constructor of ".concat(r.type," could not be found, please confirm that the constructor has been registered"))}},{key:"resetInstanceParent",value:function(r,n){delete r.parent,Object.defineProperty(r,"parent",{configurable:!0,get:function(){return n}}),cu(r,"parent")}},{key:"_setParentPrototypeToSchema",value:function(r,n){n._type==="Runtime"&&(Object.defineProperty(r,"parent",{configurable:!0,get:function(){var u=r.id,o=n._controlParentIdMap,a=n.instanceMap;if(!(!o||!a)){var s=o[u],c=a[u];if(!(!s&&!c)){var l=c.findIndex(function(g){return g==r}),f=a[s]||[],h;return f.length!==c.length?h=f[0]:h=f[l],h}}}}),cu(r,"parent"))}},{key:"createControlInstance",value:function(r,n){var i=this.getControlFormType(r);if(i)return new i(n)}},{key:"getControlFormType",value:function(r){return this._controls.find(function(n){return n.controlType===r})}},{key:"_initControls",value:function(r){var n=this;this.constructor.staticControls.forEach(function(i){n.register(i[r]),t.staticControlsRuntimeRules.set(i.Runtime.controlType,i.Property.RuntimeRules),i.Property.mode=r})}}],[{key:"staticGetRules",value:function(r,n){var i=t.staticControlsRuntimeRules.get(r),u=[];if(i){var o=new i(n);u=Array.from(o)}return u}},{key:"register",value:function(r,n){var i=r.Designer,u=r.Runtime,o=r.Property;(!i||!u||!i.__is_control__||!u.__is_control__)&&Ut("".concat(r," is can't register as a Control"));var a=this.staticControls.findIndex(function(s){return s.Designer.controlType===i.controlType});return a>-1&&(Cr("The ".concat(i.controlType," is repeat register, So it overwrites the one that was registered before.")),this.staticControls.splice(a,1)),this.staticRegisteredTypes.add(i.controlType),this.staticControls.push(r),o.mode=n,this}}]),t}();Kt(Qr,"staticControlsRuntimeRules",new Map),Kt(Qr,"staticControls",Rs),Kt(Qr,"staticRegisteredTypes",new Set(Rs.map(function(t){return t.Designer.controlType}))),Kt(Qr,"staticRegisteredConfigs",new Map);function fr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Be(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var hu=function t(e){fr(this,t);var r,n,i;Be(this,"dataCode",void 0),Be(this,"fieldCode",void 0),Be(this,"fieldType",void 0),Be(this,"aliasCode",void 0),this.dataCode=(r=e==null?void 0:e.dataCode)!==null&&r!==void 0?r:"",this.fieldCode=(n=e==null?void 0:e.fieldCode)!==null&&n!==void 0?n:"",this.fieldType=(i=e==null?void 0:e.fieldType)!==null&&i!==void 0?i:"",this.aliasCode=e==null?void 0:e.aliasCode},DE=function t(e){fr(this,t);var r,n;Be(this,"minWidth",void 0),Be(this,"maxWidth",void 0),Be(this,"flex",void 0),this.minWidth=(r=e==null?void 0:e.minWidth)!==null&&r!==void 0?r:150,this.maxWidth=e==null?void 0:e.maxWidth,this.flex=(n=e==null?void 0:e.flex)!==null&&n!==void 0?n:1},du=function t(e){fr(this,t);var r,n;Be(this,"amount",void 0),Be(this,"currency",void 0),this.amount=(r=e==null?void 0:e.amount)!==null&&r!==void 0?r:"",this.currency=(n=e==null?void 0:e.currency)!==null&&n!==void 0?n:"CNY"},pu=function t(e){fr(this,t);var r,n;Be(this,"min",void 0),Be(this,"max",void 0),this.min=(r=e==null?void 0:e.min)!==null&&r!==void 0?r:"",this.max=(n=e==null?void 0:e.max)!==null&&n!==void 0?n:""},gu=function t(e){fr(this,t);var r,n,i,u,o,a,s,c;Be(this,"country",void 0),Be(this,"countryDisplay",void 0),Be(this,"city",void 0),Be(this,"cityDisplay",void 0),Be(this,"district",void 0),Be(this,"districtDisplay",void 0),Be(this,"province",void 0),Be(this,"provinceDisplay",void 0),this.country=(r=e==null?void 0:e.country)!==null&&r!==void 0?r:"",this.countryDisplay=(n=e==null?void 0:e.countryDisplay)!==null&&n!==void 0?n:"",this.city=(i=e==null?void 0:e.city)!==null&&i!==void 0?i:"",this.cityDisplay=(u=e==null?void 0:e.cityDisplay)!==null&&u!==void 0?u:"",this.district=(o=e==null?void 0:e.district)!==null&&o!==void 0?o:"",this.districtDisplay=(a=e==null?void 0:e.districtDisplay)!==null&&a!==void 0?a:"",this.province=(s=e==null?void 0:e.province)!==null&&s!==void 0?s:"",this.provinceDisplay=(c=e==null?void 0:e.provinceDisplay)!==null&&c!==void 0?c:""},vu=function t(e){fr(this,t);var r,n;Be(this,"result",void 0),Be(this,"unit",void 0),this.result=(r=e==null?void 0:e.result)!==null&&r!==void 0?r:0,this.unit=(n=e==null?void 0:e.unit)!==null&&n!==void 0?n:""},EE=function(t){return t[t.UNKNOWN=0]="UNKNOWN",t[t.READONLY=1]="READONLY",t[t.EDITABLE=2]="EDITABLE",t[t.PRINT=5]="PRINT",t}({}),wE=function t(e){fr(this,t);var r,n,i,u;Be(this,"width",void 0),Be(this,"height",void 0),Be(this,"widthConfig",void 0),Be(this,"heightConfig",void 0),this.width=(r=e==null?void 0:e.width)!==null&&r!==void 0?r:"",this.height=(n=e==null?void 0:e.height)!==null&&n!==void 0?n:"",this.widthConfig=(i=e==null?void 0:e.widthConfig)!==null&&i!==void 0?i:"fill",this.heightConfig=(u=e==null?void 0:e.heightConfig)!==null&&u!==void 0?u:"fill"};function CE(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function AE(t,e,r){return e=Jr(e),_E(t,Du()?Reflect.construct(e,r||[],Jr(t).constructor):e.apply(t,r))}function mu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Mn(t,e,r){return Du()?Mn=Reflect.construct:Mn=function(i,u,o){var a=[null];a.push.apply(a,u);var s=Function.bind.apply(i,a),c=new s;return o&&Zr(c,o.prototype),c},Mn.apply(null,arguments)}function Wt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jr(t){return Jr=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Jr(t)}function bE(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Zr(t,e)}function FE(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function _E(t,e){return e&&(BE(e)==="object"||typeof e=="function")?e:CE(t)}function Zr(t,e){return Zr=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Zr(t,e)}function BE(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function yu(t){var e=typeof Map=="function"?new Map:void 0;return yu=function(n){if(n===null||!FE(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return Mn(n,arguments,Jr(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Zr(i,n)},yu(t)}function Du(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Du=function(){return!!t})()}var Eu=function t(e){mu(this,t),Wt(this,"isHide",{type:"boolean"})},Ls=function(t){bE(e,t);function e(r){return mu(this,e),AE(this,e)}return e}(yu(Array)),zt=function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";mu(this,t);var n,i;Wt(this,"isHide",void 0),Wt(this,"className",void 0),Wt(this,"style",void 0),Wt(this,"caption",void 0),Wt(this,"defaultState",void 0),this.isHide=(n=e==null?void 0:e.isHide)!==null&&n!==void 0?n:!1,this.style=new wE(e==null?void 0:e.style),this.caption=(i=e==null?void 0:e.caption)!==null&&i!==void 0?i:r};Wt(zt,"mode",void 0),Wt(zt,"Rules",Eu),Wt(zt,"RuntimeRules",Ls);function Nt(){return Nt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Nt.apply(this,arguments)}function SE(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function wu(t){return wu=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},wu(t)}function xn(t,e){return xn=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},xn(t,e)}function OE(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function In(t,e,r){return OE()?In=Reflect.construct:In=function(i,u,o){var a=[null];a.push.apply(a,u);var s=Function.bind.apply(i,a),c=new s;return o&&xn(c,o.prototype),c},In.apply(null,arguments)}function ME(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Cu(t){var e=typeof Map=="function"?new Map:void 0;return Cu=function(n){if(n===null||!ME(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return In(n,arguments,wu(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),xn(i,n)},Cu(t)}var xE=/%[sdj%]/g,ks=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(ks=function(e,r){typeof console!="undefined"&&console.warn&&r.every(function(n){return typeof n=="string"})&&console.warn(e,r)});function Au(t){if(!t||!t.length)return null;var e={};return t.forEach(function(r){var n=r.field;e[n]=e[n]||[],e[n].push(r)}),e}function lt(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=1,i=e[0],u=e.length;if(typeof i=="function")return i.apply(null,e.slice(1));if(typeof i=="string"){var o=String(i).replace(xE,function(a){if(a==="%%")return"%";if(n>=u)return a;switch(a){case"%s":return String(e[n++]);case"%d":return Number(e[n++]);case"%j":try{return JSON.stringify(e[n++])}catch(s){return"[Circular]"}break;default:return a}});return o}return i}function IE(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function Re(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||IE(e)&&typeof t=="string"&&!t)}function TE(t,e,r){var n=[],i=0,u=t.length;function o(a){n.push.apply(n,a),i++,i===u&&r(n)}t.forEach(function(a){e(a,o)})}function qs(t,e,r){var n=0,i=t.length;function u(o){if(o&&o.length){r(o);return}var a=n;n=n+1,a<i?e(t[a],u):r([])}u([])}function PE(t){var e=[];return Object.keys(t).forEach(function(r){e.push.apply(e,t[r])}),e}var js=function(t){SE(e,t);function e(r,n){var i;return i=t.call(this,"Async Validation Error")||this,i.errors=r,i.fields=n,i}return e}(Cu(Error));function NE(t,e,r,n){if(e.first){var i=new Promise(function(f,h){var g=function(v){return n(v),v.length?h(new js(v,Au(v))):f()},y=PE(t);qs(y,r,g)});return i.catch(function(f){return f}),i}var u=e.firstFields||[];u===!0&&(u=Object.keys(t));var o=Object.keys(t),a=o.length,s=0,c=[],l=new Promise(function(f,h){var g=function(d){if(c.push.apply(c,d),s++,s===a)return n(c),c.length?h(new js(c,Au(c))):f()};o.length||(n(c),f()),o.forEach(function(y){var d=t[y];u.indexOf(y)!==-1?qs(d,r,g):TE(d,r,g)})});return l.catch(function(f){return f}),l}function Us(t){return function(e){return e&&e.message?(e.field=e.field||t.fullField,e):{message:typeof e=="function"?e():e,field:e.field||t.fullField}}}function Vs(t,e){if(e){for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];typeof n=="object"&&typeof t[r]=="object"?t[r]=Nt(Nt({},t[r]),n):t[r]=n}}return t}function Ws(t,e,r,n,i,u){t.required&&(!r.hasOwnProperty(t.field)||Re(e,u||t.type))&&n.push(lt(i.messages.required,t.fullField))}function $E(t,e,r,n,i){(/^\s+$/.test(e)||e==="")&&n.push(lt(i.messages.whitespace,t.fullField))}var bu={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Xr={integer:function(e){return Xr.number(e)&&parseInt(e,10)===e},float:function(e){return Xr.number(e)&&!Xr.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(r){return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!Xr.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&!!e.match(bu.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(bu.url)},hex:function(e){return typeof e=="string"&&!!e.match(bu.hex)}};function RE(t,e,r,n,i){if(t.required&&e===void 0){Ws(t,e,r,n,i);return}var u=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=t.type;u.indexOf(o)>-1?Xr[o](e)||n.push(lt(i.messages.types[o],t.fullField,t.type)):o&&typeof e!==t.type&&n.push(lt(i.messages.types[o],t.fullField,t.type))}function LE(t,e,r,n,i){var u=typeof t.len=="number",o=typeof t.min=="number",a=typeof t.max=="number",s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=e,l=null,f=typeof e=="number",h=typeof e=="string",g=Array.isArray(e);if(f?l="number":h?l="string":g&&(l="array"),!l)return!1;g&&(c=e.length),h&&(c=e.replace(s,"_").length),u?c!==t.len&&n.push(lt(i.messages[l].len,t.fullField,t.len)):o&&!a&&c<t.min?n.push(lt(i.messages[l].min,t.fullField,t.min)):a&&!o&&c>t.max?n.push(lt(i.messages[l].max,t.fullField,t.max)):o&&a&&(c<t.min||c>t.max)&&n.push(lt(i.messages[l].range,t.fullField,t.min,t.max))}var Ar="enum";function kE(t,e,r,n,i){t[Ar]=Array.isArray(t[Ar])?t[Ar]:[],t[Ar].indexOf(e)===-1&&n.push(lt(i.messages[Ar],t.fullField,t[Ar].join(", ")))}function qE(t,e,r,n,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||n.push(lt(i.messages.pattern.mismatch,t.fullField,e,t.pattern));else if(typeof t.pattern=="string"){var u=new RegExp(t.pattern);u.test(e)||n.push(lt(i.messages.pattern.mismatch,t.fullField,e,t.pattern))}}}var fe={required:Ws,whitespace:$E,type:RE,range:LE,enum:kE,pattern:qE};function jE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e,"string")&&!t.required)return r();fe.required(t,e,n,u,i,"string"),Re(e,"string")||(fe.type(t,e,n,u,i),fe.range(t,e,n,u,i),fe.pattern(t,e,n,u,i),t.whitespace===!0&&fe.whitespace(t,e,n,u,i))}r(u)}function UE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();fe.required(t,e,n,u,i),e!==void 0&&fe.type(t,e,n,u,i)}r(u)}function VE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(e===""&&(e=void 0),Re(e)&&!t.required)return r();fe.required(t,e,n,u,i),e!==void 0&&(fe.type(t,e,n,u,i),fe.range(t,e,n,u,i))}r(u)}function WE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();fe.required(t,e,n,u,i),e!==void 0&&fe.type(t,e,n,u,i)}r(u)}function zE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();fe.required(t,e,n,u,i),Re(e)||fe.type(t,e,n,u,i)}r(u)}function GE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();fe.required(t,e,n,u,i),e!==void 0&&(fe.type(t,e,n,u,i),fe.range(t,e,n,u,i))}r(u)}function HE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();fe.required(t,e,n,u,i),e!==void 0&&(fe.type(t,e,n,u,i),fe.range(t,e,n,u,i))}r(u)}function QE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(e==null&&!t.required)return r();fe.required(t,e,n,u,i,"array"),e!=null&&(fe.type(t,e,n,u,i),fe.range(t,e,n,u,i))}r(u)}function JE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();fe.required(t,e,n,u,i),e!==void 0&&fe.type(t,e,n,u,i)}r(u)}var ZE="enum";function XE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();fe.required(t,e,n,u,i),e!==void 0&&fe[ZE](t,e,n,u,i)}r(u)}function KE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e,"string")&&!t.required)return r();fe.required(t,e,n,u,i),Re(e,"string")||fe.pattern(t,e,n,u,i)}r(u)}function YE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e,"date")&&!t.required)return r();if(fe.required(t,e,n,u,i),!Re(e,"date")){var a;e instanceof Date?a=e:a=new Date(e),fe.type(t,a,n,u,i),a&&fe.range(t,a.getTime(),n,u,i)}}r(u)}function ew(t,e,r,n,i){var u=[],o=Array.isArray(e)?"array":typeof e;fe.required(t,e,n,u,i,o),r(u)}function Fu(t,e,r,n,i){var u=t.type,o=[],a=t.required||!t.required&&n.hasOwnProperty(t.field);if(a){if(Re(e,u)&&!t.required)return r();fe.required(t,e,n,o,i,u),Re(e,u)||fe.type(t,e,n,o,i)}r(o)}function tw(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();fe.required(t,e,n,u,i)}r(u)}var Kr={string:jE,method:UE,number:VE,boolean:WE,regexp:zE,integer:GE,float:HE,array:QE,object:JE,enum:XE,pattern:KE,date:YE,url:Fu,hex:Fu,email:Fu,required:ew,any:tw};function _u(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Bu=_u();function Yt(t){this.rules=null,this._messages=Bu,this.define(t)}Yt.prototype={messages:function(e){return e&&(this._messages=Vs(_u(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if(typeof e!="object"||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var r,n;for(r in e)e.hasOwnProperty(r)&&(n=e[r],this.rules[r]=Array.isArray(n)?n:[n])},validate:function(e,r,n){var i=this;r===void 0&&(r={}),n===void 0&&(n=function(){});var u=e,o=r,a=n;if(typeof o=="function"&&(a=o,o={}),!this.rules||Object.keys(this.rules).length===0)return a&&a(),Promise.resolve();function s(d){var v,p=[],m={};function D(E){if(Array.isArray(E)){var w;p=(w=p).concat.apply(w,E)}else p.push(E)}for(v=0;v<d.length;v++)D(d[v]);p.length?m=Au(p):(p=null,m=null),a(p,m)}if(o.messages){var c=this.messages();c===Bu&&(c=_u()),Vs(c,o.messages),o.messages=c}else o.messages=this.messages();var l,f,h={},g=o.keys||Object.keys(this.rules);g.forEach(function(d){l=i.rules[d],f=u[d],l.forEach(function(v){var p=v;typeof p.transform=="function"&&(u===e&&(u=Nt({},u)),f=u[d]=p.transform(f)),typeof p=="function"?p={validator:p}:p=Nt({},p),p.validator=i.getValidationMethod(p),p.field=d,p.fullField=p.fullField||d,p.type=i.getType(p),p.validator&&(h[d]=h[d]||[],h[d].push({rule:p,value:f,source:u,field:d}))})});var y={};return NE(h,o,function(d,v){var p=d.rule,m=(p.type==="object"||p.type==="array")&&(typeof p.fields=="object"||typeof p.defaultField=="object");m=m&&(p.required||!p.required&&d.value),p.field=d.field;function D(_,O){return Nt(Nt({},O),{},{fullField:p.fullField+"."+_})}function E(_){_===void 0&&(_=[]);var O=_;if(Array.isArray(O)||(O=[O]),!o.suppressWarning&&O.length&&Yt.warning("async-validator:",O),O.length&&p.message!==void 0&&(O=[].concat(p.message)),O=O.map(Us(p)),o.first&&O.length)return y[p.field]=1,v(O);if(!m)v(O);else{if(p.required&&!d.value)return p.message!==void 0?O=[].concat(p.message).map(Us(p)):o.error&&(O=[o.error(p,lt(o.messages.required,p.field))]),v(O);var C={};if(p.defaultField)for(var b in d.value)d.value.hasOwnProperty(b)&&(C[b]=p.defaultField);C=Nt(Nt({},C),d.rule.fields);for(var B in C)if(C.hasOwnProperty(B)){var F=Array.isArray(C[B])?C[B]:[C[B]];C[B]=F.map(D.bind(null,B))}var $=new Yt(C);$.messages(o.messages),d.rule.options&&(d.rule.options.messages=o.messages,d.rule.options.error=o.error),$.validate(d.value,d.rule.options||o,function(X){var K=[];O&&O.length&&K.push.apply(K,O),X&&X.length&&K.push.apply(K,X),v(K.length?K:null)})}}var w;p.asyncValidator?w=p.asyncValidator(p,d.value,E,d.source,o):p.validator&&(w=p.validator(p,d.value,E,d.source,o),w===!0?E():w===!1?E(p.message||p.field+" fails"):w instanceof Array?E(w):w instanceof Error&&E(w.message)),w&&w.then&&w.then(function(){return E()},function(_){return E(_)})},function(d){s(d)})},getType:function(e){if(e.type===void 0&&e.pattern instanceof RegExp&&(e.type="pattern"),typeof e.validator!="function"&&e.type&&!Kr.hasOwnProperty(e.type))throw new Error(lt("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if(typeof e.validator=="function")return e.validator;var r=Object.keys(e),n=r.indexOf("message");return n!==-1&&r.splice(n,1),r.length===1&&r[0]==="required"?Kr.required:Kr[this.getType(e)]||!1}},Yt.register=function(e,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Kr[e]=r},Yt.warning=ks,Yt.messages=Bu,Yt.validators=Kr;var rw={required:se("CMD.aad41751712156995"),maxLength:se("CMD.890d1751712141808"),minLength:se("CMD.bb9b1751712143625"),string:{range:se("CMD.f7131751712147855")}};function nw(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new Yt(t);return r.messages(Object.assign(rw,e)),r}var iw=new Ss;function Su(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function uw(t){if(Array.isArray(t))return t}function ow(t){if(Array.isArray(t))return Su(t)}function zs(t,e,r,n,i,u,o){try{var a=t[u](o),s=a.value}catch(c){r(c);return}a.done?e(s):Promise.resolve(s).then(n,i)}function Gs(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var u=t.apply(e,r);function o(s){zs(u,n,i,o,a,"next",s)}function a(s){zs(u,n,i,o,a,"throw",s)}o(void 0)})}}function sw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Hs(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function aw(t,e,r){return e&&Hs(t.prototype,e),r&&Hs(t,r),t}function me(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qs(t,e){return e!=null&&typeof Symbol!="undefined"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function Js(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function lw(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function cw(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Zs(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){me(t,i,r[i])})}return t}function fw(t){return uw(t)||Js(t)||Xs(t)||lw()}function Ou(t){return ow(t)||Js(t)||Xs(t)||cw()}function hw(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function Xs(t,e){if(!!t){if(typeof t=="string")return Su(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Su(t,e)}}function Ks(t,e){var r,n,i,u={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype),a=Object.defineProperty;return a(o,"next",{value:s(0)}),a(o,"throw",{value:s(1)}),a(o,"return",{value:s(2)}),typeof Symbol=="function"&&a(o,Symbol.iterator,{value:function(){return this}}),o;function s(l){return function(f){return c([l,f])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(u=0)),u;)try{if(r=1,n&&(i=l[0]&2?n.return:l[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,l[1])).done)return i;switch(n=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return u.label++,{value:l[1],done:!1};case 5:u.label++,n=l[1],l=[0];continue;case 7:l=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){u=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){u.label=l[1];break}if(l[0]===6&&u.label<i[1]){u.label=i[1],i=l;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(l);break}i[2]&&u.ops.pop(),u.trys.pop();continue}l=e.call(t,u)}catch(f){l=[6,f],n=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}var ze=function(){function e(r){var n=this;sw(this,e);var i,u,o,a;me(this,"id",void 0),me(this,"name",void 0),me(this,"icon",void 0),me(this,"type",void 0),me(this,"controlType",void 0),me(this,"props",void 0),me(this,"setting",[]),me(this,"fieldType",void 0),me(this,"eventKeys",[]),me(this,"customEvents",[]),me(this,"parent",null),me(this,"slots",void 0),me(this,"slotPosition",void 0),me(this,"updateSetting",ea),me(this,"removeSetting",Ys),this._callControlHooks("preInstance",r);var s=Qs(this,e)?this.constructor:void 0,c=s.controlName,l=s.controlIcon,f=s.controlType,h=s.controlFieldType,g=s.controlEventKeys,y=s.controlCustomEvents,d=s.name,v=s.setting,p=s.slots,m=s.slotPosition;c&&l&&f||ys("The ".concat(d," controlName,controlIcon,controlType is not define")),this.id=(i=r==null?void 0:r.id)!==null&&i!==void 0?i:Fn(10),this.name=c,this.icon=l,this.type=(u=r==null?void 0:r.type)!==null&&u!==void 0?u:f,this.props=new zt(r==null?void 0:r.props,(Qs(this,e)?this.constructor:void 0).controlName),this.controlType=(o=r==null?void 0:r.controlType)!==null&&o!==void 0?o:"base",this.setting=we(v),this.fieldType=(a=r==null?void 0:r.fieldType)!==null&&a!==void 0?a:h,this.eventKeys=we(g),this.customEvents=we(y),this.slots=we(p),this.slotPosition=we(m),Promise.resolve().then(function(){n._callControlHooks("postInstance",r)})}return aw(e,[{key:"rules",get:function(){var n=this.props.constructor.Rules;return n?new n(this.props):{}}},{key:"_callControlHooks",value:function(){for(var n=arguments.length,i=new Array(n),u=0;u<n;u++)i[u]=arguments[u];var o,a=fw(i),s=a[0],c=a.slice(1);return(o=iw).emit.apply(o,[s,this].concat(Ou(c)))}},{key:"preUpdate",value:function(n,i){this._callControlHooks("preUpdateProps",n,i)}},{key:"postUpdate",value:function(n,i){this._callControlHooks("postUpdateProps",n,i)}},{key:"updateProps",value:function(n,i){this.preUpdate(n,i),iu(this.props,n,i),this.postUpdate(n,i)}},{key:"preValidate",value:function(){return Gs(function(){var n,i,u;return Ks(this,function(o){switch(o.label){case 0:return n=Zs({},this.rules),[4,this._callControlHooks("preValidate",n)];case 1:return i=o.sent(),u=i[i.length-1],[2,u===!1?void 0:u]}})}).call(this)}},{key:"validate",value:function(n,i){return Gs(function(){var u,o,a,s;return Ks(this,function(c){switch(c.label){case 0:return[4,this.preValidate()];case 1:u=c.sent(),o=u!==void 0?u:Zs({},this.rules),Array.isArray(i)&&i.forEach(function(l){o.hasOwnProperty(l)&&delete o[l]}),a=nw(o,n),c.label=2;case 2:return c.trys.push([2,4,,5]),[4,a.validate(this.props)];case 3:return c.sent(),[2,!0];case 4:throw s=c.sent(),s.control||(s.control=this),s;case 5:return[2]}})}).call(this)}},{key:"toDataBindModel",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=this.fieldType,u=this.id,o=this.type,a=this.props,s=a.dataBind,c=a.datasourceBind,l=a.optionConfig,f=a.caption,h=a.required,g=a.maxLength,y=a.options,d=a.encrypted,v=a.encryptedMode;if(!(!i&&!s&&!c)){var p={parentId:n,fieldType:i,controlId:u,caption:f,type:o,props:{}};switch(s&&(p.dataBind=s),l){case"datasource":case void 0:c&&(p.datasourceBind=c);break;case"custom":p.props.options=y;break}return h!==void 0&&(p.required=h),g!==void 0&&(p.maxLength=g),d!==void 0&&(p.encrypted=d),v!==void 0&&(p.encryptedMode=v),p}}},{key:"preToSchema",value:function(){this._callControlHooks("preToSchema",this)}},{key:"toSchema",value:function(){return this.preToSchema(),{id:this.id,type:this.type,props:we(this.props),fieldType:this.fieldType,controlType:this.controlType}}}],[{key:"updateBasicControl",value:function(n,i){if(n==="setting"){if(i.add){var u;(u=this.setting).push.apply(u,Ou(i.add))}i.remove&&this.removeSettingItem(i.remove),i.update}}}]),e}();me(ze,"mode","Designer"),me(ze,"slots",void 0),me(ze,"slotPosition",void 0),me(ze,"controlName",se("CMD.7baf1751712168384")),me(ze,"controlIcon","icon"),me(ze,"controlType","control"),me(ze,"controlFieldType",void 0),me(ze,"controlEventKeys",[]),me(ze,"controlCustomEvents",[]),me(ze,"setting",[]),me(ze,"__is_control__",!0),me(ze,"removeSettingItem",Ys),me(ze,"updateSettingItem",ea);function Ys(t){var e=this,r=Array.isArray(t)?t:[t];r.forEach(function(n){var i,u=typeof n!="string",o=(i=e.setting)===null||i===void 0?void 0:i.findIndex(function(c){return c.key===(u?n.key:n)});if(o!==-1){var a,s;u?e.setting[o].showItems=(a=e.setting[o].showItems)===null||a===void 0?void 0:a.filter(function(c){return!n.hideItems.includes(c)}):e.setting.splice(o,1),u&&!(!((s=e.setting[o].showItems)===null||s===void 0)&&s.length)&&e.setting.splice(o,1)}})}function ea(t,e){var r=this,n=typeof t=="string"?[t]:t;n.forEach(function(i){var u=r.setting.find(function(c){return c.key===i});if(u){if(typeof e=="boolean")u.visible=e;else if((typeof e=="undefined"?"undefined":hw(e))==="object"){var o,a=(o=e.type)!==null&&o!==void 0?o:"replace";if(a==="replace")u.showItems=e.showItems;else{var s;(s=u.showItems).push.apply(s,Ou(e.showItems))}}}})}function dw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ta(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function pw(t,e,r){return e&&ta(t.prototype,e),r&&ta(t,r),t}function ct(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function gw(t,e){return e!=null&&typeof Symbol!="undefined"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}var Yr=function(){function e(r){dw(this,e);var n,i,u,o,a;ct(this,"id",void 0),ct(this,"type",void 0),ct(this,"controlType",void 0),ct(this,"props",void 0),ct(this,"fieldType",void 0),ct(this,"customEvents",[]),ct(this,"pageStatus",void 0),ct(this,"parent",null);var s=gw(this,e)?this.constructor:void 0,c=s.controlType,l=s.controlFieldType,f=s.name,h=s.controlCustomEvents;c||ys("The ".concat(f," controlType is not define")),this.id=(n=r==null?void 0:r.id)!==null&&n!==void 0?n:Fn(10),this.type=(i=r==null?void 0:r.type)!==null&&i!==void 0?i:c,this.props=new zt(r==null?void 0:r.props),this.customEvents=h,this.controlType=(u=r==null?void 0:r.controlType)!==null&&u!==void 0?u:"base",this.fieldType=(o=r==null?void 0:r.fieldType)!==null&&o!==void 0?o:l,this.pageStatus=(a=r==null?void 0:r.pageStatus)!==null&&a!==void 0?a:EE.UNKNOWN}return pw(e,[{key:"rules",get:function(){var n=this.props.constructor.RuntimeRules;if(n){var i=new n(this.props);return Array.from(i)}return[]}}]),e}();ct(Yr,"mode","Runtime"),ct(Yr,"controlType","control"),ct(Yr,"controlFieldType",void 0),ct(Yr,"__is_control__",!0),ct(Yr,"controlCustomEvents",[]);function ft(t){return(t==null?void 0:t.dataCode)!==void 0&&(t==null?void 0:t.fieldCode)!==void 0}function vw(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Mu(t,e,r){return e=Tn(e),mw(t,ra()?Reflect.construct(e,r||[],Tn(t).constructor):e.apply(t,r))}function xu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ie(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Tn(t){return Tn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Tn(t)}function Iu(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Tu(t,e)}function mw(t,e){return e&&(yw(e)==="object"||typeof e=="function")?e:vw(t)}function Tu(t,e){return Tu=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Tu(t,e)}function yw(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function ra(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ra=function(){return!!t})()}var Dw=function(t){Iu(e,t);function e(r){xu(this,e);var n;n=Mu(this,e,[r]),Ie(n,"dataBind",{}),Ie(n,"caption",{type:"string",required:!0,message:se("CMD.pleaseEnterCaption",null,"\u8BF7\u8F93\u5165\u6807\u9898")}),Ie(n,"isHideCaption",{type:"boolean"}),Ie(n,"labelPosition",{type:"enum",enum:["top","left"]}),Ie(n,"defaultState",{type:"enum",enum:["default","readonly"]}),Ie(n,"required",{type:"boolean"}),Ie(n,"captionTip",{type:"string",required:!1,message:se("CMD.pleaseEnterCaptionTip",null,"\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED")});var i={fieldCode:{type:"string",required:!0,message:se("CMD.pleaseEnterFieldCode",null,"\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879")},dataCode:{type:"string",required:!0,message:se("CMD.pleaseEnterFieldCode",null,"\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879")}};if(ft(r.dataBind))n.dataBind={type:"object",required:!0,fields:we(i),message:se("CMD.pleaseEnterFieldCode",null,"\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879")};else{var u={type:"object",required:!0,fields:{},message:se("CMD.pleaseEnterFieldCode",null,"\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879")};Object.keys(r.dataBind).forEach(function(o){u.fields[o]={type:"object",required:!0,fields:we(i),message:se("CMD.pleaseEnterFieldCode",null,"\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879")}}),n.dataBind=u}return r.isShowCaptionTip&&(n.captionTip.required=!0),n}return e}(Eu),Ew=function(t){Iu(e,t);function e(r){xu(this,e);var n;n=Mu(this,e,[r]);var i=r.isHide?!1:r.required;return i&&n.push({type:"string",required:i,message:r.requiredMessage!==""?r.requiredMessage:se("CMD.runtimeRequired",{caption:r.caption},"{caption}\u5FC5\u586B")}),n}return e}(Ls),Pu=function(t){Iu(e,t);function e(r){xu(this,e);var n,i,u,o,a,s,c,l,f,h,g,y,d,v;return n=Mu(this,e,[r]),Ie(n,"caption",void 0),Ie(n,"captionSize",void 0),Ie(n,"captionColor",void 0),Ie(n,"isCaptionItalic",void 0),Ie(n,"isHideCaption",void 0),Ie(n,"isShowCaptionTip",void 0),Ie(n,"captionTip",void 0),Ie(n,"labelPosition",void 0),Ie(n,"dataBind",void 0),Ie(n,"defaultValue",void 0),Ie(n,"placeholder",void 0),Ie(n,"defaultState",void 0),Ie(n,"required",void 0),Ie(n,"requiredMessage",void 0),n.caption=(i=r==null?void 0:r.caption)!==null&&i!==void 0?i:"",n.captionSize=(u=r==null?void 0:r.captionSize)!==null&&u!==void 0?u:"",n.captionColor=(o=r==null?void 0:r.captionColor)!==null&&o!==void 0?o:"",n.isCaptionItalic=(a=r==null?void 0:r.isCaptionItalic)!==null&&a!==void 0?a:!1,n.isHideCaption=(s=r==null?void 0:r.isHideCaption)!==null&&s!==void 0?s:!1,n.isShowCaptionTip=(c=r==null?void 0:r.isShowCaptionTip)!==null&&c!==void 0?c:!1,n.captionTip=(l=r==null?void 0:r.captionTip)!==null&&l!==void 0?l:"",n.defaultState=(f=r==null?void 0:r.defaultState)!==null&&f!==void 0?f:"default",n.labelPosition=(h=r==null?void 0:r.labelPosition)!==null&&h!==void 0?h:"top",n.placeholder=(g=r==null?void 0:r.placeholder)!==null&&g!==void 0?g:"",n.required=(y=r==null?void 0:r.required)!==null&&y!==void 0?y:!1,n.requiredMessage=(d=r==null?void 0:r.requiredMessage)!==null&&d!==void 0?d:"",n.dataBind=new hu(r==null?void 0:r.dataBind),n.defaultValue=(v=r==null?void 0:r.defaultValue)!==null&&v!==void 0?v:"",n}return e}(zt);Ie(Pu,"Rules",Dw),Ie(Pu,"RuntimeRules",Ew);function ww(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Cw(t,e,r){return e=Nn(e),Fw(t,na()?Reflect.construct(e,r||[],Nn(t).constructor):e.apply(t,r))}function Aw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Pn(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Nn(t){return Nn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Nn(t)}function bw(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Nu(t,e)}function Fw(t,e){return e&&(_w(e)==="object"||typeof e=="function")?e:ww(t)}function Nu(t,e){return Nu=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Nu(t,e)}function _w(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function na(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(na=function(){return!!t})()}var ia=function(t){bw(e,t);function e(r){Aw(this,e);var n;return n=Cw(this,e,[r]),Pn(n,"controlType","form"),Pn(n,"props",void 0),n.props=new Pu(r==null?void 0:r.props),n}return e}(ze);Pn(ia,"controlEventKeys",["on_change","on_focus","on_blur"]),Pn(ia,"controlCustomAttributes",void 0);function Bw(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Sw(t,e,r){return e=$n(e),xw(t,ua()?Reflect.construct(e,r||[],$n(t).constructor):e.apply(t,r))}function Ow(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $n(t){return $n=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},$n(t)}function Mw(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$u(t,e)}function xw(t,e){return e&&(Iw(e)==="object"||typeof e=="function")?e:Bw(t)}function $u(t,e){return $u=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},$u(t,e)}function Iw(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function ua(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ua=function(){return!!t})()}var Tw=function(t){Mw(e,t);function e(r){return Ow(this,e),Sw(this,e,[r])}return e}(zt);function Ru(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Pw(t){if(Array.isArray(t))return Ru(t)}function Nw(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function oa(t,e,r,n,i,u,o){try{var a=t[u](o),s=a.value}catch(c){r(c);return}a.done?e(s):Promise.resolve(s).then(n,i)}function $w(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var u=t.apply(e,r);function o(s){oa(u,n,i,o,a,"next",s)}function a(s){oa(u,n,i,o,a,"throw",s)}o(void 0)})}}function Rw(t,e,r){return e=tr(e),Hw(t,la()?Reflect.construct(e,r||[],tr(t).constructor):e.apply(t,r))}function Lw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sa(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function kw(t,e,r){return e&&sa(t.prototype,e),r&&sa(t,r),t}function er(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function br(t,e,r){return typeof Reflect!="undefined"&&Reflect.get?br=Reflect.get:br=function(i,u,o){var a=Qw(i,u);if(!!a){var s=Object.getOwnPropertyDescriptor(a,u);return s.get?s.get.call(o||i):s.value}},br(t,e,r||t)}function tr(t){return tr=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},tr(t)}function qw(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Lu(t,e)}function jw(t,e){return e!=null&&typeof Symbol!="undefined"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function Uw(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Vw(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ww(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){er(t,i,r[i])})}return t}function zw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Gw(t,e){return e=e!=null?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):zw(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}function Hw(t,e){return e&&(Jw(e)==="object"||typeof e=="function")?e:Nw(t)}function Lu(t,e){return Lu=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Lu(t,e)}function Qw(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=tr(t),t!==null););return t}function aa(t){return Pw(t)||Uw(t)||Zw(t)||Vw()}function Jw(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function Zw(t,e){if(!!t){if(typeof t=="string")return Ru(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ru(t,e)}}function la(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(la=function(){return!!t})()}function Xw(t,e){var r,n,i,u={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype),a=Object.defineProperty;return a(o,"next",{value:s(0)}),a(o,"throw",{value:s(1)}),a(o,"return",{value:s(2)}),typeof Symbol=="function"&&a(o,Symbol.iterator,{value:function(){return this}}),o;function s(l){return function(f){return c([l,f])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(u=0)),u;)try{if(r=1,n&&(i=l[0]&2?n.return:l[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,l[1])).done)return i;switch(n=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return u.label++,{value:l[1],done:!1};case 5:u.label++,n=l[1],l=[0];continue;case 7:l=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){u=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){u.label=l[1];break}if(l[0]===6&&u.label<i[1]){u.label=i[1],i=l;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(l);break}i[2]&&u.ops.pop(),u.trys.pop();continue}l=e.call(t,u)}catch(f){l=[6,f],n=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}var Kw=1e4,ca=function(e){qw(r,e);function r(n){Lw(this,r);var i;i=Rw(this,r,[n]),er(i,"controlType","layout"),er(i,"children",void 0),er(i,"excludes",void 0),er(i,"childrenMaxLength",void 0),er(i,"props",void 0);var u=jw(this,r)?this.constructor:void 0,o=u.excludes,a=u.childrenMaxLength;return i.props=new Tw(n==null?void 0:n.props),fu(i,"children",n==null?void 0:n.children,void 0,"Designer"),i.excludes=we(o),i.childrenMaxLength=a,i}return kw(r,[{key:"judgeExcludesChildren",value:function(i){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(i)}},{key:"judgeJoinChildren",value:function(i){var u=this.judgeExcludesChildren(i);return u&&this.childrenMaxLength>this.children.length}},{key:"validate",value:function(i,u){var o=this,a=this,s=function(){return br(tr(r.prototype),"validate",o)};return $w(function(){return Xw(this,function(c){switch(c.label){case 0:return[4,s().call(a,i,u)];case 1:return c.sent(),[4,Promise.all(this.children.map(function(l){return l.validate(i,u)}))];case 2:return c.sent(),[2,!0]}})}).call(this)}},{key:"toDataBindModel",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,u=br(tr(r.prototype),"toDataBindModel",this).call(this),o=u?[u]:[];return this.children.reduce(function(a,s){var c=s.toDataBindModel(i);if(Array.isArray(c)){var l=c.filter(function(f){return!!f});return aa(a).concat(aa(l))}return c&&a.push(c),a},o)}},{key:"toSchema",value:function(){var i=br(tr(r.prototype),"toSchema",this).call(this),u=this.children.map(function(o){var a=o.toSchema();return a});return Gw(Ww({},i),{children:u})}}]),r}(ze);er(ca,"excludes",!1),er(ca,"childrenMaxLength",Kw);function Yw(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function eC(t,e,r){return e=Rn(e),nC(t,fa()?Reflect.construct(e,r||[],Rn(t).constructor):e.apply(t,r))}function tC(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fr(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Rn(t){return Rn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Rn(t)}function rC(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ku(t,e)}function nC(t,e){return e&&(iC(e)==="object"||typeof e=="function")?e:Yw(t)}function ku(t,e){return ku=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ku(t,e)}function iC(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function fa(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(fa=function(){return!!t})()}var uC=function(t){rC(e,t);function e(r,n,i){tC(this,e);var u,o,a,s,c;return u=eC(this,e,[n]),Fr(u,"headers",void 0),Fr(u,"footers",void 0),Fr(u,"pageIndex",void 0),Fr(u,"pageSize",void 0),Fr(u,"pageSizeOptions",void 0),Fr(u,"totalCount",void 0),fu(u,"headers",n==null?void 0:n.headers,r,i),fu(u,"footers",n==null?void 0:n.footers,r),u.pageIndex=(o=n==null?void 0:n.pageIndex)!==null&&o!==void 0?o:1,u.pageSize=(a=n==null?void 0:n.pageSize)!==null&&a!==void 0?a:20,u.pageSizeOptions=(s=n==null?void 0:n.pageSizeOptions)!==null&&s!==void 0?s:[20],u.totalCount=(c=n==null?void 0:n.totalCount)!==null&&c!==void 0?c:0,u}return e}(zt);function qu(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function oC(t){if(Array.isArray(t))return qu(t)}function sC(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ha(t,e,r,n,i,u,o){try{var a=t[u](o),s=a.value}catch(c){r(c);return}a.done?e(s):Promise.resolve(s).then(n,i)}function aC(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var u=t.apply(e,r);function o(s){ha(u,n,i,o,a,"next",s)}function a(s){ha(u,n,i,o,a,"throw",s)}o(void 0)})}}function lC(t,e,r){return e=rr(e),vC(t,ma()?Reflect.construct(e,r||[],rr(t).constructor):e.apply(t,r))}function cC(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function da(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function fC(t,e,r){return e&&da(t.prototype,e),r&&da(t,r),t}function Ln(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _r(t,e,r){return typeof Reflect!="undefined"&&Reflect.get?_r=Reflect.get:_r=function(i,u,o){var a=mC(i,u);if(!!a){var s=Object.getOwnPropertyDescriptor(a,u);return s.get?s.get.call(o||i):s.value}},_r(t,e,r||t)}function rr(t){return rr=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},rr(t)}function hC(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ju(t,e)}function dC(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function pC(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function pa(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Ln(t,i,r[i])})}return t}function gC(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ga(t,e){return e=e!=null?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):gC(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}function vC(t,e){return e&&(yC(e)==="object"||typeof e=="function")?e:sC(t)}function ju(t,e){return ju=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ju(t,e)}function mC(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=rr(t),t!==null););return t}function va(t){return oC(t)||dC(t)||DC(t)||pC()}function yC(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function DC(t,e){if(!!t){if(typeof t=="string")return qu(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qu(t,e)}}function ma(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ma=function(){return!!t})()}function EC(t,e){var r,n,i,u={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype),a=Object.defineProperty;return a(o,"next",{value:s(0)}),a(o,"throw",{value:s(1)}),a(o,"return",{value:s(2)}),typeof Symbol=="function"&&a(o,Symbol.iterator,{value:function(){return this}}),o;function s(l){return function(f){return c([l,f])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(u=0)),u;)try{if(r=1,n&&(i=l[0]&2?n.return:l[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,l[1])).done)return i;switch(n=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return u.label++,{value:l[1],done:!1};case 5:u.label++,n=l[1],l=[0];continue;case 7:l=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){u=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){u.label=l[1];break}if(l[0]===6&&u.label<i[1]){u.label=i[1],i=l;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(l);break}i[2]&&u.ops.pop(),u.trys.pop();continue}l=e.call(t,u)}catch(f){l=[6,f],n=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}var wC=function(t){hC(e,t);function e(r){cC(this,e);var n;return n=lC(this,e,[r]),Ln(n,"controlType","list"),Ln(n,"props",void 0),n.props=new uC(n,r==null?void 0:r.props,"Designer"),n}return fC(e,[{key:"validate",value:function(n,i){var u=this,o=this,a=function(){return _r(rr(e.prototype),"validate",u)};return aC(function(){return EC(this,function(s){switch(s.label){case 0:return[4,a().call(o,n)];case 1:return s.sent(),[4,Promise.all(this.props.headers.map(function(c){return c.validate(n,i)}))];case 2:return s.sent(),[2,!0]}})}).call(this)}},{key:"toDataBindModel",value:function(){var n=_r(rr(e.prototype),"toDataBindModel",this).call(this),i=n?[n]:[],u=this.id;return this.props.headers.reduce(function(o,a){var s=a.toDataBindModel(u);if(Array.isArray(s)){var c=s.filter(function(l){return!!l});return va(o).concat(va(c))}return s&&o.push(s),o},i)}},{key:"toSchema",value:function(){var n=_r(rr(e.prototype),"toSchema",this).call(this),i=this.props.headers.map(function(u){return u.toSchema()});return ga(pa({},n),{props:ga(pa({},this.props),{headers:i})})}}]),e}(ze);Ln(wC,"controlFieldType",je.LIST);function CC(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ya(t,e,r){return e=kn(e),AC(t,wa()?Reflect.construct(e,r||[],kn(t).constructor):e.apply(t,r))}function Da(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function kn(t){return kn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},kn(t)}function Ea(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Uu(t,e)}function AC(t,e){return e&&(bC(e)==="object"||typeof e=="function")?e:CC(t)}function Uu(t,e){return Uu=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Uu(t,e)}function bC(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function wa(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(wa=function(){return!!t})()}var FC=function(t){Ea(e,t);function e(r){Da(this,e);var n;return n=ya(this,e,[r]),rt(n,"caption",{type:"string",required:!0,message:se("CMD.pleaseEnterCaption",null,"\u8BF7\u8F93\u5165\u6807\u9898")}),rt(n,"width",{type:"number",required:!1,message:se("CMD.pleaseEnterColumnWidth",null,"\u8BF7\u8F93\u5165\u5217\u5BBD")}),n.width.required=r.widthType==="px",n}return e}(Eu),_C=function(t){Ea(e,t);function e(r){Da(this,e);var n,i,u,o,a,s;return n=ya(this,e,[r]),rt(n,"widthType",void 0),rt(n,"width",void 0),rt(n,"caption",void 0),rt(n,"dataBind",void 0),rt(n,"autoWidth",void 0),rt(n,"fixed",void 0),rt(n,"sort",void 0),rt(n,"align",void 0),rt(n,"colSpan",void 0),rt(n,"autoHeight",void 0),rt(n,"children",void 0),n.width=(i=r==null?void 0:r.width)!==null&&i!==void 0?i:150,n.widthType=(r==null?void 0:r.widthType)||"auto",n.caption=(u=r==null?void 0:r.caption)!==null&&u!==void 0?u:"",n.fixed=(o=r==null?void 0:r.fixed)!==null&&o!==void 0?o:"none",n.autoWidth=new DE(r==null?void 0:r.autoWidth),n.dataBind=new hu(r==null?void 0:r.dataBind),n.sort=(a=r==null?void 0:r.sort)!==null&&a!==void 0?a:!0,n.align=r==null?void 0:r.align,n.colSpan=r==null?void 0:r.colSpan,n.autoHeight=(s=r==null?void 0:r.autoHeight)!==null&&s!==void 0?s:!1,n}return e}(zt);rt(_C,"Rules",FC);function qn(t){return t.controlType===de.LAYOUT||t.controlType===de.WRAP||t.controlType===de.LIST||t.controlType===de.SEARCH||t.controlType===de.COLUMN&&t.type!==Te.OPERATION_COLUMN}function hr(t,e){Array.isArray(t)&&t.map(r=>{r.controlType===de.LIST?e(r,[]):qn(r)?hr(r==null?void 0:r.children,e):r.controlType===de.FORM&&e(r)})}function dr(t,e){Array.isArray(t)&&t.map(r=>{r.type===Te.DATA_VIEW||r.type===Te.SIMPLE_SEARCH?e(r):qn(r)&&dr(r==null?void 0:r.children,e)})}let Ca=0;function en(t=""){const e=Date.now(),r=Math.floor(Math.random()*1e9);return Ca++,t+"_"+r+Ca+String(e)}class Ke extends Qr{constructor(e){super("Runtime"),this._flatInstances=[],this._instanceMap={},this._controlParentIdMap={};const{schema:r}=e;this._schema=r,this._instance=this.createControl(r,e.beforeCreateInstance),this.getFlatInstances()}getFlatInstances(){const e=[],r={},n={};return Vu(this._instance,"",(i,u)=>{var o;u&&(n[i.id]=u),r[i.id]||(r[i.id]=[]),!(i.type==="subtable-column"&&r[i.id].length>0)&&(e.push(i),!(((o=i.parent)==null?void 0:o.type)===Te.SUBTABLE_COLUMN&&i.parent.parent===void 0)&&r[i.id].push(i))}),this._flatInstances=e,this._instanceMap=r,this._controlParentIdMap=n,this._flatInstances}get schema(){return this._schema}get instance(){return this._instance}get flatInstances(){return this._flatInstances}get instanceMap(){return this._instanceMap}get allRules(){let e={},r={},n={};return dr(this._instance,i=>{let u=Ke.staticGetRules(i.type,i.props);r[i.id]=we(u[0]),e[i.id]=we(u[0]),n[i.id]=we(u[0]),hr(i.children,o=>{(o.controlType===de.FORM||o.controlType===de.LIST)&&(Aa(r[i.id].fields,o,!0),_a(e[i.id].fields,o,!0),ba(n[i.id].fields,o,!0))})}),{rules:this.rules,antdRules:this.antdRules,fieldCodeRules:this.fieldCodeRules,defaultAntdRules:e,defaultRule:r,defaultFieldRules:n}}get rules(){let e={};return dr(this._instance,r=>{let n=Ke.staticGetRules(r.type,r.props);e[r.id]=n[0],hr(r.children,i=>{(i.controlType===de.FORM||i.controlType===de.LIST)&&Aa(e[r.id].fields,i)})}),e}get fieldCodeRules(){let e={};return dr(this._instance,r=>{let n=Ke.staticGetRules(r.type,r.props);e[r.id]=n[0],hr(r.children,i=>{(i.controlType===de.FORM||i.controlType===de.LIST)&&ba(e[r.id].fields,i)})}),e}get antdRules(){let e={};return dr(this._instance,r=>{let n=Ke.staticGetRules(r.type,r.props);e[r.id]=n[0],hr(r.children,i=>{(i.controlType===de.FORM||i.controlType===de.LIST)&&_a(e[r.id].fields,i)})}),e}}function Vu(t,e,r){(Array.isArray(t)?t:[t]).map(i=>{if(r(i,e),qn(i)){const u=i;u.children||(u.children=[]),Vu(u.children,u.id,r)}BC(i,"headers")&&Vu(i.props.headers,i.id,r)})}function BC(t,e){return e in t.props&&cr(t.props[e])}function jn(t){return t.props.isHide?!0:t.parent===null||t.parent===void 0?!1:jn(t.parent)}function Aa(t,e,r=!1){if(jn(e))return;let n=Ke.staticGetRules(e.type,e.props);if(e.controlType===de.FORM)t[e.id]=n;else if(e.type===Te.SUBTABLE){t[e.id]=n;const i={type:"array",fields:{}};(r===!0?[{children:e.props.headers}]:e.children).forEach((u,o)=>{Vt(u.children,a=>{if(i.fields){i.fields[o]||(i.fields[o]={type:"object",required:!0,fields:{}});let s=Ke.staticGetRules(a.type,a.props);i.fields[o].fields[a.id]=s}})}),t[e.id].push(i)}}function ba(t,e,r=!1){var i,u,o,a,s,c,l;if(jn(e))return;let n=Ke.staticGetRules(e.type,e.props);if(e.controlType===de.FORM)if(ft(e.props.dataBind))((i=e.props.dataBind)==null?void 0:i.fieldCode)!=""&&(t[(u=e.props.dataBind)==null?void 0:u.fieldCode]=n);else for(const f in e.props.dataBind)((o=e.props.dataBind[f])==null?void 0:o.fieldCode)!=""&&(t[(a=e.props.dataBind[f])==null?void 0:a.fieldCode]=((s=Fa(n))==null?void 0:s[f])||[]);else if(e.type===Te.SUBTABLE){t[(c=e.props.datasourceBind)==null?void 0:c.dataCode]=n;const f={type:"array",fields:{}};(r===!0?[{children:e.props.headers}]:e.children).forEach((h,g)=>{Vt(h.children,y=>{var d,v,p,m;if(f.fields){f.fields[g]||(f.fields[g]={type:"object",required:!0,fields:{}});let D=Ke.staticGetRules(y.type,y.props);if(ft(y.props.dataBind))((p=y.props.dataBind)==null?void 0:p.fieldCode)!=""&&(f.fields[g].fields[(m=y.props.dataBind)==null?void 0:m.fieldCode]=D);else for(const E in y.props.dataBind)((d=y.props.dataBind[E])==null?void 0:d.fieldCode)!=""&&(f.fields[g].fields[y.props.dataBind[E].fieldCode]=((v=Fa(D))==null?void 0:v[E])||[])}})}),t[(l=e.props.datasourceBind)==null?void 0:l.dataCode].push(f)}}function Fa(t){let e={};return t.map(r=>{r.fields&&(e=r)}),e==null?void 0:e.fields}function _a(t,e,r=!1){if(jn(e))return;let n=Ke.staticGetRules(e.type,e.props);e.controlType===de.FORM?t[e.id]=n:e.type===Te.SUBTABLE&&e.children.length&&(t[e.id]=[],(r===!0?[{children:e.props.headers}]:e.children).forEach(i=>{let u={};Vt(i.children,o=>{let a=Ke.staticGetRules(o.type,o.props);u[o.id]=a}),t[e.id].push(u)}))}class SC{constructor(e){const{state:r,emptyState:n,databindMapping:i,controlidMapping:u,defaultState:o,subtableHeadersControlIdMapping:a}=OC(e.instance);this.emptyState=n,this.state=r,this.dataBindMapping=i,this.controlIdMapping=u,this.defaultState=o,this.subtableHeadersControlIdMapping=a}setState(e,r,n){const i=this.controlIdMapping[e],u=we(r);i!==void 0?(i.children&&r.forEach(o=>{o.uid||Object.assign(o,{uid:"new:"+en("uid")})}),this.state[i.dataView][e]=u):n!==void 0?Object.keys(this.controlIdMapping).map(o=>{const a=this.controlIdMapping[o].dataView,s=this.controlIdMapping[o].children;s!==void 0&&Object.keys(s).map(c=>{c===e&&this.state[a][o][n]&&(this.state[a][o][n][e]=u)})}):this.state[e]=u}getState(e,r){var i;if(this.state[e]!==void 0)return this.state[e];{const u=this.controlIdMapping[e];if(u!==void 0){const o=this.state[u.dataView][e];return r!==void 0&&Object.keys((i=u==null?void 0:u.children)!=null?i:{}).length>0?o[r]:o}else if(r!==void 0){let o;return Object.keys(this.controlIdMapping).map(a=>{const s=this.controlIdMapping[a].dataView,c=this.controlIdMapping[a].children;c!==void 0&&Object.keys(c).map(l=>{var f;l===e&&(o=(f=this.state[s][a][r])==null?void 0:f[e])})}),o}else{let o=[];return Object.keys(this.controlIdMapping).map(a=>{const s=this.controlIdMapping[a].dataView,c=this.controlIdMapping[a].children;c!==void 0&&Object.keys(c).map(l=>{l===e&&this.state[s][a].map(f=>{o.push(f[e])})})}),o}}}getEmptyState(e){if(this.emptyState[e]!==void 0)return this.emptyState[e];{const n=this.controlIdMapping[e];if(n!==void 0){const i=this.emptyState[n.dataView][e];return"children"in n&&Object.assign(i,{uid:"new:"+en("uid")}),i}else{let i;return Object.keys(this.controlIdMapping).map(u=>{const o=this.controlIdMapping[u].dataView,a=this.controlIdMapping[u].children;a!==void 0&&Object.keys(a).map(s=>{s===e&&(i=this.emptyState[o][u][e])})}),i}}}getDataBind(e){let r=this.controlIdMapping[e];if(r)return r.dataBind;e:for(let n in this.controlIdMapping){const i=this.controlIdMapping[n];if(i.children){for(let u in i.children)if(u===e){r=i.children[u];break e}}}return r==null?void 0:r.dataBind}}function OC(t){let e={},r={},n={},i={},u={},o={};return dr(t,a=>{const s=a.id,c={},l={};hr([a],(f,h)=>{MC(c,l,f),xC(n,s,f),IC(i,s,f),TC(u,f)}),e[s]={},o[s]=c,r[s]=l}),{state:e,defaultState:o,subtableHeadersControlIdMapping:u,emptyState:r,databindMapping:n,controlidMapping:i}}function MC(t,e,r){var n,i;if(r.controlType===de.FORM)t[r.id]=we(r.props.defaultValue),e[r.id]=we(r.props.defaultValue);else{const u={};Vt(r.props.headers,o=>{u[o.id]=we(o.props.defaultValue)}),t[r.id]=(i=new Array((n=r.props.defaultRows)!=null?n:1).fill(0).map(()=>Ee({uid:"new:"+en("uid")},we(u))))!=null?i:[],e[r.id]=u}}function xC(t,e,r){var n,i;if(r.controlType===de.FORM)ft(r.props.dataBind)?((i=(n=r.props)==null?void 0:n.dataBind)==null?void 0:i.dataCode)===void 0||(t[r.props.dataBind.dataCode]===void 0&&(t[r.props.dataBind.dataCode]={controlId:e,fields:[],dataViewId:e}),t[r.props.dataBind.dataCode].fields.push({fieldCode:r.props.dataBind.fieldCode,controlId:r.id,dataBind:r.props.dataBind,dataViewId:[e]})):Object.keys(r.props.dataBind).map(u=>{const o=r.props.dataBind,a=o[u].dataCode;a!==void 0&&(t[a]===void 0&&(t[a]={controlId:r.id,fields:[],dataViewId:e}),t[a].fields.push({fieldCode:o[u].fieldCode,controlId:r.id,dataBind:o,dataViewId:[e]}))});else{if(r.props.datasourceBind.dataCode===""){Cr(`datasourceBind.dataCode is empty! maybe in preview mode, control:${r.id} type:${r.type}`);return}t[r.props.datasourceBind.dataCode]={controlId:r.id,fields:[],dataViewId:e};const u=r.id;Vt(r.props.headers,o=>{ft(o.props.dataBind)?(t[o.props.dataBind.dataCode]===void 0&&(t[o.props.dataBind.dataCode]={controlId:e,fields:[],dataViewId:e}),t[o.props.dataBind.dataCode].fields.push({fieldCode:o.props.dataBind.fieldCode,controlId:o.id,dataBind:o.props.dataBind,dataViewId:[e,u]})):Object.keys(o.props.dataBind).map(a=>{const s=o.props.dataBind,c=s[a].dataCode;s[a].fieldCode!==""&&t[c].fields.push({fieldCode:s[a].fieldCode,controlId:o.id,dataBind:s,dataViewId:[e,u]})})})}}function IC(t,e,r){r.controlType===de.FORM?t[r.id]={dataBind:r.props.dataBind,options:[],dataView:e}:r.type===Te.SUBTABLE&&(t[r.id]={dataBind:new hu({dataCode:r.props.datasourceBind.dataCode,fieldCode:""}),dataView:e,children:{},options:[]},Vt(r.props.headers,n=>{var i,u;Object.assign((u=(i=t[r.id])==null?void 0:i.children)!=null?u:{},{[n.id]:{dataBind:n.props.dataBind}})}))}function TC(t,e){if(e.type===Te.SUBTABLE){const r={};e.props.headers.map(n=>{n.children.map(i=>{Object.assign(r,{[i.id]:i})})}),Object.assign(t,{[e.id]:r})}}const Ba=["splice","push","shift","pop","unshift","reverse"],Wu=Symbol("__engineProxy__"),zu=Symbol("__engineTarget__"),Sa=Symbol("__engineArrayBeforeSetCallbackFlag__"),Oa=Symbol("__engineProxyThisKey__"),Ot={type:"",args:[],callback:Ma};function Ma(){}LC();function PC(t,e,r,n,i){if(Ot.type){Ot.callback=i.bind(null,t,n);return}const u=Number(e);if(u>t.length){Ut(`Wrong array operations may cause unknown errors. It is recommended to use APIs such as ${Ba.join(",")} for array operations`);return}if(!(Number.isNaN(u)&&e!=="length"))if(e==="length"){const a=r,s=t.length;if(a>t.length){Ut("Do not directly modify the length of the array data, please add new rows");return}return a===t.length?void 0:()=>i.call(null,t,n,"splice",[a,s-a])}else return u===t.length?()=>i.call(null,t,n,"push",[r]):()=>i.call(null,t,n,"splice",[u,1,r])}function NC(t,e,r){return{__engineProxy__:!0,get(n,i,u){return i===Wu?!0:i===zu?n:Array.isArray(n)&&i===Sa?r:i===Oa?t:Reflect.get(n,i,u)},set(n,i,u,o){var h;let a=we(u);const s=n[i],c=t===""?i:t+"."+i;function l(g){if(typeof g=="object"&&g!==null)return g[Wu]!==!0?Un(g,e,r,c):Un(g[zu],e,r,c)}a=(h=l(a))!=null?h:a;let f;if(Array.isArray(n)){const g=PC(n,i,a,t,e);f=Reflect.set(n,i,a,o),g&&g()}else{try{let g=a;if(a=r.call(null,n,c,a,s),g!==a){const y=l(a);y!==void 0&&(a=y)}}catch(g){return Bn(`${c} set error ${g}`),!0}f=Reflect.set(n,i,a,o),e.call(null,n,c,a,s)}return f||!0}}}function Un(t,e,r,n=""){if(Object.isFrozen(t))return t;for(let i in t){const u=n===""?i:n+"."+i,o=t[i];typeof o=="object"&&o!==null&&(t[i]=Un(o,e,r,u))}return new Proxy(t,NC(n,e,r))}function xa(t){const e=[];return t.forEach(r=>{e.push(r),(r.controlType==="layout"||r.controlType==="wrap")&&e.push(...xa(r.children))}),e}function Gu(t,e,r){if(e==="")return;const n=e.split(".");if(n.length===0)return;const i=n[0],u=n.slice(1),o=r[i]?r[i][0]:void 0;return u.length===0?o:u.reduce((a,s)=>{var f,h;const c=Number(s);if(Number.isNaN(c)&&a){const g=a!=null&&a.children?xa(a.children):void 0,y=g==null?void 0:g.find(d=>d.id===s);return y||(a.controlType===de.FORM?a:void 0)}else return(h=(f=a==null?void 0:a.children)==null?void 0:f[c])!=null?h:a},o)}function $C(t,e){return["push","unshift"].includes(t)?e:t==="splice"?e.slice(2):[]}function RC(t,e,r){if(["push","unshift"].includes(t))return r;if(t==="splice")return e.slice(0,2).concat(r)}function LC(){Ba.forEach(t=>{const e=Array.prototype[t];Array.prototype[t]=function(...r){var n;if(this[Wu]){let i;const u=$C(t,r);if(u.length){const o=(n=this[Sa])==null?void 0:n.call(this,this[zu],this[Oa],u),a=RC(t,r,o);Ot.type=t,Ot.args=a,i=e.apply(this,a)}else Ot.type=t,Ot.args=r,i=e.apply(this,r);return typeof Ot.callback=="function"&&Ot.callback(t,r,i),Ot.type="",Ot.args=[],Ot.callback=Ma,i}else return e.apply(this,r)}})}class kC{constructor(){this.actionMap=new Map,this.buildinActions={},this.actionUtils={},this.sources={}}execAction(e,r,...n){return Pt(this,null,function*(){const i=this.actionMap.get(e);if(!!i)try{return yield i.func.call(null,r,...n)}catch(u){return Bn(`${i.id} Exception during calling action: ${u}`),!1}})}addAction(e,r){this.actionMap.has(e)&&Ut("duplicated action key");const n=new qC(e,r);this.actionMap.set(e,n)}}class qC{constructor(e,r){this.id="",this.id=e,this.func=r}}class jC{constructor(e){this._dataStore=new Map,this.executer=e}add(e,r){this._dataStore.set(e,r)}get(e){let r=this._dataStore.get(e);return we(r)}remove(e){this._dataStore.delete(e)}getRemoteData(e){return Pt(this,null,function*(){return this.executer===void 0?(Bn("\u672A\u521D\u59CB\u5316executer"),[]):this.executer(e)})}}class nr{}class tn extends nr{validate(e){return tt(e)}transform(e){if(e==null)return"";if(!St(e)&&!As(e))return String(e);if(ZD(e))return JSON.stringify(e);throw`${e} is not a string`}}class Hu extends nr{validate(e){return Sn(e)||e===""}transform(e){if(e==null)return"";const r=!St(e)&&!As(e)?Number(e):void 0;if(!Number.isNaN(r)&&r!==void 0)return r;throw`${e} is not a number`}}class UC extends nr{validate(e){return XD(e)}transform(e){if(e==null)return[];function r(n){return n.map(i=>i?String(i):"")}if(cr(e))return r(e);if(tt(e)&&bs(e))try{const n=JSON.parse(e);if(Array.isArray(n))return r(n)}catch(n){}return[String(e)]}}class VC extends nr{validate(e){return KD(e)}transform(e){if(e==null)return[];function r(i){return i.map(u=>!u&&u!==0?"":Number(u)).filter(u=>u===""||!Number.isNaN(u))}if(cr(e))return r(e);if(tt(e)&&bs(e))try{const i=JSON.parse(e);if(cr(i))return r(i)}catch(i){}const n=Number(e);if(Number.isNaN(n))throw`${e} is not a number array`;return[n]}}class WC extends nr{validate(e){return St(e)&&"amount"in e&&Sn(e.amount)&&"currency"in e&&tt(e.currency)}transform(e,r){if(e==null||e==="")return new du({currency:r==null?void 0:r.currency});let n;if(St(e)&&(n=new du(Ee(Ee({},r),e))),tt(e)&&On(e))try{const i=JSON.parse(e);n=new du(Ee(Ee({},r),i))}catch(i){}if(n){const i=new Hu,u=new tn;return i.validate(n.amount)||(n.amount=i.transform(n.amount)),u.validate(n.currency)||(n.currency=u.transform(n.currency)),n}throw`${e} is not a { amount: number, currency: string } object`}}class zC extends nr{validate(e){return St(e)&&"min"in e&&tt(e.min)&&"max"in e&&tt(e.max)}transform(e,r){if(e==null||e==="")return new pu;let n;if(St(e)&&(n=new pu(Ee(Ee({},r),e))),tt(e)&&On(e))try{const i=JSON.parse(e);n=new pu(Ee(Ee({},r),i))}catch(i){}if(n){const i=new tn;return i.validate(n.min)||(n.min=i.transform(n.min)),i.validate(n.max)||(n.max=i.transform(n.max)),n}throw`${e} is not a { min: string, max: string } object`}}class GC extends nr{validate(e){return St(e)&&"result"in e&&Sn(e.result)&&"unit"in e&&tt(e.unit)}transform(e,r){if(e==null||e==="")return new vu({unit:r==null?void 0:r.unit});let n;if(St(e)&&(n=new vu(Ee(Ee({},r),e))),tt(e)&&On(e))try{const i=JSON.parse(e);n=new vu(Ee(Ee({},r),i))}catch(i){}if(n){const i=new Hu,u=new tn;return i.validate(n.result)||(n.result=i.transform(n.result)),u.validate(n.unit)||(n.unit=u.transform(n.unit)),n}throw`${e} is not a { result: string, unit: string } object`}}class HC extends nr{validate(e){return!!St(e)}transform(e,r){if(e==null||e==="")return new gu;let n;if(St(e)&&(n=new gu(Ee(Ee({},r),uu.exports.camelizeKeys(e)))),tt(e)&&On(e))try{const i=JSON.parse(e);n=new gu(Ee(Ee({},r),uu.exports.camelizeKeys(i)))}catch(i){}if(n){const i=new tn;return i.validate(n.city)||(n.city=i.transform(n.city)),i.validate(n.district)||(n.district=i.transform(n.district)),i.validate(n.province)||(n.province=i.transform(n.province)),n}throw`${e} is not a { city: string, district: string, province: string } object`}}class QC{static getValueChecker(e){let r;switch(e){case je.VARCHAR:case je.TIMESTAMP:case je.TEXT:case je.AUTO_NUMBER:r=new tn;break;case je.DECIMAL:r=new Hu;break;case je.EMPLOYEES:case je.DEPARTMENTS:case je.IMAGE:case je.FILE:case je.ARRAY:r=new UC;break;case je.MONEY:r=new WC;break;case je.TIMESCOPE:r=new zC;break;case je.CALC:r=new GC;break;case je.DECIMAL_RANGE:r=new VC;break;case je.ADDRESS:r=new HC;break}return r}}function JC(t){if(["min","max","currency","unit"].includes(t))return je.VARCHAR;if(["result","amount"].includes(t))return je.DECIMAL}function Ia(t,e,r,n){var o;let i=(o=JC(e))!=null?o:t,u=QC.getValueChecker(i);if(!u||u.validate(r))return r;try{const a=u.transform(r,n);return a!==void 0?a:r}catch(a){throw`${e} ${a}`}}function ZC(t,e,r){return Object.entries(t).reduce((n,[i,u])=>{const o=e[i];return n[i]=Ia(u,i,o,r[i]),n},Object.assign({},e))}typeof window!="undefined"&&(window.engines={});let Br=null,rn="";class Qu extends Ss{constructor(e){super(),this.rawStore={},this.isMounted=!1,this.id=Fn(8),this.__pluginsApplied=!1,this.actionManager=new kC,this._jobTasks=[],this.createControlInstance=this.createInstance,this.$options=Object.freeze(e);const{autoMount:r=!0,schema:n,beforeCreateInstance:i,externalParams:u,language:o=hs,debug:a=!1,messagesI18n:s,children:c}=this.$options;this.debug=a,this.runtime=new Ke({schema:n,beforeCreateInstance:i}),this.externalParams=u,this.children=c,this.store=new SC({instance:this.runtime.instance}),this.debugLog("engine is Instantiation complete"),r&&this.mount()}debugLog(...e){this.debug&&ru(...e)}use(e){return this.__pluginsApplied||this.__plugins.push(e),this}registerControl(...e){return this.runtime.register(...e),this}static register(e){return Ke.register(e,"Runtime")}static judgeControlIsRegistered(e){return Ke.staticRegisteredTypes.has(e.Runtime.controlType)}mount(){this.debugLog("~engine\u7684mount\u65B9\u6CD5\u5F00\u59CB\u8C03\u7528~");const{plugins:e=[]}=this.$options;this._handlerProxyState(),this.__plugins=e,this.applyPlugins(),this.setStates(this.getState()),this.debugLog("engine\u7684mount\u65B9\u6CD5\u8C03\u7528\u7ED3\u675F"),this.debug&&typeof window!="undefined"&&(window.engines[this.id]=this)}destroy(){this.debug&&typeof window!="undefined"&&delete window.engines[this.id]}_handlerProxyState(){this.store.state=Un(this.store.state,this._proxyStateCallback.bind(this),this._proxyStateBeforeSetCallback.bind(this))}_proxyStateBeforeSetCallback(e,r,n,i){const u=Gu(this.runtime.flatInstances,r,this.runtime.instanceMap);if(!u)return n;if(this.assertInstance(u,Te.SUBTABLE)){if(n===null)return[];const s=u.props.headers.reduce((l,f)=>{const h=f.children[0];return h&&h.controlType===de.FORM&&(l[h.id]=h.fieldType),l},{}),c=this.getEmptyState(u.id);return n==null?void 0:n.map(l=>ZC(s,l,c))}const o=r.split("."),a=o[o.length-1];try{return Ia(u.fieldType,a,n,i)}catch(s){throw Cr(`the id=${u.id}'s instance setState error, %o ${s}.`,n),s}}_proxyStateCallback(e,r,n,i,u){Array.isArray(e)?this._handlerArrayUpdate(e,r,n,i,u):this._handlerObjectUpdate(e,r,n,i)}_handlerArrayUpdate(e,r,n,i,u){const o=Gu(this.runtime.flatInstances,r,this.runtime.instanceMap);if((o==null?void 0:o.controlType)!==de.LIST)return;const a=g=>{const y=[];for(let d=0;d<g;d++){const v=this.listControlCreateRow(o,"subtable-row");v&&y.push(v)}return y},s=Br;let c=[],l=[],f=[],h=!1;if(n&&i){switch(n){case"push":case"unshift":const d=i.length;c=a(d),l=i,o.children[n](...c);break;case"splice":if(i.length>2){const v=i.length-2,p=i.slice(2);c=a(v),l=p;const m=i[0],D=i[1];o.children[n](m,D,...c)}else{const v=i[0],p=i[1];v+p===o.children.length-1&&(h=!0),o.children[n](...i)}break;default:o.children[n](...i);break}n==="splice"?f=u:["pop","shift"].includes(n)&&(f=[u]);const g=this.getState(o.id);this._handlerSubtableUpdateUid(g),this.runtime.getFlatInstances();const y=c.map(d=>{var p,m;const v=(m=(p=d==null?void 0:d.children)==null?void 0:p[0])==null?void 0:m.children[0];return this.getInstanceRowIndex(v)});this.emit("list-change",{instance:o,value:g,options:Object.assign({},s,{changed:c,data:l,rowIndexs:y,deleted:f!=null?f:[],jsonValue:JSON.stringify(g),isDeleteLastOne:h,type:n,args:i})}),Br=null}}_handlerSubtableUpdateUid(e){e.forEach(r=>{r.uid||Object.assign(r,{uid:"new:"+en("uid")})})}_handlerObjectUpdate(e,r,n,i){const u=Gu(this.runtime.flatInstances,r,this.runtime.instanceMap);if(!u)return;const o=this.getInstanceRowIndex(u),a=Br||{};if(u.controlType===de.LIST&&u.type===Te.SUBTABLE){u.children.length=0;const s=n;let c=[];for(let h=0;h<s.length;h++){const g=this.listControlCreateRow(u,"subtable-row");g&&c.push(g)}u.children.push(...c);let l=i!=null?i:[];(a==null?void 0:a.setData)===!0&&(l=[]),this.runtime.getFlatInstances(),this._handlerSubtableUpdateUid(s);const f=c.map(h=>{var y,d;const g=(d=(y=h==null?void 0:h.children)==null?void 0:y[0])==null?void 0:d.children[0];return this.getInstanceRowIndex(g)});this.emit("list-change",{instance:u,value:n,options:Er(Ee({},a),{changed:c,data:s,rowIndexs:f,deleted:l,type:"push",jsonValue:JSON.stringify(s)})})}else this.emit("change",{instance:u,value:this.getState(u.id,o),rowIndex:o,options:Er(Ee({},a),{oldValue:i})})}applyPlugins(){this.__pluginsApplied||(this.__plugins.forEach(e=>{var r;try{rn=(r=e.pluginName)!=null?r:e.constructor.name,e.apply(this)}catch(n){Ut(`${rn} Plugin apply Error
|
|
1
|
+
var a2=Object.defineProperty,l2=Object.defineProperties;var c2=Object.getOwnPropertyDescriptors;var Hi=Object.getOwnPropertySymbols,f2=Object.getPrototypeOf,vf=Object.prototype.hasOwnProperty,mf=Object.prototype.propertyIsEnumerable,h2=Reflect.get;var Qi=Math.pow,gf=(ue,_e,Ie)=>_e in ue?a2(ue,_e,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):ue[_e]=Ie,Ee=(ue,_e)=>{for(var Ie in _e||(_e={}))vf.call(_e,Ie)&&gf(ue,Ie,_e[Ie]);if(Hi)for(var Ie of Hi(_e))mf.call(_e,Ie)&&gf(ue,Ie,_e[Ie]);return ue},Er=(ue,_e)=>l2(ue,c2(_e));var fs=(ue,_e)=>{var Ie={};for(var at in ue)vf.call(ue,at)&&_e.indexOf(at)<0&&(Ie[at]=ue[at]);if(ue!=null&&Hi)for(var at of Hi(ue))_e.indexOf(at)<0&&mf.call(ue,at)&&(Ie[at]=ue[at]);return Ie};var yf=(ue,_e,Ie)=>h2(f2(ue),Ie,_e);var Pt=(ue,_e,Ie)=>new Promise((at,An)=>{var Ji=Bt=>{try{zr(Ie.next(Bt))}catch(wr){An(wr)}},lr=Bt=>{try{zr(Ie.throw(Bt))}catch(wr){An(wr)}},zr=Bt=>Bt.done?at(Bt.value):Promise.resolve(Bt.value).then(Ji,lr);zr((Ie=Ie.apply(ue,_e)).next())});(function(ue,_e){typeof exports=="object"&&typeof module!="undefined"?_e(exports,require("crypto"),require("path"),require("url"),require("fs"),require("util")):typeof define=="function"&&define.amd?define(["exports","crypto","path","url","fs","util"],_e):(ue=typeof globalThis!="undefined"?globalThis:ue||self,_e(ue.modelDrivenEngine={},ue.require$$0,ue.require$$1,ue.require$$3,ue.require$$0$1,ue.require$$0$2))})(this,function(ue,_e,Ie,at,An,Ji){"use strict";function lr(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var zr=lr(_e),Bt=lr(Ie),wr=lr(at),Df=lr(An),Ef=lr(Ji);const se=(t,e,r)=>{if(!t)return console.error("getLocaleText\u7684key\u4E0D\u80FD\u4E3A\u7A7A"),"";const n=t.split(".");let i;const u=(window.baitedaWorkers||{}).languageMessages||{};n.forEach((a,s)=>{s===0?i=u[a]:i&&(i=i[a])});let o="";return i&&(o=i),e&&Object.keys(e).forEach(a=>{const s=e[a];o=o.replace(new RegExp(`\\{\\s*${a}\\s*\\}`,"g"),s)}),o||(r?o=r:o=t),o};var wf="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",Cf="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",Af="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",bf="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",Ff="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",_f="{caption}\u5FC5\u586B",Bf="\u8BF7\u8F93\u5165\u6807\u9898",Sf="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",Of="\u8BF7\u8F93\u5165\u884C\u6807\u9898",Mf="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",xf="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",If="\u8BF7\u7ED1\u5B9A\u8868\u5355",Tf="\u8BF7\u7ED1\u5B9A\u5217\u8868",Pf="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",Nf="\u8BF7\u8F93\u5165\u663E\u793A\u503C",$f="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",Rf="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",Lf="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",kf="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",qf="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",jf="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",Uf="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",Vf="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",Wf="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",zf="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",Gf="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",Hf="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Qf="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u8D85\u8FC7\u4E86\u9650\u5236",Jf="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",Zf="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",Xf="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",Kf="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",Yf="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",eh="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",th="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",rh="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",nh="\u8BF7\u7ED1\u5B9A\u670D\u52A1",ih="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",uh="\u8BF7\u9009\u62E9\u7701",oh="\u8BF7\u9009\u62E9\u5E02",sh="\u8BF7\u9009\u62E9\u533A",ah="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",lh="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",ch="\u8BF7\u8F93\u5165\u5217\u5BBD",fh="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",hh="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",dh="\u8BF7\u9009\u62E9\u63A7\u4EF6",ph="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",gh="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",vh="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",mh="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",yh="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Dh="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Eh="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",wh="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Ch="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Ah="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",bh="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",Fh="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",_h="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Bh="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",Sh="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Oh="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",Mh="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",xh="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",Ih="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Th="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Ph="\u8BF7\u8F93\u5165\u5B50\u8868\u522B\u540D",Nh="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u4E1A\u52A1\u6A21\u578B",$h="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u7ED1\u5B9A\u670D\u52A1",Rh="\u8BF7\u9009\u62E9\u5173\u8054\u5B50\u8868\u5B57\u6BB5",Lh="\u8BF7\u9009\u62E9\u5173\u8054\u4E3B\u8868\u5B57\u6BB5",kh="\u8BF7\u9009\u62E9\u6392\u5E8F\u5B57\u6BB5",qh="\u6279\u91CF\u5220\u9664",jh="\u6279\u91CF\u6253\u5370",Uh="\u6279\u91CF\u6253\u5370\u8BB0\u5F55",Vh="\u6309\u94AE",Wh="\u521B\u5EFA\u5355\u636E",zh="\u4EEA\u8868\u76D8",Gh="\u5206\u5272\u7EBF",Hh="\u5BFC\u51FA",Qh="\u8868\u5355\u64CD\u4F5C",Jh="\u5BFC\u5165",Zh="\u53D1\u7968\u8BC6\u522B",Xh="\u94FE\u63A5",Kh="\u5217\u8868\u9009\u62E9",Yh="\u5217\u8868\u89C6\u56FE",e0="\u64CD\u4F5C\u6309\u94AE",t0="\u5206\u9875",r0="\u6279\u91CF\u63D0\u4EA4\u8BB0\u5F55",n0="\u8BF4\u660E\u6587\u5B57",i0="\u6587\u5B57\u8BC6\u522B",u0="\u6807\u9898\u7EC4\u4EF6",o0="\u5F53\u524D\u5BA1\u6279\u72B6\u6001",s0="\u6570\u7EC4",a0="\u81EA\u52A8\u7F16\u53F7",l0="\u81EA\u5B9A\u4E49",c0="\u6570\u503C",f0="\u90E8\u95E8",h0="\u4EBA\u5458",d0="\u9644\u4EF6",p0="\u56FE\u7247",g0="\u5730\u5740",v0="\u64CD\u4F5C",m0="\u5E8F\u53F7",y0="\u4EBA\u5458",D0="\u957F\u6587\u672C",E0="\u65E5\u671F\u533A\u95F4",w0="\u65E5\u671F",C0="\u77ED\u6587\u672C",A0="\u6362\u884C\u5BB9\u5668Wrap",b0="\u8868\u683C",F0="\u660E\u7EC6\u5B50\u8868",_0="\u5730\u5740",B0="\u91D1\u989D",S0="\u8BA1\u7B97\u516C\u5F0F",O0="\u591A\u9009",M0="\u7535\u5B50\u7B7E\u7AE0",x0="\u5355\u884C\u6587\u672C",I0="\u6570\u5B57",T0="\u4E1A\u52A1\u7EC4\u7EC7",P0="\u5355\u9009",N0="\u5BCC\u6587\u672C",$0="\u8BC4\u5206",R0="\u6570\u5B57\u533A\u95F4",L0="\u4E0B\u62C9\u5355\u9009",k0="\u4E0B\u62C9\u591A\u9009",q0="\u5173\u8054\u5355\u9009",j0="\u591A\u884C\u6587\u672C",U0="\u6811",V0="Vue\u5BB9\u5668",W0="Vue\u9875\u9762",z0="\u5728\u7EBF\u6587\u6863",G0="\u6309\u94AE\u64CD\u4F5C\u680F",H0="\u9AD8\u7EA7\u5BB9\u5668",Q0="\u5206\u7EC4",J0="\u6805\u683C\u5217",Z0="\u6570\u636E\u5BB9\u5668",X0="\u753B\u5E03",K0="\u6362\u884C\u5BB9\u5668",Y0="\u6805\u683C\u7B49\u5206\u884C",ed="\u5217\u8868\u5BB9\u5668",td="\u81EA\u7531\u9875\u9762",rd="\u5B9A\u4F4D\u5B50\u5BB9\u5668",nd="\u5B9A\u4F4D\u5BB9\u5668",id="\u6805\u683C\u5E03\u5C40",ud="\u660E\u7EC6\u5B50\u8868\u5355\u5143\u683C",od="\u660E\u7EC6\u5B50\u8868\u884C",sd="\u6807\u7B7E\u9875",ad="\u6807\u7B7E\u5355\u5143",ld="\u5DE5\u5177\u680F",cd="\u6279\u91CF\u63D0\u4EA4",fd="\u5BFC\u51FA\u8BB0\u5F55",hd="\u5217\u8868\u89C6\u56FE",dd="\u7ED3\u675F\u65F6\u95F4",pd="\u5F00\u59CB\u65F6\u95F4",gd="\u5355\u4F4D",vd="\u7ED3\u679C",md="\u5E01\u79CD",yd="\u7ED3\u675F\u65E5\u671F",Dd="\u5F00\u59CB\u65E5\u671F",Ed="\u8BF7\u9009\u62E9\u516C\u53F8\u540D\u79F0",wd="\u8BF7\u9009\u62E9\u624B\u673A\u53F7/\u90AE\u7BB1",Cd="\u8BF7\u9009\u62E9\u7B7E\u7AE0\u7C7B\u578B",Ad="\u8BF7\u9009\u62E9\u7B7E\u7F72\u4EBA",bd="\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u7B7E\u7F72\u4EBA",Fd="\u8BF7\u9009\u62E9\u7B7E\u7F72\u6587\u4EF6",_d="\u8BF7\u9009\u62E9",Bd="\u8BF7\u9009\u62E9\u7EC4\u7EC7",Sd="\u8BF7\u9009\u62E9\u90E8\u95E8",Od="\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",Md="\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F",xd="\u8BF7\u9009\u62E9\u5730\u5740",Id="\u5F39\u7A97\u786E\u8BA4\u65F6",Td="\u6807\u7B7E\u9875\u5207\u6362\u65F6",Pd="\u884C\u9009\u4E2D\u65F6",Nd="\u5217\u8868\u6570\u636E\u5BFC\u5165\u524D",$d="\u884C\u5220\u9664\u524D",Rd="\u884C\u70B9\u51FB\u65F6",Ld="\u64CD\u4F5C\u5217\u6E32\u67D3\u65F6",kd="\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6",qd="\u91CD\u547D\u540D\u65F6",jd="\u4FDD\u5B58\u6587\u4EF6\u65F6",Ud="\u6253\u5F00\u6587\u4EF6\u65F6",Vd="\u83B7\u53D6\u7126\u70B9\u65F6",Wd="\u5931\u53BB\u7126\u70B9\u65F6",zd="\u7528\u6237\u8F93\u5165\u65F6",Gd="\u5217\u8868\u6570\u636E\u63D2\u5165\u524D",Hd="\u5217\u8868\u6570\u636E\u5220\u9664\u65F6",Qd="\u5217\u8868\u6570\u636E\u8FD4\u56DE\u65F6",Jd="\u5217\u8868\u6570\u636E\u67E5\u8BE2\u6784\u5EFA\u65F6",Zd="\u5217\u8868\u6570\u636E\u53D8\u5316\u65F6",Xd="\u641C\u7D22\u65F6",Kd="\u503C\u53D1\u751F\u53D8\u5316\u65F6",Yd="\u6267\u884C\u5B8C\u6210\u65F6",ep="\u70B9\u51FB\u65F6",tp="\u8BF7\u8F93\u5165\u4EBA\u5458\u59D3\u540D\u6216\u90AE\u7BB1",rp="\u8BF7\u8F93\u5165\u65E5\u671F",np="\u8BF7\u8F93\u5165\u81EA\u52A8\u7F16\u53F7",ip="\u8BF7\u8F93\u5165",up="\u9ED8\u8BA4\u6A21\u7248",op="\u5DE6\u53F3\u5E03\u5C40",sp="\u4E0A\u4E0B\u5E03\u5C40",ap="\u53EA\u8BFB",lp="\u5FC5\u586B",cp="\u63D0\u793A\u6587\u5B57",fp="\u9690\u85CF\u6807\u9898",hp="\u6807\u9898\u5FC5\u586B",dp="\u7EC4\u7EC7\u5F62\u6001",pp="\u4E1A\u52A1\u7C7B\u578B",gp="\u786E\u5B9A\u8981\u5220\u9664\u6B64\u6761\u6570\u636E\u5417\uFF1F",vp="\u9690\u85CF",mp="\u6D41\u7A0B\u72B6\u6001",yp="\u5BA1\u6279\u901A\u8FC7\u5355\u636E",Dp="\u5220\u9664",Ep="\u7F16\u8F91",wp="\u67E5\u770B",Cp="\u52A0\u8F7D\u81EA\u5B9A\u4E49\u63A7\u4EF6\u5F02\u5E38\uFF0C\u4F1A\u5F71\u54CD\u5230\u7684\u63A7\u4EF6\uFF1A{id}",Ap="\u5185\u7F6E\u7EC4\u4EF6\u52A0\u8F7D\u9519\u8BEF",bp="\u5145\u6EE1\u6574\u884C",Fp="\u6700\u5C0F\u503C",_p="\u6700\u5927\u503C",Bp="\u65B0\u5EFA\u6587\u6863",Sp="\u91CD\u7F6E",Op="\u67E5\u8BE2",Mp="\u660E\u7EC6",xp="\u6253\u5370",Ip="\u4FDD\u5B58\u8349\u7A3F",Tp="\u4FDD\u5B58",Pp="\u53D6\u6D88",Np="\u4E0A\u4F20\u56FE\u7247",$p="\u53D1\u8D77\u7B7E\u7F72",Rp="\u4E0A\u4F20\u9644\u4EF6",Lp="\u6211\u662F\u4E00\u4E2A\u94FE\u63A5",kp="\u5F15\u7528\u5217\u8868",qp="\u9009\u9879\u4E00",jp="\u9009\u9879\u4E8C",Up="\u9009\u9879\u4E09",Vp={isNotNumber:wf,isNotString:Cf,isNotObject:Af,isNotArray:bf,isNotBoolean:Ff,runtimeRequired:_f,pleaseEnterCaption:Bf,pleaseEnterCaptionTip:Sf,pleaseEnterRowCaption:Of,pleaseEnterPlaceholder:Mf,pleaseEnterFieldCode:xf,pleaseEnterForm:If,pleaseEnterList:Tf,pleaseEnterProcess:Pf,pleaseEnterLabel:Nf,pleaseEnterValue:$f,bizKeyNotBindFiled:Rf,pleaseSelectOneField:Lf,pleaseEnterNumberRange:kf,pleaseEnterAValueGreaterThanMin:qf,pleaseEnterAValueLessThanMax:jf,numberRangeSetError:Uf,stringRangeError:Vf,attachmentMaxSize:Wf,pleaseEnterTotalScoreSetting:zf,theTotalScoreMustNotBeLessThan1:Gf,scoreDefaultValueRange:Hf,attachmentLimitError:Qf,PleaseReselectTheOptionalQuantity:Jf,TheMaximumLengthIsGreaterThanTheMinimumLength:Zf,TheMinimumLengthIsGreaterThanTheMaximumLength:Xf,PleaseSelectTheCorrectOptionSettings:Kf,optionIdIsRepeat:Yf,optionIsRequired:eh,pleaseEnterDataCode:th,pleaseEnterValueFieldCode:rh,pleaseEnterSvcCode:nh,pleaseBindAtLeastOneDisplayValue:ih,pleaseSelectProvince:uh,pleaseSelectCity:oh,pleaseSelectDistrict:sh,limitRowsCannotBeLessThan0:ah,TheNumberOfRowsCannotBeLessThanMinRows:lh,pleaseEnterColumnWidth:ch,pleaseSetTheLogicalRelationshipOfAllRuleConditions:fh,pleaseCompleteAllRulesAndConditions:hh,pleaseSelectControl:dh,pleaseSelectAtLeastOneColumn:ph,pleaseSelectFillBackMode:gh,pleaseSelectDashboard:vh,rootNodeIsRequired:mh,theViewNameCannotBeEmpty:yh,pleaseSelectOcrType:Dh,pleaseSelectAtLeastOneFieldToFillIn:Eh,pleaseChooseAtLeastOne:wh,pleaseEnterButtonContent:Ch,pleaseEnterDataCodeInDataSetting:Ah,pleaseEnterValueFieldCodeInDataSetting:bh,pleaseEnterSvcCodeInDataSetting:Fh,pleaseBindAtLeastOneDisplayValueInDataSetting:_h,rootNodeIsRequiredInDataSetting:Bh,pleaseEnterMaxHeight:Sh,pleaseEnterWatermark:Oh,pleaseEnterFileName:Mh,pleaseUploadAtLeastOnePrintTemplate:xh,pleaseAssignBusiness:Ih,pleaseAssignExternal:Th,pleaseEnterAliasCode:Ph,pleaseSelectDataCode:Nh,pleaseSelectSvcCode:$h,pleaseSelectJoinFieldCode:Rh,pleaseSelectMainFieldCode:Lh,pleaseSelectSortFieldCode:kh,batchDeleteButton:qh,batchPrintListButton:jh,batchPrintRecordList:Uh,button:Vh,createFormListButton:Wh,dashboard:zh,divider:Gh,exportListButton:Hh,formSelectButton:Qh,importRecordListButton:Jh,invoiceCheckButton:Zh,link:Xh,listSelectButton:Kh,ListViewSelect:Yh,operationButton:e0,pagination:t0,submissionRecordListButton:r0,text:n0,textOcrButton:i0,title:u0,approvalStatusColumn:o0,array:s0,autoNumber:a0,custom:l0,decimal:c0,department:f0,employee:h0,file:d0,image:p0,location:g0,operation:v0,order:m0,people:y0,long:D0,timescope:E0,timestamp:w0,varchar:C0,gridLayoutWrap:A0,gridTable:b0,subTable:F0,address:_0,amount:B0,calc:S0,checkBox:O0,electronicSignature:M0,input:x0,number:I0,organizationSelection:T0,radio:P0,richText:N0,score:$0,searchNumberRange:R0,select:L0,selectMultiple:k0,selectRelation:q0,textarea:j0,tree:U0,vueFormItem:V0,vuePage:W0,WPS:z0,actionBar:G0,advancedContainer:H0,cardGroup:Q0,col:J0,dataView:Z0,grid:X0,gridLayoutContainer:K0,gridRow:Y0,listView:ed,page:td,position:rd,positioningContainer:nd,row:id,subtableColumn:ud,subtableRow:od,tab:sd,tabPane:ad,toolbox:ld,batchSubmissionListButton:cd,exportRecordListButton:fd,listViewSelect:hd,endTime:dd,startTime:pd,unit:gd,result:vd,currency:md,endDate:yd,startDate:Dd,pleaseSelectCompanyName:Ed,pleaseSelectPhoneOrEmail:wd,pleaseSelectSignType:Cd,pleaseSelectSigner:Ad,pleaseSelectOnlyOne:bd,pleaseSelectSignFile:Fd,pleaseSelect:_d,pleaseSelectOrg:Bd,pleaseSelectDept:Sd,pleaseSelectEndDate:Od,pleaseSelectStartDate:Md,pleaseChooseAddress:xd,modalConfirm:Id,tabChange:Td,rowSelected:Pd,listDataImport:Nd,rowDelete:$d,rowClick:Rd,cellRender:Ld,onClickBtn:kd,rename:qd,onSaveFile:jd,onOpenFile:Ud,onFocus:Vd,onBlur:Wd,onInput:zd,listDataAdd:Gd,listDataDelete:Hd,listDataBack:Qd,listDataCreate:Jd,listDataChange:Zd,search:Xd,valueChange:Kd,finished:Yd,click:ep,pleaseEnterNameorEmail:tp,pleaseEnterDate:rp,pleaseEnterAutonumber:np,pleaseEnter:ip,defaultTemplate:up,left:op,top:sp,default:"\u666E\u901A",readonly:ap,required:lp,textTip:cp,hideCaption:fp,titleRequired:hp,organizationalForm:dp,businessType:pp,deleteConfirm:gp,hide:vp,processStatus:mp,approvedDocuments:yp,delete:Dp,edit:Ep,view:wp,loadCtrlErrorTip:Cp,loadCtrlError:Ap,fullLine:bp,min:Fp,max:_p,createWPS:Bp,reset:Sp,query:Op,detailed:Mp,print:xp,draft:Ip,save:Tp,cancel:Pp,uploadImg:Np,signature:$p,uploadFile:Rp,linkContent:Lp,referenceList:kp,optionOne:qp,optionTwo:jp,optionThird:Up},Wp="Please enter a number",zp="Please enter a string",Gp="Please enter an object",Hp="Please enter an array",Qp="Please enter a boolean",Jp="{caption} Required",Zp="Please enter the title",Xp="Please enter the bubble prompt",Kp="Please enter the row title",Yp="Please enter the prompt text",eg="Please bind data items",tg="Please bind the form",rg="Please bind the list",ng="Please bind the process",ig="Please enter the displayed value",ug="Please enter the stored value",og="The document number is not bound to the data item",sg="Please select at least one display field",ag="Please enter a value greater than or equal to {min} and less than or equal to {max}",lg="Please enter a value greater than or equal to {min}",cg="Please enter a value less than or equal to {max}",fg="The value range is set incorrectly",hg="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",dg="The attachment size must be between 0MB and 1000MB",pg="Please fill in the total score setting",gg="The total score cannot be less than 1",vg="The default value must be between {min} and {max}",mg="The number of attachment uploads exceeds the limit",yg="Please re-select the optional quantity",Dg="The maximum length of the control must be greater than the minimum length",Eg="The minimum length of the control must be less than the maximum length",wg="Please select the correct option setting",Cg="Option ID cannot be repeated",Ag="Please enter at least one option",bg="Please bind the data source",Fg="Please bind the stored value",_g="Please bind the service",Bg="At least one display value must be bound",Sg="Please select a province",Og="Please select a city",Mg="Please select a district",xg="The minimum number of lines to fill in cannot be less than 0",Ig="The number of rows cannot be less than {min} rows",Tg="Please enter the column width",Pg="Please set the logical relationship of all rule conditions",Ng="Please complete all rules and conditions",$g="please select control",Rg="Please select the dashboard",Lg="View name cannot be empty",kg="Please select recognition type",qg="Please select at least one field to fill in",jg="Please select at least one",Ug="Please enter the button title",Vg="Please bind the business model in the data settings",Wg="Please bind storage values in data settings",zg="Please bind the service in the data settings",Gg="Please bind at least one display value in the data settings",Hg="Please select the root node in the data settings",Qg="Please enter the maximum height",Jg="The input content cannot be empty",Zg="Watermark cannot be empty",Xg="File name cannot be empty",Kg="Please upload at least one printing template!\uFF01",Yg="Please select a specific business department",ev="Please select a specified external organization",tv="Please enter a sub table alias",rv="Please select the associated table to set the business model",nv="Please select the association table to set the binding service",iv="Select associated sub table fields",uv="Please select the associated main table field",ov="Please select the sort field",sv="\u6279\u91CF\u5220\u9664",av="\u6279\u91CF\u6253\u5370",lv="\u6279\u91CF\u6253\u5370\u8BB0\u5F55",cv="\u6309\u94AE",fv="\u521B\u5EFA\u5355\u636E",hv="\u4EEA\u8868\u76D8",dv="\u5206\u5272\u7EBF",pv="\u5BFC\u51FA",gv="\u8868\u5355\u64CD\u4F5C",vv="\u5BFC\u5165",mv="\u53D1\u7968\u8BC6\u522B",yv="\u94FE\u63A5",Dv="\u5217\u8868\u9009\u62E9",Ev="\u5217\u8868\u89C6\u56FE",wv="\u64CD\u4F5C\u6309\u94AE",Cv="\u5206\u9875",Av="\u6279\u91CF\u63D0\u4EA4\u8BB0\u5F55",bv="\u8BF4\u660E\u6587\u5B57",Fv="\u6587\u5B57\u8BC6\u522B",_v="\u6807\u9898\u7EC4\u4EF6",Bv="\u5F53\u524D\u5BA1\u6279\u72B6\u6001",Sv="\u6570\u7EC4",Ov="\u81EA\u52A8\u7F16\u53F7",Mv="\u81EA\u5B9A\u4E49",xv="\u6570\u503C",Iv="\u90E8\u95E8",Tv="\u4EBA\u5458",Pv="\u9644\u4EF6",Nv="\u56FE\u7247",$v="\u5730\u5740",Rv="\u64CD\u4F5C",Lv="\u5E8F\u53F7",kv="\u4EBA\u5458",qv="\u957F\u6587\u672C",jv="\u65E5\u671F\u533A\u95F4",Uv="\u65E5\u671F",Vv="\u77ED\u6587\u672C",Wv="\u6362\u884C\u5BB9\u5668Wrap",zv="\u8868\u683C",Gv="\u660E\u7EC6\u5B50\u8868",Hv="\u5730\u5740",Qv="\u91D1\u989D",Jv="\u8BA1\u7B97\u516C\u5F0F",Zv="\u591A\u9009",Xv="\u7535\u5B50\u7B7E\u7AE0",Kv="\u5355\u884C\u6587\u672C",Yv="\u6570\u5B57",em="\u4E1A\u52A1\u7EC4\u7EC7",tm="\u5355\u9009",rm="\u5BCC\u6587\u672C",nm="\u8BC4\u5206",im="\u6570\u5B57\u533A\u95F4",um="\u4E0B\u62C9\u5355\u9009",om="\u4E0B\u62C9\u591A\u9009",sm="\u5173\u8054\u5355\u9009",am="\u591A\u884C\u6587\u672C",lm="\u6811",cm="Vue\u5BB9\u5668",fm="Vue\u9875\u9762",hm="\u5728\u7EBF\u6587\u6863",dm="\u6309\u94AE\u64CD\u4F5C\u680F",pm="\u9AD8\u7EA7\u5BB9\u5668",gm="\u5206\u7EC4",vm="\u6805\u683C\u5217",mm="\u6570\u636E\u5BB9\u5668",ym="\u753B\u5E03",Dm="\u6362\u884C\u5BB9\u5668",Em="\u6805\u683C\u7B49\u5206\u884C",wm="\u5217\u8868\u5BB9\u5668",Cm="\u81EA\u7531\u9875\u9762",Am="\u5B9A\u4F4D\u5B50\u5BB9\u5668",bm="\u5B9A\u4F4D\u5BB9\u5668",Fm="\u6805\u683C\u5E03\u5C40",_m="\u660E\u7EC6\u5B50\u8868\u5355\u5143\u683C",Bm="\u660E\u7EC6\u5B50\u8868\u884C",Sm="\u6807\u7B7E\u9875",Om="\u6807\u7B7E\u5355\u5143",Mm="\u5DE5\u5177\u680F",xm="\u6279\u91CF\u63D0\u4EA4",Im="\u5BFC\u51FA\u8BB0\u5F55",Tm="\u5217\u8868\u89C6\u56FE",Pm="\u5F15\u7528\u5217\u8868",Nm="\u9009\u9879\u4E00",$m="\u9009\u9879\u4E8C",Rm="\u9009\u9879\u4E09",Lm={isNotNumber:Wp,isNotString:zp,isNotObject:Gp,isNotArray:Hp,isNotBoolean:Qp,runtimeRequired:Jp,pleaseEnterCaption:Zp,pleaseEnterCaptionTip:Xp,pleaseEnterRowCaption:Kp,pleaseEnterPlaceholder:Yp,pleaseEnterFieldCode:eg,pleaseEnterForm:tg,pleaseEnterList:rg,pleaseEnterProcess:ng,pleaseEnterLabel:ig,pleaseEnterValue:ug,bizKeyNotBindFiled:og,pleaseSelectOneField:sg,pleaseEnterNumberRange:ag,pleaseEnterAValueGreaterThanMin:lg,pleaseEnterAValueLessThanMax:cg,numberRangeSetError:fg,stringRangeError:hg,attachmentMaxSize:dg,pleaseEnterTotalScoreSetting:pg,theTotalScoreMustNotBeLessThan1:gg,scoreDefaultValueRange:vg,attachmentLimitError:mg,PleaseReselectTheOptionalQuantity:yg,TheMaximumLengthIsGreaterThanTheMinimumLength:Dg,TheMinimumLengthIsGreaterThanTheMaximumLength:Eg,PleaseSelectTheCorrectOptionSettings:wg,optionIdIsRepeat:Cg,optionIsRequired:Ag,pleaseEnterDataCode:bg,pleaseEnterValueFieldCode:Fg,pleaseEnterSvcCode:_g,pleaseBindAtLeastOneDisplayValue:Bg,pleaseSelectProvince:Sg,pleaseSelectCity:Og,pleaseSelectDistrict:Mg,limitRowsCannotBeLessThan0:xg,TheNumberOfRowsCannotBeLessThanMinRows:Ig,pleaseEnterColumnWidth:Tg,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Pg,pleaseCompleteAllRulesAndConditions:Ng,pleaseSelectControl:$g,pleaseSelectDashboard:Rg,theViewNameCannotBeEmpty:Lg,pleaseSelectOcrType:kg,pleaseSelectAtLeastOneFieldToFillIn:qg,pleaseChooseAtLeastOne:jg,pleaseEnterButtonContent:Ug,pleaseEnterDataCodeInDataSetting:Vg,pleaseEnterValueFieldCodeInDataSetting:Wg,pleaseEnterSvcCodeInDataSetting:zg,pleaseBindAtLeastOneDisplayValueInDataSetting:Gg,rootNodeIsRequiredInDataSetting:Hg,pleaseEnterMaxHeight:Qg,pleaseEnter:Jg,pleaseEnterWatermark:Zg,pleaseEnterFileName:Xg,pleaseUploadAtLeastOnePrintTemplate:Kg,pleaseAssignBusiness:Yg,pleaseAssignExternal:ev,pleaseEnterAliasCode:tv,pleaseSelectDataCode:rv,pleaseSelectSvcCode:nv,pleaseSelectJoinFieldCode:iv,pleaseSelectMainFieldCode:uv,pleaseSelectSortFieldCode:ov,batchDeleteButton:sv,batchPrintListButton:av,batchPrintRecordList:lv,button:cv,createFormListButton:fv,dashboard:hv,divider:dv,exportListButton:pv,formSelectButton:gv,importRecordListButton:vv,invoiceCheckButton:mv,link:yv,listSelectButton:Dv,ListViewSelect:Ev,operationButton:wv,pagination:Cv,submissionRecordListButton:Av,text:bv,textOcrButton:Fv,title:_v,approvalStatusColumn:Bv,array:Sv,autoNumber:Ov,custom:Mv,decimal:xv,department:Iv,employee:Tv,file:Pv,image:Nv,location:$v,operation:Rv,order:Lv,people:kv,long:qv,timescope:jv,timestamp:Uv,varchar:Vv,gridLayoutWrap:Wv,gridTable:zv,subTable:Gv,address:Hv,amount:Qv,calc:Jv,checkBox:Zv,electronicSignature:Xv,input:Kv,number:Yv,organizationSelection:em,radio:tm,richText:rm,score:nm,searchNumberRange:im,select:um,selectMultiple:om,selectRelation:sm,textarea:am,tree:lm,vueFormItem:cm,vuePage:fm,WPS:hm,actionBar:dm,advancedContainer:pm,cardGroup:gm,col:vm,dataView:mm,grid:ym,gridLayoutContainer:Dm,gridRow:Em,listView:wm,page:Cm,position:Am,positioningContainer:bm,row:Fm,subtableColumn:_m,subtableRow:Bm,tab:Sm,tabPane:Om,toolbox:Mm,batchSubmissionListButton:xm,exportRecordListButton:Im,listViewSelect:Tm,referenceList:Pm,optionOne:Nm,optionTwo:$m,optionThird:Rm},km="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",qm="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",jm="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Um="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Vm="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Wm="{caption}\u5FC5\u9808",zm="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Gm="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Hm="\u884C\u30D8\u30C3\u30C0\u30FC\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Qm="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Jm="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Zm="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Xm="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Km="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ym="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",e1="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",t1="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",r1="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",n1="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",i1="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",u1="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",o1="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",s1="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",a1="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",l1="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",c1="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",f1="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",h1="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306E\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u6570\u304C\u5236\u9650\u3092\u8D85\u3048\u3066\u3044\u307E\u3059",d1="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",p1="\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u6700\u5927\u5024\u306F\u6700\u5C0F\u5024\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",g1="\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u6700\u5C0F\u5024\u306F\u6700\u5927\u5024\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",v1="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",m1="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",y1="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",D1="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",E1="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",w1="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",C1="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",A1="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",b1="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",F1="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",_1="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",B1="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",S1="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",O1="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",M1="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",x1="please select control",I1="\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",T1="\u30D3\u30E5\u30FC\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",P1="\u8B58\u5225\u30BF\u30A4\u30D7\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",N1="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",$1="\u5C11\u306A\u304F\u3068\u30821\u3064\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",R1="\u30DC\u30BF\u30F3\u306E\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",L1="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",k1="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u683C\u7D0D\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",q1="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30B5\u30FC\u30D3\u30B9\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",j1="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",U1="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30EB\u30FC\u30C8\u30CE\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",V1="\u6700\u5927\u9AD8\u3055\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",W1="\u5165\u529B\u5185\u5BB9\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",z1="\u900F\u304B\u3057\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",G1="\u30D5\u30A1\u30A4\u30EB\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",H1="\u5370\u5237\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u5C11\u306A\u304F\u3068\u30821\u3064\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\uFF01\uFF01",Q1="\u6307\u5B9A\u3055\u308C\u305F\u30D3\u30B8\u30CD\u30B9\u90E8\u9580\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",J1="\u5916\u90E8\u7D44\u7E54\u306E\u6307\u5B9A\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Z1="\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u5225\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",X1="\u95A2\u9023\u8868\u3092\u9078\u629E\u3057\u3066\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044",K1="\u95A2\u9023\u30C6\u30FC\u30D6\u30EB\u8A2D\u5B9A\u30D0\u30A4\u30F3\u30C9\u30B5\u30FC\u30D3\u30B9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Y1="\u95A2\u9023\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u9078\u629E",ey="\u95A2\u9023\u30DE\u30B9\u30BF\u30FC\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ty="\u30BD\u30FC\u30C8\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ry="\u6279\u91CF\u5220\u9664",ny="\u6279\u91CF\u6253\u5370",iy="\u6279\u91CF\u6253\u5370\u8BB0\u5F55",uy="\u6309\u94AE",oy="\u521B\u5EFA\u5355\u636E",sy="\u4EEA\u8868\u76D8",ay="\u5206\u5272\u7EBF",ly="\u5BFC\u51FA",cy="\u8868\u5355\u64CD\u4F5C",fy="\u5BFC\u5165",hy="\u53D1\u7968\u8BC6\u522B",dy="\u94FE\u63A5",py="\u5217\u8868\u9009\u62E9",gy="\u5217\u8868\u89C6\u56FE",vy="\u64CD\u4F5C\u6309\u94AE",my="\u5206\u9875",yy="\u6279\u91CF\u63D0\u4EA4\u8BB0\u5F55",Dy="\u8BF4\u660E\u6587\u5B57",Ey="\u6587\u5B57\u8BC6\u522B",wy="\u6807\u9898\u7EC4\u4EF6",Cy="\u5F53\u524D\u5BA1\u6279\u72B6\u6001",Ay="\u6570\u7EC4",by="\u81EA\u52A8\u7F16\u53F7",Fy="\u81EA\u5B9A\u4E49",_y="\u6570\u503C",By="\u90E8\u95E8",Sy="\u4EBA\u5458",Oy="\u9644\u4EF6",My="\u56FE\u7247",xy="\u5730\u5740",Iy="\u64CD\u4F5C",Ty="\u5E8F\u53F7",Py="\u4EBA\u5458",Ny="\u957F\u6587\u672C",$y="\u65E5\u671F\u533A\u95F4",Ry="\u65E5\u671F",Ly="\u77ED\u6587\u672C",ky="\u6362\u884C\u5BB9\u5668Wrap",qy="\u8868\u683C",jy="\u660E\u7EC6\u5B50\u8868",Uy="\u5730\u5740",Vy="\u91D1\u989D",Wy="\u8BA1\u7B97\u516C\u5F0F",zy="\u591A\u9009",Gy="\u7535\u5B50\u7B7E\u7AE0",Hy="\u5355\u884C\u6587\u672C",Qy="\u6570\u5B57",Jy="\u4E1A\u52A1\u7EC4\u7EC7",Zy="\u5355\u9009",Xy="\u5BCC\u6587\u672C",Ky="\u8BC4\u5206",Yy="\u6570\u5B57\u533A\u95F4",eD="\u4E0B\u62C9\u5355\u9009",tD="\u4E0B\u62C9\u591A\u9009",rD="\u5173\u8054\u5355\u9009",nD="\u591A\u884C\u6587\u672C",iD="\u6811",uD="Vue\u5BB9\u5668",oD="Vue\u9875\u9762",sD="\u5728\u7EBF\u6587\u6863",aD="\u6309\u94AE\u64CD\u4F5C\u680F",lD="\u9AD8\u7EA7\u5BB9\u5668",cD="\u5206\u7EC4",fD="\u6805\u683C\u5217",hD="\u6570\u636E\u5BB9\u5668",dD="\u753B\u5E03",pD="\u6362\u884C\u5BB9\u5668",gD="\u6805\u683C\u7B49\u5206\u884C",vD="\u5217\u8868\u5BB9\u5668",mD="\u81EA\u7531\u9875\u9762",yD="\u5B9A\u4F4D\u5B50\u5BB9\u5668",DD="\u5B9A\u4F4D\u5BB9\u5668",ED="\u6805\u683C\u5E03\u5C40",wD="\u660E\u7EC6\u5B50\u8868\u5355\u5143\u683C",CD="\u660E\u7EC6\u5B50\u8868\u884C",AD="\u6807\u7B7E\u9875",bD="\u6807\u7B7E\u5355\u5143",FD="\u5DE5\u5177\u680F",_D="\u6279\u91CF\u63D0\u4EA4",BD="\u5BFC\u51FA\u8BB0\u5F55",SD="\u5217\u8868\u89C6\u56FE",OD="\u5F15\u7528\u5217\u8868",MD="\u9009\u9879\u4E00",xD="\u9009\u9879\u4E8C",ID="\u9009\u9879\u4E09",TD={isNotNumber:km,isNotString:qm,isNotObject:jm,isNotArray:Um,isNotBoolean:Vm,runtimeRequired:Wm,pleaseEnterCaption:zm,pleaseEnterCaptionTip:Gm,pleaseEnterRowCaption:Hm,pleaseEnterPlaceholder:Qm,pleaseEnterFieldCode:Jm,pleaseEnterForm:Zm,pleaseEnterList:Xm,pleaseEnterProcess:Km,pleaseEnterLabel:Ym,pleaseEnterValue:e1,bizKeyNotBindFiled:t1,pleaseSelectOneField:r1,pleaseEnterNumberRange:n1,pleaseEnterAValueGreaterThanMin:i1,pleaseEnterAValueLessThanMax:u1,numberRangeSetError:o1,stringRangeError:s1,attachmentMaxSize:a1,pleaseEnterTotalScoreSetting:l1,theTotalScoreMustNotBeLessThan1:c1,scoreDefaultValueRange:f1,attachmentLimitError:h1,PleaseReselectTheOptionalQuantity:d1,TheMaximumLengthIsGreaterThanTheMinimumLength:p1,TheMinimumLengthIsGreaterThanTheMaximumLength:g1,PleaseSelectTheCorrectOptionSettings:v1,optionIdIsRepeat:m1,optionIsRequired:y1,pleaseEnterDataCode:D1,pleaseEnterValueFieldCode:E1,pleaseEnterSvcCode:w1,pleaseBindAtLeastOneDisplayValue:C1,pleaseSelectProvince:A1,pleaseSelectCity:b1,pleaseSelectDistrict:F1,limitRowsCannotBeLessThan0:_1,TheNumberOfRowsCannotBeLessThanMinRows:B1,pleaseEnterColumnWidth:S1,pleaseSetTheLogicalRelationshipOfAllRuleConditions:O1,pleaseCompleteAllRulesAndConditions:M1,pleaseSelectControl:x1,pleaseSelectDashboard:I1,theViewNameCannotBeEmpty:T1,pleaseSelectOcrType:P1,pleaseSelectAtLeastOneFieldToFillIn:N1,pleaseChooseAtLeastOne:$1,pleaseEnterButtonContent:R1,pleaseEnterDataCodeInDataSetting:L1,pleaseEnterValueFieldCodeInDataSetting:k1,pleaseEnterSvcCodeInDataSetting:q1,pleaseBindAtLeastOneDisplayValueInDataSetting:j1,rootNodeIsRequiredInDataSetting:U1,pleaseEnterMaxHeight:V1,pleaseEnter:W1,pleaseEnterWatermark:z1,pleaseEnterFileName:G1,pleaseUploadAtLeastOnePrintTemplate:H1,pleaseAssignBusiness:Q1,pleaseAssignExternal:J1,pleaseEnterAliasCode:Z1,pleaseSelectDataCode:X1,pleaseSelectSvcCode:K1,pleaseSelectJoinFieldCode:Y1,pleaseSelectMainFieldCode:ey,pleaseSelectSortFieldCode:ty,batchDeleteButton:ry,batchPrintListButton:ny,batchPrintRecordList:iy,button:uy,createFormListButton:oy,dashboard:sy,divider:ay,exportListButton:ly,formSelectButton:cy,importRecordListButton:fy,invoiceCheckButton:hy,link:dy,listSelectButton:py,ListViewSelect:gy,operationButton:vy,pagination:my,submissionRecordListButton:yy,text:Dy,textOcrButton:Ey,title:wy,approvalStatusColumn:Cy,array:Ay,autoNumber:by,custom:Fy,decimal:_y,department:By,employee:Sy,file:Oy,image:My,location:xy,operation:Iy,order:Ty,people:Py,long:Ny,timescope:$y,timestamp:Ry,varchar:Ly,gridLayoutWrap:ky,gridTable:qy,subTable:jy,address:Uy,amount:Vy,calc:Wy,checkBox:zy,electronicSignature:Gy,input:Hy,number:Qy,organizationSelection:Jy,radio:Zy,richText:Xy,score:Ky,searchNumberRange:Yy,select:eD,selectMultiple:tD,selectRelation:rD,textarea:nD,tree:iD,vueFormItem:uD,vuePage:oD,WPS:sD,actionBar:aD,advancedContainer:lD,cardGroup:cD,col:fD,dataView:hD,grid:dD,gridLayoutContainer:pD,gridRow:gD,listView:vD,page:mD,position:yD,positioningContainer:DD,row:ED,subtableColumn:wD,subtableRow:CD,tab:AD,tabPane:bD,toolbox:FD,batchSubmissionListButton:_D,exportRecordListButton:BD,listViewSelect:SD,referenceList:OD,optionOne:MD,optionTwo:xD,optionThird:ID},Zi={zhCN:Vp,enUS:Lm,jaJP:TD},jt=function(t){return t.Number="Number",t.Operator="Operator",t.VariableInMainTable="VariableInMainTable",t.VariableInCurrentSubTable="VariableInCurrentSubTable",t.VariableInOtherSubTable="VariableInOtherSubTable",t.UndefinedVariable="UndefinedVariable",t}({}),bn=function(t){return t.SUM="SUM",t.AVG="AVG",t.MAX="MAX",t.MIN="MIN",t}({}),Xi,hs=(Xi=window.localStorage.getItem("locale"))!==null&&Xi!==void 0?Xi:"zh-CN",de=function(t){return t.BASE="base",t.FORM="form",t.LAYOUT="layout",t.WRAP="wrap",t.COLUMN="column",t.LIST="list",t.SEARCH="search",t}({}),Te=function(t){return t.TITLE="title",t.LINK="link",t.IFRAME="iframe",t.BUTTON="button",t.DIVIDER="divider",t.TEXT="text",t.CREATE_FORM_LIST_BUTTON="list-page-btn-create-form",t.BATCH_SUBMISSION_LIST_BUTTON="list-page-btn-batch-submission",t.BATCH_DELETE_LIST_BUTTON="list-page-btn-batch-delete",t.SUBMISSION_RECORD_LIST_BUTTON="list-page-btn-submission-record",t.IMPORT_RECORD_LIST_BUTTON="list-page-btn-import-record",t.EXPORT_RECORD_LIST_BUTTON="list-page-btn-export-record",t.EXPORT_LIST_BUTTON="list-page-btn-export-list",t.LIST_SELECT_BUTTON="list-select-button",t.ORGANIZATION_SELECTION="organization-selection",t.FORM_SELECT_BUTTON="form-select-button",t.LIST_VIEW_SELECT="list-view-select",t.TEXT_OCR_BUTTON="text-ocr-button",t.INVOICE_CHECK_BUTTON="invoice-check-button",t.LIST_PAGE_BTN_BATCH_PRINT="list-page-btn-batch-print",t.LIST_PAGE_BTN_BATCH_PRINT_RECORD="list-page-btn-batch-print-record",t.COMMENT="comment",t.VARCHAR_COLUMN="varchar-column",t.TEXT_COLUMN="text-column",t.DECIMAL_COLUMN="decimal-column",t.TIMESCOPE_COLUMN="timescope-column",t.TIMESTAMP_COLUMN="timestamp-column",t.ARRAY_COLUMN="array-column",t.DEPARTMENT_COLUMN="department-column",t.AUTO_NUMBER_COLUMN="auto-number-column",t.FILE_COLUMN="file-column",t.IMAGE_COLUMN="image-column",t.PEOPLE_COLUMN="people-column",t.LOCATION_COLUMN="location-column",t.CUSTOM_COLUMN="custom-column",t.ORDER_COLUMN="order-column",t.OPERATION_COLUMN="operation-column",t.OPERATION_BUTTON="operation-button",t.EMPLOYEE_COLUMN="employee-column",t.Approval_Status_Column="approval-status-column",t.GROUP_COLUMN="group-column",t.ADDRESS="address",t.AMOUNT="amount",t.ATTACHMENT="attachment",t.AUTO_NUMBER="auto-number",t.CALC="calc",t.CHECKBOX="checkbox",t.CASCADER="cascader",t.COUNTER="counter",t.SLIDER="slider",t.SWITCH="switch",t.TAG="tag",t.BARCODE="barcode",t.QR_CODE="qr-code",t.DATE_PICKER="date-picker",t.DATE_RANGE="date-range",t.TIME_PICKER="time-picker",t.TIME_RANGE="time-range",t.DEPARTMENT="department",t.EMPLOYEE="employee",t.IMAGE="image",t.INPUT="input",t.NUMBER="number",t.RADIO="radio",t.RICH_TEXT="rich-text",t.SCORE="score",t.SEARCH_DATE_RANGE="search-date-range",t.SEARCH_NUMBER_RANGE="search-number-range",t.SEARCH_INPUT="search-input",t.SELECT="select",t.SELECT_MULTIPLE="select-multiple",t.SELECT_RELATION="select-relation",t.VUE_FORM_ITEM="vue-form-item",t.TEXTAREA="textarea",t.EMAIL="email",t.FOOTER="footer",t.HEADER="header",t.ID_CARD="id-card",t.MOBILE="mobile",t.PHONE="phone",t.RADIO_IMAGE="radio-image",t.ELECTRONIC_SIGNATURE="electronic-signature",t.WPS="wps",t.CARD_GROUP="card-group",t.BLANK_CONTAINER="blank-container",t.COL="col",t.GRID="grid",t.GRID_ROW="grid-row",t.GRID_TABLE_COLUMN="grid-table-column",t.GRID_LAYOUT_CONTAINER="grid-layout-container",t.ROW="row",t.TWO_COLUMNS="two-columns",t.SUBTABLE_COLUMN="subtable-column",t.SUBTABLE_ROW="subtable-row",t.TAB="tab",t.TAB_PANE="tab-pane",t.TOOLBOX="toolbox",t.DATA_VIEW="data-view",t.LIST_VIEW="list-view",t.ACTION_BAR="action-bar",t.TABLE_LAYOUT="table-layout",t.TABLE_LAYOUT_ROW="table-layout-row",t.TABLE_LAYOUT_COL="table-layout-col",t.TABLE_LAYOUT_WRAPPER="table-layout-wrapper",t.COLLAPSE="collapse",t.COLLAPSE_PANE="collapse-pane",t.SUBTABLE="subtable",t.GRID_TABLE="grid-table",t.SIMPLE_SEARCH="simple-search",t.PAGINATION="pagination",t.CHECKBOX_IMAGE="checkbox-image",t.DASHBOARD="dashboard",t.TREE="tree",t.EMPLOYEE2="employee2",t.DEPARTMENT2="department2",t.GRID_LAYOUT_WRAP="grid-layout-wrap",t.VUE_PAGE="vue-page",t.REFERENCE_LIST="reference-list",t.STEP="step",t.STEP_PANE="step-pane",t}({}),je=function(t){return t.VARCHAR="varchar",t.TEXT="text",t.ARRAY="array",t.ADDRESS="location",t.DECIMAL="decimal",t.DECIMAL_RANGE="decimal_range",t.TIMESTAMP="timestamp",t.EMPLOYEES="people",t.DEPARTMENTS="department",t.MONEY="money",t.TIMESCOPE="timescope",t.FILE="file",t.IMAGE="image",t.AUTO_NUMBER="auto_number",t.CALC="calc",t.LIST="list",t.JSON="json",t.ANY="ANY",t}({}),ds="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",PD=ds+"0123456789";function Fn(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,e="",r=0;r<t;r++){var n=r===0?ds:PD,i=Math.random()*n.length;e+=n[parseInt(String(i),10)]}return e}function Ki(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ND(t){if(Array.isArray(t))return Ki(t)}function $D(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ps(t,e,r){return e=Gr(e),qD(t,eu()?Reflect.construct(e,r||[],Gr(t).constructor):e.apply(t,r))}function gs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _n(t,e,r){return eu()?_n=Reflect.construct:_n=function(i,u,o){var a=[null];a.push.apply(a,u);var s=Function.bind.apply(i,a),c=new s;return o&&Hr(c,o.prototype),c},_n.apply(null,arguments)}function Gr(t){return Gr=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Gr(t)}function vs(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Hr(t,e)}function RD(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function LD(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function kD(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function qD(t,e){return e&&(jD(e)==="object"||typeof e=="function")?e:$D(t)}function Hr(t,e){return Hr=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Hr(t,e)}function ms(t){return ND(t)||LD(t)||UD(t)||kD()}function jD(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function UD(t,e){if(!!t){if(typeof t=="string")return Ki(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ki(t,e)}}function Yi(t){var e=typeof Map=="function"?new Map:void 0;return Yi=function(n){if(n===null||!RD(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return _n(n,arguments,Gr(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Hr(i,n)},Yi(t)}function eu(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(eu=function(){return!!t})()}var tu=console;function Cr(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n,i=e.slice(1);(n=tu).warn.apply(n,["\u{1F9D0} Driven Warning:"+e[0]].concat(ms(i)))}function ru(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n,i=e.slice(1);(n=tu).log.apply(n,["\u{1F680} Driven Log:"+e[0]].concat(ms(i)))}function VD(t){return t+" \u{1F41B}\u{1F41B}\u{1F41B}"}var nu=function(t){vs(e,t);function e(r){gs(this,e);var n;return n=ps(this,e,[r]),n.name="\u{1F4A5} Driven Error",n.message=r?VD(r):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",n}return e}(Yi(Error)),WD=function(t){vs(e,t);function e(r){gs(this,e);var n;return n=ps(this,e,[r]),n.name="\u{1F6A8} Driven Reference Error",n}return e}(nu);function Ut(t){throw new nu(t)}function ys(t){throw new WD(t)}function Bn(t){tu.error(new nu(t))}function Vt(t,e){Array.isArray(t)&&t.map(function(r){switch(r.controlType){case"layout":Vt(r==null?void 0:r.children,e);break;case"wrap":Vt(r==null?void 0:r.children,e);break;case"search":Vt(r==null?void 0:r.children,e);break;case"form":e(r)}})}function zD(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ds(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function GD(t,e,r){return e&&Ds(t.prototype,e),r&&Ds(t,r),t}function HD(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Es=function(){function t(){zD(this,t)}return GD(t,null,[{key:"getMessage",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i;return se("CMD."+r,n,Zi==null||(i=Zi[hs.split("-").join("")])===null||i===void 0?void 0:i[r])}},{key:"resetI18n",value:function(){}},{key:"setLocale",value:function(r,n){}}]),t}();HD(Es,"$i18n",Es.resetI18n());function iu(t,e,r){var n=e.replace(/\[(\d)]/g,function(u,o){return"."+o}).split("."),i=!1;return n.reduce(function(u,o,a,s){var c=u;if(!!u){if(!Object.prototype.hasOwnProperty.call(u,o)){Cr("Can not set ".concat(e,"'s ").concat(o," property in current %o, Because there is no ").concat(o," property on the %o"),u,u);return}return a===s.length-1&&!Object.is(c[o],r)&&(c[o]=r,i=!0),c[o]}},t),i}var Xt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function QD(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var uu={exports:{}};(function(t){(function(e){var r=function(p,m,D){if(!c(m)||f(m)||h(m)||g(m)||s(m))return m;var E,w=0,_=0;if(l(m))for(E=[],_=m.length;w<_;w++)E.push(r(p,m[w],D));else{E={};for(var O in m)Object.prototype.hasOwnProperty.call(m,O)&&(E[p(O,D)]=r(p,m[O],D))}return E},n=function(p,m){m=m||{};var D=m.separator||"_",E=m.split||/(?=[A-Z])/;return p.split(E).join(D)},i=function(p){return y(p)?p:(p=p.replace(/[\-_\s]+(.)?/g,function(m,D){return D?D.toUpperCase():""}),p.substr(0,1).toLowerCase()+p.substr(1))},u=function(p){var m=i(p);return m.substr(0,1).toUpperCase()+m.substr(1)},o=function(p,m){return n(p,m).toLowerCase()},a=Object.prototype.toString,s=function(p){return typeof p=="function"},c=function(p){return p===Object(p)},l=function(p){return a.call(p)=="[object Array]"},f=function(p){return a.call(p)=="[object Date]"},h=function(p){return a.call(p)=="[object RegExp]"},g=function(p){return a.call(p)=="[object Boolean]"},y=function(p){return p=p-0,p===p},d=function(p,m){var D=m&&"process"in m?m.process:m;return typeof D!="function"?p:function(E,w){return D(E,p,w)}},v={camelize:i,decamelize:o,pascalize:u,depascalize:o,camelizeKeys:function(p,m){return r(d(i,m),p)},decamelizeKeys:function(p,m){return r(d(o,m),p,m)},pascalizeKeys:function(p,m){return r(d(u,m),p)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=v:e.humps=v})(Xt)})(uu);var ws={};Object.defineProperty(ws,"__esModule",{value:!0});function ou(t){if(typeof t!="object"||t===null)return t;if(Array.isArray(t))return t.map(e=>typeof e!="object"||e===null?e:ou(e));{const e={};for(const r in t){const n=t[r];e[r]=typeof n!="object"||n===null?n:ou(n)}return e}}var JD=ws.default=ou;function Cs(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function we(t){if(t!==void 0)return(typeof t=="undefined"?"undefined":Cs(t))==="object"?JD(t):t}function St(t){return Object.prototype.toString.call(t)==="[object Object]"}function ZD(t){return t!=null&&(typeof t=="undefined"?"undefined":Cs(t))==="object"&&Array.isArray(t)===!1}function cr(t){return Array.isArray(t)}function tt(t){return typeof t=="string"}function Sn(t){return typeof t=="number"}function As(t){return typeof t=="function"}function XD(t){return cr(t)&&t.every(function(e){return tt(e)})}function KD(t){return cr(t)&&t.every(function(e){return Sn(e)||e===""})}function bs(t){return/^\[.*?]$/.test(t)}function On(t){return/^{.*?}$/.test(t)}function YD(t){return Object.values(Te).includes(t)}function su(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function eE(t){if(Array.isArray(t))return su(t)}function Fs(t,e,r,n,i,u,o){try{var a=t[u](o),s=a.value}catch(c){r(c);return}a.done?e(s):Promise.resolve(s).then(n,i)}function tE(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var u=t.apply(e,r);function o(s){Fs(u,n,i,o,a,"next",s)}function a(s){Fs(u,n,i,o,a,"throw",s)}o(void 0)})}}function rE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function nE(t,e,r){return e&&_s(t.prototype,e),r&&_s(t,r),t}function Bs(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function iE(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function uE(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function au(t){return eE(t)||iE(t)||oE(t)||uE()}function oE(t,e){if(!!t){if(typeof t=="string")return su(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return su(t,e)}}function sE(t,e){var r,n,i,u={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype),a=Object.defineProperty;return a(o,"next",{value:s(0)}),a(o,"throw",{value:s(1)}),a(o,"return",{value:s(2)}),typeof Symbol=="function"&&a(o,Symbol.iterator,{value:function(){return this}}),o;function s(l){return function(f){return c([l,f])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(u=0)),u;)try{if(r=1,n&&(i=l[0]&2?n.return:l[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,l[1])).done)return i;switch(n=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return u.label++,{value:l[1],done:!1};case 5:u.label++,n=l[1],l=[0];continue;case 7:l=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){u=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){u.label=l[1];break}if(l[0]===6&&u.label<i[1]){u.label=i[1],i=l;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(l);break}i[2]&&u.ops.pop(),u.trys.pop();continue}l=e.call(t,u)}catch(f){l=[6,f],n=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}var Ss=function(){function t(){rE(this,t),Bs(this,"_events",new Map),Bs(this,"debug",!1)}return nE(t,[{key:"emit",value:function(r){for(var n=arguments.length,i=new Array(n>1?n-1:0),u=1;u<n;u++)i[u-1]=arguments[u];return tE(function(){var o,a,s,c,l,f,h,g,y,d,v,p;return sE(this,function(m){switch(m.label){case 0:if(o=this._events.get(r),a=[],!o)return[3,10];s=o.slice(),c=!0,l=!1,f=void 0,m.label=1;case 1:m.trys.push([1,8,9,10]),h=s[Symbol.iterator](),m.label=2;case 2:if(c=(g=h.next()).done)return[3,7];if(y=g.value,!o.includes(y))return[3,6];m.label=3;case 3:return m.trys.push([3,5,,6]),this.debug&&ru.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(r," \u4E8B\u4EF6: ").concat(y.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+y.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(i.map(function(){return"%o"}).join(","),"\u3002")].concat(au(i))),[4,y.apply(null,au(i))];case 4:return d=m.sent(),this.debug&&ru.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(r," \u4E8B\u4EF6: ").concat(y.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+y.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(i.map(function(){return"%o"}).join(","),"; \u51FD\u6570\u7684\u8FD4\u56DE\u7ED3\u679C\u4E3A%o")].concat(au(i),[d])),a.push(d),d===!1?[3,7]:[3,6];case 5:return v=m.sent(),Bn(String(v)+":"+String(v.stack)),[3,6];case 6:return c=!0,[3,2];case 7:return[3,10];case 8:return p=m.sent(),l=!0,f=p,[3,10];case 9:try{!c&&h.return!=null&&h.return()}finally{if(l)throw f}return[7];case 10:return[2,a]}})}).call(this)}},{key:"on",value:function(r,n){if(this._events.has(r)){var i;(i=this._events.get(r))===null||i===void 0||i.push(n)}else this._events.set(r,[n])}},{key:"off",value:function(r,n){if(this._events.has(r)){var i=this._events.get(r),u=i==null?void 0:i.indexOf(n);i==null||i.splice(u,1)}}},{key:"delete",value:function(r){this._events.has(r)&&this._events.delete(r)}},{key:"clear",value:function(){this._events=new Map}}]),t}();function aE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Os(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function lE(t,e,r){return e&&Os(t.prototype,e),r&&Os(t,r),t}function cE(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var fE=[{key:"on_click",name:se("CMD.click",null,"\u70B9\u51FB\u65F6"),code:"click"},{key:"on_click_finish",name:se("CMD.finished",null,"\u6267\u884C\u5B8C\u6210\u65F6"),code:"click-finish"},{key:"on_change",name:se("CMD.valueChange",null,"\u503C\u53D1\u751F\u53D8\u5316\u65F6"),code:"change"},{key:"on_search",name:se("CMD.search",null,"\u641C\u7D22\u65F6"),code:"search"},{key:"on_file_actions",name:se("CMD.onClickFileBtn",null,"\u70B9\u51FB\u6587\u4EF6\u6309\u94AE\u65F6"),code:"file-actions"},{key:"on_tree_search",name:se("CMD.treeDataCreate",null,"\u6811\u6570\u636E\u67E5\u8BE2\u6784\u5EFA\u65F6"),code:"tree-search"},{key:"on_list_change",name:se("CMD.listDataChange",null,"\u5217\u8868\u6570\u636E\u53D8\u5316\u65F6"),code:"list-change"},{key:"on_list_search",name:se("CMD.listDataCreate",null,"\u5217\u8868\u6570\u636E\u67E5\u8BE2\u6784\u5EFA\u65F6"),code:"list-search"},{key:"on_list_mounted",name:se("CMD.listDataBack",null,"\u5217\u8868\u6570\u636E\u8FD4\u56DE\u65F6"),code:"list-mounted"},{key:"on_list_delete",name:se("CMD.listDataDelete",null,"\u5217\u8868\u6570\u636E\u5220\u9664\u65F6"),code:"list-delete"},{key:"on_list_before_insert",name:se("CMD.listDataAdd",null,"\u5217\u8868\u6570\u636E\u63D2\u5165\u524D"),code:"list-before-insert"},{key:"on_input",name:se("CMD.onInput",null,"\u7528\u6237\u8F93\u5165\u65F6"),code:"input"},{key:"on_blur",name:se("CMD.onBlur",null,"\u5931\u53BB\u7126\u70B9\u65F6"),code:"blur"},{key:"on_focus",name:se("CMD.onFocus",null,"\u83B7\u53D6\u7126\u70B9\u65F6"),code:"focus"},{key:"on_wps_open",name:se("CMD.onOpenFile",null,"\u6253\u5F00\u6587\u4EF6\u65F6"),code:"wps-open"},{key:"on_wps_save",name:se("CMD.onSaveFile",null,"\u4FDD\u5B58\u6587\u4EF6\u65F6"),code:"wps-save"},{key:"on_wps_rename",name:se("CMD.rename",null,"\u91CD\u547D\u540D\u65F6"),code:"wps-rename"},{key:"on_list_actions",name:se("CMD.onClickBtn",null,"\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6"),code:"list-actions"},{key:"on_list_render_operation",name:se("CMD.cellRender",null,"\u64CD\u4F5C\u5217\u6E32\u67D3\u65F6"),code:"list-render-operation"},{key:"on_list_rowclick",name:se("CMD.rowClick",null,"\u884C\u70B9\u51FB\u65F6"),code:"list-rowclick"},{key:"on_list_before_rowdelete",name:se("CMD.rowDelete",null,"\u884C\u5220\u9664\u524D"),code:"list-before-rowdelete"},{key:"on_list_before_import",name:se("CMD.listDataImport",null,"\u5217\u8868\u6570\u636E\u5BFC\u5165\u524D"),code:"list-before-import"},{key:"on_list_rows_checked",name:se("CMD.rowSelected",null,"\u884C\u9009\u4E2D\u65F6"),code:"list-rows-checked"},{key:"on_change_tab",name:se("CMD.tabChange",null,"\u6807\u7B7E\u9875\u5207\u6362\u65F6"),code:"change-tab"},{key:"on_modal_ok",name:se("CMD.modalConfirm",null,"\u5F39\u7A97\u786E\u8BA4\u65F6"),code:"modal-ok"},{key:"on_change_steps",name:se("CMD.stepsChange",null,"\u6B65\u9AA4\u5207\u6362\u65F6"),code:"change-steps"},{key:"on_option_selected",name:se("CMD.optionSelected",null,"DOM\u70B9\u51FBoption\u4E8B\u4EF6"),code:"option_selected"}],Ms=function(){function t(){aE(this,t)}return lE(t,null,[{key:"getEventsFromKeys",value:function(r){var n=typeof r=="string"?[r]:r;return t.events.filter(function(i){return n.includes(i.key)})}},{key:"getEventsFromControl",value:function(r){var n=[],i=r.eventKeys;n=n.concat(t.events.filter(function(o){return i.includes(o.key)}));var u=r.customEvents.map(function(o){var a=o.key;return o.namespace!==void 0&&o.namespace!==null&&o.namespace!==""&&(a=o.namespace+":"+o.key),{key:a,code:o.key,name:o.name}});return n=n.concat(u),n}}]),t}();cE(Ms,"events",fE);function lu(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function hE(t){if(Array.isArray(t))return lu(t)}function dE(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function pE(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function xs(t){return hE(t)||dE(t)||gE(t)||pE()}function gE(t,e){if(!!t){if(typeof t=="string")return lu(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lu(t,e)}}function cu(t,e){var r;!((r=Object.getOwnPropertyDescriptors(t)[e])===null||r===void 0)&&r.enumerable&&Object.defineProperty(t,e,{enumerable:!1})}function Is(t,e,r){r!=="Runtime"&&(t.parent=e,cu(t,"parent"))}function vE(t,e,r){t.forEach(function(n){Is(n,e,r)})}var Ts=Symbol("targetKey");function Ps(t){var e;return(e=t[Ts])!==null&&e!==void 0?e:t}function Ns(t,e,r){return vE(t,e,r),new Proxy(t,{get:function(i,u){for(var o=arguments.length,a=new Array(o>2?o-2:0),s=2;s<o;s++)a[s-2]=arguments[s];var c;return u===Ts?i:(c=Reflect).get.apply(c,[i,u].concat(xs(a)))},set:function(i,u,o){for(var a=arguments.length,s=new Array(a>3?a-3:0),c=3;c<a;c++)s[c-3]=arguments[c];var l;if(cr(t)&&u==="length"&&o===t.length)return!0;var f=(l=Reflect).set.apply(l,[i,u,o].concat(xs(s)));return St(o)&&Is(o,e,r),f}})}function fu(t,e,r,n,i){var u=n!=null?n:t,o=Ns(Ps(r!=null?r:[]),u,i);Object.defineProperty(t,e,{get:function(){return o},set:function(s){o=Ns(Ps(s),u,i)},enumerable:!0})}function mE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function yE(t,e,r){return e&&$s(t.prototype,e),r&&$s(t,r),t}function Kt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Rs=[],Qr=function(){function t(e){mE(this,t),Kt(this,"registeredControlTypes",new Set),Kt(this,"controlConfigMap",new Map),Kt(this,"_controls",[]),Kt(this,"_type",void 0),this._type=e,this._initControls(e)}return yE(t,[{key:"registerControlConfig",value:function(r,n){return this.controlConfigMap.set(r,n),this}},{key:"getControlConfig",value:function(r){return this.controlConfigMap.get(r)}},{key:"getControls",value:function(){return this._controls}},{key:"register",value:function(r){r.__is_control__||Ut("".concat(r.name," is not a Control"));var n=this._controls.findIndex(function(i){return i.controlType===r.controlType});return n>-1&&(Cr("The ".concat(r.controlType," is repeat register, So it overwrites the one that was registered before.")),this._controls.splice(n,1)),this.registeredControlTypes.add(r.controlType),this._controls.push(r),this}},{key:"isLayoutControl",value:function(r){return r.controlType===de.LAYOUT}},{key:"isFormControl",value:function(r){return r.controlType===de.FORM}},{key:"isListControl",value:function(r){return r.controlType===de.LIST}},{key:"isColumnControl",value:function(r){return r.controlType===de.COLUMN}},{key:"createControl",value:function(r,n){var i=this;if(Array.isArray(r))return r.map(function(l){return i.createControl(l,n)});if(r.children&&(r.children=r.children.map(function(l){return i.createControl(l,n)})),this.isListControl(r)){var u=r.props;u.headers&&(u.headers=u.headers.map(function(l){return i.createControl(l,n)}))}var o=this.getControlFormType(r.type);if(o){var a=r;if(typeof n=="function"){var s=n(a);s&&(a=s)}var c;return o.mode==="Runtime"?(c=a,c.fieldType=o.controlFieldType,this._setParentPrototypeToSchema(c,this)):c=new o(a),c}else Ut("The constructor of ".concat(r.type," could not be found, please confirm that the constructor has been registered"))}},{key:"resetInstanceParent",value:function(r,n){delete r.parent,Object.defineProperty(r,"parent",{configurable:!0,get:function(){return n}}),cu(r,"parent")}},{key:"_setParentPrototypeToSchema",value:function(r,n){n._type==="Runtime"&&(Object.defineProperty(r,"parent",{configurable:!0,get:function(){var u=r.id,o=n._controlParentIdMap,a=n.instanceMap;if(!(!o||!a)){var s=o[u],c=a[u];if(!(!s&&!c)){var l=c.findIndex(function(g){return g==r}),f=a[s]||[],h;return f.length!==c.length?h=f[0]:h=f[l],h}}}}),cu(r,"parent"))}},{key:"createControlInstance",value:function(r,n){var i=this.getControlFormType(r);if(i)return new i(n)}},{key:"getControlFormType",value:function(r){return this._controls.find(function(n){return n.controlType===r})}},{key:"_initControls",value:function(r){var n=this;this.constructor.staticControls.forEach(function(i){n.register(i[r]),t.staticControlsRuntimeRules.set(i.Runtime.controlType,i.Property.RuntimeRules),i.Property.mode=r})}}],[{key:"staticGetRules",value:function(r,n){var i=t.staticControlsRuntimeRules.get(r),u=[];if(i){var o=new i(n);u=Array.from(o)}return u}},{key:"register",value:function(r,n){var i=r.Designer,u=r.Runtime,o=r.Property;(!i||!u||!i.__is_control__||!u.__is_control__)&&Ut("".concat(r," is can't register as a Control"));var a=this.staticControls.findIndex(function(s){return s.Designer.controlType===i.controlType});return a>-1&&(Cr("The ".concat(i.controlType," is repeat register, So it overwrites the one that was registered before.")),this.staticControls.splice(a,1)),this.staticRegisteredTypes.add(i.controlType),this.staticControls.push(r),o.mode=n,this}}]),t}();Kt(Qr,"staticControlsRuntimeRules",new Map),Kt(Qr,"staticControls",Rs),Kt(Qr,"staticRegisteredTypes",new Set(Rs.map(function(t){return t.Designer.controlType}))),Kt(Qr,"staticRegisteredConfigs",new Map);function fr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Be(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var hu=function t(e){fr(this,t);var r,n,i;Be(this,"dataCode",void 0),Be(this,"fieldCode",void 0),Be(this,"fieldType",void 0),Be(this,"aliasCode",void 0),this.dataCode=(r=e==null?void 0:e.dataCode)!==null&&r!==void 0?r:"",this.fieldCode=(n=e==null?void 0:e.fieldCode)!==null&&n!==void 0?n:"",this.fieldType=(i=e==null?void 0:e.fieldType)!==null&&i!==void 0?i:"",this.aliasCode=e==null?void 0:e.aliasCode},DE=function t(e){fr(this,t);var r,n;Be(this,"minWidth",void 0),Be(this,"maxWidth",void 0),Be(this,"flex",void 0),this.minWidth=(r=e==null?void 0:e.minWidth)!==null&&r!==void 0?r:150,this.maxWidth=e==null?void 0:e.maxWidth,this.flex=(n=e==null?void 0:e.flex)!==null&&n!==void 0?n:1},du=function t(e){fr(this,t);var r,n;Be(this,"amount",void 0),Be(this,"currency",void 0),this.amount=(r=e==null?void 0:e.amount)!==null&&r!==void 0?r:"",this.currency=(n=e==null?void 0:e.currency)!==null&&n!==void 0?n:"CNY"},pu=function t(e){fr(this,t);var r,n;Be(this,"min",void 0),Be(this,"max",void 0),this.min=(r=e==null?void 0:e.min)!==null&&r!==void 0?r:"",this.max=(n=e==null?void 0:e.max)!==null&&n!==void 0?n:""},gu=function t(e){fr(this,t);var r,n,i,u,o,a,s,c;Be(this,"country",void 0),Be(this,"countryDisplay",void 0),Be(this,"city",void 0),Be(this,"cityDisplay",void 0),Be(this,"district",void 0),Be(this,"districtDisplay",void 0),Be(this,"province",void 0),Be(this,"provinceDisplay",void 0),this.country=(r=e==null?void 0:e.country)!==null&&r!==void 0?r:"",this.countryDisplay=(n=e==null?void 0:e.countryDisplay)!==null&&n!==void 0?n:"",this.city=(i=e==null?void 0:e.city)!==null&&i!==void 0?i:"",this.cityDisplay=(u=e==null?void 0:e.cityDisplay)!==null&&u!==void 0?u:"",this.district=(o=e==null?void 0:e.district)!==null&&o!==void 0?o:"",this.districtDisplay=(a=e==null?void 0:e.districtDisplay)!==null&&a!==void 0?a:"",this.province=(s=e==null?void 0:e.province)!==null&&s!==void 0?s:"",this.provinceDisplay=(c=e==null?void 0:e.provinceDisplay)!==null&&c!==void 0?c:""},vu=function t(e){fr(this,t);var r,n;Be(this,"result",void 0),Be(this,"unit",void 0),this.result=(r=e==null?void 0:e.result)!==null&&r!==void 0?r:0,this.unit=(n=e==null?void 0:e.unit)!==null&&n!==void 0?n:""},EE=function(t){return t[t.UNKNOWN=0]="UNKNOWN",t[t.READONLY=1]="READONLY",t[t.EDITABLE=2]="EDITABLE",t[t.PRINT=5]="PRINT",t}({}),wE=function t(e){fr(this,t);var r,n,i,u;Be(this,"width",void 0),Be(this,"height",void 0),Be(this,"widthConfig",void 0),Be(this,"heightConfig",void 0),this.width=(r=e==null?void 0:e.width)!==null&&r!==void 0?r:"",this.height=(n=e==null?void 0:e.height)!==null&&n!==void 0?n:"",this.widthConfig=(i=e==null?void 0:e.widthConfig)!==null&&i!==void 0?i:"fill",this.heightConfig=(u=e==null?void 0:e.heightConfig)!==null&&u!==void 0?u:"fill"};function CE(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function AE(t,e,r){return e=Jr(e),_E(t,Du()?Reflect.construct(e,r||[],Jr(t).constructor):e.apply(t,r))}function mu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Mn(t,e,r){return Du()?Mn=Reflect.construct:Mn=function(i,u,o){var a=[null];a.push.apply(a,u);var s=Function.bind.apply(i,a),c=new s;return o&&Zr(c,o.prototype),c},Mn.apply(null,arguments)}function Wt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jr(t){return Jr=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Jr(t)}function bE(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Zr(t,e)}function FE(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function _E(t,e){return e&&(BE(e)==="object"||typeof e=="function")?e:CE(t)}function Zr(t,e){return Zr=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Zr(t,e)}function BE(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function yu(t){var e=typeof Map=="function"?new Map:void 0;return yu=function(n){if(n===null||!FE(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return Mn(n,arguments,Jr(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Zr(i,n)},yu(t)}function Du(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Du=function(){return!!t})()}var Eu=function t(e){mu(this,t),Wt(this,"isHide",{type:"boolean"})},Ls=function(t){bE(e,t);function e(r){return mu(this,e),AE(this,e)}return e}(yu(Array)),zt=function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";mu(this,t);var n,i;Wt(this,"isHide",void 0),Wt(this,"className",void 0),Wt(this,"style",void 0),Wt(this,"caption",void 0),Wt(this,"defaultState",void 0),this.isHide=(n=e==null?void 0:e.isHide)!==null&&n!==void 0?n:!1,this.style=new wE(e==null?void 0:e.style),this.caption=(i=e==null?void 0:e.caption)!==null&&i!==void 0?i:r};Wt(zt,"mode",void 0),Wt(zt,"Rules",Eu),Wt(zt,"RuntimeRules",Ls);function Nt(){return Nt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Nt.apply(this,arguments)}function SE(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function wu(t){return wu=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},wu(t)}function xn(t,e){return xn=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},xn(t,e)}function OE(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function In(t,e,r){return OE()?In=Reflect.construct:In=function(i,u,o){var a=[null];a.push.apply(a,u);var s=Function.bind.apply(i,a),c=new s;return o&&xn(c,o.prototype),c},In.apply(null,arguments)}function ME(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Cu(t){var e=typeof Map=="function"?new Map:void 0;return Cu=function(n){if(n===null||!ME(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return In(n,arguments,wu(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),xn(i,n)},Cu(t)}var xE=/%[sdj%]/g,ks=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(ks=function(e,r){typeof console!="undefined"&&console.warn&&r.every(function(n){return typeof n=="string"})&&console.warn(e,r)});function Au(t){if(!t||!t.length)return null;var e={};return t.forEach(function(r){var n=r.field;e[n]=e[n]||[],e[n].push(r)}),e}function lt(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=1,i=e[0],u=e.length;if(typeof i=="function")return i.apply(null,e.slice(1));if(typeof i=="string"){var o=String(i).replace(xE,function(a){if(a==="%%")return"%";if(n>=u)return a;switch(a){case"%s":return String(e[n++]);case"%d":return Number(e[n++]);case"%j":try{return JSON.stringify(e[n++])}catch(s){return"[Circular]"}break;default:return a}});return o}return i}function IE(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function Re(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||IE(e)&&typeof t=="string"&&!t)}function TE(t,e,r){var n=[],i=0,u=t.length;function o(a){n.push.apply(n,a),i++,i===u&&r(n)}t.forEach(function(a){e(a,o)})}function qs(t,e,r){var n=0,i=t.length;function u(o){if(o&&o.length){r(o);return}var a=n;n=n+1,a<i?e(t[a],u):r([])}u([])}function PE(t){var e=[];return Object.keys(t).forEach(function(r){e.push.apply(e,t[r])}),e}var js=function(t){SE(e,t);function e(r,n){var i;return i=t.call(this,"Async Validation Error")||this,i.errors=r,i.fields=n,i}return e}(Cu(Error));function NE(t,e,r,n){if(e.first){var i=new Promise(function(f,h){var g=function(v){return n(v),v.length?h(new js(v,Au(v))):f()},y=PE(t);qs(y,r,g)});return i.catch(function(f){return f}),i}var u=e.firstFields||[];u===!0&&(u=Object.keys(t));var o=Object.keys(t),a=o.length,s=0,c=[],l=new Promise(function(f,h){var g=function(d){if(c.push.apply(c,d),s++,s===a)return n(c),c.length?h(new js(c,Au(c))):f()};o.length||(n(c),f()),o.forEach(function(y){var d=t[y];u.indexOf(y)!==-1?qs(d,r,g):TE(d,r,g)})});return l.catch(function(f){return f}),l}function Us(t){return function(e){return e&&e.message?(e.field=e.field||t.fullField,e):{message:typeof e=="function"?e():e,field:e.field||t.fullField}}}function Vs(t,e){if(e){for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];typeof n=="object"&&typeof t[r]=="object"?t[r]=Nt(Nt({},t[r]),n):t[r]=n}}return t}function Ws(t,e,r,n,i,u){t.required&&(!r.hasOwnProperty(t.field)||Re(e,u||t.type))&&n.push(lt(i.messages.required,t.fullField))}function $E(t,e,r,n,i){(/^\s+$/.test(e)||e==="")&&n.push(lt(i.messages.whitespace,t.fullField))}var bu={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Xr={integer:function(e){return Xr.number(e)&&parseInt(e,10)===e},float:function(e){return Xr.number(e)&&!Xr.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(r){return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!Xr.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&!!e.match(bu.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(bu.url)},hex:function(e){return typeof e=="string"&&!!e.match(bu.hex)}};function RE(t,e,r,n,i){if(t.required&&e===void 0){Ws(t,e,r,n,i);return}var u=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=t.type;u.indexOf(o)>-1?Xr[o](e)||n.push(lt(i.messages.types[o],t.fullField,t.type)):o&&typeof e!==t.type&&n.push(lt(i.messages.types[o],t.fullField,t.type))}function LE(t,e,r,n,i){var u=typeof t.len=="number",o=typeof t.min=="number",a=typeof t.max=="number",s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=e,l=null,f=typeof e=="number",h=typeof e=="string",g=Array.isArray(e);if(f?l="number":h?l="string":g&&(l="array"),!l)return!1;g&&(c=e.length),h&&(c=e.replace(s,"_").length),u?c!==t.len&&n.push(lt(i.messages[l].len,t.fullField,t.len)):o&&!a&&c<t.min?n.push(lt(i.messages[l].min,t.fullField,t.min)):a&&!o&&c>t.max?n.push(lt(i.messages[l].max,t.fullField,t.max)):o&&a&&(c<t.min||c>t.max)&&n.push(lt(i.messages[l].range,t.fullField,t.min,t.max))}var Ar="enum";function kE(t,e,r,n,i){t[Ar]=Array.isArray(t[Ar])?t[Ar]:[],t[Ar].indexOf(e)===-1&&n.push(lt(i.messages[Ar],t.fullField,t[Ar].join(", ")))}function qE(t,e,r,n,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||n.push(lt(i.messages.pattern.mismatch,t.fullField,e,t.pattern));else if(typeof t.pattern=="string"){var u=new RegExp(t.pattern);u.test(e)||n.push(lt(i.messages.pattern.mismatch,t.fullField,e,t.pattern))}}}var fe={required:Ws,whitespace:$E,type:RE,range:LE,enum:kE,pattern:qE};function jE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e,"string")&&!t.required)return r();fe.required(t,e,n,u,i,"string"),Re(e,"string")||(fe.type(t,e,n,u,i),fe.range(t,e,n,u,i),fe.pattern(t,e,n,u,i),t.whitespace===!0&&fe.whitespace(t,e,n,u,i))}r(u)}function UE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();fe.required(t,e,n,u,i),e!==void 0&&fe.type(t,e,n,u,i)}r(u)}function VE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(e===""&&(e=void 0),Re(e)&&!t.required)return r();fe.required(t,e,n,u,i),e!==void 0&&(fe.type(t,e,n,u,i),fe.range(t,e,n,u,i))}r(u)}function WE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();fe.required(t,e,n,u,i),e!==void 0&&fe.type(t,e,n,u,i)}r(u)}function zE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();fe.required(t,e,n,u,i),Re(e)||fe.type(t,e,n,u,i)}r(u)}function GE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();fe.required(t,e,n,u,i),e!==void 0&&(fe.type(t,e,n,u,i),fe.range(t,e,n,u,i))}r(u)}function HE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();fe.required(t,e,n,u,i),e!==void 0&&(fe.type(t,e,n,u,i),fe.range(t,e,n,u,i))}r(u)}function QE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(e==null&&!t.required)return r();fe.required(t,e,n,u,i,"array"),e!=null&&(fe.type(t,e,n,u,i),fe.range(t,e,n,u,i))}r(u)}function JE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();fe.required(t,e,n,u,i),e!==void 0&&fe.type(t,e,n,u,i)}r(u)}var ZE="enum";function XE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();fe.required(t,e,n,u,i),e!==void 0&&fe[ZE](t,e,n,u,i)}r(u)}function KE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e,"string")&&!t.required)return r();fe.required(t,e,n,u,i),Re(e,"string")||fe.pattern(t,e,n,u,i)}r(u)}function YE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e,"date")&&!t.required)return r();if(fe.required(t,e,n,u,i),!Re(e,"date")){var a;e instanceof Date?a=e:a=new Date(e),fe.type(t,a,n,u,i),a&&fe.range(t,a.getTime(),n,u,i)}}r(u)}function ew(t,e,r,n,i){var u=[],o=Array.isArray(e)?"array":typeof e;fe.required(t,e,n,u,i,o),r(u)}function Fu(t,e,r,n,i){var u=t.type,o=[],a=t.required||!t.required&&n.hasOwnProperty(t.field);if(a){if(Re(e,u)&&!t.required)return r();fe.required(t,e,n,o,i,u),Re(e,u)||fe.type(t,e,n,o,i)}r(o)}function tw(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();fe.required(t,e,n,u,i)}r(u)}var Kr={string:jE,method:UE,number:VE,boolean:WE,regexp:zE,integer:GE,float:HE,array:QE,object:JE,enum:XE,pattern:KE,date:YE,url:Fu,hex:Fu,email:Fu,required:ew,any:tw};function _u(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Bu=_u();function Yt(t){this.rules=null,this._messages=Bu,this.define(t)}Yt.prototype={messages:function(e){return e&&(this._messages=Vs(_u(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if(typeof e!="object"||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var r,n;for(r in e)e.hasOwnProperty(r)&&(n=e[r],this.rules[r]=Array.isArray(n)?n:[n])},validate:function(e,r,n){var i=this;r===void 0&&(r={}),n===void 0&&(n=function(){});var u=e,o=r,a=n;if(typeof o=="function"&&(a=o,o={}),!this.rules||Object.keys(this.rules).length===0)return a&&a(),Promise.resolve();function s(d){var v,p=[],m={};function D(E){if(Array.isArray(E)){var w;p=(w=p).concat.apply(w,E)}else p.push(E)}for(v=0;v<d.length;v++)D(d[v]);p.length?m=Au(p):(p=null,m=null),a(p,m)}if(o.messages){var c=this.messages();c===Bu&&(c=_u()),Vs(c,o.messages),o.messages=c}else o.messages=this.messages();var l,f,h={},g=o.keys||Object.keys(this.rules);g.forEach(function(d){l=i.rules[d],f=u[d],l.forEach(function(v){var p=v;typeof p.transform=="function"&&(u===e&&(u=Nt({},u)),f=u[d]=p.transform(f)),typeof p=="function"?p={validator:p}:p=Nt({},p),p.validator=i.getValidationMethod(p),p.field=d,p.fullField=p.fullField||d,p.type=i.getType(p),p.validator&&(h[d]=h[d]||[],h[d].push({rule:p,value:f,source:u,field:d}))})});var y={};return NE(h,o,function(d,v){var p=d.rule,m=(p.type==="object"||p.type==="array")&&(typeof p.fields=="object"||typeof p.defaultField=="object");m=m&&(p.required||!p.required&&d.value),p.field=d.field;function D(_,O){return Nt(Nt({},O),{},{fullField:p.fullField+"."+_})}function E(_){_===void 0&&(_=[]);var O=_;if(Array.isArray(O)||(O=[O]),!o.suppressWarning&&O.length&&Yt.warning("async-validator:",O),O.length&&p.message!==void 0&&(O=[].concat(p.message)),O=O.map(Us(p)),o.first&&O.length)return y[p.field]=1,v(O);if(!m)v(O);else{if(p.required&&!d.value)return p.message!==void 0?O=[].concat(p.message).map(Us(p)):o.error&&(O=[o.error(p,lt(o.messages.required,p.field))]),v(O);var C={};if(p.defaultField)for(var b in d.value)d.value.hasOwnProperty(b)&&(C[b]=p.defaultField);C=Nt(Nt({},C),d.rule.fields);for(var B in C)if(C.hasOwnProperty(B)){var F=Array.isArray(C[B])?C[B]:[C[B]];C[B]=F.map(D.bind(null,B))}var $=new Yt(C);$.messages(o.messages),d.rule.options&&(d.rule.options.messages=o.messages,d.rule.options.error=o.error),$.validate(d.value,d.rule.options||o,function(X){var K=[];O&&O.length&&K.push.apply(K,O),X&&X.length&&K.push.apply(K,X),v(K.length?K:null)})}}var w;p.asyncValidator?w=p.asyncValidator(p,d.value,E,d.source,o):p.validator&&(w=p.validator(p,d.value,E,d.source,o),w===!0?E():w===!1?E(p.message||p.field+" fails"):w instanceof Array?E(w):w instanceof Error&&E(w.message)),w&&w.then&&w.then(function(){return E()},function(_){return E(_)})},function(d){s(d)})},getType:function(e){if(e.type===void 0&&e.pattern instanceof RegExp&&(e.type="pattern"),typeof e.validator!="function"&&e.type&&!Kr.hasOwnProperty(e.type))throw new Error(lt("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if(typeof e.validator=="function")return e.validator;var r=Object.keys(e),n=r.indexOf("message");return n!==-1&&r.splice(n,1),r.length===1&&r[0]==="required"?Kr.required:Kr[this.getType(e)]||!1}},Yt.register=function(e,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Kr[e]=r},Yt.warning=ks,Yt.messages=Bu,Yt.validators=Kr;var rw={required:se("CMD.aad41751712156995"),maxLength:se("CMD.890d1751712141808"),minLength:se("CMD.bb9b1751712143625"),string:{range:se("CMD.f7131751712147855")}};function nw(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new Yt(t);return r.messages(Object.assign(rw,e)),r}var iw=new Ss;function Su(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function uw(t){if(Array.isArray(t))return t}function ow(t){if(Array.isArray(t))return Su(t)}function zs(t,e,r,n,i,u,o){try{var a=t[u](o),s=a.value}catch(c){r(c);return}a.done?e(s):Promise.resolve(s).then(n,i)}function Gs(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var u=t.apply(e,r);function o(s){zs(u,n,i,o,a,"next",s)}function a(s){zs(u,n,i,o,a,"throw",s)}o(void 0)})}}function sw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Hs(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function aw(t,e,r){return e&&Hs(t.prototype,e),r&&Hs(t,r),t}function me(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qs(t,e){return e!=null&&typeof Symbol!="undefined"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function Js(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function lw(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function cw(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Zs(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){me(t,i,r[i])})}return t}function fw(t){return uw(t)||Js(t)||Xs(t)||lw()}function Ou(t){return ow(t)||Js(t)||Xs(t)||cw()}function hw(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function Xs(t,e){if(!!t){if(typeof t=="string")return Su(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Su(t,e)}}function Ks(t,e){var r,n,i,u={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype),a=Object.defineProperty;return a(o,"next",{value:s(0)}),a(o,"throw",{value:s(1)}),a(o,"return",{value:s(2)}),typeof Symbol=="function"&&a(o,Symbol.iterator,{value:function(){return this}}),o;function s(l){return function(f){return c([l,f])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(u=0)),u;)try{if(r=1,n&&(i=l[0]&2?n.return:l[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,l[1])).done)return i;switch(n=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return u.label++,{value:l[1],done:!1};case 5:u.label++,n=l[1],l=[0];continue;case 7:l=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){u=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){u.label=l[1];break}if(l[0]===6&&u.label<i[1]){u.label=i[1],i=l;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(l);break}i[2]&&u.ops.pop(),u.trys.pop();continue}l=e.call(t,u)}catch(f){l=[6,f],n=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}var ze=function(){function e(r){var n=this;sw(this,e);var i,u,o,a;me(this,"id",void 0),me(this,"name",void 0),me(this,"icon",void 0),me(this,"type",void 0),me(this,"controlType",void 0),me(this,"props",void 0),me(this,"setting",[]),me(this,"fieldType",void 0),me(this,"eventKeys",[]),me(this,"customEvents",[]),me(this,"parent",null),me(this,"slots",void 0),me(this,"slotPosition",void 0),me(this,"updateSetting",ea),me(this,"removeSetting",Ys),this._callControlHooks("preInstance",r);var s=Qs(this,e)?this.constructor:void 0,c=s.controlName,l=s.controlIcon,f=s.controlType,h=s.controlFieldType,g=s.controlEventKeys,y=s.controlCustomEvents,d=s.name,v=s.setting,p=s.slots,m=s.slotPosition;c&&l&&f||ys("The ".concat(d," controlName,controlIcon,controlType is not define")),this.id=(i=r==null?void 0:r.id)!==null&&i!==void 0?i:Fn(10),this.name=c,this.icon=l,this.type=(u=r==null?void 0:r.type)!==null&&u!==void 0?u:f,this.props=new zt(r==null?void 0:r.props,(Qs(this,e)?this.constructor:void 0).controlName),this.controlType=(o=r==null?void 0:r.controlType)!==null&&o!==void 0?o:"base",this.setting=we(v),this.fieldType=(a=r==null?void 0:r.fieldType)!==null&&a!==void 0?a:h,this.eventKeys=we(g),this.customEvents=we(y),this.slots=we(p),this.slotPosition=we(m),Promise.resolve().then(function(){n._callControlHooks("postInstance",r)})}return aw(e,[{key:"rules",get:function(){var n=this.props.constructor.Rules;return n?new n(this.props):{}}},{key:"_callControlHooks",value:function(){for(var n=arguments.length,i=new Array(n),u=0;u<n;u++)i[u]=arguments[u];var o,a=fw(i),s=a[0],c=a.slice(1);return(o=iw).emit.apply(o,[s,this].concat(Ou(c)))}},{key:"preUpdate",value:function(n,i){this._callControlHooks("preUpdateProps",n,i)}},{key:"postUpdate",value:function(n,i){this._callControlHooks("postUpdateProps",n,i)}},{key:"updateProps",value:function(n,i){this.preUpdate(n,i),iu(this.props,n,i),this.postUpdate(n,i)}},{key:"preValidate",value:function(){return Gs(function(){var n,i,u;return Ks(this,function(o){switch(o.label){case 0:return n=Zs({},this.rules),[4,this._callControlHooks("preValidate",n)];case 1:return i=o.sent(),u=i[i.length-1],[2,u===!1?void 0:u]}})}).call(this)}},{key:"validate",value:function(n,i){return Gs(function(){var u,o,a,s;return Ks(this,function(c){switch(c.label){case 0:return[4,this.preValidate()];case 1:u=c.sent(),o=u!==void 0?u:Zs({},this.rules),Array.isArray(i)&&i.forEach(function(l){o.hasOwnProperty(l)&&delete o[l]}),a=nw(o,n),c.label=2;case 2:return c.trys.push([2,4,,5]),[4,a.validate(this.props)];case 3:return c.sent(),[2,!0];case 4:throw s=c.sent(),s.control||(s.control=this),s;case 5:return[2]}})}).call(this)}},{key:"toDataBindModel",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=this.fieldType,u=this.id,o=this.type,a=this.props,s=a.dataBind,c=a.datasourceBind,l=a.optionConfig,f=a.caption,h=a.required,g=a.maxLength,y=a.options,d=a.encrypted,v=a.encryptedMode;if(!(!i&&!s&&!c)){var p={parentId:n,fieldType:i,controlId:u,caption:f,type:o,props:{}};switch(s&&(p.dataBind=s),l){case"datasource":case void 0:c&&(p.datasourceBind=c);break;case"custom":p.props.options=y;break}return h!==void 0&&(p.required=h),g!==void 0&&(p.maxLength=g),d!==void 0&&(p.encrypted=d),v!==void 0&&(p.encryptedMode=v),p}}},{key:"preToSchema",value:function(){this._callControlHooks("preToSchema",this)}},{key:"toSchema",value:function(){return this.preToSchema(),{id:this.id,type:this.type,props:we(this.props),fieldType:this.fieldType,controlType:this.controlType}}}],[{key:"updateBasicControl",value:function(n,i){if(n==="setting"){if(i.add){var u;(u=this.setting).push.apply(u,Ou(i.add))}i.remove&&this.removeSettingItem(i.remove),i.update}}}]),e}();me(ze,"mode","Designer"),me(ze,"slots",void 0),me(ze,"slotPosition",void 0),me(ze,"controlName",se("CMD.7baf1751712168384")),me(ze,"controlIcon","icon"),me(ze,"controlType","control"),me(ze,"controlFieldType",void 0),me(ze,"controlEventKeys",[]),me(ze,"controlCustomEvents",[]),me(ze,"setting",[]),me(ze,"__is_control__",!0),me(ze,"removeSettingItem",Ys),me(ze,"updateSettingItem",ea);function Ys(t){var e=this,r=Array.isArray(t)?t:[t];r.forEach(function(n){var i,u=typeof n!="string",o=(i=e.setting)===null||i===void 0?void 0:i.findIndex(function(c){return c.key===(u?n.key:n)});if(o!==-1){var a,s;u?e.setting[o].showItems=(a=e.setting[o].showItems)===null||a===void 0?void 0:a.filter(function(c){return!n.hideItems.includes(c)}):e.setting.splice(o,1),u&&!(!((s=e.setting[o].showItems)===null||s===void 0)&&s.length)&&e.setting.splice(o,1)}})}function ea(t,e){var r=this,n=typeof t=="string"?[t]:t;n.forEach(function(i){var u=r.setting.find(function(c){return c.key===i});if(u){if(typeof e=="boolean")u.visible=e;else if((typeof e=="undefined"?"undefined":hw(e))==="object"){var o,a=(o=e.type)!==null&&o!==void 0?o:"replace";if(a==="replace")u.showItems=e.showItems;else{var s;(s=u.showItems).push.apply(s,Ou(e.showItems))}}}})}function dw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ta(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function pw(t,e,r){return e&&ta(t.prototype,e),r&&ta(t,r),t}function ct(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function gw(t,e){return e!=null&&typeof Symbol!="undefined"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}var Yr=function(){function e(r){dw(this,e);var n,i,u,o,a;ct(this,"id",void 0),ct(this,"type",void 0),ct(this,"controlType",void 0),ct(this,"props",void 0),ct(this,"fieldType",void 0),ct(this,"customEvents",[]),ct(this,"pageStatus",void 0),ct(this,"parent",null);var s=gw(this,e)?this.constructor:void 0,c=s.controlType,l=s.controlFieldType,f=s.name,h=s.controlCustomEvents;c||ys("The ".concat(f," controlType is not define")),this.id=(n=r==null?void 0:r.id)!==null&&n!==void 0?n:Fn(10),this.type=(i=r==null?void 0:r.type)!==null&&i!==void 0?i:c,this.props=new zt(r==null?void 0:r.props),this.customEvents=h,this.controlType=(u=r==null?void 0:r.controlType)!==null&&u!==void 0?u:"base",this.fieldType=(o=r==null?void 0:r.fieldType)!==null&&o!==void 0?o:l,this.pageStatus=(a=r==null?void 0:r.pageStatus)!==null&&a!==void 0?a:EE.UNKNOWN}return pw(e,[{key:"rules",get:function(){var n=this.props.constructor.RuntimeRules;if(n){var i=new n(this.props);return Array.from(i)}return[]}}]),e}();ct(Yr,"mode","Runtime"),ct(Yr,"controlType","control"),ct(Yr,"controlFieldType",void 0),ct(Yr,"__is_control__",!0),ct(Yr,"controlCustomEvents",[]);function ft(t){return(t==null?void 0:t.dataCode)!==void 0&&(t==null?void 0:t.fieldCode)!==void 0}function vw(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Mu(t,e,r){return e=Tn(e),mw(t,ra()?Reflect.construct(e,r||[],Tn(t).constructor):e.apply(t,r))}function xu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Me(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Tn(t){return Tn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Tn(t)}function Iu(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Tu(t,e)}function mw(t,e){return e&&(yw(e)==="object"||typeof e=="function")?e:vw(t)}function Tu(t,e){return Tu=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Tu(t,e)}function yw(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function ra(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ra=function(){return!!t})()}var Dw=function(t){Iu(e,t);function e(r){xu(this,e);var n;n=Mu(this,e,[r]),Me(n,"dataBind",{}),Me(n,"caption",{type:"string",required:!0,message:se("CMD.pleaseEnterCaption",null,"\u8BF7\u8F93\u5165\u6807\u9898")}),Me(n,"isHideCaption",{type:"boolean"}),Me(n,"labelPosition",{type:"enum",enum:["top","left"]}),Me(n,"defaultState",{type:"enum",enum:["default","readonly"]}),Me(n,"required",{type:"boolean"}),Me(n,"captionTip",{type:"string",required:!1,message:se("CMD.pleaseEnterCaptionTip",null,"\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED")});var i={fieldCode:{type:"string",required:!0,message:se("CMD.pleaseEnterFieldCode",null,"\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879")},dataCode:{type:"string",required:!0,message:se("CMD.pleaseEnterFieldCode",null,"\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879")}};if(ft(r.dataBind))n.dataBind={type:"object",required:!0,fields:we(i),message:se("CMD.pleaseEnterFieldCode",null,"\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879")};else{var u={type:"object",required:!0,fields:{},message:se("CMD.pleaseEnterFieldCode",null,"\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879")};Object.keys(r.dataBind).forEach(function(o){u.fields[o]={type:"object",required:!0,fields:we(i),message:se("CMD.pleaseEnterFieldCode",null,"\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879")}}),n.dataBind=u}return r.isShowCaptionTip&&(n.captionTip.required=!0),n}return e}(Eu),Ew=function(t){Iu(e,t);function e(r){xu(this,e);var n;n=Mu(this,e,[r]);var i=r.isHide?!1:r.required;return i&&n.push({type:"string",required:i,message:r.requiredMessage!==""?r.requiredMessage:se("CMD.runtimeRequired",{caption:r.caption},"{caption}\u5FC5\u586B")}),n}return e}(Ls),Pu=function(t){Iu(e,t);function e(r){xu(this,e);var n,i,u,o,a,s,c,l,f,h,g,y,d,v,p;return n=Mu(this,e,[r]),Me(n,"caption",void 0),Me(n,"captionSize",void 0),Me(n,"captionColor",void 0),Me(n,"isCaptionItalic",void 0),Me(n,"captionFontWeight",void 0),Me(n,"isHideCaption",void 0),Me(n,"isShowCaptionTip",void 0),Me(n,"captionTip",void 0),Me(n,"labelPosition",void 0),Me(n,"dataBind",void 0),Me(n,"defaultValue",void 0),Me(n,"placeholder",void 0),Me(n,"defaultState",void 0),Me(n,"required",void 0),Me(n,"requiredMessage",void 0),n.caption=(i=r==null?void 0:r.caption)!==null&&i!==void 0?i:"",n.captionSize=(u=r==null?void 0:r.captionSize)!==null&&u!==void 0?u:"",n.captionColor=(o=r==null?void 0:r.captionColor)!==null&&o!==void 0?o:"",n.isCaptionItalic=(a=r==null?void 0:r.isCaptionItalic)!==null&&a!==void 0?a:!1,n.captionFontWeight=(s=r==null?void 0:r.captionFontWeight)!==null&&s!==void 0?s:"normal",n.isHideCaption=(c=r==null?void 0:r.isHideCaption)!==null&&c!==void 0?c:!1,n.isShowCaptionTip=(l=r==null?void 0:r.isShowCaptionTip)!==null&&l!==void 0?l:!1,n.captionTip=(f=r==null?void 0:r.captionTip)!==null&&f!==void 0?f:"",n.defaultState=(h=r==null?void 0:r.defaultState)!==null&&h!==void 0?h:"default",n.labelPosition=(g=r==null?void 0:r.labelPosition)!==null&&g!==void 0?g:"top",n.placeholder=(y=r==null?void 0:r.placeholder)!==null&&y!==void 0?y:"",n.required=(d=r==null?void 0:r.required)!==null&&d!==void 0?d:!1,n.requiredMessage=(v=r==null?void 0:r.requiredMessage)!==null&&v!==void 0?v:"",n.dataBind=new hu(r==null?void 0:r.dataBind),n.defaultValue=(p=r==null?void 0:r.defaultValue)!==null&&p!==void 0?p:"",n}return e}(zt);Me(Pu,"Rules",Dw),Me(Pu,"RuntimeRules",Ew);function ww(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Cw(t,e,r){return e=Nn(e),Fw(t,na()?Reflect.construct(e,r||[],Nn(t).constructor):e.apply(t,r))}function Aw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Pn(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Nn(t){return Nn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Nn(t)}function bw(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Nu(t,e)}function Fw(t,e){return e&&(_w(e)==="object"||typeof e=="function")?e:ww(t)}function Nu(t,e){return Nu=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Nu(t,e)}function _w(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function na(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(na=function(){return!!t})()}var ia=function(t){bw(e,t);function e(r){Aw(this,e);var n;return n=Cw(this,e,[r]),Pn(n,"controlType","form"),Pn(n,"props",void 0),n.props=new Pu(r==null?void 0:r.props),n}return e}(ze);Pn(ia,"controlEventKeys",["on_change","on_focus","on_blur"]),Pn(ia,"controlCustomAttributes",void 0);function Bw(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Sw(t,e,r){return e=$n(e),xw(t,ua()?Reflect.construct(e,r||[],$n(t).constructor):e.apply(t,r))}function Ow(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $n(t){return $n=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},$n(t)}function Mw(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$u(t,e)}function xw(t,e){return e&&(Iw(e)==="object"||typeof e=="function")?e:Bw(t)}function $u(t,e){return $u=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},$u(t,e)}function Iw(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function ua(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ua=function(){return!!t})()}var Tw=function(t){Mw(e,t);function e(r){return Ow(this,e),Sw(this,e,[r])}return e}(zt);function Ru(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Pw(t){if(Array.isArray(t))return Ru(t)}function Nw(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function oa(t,e,r,n,i,u,o){try{var a=t[u](o),s=a.value}catch(c){r(c);return}a.done?e(s):Promise.resolve(s).then(n,i)}function $w(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var u=t.apply(e,r);function o(s){oa(u,n,i,o,a,"next",s)}function a(s){oa(u,n,i,o,a,"throw",s)}o(void 0)})}}function Rw(t,e,r){return e=tr(e),Hw(t,la()?Reflect.construct(e,r||[],tr(t).constructor):e.apply(t,r))}function Lw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sa(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function kw(t,e,r){return e&&sa(t.prototype,e),r&&sa(t,r),t}function er(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function br(t,e,r){return typeof Reflect!="undefined"&&Reflect.get?br=Reflect.get:br=function(i,u,o){var a=Qw(i,u);if(!!a){var s=Object.getOwnPropertyDescriptor(a,u);return s.get?s.get.call(o||i):s.value}},br(t,e,r||t)}function tr(t){return tr=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},tr(t)}function qw(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Lu(t,e)}function jw(t,e){return e!=null&&typeof Symbol!="undefined"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function Uw(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Vw(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ww(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){er(t,i,r[i])})}return t}function zw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Gw(t,e){return e=e!=null?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):zw(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}function Hw(t,e){return e&&(Jw(e)==="object"||typeof e=="function")?e:Nw(t)}function Lu(t,e){return Lu=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Lu(t,e)}function Qw(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=tr(t),t!==null););return t}function aa(t){return Pw(t)||Uw(t)||Zw(t)||Vw()}function Jw(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function Zw(t,e){if(!!t){if(typeof t=="string")return Ru(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ru(t,e)}}function la(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(la=function(){return!!t})()}function Xw(t,e){var r,n,i,u={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype),a=Object.defineProperty;return a(o,"next",{value:s(0)}),a(o,"throw",{value:s(1)}),a(o,"return",{value:s(2)}),typeof Symbol=="function"&&a(o,Symbol.iterator,{value:function(){return this}}),o;function s(l){return function(f){return c([l,f])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(u=0)),u;)try{if(r=1,n&&(i=l[0]&2?n.return:l[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,l[1])).done)return i;switch(n=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return u.label++,{value:l[1],done:!1};case 5:u.label++,n=l[1],l=[0];continue;case 7:l=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){u=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){u.label=l[1];break}if(l[0]===6&&u.label<i[1]){u.label=i[1],i=l;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(l);break}i[2]&&u.ops.pop(),u.trys.pop();continue}l=e.call(t,u)}catch(f){l=[6,f],n=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}var Kw=1e4,ca=function(e){qw(r,e);function r(n){Lw(this,r);var i;i=Rw(this,r,[n]),er(i,"controlType","layout"),er(i,"children",void 0),er(i,"excludes",void 0),er(i,"childrenMaxLength",void 0),er(i,"props",void 0);var u=jw(this,r)?this.constructor:void 0,o=u.excludes,a=u.childrenMaxLength;return i.props=new Tw(n==null?void 0:n.props),fu(i,"children",n==null?void 0:n.children,void 0,"Designer"),i.excludes=we(o),i.childrenMaxLength=a,i}return kw(r,[{key:"judgeExcludesChildren",value:function(i){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(i)}},{key:"judgeJoinChildren",value:function(i){var u=this.judgeExcludesChildren(i);return u&&this.childrenMaxLength>this.children.length}},{key:"validate",value:function(i,u){var o=this,a=this,s=function(){return br(tr(r.prototype),"validate",o)};return $w(function(){return Xw(this,function(c){switch(c.label){case 0:return[4,s().call(a,i,u)];case 1:return c.sent(),[4,Promise.all(this.children.map(function(l){return l.validate(i,u)}))];case 2:return c.sent(),[2,!0]}})}).call(this)}},{key:"toDataBindModel",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,u=br(tr(r.prototype),"toDataBindModel",this).call(this),o=u?[u]:[];return this.children.reduce(function(a,s){var c=s.toDataBindModel(i);if(Array.isArray(c)){var l=c.filter(function(f){return!!f});return aa(a).concat(aa(l))}return c&&a.push(c),a},o)}},{key:"toSchema",value:function(){var i=br(tr(r.prototype),"toSchema",this).call(this),u=this.children.map(function(o){var a=o.toSchema();return a});return Gw(Ww({},i),{children:u})}}]),r}(ze);er(ca,"excludes",!1),er(ca,"childrenMaxLength",Kw);function Yw(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function eC(t,e,r){return e=Rn(e),nC(t,fa()?Reflect.construct(e,r||[],Rn(t).constructor):e.apply(t,r))}function tC(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fr(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Rn(t){return Rn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Rn(t)}function rC(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ku(t,e)}function nC(t,e){return e&&(iC(e)==="object"||typeof e=="function")?e:Yw(t)}function ku(t,e){return ku=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ku(t,e)}function iC(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function fa(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(fa=function(){return!!t})()}var uC=function(t){rC(e,t);function e(r,n,i){tC(this,e);var u,o,a,s,c;return u=eC(this,e,[n]),Fr(u,"headers",void 0),Fr(u,"footers",void 0),Fr(u,"pageIndex",void 0),Fr(u,"pageSize",void 0),Fr(u,"pageSizeOptions",void 0),Fr(u,"totalCount",void 0),fu(u,"headers",n==null?void 0:n.headers,r,i),fu(u,"footers",n==null?void 0:n.footers,r),u.pageIndex=(o=n==null?void 0:n.pageIndex)!==null&&o!==void 0?o:1,u.pageSize=(a=n==null?void 0:n.pageSize)!==null&&a!==void 0?a:20,u.pageSizeOptions=(s=n==null?void 0:n.pageSizeOptions)!==null&&s!==void 0?s:[20],u.totalCount=(c=n==null?void 0:n.totalCount)!==null&&c!==void 0?c:0,u}return e}(zt);function qu(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function oC(t){if(Array.isArray(t))return qu(t)}function sC(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ha(t,e,r,n,i,u,o){try{var a=t[u](o),s=a.value}catch(c){r(c);return}a.done?e(s):Promise.resolve(s).then(n,i)}function aC(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var u=t.apply(e,r);function o(s){ha(u,n,i,o,a,"next",s)}function a(s){ha(u,n,i,o,a,"throw",s)}o(void 0)})}}function lC(t,e,r){return e=rr(e),vC(t,ma()?Reflect.construct(e,r||[],rr(t).constructor):e.apply(t,r))}function cC(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function da(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function fC(t,e,r){return e&&da(t.prototype,e),r&&da(t,r),t}function Ln(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _r(t,e,r){return typeof Reflect!="undefined"&&Reflect.get?_r=Reflect.get:_r=function(i,u,o){var a=mC(i,u);if(!!a){var s=Object.getOwnPropertyDescriptor(a,u);return s.get?s.get.call(o||i):s.value}},_r(t,e,r||t)}function rr(t){return rr=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},rr(t)}function hC(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ju(t,e)}function dC(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function pC(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function pa(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Ln(t,i,r[i])})}return t}function gC(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ga(t,e){return e=e!=null?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):gC(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}function vC(t,e){return e&&(yC(e)==="object"||typeof e=="function")?e:sC(t)}function ju(t,e){return ju=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ju(t,e)}function mC(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=rr(t),t!==null););return t}function va(t){return oC(t)||dC(t)||DC(t)||pC()}function yC(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function DC(t,e){if(!!t){if(typeof t=="string")return qu(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qu(t,e)}}function ma(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ma=function(){return!!t})()}function EC(t,e){var r,n,i,u={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype),a=Object.defineProperty;return a(o,"next",{value:s(0)}),a(o,"throw",{value:s(1)}),a(o,"return",{value:s(2)}),typeof Symbol=="function"&&a(o,Symbol.iterator,{value:function(){return this}}),o;function s(l){return function(f){return c([l,f])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(u=0)),u;)try{if(r=1,n&&(i=l[0]&2?n.return:l[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,l[1])).done)return i;switch(n=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return u.label++,{value:l[1],done:!1};case 5:u.label++,n=l[1],l=[0];continue;case 7:l=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){u=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){u.label=l[1];break}if(l[0]===6&&u.label<i[1]){u.label=i[1],i=l;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(l);break}i[2]&&u.ops.pop(),u.trys.pop();continue}l=e.call(t,u)}catch(f){l=[6,f],n=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}var wC=function(t){hC(e,t);function e(r){cC(this,e);var n;return n=lC(this,e,[r]),Ln(n,"controlType","list"),Ln(n,"props",void 0),n.props=new uC(n,r==null?void 0:r.props,"Designer"),n}return fC(e,[{key:"validate",value:function(n,i){var u=this,o=this,a=function(){return _r(rr(e.prototype),"validate",u)};return aC(function(){return EC(this,function(s){switch(s.label){case 0:return[4,a().call(o,n)];case 1:return s.sent(),[4,Promise.all(this.props.headers.map(function(c){return c.validate(n,i)}))];case 2:return s.sent(),[2,!0]}})}).call(this)}},{key:"toDataBindModel",value:function(){var n=_r(rr(e.prototype),"toDataBindModel",this).call(this),i=n?[n]:[],u=this.id;return this.props.headers.reduce(function(o,a){var s=a.toDataBindModel(u);if(Array.isArray(s)){var c=s.filter(function(l){return!!l});return va(o).concat(va(c))}return s&&o.push(s),o},i)}},{key:"toSchema",value:function(){var n=_r(rr(e.prototype),"toSchema",this).call(this),i=this.props.headers.map(function(u){return u.toSchema()});return ga(pa({},n),{props:ga(pa({},this.props),{headers:i})})}}]),e}(ze);Ln(wC,"controlFieldType",je.LIST);function CC(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ya(t,e,r){return e=kn(e),AC(t,wa()?Reflect.construct(e,r||[],kn(t).constructor):e.apply(t,r))}function Da(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function kn(t){return kn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},kn(t)}function Ea(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Uu(t,e)}function AC(t,e){return e&&(bC(e)==="object"||typeof e=="function")?e:CC(t)}function Uu(t,e){return Uu=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Uu(t,e)}function bC(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function wa(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(wa=function(){return!!t})()}var FC=function(t){Ea(e,t);function e(r){Da(this,e);var n;return n=ya(this,e,[r]),rt(n,"caption",{type:"string",required:!0,message:se("CMD.pleaseEnterCaption",null,"\u8BF7\u8F93\u5165\u6807\u9898")}),rt(n,"width",{type:"number",required:!1,message:se("CMD.pleaseEnterColumnWidth",null,"\u8BF7\u8F93\u5165\u5217\u5BBD")}),n.width.required=r.widthType==="px",n}return e}(Eu),_C=function(t){Ea(e,t);function e(r){Da(this,e);var n,i,u,o,a,s;return n=ya(this,e,[r]),rt(n,"widthType",void 0),rt(n,"width",void 0),rt(n,"caption",void 0),rt(n,"dataBind",void 0),rt(n,"autoWidth",void 0),rt(n,"fixed",void 0),rt(n,"sort",void 0),rt(n,"align",void 0),rt(n,"colSpan",void 0),rt(n,"autoHeight",void 0),rt(n,"children",void 0),n.width=(i=r==null?void 0:r.width)!==null&&i!==void 0?i:150,n.widthType=(r==null?void 0:r.widthType)||"auto",n.caption=(u=r==null?void 0:r.caption)!==null&&u!==void 0?u:"",n.fixed=(o=r==null?void 0:r.fixed)!==null&&o!==void 0?o:"none",n.autoWidth=new DE(r==null?void 0:r.autoWidth),n.dataBind=new hu(r==null?void 0:r.dataBind),n.sort=(a=r==null?void 0:r.sort)!==null&&a!==void 0?a:!0,n.align=r==null?void 0:r.align,n.colSpan=r==null?void 0:r.colSpan,n.autoHeight=(s=r==null?void 0:r.autoHeight)!==null&&s!==void 0?s:!1,n}return e}(zt);rt(_C,"Rules",FC);function qn(t){return t.controlType===de.LAYOUT||t.controlType===de.WRAP||t.controlType===de.LIST||t.controlType===de.SEARCH||t.controlType===de.COLUMN&&t.type!==Te.OPERATION_COLUMN}function hr(t,e){Array.isArray(t)&&t.map(r=>{r.controlType===de.LIST?e(r,[]):qn(r)?hr(r==null?void 0:r.children,e):r.controlType===de.FORM&&e(r)})}function dr(t,e){Array.isArray(t)&&t.map(r=>{r.type===Te.DATA_VIEW||r.type===Te.SIMPLE_SEARCH?e(r):qn(r)&&dr(r==null?void 0:r.children,e)})}let Ca=0;function en(t=""){const e=Date.now(),r=Math.floor(Math.random()*1e9);return Ca++,t+"_"+r+Ca+String(e)}class Ke extends Qr{constructor(e){super("Runtime"),this._flatInstances=[],this._instanceMap={},this._controlParentIdMap={};const{schema:r}=e;this._schema=r,this._instance=this.createControl(r,e.beforeCreateInstance),this.getFlatInstances()}getFlatInstances(){const e=[],r={},n={};return Vu(this._instance,"",(i,u)=>{var o;u&&(n[i.id]=u),r[i.id]||(r[i.id]=[]),!(i.type==="subtable-column"&&r[i.id].length>0)&&(e.push(i),!(((o=i.parent)==null?void 0:o.type)===Te.SUBTABLE_COLUMN&&i.parent.parent===void 0)&&r[i.id].push(i))}),this._flatInstances=e,this._instanceMap=r,this._controlParentIdMap=n,this._flatInstances}get schema(){return this._schema}get instance(){return this._instance}get flatInstances(){return this._flatInstances}get instanceMap(){return this._instanceMap}get allRules(){let e={},r={},n={};return dr(this._instance,i=>{let u=Ke.staticGetRules(i.type,i.props);r[i.id]=we(u[0]),e[i.id]=we(u[0]),n[i.id]=we(u[0]),hr(i.children,o=>{(o.controlType===de.FORM||o.controlType===de.LIST)&&(Aa(r[i.id].fields,o,!0),_a(e[i.id].fields,o,!0),ba(n[i.id].fields,o,!0))})}),{rules:this.rules,antdRules:this.antdRules,fieldCodeRules:this.fieldCodeRules,defaultAntdRules:e,defaultRule:r,defaultFieldRules:n}}get rules(){let e={};return dr(this._instance,r=>{let n=Ke.staticGetRules(r.type,r.props);e[r.id]=n[0],hr(r.children,i=>{(i.controlType===de.FORM||i.controlType===de.LIST)&&Aa(e[r.id].fields,i)})}),e}get fieldCodeRules(){let e={};return dr(this._instance,r=>{let n=Ke.staticGetRules(r.type,r.props);e[r.id]=n[0],hr(r.children,i=>{(i.controlType===de.FORM||i.controlType===de.LIST)&&ba(e[r.id].fields,i)})}),e}get antdRules(){let e={};return dr(this._instance,r=>{let n=Ke.staticGetRules(r.type,r.props);e[r.id]=n[0],hr(r.children,i=>{(i.controlType===de.FORM||i.controlType===de.LIST)&&_a(e[r.id].fields,i)})}),e}}function Vu(t,e,r){(Array.isArray(t)?t:[t]).map(i=>{if(r(i,e),qn(i)){const u=i;u.children||(u.children=[]),Vu(u.children,u.id,r)}BC(i,"headers")&&Vu(i.props.headers,i.id,r)})}function BC(t,e){return e in t.props&&cr(t.props[e])}function jn(t){return t.props.isHide?!0:t.parent===null||t.parent===void 0?!1:jn(t.parent)}function Aa(t,e,r=!1){if(jn(e))return;let n=Ke.staticGetRules(e.type,e.props);if(e.controlType===de.FORM)t[e.id]=n;else if(e.type===Te.SUBTABLE){t[e.id]=n;const i={type:"array",fields:{}};(r===!0?[{children:e.props.headers}]:e.children).forEach((u,o)=>{Vt(u.children,a=>{if(i.fields){i.fields[o]||(i.fields[o]={type:"object",required:!0,fields:{}});let s=Ke.staticGetRules(a.type,a.props);i.fields[o].fields[a.id]=s}})}),t[e.id].push(i)}}function ba(t,e,r=!1){var i,u,o,a,s,c,l;if(jn(e))return;let n=Ke.staticGetRules(e.type,e.props);if(e.controlType===de.FORM)if(ft(e.props.dataBind))((i=e.props.dataBind)==null?void 0:i.fieldCode)!=""&&(t[(u=e.props.dataBind)==null?void 0:u.fieldCode]=n);else for(const f in e.props.dataBind)((o=e.props.dataBind[f])==null?void 0:o.fieldCode)!=""&&(t[(a=e.props.dataBind[f])==null?void 0:a.fieldCode]=((s=Fa(n))==null?void 0:s[f])||[]);else if(e.type===Te.SUBTABLE){t[(c=e.props.datasourceBind)==null?void 0:c.dataCode]=n;const f={type:"array",fields:{}};(r===!0?[{children:e.props.headers}]:e.children).forEach((h,g)=>{Vt(h.children,y=>{var d,v,p,m;if(f.fields){f.fields[g]||(f.fields[g]={type:"object",required:!0,fields:{}});let D=Ke.staticGetRules(y.type,y.props);if(ft(y.props.dataBind))((p=y.props.dataBind)==null?void 0:p.fieldCode)!=""&&(f.fields[g].fields[(m=y.props.dataBind)==null?void 0:m.fieldCode]=D);else for(const E in y.props.dataBind)((d=y.props.dataBind[E])==null?void 0:d.fieldCode)!=""&&(f.fields[g].fields[y.props.dataBind[E].fieldCode]=((v=Fa(D))==null?void 0:v[E])||[])}})}),t[(l=e.props.datasourceBind)==null?void 0:l.dataCode].push(f)}}function Fa(t){let e={};return t.map(r=>{r.fields&&(e=r)}),e==null?void 0:e.fields}function _a(t,e,r=!1){if(jn(e))return;let n=Ke.staticGetRules(e.type,e.props);e.controlType===de.FORM?t[e.id]=n:e.type===Te.SUBTABLE&&e.children.length&&(t[e.id]=[],(r===!0?[{children:e.props.headers}]:e.children).forEach(i=>{let u={};Vt(i.children,o=>{let a=Ke.staticGetRules(o.type,o.props);u[o.id]=a}),t[e.id].push(u)}))}class SC{constructor(e){const{state:r,emptyState:n,databindMapping:i,controlidMapping:u,defaultState:o,subtableHeadersControlIdMapping:a}=OC(e.instance);this.emptyState=n,this.state=r,this.dataBindMapping=i,this.controlIdMapping=u,this.defaultState=o,this.subtableHeadersControlIdMapping=a}setState(e,r,n){const i=this.controlIdMapping[e],u=we(r);i!==void 0?(i.children&&r.forEach(o=>{o.uid||Object.assign(o,{uid:"new:"+en("uid")})}),this.state[i.dataView][e]=u):n!==void 0?Object.keys(this.controlIdMapping).map(o=>{const a=this.controlIdMapping[o].dataView,s=this.controlIdMapping[o].children;s!==void 0&&Object.keys(s).map(c=>{c===e&&this.state[a][o][n]&&(this.state[a][o][n][e]=u)})}):this.state[e]=u}getState(e,r){var i;if(this.state[e]!==void 0)return this.state[e];{const u=this.controlIdMapping[e];if(u!==void 0){const o=this.state[u.dataView][e];return r!==void 0&&Object.keys((i=u==null?void 0:u.children)!=null?i:{}).length>0?o[r]:o}else if(r!==void 0){let o;return Object.keys(this.controlIdMapping).map(a=>{const s=this.controlIdMapping[a].dataView,c=this.controlIdMapping[a].children;c!==void 0&&Object.keys(c).map(l=>{var f;l===e&&(o=(f=this.state[s][a][r])==null?void 0:f[e])})}),o}else{let o=[];return Object.keys(this.controlIdMapping).map(a=>{const s=this.controlIdMapping[a].dataView,c=this.controlIdMapping[a].children;c!==void 0&&Object.keys(c).map(l=>{l===e&&this.state[s][a].map(f=>{o.push(f[e])})})}),o}}}getEmptyState(e){if(this.emptyState[e]!==void 0)return this.emptyState[e];{const n=this.controlIdMapping[e];if(n!==void 0){const i=this.emptyState[n.dataView][e];return"children"in n&&Object.assign(i,{uid:"new:"+en("uid")}),i}else{let i;return Object.keys(this.controlIdMapping).map(u=>{const o=this.controlIdMapping[u].dataView,a=this.controlIdMapping[u].children;a!==void 0&&Object.keys(a).map(s=>{s===e&&(i=this.emptyState[o][u][e])})}),i}}}getDataBind(e){let r=this.controlIdMapping[e];if(r)return r.dataBind;e:for(let n in this.controlIdMapping){const i=this.controlIdMapping[n];if(i.children){for(let u in i.children)if(u===e){r=i.children[u];break e}}}return r==null?void 0:r.dataBind}}function OC(t){let e={},r={},n={},i={},u={},o={};return dr(t,a=>{const s=a.id,c={},l={};hr([a],(f,h)=>{MC(c,l,f),xC(n,s,f),IC(i,s,f),TC(u,f)}),e[s]={},o[s]=c,r[s]=l}),{state:e,defaultState:o,subtableHeadersControlIdMapping:u,emptyState:r,databindMapping:n,controlidMapping:i}}function MC(t,e,r){var n,i;if(r.controlType===de.FORM)t[r.id]=we(r.props.defaultValue),e[r.id]=we(r.props.defaultValue);else{const u={};Vt(r.props.headers,o=>{u[o.id]=we(o.props.defaultValue)}),t[r.id]=(i=new Array((n=r.props.defaultRows)!=null?n:1).fill(0).map(()=>Ee({uid:"new:"+en("uid")},we(u))))!=null?i:[],e[r.id]=u}}function xC(t,e,r){var n,i;if(r.controlType===de.FORM)ft(r.props.dataBind)?((i=(n=r.props)==null?void 0:n.dataBind)==null?void 0:i.dataCode)===void 0||(t[r.props.dataBind.dataCode]===void 0&&(t[r.props.dataBind.dataCode]={controlId:e,fields:[],dataViewId:e}),t[r.props.dataBind.dataCode].fields.push({fieldCode:r.props.dataBind.fieldCode,controlId:r.id,dataBind:r.props.dataBind,dataViewId:[e]})):Object.keys(r.props.dataBind).map(u=>{const o=r.props.dataBind,a=o[u].dataCode;a!==void 0&&(t[a]===void 0&&(t[a]={controlId:r.id,fields:[],dataViewId:e}),t[a].fields.push({fieldCode:o[u].fieldCode,controlId:r.id,dataBind:o,dataViewId:[e]}))});else{if(r.props.datasourceBind.dataCode===""){Cr(`datasourceBind.dataCode is empty! maybe in preview mode, control:${r.id} type:${r.type}`);return}t[r.props.datasourceBind.dataCode]={controlId:r.id,fields:[],dataViewId:e};const u=r.id;Vt(r.props.headers,o=>{ft(o.props.dataBind)?(t[o.props.dataBind.dataCode]===void 0&&(t[o.props.dataBind.dataCode]={controlId:e,fields:[],dataViewId:e}),t[o.props.dataBind.dataCode].fields.push({fieldCode:o.props.dataBind.fieldCode,controlId:o.id,dataBind:o.props.dataBind,dataViewId:[e,u]})):Object.keys(o.props.dataBind).map(a=>{const s=o.props.dataBind,c=s[a].dataCode;s[a].fieldCode!==""&&t[c].fields.push({fieldCode:s[a].fieldCode,controlId:o.id,dataBind:s,dataViewId:[e,u]})})})}}function IC(t,e,r){r.controlType===de.FORM?t[r.id]={dataBind:r.props.dataBind,options:[],dataView:e}:r.type===Te.SUBTABLE&&(t[r.id]={dataBind:new hu({dataCode:r.props.datasourceBind.dataCode,fieldCode:""}),dataView:e,children:{},options:[]},Vt(r.props.headers,n=>{var i,u;Object.assign((u=(i=t[r.id])==null?void 0:i.children)!=null?u:{},{[n.id]:{dataBind:n.props.dataBind}})}))}function TC(t,e){if(e.type===Te.SUBTABLE){const r={};e.props.headers.map(n=>{n.children.map(i=>{Object.assign(r,{[i.id]:i})})}),Object.assign(t,{[e.id]:r})}}const Ba=["splice","push","shift","pop","unshift","reverse"],Wu=Symbol("__engineProxy__"),zu=Symbol("__engineTarget__"),Sa=Symbol("__engineArrayBeforeSetCallbackFlag__"),Oa=Symbol("__engineProxyThisKey__"),Ot={type:"",args:[],callback:Ma};function Ma(){}LC();function PC(t,e,r,n,i){if(Ot.type){Ot.callback=i.bind(null,t,n);return}const u=Number(e);if(u>t.length){Ut(`Wrong array operations may cause unknown errors. It is recommended to use APIs such as ${Ba.join(",")} for array operations`);return}if(!(Number.isNaN(u)&&e!=="length"))if(e==="length"){const a=r,s=t.length;if(a>t.length){Ut("Do not directly modify the length of the array data, please add new rows");return}return a===t.length?void 0:()=>i.call(null,t,n,"splice",[a,s-a])}else return u===t.length?()=>i.call(null,t,n,"push",[r]):()=>i.call(null,t,n,"splice",[u,1,r])}function NC(t,e,r){return{__engineProxy__:!0,get(n,i,u){return i===Wu?!0:i===zu?n:Array.isArray(n)&&i===Sa?r:i===Oa?t:Reflect.get(n,i,u)},set(n,i,u,o){var h;let a=we(u);const s=n[i],c=t===""?i:t+"."+i;function l(g){if(typeof g=="object"&&g!==null)return g[Wu]!==!0?Un(g,e,r,c):Un(g[zu],e,r,c)}a=(h=l(a))!=null?h:a;let f;if(Array.isArray(n)){const g=PC(n,i,a,t,e);f=Reflect.set(n,i,a,o),g&&g()}else{try{let g=a;if(a=r.call(null,n,c,a,s),g!==a){const y=l(a);y!==void 0&&(a=y)}}catch(g){return Bn(`${c} set error ${g}`),!0}f=Reflect.set(n,i,a,o),e.call(null,n,c,a,s)}return f||!0}}}function Un(t,e,r,n=""){if(Object.isFrozen(t))return t;for(let i in t){const u=n===""?i:n+"."+i,o=t[i];typeof o=="object"&&o!==null&&(t[i]=Un(o,e,r,u))}return new Proxy(t,NC(n,e,r))}function xa(t){const e=[];return t.forEach(r=>{e.push(r),(r.controlType==="layout"||r.controlType==="wrap")&&e.push(...xa(r.children))}),e}function Gu(t,e,r){if(e==="")return;const n=e.split(".");if(n.length===0)return;const i=n[0],u=n.slice(1),o=r[i]?r[i][0]:void 0;return u.length===0?o:u.reduce((a,s)=>{var f,h;const c=Number(s);if(Number.isNaN(c)&&a){const g=a!=null&&a.children?xa(a.children):void 0,y=g==null?void 0:g.find(d=>d.id===s);return y||(a.controlType===de.FORM?a:void 0)}else return(h=(f=a==null?void 0:a.children)==null?void 0:f[c])!=null?h:a},o)}function $C(t,e){return["push","unshift"].includes(t)?e:t==="splice"?e.slice(2):[]}function RC(t,e,r){if(["push","unshift"].includes(t))return r;if(t==="splice")return e.slice(0,2).concat(r)}function LC(){Ba.forEach(t=>{const e=Array.prototype[t];Array.prototype[t]=function(...r){var n;if(this[Wu]){let i;const u=$C(t,r);if(u.length){const o=(n=this[Sa])==null?void 0:n.call(this,this[zu],this[Oa],u),a=RC(t,r,o);Ot.type=t,Ot.args=a,i=e.apply(this,a)}else Ot.type=t,Ot.args=r,i=e.apply(this,r);return typeof Ot.callback=="function"&&Ot.callback(t,r,i),Ot.type="",Ot.args=[],Ot.callback=Ma,i}else return e.apply(this,r)}})}class kC{constructor(){this.actionMap=new Map,this.buildinActions={},this.actionUtils={},this.sources={}}execAction(e,r,...n){return Pt(this,null,function*(){const i=this.actionMap.get(e);if(!!i)try{return yield i.func.call(null,r,...n)}catch(u){return Bn(`${i.id} Exception during calling action: ${u}`),!1}})}addAction(e,r){this.actionMap.has(e)&&Ut("duplicated action key");const n=new qC(e,r);this.actionMap.set(e,n)}}class qC{constructor(e,r){this.id="",this.id=e,this.func=r}}class jC{constructor(e){this._dataStore=new Map,this.executer=e}add(e,r){this._dataStore.set(e,r)}get(e){let r=this._dataStore.get(e);return we(r)}remove(e){this._dataStore.delete(e)}getRemoteData(e){return Pt(this,null,function*(){return this.executer===void 0?(Bn("\u672A\u521D\u59CB\u5316executer"),[]):this.executer(e)})}}class nr{}class tn extends nr{validate(e){return tt(e)}transform(e){if(e==null)return"";if(!St(e)&&!As(e))return String(e);if(ZD(e))return JSON.stringify(e);throw`${e} is not a string`}}class Hu extends nr{validate(e){return Sn(e)||e===""}transform(e){if(e==null)return"";const r=!St(e)&&!As(e)?Number(e):void 0;if(!Number.isNaN(r)&&r!==void 0)return r;throw`${e} is not a number`}}class UC extends nr{validate(e){return XD(e)}transform(e){if(e==null)return[];function r(n){return n.map(i=>i?String(i):"")}if(cr(e))return r(e);if(tt(e)&&bs(e))try{const n=JSON.parse(e);if(Array.isArray(n))return r(n)}catch(n){}return[String(e)]}}class VC extends nr{validate(e){return KD(e)}transform(e){if(e==null)return[];function r(i){return i.map(u=>!u&&u!==0?"":Number(u)).filter(u=>u===""||!Number.isNaN(u))}if(cr(e))return r(e);if(tt(e)&&bs(e))try{const i=JSON.parse(e);if(cr(i))return r(i)}catch(i){}const n=Number(e);if(Number.isNaN(n))throw`${e} is not a number array`;return[n]}}class WC extends nr{validate(e){return St(e)&&"amount"in e&&Sn(e.amount)&&"currency"in e&&tt(e.currency)}transform(e,r){if(e==null||e==="")return new du({currency:r==null?void 0:r.currency});let n;if(St(e)&&(n=new du(Ee(Ee({},r),e))),tt(e)&&On(e))try{const i=JSON.parse(e);n=new du(Ee(Ee({},r),i))}catch(i){}if(n){const i=new Hu,u=new tn;return i.validate(n.amount)||(n.amount=i.transform(n.amount)),u.validate(n.currency)||(n.currency=u.transform(n.currency)),n}throw`${e} is not a { amount: number, currency: string } object`}}class zC extends nr{validate(e){return St(e)&&"min"in e&&tt(e.min)&&"max"in e&&tt(e.max)}transform(e,r){if(e==null||e==="")return new pu;let n;if(St(e)&&(n=new pu(Ee(Ee({},r),e))),tt(e)&&On(e))try{const i=JSON.parse(e);n=new pu(Ee(Ee({},r),i))}catch(i){}if(n){const i=new tn;return i.validate(n.min)||(n.min=i.transform(n.min)),i.validate(n.max)||(n.max=i.transform(n.max)),n}throw`${e} is not a { min: string, max: string } object`}}class GC extends nr{validate(e){return St(e)&&"result"in e&&Sn(e.result)&&"unit"in e&&tt(e.unit)}transform(e,r){if(e==null||e==="")return new vu({unit:r==null?void 0:r.unit});let n;if(St(e)&&(n=new vu(Ee(Ee({},r),e))),tt(e)&&On(e))try{const i=JSON.parse(e);n=new vu(Ee(Ee({},r),i))}catch(i){}if(n){const i=new Hu,u=new tn;return i.validate(n.result)||(n.result=i.transform(n.result)),u.validate(n.unit)||(n.unit=u.transform(n.unit)),n}throw`${e} is not a { result: string, unit: string } object`}}class HC extends nr{validate(e){return!!St(e)}transform(e,r){if(e==null||e==="")return new gu;let n;if(St(e)&&(n=new gu(Ee(Ee({},r),uu.exports.camelizeKeys(e)))),tt(e)&&On(e))try{const i=JSON.parse(e);n=new gu(Ee(Ee({},r),uu.exports.camelizeKeys(i)))}catch(i){}if(n){const i=new tn;return i.validate(n.city)||(n.city=i.transform(n.city)),i.validate(n.district)||(n.district=i.transform(n.district)),i.validate(n.province)||(n.province=i.transform(n.province)),n}throw`${e} is not a { city: string, district: string, province: string } object`}}class QC{static getValueChecker(e){let r;switch(e){case je.VARCHAR:case je.TIMESTAMP:case je.TEXT:case je.AUTO_NUMBER:r=new tn;break;case je.DECIMAL:r=new Hu;break;case je.EMPLOYEES:case je.DEPARTMENTS:case je.IMAGE:case je.FILE:case je.ARRAY:r=new UC;break;case je.MONEY:r=new WC;break;case je.TIMESCOPE:r=new zC;break;case je.CALC:r=new GC;break;case je.DECIMAL_RANGE:r=new VC;break;case je.ADDRESS:r=new HC;break}return r}}function JC(t){if(["min","max","currency","unit"].includes(t))return je.VARCHAR;if(["result","amount"].includes(t))return je.DECIMAL}function Ia(t,e,r,n){var o;let i=(o=JC(e))!=null?o:t,u=QC.getValueChecker(i);if(!u||u.validate(r))return r;try{const a=u.transform(r,n);return a!==void 0?a:r}catch(a){throw`${e} ${a}`}}function ZC(t,e,r){return Object.entries(t).reduce((n,[i,u])=>{const o=e[i];return n[i]=Ia(u,i,o,r[i]),n},Object.assign({},e))}typeof window!="undefined"&&(window.engines={});let Br=null,rn="";class Qu extends Ss{constructor(e){super(),this.rawStore={},this.isMounted=!1,this.id=Fn(8),this.__pluginsApplied=!1,this.actionManager=new kC,this._jobTasks=[],this.createControlInstance=this.createInstance,this.$options=Object.freeze(e);const{autoMount:r=!0,schema:n,beforeCreateInstance:i,externalParams:u,language:o=hs,debug:a=!1,messagesI18n:s,children:c}=this.$options;this.debug=a,this.runtime=new Ke({schema:n,beforeCreateInstance:i}),this.externalParams=u,this.children=c,this.store=new SC({instance:this.runtime.instance}),this.debugLog("engine is Instantiation complete"),r&&this.mount()}debugLog(...e){this.debug&&ru(...e)}use(e){return this.__pluginsApplied||this.__plugins.push(e),this}registerControl(...e){return this.runtime.register(...e),this}static register(e){return Ke.register(e,"Runtime")}static judgeControlIsRegistered(e){return Ke.staticRegisteredTypes.has(e.Runtime.controlType)}mount(){this.debugLog("~engine\u7684mount\u65B9\u6CD5\u5F00\u59CB\u8C03\u7528~");const{plugins:e=[]}=this.$options;this._handlerProxyState(),this.__plugins=e,this.applyPlugins(),this.setStates(this.getState()),this.debugLog("engine\u7684mount\u65B9\u6CD5\u8C03\u7528\u7ED3\u675F"),this.debug&&typeof window!="undefined"&&(window.engines[this.id]=this)}destroy(){this.debug&&typeof window!="undefined"&&delete window.engines[this.id]}_handlerProxyState(){this.store.state=Un(this.store.state,this._proxyStateCallback.bind(this),this._proxyStateBeforeSetCallback.bind(this))}_proxyStateBeforeSetCallback(e,r,n,i){const u=Gu(this.runtime.flatInstances,r,this.runtime.instanceMap);if(!u)return n;if(this.assertInstance(u,Te.SUBTABLE)){if(n===null)return[];const s=u.props.headers.reduce((l,f)=>{const h=f.children[0];return h&&h.controlType===de.FORM&&(l[h.id]=h.fieldType),l},{}),c=this.getEmptyState(u.id);return n==null?void 0:n.map(l=>ZC(s,l,c))}const o=r.split("."),a=o[o.length-1];try{return Ia(u.fieldType,a,n,i)}catch(s){throw Cr(`the id=${u.id}'s instance setState error, %o ${s}.`,n),s}}_proxyStateCallback(e,r,n,i,u){Array.isArray(e)?this._handlerArrayUpdate(e,r,n,i,u):this._handlerObjectUpdate(e,r,n,i)}_handlerArrayUpdate(e,r,n,i,u){const o=Gu(this.runtime.flatInstances,r,this.runtime.instanceMap);if((o==null?void 0:o.controlType)!==de.LIST)return;const a=g=>{const y=[];for(let d=0;d<g;d++){const v=this.listControlCreateRow(o,"subtable-row");v&&y.push(v)}return y},s=Br;let c=[],l=[],f=[],h=!1;if(n&&i){switch(n){case"push":case"unshift":const d=i.length;c=a(d),l=i,o.children[n](...c);break;case"splice":if(i.length>2){const v=i.length-2,p=i.slice(2);c=a(v),l=p;const m=i[0],D=i[1];o.children[n](m,D,...c)}else{const v=i[0],p=i[1];v+p===o.children.length-1&&(h=!0),o.children[n](...i)}break;default:o.children[n](...i);break}n==="splice"?f=u:["pop","shift"].includes(n)&&(f=[u]);const g=this.getState(o.id);this._handlerSubtableUpdateUid(g),this.runtime.getFlatInstances();const y=c.map(d=>{var p,m;const v=(m=(p=d==null?void 0:d.children)==null?void 0:p[0])==null?void 0:m.children[0];return this.getInstanceRowIndex(v)});this.emit("list-change",{instance:o,value:g,options:Object.assign({},s,{changed:c,data:l,rowIndexs:y,deleted:f!=null?f:[],jsonValue:JSON.stringify(g),isDeleteLastOne:h,type:n,args:i})}),Br=null}}_handlerSubtableUpdateUid(e){e.forEach(r=>{r.uid||Object.assign(r,{uid:"new:"+en("uid")})})}_handlerObjectUpdate(e,r,n,i){const u=Gu(this.runtime.flatInstances,r,this.runtime.instanceMap);if(!u)return;const o=this.getInstanceRowIndex(u),a=Br||{};if(u.controlType===de.LIST&&u.type===Te.SUBTABLE){u.children.length=0;const s=n;let c=[];for(let h=0;h<s.length;h++){const g=this.listControlCreateRow(u,"subtable-row");g&&c.push(g)}u.children.push(...c);let l=i!=null?i:[];(a==null?void 0:a.setData)===!0&&(l=[]),this.runtime.getFlatInstances(),this._handlerSubtableUpdateUid(s);const f=c.map(h=>{var y,d;const g=(d=(y=h==null?void 0:h.children)==null?void 0:y[0])==null?void 0:d.children[0];return this.getInstanceRowIndex(g)});this.emit("list-change",{instance:u,value:n,options:Er(Ee({},a),{changed:c,data:s,rowIndexs:f,deleted:l,type:"push",jsonValue:JSON.stringify(s)})})}else this.emit("change",{instance:u,value:this.getState(u.id,o),rowIndex:o,options:Er(Ee({},a),{oldValue:i})})}applyPlugins(){this.__pluginsApplied||(this.__plugins.forEach(e=>{var r;try{rn=(r=e.pluginName)!=null?r:e.constructor.name,e.apply(this)}catch(n){Ut(`${rn} Plugin apply Error
|
|
2
2
|
${n}`)}finally{rn=""}}),this.__pluginsApplied=!0)}listControlCreateRow(e,r){let n;if(r==="subtable-row"?n={children:[],controlType:de.LAYOUT,id:Fn(),type:"subtable-row",props:{caption:"",isHide:!1,style:{height:"",heightConfig:"fill",width:"",widthConfig:"fill"}},fieldType:void 0,customEvents:[],pageStatus:0,rules:[],parent:void 0}:n=this.runtime.createControlInstance(r),!!n){if(n.controlType===de.LAYOUT){const i=n,u=we(e.props.headers),o=this.createControl(u);for(let a of o)a.parent||this.runtime.resetInstanceParent(a,i);i.children.push(...o)}return n.parent=e,n}}listControlAddRow(e,r="subtable-row"){const n=this.listControlCreateRow(e,r);!n||e.children.push(n)}emit(e,r){return Pt(this,null,function*(){if(e==="engine-mounted"){if(this.isMounted)return Cr("The engine-mounted life cycle can only be triggered once"),Promise.resolve([]);if(this._jobTasks.length){console.time("engine-mounted need wait");const o=[...this._jobTasks];yield Promise.all(o),console.timeEnd("engine-mounted need wait")}this.isMounted=!0}let n,i;this.isMounted||(i=new Promise(o=>{n=o}),this._jobTasks.push(i));const u=yield yf(Qu.prototype,this,"emit").call(this,e,r);return n&&i&&(n(),this._jobTasks.splice(this._jobTasks.indexOf(i),1)),u})}on(e,r){return rn&&(r.applyingPluginName=rn),super.on(e,r)}createControl(...e){return this.runtime.createControl(...e)}createInstance(e,r){return this.runtime.createControlInstance(e,r)}schemaEvent(e,r){this.emit(e,r)}updateInstanceProps(e,r,n,i){return this.setInstance(e,r,n,i)}getRule(e,r){return Ke.staticGetRules(e,r)}getAllRules(e){var n,i;const r=this.runtime.allRules;return e===void 0?r:{rules:(n=r.rules[e])==null?void 0:n.fields,antdRules:(i=r.antdRules[e])==null?void 0:i.fields}}getRules(e,r=!1){var a,s,c,l,f,h,g;const n=this.runtime.rules,i=this.runtime.fieldCodeRules,u=this.store.controlIdMapping,o=r?i:n;if(e===void 0)return r?i:o;{if(e=r?(a=u[e])!=null&&a.children?(s=u[e].dataBind)==null?void 0:s.dataCode:((c=u[e].dataBind)==null?void 0:c.fieldCode)||e:e,e in o)return(l=o[e])==null?void 0:l.fields;let y;for(const d in o)if(e in(((f=o[d])==null?void 0:f.fields)||{})){y=(g=(h=o[d])==null?void 0:h.fields)==null?void 0:g[e];break}return y}}getAntdRules(e){var r;return e===void 0?this.runtime.antdRules:(r=this.runtime.antdRules[e])==null?void 0:r.fields}getState(e,r){return e===void 0?this.store.state:this.store.getState(e,r)}getEmptyState(e){return we(e===void 0?this.store.emptyState:this.store.getEmptyState(e))}setPayloadOptions(e){Br=e}setState(e,r,n,i){Br=i,this.debugLog("[%o]: \u89E6\u53D1setState, \u4FEE\u6539\u7684\u503C\u4E3A%o, rowIndex=%o, options=%o",e,r,n,i),this.store.setState(e,r,n),this.debugLog("[%o]: setState\u5B8C\u6210, \u4FEE\u6539\u7684\u503C\u4E3A%o, rowIndex=%o",e,r,n),Br=null}setStates(e,r,n){let i=e!=null?e:{};Object.keys(i).forEach(u=>{Object.entries(this.store.controlIdMapping).forEach(([o,a])=>{if(a.dataView===u){const s=i[u][o];s!==void 0&&this.setState(o,s,r,n)}else(o===u||a.children&&a.children[u])&&i[u]!==void 0&&this.setState(u,i[u],r,n)})})}getField(e,r,n){if(!r){const s=this.getDataBindMapping(e);if(s){const{controlId:c}=s;return this.getState(c)}return}const i=this.getDataBindMapping(e,r);if(!i)return;const{dataBind:u,controlId:o}=i,a=this.getState(o,n);return ft(u)?a:Object.entries(u).reduce((s,[c,l])=>l.fieldCode===r?s[c]:s,a)}getData(e){var i,u,o,a,s,c,l,f,h;if(!e)return;let r=this.getDataBindMapping(e),n=this.getControlIdMapping();if(r){const{controlId:g}=r,y=this.getField(e);if(Array.isArray(y))return y.map(v=>{var m,D,E,w,_,O;let p={};for(let C in v){const b=(E=(D=(m=n[g])==null?void 0:m.children[C])==null?void 0:D.dataBind)==null?void 0:E.fieldCode;if(b!==""){if(b)p[b]=v[C];else if((w=n[g])!=null&&w.children[C])for(let B in v[C])p[(O=(_=n[g])==null?void 0:_.children[C])==null?void 0:O.dataBind[B].fieldCode]=v[C][B]}}return p});{let d={};for(let v in y)if((u=(i=n[v])==null?void 0:i.dataBind)!=null&&u.fieldCode)d[(o=n[v])==null?void 0:o.dataBind.fieldCode]=y[v];else if((s=(a=n[v])==null?void 0:a.dataBind)!=null&&s.dataCode)Array.isArray(y[v])&&(d[(c=n[v])==null?void 0:c.dataBind.dataCode]=(l=y[v])==null?void 0:l.map(p=>{var D,E;let m={};for(let w in p){const _=(D=n[v].children[w])==null?void 0:D.dataBind.fieldCode;if(_!=="")if(_)m[_]=p[w];else for(let O in p[w])m[(E=n[v].children[w])==null?void 0:E.dataBind[O].fieldCode]=p[w][O]}return m}));else if(n[v])for(let p in y[v])d[(h=(f=n[v])==null?void 0:f.dataBind[p])==null?void 0:h.fieldCode]=y[v][p];return d}}}setField(e,r,n,i,u){var c;const o=this.getDataBindMapping(e,r);if(!o)return;const{dataBind:a,controlId:s}=o;if(ft(a))this.setState(s,n,i,u);else{const l=(c=we(this.getState(s,i)))!=null?c:this.getEmptyState(s),f=Object.entries(a).reduce((h,[g,y])=>(y.fieldCode===r&&(h[g]=n),h),l);this.setState(s,f,i,u)}}setFields(e,r,n,i){const u=this.getDataBindMapping(e);if(!u)return;let o=[];u.fields.forEach(a=>{var f;const{dataBind:s,controlId:c,fieldCode:l}=a;if(!o.includes(l)&&!!Object.hasOwnProperty.call(r,l))if(ft(s))this.setState(c,r[l],n,i);else{const h=(f=we(this.getState(c,n)))!=null?f:this.getEmptyState(c),g=Object.entries(s).reduce((y,[d,v])=>{o.push(v.fieldCode);const p=r[v.fieldCode];return p!==void 0&&(y[d]=p),y},h);this.setState(a.controlId,g,n,i)}})}buildFields(e,r){const n=this.getDataBindMapping(e);if(!n||!n.fields)return;let i=[];const u={};return n.fields.forEach(o=>{const{dataBind:a,controlId:s,fieldCode:c}=o;if(!i.includes(c)&&!!Object.hasOwnProperty.call(r,c))if(ft(a))u[s]=r[c];else{const l=this.getEmptyState(s);u[o.controlId]=Object.entries(a).reduce((f,[h,g])=>{i.push(g.fieldCode);const y=r[g.fieldCode];return y!==void 0&&(f[h]=y),f},l)}}),u}setData(e,r){var s,c,l,f,h,g;this.debugLog("engine setData\u65B9\u6CD5\u6267\u884C\uFF0C\u53C2\u6570\u4E3A%o\uFF0C%o\u3002",e,r);const n=r==null?void 0:r.onlySetData;let i=this.store.defaultState;n===!0&&(i={});const u=this.store.dataBindMapping,o=this.store.emptyState,a=Object.keys(e);for(let y=0;y<a.length;y++){const d=a[y],v=e[d];if(Array.isArray(v)){const p=u[d];if(!p)continue;const{dataViewId:m,controlId:D,fields:E}=p;i[m]||(i[m]={}),v.length?i[m][D]=[]:i[m][D]=(s=i[m][D])!=null?s:[];const w=new Map;for(let B=0;B<E.length;B++){const F=E[B];w.set(F.fieldCode,F)}const _=new Set;for(let B=0;B<E.length;B++){const F=E[B];F.fieldCode&&_.add(F.fieldCode)}const O=(c=o[m])==null?void 0:c[D],C={},b={};for(let B=0;B<v.length;B++){const F=v[B],$=we(O),X=new Set,K=Object.keys(F);for(let J=0;J<K.length;J++){const q=K[J],ve=F[q];if(!_.has(q)&&q in $&&ve!==void 0&&($[q]=ve),X.has(q))continue;if(!b[q]){const Je=w.get(q);Je&&(b[q]=Je)}const qe=b[q];if(qe){if(ft(qe.dataBind)&&ve!==void 0)$[qe.controlId]=ve;else if(!ft(qe.dataBind)){const Je=qe.controlId;C[Je]||(C[Je]=we((l=this.store.getEmptyState(Je))!=null?l:{}));const et=we(C[Je]),z=qe.dataBind,H=Object.keys(z);for(let W=0;W<H.length;W++){const I=H[W],V=z[I],te=F[V.fieldCode];te!==void 0&&(et[I]=te),X.add(V.fieldCode)}$[Je]=et}}else q==="uid"&&ve!==void 0?$.uid=ve:q==="virtualStore"&&ve!==void 0&&($.virtualStore=Object.freeze(ve))}i[m][D].push($)}}else if(v){const p=[],m=we(this.store.emptyState);(f=Object.keys(v))!=null&&f.length&&Object.keys(v).map(E=>{var _;if(p.includes(E))return;const w=this.getDataBindMapping(d,E);if(w){if(i[w.dataViewId[0]]||(i[w.dataViewId[0]]={}),ft(w.dataBind)&&v[E]!==void 0)i[w.dataViewId[0]][w.controlId]=v[E]!==void 0?v[E]:m[w.dataViewId[0]][w.controlId];else if(!ft(w.dataBind)){const O=(_=this.getEmptyState(w.controlId))!=null?_:{};Object.keys(w.dataBind).map(C=>{const b=w.dataBind[C];if(e[b.dataCode]){const B=e[b.dataCode];B[b.fieldCode]!==void 0&&(O[C]=B[b.fieldCode])}p.push(b.fieldCode)}),i[w.dataViewId[0]][w.controlId]=O}}else{const O=this.getDataBindMapping(d);if((O==null?void 0:O.dataViewId)&&v[E]!==void 0){const C=O==null?void 0:O.dataViewId;E in(m[C]||{})&&(i[C][E]=v[E])}}});const D=this.getDataBindMapping(d);if(D){const E=(h=D==null?void 0:D.fields)==null?void 0:h.map(O=>O==null?void 0:O.controlId),w=this.getEmptyState(D==null?void 0:D.controlId),_=Object.keys((g=i==null?void 0:i[D==null?void 0:D.controlId])!=null?g:{});E==null||E.forEach(O=>{!_.includes(O)&&O!=="uid"&&i[D==null?void 0:D.controlId]&&(Object.keys(i).length?Object.assign(i[D==null?void 0:D.controlId],{[O]:w[O]}):Object.assign(i,{[D.controlId]:{[O]:w[O]}}))}),this.debugLog("engine setData\u65B9\u6CD5\u9ED8\u8BA4\u503C\u53CA\u8868\u5355\u6570\u636E\u7EC4\u5408\u5B8C\u6210\uFF0C\u53C2\u6570\u4E3A%o\u3002",i)}}}this.debugLog("engine setData\u65B9\u6CD5\u6570\u636E\u7EC4\u5408\u5B8C\u6210\uFF0C\u53C2\u6570\u4E3A%o\u3002",i),this.setStates(i,void 0,Ee({setData:!0},r)),this.runtime.getFlatInstances(),this.debugLog("engine setData\u65B9\u6CD5\u6267\u884C\u5B8C\u6210\u3002")}getDataBind(e){return this.store.getDataBind(e)}getInstance(e,r){const n=this.getInstances(e,r===-1);if(n.length>0)return r!==void 0?r===-1?n[0]:n[r]:n[0]}getInstances(e,r=!1){if(e===void 0)return this.runtime.flatInstances;const n=Array.from(this.runtime.instanceMap[e]||[]);if(r){const i=this.findSubtableHeadersControl(e);i!==void 0&&n.unshift(i)}return n}setInstance(e,r,n,i){try{if(typeof e=="string"&&i===-1)this.getInstances(e,i===-1).map(o=>{o&&(this.debugLog("[%o]: \u4FEE\u6539instance: %o\u7684%o\u5C5E\u6027\uFF0C\u4FEE\u6539\u7684\u503C\u4E3A%o\u3002",o.id,o,r,n),iu(o.props,r,n),this.schemaEvent("schema-change",{instance:o,props:r,value:n,rowIndex:i}))});else{let u;if(typeof e=="string"?u=this.getInstance(e,i):u=e,!u)return;this.debugLog("[%o]: \u4FEE\u6539instance: %o\u7684%o\u5C5E\u6027\uFF0C\u4FEE\u6539\u7684\u503C\u4E3A%o\u3002",u.id,u,r,n),iu(u.props,r,n),this.schemaEvent("schema-change",{instance:u,props:r,value:n,rowIndex:i})}}catch(u){throw u}}getControlIdMapping(){return this.store.controlIdMapping}getFieldInstance(e,r,n){const i=this.getDataBindMapping(e,r);if(i)return this.getInstance(i.controlId,n)}setFieldInstance(e,r,n,i,u){const o=this.getDataBindMapping(e,r);if(o){const a=this.getInstance(o.controlId,u);return this.debugLog("\u8C03\u7528\u4E86setFieldInstance[%o]: \u4FEE\u6539instance: %o\u7684%o\u5C5E\u6027\uFF0C\u4FEE\u6539\u7684\u503C\u4E3A%o\u3002",a.id,a,n,i),this.setInstance(a.id,n,i,u),a}}getDataBindMapping(e,r){if(!e&&!r)return this.store.dataBindMapping;const n=this.store.dataBindMapping[e];if(!n)return;if(!r)return n;const i=n.fields.find(u=>u.fieldCode===r);if(!!i)return i}getAction(){return this.actionManager}initDataManager(e){this.dataManager=new jC(e)}getDataManager(){return this.dataManager}assertInstance(e,r){return tt(r)?e.type===r:r.includes(e.type)}assertInstanceIsCustomControl(e){return!YD(tt(e)?e:e.type)}getInstanceRowIndex(e){if(!e.parent)return;let r;if(this.assertInstance(e.parent,Te.SUBTABLE_COLUMN)&&this.assertInstance(e.parent.parent,Te.SUBTABLE))r=-1;else if(this.getInstanceParentControl(e,Te.SUBTABLE_COLUMN)){const u=this.runtime.instanceMap[e.id];if(Object.prototype.toString.call(u)==="[object Array]"){const o=u.findIndex(a=>a===e);o>-1&&(r=o)}}return r}getInstanceParentControl(e,r){if(!!e.parent)return this.assertInstance(e.parent,r)?e.parent:this.getInstanceParentControl(e.parent,r)}getInstanceInSubtableHeader(e){const r=this.getInstanceRowIndex(e);if(r===void 0)return;if(r===-1)return e;const n=this.assertInstance(e,Te.SUBTABLE_COLUMN)?e:this.getInstanceParentControl(e,Te.SUBTABLE_COLUMN);if(!n)return;const u=this.getInstanceParentControl(e,Te.SUBTABLE).props.headers.find(o=>o.id===n.id);if(!!u)return u.children.find(o=>o.id===e.id)}setControlConfig(...e){return this.runtime.registerControlConfig(...e)}getControlConfig(e){return this.runtime.getControlConfig(e)}inList(e){const r=this.store.subtableHeadersControlIdMapping;let n;for(const i in r)if(e in r[i]){n=i;break}return n}findSubtableHeadersControl(e){const r=this.store.subtableHeadersControlIdMapping;let n;for(const i in r)if(e in r[i]){n=r[i][e];break}return n}}class XC{}class KC{constructor(e,r,n){this.config=e,this.env=r,this.eventJs=n}apply(e){this.engine=e;const r=this.config;if(!r)return;const n=e.getAction();if(this.eventJs){this.eventJs.exportsFun({ctx:e,utils:n.actionUtils});for(let[i,u]of Object.entries(this.eventJs))n.addAction(i,u)}else{const i=Ta(r,e,this.env);if(!i)return;for(let[u,o]of Object.entries(i.funcMap))n.addAction(u,o)}}}function Ta(t,e,r){if(!t.module||!t.module.compiled)return;const n=t.module.compiled,i={exports:{ctx:e,utils:e.getAction().actionUtils,env:r}};try{new Function("module","exports",n).call(i,i,i.exports)}catch(a){Ut(a.message+". fail to parse the module"),process.env.NODE_ENV!=="production"&&Ut("fail to parse the module")}const u={},o={};for(const[a,s]of Object.entries(i.exports))typeof s=="function"?u[a]=s:o[a]=s;return{funcMap:u,variables:o}}const YC={"engine-initialized":"did_init","engine-mounted":"did_mount","engine-submit":"will_submit","engine-submit-params":"do_submit","engine-submitted":"did_submit"};class e5{constructor(e){this.config=e}apply(e){this.engine=e,Object.entries(YC).forEach(([r,n])=>{e.on(r,i=>Pt(this,null,function*(){const u=yield this.callLifecycleEvent(n,i);return u.includes(!1)?!1:u}))})}callLifecycleEvent(e,r){return Pt(this,null,function*(){const n=this.config;return!n||!Array.isArray(n[e])?[]:yield Promise.all(n[e].map(u=>Pt(this,null,function*(){return yield this.engine.getAction().execAction(u,r)})))})}}class t5{constructor(e,r){this.config=e,this.customEvents=r}apply(e){this.engine=e,Ms.events.forEach(r=>{r.code&&r.key&&this.engineAddEventListener(r.code,r.key)}),this.customEvents.map(r=>{let n=r.key;r.namespace!==void 0&&r.namespace!==null&&r.namespace!==""&&(n=r.namespace+":"+r.key),this.engineAddEventListener(n,n)})}engineAddEventListener(e,r){this.engine.on(e,n=>Pt(this,null,function*(){if(!((e==="change"||e==="list-change")&&!this.engine.isMounted)&&n.instance!==void 0)return yield this.callControlEvent(r,n)}))}callControlEvent(e,r){return Pt(this,null,function*(){const n=this.config[r.instance.id];if(!n||!Array.isArray(n[e]))return[];const i=yield Promise.all(n[e].map(u=>Pt(this,null,function*(){return yield this.engine.getAction().execAction(u,r)})));return i.includes(!1)?!1:i})}}function Vn(){return Vn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Vn.apply(null,arguments)}var Pa={epsilon:1e-12,matrix:"Matrix",number:"number",precision:64,predictable:!1,randomSeed:null};function Ge(t){return typeof t=="number"}function Gt(t){return!t||typeof t!="object"||typeof t.constructor!="function"?!1:t.isBigNumber===!0&&typeof t.constructor.prototype=="object"&&t.constructor.prototype.isBigNumber===!0||typeof t.constructor.isDecimal=="function"&&t.constructor.isDecimal(t)===!0}function Na(t){return t&&typeof t=="object"&&Object.getPrototypeOf(t).isComplex===!0||!1}function $a(t){return t&&typeof t=="object"&&Object.getPrototypeOf(t).isFraction===!0||!1}function Ra(t){return t&&t.constructor.prototype.isUnit===!0||!1}function Wn(t){return typeof t=="string"}var ht=Array.isArray;function Sr(t){return t&&t.constructor.prototype.isMatrix===!0||!1}function Ju(t){return Array.isArray(t)||Sr(t)}function r5(t){return t&&t.isDenseMatrix&&t.constructor.prototype.isMatrix===!0||!1}function n5(t){return t&&t.isSparseMatrix&&t.constructor.prototype.isMatrix===!0||!1}function i5(t){return t&&t.constructor.prototype.isRange===!0||!1}function La(t){return t&&t.constructor.prototype.isIndex===!0||!1}function u5(t){return typeof t=="boolean"}function o5(t){return t&&t.constructor.prototype.isResultSet===!0||!1}function s5(t){return t&&t.constructor.prototype.isHelp===!0||!1}function a5(t){return typeof t=="function"}function l5(t){return t instanceof Date}function c5(t){return t instanceof RegExp}function ka(t){return!!(t&&typeof t=="object"&&t.constructor===Object&&!Na(t)&&!$a(t))}function f5(t){return t===null}function h5(t){return t===void 0}function d5(t){return t&&t.isAccessorNode===!0&&t.constructor.prototype.isNode===!0||!1}function p5(t){return t&&t.isArrayNode===!0&&t.constructor.prototype.isNode===!0||!1}function g5(t){return t&&t.isAssignmentNode===!0&&t.constructor.prototype.isNode===!0||!1}function v5(t){return t&&t.isBlockNode===!0&&t.constructor.prototype.isNode===!0||!1}function m5(t){return t&&t.isConditionalNode===!0&&t.constructor.prototype.isNode===!0||!1}function y5(t){return t&&t.isConstantNode===!0&&t.constructor.prototype.isNode===!0||!1}function D5(t){return t&&t.isFunctionAssignmentNode===!0&&t.constructor.prototype.isNode===!0||!1}function E5(t){return t&&t.isFunctionNode===!0&&t.constructor.prototype.isNode===!0||!1}function w5(t){return t&&t.isIndexNode===!0&&t.constructor.prototype.isNode===!0||!1}function C5(t){return t&&t.isNode===!0&&t.constructor.prototype.isNode===!0||!1}function A5(t){return t&&t.isObjectNode===!0&&t.constructor.prototype.isNode===!0||!1}function b5(t){return t&&t.isOperatorNode===!0&&t.constructor.prototype.isNode===!0||!1}function F5(t){return t&&t.isParenthesisNode===!0&&t.constructor.prototype.isNode===!0||!1}function _5(t){return t&&t.isRangeNode===!0&&t.constructor.prototype.isNode===!0||!1}function B5(t){return t&&t.isRelationalNode===!0&&t.constructor.prototype.isNode===!0||!1}function S5(t){return t&&t.isSymbolNode===!0&&t.constructor.prototype.isNode===!0||!1}function O5(t){return t&&t.constructor.prototype.isChain===!0||!1}function Zu(t){var e=typeof t;return e==="object"?t===null?"null":Gt(t)?"BigNumber":t.constructor&&t.constructor.name?t.constructor.name:"Object":e}function pr(t){var e=typeof t;if(e==="number"||e==="string"||e==="boolean"||t===null||t===void 0)return t;if(typeof t.clone=="function")return t.clone();if(Array.isArray(t))return t.map(function(r){return pr(r)});if(t instanceof Date)return new Date(t.valueOf());if(Gt(t))return t;if(ka(t))return M5(t,pr);throw new TypeError("Cannot clone: unknown type of value (value: ".concat(t,")"))}function M5(t,e){var r={};for(var n in t)zn(t,n)&&(r[n]=e(t[n]));return r}function nn(t,e){var r,n,i;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;n++)if(!nn(t[n],e[n]))return!1;return!0}else{if(typeof t=="function")return t===e;if(t instanceof Object){if(Array.isArray(e)||!(e instanceof Object))return!1;for(r in t)if(!(r in e)||!nn(t[r],e[r]))return!1;for(r in e)if(!(r in t))return!1;return!0}else return t===e}}function zn(t,e){return t&&Object.hasOwnProperty.call(t,e)}function x5(t,e){for(var r={},n=0;n<e.length;n++){var i=e[n],u=t[i];u!==void 0&&(r[i]=u)}return r}var I5=["Matrix","Array"],T5=["number","BigNumber","Fraction"],qa=function(e){if(e)throw new Error(`The global config is readonly.
|
|
3
3
|
Please create a mathjs instance if you want to change the default configuration.
|
|
4
4
|
Example:
|
|
@@ -54,4 +54,4 @@ You tried to parse Less with the standard CSS parser; try again with the postcss
|
|
|
54
54
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
|
55
55
|
https://www.w3ctech.com/topic/2226`));let a=r(...o);return a.postcssPlugin=e,a.postcssVersion=new Go().version,a}let u;return Object.defineProperty(i,"postcss",{get(){return u||(u=i()),u}}),i.process=function(o,a,s){return ye([i(s)]).process(o,a)},i},ye.stringify=kF,ye.parse=RF,ye.fromJSON=IF,ye.list=NF,ye.comment=t=>new Jc(t),ye.atRule=t=>new Qc(t),ye.decl=t=>new Zc(t),ye.rule=t=>new Yc(t),ye.root=t=>new Kc(t),ye.document=t=>new Xc(t),ye.CssSyntaxError=xF,ye.Declaration=Zc,ye.Container=MF,ye.Processor=Go,ye.Document=Xc,ye.Comment=Jc,ye.Warning=qF,ye.AtRule=Qc,ye.Result=LF,ye.Input=TF,ye.Rule=Yc,ye.Root=Kc,ye.Node=$F,PF.registerPostcss(ye);var be=ye;ye.default=ye,be.stringify,be.fromJSON,be.plugin,be.parse,be.list,be.document,be.comment,be.atRule,be.rule,be.decl,be.root,be.CssSyntaxError,be.Declaration,be.Container,be.Processor,be.Document,be.Comment,be.Warning,be.AtRule,be.Result,be.Input,be.Rule,be.Root,be.Node;const ef=(t={})=>{const e=t.prefix,r=/\s+$/.test(e)?e:`${e} `,n=t.ignoreFiles?[].concat(t.ignoreFiles):[],i=t.includeFiles?[].concat(t.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(u){const o=u.root,a=o.source.input.file;if(!(n.length&&a&&tf(a,n))&&!(i.length&&a&&!tf(a,i)))return{Rule(s,{result:c}){const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];s.parent&&l.includes(s.parent.name)||(s.selectors=s.selectors.map(f=>t.exclude&&jF(f,t.exclude)?f:t.transform?t.transform(e,f,r+f,o.source.input.file,s):[":root","body","html"].some(h=>f.startsWith(h))?t.skipGlobalSelectors?f:f.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,e):r+f))}}}}};function tf(t,e){return e.some(r=>r instanceof RegExp?r.test(t):t.includes(r))}function jF(t,e){return e.some(r=>r instanceof RegExp?r.test(t):t===r)}ef.postcss=!0;var UF=ef,Ho={exports:{}},Qo={exports:{}},Jo={exports:{}},Zo={exports:{}},xi={exports:{}},Dn={exports:{}},qt={exports:{}},pt={},Ii={exports:{}};(function(t,e){e.__esModule=!0,e.default=i;function r(u){for(var o=u.toLowerCase(),a="",s=!1,c=0;c<6&&o[c]!==void 0;c++){var l=o.charCodeAt(c),f=l>=97&&l<=102||l>=48&&l<=57;if(s=l===32,!f)break;a+=o[c]}if(a.length!==0){var h=parseInt(a,16),g=h>=55296&&h<=57343;return g||h===0||h>1114111?["\uFFFD",a.length+(s?1:0)]:[String.fromCodePoint(h),a.length+(s?1:0)]}}var n=/\\/;function i(u){var o=n.test(u);if(!o)return u;for(var a="",s=0;s<u.length;s++){if(u[s]==="\\"){var c=r(u.slice(s+1,s+7));if(c!==void 0){a+=c[0],s+=c[1];continue}if(u[s+1]==="\\"){a+="\\",s++;continue}u.length===s+1&&(a+=u[s]);continue}a+=u[s]}return a}t.exports=e.default})(Ii,Ii.exports);var Xo={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){for(var i=arguments.length,u=new Array(i>1?i-1:0),o=1;o<i;o++)u[o-1]=arguments[o];for(;u.length>0;){var a=u.shift();if(!n[a])return;n=n[a]}return n}t.exports=e.default})(Xo,Xo.exports);var Ko={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){for(var i=arguments.length,u=new Array(i>1?i-1:0),o=1;o<i;o++)u[o-1]=arguments[o];for(;u.length>0;){var a=u.shift();n[a]||(n[a]={}),n=n[a]}}t.exports=e.default})(Ko,Ko.exports);var Yo={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){for(var i="",u=n.indexOf("/*"),o=0;u>=0;){i=i+n.slice(o,u);var a=n.indexOf("*/",u+2);if(a<0)return i;o=a+2,u=n.indexOf("/*",o)}return i=i+n.slice(o),i}t.exports=e.default})(Yo,Yo.exports),pt.__esModule=!0,pt.unesc=pt.stripComments=pt.getProp=pt.ensureObject=void 0;var VF=Ti(Ii.exports);pt.unesc=VF.default;var WF=Ti(Xo.exports);pt.getProp=WF.default;var zF=Ti(Ko.exports);pt.ensureObject=zF.default;var GF=Ti(Yo.exports);pt.stripComments=GF.default;function Ti(t){return t&&t.__esModule?t:{default:t}}(function(t,e){e.__esModule=!0,e.default=void 0;var r=pt;function n(a,s){for(var c=0;c<s.length;c++){var l=s[c];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(a,l.key,l)}}function i(a,s,c){return s&&n(a.prototype,s),c&&n(a,c),Object.defineProperty(a,"prototype",{writable:!1}),a}var u=function a(s,c){if(typeof s!="object"||s===null)return s;var l=new s.constructor;for(var f in s)if(!!s.hasOwnProperty(f)){var h=s[f],g=typeof h;f==="parent"&&g==="object"?c&&(l[f]=c):h instanceof Array?l[f]=h.map(function(y){return a(y,l)}):l[f]=a(h,l)}return l},o=function(){function a(c){c===void 0&&(c={}),Object.assign(this,c),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var s=a.prototype;return s.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},s.replaceWith=function(){if(this.parent){for(var l in arguments)this.parent.insertBefore(this,arguments[l]);this.remove()}return this},s.next=function(){return this.parent.at(this.parent.index(this)+1)},s.prev=function(){return this.parent.at(this.parent.index(this)-1)},s.clone=function(l){l===void 0&&(l={});var f=u(this);for(var h in l)f[h]=l[h];return f},s.appendToPropertyAndEscape=function(l,f,h){this.raws||(this.raws={});var g=this[l],y=this.raws[l];this[l]=g+f,y||h!==f?this.raws[l]=(y||g)+h:delete this.raws[l]},s.setPropertyAndEscape=function(l,f,h){this.raws||(this.raws={}),this[l]=f,this.raws[l]=h},s.setPropertyWithoutEscape=function(l,f){this[l]=f,this.raws&&delete this.raws[l]},s.isAtPosition=function(l,f){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>l||this.source.end.line<l||this.source.start.line===l&&this.source.start.column>f||this.source.end.line===l&&this.source.end.column<f)},s.stringifyProperty=function(l){return this.raws&&this.raws[l]||this[l]},s.valueToString=function(){return String(this.stringifyProperty("value"))},s.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},i(a,[{key:"rawSpaceBefore",get:function(){var l=this.raws&&this.raws.spaces&&this.raws.spaces.before;return l===void 0&&(l=this.spaces&&this.spaces.before),l||""},set:function(l){(0,r.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=l}},{key:"rawSpaceAfter",get:function(){var l=this.raws&&this.raws.spaces&&this.raws.spaces.after;return l===void 0&&(l=this.spaces.after),l||""},set:function(l){(0,r.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=l}}]),a}();e.default=o,t.exports=e.default})(qt,qt.exports);var le={};le.__esModule=!0,le.UNIVERSAL=le.TAG=le.STRING=le.SELECTOR=le.ROOT=le.PSEUDO=le.NESTING=le.ID=le.COMMENT=le.COMBINATOR=le.CLASS=le.ATTRIBUTE=void 0;var HF="tag";le.TAG=HF;var QF="string";le.STRING=QF;var JF="selector";le.SELECTOR=JF;var ZF="root";le.ROOT=ZF;var XF="pseudo";le.PSEUDO=XF;var KF="nesting";le.NESTING=KF;var YF="id";le.ID=YF;var e6="comment";le.COMMENT=e6;var t6="combinator";le.COMBINATOR=t6;var r6="class";le.CLASS=r6;var n6="attribute";le.ATTRIBUTE=n6;var i6="universal";le.UNIVERSAL=i6,function(t,e){e.__esModule=!0,e.default=void 0;var r=o(qt.exports),n=u(le);function i(d){if(typeof WeakMap!="function")return null;var v=new WeakMap,p=new WeakMap;return(i=function(D){return D?p:v})(d)}function u(d,v){if(!v&&d&&d.__esModule)return d;if(d===null||typeof d!="object"&&typeof d!="function")return{default:d};var p=i(v);if(p&&p.has(d))return p.get(d);var m={},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in d)if(E!=="default"&&Object.prototype.hasOwnProperty.call(d,E)){var w=D?Object.getOwnPropertyDescriptor(d,E):null;w&&(w.get||w.set)?Object.defineProperty(m,E,w):m[E]=d[E]}return m.default=d,p&&p.set(d,m),m}function o(d){return d&&d.__esModule?d:{default:d}}function a(d,v){var p=typeof Symbol!="undefined"&&d[Symbol.iterator]||d["@@iterator"];if(p)return(p=p.call(d)).next.bind(p);if(Array.isArray(d)||(p=s(d))||v&&d&&typeof d.length=="number"){p&&(d=p);var m=0;return function(){return m>=d.length?{done:!0}:{done:!1,value:d[m++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
56
56
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s(d,v){if(!!d){if(typeof d=="string")return c(d,v);var p=Object.prototype.toString.call(d).slice(8,-1);if(p==="Object"&&d.constructor&&(p=d.constructor.name),p==="Map"||p==="Set")return Array.from(d);if(p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p))return c(d,v)}}function c(d,v){(v==null||v>d.length)&&(v=d.length);for(var p=0,m=new Array(v);p<v;p++)m[p]=d[p];return m}function l(d,v){for(var p=0;p<v.length;p++){var m=v[p];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(d,m.key,m)}}function f(d,v,p){return v&&l(d.prototype,v),p&&l(d,p),Object.defineProperty(d,"prototype",{writable:!1}),d}function h(d,v){d.prototype=Object.create(v.prototype),d.prototype.constructor=d,g(d,v)}function g(d,v){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,D){return m.__proto__=D,m},g(d,v)}var y=function(d){h(v,d);function v(m){var D;return D=d.call(this,m)||this,D.nodes||(D.nodes=[]),D}var p=v.prototype;return p.append=function(D){return D.parent=this,this.nodes.push(D),this},p.prepend=function(D){D.parent=this,this.nodes.unshift(D);for(var E in this.indexes)this.indexes[E]++;return this},p.at=function(D){return this.nodes[D]},p.index=function(D){return typeof D=="number"?D:this.nodes.indexOf(D)},p.removeChild=function(D){D=this.index(D),this.at(D).parent=void 0,this.nodes.splice(D,1);var E;for(var w in this.indexes)E=this.indexes[w],E>=D&&(this.indexes[w]=E-1);return this},p.removeAll=function(){for(var D=a(this.nodes),E;!(E=D()).done;){var w=E.value;w.parent=void 0}return this.nodes=[],this},p.empty=function(){return this.removeAll()},p.insertAfter=function(D,E){var w;E.parent=this;for(var _=this.index(D),O=[],C=2;C<arguments.length;C++)O.push(arguments[C]);(w=this.nodes).splice.apply(w,[_+1,0,E].concat(O)),E.parent=this;var b;for(var B in this.indexes)b=this.indexes[B],_<b&&(this.indexes[B]=b+arguments.length-1);return this},p.insertBefore=function(D,E){var w;E.parent=this;for(var _=this.index(D),O=[],C=2;C<arguments.length;C++)O.push(arguments[C]);(w=this.nodes).splice.apply(w,[_,0,E].concat(O)),E.parent=this;var b;for(var B in this.indexes)b=this.indexes[B],b>=_&&(this.indexes[B]=b+arguments.length-1);return this},p._findChildAtPosition=function(D,E){var w=void 0;return this.each(function(_){if(_.atPosition){var O=_.atPosition(D,E);if(O)return w=O,!1}else if(_.isAtPosition(D,E))return w=_,!1}),w},p.atPosition=function(D,E){if(this.isAtPosition(D,E))return this._findChildAtPosition(D,E)||this},p._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},p.each=function(D){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var E=this.lastEach;if(this.indexes[E]=0,!!this.length){for(var w,_;this.indexes[E]<this.length&&(w=this.indexes[E],_=D(this.at(w),w),_!==!1);)this.indexes[E]+=1;if(delete this.indexes[E],_===!1)return!1}},p.walk=function(D){return this.each(function(E,w){var _=D(E,w);if(_!==!1&&E.length&&(_=E.walk(D)),_===!1)return!1})},p.walkAttributes=function(D){var E=this;return this.walk(function(w){if(w.type===n.ATTRIBUTE)return D.call(E,w)})},p.walkClasses=function(D){var E=this;return this.walk(function(w){if(w.type===n.CLASS)return D.call(E,w)})},p.walkCombinators=function(D){var E=this;return this.walk(function(w){if(w.type===n.COMBINATOR)return D.call(E,w)})},p.walkComments=function(D){var E=this;return this.walk(function(w){if(w.type===n.COMMENT)return D.call(E,w)})},p.walkIds=function(D){var E=this;return this.walk(function(w){if(w.type===n.ID)return D.call(E,w)})},p.walkNesting=function(D){var E=this;return this.walk(function(w){if(w.type===n.NESTING)return D.call(E,w)})},p.walkPseudos=function(D){var E=this;return this.walk(function(w){if(w.type===n.PSEUDO)return D.call(E,w)})},p.walkTags=function(D){var E=this;return this.walk(function(w){if(w.type===n.TAG)return D.call(E,w)})},p.walkUniversals=function(D){var E=this;return this.walk(function(w){if(w.type===n.UNIVERSAL)return D.call(E,w)})},p.split=function(D){var E=this,w=[];return this.reduce(function(_,O,C){var b=D.call(E,O);return w.push(O),b?(_.push(w),w=[]):C===E.length-1&&_.push(w),_},[])},p.map=function(D){return this.nodes.map(D)},p.reduce=function(D,E){return this.nodes.reduce(D,E)},p.every=function(D){return this.nodes.every(D)},p.some=function(D){return this.nodes.some(D)},p.filter=function(D){return this.nodes.filter(D)},p.sort=function(D){return this.nodes.sort(D)},p.toString=function(){return this.map(String).join("")},f(v,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),v}(r.default);e.default=y,t.exports=e.default}(Dn,Dn.exports),function(t,e){e.__esModule=!0,e.default=void 0;var r=i(Dn.exports),n=le;function i(l){return l&&l.__esModule?l:{default:l}}function u(l,f){for(var h=0;h<f.length;h++){var g=f[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(l,g.key,g)}}function o(l,f,h){return f&&u(l.prototype,f),h&&u(l,h),Object.defineProperty(l,"prototype",{writable:!1}),l}function a(l,f){l.prototype=Object.create(f.prototype),l.prototype.constructor=l,s(l,f)}function s(l,f){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,y){return g.__proto__=y,g},s(l,f)}var c=function(l){a(f,l);function f(g){var y;return y=l.call(this,g)||this,y.type=n.ROOT,y}var h=f.prototype;return h.toString=function(){var y=this.reduce(function(d,v){return d.push(String(v)),d},[]).join(",");return this.trailingComma?y+",":y},h.error=function(y,d){return this._error?this._error(y,d):new Error(y)},o(f,[{key:"errorGenerator",set:function(y){this._error=y}}]),f}(r.default);e.default=c,t.exports=e.default}(xi,xi.exports);var Pi={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(Dn.exports),n=le;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,o(s,c)}function o(s,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,c)}var a=function(s){u(c,s);function c(l){var f;return f=s.call(this,l)||this,f.type=n.SELECTOR,f}return c}(r.default);e.default=a,t.exports=e.default})(Pi,Pi.exports);var Ni={exports:{}};/*! https://mths.be/cssesc v3.0.0 by @mathias */var u6={},o6=u6.hasOwnProperty,s6=function(e,r){if(!e)return r;var n={};for(var i in r)n[i]=o6.call(e,i)?e[i]:r[i];return n},a6=/[ -,\.\/:-@\[-\^`\{-~]/,l6=/[ -,\.\/:-@\[\]\^`\{-~]/,c6=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,es=function t(e,r){r=s6(r,t.options),r.quotes!="single"&&r.quotes!="double"&&(r.quotes="single");for(var n=r.quotes=="double"?'"':"'",i=r.isIdentifier,u=e.charAt(0),o="",a=0,s=e.length;a<s;){var c=e.charAt(a++),l=c.charCodeAt(),f=void 0;if(l<32||l>126){if(l>=55296&&l<=56319&&a<s){var h=e.charCodeAt(a++);(h&64512)==56320?l=((l&1023)<<10)+(h&1023)+65536:a--}f="\\"+l.toString(16).toUpperCase()+" "}else r.escapeEverything?a6.test(c)?f="\\"+c:f="\\"+l.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(c)?f="\\"+l.toString(16).toUpperCase()+" ":c=="\\"||!i&&(c=='"'&&n==c||c=="'"&&n==c)||i&&l6.test(c)?f="\\"+c:f=c;o+=f}return i&&(/^-[-\d]/.test(o)?o="\\-"+o.slice(1):/\d/.test(u)&&(o="\\3"+u+" "+o.slice(1))),o=o.replace(c6,function(g,y,d){return y&&y.length%2?g:(y||"")+d}),!i&&r.wrap?n+o+n:o};es.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},es.version="3.0.0";var ts=es;(function(t,e){e.__esModule=!0,e.default=void 0;var r=o(ts),n=pt,i=o(qt.exports),u=le;function o(h){return h&&h.__esModule?h:{default:h}}function a(h,g){for(var y=0;y<g.length;y++){var d=g[y];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(h,d.key,d)}}function s(h,g,y){return g&&a(h.prototype,g),y&&a(h,y),Object.defineProperty(h,"prototype",{writable:!1}),h}function c(h,g){h.prototype=Object.create(g.prototype),h.prototype.constructor=h,l(h,g)}function l(h,g){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,v){return d.__proto__=v,d},l(h,g)}var f=function(h){c(g,h);function g(d){var v;return v=h.call(this,d)||this,v.type=u.CLASS,v._constructed=!0,v}var y=g.prototype;return y.valueToString=function(){return"."+h.prototype.valueToString.call(this)},s(g,[{key:"value",get:function(){return this._value},set:function(v){if(this._constructed){var p=(0,r.default)(v,{isIdentifier:!0});p!==v?((0,n.ensureObject)(this,"raws"),this.raws.value=p):this.raws&&delete this.raws.value}this._value=v}}]),g}(i.default);e.default=f,t.exports=e.default})(Ni,Ni.exports);var $i={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(qt.exports),n=le;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,o(s,c)}function o(s,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,c)}var a=function(s){u(c,s);function c(l){var f;return f=s.call(this,l)||this,f.type=n.COMMENT,f}return c}(r.default);e.default=a,t.exports=e.default})($i,$i.exports);var Ri={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(qt.exports),n=le;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,o(s,c)}function o(s,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,c)}var a=function(s){u(c,s);function c(f){var h;return h=s.call(this,f)||this,h.type=n.ID,h}var l=c.prototype;return l.valueToString=function(){return"#"+s.prototype.valueToString.call(this)},c}(r.default);e.default=a,t.exports=e.default})(Ri,Ri.exports);var Li={exports:{}},En={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=u(ts),n=pt,i=u(qt.exports);function u(f){return f&&f.__esModule?f:{default:f}}function o(f,h){for(var g=0;g<h.length;g++){var y=h[g];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(f,y.key,y)}}function a(f,h,g){return h&&o(f.prototype,h),g&&o(f,g),Object.defineProperty(f,"prototype",{writable:!1}),f}function s(f,h){f.prototype=Object.create(h.prototype),f.prototype.constructor=f,c(f,h)}function c(f,h){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,d){return y.__proto__=d,y},c(f,h)}var l=function(f){s(h,f);function h(){return f.apply(this,arguments)||this}var g=h.prototype;return g.qualifiedName=function(d){return this.namespace?this.namespaceString+"|"+d:d},g.valueToString=function(){return this.qualifiedName(f.prototype.valueToString.call(this))},a(h,[{key:"namespace",get:function(){return this._namespace},set:function(d){if(d===!0||d==="*"||d==="&"){this._namespace=d,this.raws&&delete this.raws.namespace;return}var v=(0,r.default)(d,{isIdentifier:!0});this._namespace=d,v!==d?((0,n.ensureObject)(this,"raws"),this.raws.namespace=v):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(d){this.namespace=d}},{key:"namespaceString",get:function(){if(this.namespace){var d=this.stringifyProperty("namespace");return d===!0?"":d}else return""}}]),h}(i.default);e.default=l,t.exports=e.default})(En,En.exports),function(t,e){e.__esModule=!0,e.default=void 0;var r=i(En.exports),n=le;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,o(s,c)}function o(s,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,c)}var a=function(s){u(c,s);function c(l){var f;return f=s.call(this,l)||this,f.type=n.TAG,f}return c}(r.default);e.default=a,t.exports=e.default}(Li,Li.exports);var ki={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(qt.exports),n=le;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,o(s,c)}function o(s,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,c)}var a=function(s){u(c,s);function c(l){var f;return f=s.call(this,l)||this,f.type=n.STRING,f}return c}(r.default);e.default=a,t.exports=e.default})(ki,ki.exports);var qi={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(Dn.exports),n=le;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,o(s,c)}function o(s,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,c)}var a=function(s){u(c,s);function c(f){var h;return h=s.call(this,f)||this,h.type=n.PSEUDO,h}var l=c.prototype;return l.toString=function(){var h=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),h,this.rawSpaceAfter].join("")},c}(r.default);e.default=a,t.exports=e.default})(qi,qi.exports);var rs={},f6=Ef.default.deprecate;(function(t){t.__esModule=!0,t.default=void 0,t.unescapeValue=v;var e=o(ts),r=o(Ii.exports),n=o(En.exports),i=le,u;function o(w){return w&&w.__esModule?w:{default:w}}function a(w,_){for(var O=0;O<_.length;O++){var C=_[O];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(w,C.key,C)}}function s(w,_,O){return _&&a(w.prototype,_),O&&a(w,O),Object.defineProperty(w,"prototype",{writable:!1}),w}function c(w,_){w.prototype=Object.create(_.prototype),w.prototype.constructor=w,l(w,_)}function l(w,_){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(C,b){return C.__proto__=b,C},l(w,_)}var f=f6,h=/^('|")([^]*)\1$/,g=f(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),y=f(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),d=f(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function v(w){var _=!1,O=null,C=w,b=C.match(h);return b&&(O=b[1],C=b[2]),C=(0,r.default)(C),C!==w&&(_=!0),{deprecatedUsage:_,unescaped:C,quoteMark:O}}function p(w){if(w.quoteMark!==void 0||w.value===void 0)return w;d();var _=v(w.value),O=_.quoteMark,C=_.unescaped;return w.raws||(w.raws={}),w.raws.value===void 0&&(w.raws.value=w.value),w.value=C,w.quoteMark=O,w}var m=function(w){c(_,w);function _(C){var b;return C===void 0&&(C={}),b=w.call(this,p(C))||this,b.type=i.ATTRIBUTE,b.raws=b.raws||{},Object.defineProperty(b.raws,"unquoted",{get:f(function(){return b.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:f(function(){return b.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),b._constructed=!0,b}var O=_.prototype;return O.getQuotedValue=function(b){b===void 0&&(b={});var B=this._determineQuoteMark(b),F=D[B],$=(0,e.default)(this._value,F);return $},O._determineQuoteMark=function(b){return b.smart?this.smartQuoteMark(b):this.preferredQuoteMark(b)},O.setValue=function(b,B){B===void 0&&(B={}),this._value=b,this._quoteMark=this._determineQuoteMark(B),this._syncRawValue()},O.smartQuoteMark=function(b){var B=this.value,F=B.replace(/[^']/g,"").length,$=B.replace(/[^"]/g,"").length;if(F+$===0){var X=(0,e.default)(B,{isIdentifier:!0});if(X===B)return _.NO_QUOTE;var K=this.preferredQuoteMark(b);if(K===_.NO_QUOTE){var J=this.quoteMark||b.quoteMark||_.DOUBLE_QUOTE,q=D[J],ve=(0,e.default)(B,q);if(ve.length<X.length)return J}return K}else return $===F?this.preferredQuoteMark(b):$<F?_.DOUBLE_QUOTE:_.SINGLE_QUOTE},O.preferredQuoteMark=function(b){var B=b.preferCurrentQuoteMark?this.quoteMark:b.quoteMark;return B===void 0&&(B=b.preferCurrentQuoteMark?b.quoteMark:this.quoteMark),B===void 0&&(B=_.DOUBLE_QUOTE),B},O._syncRawValue=function(){var b=(0,e.default)(this._value,D[this.quoteMark]);b===this._value?this.raws&&delete this.raws.value:this.raws.value=b},O._handleEscapes=function(b,B){if(this._constructed){var F=(0,e.default)(B,{isIdentifier:!0});F!==B?this.raws[b]=F:delete this.raws[b]}},O._spacesFor=function(b){var B={before:"",after:""},F=this.spaces[b]||{},$=this.raws.spaces&&this.raws.spaces[b]||{};return Object.assign(B,F,$)},O._stringFor=function(b,B,F){B===void 0&&(B=b),F===void 0&&(F=E);var $=this._spacesFor(B);return F(this.stringifyProperty(b),$)},O.offsetOf=function(b){var B=1,F=this._spacesFor("attribute");if(B+=F.before.length,b==="namespace"||b==="ns")return this.namespace?B:-1;if(b==="attributeNS"||(B+=this.namespaceString.length,this.namespace&&(B+=1),b==="attribute"))return B;B+=this.stringifyProperty("attribute").length,B+=F.after.length;var $=this._spacesFor("operator");B+=$.before.length;var X=this.stringifyProperty("operator");if(b==="operator")return X?B:-1;B+=X.length,B+=$.after.length;var K=this._spacesFor("value");B+=K.before.length;var J=this.stringifyProperty("value");if(b==="value")return J?B:-1;B+=J.length,B+=K.after.length;var q=this._spacesFor("insensitive");return B+=q.before.length,b==="insensitive"&&this.insensitive?B:-1},O.toString=function(){var b=this,B=[this.rawSpaceBefore,"["];return B.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(B.push(this._stringFor("operator")),B.push(this._stringFor("value")),B.push(this._stringFor("insensitiveFlag","insensitive",function(F,$){return F.length>0&&!b.quoted&&$.before.length===0&&!(b.spaces.value&&b.spaces.value.after)&&($.before=" "),E(F,$)}))),B.push("]"),B.push(this.rawSpaceAfter),B.join("")},s(_,[{key:"quoted",get:function(){var b=this.quoteMark;return b==="'"||b==='"'},set:function(b){y()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(b){if(!this._constructed){this._quoteMark=b;return}this._quoteMark!==b&&(this._quoteMark=b,this._syncRawValue())}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(b){if(this._constructed){var B=v(b),F=B.deprecatedUsage,$=B.unescaped,X=B.quoteMark;if(F&&g(),$===this._value&&X===this._quoteMark)return;this._value=$,this._quoteMark=X,this._syncRawValue()}else this._value=b}},{key:"insensitive",get:function(){return this._insensitive},set:function(b){b||(this._insensitive=!1,this.raws&&(this.raws.insensitiveFlag==="I"||this.raws.insensitiveFlag==="i")&&(this.raws.insensitiveFlag=void 0)),this._insensitive=b}},{key:"attribute",get:function(){return this._attribute},set:function(b){this._handleEscapes("attribute",b),this._attribute=b}}]),_}(n.default);t.default=m,m.NO_QUOTE=null,m.SINGLE_QUOTE="'",m.DOUBLE_QUOTE='"';var D=(u={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},u[null]={isIdentifier:!0},u);function E(w,_){return""+_.before+w+_.after}})(rs);var ji={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(En.exports),n=le;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,o(s,c)}function o(s,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,c)}var a=function(s){u(c,s);function c(l){var f;return f=s.call(this,l)||this,f.type=n.UNIVERSAL,f.value="*",f}return c}(r.default);e.default=a,t.exports=e.default})(ji,ji.exports);var Ui={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(qt.exports),n=le;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,o(s,c)}function o(s,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,c)}var a=function(s){u(c,s);function c(l){var f;return f=s.call(this,l)||this,f.type=n.COMBINATOR,f}return c}(r.default);e.default=a,t.exports=e.default})(Ui,Ui.exports);var Vi={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(qt.exports),n=le;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,o(s,c)}function o(s,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,c)}var a=function(s){u(c,s);function c(l){var f;return f=s.call(this,l)||this,f.type=n.NESTING,f.value="&",f}return c}(r.default);e.default=a,t.exports=e.default})(Vi,Vi.exports);var ns={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){return n.sort(function(i,u){return i-u})}t.exports=e.default})(ns,ns.exports);var rf={},Q={};Q.__esModule=!0,Q.word=Q.tilde=Q.tab=Q.str=Q.space=Q.slash=Q.singleQuote=Q.semicolon=Q.plus=Q.pipe=Q.openSquare=Q.openParenthesis=Q.newline=Q.greaterThan=Q.feed=Q.equals=Q.doubleQuote=Q.dollar=Q.cr=Q.comment=Q.comma=Q.combinator=Q.colon=Q.closeSquare=Q.closeParenthesis=Q.caret=Q.bang=Q.backslash=Q.at=Q.asterisk=Q.ampersand=void 0;var h6=38;Q.ampersand=h6;var d6=42;Q.asterisk=d6;var p6=64;Q.at=p6;var g6=44;Q.comma=g6;var v6=58;Q.colon=v6;var m6=59;Q.semicolon=m6;var y6=40;Q.openParenthesis=y6;var D6=41;Q.closeParenthesis=D6;var E6=91;Q.openSquare=E6;var w6=93;Q.closeSquare=w6;var C6=36;Q.dollar=C6;var A6=126;Q.tilde=A6;var b6=94;Q.caret=b6;var F6=43;Q.plus=F6;var _6=61;Q.equals=_6;var B6=124;Q.pipe=B6;var S6=62;Q.greaterThan=S6;var O6=32;Q.space=O6;var nf=39;Q.singleQuote=nf;var M6=34;Q.doubleQuote=M6;var x6=47;Q.slash=x6;var I6=33;Q.bang=I6;var T6=92;Q.backslash=T6;var P6=13;Q.cr=P6;var N6=12;Q.feed=N6;var $6=10;Q.newline=$6;var R6=9;Q.tab=R6;var L6=nf;Q.str=L6;var k6=-1;Q.comment=k6;var q6=-2;Q.word=q6;var j6=-3;Q.combinator=j6,function(t){t.__esModule=!0,t.FIELDS=void 0,t.default=y;var e=u(Q),r,n;function i(d){if(typeof WeakMap!="function")return null;var v=new WeakMap,p=new WeakMap;return(i=function(D){return D?p:v})(d)}function u(d,v){if(!v&&d&&d.__esModule)return d;if(d===null||typeof d!="object"&&typeof d!="function")return{default:d};var p=i(v);if(p&&p.has(d))return p.get(d);var m={},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in d)if(E!=="default"&&Object.prototype.hasOwnProperty.call(d,E)){var w=D?Object.getOwnPropertyDescriptor(d,E):null;w&&(w.get||w.set)?Object.defineProperty(m,E,w):m[E]=d[E]}return m.default=d,p&&p.set(d,m),m}for(var o=(r={},r[e.tab]=!0,r[e.newline]=!0,r[e.cr]=!0,r[e.feed]=!0,r),a=(n={},n[e.space]=!0,n[e.tab]=!0,n[e.newline]=!0,n[e.cr]=!0,n[e.feed]=!0,n[e.ampersand]=!0,n[e.asterisk]=!0,n[e.bang]=!0,n[e.comma]=!0,n[e.colon]=!0,n[e.semicolon]=!0,n[e.openParenthesis]=!0,n[e.closeParenthesis]=!0,n[e.openSquare]=!0,n[e.closeSquare]=!0,n[e.singleQuote]=!0,n[e.doubleQuote]=!0,n[e.plus]=!0,n[e.pipe]=!0,n[e.tilde]=!0,n[e.greaterThan]=!0,n[e.equals]=!0,n[e.dollar]=!0,n[e.caret]=!0,n[e.slash]=!0,n),s={},c="0123456789abcdefABCDEF",l=0;l<c.length;l++)s[c.charCodeAt(l)]=!0;function f(d,v){var p=v,m;do{if(m=d.charCodeAt(p),a[m])return p-1;m===e.backslash?p=h(d,p)+1:p++}while(p<d.length);return p-1}function h(d,v){var p=v,m=d.charCodeAt(p+1);if(!o[m])if(s[m]){var D=0;do p++,D++,m=d.charCodeAt(p+1);while(s[m]&&D<6);D<6&&m===e.space&&p++}else p++;return p}var g={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};t.FIELDS=g;function y(d){var v=[],p=d.css.valueOf(),m=p,D=m.length,E=-1,w=1,_=0,O=0,C,b,B,F,$,X,K,J,q,ve,qe,Je,et;function z(H,W){if(d.safe)p+=W,q=p.length-1;else throw d.error("Unclosed "+H,w,_-E,_)}for(;_<D;){switch(C=p.charCodeAt(_),C===e.newline&&(E=_,w+=1),C){case e.space:case e.tab:case e.newline:case e.cr:case e.feed:q=_;do q+=1,C=p.charCodeAt(q),C===e.newline&&(E=q,w+=1);while(C===e.space||C===e.newline||C===e.tab||C===e.cr||C===e.feed);et=e.space,F=w,B=q-E-1,O=q;break;case e.plus:case e.greaterThan:case e.tilde:case e.pipe:q=_;do q+=1,C=p.charCodeAt(q);while(C===e.plus||C===e.greaterThan||C===e.tilde||C===e.pipe);et=e.combinator,F=w,B=_-E,O=q;break;case e.asterisk:case e.ampersand:case e.bang:case e.comma:case e.equals:case e.dollar:case e.caret:case e.openSquare:case e.closeSquare:case e.colon:case e.semicolon:case e.openParenthesis:case e.closeParenthesis:q=_,et=C,F=w,B=_-E,O=q+1;break;case e.singleQuote:case e.doubleQuote:Je=C===e.singleQuote?"'":'"',q=_;do for($=!1,q=p.indexOf(Je,q+1),q===-1&&z("quote",Je),X=q;p.charCodeAt(X-1)===e.backslash;)X-=1,$=!$;while($);et=e.str,F=w,B=_-E,O=q+1;break;default:C===e.slash&&p.charCodeAt(_+1)===e.asterisk?(q=p.indexOf("*/",_+2)+1,q===0&&z("comment","*/"),b=p.slice(_,q+1),J=b.split(`
|
|
57
|
-
`),K=J.length-1,K>0?(ve=w+K,qe=q-J[K].length):(ve=w,qe=E),et=e.comment,w=ve,F=ve,B=q-qe):C===e.slash?(q=_,et=C,F=w,B=_-E,O=q+1):(q=f(p,_),et=e.word,F=w,B=q-E),O=q+1;break}v.push([et,w,_-E,F,B,_,O]),qe&&(E=qe,qe=null),_=O}return v}}(rf),function(t,e){e.__esModule=!0,e.default=void 0;var r=O(xi.exports),n=O(Pi.exports),i=O(Ni.exports),u=O($i.exports),o=O(Ri.exports),a=O(Li.exports),s=O(ki.exports),c=O(qi.exports),l=_(rs),f=O(ji.exports),h=O(Ui.exports),g=O(Vi.exports),y=O(ns.exports),d=_(rf),v=_(Q),p=_(le),m=pt,D,E;function w(z){if(typeof WeakMap!="function")return null;var H=new WeakMap,W=new WeakMap;return(w=function(V){return V?W:H})(z)}function _(z,H){if(!H&&z&&z.__esModule)return z;if(z===null||typeof z!="object"&&typeof z!="function")return{default:z};var W=w(H);if(W&&W.has(z))return W.get(z);var I={},V=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var te in z)if(te!=="default"&&Object.prototype.hasOwnProperty.call(z,te)){var T=V?Object.getOwnPropertyDescriptor(z,te):null;T&&(T.get||T.set)?Object.defineProperty(I,te,T):I[te]=z[te]}return I.default=z,W&&W.set(z,I),I}function O(z){return z&&z.__esModule?z:{default:z}}function C(z,H){for(var W=0;W<H.length;W++){var I=H[W];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(z,I.key,I)}}function b(z,H,W){return H&&C(z.prototype,H),W&&C(z,W),Object.defineProperty(z,"prototype",{writable:!1}),z}var B=(D={},D[v.space]=!0,D[v.cr]=!0,D[v.feed]=!0,D[v.newline]=!0,D[v.tab]=!0,D),F=Object.assign({},B,(E={},E[v.comment]=!0,E));function $(z){return{line:z[d.FIELDS.START_LINE],column:z[d.FIELDS.START_COL]}}function X(z){return{line:z[d.FIELDS.END_LINE],column:z[d.FIELDS.END_COL]}}function K(z,H,W,I){return{start:{line:z,column:H},end:{line:W,column:I}}}function J(z){return K(z[d.FIELDS.START_LINE],z[d.FIELDS.START_COL],z[d.FIELDS.END_LINE],z[d.FIELDS.END_COL])}function q(z,H){if(!!z)return K(z[d.FIELDS.START_LINE],z[d.FIELDS.START_COL],H[d.FIELDS.END_LINE],H[d.FIELDS.END_COL])}function ve(z,H){var W=z[H];if(typeof W=="string")return W.indexOf("\\")!==-1&&((0,m.ensureObject)(z,"raws"),z[H]=(0,m.unesc)(W),z.raws[H]===void 0&&(z.raws[H]=W)),z}function qe(z,H){for(var W=-1,I=[];(W=z.indexOf(H,W+1))!==-1;)I.push(W);return I}function Je(){var z=Array.prototype.concat.apply([],arguments);return z.filter(function(H,W){return W===z.indexOf(H)})}var et=function(){function z(W,I){I===void 0&&(I={}),this.rule=W,this.options=Object.assign({lossy:!1,safe:!1},I),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,d.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var V=q(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new r.default({source:V}),this.root.errorGenerator=this._errorGenerator();var te=new n.default({source:{start:{line:1,column:1}},sourceIndex:0});this.root.append(te),this.current=te,this.loop()}var H=z.prototype;return H._errorGenerator=function(){var I=this;return function(V,te){return typeof I.rule=="string"?new Error(V):I.rule.error(V,te)}},H.attribute=function(){var I=[],V=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[d.FIELDS.TYPE]!==v.closeSquare;)I.push(this.currToken),this.position++;if(this.currToken[d.FIELDS.TYPE]!==v.closeSquare)return this.expected("closing square bracket",this.currToken[d.FIELDS.START_POS]);var te=I.length,T={source:K(V[1],V[2],this.currToken[3],this.currToken[4]),sourceIndex:V[d.FIELDS.START_POS]};if(te===1&&!~[v.word].indexOf(I[0][d.FIELDS.TYPE]))return this.expected("attribute",I[0][d.FIELDS.START_POS]);for(var ae=0,he="",ce="",ie=null,Ce=!1;ae<te;){var Ne=I[ae],oe=this.content(Ne),Oe=I[ae+1];switch(Ne[d.FIELDS.TYPE]){case v.space:if(Ce=!0,this.options.lossy)break;if(ie){(0,m.ensureObject)(T,"spaces",ie);var bt=T.spaces[ie].after||"";T.spaces[ie].after=bt+oe;var gt=(0,m.getProp)(T,"raws","spaces",ie,"after")||null;gt&&(T.raws.spaces[ie].after=gt+oe)}else he=he+oe,ce=ce+oe;break;case v.asterisk:if(Oe[d.FIELDS.TYPE]===v.equals)T.operator=oe,ie="operator";else if((!T.namespace||ie==="namespace"&&!Ce)&&Oe){he&&((0,m.ensureObject)(T,"spaces","attribute"),T.spaces.attribute.before=he,he=""),ce&&((0,m.ensureObject)(T,"raws","spaces","attribute"),T.raws.spaces.attribute.before=he,ce=""),T.namespace=(T.namespace||"")+oe;var Ze=(0,m.getProp)(T,"raws","namespace")||null;Ze&&(T.raws.namespace+=oe),ie="namespace"}Ce=!1;break;case v.dollar:if(ie==="value"){var Ue=(0,m.getProp)(T,"raws","value");T.value+="$",Ue&&(T.raws.value=Ue+"$");break}case v.caret:Oe[d.FIELDS.TYPE]===v.equals&&(T.operator=oe,ie="operator"),Ce=!1;break;case v.combinator:if(oe==="~"&&Oe[d.FIELDS.TYPE]===v.equals&&(T.operator=oe,ie="operator"),oe!=="|"){Ce=!1;break}Oe[d.FIELDS.TYPE]===v.equals?(T.operator=oe,ie="operator"):!T.namespace&&!T.attribute&&(T.namespace=!0),Ce=!1;break;case v.word:if(Oe&&this.content(Oe)==="|"&&I[ae+2]&&I[ae+2][d.FIELDS.TYPE]!==v.equals&&!T.operator&&!T.namespace)T.namespace=oe,ie="namespace";else if(!T.attribute||ie==="attribute"&&!Ce){he&&((0,m.ensureObject)(T,"spaces","attribute"),T.spaces.attribute.before=he,he=""),ce&&((0,m.ensureObject)(T,"raws","spaces","attribute"),T.raws.spaces.attribute.before=ce,ce=""),T.attribute=(T.attribute||"")+oe;var vt=(0,m.getProp)(T,"raws","attribute")||null;vt&&(T.raws.attribute+=oe),ie="attribute"}else if(!T.value&&T.value!==""||ie==="value"&&!(Ce||T.quoteMark)){var mt=(0,m.unesc)(oe),Tt=(0,m.getProp)(T,"raws","value")||"",A=T.value||"";T.value=A+mt,T.quoteMark=null,(mt!==oe||Tt)&&((0,m.ensureObject)(T,"raws"),T.raws.value=(Tt||A)+oe),ie="value"}else{var S=oe==="i"||oe==="I";(T.value||T.value==="")&&(T.quoteMark||Ce)?(T.insensitive=S,(!S||oe==="I")&&((0,m.ensureObject)(T,"raws"),T.raws.insensitiveFlag=oe),ie="insensitive",he&&((0,m.ensureObject)(T,"spaces","insensitive"),T.spaces.insensitive.before=he,he=""),ce&&((0,m.ensureObject)(T,"raws","spaces","insensitive"),T.raws.spaces.insensitive.before=ce,ce="")):(T.value||T.value==="")&&(ie="value",T.value+=oe,T.raws.value&&(T.raws.value+=oe))}Ce=!1;break;case v.str:if(!T.attribute||!T.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:Ne[d.FIELDS.START_POS]});var M=(0,l.unescapeValue)(oe),P=M.unescaped,k=M.quoteMark;T.value=P,T.quoteMark=k,ie="value",(0,m.ensureObject)(T,"raws"),T.raws.value=oe,Ce=!1;break;case v.equals:if(!T.attribute)return this.expected("attribute",Ne[d.FIELDS.START_POS],oe);if(T.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:Ne[d.FIELDS.START_POS]});T.operator=T.operator?T.operator+oe:oe,ie="operator",Ce=!1;break;case v.comment:if(ie)if(Ce||Oe&&Oe[d.FIELDS.TYPE]===v.space||ie==="insensitive"){var N=(0,m.getProp)(T,"spaces",ie,"after")||"",U=(0,m.getProp)(T,"raws","spaces",ie,"after")||N;(0,m.ensureObject)(T,"raws","spaces",ie),T.raws.spaces[ie].after=U+oe}else{var j=T[ie]||"",G=(0,m.getProp)(T,"raws",ie)||j;(0,m.ensureObject)(T,"raws"),T.raws[ie]=G+oe}else ce=ce+oe;break;default:return this.error('Unexpected "'+oe+'" found.',{index:Ne[d.FIELDS.START_POS]})}ae++}ve(T,"attribute"),ve(T,"namespace"),this.newNode(new l.default(T)),this.position++},H.parseWhitespaceEquivalentTokens=function(I){I<0&&(I=this.tokens.length);var V=this.position,te=[],T="",ae=void 0;do if(B[this.currToken[d.FIELDS.TYPE]])this.options.lossy||(T+=this.content());else if(this.currToken[d.FIELDS.TYPE]===v.comment){var he={};T&&(he.before=T,T=""),ae=new u.default({value:this.content(),source:J(this.currToken),sourceIndex:this.currToken[d.FIELDS.START_POS],spaces:he}),te.push(ae)}while(++this.position<I);if(T){if(ae)ae.spaces.after=T;else if(!this.options.lossy){var ce=this.tokens[V],ie=this.tokens[this.position-1];te.push(new s.default({value:"",source:K(ce[d.FIELDS.START_LINE],ce[d.FIELDS.START_COL],ie[d.FIELDS.END_LINE],ie[d.FIELDS.END_COL]),sourceIndex:ce[d.FIELDS.START_POS],spaces:{before:T,after:""}}))}}return te},H.convertWhitespaceNodesToSpace=function(I,V){var te=this;V===void 0&&(V=!1);var T="",ae="";I.forEach(function(ce){var ie=te.lossySpace(ce.spaces.before,V),Ce=te.lossySpace(ce.rawSpaceBefore,V);T+=ie+te.lossySpace(ce.spaces.after,V&&ie.length===0),ae+=ie+ce.value+te.lossySpace(ce.rawSpaceAfter,V&&Ce.length===0)}),ae===T&&(ae=void 0);var he={space:T,rawSpace:ae};return he},H.isNamedCombinator=function(I){return I===void 0&&(I=this.position),this.tokens[I+0]&&this.tokens[I+0][d.FIELDS.TYPE]===v.slash&&this.tokens[I+1]&&this.tokens[I+1][d.FIELDS.TYPE]===v.word&&this.tokens[I+2]&&this.tokens[I+2][d.FIELDS.TYPE]===v.slash},H.namedCombinator=function(){if(this.isNamedCombinator()){var I=this.content(this.tokens[this.position+1]),V=(0,m.unesc)(I).toLowerCase(),te={};V!==I&&(te.value="/"+I+"/");var T=new h.default({value:"/"+V+"/",source:K(this.currToken[d.FIELDS.START_LINE],this.currToken[d.FIELDS.START_COL],this.tokens[this.position+2][d.FIELDS.END_LINE],this.tokens[this.position+2][d.FIELDS.END_COL]),sourceIndex:this.currToken[d.FIELDS.START_POS],raws:te});return this.position=this.position+3,T}else this.unexpected()},H.combinator=function(){var I=this;if(this.content()==="|")return this.namespace();var V=this.locateNextMeaningfulToken(this.position);if(V<0||this.tokens[V][d.FIELDS.TYPE]===v.comma||this.tokens[V][d.FIELDS.TYPE]===v.closeParenthesis){var te=this.parseWhitespaceEquivalentTokens(V);if(te.length>0){var T=this.current.last;if(T){var ae=this.convertWhitespaceNodesToSpace(te),he=ae.space,ce=ae.rawSpace;ce!==void 0&&(T.rawSpaceAfter+=ce),T.spaces.after+=he}else te.forEach(function(Tt){return I.newNode(Tt)})}return}var ie=this.currToken,Ce=void 0;V>this.position&&(Ce=this.parseWhitespaceEquivalentTokens(V));var Ne;if(this.isNamedCombinator()?Ne=this.namedCombinator():this.currToken[d.FIELDS.TYPE]===v.combinator?(Ne=new h.default({value:this.content(),source:J(this.currToken),sourceIndex:this.currToken[d.FIELDS.START_POS]}),this.position++):B[this.currToken[d.FIELDS.TYPE]]||Ce||this.unexpected(),Ne){if(Ce){var oe=this.convertWhitespaceNodesToSpace(Ce),Oe=oe.space,bt=oe.rawSpace;Ne.spaces.before=Oe,Ne.rawSpaceBefore=bt}}else{var gt=this.convertWhitespaceNodesToSpace(Ce,!0),Ze=gt.space,Ue=gt.rawSpace;Ue||(Ue=Ze);var vt={},mt={spaces:{}};Ze.endsWith(" ")&&Ue.endsWith(" ")?(vt.before=Ze.slice(0,Ze.length-1),mt.spaces.before=Ue.slice(0,Ue.length-1)):Ze[0]===" "&&Ue[0]===" "?(vt.after=Ze.slice(1),mt.spaces.after=Ue.slice(1)):mt.value=Ue,Ne=new h.default({value:" ",source:q(ie,this.tokens[this.position-1]),sourceIndex:ie[d.FIELDS.START_POS],spaces:vt,raws:mt})}return this.currToken&&this.currToken[d.FIELDS.TYPE]===v.space&&(Ne.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(Ne)},H.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var I=new n.default({source:{start:$(this.tokens[this.position+1])},sourceIndex:this.tokens[this.position+1][d.FIELDS.START_POS]});this.current.parent.append(I),this.current=I,this.position++},H.comment=function(){var I=this.currToken;this.newNode(new u.default({value:this.content(),source:J(I),sourceIndex:I[d.FIELDS.START_POS]})),this.position++},H.error=function(I,V){throw this.root.error(I,V)},H.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[d.FIELDS.START_POS]})},H.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[d.FIELDS.START_POS])},H.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[d.FIELDS.START_POS])},H.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[d.FIELDS.START_POS])},H.unexpectedPipe=function(){return this.error("Unexpected '|'.",this.currToken[d.FIELDS.START_POS])},H.namespace=function(){var I=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[d.FIELDS.TYPE]===v.word)return this.position++,this.word(I);if(this.nextToken[d.FIELDS.TYPE]===v.asterisk)return this.position++,this.universal(I);this.unexpectedPipe()},H.nesting=function(){if(this.nextToken){var I=this.content(this.nextToken);if(I==="|"){this.position++;return}}var V=this.currToken;this.newNode(new g.default({value:this.content(),source:J(V),sourceIndex:V[d.FIELDS.START_POS]})),this.position++},H.parentheses=function(){var I=this.current.last,V=1;if(this.position++,I&&I.type===p.PSEUDO){var te=new n.default({source:{start:$(this.tokens[this.position])},sourceIndex:this.tokens[this.position][d.FIELDS.START_POS]}),T=this.current;for(I.append(te),this.current=te;this.position<this.tokens.length&&V;)this.currToken[d.FIELDS.TYPE]===v.openParenthesis&&V++,this.currToken[d.FIELDS.TYPE]===v.closeParenthesis&&V--,V?this.parse():(this.current.source.end=X(this.currToken),this.current.parent.source.end=X(this.currToken),this.position++);this.current=T}else{for(var ae=this.currToken,he="(",ce;this.position<this.tokens.length&&V;)this.currToken[d.FIELDS.TYPE]===v.openParenthesis&&V++,this.currToken[d.FIELDS.TYPE]===v.closeParenthesis&&V--,ce=this.currToken,he+=this.parseParenthesisToken(this.currToken),this.position++;I?I.appendToPropertyAndEscape("value",he,he):this.newNode(new s.default({value:he,source:K(ae[d.FIELDS.START_LINE],ae[d.FIELDS.START_COL],ce[d.FIELDS.END_LINE],ce[d.FIELDS.END_COL]),sourceIndex:ae[d.FIELDS.START_POS]}))}if(V)return this.expected("closing parenthesis",this.currToken[d.FIELDS.START_POS])},H.pseudo=function(){for(var I=this,V="",te=this.currToken;this.currToken&&this.currToken[d.FIELDS.TYPE]===v.colon;)V+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[d.FIELDS.TYPE]===v.word)this.splitWord(!1,function(T,ae){V+=T,I.newNode(new c.default({value:V,source:q(te,I.currToken),sourceIndex:te[d.FIELDS.START_POS]})),ae>1&&I.nextToken&&I.nextToken[d.FIELDS.TYPE]===v.openParenthesis&&I.error("Misplaced parenthesis.",{index:I.nextToken[d.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[d.FIELDS.START_POS])},H.space=function(){var I=this.content();this.position===0||this.prevToken[d.FIELDS.TYPE]===v.comma||this.prevToken[d.FIELDS.TYPE]===v.openParenthesis||this.current.nodes.every(function(V){return V.type==="comment"})?(this.spaces=this.optionalSpace(I),this.position++):this.position===this.tokens.length-1||this.nextToken[d.FIELDS.TYPE]===v.comma||this.nextToken[d.FIELDS.TYPE]===v.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(I),this.position++):this.combinator()},H.string=function(){var I=this.currToken;this.newNode(new s.default({value:this.content(),source:J(I),sourceIndex:I[d.FIELDS.START_POS]})),this.position++},H.universal=function(I){var V=this.nextToken;if(V&&this.content(V)==="|")return this.position++,this.namespace();var te=this.currToken;this.newNode(new f.default({value:this.content(),source:J(te),sourceIndex:te[d.FIELDS.START_POS]}),I),this.position++},H.splitWord=function(I,V){for(var te=this,T=this.nextToken,ae=this.content();T&&~[v.dollar,v.caret,v.equals,v.word].indexOf(T[d.FIELDS.TYPE]);){this.position++;var he=this.content();if(ae+=he,he.lastIndexOf("\\")===he.length-1){var ce=this.nextToken;ce&&ce[d.FIELDS.TYPE]===v.space&&(ae+=this.requiredSpace(this.content(ce)),this.position++)}T=this.nextToken}var ie=qe(ae,".").filter(function(Oe){var bt=ae[Oe-1]==="\\",gt=/^\d+\.\d+%$/.test(ae);return!bt&&!gt}),Ce=qe(ae,"#").filter(function(Oe){return ae[Oe-1]!=="\\"}),Ne=qe(ae,"#{");Ne.length&&(Ce=Ce.filter(function(Oe){return!~Ne.indexOf(Oe)}));var oe=(0,y.default)(Je([0].concat(ie,Ce)));oe.forEach(function(Oe,bt){var gt=oe[bt+1]||ae.length,Ze=ae.slice(Oe,gt);if(bt===0&&V)return V.call(te,Ze,oe.length);var Ue,vt=te.currToken,mt=vt[d.FIELDS.START_POS]+oe[bt],Tt=K(vt[1],vt[2]+Oe,vt[3],vt[2]+(gt-1));if(~ie.indexOf(Oe)){var A={value:Ze.slice(1),source:Tt,sourceIndex:mt};Ue=new i.default(ve(A,"value"))}else if(~Ce.indexOf(Oe)){var S={value:Ze.slice(1),source:Tt,sourceIndex:mt};Ue=new o.default(ve(S,"value"))}else{var M={value:Ze,source:Tt,sourceIndex:mt};ve(M,"value"),Ue=new a.default(M)}te.newNode(Ue,I),I=null}),this.position++},H.word=function(I){var V=this.nextToken;return V&&this.content(V)==="|"?(this.position++,this.namespace()):this.splitWord(I)},H.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},H.parse=function(I){switch(this.currToken[d.FIELDS.TYPE]){case v.space:this.space();break;case v.comment:this.comment();break;case v.openParenthesis:this.parentheses();break;case v.closeParenthesis:I&&this.missingParenthesis();break;case v.openSquare:this.attribute();break;case v.dollar:case v.caret:case v.equals:case v.word:this.word();break;case v.colon:this.pseudo();break;case v.comma:this.comma();break;case v.asterisk:this.universal();break;case v.ampersand:this.nesting();break;case v.slash:case v.combinator:this.combinator();break;case v.str:this.string();break;case v.closeSquare:this.missingSquareBracket();case v.semicolon:this.missingBackslash();default:this.unexpected()}},H.expected=function(I,V,te){if(Array.isArray(I)){var T=I.pop();I=I.join(", ")+" or "+T}var ae=/^[aeiou]/.test(I[0])?"an":"a";return te?this.error("Expected "+ae+" "+I+', found "'+te+'" instead.',{index:V}):this.error("Expected "+ae+" "+I+".",{index:V})},H.requiredSpace=function(I){return this.options.lossy?" ":I},H.optionalSpace=function(I){return this.options.lossy?"":I},H.lossySpace=function(I,V){return this.options.lossy?V?" ":"":I},H.parseParenthesisToken=function(I){var V=this.content(I);return I[d.FIELDS.TYPE]===v.space?this.requiredSpace(V):V},H.newNode=function(I,V){return V&&(/^ +$/.test(V)&&(this.options.lossy||(this.spaces=(this.spaces||"")+V),V=!0),I.namespace=V,ve(I,"namespace")),this.spaces&&(I.spaces.before=this.spaces,this.spaces=""),this.current.append(I)},H.content=function(I){return I===void 0&&(I=this.currToken),this.css.slice(I[d.FIELDS.START_POS],I[d.FIELDS.END_POS])},H.locateNextMeaningfulToken=function(I){I===void 0&&(I=this.position+1);for(var V=I;V<this.tokens.length;)if(F[this.tokens[V][d.FIELDS.TYPE]]){V++;continue}else return V;return-1},b(z,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),z}();e.default=et,t.exports=e.default}(Zo,Zo.exports),function(t,e){e.__esModule=!0,e.default=void 0;var r=n(Zo.exports);function n(u){return u&&u.__esModule?u:{default:u}}var i=function(){function u(a,s){this.func=a||function(){},this.funcRes=null,this.options=s}var o=u.prototype;return o._shouldUpdateSelector=function(s,c){c===void 0&&(c={});var l=Object.assign({},this.options,c);return l.updateSelector===!1?!1:typeof s!="string"},o._isLossy=function(s){s===void 0&&(s={});var c=Object.assign({},this.options,s);return c.lossless===!1},o._root=function(s,c){c===void 0&&(c={});var l=new r.default(s,this._parseOptions(c));return l.root},o._parseOptions=function(s){return{lossy:this._isLossy(s)}},o._run=function(s,c){var l=this;return c===void 0&&(c={}),new Promise(function(f,h){try{var g=l._root(s,c);Promise.resolve(l.func(g)).then(function(y){var d=void 0;return l._shouldUpdateSelector(s,c)&&(d=g.toString(),s.selector=d),{transform:y,root:g,string:d}}).then(f,h)}catch(y){h(y);return}})},o._runSync=function(s,c){c===void 0&&(c={});var l=this._root(s,c),f=this.func(l);if(f&&typeof f.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var h=void 0;return c.updateSelector&&typeof s!="string"&&(h=l.toString(),s.selector=h),{transform:f,root:l,string:h}},o.ast=function(s,c){return this._run(s,c).then(function(l){return l.root})},o.astSync=function(s,c){return this._runSync(s,c).root},o.transform=function(s,c){return this._run(s,c).then(function(l){return l.transform})},o.transformSync=function(s,c){return this._runSync(s,c).transform},o.process=function(s,c){return this._run(s,c).then(function(l){return l.string||l.root.toString()})},o.processSync=function(s,c){var l=this._runSync(s,c);return l.string||l.root.toString()},u}();e.default=i,t.exports=e.default}(Jo,Jo.exports);var uf={},Fe={};Fe.__esModule=!0,Fe.universal=Fe.tag=Fe.string=Fe.selector=Fe.root=Fe.pseudo=Fe.nesting=Fe.id=Fe.comment=Fe.combinator=Fe.className=Fe.attribute=void 0;var U6=Ct(rs),V6=Ct(Ni.exports),W6=Ct(Ui.exports),z6=Ct($i.exports),G6=Ct(Ri.exports),H6=Ct(Vi.exports),Q6=Ct(qi.exports),J6=Ct(xi.exports),Z6=Ct(Pi.exports),X6=Ct(ki.exports),K6=Ct(Li.exports),Y6=Ct(ji.exports);function Ct(t){return t&&t.__esModule?t:{default:t}}var e_=function(e){return new U6.default(e)};Fe.attribute=e_;var t_=function(e){return new V6.default(e)};Fe.className=t_;var r_=function(e){return new W6.default(e)};Fe.combinator=r_;var n_=function(e){return new z6.default(e)};Fe.comment=n_;var i_=function(e){return new G6.default(e)};Fe.id=i_;var u_=function(e){return new H6.default(e)};Fe.nesting=u_;var o_=function(e){return new Q6.default(e)};Fe.pseudo=o_;var s_=function(e){return new J6.default(e)};Fe.root=s_;var a_=function(e){return new Z6.default(e)};Fe.selector=a_;var l_=function(e){return new X6.default(e)};Fe.string=l_;var c_=function(e){return new K6.default(e)};Fe.tag=c_;var f_=function(e){return new Y6.default(e)};Fe.universal=f_;var pe={};pe.__esModule=!0,pe.isComment=pe.isCombinator=pe.isClassName=pe.isAttribute=void 0,pe.isContainer=A_,pe.isIdentifier=void 0,pe.isNamespace=b_,pe.isNesting=void 0,pe.isNode=is,pe.isPseudo=void 0,pe.isPseudoClass=C_,pe.isPseudoElement=af,pe.isUniversal=pe.isTag=pe.isString=pe.isSelector=pe.isRoot=void 0;var Me=le,ut,h_=(ut={},ut[Me.ATTRIBUTE]=!0,ut[Me.CLASS]=!0,ut[Me.COMBINATOR]=!0,ut[Me.COMMENT]=!0,ut[Me.ID]=!0,ut[Me.NESTING]=!0,ut[Me.PSEUDO]=!0,ut[Me.ROOT]=!0,ut[Me.SELECTOR]=!0,ut[Me.STRING]=!0,ut[Me.TAG]=!0,ut[Me.UNIVERSAL]=!0,ut);function is(t){return typeof t=="object"&&h_[t.type]}function At(t,e){return is(e)&&e.type===t}var of=At.bind(null,Me.ATTRIBUTE);pe.isAttribute=of;var d_=At.bind(null,Me.CLASS);pe.isClassName=d_;var p_=At.bind(null,Me.COMBINATOR);pe.isCombinator=p_;var g_=At.bind(null,Me.COMMENT);pe.isComment=g_;var v_=At.bind(null,Me.ID);pe.isIdentifier=v_;var m_=At.bind(null,Me.NESTING);pe.isNesting=m_;var us=At.bind(null,Me.PSEUDO);pe.isPseudo=us;var y_=At.bind(null,Me.ROOT);pe.isRoot=y_;var D_=At.bind(null,Me.SELECTOR);pe.isSelector=D_;var E_=At.bind(null,Me.STRING);pe.isString=E_;var sf=At.bind(null,Me.TAG);pe.isTag=sf;var w_=At.bind(null,Me.UNIVERSAL);pe.isUniversal=w_;function af(t){return us(t)&&t.value&&(t.value.startsWith("::")||t.value.toLowerCase()===":before"||t.value.toLowerCase()===":after"||t.value.toLowerCase()===":first-letter"||t.value.toLowerCase()===":first-line")}function C_(t){return us(t)&&!af(t)}function A_(t){return!!(is(t)&&t.walk)}function b_(t){return of(t)||sf(t)}(function(t){t.__esModule=!0;var e=le;Object.keys(e).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===e[i]||(t[i]=e[i])});var r=Fe;Object.keys(r).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===r[i]||(t[i]=r[i])});var n=pe;Object.keys(n).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===n[i]||(t[i]=n[i])})})(uf),function(t,e){e.__esModule=!0,e.default=void 0;var r=o(Jo.exports),n=u(uf);function i(c){if(typeof WeakMap!="function")return null;var l=new WeakMap,f=new WeakMap;return(i=function(g){return g?f:l})(c)}function u(c,l){if(!l&&c&&c.__esModule)return c;if(c===null||typeof c!="object"&&typeof c!="function")return{default:c};var f=i(l);if(f&&f.has(c))return f.get(c);var h={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in c)if(y!=="default"&&Object.prototype.hasOwnProperty.call(c,y)){var d=g?Object.getOwnPropertyDescriptor(c,y):null;d&&(d.get||d.set)?Object.defineProperty(h,y,d):h[y]=c[y]}return h.default=c,f&&f.set(c,h),h}function o(c){return c&&c.__esModule?c:{default:c}}var a=function(l){return new r.default(l)};Object.assign(a,n),delete a.__esModule;var s=a;e.default=s,t.exports=e.default}(Qo,Qo.exports);const{AtRule:F_,Rule:lf}=be;let cf=Qo.exports;function os(t,e){let r;try{cf(n=>{r=n}).processSync(t)}catch(n){throw t.includes(":")?e?e.error("Missed semicolon"):n:e?e.error(n.message):n}return r.at(0)}function ff(t,e){let r=!1;return t.each(n=>{if(n.type==="nesting"){let i=e.clone({});n.value!=="&"?n.replaceWith(os(n.value.replace("&",i.toString()))):n.replaceWith(i),r=!0}else"nodes"in n&&n.nodes&&ff(n,e)&&(r=!0)}),r}function hf(t,e){let r=[];for(let n of t.selectors){let i=os(n,t);for(let u of e.selectors){if(!u)continue;let o=os(u,e);ff(o,i)||(o.prepend(cf.combinator({value:" "})),o.prepend(i.clone({}))),r.push(o.toString())}}return r}function Wi(t,e){var i;if(((i=t.prev())==null?void 0:i.type)!=="comment")return e.after(t),t;let r=t.prev(),n=/[*]\/ *\n.*{/;return t.parent.toString().match(n)?e.after(t).after(r):e.after(t),t}function __(t){return function e(r,n,i,u=i){let o=[];if(n.each(a=>{a.type==="rule"&&i?u&&(a.selectors=hf(r,a)):a.type==="atrule"&&a.nodes?t[a.name]?e(r,a,u):n[as]!==!1&&o.push(a):o.push(a)}),i&&o.length){let a=r.clone({nodes:[]});for(let s of o)a.append(s);n.prepend(a)}}}function B_(t,e,r){let n=new lf({nodes:[],selector:t});return n.append(e),r.after(n),n}function ss(t,e,r,n=!0){return e.length?(r=B_(t,e,r),n&&(e=[]),[r,e]):[r,e]}function df(t,e=""){let r=t.concat(e),n={};for(let i of r)n[i.replace(/^@/,"")]=!0;return n}function S_(t){t=t.trim();let e=t.match(/^\((.*)\)$/);if(!e)return{selector:t,type:"basic"};let r=e[1].match(/^(with(?:out)?):(.+)$/);if(r){let n=r[1]==="with",i=Object.fromEntries(r[2].trim().split(/\s+/).map(o=>[o,!0]));if(n&&i.all)return{type:"noop"};let u=o=>!!i[o];return i.all?u=()=>!0:n&&(u=o=>o==="all"?!1:!i[o]),{escapes:u,type:"withrules"}}return{type:"unknown"}}function O_(t){let e=[],r=t.parent;for(;r&&r instanceof F_;)e.push(r),r=r.parent;return e}function M_(t){let e=t[pf];if(!e)t.after(t.nodes);else{let r=t.nodes,n,i=-1,u,o,a,s=O_(t);if(s.forEach((c,l)=>{if(e(c.name))n=c,i=l,o=a;else{let f=a;a=c.clone({nodes:[]}),f&&a.append(f),u=u||a}}),n?o?(u.append(r),n.after(o)):n.after(r):t.after(r),t.next()&&n){let c;s.slice(0,i+1).forEach((l,f,h)=>{let g=c;c=l.clone({nodes:[]}),g&&c.append(g);let y=[],v=(h[f-1]||t).next();for(;v;)y.push(v),v=v.next();c.append(y)}),c&&(o||r[r.length-1]).after(c)}}t.remove()}const as=Symbol("rootRuleMergeSel"),pf=Symbol("rootRuleEscapes");function x_(t){let{params:e}=t,{escapes:r,selector:n,type:i}=S_(e);if(i==="unknown")throw t.error(`Unknown @${t.name} parameter ${JSON.stringify(e)}`);if(i==="basic"&&n){let u=new lf({nodes:t.nodes,selector:n});t.removeAll(),t.append(u)}t[pf]=r,t[as]=r?!r("all"):i==="noop"}const ls=Symbol("hasRootRule");Ho.exports=(t={})=>{let e=df(["media","supports","layer","container","starting-style"],t.bubble),r=__(e),n=df(["document","font-face","keyframes","-webkit-keyframes","-moz-keyframes"],t.unwrap),i=(t.rootRuleName||"at-root").replace(/^@/,""),u=t.preserveEmpty;return{Once(o){o.walkAtRules(i,a=>{x_(a),o[ls]=!0})},postcssPlugin:"postcss-nested",RootExit(o){!o[ls]||(o.walkAtRules(i,M_),o[ls]=!1)},Rule(o){let a=!1,s=o,c=!1,l=[];o.each(f=>{switch(f.type){case"atrule":[s,l]=ss(o.selector,l,s),f.name===i?(a=!0,r(o,f,!0,f[as]),s=Wi(f,s)):e[f.name]?(c=!0,a=!0,r(o,f,!0),s=Wi(f,s)):n[f.name]?(c=!0,a=!0,r(o,f,!1),s=Wi(f,s)):c&&l.push(f);break;case"decl":c&&l.push(f);break;case"rule":[s,l]=ss(o.selector,l,s),c=!0,a=!0,f.selectors=hf(o,f),s=Wi(f,s);break}}),ss(o.selector,l,s,!1),a&&u!==!0&&(o.raws.semicolon=!0,o.nodes.length===0&&o.remove())}}},Ho.exports.postcss=!0;var I_=Ho.exports;class T_{constructor(e,r=!0){this.config=e,this.isPc=r}apply(e){var a,s,c;this.engine=e;const r=(s=(a=this.config)==null?void 0:a.source)!=null?s:"";let n=document.createElement("style");n.className="edit-css-"+e.id;let i=document.querySelector("head");i==null||i.appendChild(n);const u=[I_()];this.isPc&&u.push(UF({prefix:`.render-engine-${(c=this.engine)==null?void 0:c.id}`,transform(l,f){return f.startsWith(l)?f:`${l} ${f}`}}));const o=be(u).process(r,{from:void 0}).css;n.appendChild(document.createTextNode(o))}}ue.CalcPlugin=jA,ue.ControlsEventPlugin=t5,ue.ES6ModulePlugin=KC,ue.Engine=Qu,ue.LifecycleEventPlugin=e5,ue.Plugin=XC,ue.StylePlugin=T_,ue.buildUUID=en,ue.hasChildrenControl=qn,ue.loopDataViewControl=dr,ue.loopFormControl=hr,ue.parseModule=Ta,Object.defineProperty(ue,"__esModule",{value:!0})});
|
|
57
|
+
`),K=J.length-1,K>0?(ve=w+K,qe=q-J[K].length):(ve=w,qe=E),et=e.comment,w=ve,F=ve,B=q-qe):C===e.slash?(q=_,et=C,F=w,B=_-E,O=q+1):(q=f(p,_),et=e.word,F=w,B=q-E),O=q+1;break}v.push([et,w,_-E,F,B,_,O]),qe&&(E=qe,qe=null),_=O}return v}}(rf),function(t,e){e.__esModule=!0,e.default=void 0;var r=O(xi.exports),n=O(Pi.exports),i=O(Ni.exports),u=O($i.exports),o=O(Ri.exports),a=O(Li.exports),s=O(ki.exports),c=O(qi.exports),l=_(rs),f=O(ji.exports),h=O(Ui.exports),g=O(Vi.exports),y=O(ns.exports),d=_(rf),v=_(Q),p=_(le),m=pt,D,E;function w(z){if(typeof WeakMap!="function")return null;var H=new WeakMap,W=new WeakMap;return(w=function(V){return V?W:H})(z)}function _(z,H){if(!H&&z&&z.__esModule)return z;if(z===null||typeof z!="object"&&typeof z!="function")return{default:z};var W=w(H);if(W&&W.has(z))return W.get(z);var I={},V=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var te in z)if(te!=="default"&&Object.prototype.hasOwnProperty.call(z,te)){var T=V?Object.getOwnPropertyDescriptor(z,te):null;T&&(T.get||T.set)?Object.defineProperty(I,te,T):I[te]=z[te]}return I.default=z,W&&W.set(z,I),I}function O(z){return z&&z.__esModule?z:{default:z}}function C(z,H){for(var W=0;W<H.length;W++){var I=H[W];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(z,I.key,I)}}function b(z,H,W){return H&&C(z.prototype,H),W&&C(z,W),Object.defineProperty(z,"prototype",{writable:!1}),z}var B=(D={},D[v.space]=!0,D[v.cr]=!0,D[v.feed]=!0,D[v.newline]=!0,D[v.tab]=!0,D),F=Object.assign({},B,(E={},E[v.comment]=!0,E));function $(z){return{line:z[d.FIELDS.START_LINE],column:z[d.FIELDS.START_COL]}}function X(z){return{line:z[d.FIELDS.END_LINE],column:z[d.FIELDS.END_COL]}}function K(z,H,W,I){return{start:{line:z,column:H},end:{line:W,column:I}}}function J(z){return K(z[d.FIELDS.START_LINE],z[d.FIELDS.START_COL],z[d.FIELDS.END_LINE],z[d.FIELDS.END_COL])}function q(z,H){if(!!z)return K(z[d.FIELDS.START_LINE],z[d.FIELDS.START_COL],H[d.FIELDS.END_LINE],H[d.FIELDS.END_COL])}function ve(z,H){var W=z[H];if(typeof W=="string")return W.indexOf("\\")!==-1&&((0,m.ensureObject)(z,"raws"),z[H]=(0,m.unesc)(W),z.raws[H]===void 0&&(z.raws[H]=W)),z}function qe(z,H){for(var W=-1,I=[];(W=z.indexOf(H,W+1))!==-1;)I.push(W);return I}function Je(){var z=Array.prototype.concat.apply([],arguments);return z.filter(function(H,W){return W===z.indexOf(H)})}var et=function(){function z(W,I){I===void 0&&(I={}),this.rule=W,this.options=Object.assign({lossy:!1,safe:!1},I),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,d.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var V=q(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new r.default({source:V}),this.root.errorGenerator=this._errorGenerator();var te=new n.default({source:{start:{line:1,column:1}},sourceIndex:0});this.root.append(te),this.current=te,this.loop()}var H=z.prototype;return H._errorGenerator=function(){var I=this;return function(V,te){return typeof I.rule=="string"?new Error(V):I.rule.error(V,te)}},H.attribute=function(){var I=[],V=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[d.FIELDS.TYPE]!==v.closeSquare;)I.push(this.currToken),this.position++;if(this.currToken[d.FIELDS.TYPE]!==v.closeSquare)return this.expected("closing square bracket",this.currToken[d.FIELDS.START_POS]);var te=I.length,T={source:K(V[1],V[2],this.currToken[3],this.currToken[4]),sourceIndex:V[d.FIELDS.START_POS]};if(te===1&&!~[v.word].indexOf(I[0][d.FIELDS.TYPE]))return this.expected("attribute",I[0][d.FIELDS.START_POS]);for(var ae=0,he="",ce="",ie=null,Ce=!1;ae<te;){var Ne=I[ae],oe=this.content(Ne),Oe=I[ae+1];switch(Ne[d.FIELDS.TYPE]){case v.space:if(Ce=!0,this.options.lossy)break;if(ie){(0,m.ensureObject)(T,"spaces",ie);var bt=T.spaces[ie].after||"";T.spaces[ie].after=bt+oe;var gt=(0,m.getProp)(T,"raws","spaces",ie,"after")||null;gt&&(T.raws.spaces[ie].after=gt+oe)}else he=he+oe,ce=ce+oe;break;case v.asterisk:if(Oe[d.FIELDS.TYPE]===v.equals)T.operator=oe,ie="operator";else if((!T.namespace||ie==="namespace"&&!Ce)&&Oe){he&&((0,m.ensureObject)(T,"spaces","attribute"),T.spaces.attribute.before=he,he=""),ce&&((0,m.ensureObject)(T,"raws","spaces","attribute"),T.raws.spaces.attribute.before=he,ce=""),T.namespace=(T.namespace||"")+oe;var Ze=(0,m.getProp)(T,"raws","namespace")||null;Ze&&(T.raws.namespace+=oe),ie="namespace"}Ce=!1;break;case v.dollar:if(ie==="value"){var Ue=(0,m.getProp)(T,"raws","value");T.value+="$",Ue&&(T.raws.value=Ue+"$");break}case v.caret:Oe[d.FIELDS.TYPE]===v.equals&&(T.operator=oe,ie="operator"),Ce=!1;break;case v.combinator:if(oe==="~"&&Oe[d.FIELDS.TYPE]===v.equals&&(T.operator=oe,ie="operator"),oe!=="|"){Ce=!1;break}Oe[d.FIELDS.TYPE]===v.equals?(T.operator=oe,ie="operator"):!T.namespace&&!T.attribute&&(T.namespace=!0),Ce=!1;break;case v.word:if(Oe&&this.content(Oe)==="|"&&I[ae+2]&&I[ae+2][d.FIELDS.TYPE]!==v.equals&&!T.operator&&!T.namespace)T.namespace=oe,ie="namespace";else if(!T.attribute||ie==="attribute"&&!Ce){he&&((0,m.ensureObject)(T,"spaces","attribute"),T.spaces.attribute.before=he,he=""),ce&&((0,m.ensureObject)(T,"raws","spaces","attribute"),T.raws.spaces.attribute.before=ce,ce=""),T.attribute=(T.attribute||"")+oe;var vt=(0,m.getProp)(T,"raws","attribute")||null;vt&&(T.raws.attribute+=oe),ie="attribute"}else if(!T.value&&T.value!==""||ie==="value"&&!(Ce||T.quoteMark)){var mt=(0,m.unesc)(oe),Tt=(0,m.getProp)(T,"raws","value")||"",A=T.value||"";T.value=A+mt,T.quoteMark=null,(mt!==oe||Tt)&&((0,m.ensureObject)(T,"raws"),T.raws.value=(Tt||A)+oe),ie="value"}else{var S=oe==="i"||oe==="I";(T.value||T.value==="")&&(T.quoteMark||Ce)?(T.insensitive=S,(!S||oe==="I")&&((0,m.ensureObject)(T,"raws"),T.raws.insensitiveFlag=oe),ie="insensitive",he&&((0,m.ensureObject)(T,"spaces","insensitive"),T.spaces.insensitive.before=he,he=""),ce&&((0,m.ensureObject)(T,"raws","spaces","insensitive"),T.raws.spaces.insensitive.before=ce,ce="")):(T.value||T.value==="")&&(ie="value",T.value+=oe,T.raws.value&&(T.raws.value+=oe))}Ce=!1;break;case v.str:if(!T.attribute||!T.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:Ne[d.FIELDS.START_POS]});var M=(0,l.unescapeValue)(oe),P=M.unescaped,k=M.quoteMark;T.value=P,T.quoteMark=k,ie="value",(0,m.ensureObject)(T,"raws"),T.raws.value=oe,Ce=!1;break;case v.equals:if(!T.attribute)return this.expected("attribute",Ne[d.FIELDS.START_POS],oe);if(T.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:Ne[d.FIELDS.START_POS]});T.operator=T.operator?T.operator+oe:oe,ie="operator",Ce=!1;break;case v.comment:if(ie)if(Ce||Oe&&Oe[d.FIELDS.TYPE]===v.space||ie==="insensitive"){var N=(0,m.getProp)(T,"spaces",ie,"after")||"",U=(0,m.getProp)(T,"raws","spaces",ie,"after")||N;(0,m.ensureObject)(T,"raws","spaces",ie),T.raws.spaces[ie].after=U+oe}else{var j=T[ie]||"",G=(0,m.getProp)(T,"raws",ie)||j;(0,m.ensureObject)(T,"raws"),T.raws[ie]=G+oe}else ce=ce+oe;break;default:return this.error('Unexpected "'+oe+'" found.',{index:Ne[d.FIELDS.START_POS]})}ae++}ve(T,"attribute"),ve(T,"namespace"),this.newNode(new l.default(T)),this.position++},H.parseWhitespaceEquivalentTokens=function(I){I<0&&(I=this.tokens.length);var V=this.position,te=[],T="",ae=void 0;do if(B[this.currToken[d.FIELDS.TYPE]])this.options.lossy||(T+=this.content());else if(this.currToken[d.FIELDS.TYPE]===v.comment){var he={};T&&(he.before=T,T=""),ae=new u.default({value:this.content(),source:J(this.currToken),sourceIndex:this.currToken[d.FIELDS.START_POS],spaces:he}),te.push(ae)}while(++this.position<I);if(T){if(ae)ae.spaces.after=T;else if(!this.options.lossy){var ce=this.tokens[V],ie=this.tokens[this.position-1];te.push(new s.default({value:"",source:K(ce[d.FIELDS.START_LINE],ce[d.FIELDS.START_COL],ie[d.FIELDS.END_LINE],ie[d.FIELDS.END_COL]),sourceIndex:ce[d.FIELDS.START_POS],spaces:{before:T,after:""}}))}}return te},H.convertWhitespaceNodesToSpace=function(I,V){var te=this;V===void 0&&(V=!1);var T="",ae="";I.forEach(function(ce){var ie=te.lossySpace(ce.spaces.before,V),Ce=te.lossySpace(ce.rawSpaceBefore,V);T+=ie+te.lossySpace(ce.spaces.after,V&&ie.length===0),ae+=ie+ce.value+te.lossySpace(ce.rawSpaceAfter,V&&Ce.length===0)}),ae===T&&(ae=void 0);var he={space:T,rawSpace:ae};return he},H.isNamedCombinator=function(I){return I===void 0&&(I=this.position),this.tokens[I+0]&&this.tokens[I+0][d.FIELDS.TYPE]===v.slash&&this.tokens[I+1]&&this.tokens[I+1][d.FIELDS.TYPE]===v.word&&this.tokens[I+2]&&this.tokens[I+2][d.FIELDS.TYPE]===v.slash},H.namedCombinator=function(){if(this.isNamedCombinator()){var I=this.content(this.tokens[this.position+1]),V=(0,m.unesc)(I).toLowerCase(),te={};V!==I&&(te.value="/"+I+"/");var T=new h.default({value:"/"+V+"/",source:K(this.currToken[d.FIELDS.START_LINE],this.currToken[d.FIELDS.START_COL],this.tokens[this.position+2][d.FIELDS.END_LINE],this.tokens[this.position+2][d.FIELDS.END_COL]),sourceIndex:this.currToken[d.FIELDS.START_POS],raws:te});return this.position=this.position+3,T}else this.unexpected()},H.combinator=function(){var I=this;if(this.content()==="|")return this.namespace();var V=this.locateNextMeaningfulToken(this.position);if(V<0||this.tokens[V][d.FIELDS.TYPE]===v.comma||this.tokens[V][d.FIELDS.TYPE]===v.closeParenthesis){var te=this.parseWhitespaceEquivalentTokens(V);if(te.length>0){var T=this.current.last;if(T){var ae=this.convertWhitespaceNodesToSpace(te),he=ae.space,ce=ae.rawSpace;ce!==void 0&&(T.rawSpaceAfter+=ce),T.spaces.after+=he}else te.forEach(function(Tt){return I.newNode(Tt)})}return}var ie=this.currToken,Ce=void 0;V>this.position&&(Ce=this.parseWhitespaceEquivalentTokens(V));var Ne;if(this.isNamedCombinator()?Ne=this.namedCombinator():this.currToken[d.FIELDS.TYPE]===v.combinator?(Ne=new h.default({value:this.content(),source:J(this.currToken),sourceIndex:this.currToken[d.FIELDS.START_POS]}),this.position++):B[this.currToken[d.FIELDS.TYPE]]||Ce||this.unexpected(),Ne){if(Ce){var oe=this.convertWhitespaceNodesToSpace(Ce),Oe=oe.space,bt=oe.rawSpace;Ne.spaces.before=Oe,Ne.rawSpaceBefore=bt}}else{var gt=this.convertWhitespaceNodesToSpace(Ce,!0),Ze=gt.space,Ue=gt.rawSpace;Ue||(Ue=Ze);var vt={},mt={spaces:{}};Ze.endsWith(" ")&&Ue.endsWith(" ")?(vt.before=Ze.slice(0,Ze.length-1),mt.spaces.before=Ue.slice(0,Ue.length-1)):Ze[0]===" "&&Ue[0]===" "?(vt.after=Ze.slice(1),mt.spaces.after=Ue.slice(1)):mt.value=Ue,Ne=new h.default({value:" ",source:q(ie,this.tokens[this.position-1]),sourceIndex:ie[d.FIELDS.START_POS],spaces:vt,raws:mt})}return this.currToken&&this.currToken[d.FIELDS.TYPE]===v.space&&(Ne.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(Ne)},H.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var I=new n.default({source:{start:$(this.tokens[this.position+1])},sourceIndex:this.tokens[this.position+1][d.FIELDS.START_POS]});this.current.parent.append(I),this.current=I,this.position++},H.comment=function(){var I=this.currToken;this.newNode(new u.default({value:this.content(),source:J(I),sourceIndex:I[d.FIELDS.START_POS]})),this.position++},H.error=function(I,V){throw this.root.error(I,V)},H.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[d.FIELDS.START_POS]})},H.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[d.FIELDS.START_POS])},H.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[d.FIELDS.START_POS])},H.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[d.FIELDS.START_POS])},H.unexpectedPipe=function(){return this.error("Unexpected '|'.",this.currToken[d.FIELDS.START_POS])},H.namespace=function(){var I=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[d.FIELDS.TYPE]===v.word)return this.position++,this.word(I);if(this.nextToken[d.FIELDS.TYPE]===v.asterisk)return this.position++,this.universal(I);this.unexpectedPipe()},H.nesting=function(){if(this.nextToken){var I=this.content(this.nextToken);if(I==="|"){this.position++;return}}var V=this.currToken;this.newNode(new g.default({value:this.content(),source:J(V),sourceIndex:V[d.FIELDS.START_POS]})),this.position++},H.parentheses=function(){var I=this.current.last,V=1;if(this.position++,I&&I.type===p.PSEUDO){var te=new n.default({source:{start:$(this.tokens[this.position])},sourceIndex:this.tokens[this.position][d.FIELDS.START_POS]}),T=this.current;for(I.append(te),this.current=te;this.position<this.tokens.length&&V;)this.currToken[d.FIELDS.TYPE]===v.openParenthesis&&V++,this.currToken[d.FIELDS.TYPE]===v.closeParenthesis&&V--,V?this.parse():(this.current.source.end=X(this.currToken),this.current.parent.source.end=X(this.currToken),this.position++);this.current=T}else{for(var ae=this.currToken,he="(",ce;this.position<this.tokens.length&&V;)this.currToken[d.FIELDS.TYPE]===v.openParenthesis&&V++,this.currToken[d.FIELDS.TYPE]===v.closeParenthesis&&V--,ce=this.currToken,he+=this.parseParenthesisToken(this.currToken),this.position++;I?I.appendToPropertyAndEscape("value",he,he):this.newNode(new s.default({value:he,source:K(ae[d.FIELDS.START_LINE],ae[d.FIELDS.START_COL],ce[d.FIELDS.END_LINE],ce[d.FIELDS.END_COL]),sourceIndex:ae[d.FIELDS.START_POS]}))}if(V)return this.expected("closing parenthesis",this.currToken[d.FIELDS.START_POS])},H.pseudo=function(){for(var I=this,V="",te=this.currToken;this.currToken&&this.currToken[d.FIELDS.TYPE]===v.colon;)V+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[d.FIELDS.TYPE]===v.word)this.splitWord(!1,function(T,ae){V+=T,I.newNode(new c.default({value:V,source:q(te,I.currToken),sourceIndex:te[d.FIELDS.START_POS]})),ae>1&&I.nextToken&&I.nextToken[d.FIELDS.TYPE]===v.openParenthesis&&I.error("Misplaced parenthesis.",{index:I.nextToken[d.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[d.FIELDS.START_POS])},H.space=function(){var I=this.content();this.position===0||this.prevToken[d.FIELDS.TYPE]===v.comma||this.prevToken[d.FIELDS.TYPE]===v.openParenthesis||this.current.nodes.every(function(V){return V.type==="comment"})?(this.spaces=this.optionalSpace(I),this.position++):this.position===this.tokens.length-1||this.nextToken[d.FIELDS.TYPE]===v.comma||this.nextToken[d.FIELDS.TYPE]===v.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(I),this.position++):this.combinator()},H.string=function(){var I=this.currToken;this.newNode(new s.default({value:this.content(),source:J(I),sourceIndex:I[d.FIELDS.START_POS]})),this.position++},H.universal=function(I){var V=this.nextToken;if(V&&this.content(V)==="|")return this.position++,this.namespace();var te=this.currToken;this.newNode(new f.default({value:this.content(),source:J(te),sourceIndex:te[d.FIELDS.START_POS]}),I),this.position++},H.splitWord=function(I,V){for(var te=this,T=this.nextToken,ae=this.content();T&&~[v.dollar,v.caret,v.equals,v.word].indexOf(T[d.FIELDS.TYPE]);){this.position++;var he=this.content();if(ae+=he,he.lastIndexOf("\\")===he.length-1){var ce=this.nextToken;ce&&ce[d.FIELDS.TYPE]===v.space&&(ae+=this.requiredSpace(this.content(ce)),this.position++)}T=this.nextToken}var ie=qe(ae,".").filter(function(Oe){var bt=ae[Oe-1]==="\\",gt=/^\d+\.\d+%$/.test(ae);return!bt&&!gt}),Ce=qe(ae,"#").filter(function(Oe){return ae[Oe-1]!=="\\"}),Ne=qe(ae,"#{");Ne.length&&(Ce=Ce.filter(function(Oe){return!~Ne.indexOf(Oe)}));var oe=(0,y.default)(Je([0].concat(ie,Ce)));oe.forEach(function(Oe,bt){var gt=oe[bt+1]||ae.length,Ze=ae.slice(Oe,gt);if(bt===0&&V)return V.call(te,Ze,oe.length);var Ue,vt=te.currToken,mt=vt[d.FIELDS.START_POS]+oe[bt],Tt=K(vt[1],vt[2]+Oe,vt[3],vt[2]+(gt-1));if(~ie.indexOf(Oe)){var A={value:Ze.slice(1),source:Tt,sourceIndex:mt};Ue=new i.default(ve(A,"value"))}else if(~Ce.indexOf(Oe)){var S={value:Ze.slice(1),source:Tt,sourceIndex:mt};Ue=new o.default(ve(S,"value"))}else{var M={value:Ze,source:Tt,sourceIndex:mt};ve(M,"value"),Ue=new a.default(M)}te.newNode(Ue,I),I=null}),this.position++},H.word=function(I){var V=this.nextToken;return V&&this.content(V)==="|"?(this.position++,this.namespace()):this.splitWord(I)},H.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},H.parse=function(I){switch(this.currToken[d.FIELDS.TYPE]){case v.space:this.space();break;case v.comment:this.comment();break;case v.openParenthesis:this.parentheses();break;case v.closeParenthesis:I&&this.missingParenthesis();break;case v.openSquare:this.attribute();break;case v.dollar:case v.caret:case v.equals:case v.word:this.word();break;case v.colon:this.pseudo();break;case v.comma:this.comma();break;case v.asterisk:this.universal();break;case v.ampersand:this.nesting();break;case v.slash:case v.combinator:this.combinator();break;case v.str:this.string();break;case v.closeSquare:this.missingSquareBracket();case v.semicolon:this.missingBackslash();default:this.unexpected()}},H.expected=function(I,V,te){if(Array.isArray(I)){var T=I.pop();I=I.join(", ")+" or "+T}var ae=/^[aeiou]/.test(I[0])?"an":"a";return te?this.error("Expected "+ae+" "+I+', found "'+te+'" instead.',{index:V}):this.error("Expected "+ae+" "+I+".",{index:V})},H.requiredSpace=function(I){return this.options.lossy?" ":I},H.optionalSpace=function(I){return this.options.lossy?"":I},H.lossySpace=function(I,V){return this.options.lossy?V?" ":"":I},H.parseParenthesisToken=function(I){var V=this.content(I);return I[d.FIELDS.TYPE]===v.space?this.requiredSpace(V):V},H.newNode=function(I,V){return V&&(/^ +$/.test(V)&&(this.options.lossy||(this.spaces=(this.spaces||"")+V),V=!0),I.namespace=V,ve(I,"namespace")),this.spaces&&(I.spaces.before=this.spaces,this.spaces=""),this.current.append(I)},H.content=function(I){return I===void 0&&(I=this.currToken),this.css.slice(I[d.FIELDS.START_POS],I[d.FIELDS.END_POS])},H.locateNextMeaningfulToken=function(I){I===void 0&&(I=this.position+1);for(var V=I;V<this.tokens.length;)if(F[this.tokens[V][d.FIELDS.TYPE]]){V++;continue}else return V;return-1},b(z,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),z}();e.default=et,t.exports=e.default}(Zo,Zo.exports),function(t,e){e.__esModule=!0,e.default=void 0;var r=n(Zo.exports);function n(u){return u&&u.__esModule?u:{default:u}}var i=function(){function u(a,s){this.func=a||function(){},this.funcRes=null,this.options=s}var o=u.prototype;return o._shouldUpdateSelector=function(s,c){c===void 0&&(c={});var l=Object.assign({},this.options,c);return l.updateSelector===!1?!1:typeof s!="string"},o._isLossy=function(s){s===void 0&&(s={});var c=Object.assign({},this.options,s);return c.lossless===!1},o._root=function(s,c){c===void 0&&(c={});var l=new r.default(s,this._parseOptions(c));return l.root},o._parseOptions=function(s){return{lossy:this._isLossy(s)}},o._run=function(s,c){var l=this;return c===void 0&&(c={}),new Promise(function(f,h){try{var g=l._root(s,c);Promise.resolve(l.func(g)).then(function(y){var d=void 0;return l._shouldUpdateSelector(s,c)&&(d=g.toString(),s.selector=d),{transform:y,root:g,string:d}}).then(f,h)}catch(y){h(y);return}})},o._runSync=function(s,c){c===void 0&&(c={});var l=this._root(s,c),f=this.func(l);if(f&&typeof f.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var h=void 0;return c.updateSelector&&typeof s!="string"&&(h=l.toString(),s.selector=h),{transform:f,root:l,string:h}},o.ast=function(s,c){return this._run(s,c).then(function(l){return l.root})},o.astSync=function(s,c){return this._runSync(s,c).root},o.transform=function(s,c){return this._run(s,c).then(function(l){return l.transform})},o.transformSync=function(s,c){return this._runSync(s,c).transform},o.process=function(s,c){return this._run(s,c).then(function(l){return l.string||l.root.toString()})},o.processSync=function(s,c){var l=this._runSync(s,c);return l.string||l.root.toString()},u}();e.default=i,t.exports=e.default}(Jo,Jo.exports);var uf={},Fe={};Fe.__esModule=!0,Fe.universal=Fe.tag=Fe.string=Fe.selector=Fe.root=Fe.pseudo=Fe.nesting=Fe.id=Fe.comment=Fe.combinator=Fe.className=Fe.attribute=void 0;var U6=Ct(rs),V6=Ct(Ni.exports),W6=Ct(Ui.exports),z6=Ct($i.exports),G6=Ct(Ri.exports),H6=Ct(Vi.exports),Q6=Ct(qi.exports),J6=Ct(xi.exports),Z6=Ct(Pi.exports),X6=Ct(ki.exports),K6=Ct(Li.exports),Y6=Ct(ji.exports);function Ct(t){return t&&t.__esModule?t:{default:t}}var e_=function(e){return new U6.default(e)};Fe.attribute=e_;var t_=function(e){return new V6.default(e)};Fe.className=t_;var r_=function(e){return new W6.default(e)};Fe.combinator=r_;var n_=function(e){return new z6.default(e)};Fe.comment=n_;var i_=function(e){return new G6.default(e)};Fe.id=i_;var u_=function(e){return new H6.default(e)};Fe.nesting=u_;var o_=function(e){return new Q6.default(e)};Fe.pseudo=o_;var s_=function(e){return new J6.default(e)};Fe.root=s_;var a_=function(e){return new Z6.default(e)};Fe.selector=a_;var l_=function(e){return new X6.default(e)};Fe.string=l_;var c_=function(e){return new K6.default(e)};Fe.tag=c_;var f_=function(e){return new Y6.default(e)};Fe.universal=f_;var pe={};pe.__esModule=!0,pe.isComment=pe.isCombinator=pe.isClassName=pe.isAttribute=void 0,pe.isContainer=A_,pe.isIdentifier=void 0,pe.isNamespace=b_,pe.isNesting=void 0,pe.isNode=is,pe.isPseudo=void 0,pe.isPseudoClass=C_,pe.isPseudoElement=af,pe.isUniversal=pe.isTag=pe.isString=pe.isSelector=pe.isRoot=void 0;var xe=le,ut,h_=(ut={},ut[xe.ATTRIBUTE]=!0,ut[xe.CLASS]=!0,ut[xe.COMBINATOR]=!0,ut[xe.COMMENT]=!0,ut[xe.ID]=!0,ut[xe.NESTING]=!0,ut[xe.PSEUDO]=!0,ut[xe.ROOT]=!0,ut[xe.SELECTOR]=!0,ut[xe.STRING]=!0,ut[xe.TAG]=!0,ut[xe.UNIVERSAL]=!0,ut);function is(t){return typeof t=="object"&&h_[t.type]}function At(t,e){return is(e)&&e.type===t}var of=At.bind(null,xe.ATTRIBUTE);pe.isAttribute=of;var d_=At.bind(null,xe.CLASS);pe.isClassName=d_;var p_=At.bind(null,xe.COMBINATOR);pe.isCombinator=p_;var g_=At.bind(null,xe.COMMENT);pe.isComment=g_;var v_=At.bind(null,xe.ID);pe.isIdentifier=v_;var m_=At.bind(null,xe.NESTING);pe.isNesting=m_;var us=At.bind(null,xe.PSEUDO);pe.isPseudo=us;var y_=At.bind(null,xe.ROOT);pe.isRoot=y_;var D_=At.bind(null,xe.SELECTOR);pe.isSelector=D_;var E_=At.bind(null,xe.STRING);pe.isString=E_;var sf=At.bind(null,xe.TAG);pe.isTag=sf;var w_=At.bind(null,xe.UNIVERSAL);pe.isUniversal=w_;function af(t){return us(t)&&t.value&&(t.value.startsWith("::")||t.value.toLowerCase()===":before"||t.value.toLowerCase()===":after"||t.value.toLowerCase()===":first-letter"||t.value.toLowerCase()===":first-line")}function C_(t){return us(t)&&!af(t)}function A_(t){return!!(is(t)&&t.walk)}function b_(t){return of(t)||sf(t)}(function(t){t.__esModule=!0;var e=le;Object.keys(e).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===e[i]||(t[i]=e[i])});var r=Fe;Object.keys(r).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===r[i]||(t[i]=r[i])});var n=pe;Object.keys(n).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===n[i]||(t[i]=n[i])})})(uf),function(t,e){e.__esModule=!0,e.default=void 0;var r=o(Jo.exports),n=u(uf);function i(c){if(typeof WeakMap!="function")return null;var l=new WeakMap,f=new WeakMap;return(i=function(g){return g?f:l})(c)}function u(c,l){if(!l&&c&&c.__esModule)return c;if(c===null||typeof c!="object"&&typeof c!="function")return{default:c};var f=i(l);if(f&&f.has(c))return f.get(c);var h={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in c)if(y!=="default"&&Object.prototype.hasOwnProperty.call(c,y)){var d=g?Object.getOwnPropertyDescriptor(c,y):null;d&&(d.get||d.set)?Object.defineProperty(h,y,d):h[y]=c[y]}return h.default=c,f&&f.set(c,h),h}function o(c){return c&&c.__esModule?c:{default:c}}var a=function(l){return new r.default(l)};Object.assign(a,n),delete a.__esModule;var s=a;e.default=s,t.exports=e.default}(Qo,Qo.exports);const{AtRule:F_,Rule:lf}=be;let cf=Qo.exports;function os(t,e){let r;try{cf(n=>{r=n}).processSync(t)}catch(n){throw t.includes(":")?e?e.error("Missed semicolon"):n:e?e.error(n.message):n}return r.at(0)}function ff(t,e){let r=!1;return t.each(n=>{if(n.type==="nesting"){let i=e.clone({});n.value!=="&"?n.replaceWith(os(n.value.replace("&",i.toString()))):n.replaceWith(i),r=!0}else"nodes"in n&&n.nodes&&ff(n,e)&&(r=!0)}),r}function hf(t,e){let r=[];for(let n of t.selectors){let i=os(n,t);for(let u of e.selectors){if(!u)continue;let o=os(u,e);ff(o,i)||(o.prepend(cf.combinator({value:" "})),o.prepend(i.clone({}))),r.push(o.toString())}}return r}function Wi(t,e){var i;if(((i=t.prev())==null?void 0:i.type)!=="comment")return e.after(t),t;let r=t.prev(),n=/[*]\/ *\n.*{/;return t.parent.toString().match(n)?e.after(t).after(r):e.after(t),t}function __(t){return function e(r,n,i,u=i){let o=[];if(n.each(a=>{a.type==="rule"&&i?u&&(a.selectors=hf(r,a)):a.type==="atrule"&&a.nodes?t[a.name]?e(r,a,u):n[as]!==!1&&o.push(a):o.push(a)}),i&&o.length){let a=r.clone({nodes:[]});for(let s of o)a.append(s);n.prepend(a)}}}function B_(t,e,r){let n=new lf({nodes:[],selector:t});return n.append(e),r.after(n),n}function ss(t,e,r,n=!0){return e.length?(r=B_(t,e,r),n&&(e=[]),[r,e]):[r,e]}function df(t,e=""){let r=t.concat(e),n={};for(let i of r)n[i.replace(/^@/,"")]=!0;return n}function S_(t){t=t.trim();let e=t.match(/^\((.*)\)$/);if(!e)return{selector:t,type:"basic"};let r=e[1].match(/^(with(?:out)?):(.+)$/);if(r){let n=r[1]==="with",i=Object.fromEntries(r[2].trim().split(/\s+/).map(o=>[o,!0]));if(n&&i.all)return{type:"noop"};let u=o=>!!i[o];return i.all?u=()=>!0:n&&(u=o=>o==="all"?!1:!i[o]),{escapes:u,type:"withrules"}}return{type:"unknown"}}function O_(t){let e=[],r=t.parent;for(;r&&r instanceof F_;)e.push(r),r=r.parent;return e}function M_(t){let e=t[pf];if(!e)t.after(t.nodes);else{let r=t.nodes,n,i=-1,u,o,a,s=O_(t);if(s.forEach((c,l)=>{if(e(c.name))n=c,i=l,o=a;else{let f=a;a=c.clone({nodes:[]}),f&&a.append(f),u=u||a}}),n?o?(u.append(r),n.after(o)):n.after(r):t.after(r),t.next()&&n){let c;s.slice(0,i+1).forEach((l,f,h)=>{let g=c;c=l.clone({nodes:[]}),g&&c.append(g);let y=[],v=(h[f-1]||t).next();for(;v;)y.push(v),v=v.next();c.append(y)}),c&&(o||r[r.length-1]).after(c)}}t.remove()}const as=Symbol("rootRuleMergeSel"),pf=Symbol("rootRuleEscapes");function x_(t){let{params:e}=t,{escapes:r,selector:n,type:i}=S_(e);if(i==="unknown")throw t.error(`Unknown @${t.name} parameter ${JSON.stringify(e)}`);if(i==="basic"&&n){let u=new lf({nodes:t.nodes,selector:n});t.removeAll(),t.append(u)}t[pf]=r,t[as]=r?!r("all"):i==="noop"}const ls=Symbol("hasRootRule");Ho.exports=(t={})=>{let e=df(["media","supports","layer","container","starting-style"],t.bubble),r=__(e),n=df(["document","font-face","keyframes","-webkit-keyframes","-moz-keyframes"],t.unwrap),i=(t.rootRuleName||"at-root").replace(/^@/,""),u=t.preserveEmpty;return{Once(o){o.walkAtRules(i,a=>{x_(a),o[ls]=!0})},postcssPlugin:"postcss-nested",RootExit(o){!o[ls]||(o.walkAtRules(i,M_),o[ls]=!1)},Rule(o){let a=!1,s=o,c=!1,l=[];o.each(f=>{switch(f.type){case"atrule":[s,l]=ss(o.selector,l,s),f.name===i?(a=!0,r(o,f,!0,f[as]),s=Wi(f,s)):e[f.name]?(c=!0,a=!0,r(o,f,!0),s=Wi(f,s)):n[f.name]?(c=!0,a=!0,r(o,f,!1),s=Wi(f,s)):c&&l.push(f);break;case"decl":c&&l.push(f);break;case"rule":[s,l]=ss(o.selector,l,s),c=!0,a=!0,f.selectors=hf(o,f),s=Wi(f,s);break}}),ss(o.selector,l,s,!1),a&&u!==!0&&(o.raws.semicolon=!0,o.nodes.length===0&&o.remove())}}},Ho.exports.postcss=!0;var I_=Ho.exports;class T_{constructor(e,r=!0){this.config=e,this.isPc=r}apply(e){var a,s,c;this.engine=e;const r=(s=(a=this.config)==null?void 0:a.source)!=null?s:"";let n=document.createElement("style");n.className="edit-css-"+e.id;let i=document.querySelector("head");i==null||i.appendChild(n);const u=[I_()];this.isPc&&u.push(UF({prefix:`.render-engine-${(c=this.engine)==null?void 0:c.id}`,transform(l,f){return f.startsWith(l)?f:`${l} ${f}`}}));const o=be(u).process(r,{from:void 0}).css;n.appendChild(document.createTextNode(o))}}ue.CalcPlugin=jA,ue.ControlsEventPlugin=t5,ue.ES6ModulePlugin=KC,ue.Engine=Qu,ue.LifecycleEventPlugin=e5,ue.Plugin=XC,ue.StylePlugin=T_,ue.buildUUID=en,ue.hasChildrenControl=qn,ue.loopDataViewControl=dr,ue.loopFormControl=hr,ue.parseModule=Ta,Object.defineProperty(ue,"__esModule",{value:!0})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/model-driven-engine",
|
|
3
|
-
"version": "7.0.0-props.
|
|
3
|
+
"version": "7.0.0-props.66",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "郝晨光 <2293885211@qq.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"postpublish": "node ../../scripts/postpublish.js"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@byteluck-fe/model-driven-core": "7.0.0-props.
|
|
29
|
+
"@byteluck-fe/model-driven-core": "7.0.0-props.66",
|
|
30
30
|
"@byteluck-fe/model-driven-shared": "7.0.0-props.64",
|
|
31
31
|
"@types/mathjs": "^9.4.2",
|
|
32
32
|
"mathjs": "^11.3.3",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"@types/postcss-prefix-selector": "^1.16.3",
|
|
39
39
|
"postcss-nested": "^7.0.2"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "f687087822f232494fa3a830bdb5c2ab9c5fa711"
|
|
42
42
|
}
|