@byteluck-fe/model-driven-engine 1.7.6-bete.17 → 1.7.6-bete.18
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/esm/common/Engine.js +1 -2
- package/dist/index.umd.js +1 -1
- package/package.json +3 -3
|
@@ -592,8 +592,7 @@ var Engine = /*#__PURE__*/ function(Watcher) {
|
|
|
592
592
|
var index = this.getInstanceRowIndex(instance);
|
|
593
593
|
var options = eventOptionsTemp || {};
|
|
594
594
|
if (_instanceof(instance, RuntimeListControl)) {
|
|
595
|
-
|
|
596
|
-
// }
|
|
595
|
+
if (instance.controlType) {}
|
|
597
596
|
instance.children.length = 0;
|
|
598
597
|
var newValue = value;
|
|
599
598
|
// @ts-ignore
|
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var w1=Object.defineProperty,B1=Object.defineProperties;var b1=Object.getOwnPropertyDescriptors;var uo=Object.getOwnPropertySymbols,S1=Object.getPrototypeOf,_1=Object.prototype.hasOwnProperty,M1=Object.prototype.propertyIsEnumerable,N1=Reflect.get;var On=Math.pow,io=(Z,Y,te)=>Y in Z?w1(Z,Y,{enumerable:!0,configurable:!0,writable:!0,value:te}):Z[Y]=te,oe=(Z,Y)=>{for(var te in Y||(Y={}))_1.call(Y,te)&&io(Z,te,Y[te]);if(uo)for(var te of uo(Y))M1.call(Y,te)&&io(Z,te,Y[te]);return Z},zr=(Z,Y)=>B1(Z,b1(Y));var oo=(Z,Y,te)=>N1(S1(Z),te,Y);var ze=(Z,Y,te)=>new Promise((Rn,Gt)=>{var $n=We=>{try{Mt(te.next(We))}catch(Nt){Gt(Nt)}},Pn=We=>{try{Mt(te.throw(We))}catch(Nt){Gt(Nt)}},Mt=We=>We.done?Rn(We.value):Promise.resolve(We.value).then($n,Pn);Mt((te=te.apply(Z,Y)).next())});(function(Z,Y){typeof exports=="object"&&typeof module!="undefined"?Y(exports,require("crypto")):typeof define=="function"&&define.amd?define(["exports","crypto"],Y):(Z=typeof globalThis!="undefined"?globalThis:Z||self,Y(Z.modelDrivenEngine={},Z.require$$0))})(this,function(Z,Y){"use strict";function te(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var Rn=te(Y),Gt="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",$n="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",Pn="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",Mt="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",We="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",Nt="{caption}\u5FC5\u586B",ao="\u8BF7\u8F93\u5165\u6807\u9898",so="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",co="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",fo="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",lo="\u8BF7\u7ED1\u5B9A\u8868\u5355",ho="\u8BF7\u7ED1\u5B9A\u5217\u8868",po="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",Do="\u8BF7\u8F93\u5165\u663E\u793A\u503C",go="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",vo="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",mo="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",yo="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",Eo="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",Ao="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",Co="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",Fo="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",wo="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",Bo="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",bo="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",So="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",_o="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Mo="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",No="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",Io="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",xo="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",Oo="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",Ro="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",$o="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Po="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",To="\u8BF7\u7ED1\u5B9A\u670D\u52A1",Lo="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",jo="\u8BF7\u9009\u62E9\u7701",qo="\u8BF7\u9009\u62E9\u5E02",ko="\u8BF7\u9009\u62E9\u533A",Uo="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",Vo="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",Ho="\u8BF7\u8F93\u5165\u5217\u5BBD",zo="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",Wo="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",Zo="\u8BF7\u9009\u62E9\u63A7\u4EF6",Xo="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",Go="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",Ko="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",Jo="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",Qo="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Yo="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",ea="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",ta="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",na="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",ra="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",ua="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",ia="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",oa="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",aa="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",sa="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",ca="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",fa="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",la="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",ha="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",da="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",pa="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Da={isNotNumber:Gt,isNotString:$n,isNotObject:Pn,isNotArray:Mt,isNotBoolean:We,runtimeRequired:Nt,pleaseEnterCaption:ao,pleaseEnterCaptionTip:so,pleaseEnterPlaceholder:co,pleaseEnterFieldCode:fo,pleaseEnterForm:lo,pleaseEnterList:ho,pleaseEnterProcess:po,pleaseEnterLabel:Do,pleaseEnterValue:go,bizKeyNotBindFiled:vo,pleaseSelectOneField:mo,pleaseEnterNumberRange:yo,pleaseEnterAValueGreaterThanMin:Eo,pleaseEnterAValueLessThanMax:Ao,numberRangeSetError:Co,stringRangeError:Fo,attachmentMaxSize:wo,pleaseEnterTotalScoreSetting:Bo,theTotalScoreMustNotBeLessThan1:bo,scoreDefaultValueRange:So,attachmentLimitError:_o,PleaseReselectTheOptionalQuantity:Mo,TheMaximumLengthIsGreaterThanTheMinimumLength:No,TheMinimumLengthIsGreaterThanTheMaximumLength:Io,PleaseSelectTheCorrectOptionSettings:xo,optionIdIsRepeat:Oo,optionIsRequired:Ro,pleaseEnterDataCode:$o,pleaseEnterValueFieldCode:Po,pleaseEnterSvcCode:To,pleaseBindAtLeastOneDisplayValue:Lo,pleaseSelectProvince:jo,pleaseSelectCity:qo,pleaseSelectDistrict:ko,limitRowsCannotBeLessThan0:Uo,TheNumberOfRowsCannotBeLessThanMinRows:Vo,pleaseEnterColumnWidth:Ho,pleaseSetTheLogicalRelationshipOfAllRuleConditions:zo,pleaseCompleteAllRulesAndConditions:Wo,pleaseSelectControl:Zo,pleaseSelectAtLeastOneColumn:Xo,pleaseSelectFillBackMode:Go,pleaseSelectDashboard:Ko,rootNodeIsRequired:Jo,theViewNameCannotBeEmpty:Qo,pleaseSelectOcrType:Yo,pleaseSelectAtLeastOneFieldToFillIn:ea,pleaseChooseAtLeastOne:ta,pleaseEnterButtonContent:na,pleaseEnterDataCodeInDataSetting:ra,pleaseEnterValueFieldCodeInDataSetting:ua,pleaseEnterSvcCodeInDataSetting:ia,pleaseBindAtLeastOneDisplayValueInDataSetting:oa,rootNodeIsRequiredInDataSetting:aa,pleaseEnterMaxHeight:sa,pleaseEnter:ca,pleaseEnterWatermark:fa,pleaseEnterFileName:la,pleaseUploadAtLeastOnePrintTemplate:ha,pleaseAssignBusiness:da,pleaseAssignExternal:pa},ga="Please enter a number",va="Please enter a string",ma="Please enter an object",ya="Please enter an array",Ea="Please enter a boolean",Aa="{caption} Required",Ca="Please enter the title",Fa="Please enter the bubble prompt",wa="Please enter the prompt text",Ba="Please bind data items",ba="Please bind the form",Sa="Please bind the list",_a="Please bind the process",Ma="Please enter the displayed value",Na="Please enter the stored value",Ia="The document number is not bound to the data item",xa="Please select at least one display field",Oa="Please enter a value greater than or equal to {min} and less than or equal to {max}",Ra="Please enter a value greater than or equal to {min}",$a="Please enter a value less than or equal to {max}",Pa="The value range is set incorrectly",Ta="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",La="The attachment size must be between 0MB and 1000MB",ja="Please fill in the total score setting",qa="The total score cannot be less than 1",ka="The default value must be between {min} and {max}",Ua="The number of attachments uploaded must be between {min} and {max}",Va="Please re-select the optional quantity",Ha="The maximum length of the control must be greater than the minimum length",za="The minimum length of the control must be less than the maximum length",Wa="Please select the correct option setting",Za="Option ID cannot be repeated",Xa="Please enter at least one option",Ga="Please bind the data source",Ka="Please bind the stored value",Ja="Please bind the service",Qa="At least one display value must be bound",Ya="Please select a province",es="Please select a city",ts="Please select a district",ns="The minimum number of lines to fill in cannot be less than 0",rs="The number of rows cannot be less than {min} rows",us="Please enter the column width",is="Please set the logical relationship of all rule conditions",os="Please complete all rules and conditions",as="please select control",ss="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",cs="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",fs="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",ls="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",hs="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",ds="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",ps="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Ds="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",gs="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",vs="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",ms="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",ys="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Es="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",As="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",Cs="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Fs="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",ws="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Bs="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",bs={isNotNumber:ga,isNotString:va,isNotObject:ma,isNotArray:ya,isNotBoolean:Ea,runtimeRequired:Aa,pleaseEnterCaption:Ca,pleaseEnterCaptionTip:Fa,pleaseEnterPlaceholder:wa,pleaseEnterFieldCode:Ba,pleaseEnterForm:ba,pleaseEnterList:Sa,pleaseEnterProcess:_a,pleaseEnterLabel:Ma,pleaseEnterValue:Na,bizKeyNotBindFiled:Ia,pleaseSelectOneField:xa,pleaseEnterNumberRange:Oa,pleaseEnterAValueGreaterThanMin:Ra,pleaseEnterAValueLessThanMax:$a,numberRangeSetError:Pa,stringRangeError:Ta,attachmentMaxSize:La,pleaseEnterTotalScoreSetting:ja,theTotalScoreMustNotBeLessThan1:qa,scoreDefaultValueRange:ka,attachmentLimitError:Ua,PleaseReselectTheOptionalQuantity:Va,TheMaximumLengthIsGreaterThanTheMinimumLength:Ha,TheMinimumLengthIsGreaterThanTheMaximumLength:za,PleaseSelectTheCorrectOptionSettings:Wa,optionIdIsRepeat:Za,optionIsRequired:Xa,pleaseEnterDataCode:Ga,pleaseEnterValueFieldCode:Ka,pleaseEnterSvcCode:Ja,pleaseBindAtLeastOneDisplayValue:Qa,pleaseSelectProvince:Ya,pleaseSelectCity:es,pleaseSelectDistrict:ts,limitRowsCannotBeLessThan0:ns,TheNumberOfRowsCannotBeLessThanMinRows:rs,pleaseEnterColumnWidth:us,pleaseSetTheLogicalRelationshipOfAllRuleConditions:is,pleaseCompleteAllRulesAndConditions:os,pleaseSelectControl:as,pleaseSelectDashboard:ss,theViewNameCannotBeEmpty:cs,pleaseSelectOcrType:fs,pleaseSelectAtLeastOneFieldToFillIn:ls,pleaseChooseAtLeastOne:hs,pleaseEnterButtonContent:ds,pleaseEnterDataCodeInDataSetting:ps,pleaseEnterValueFieldCodeInDataSetting:Ds,pleaseEnterSvcCodeInDataSetting:gs,pleaseBindAtLeastOneDisplayValueInDataSetting:vs,rootNodeIsRequiredInDataSetting:ms,pleaseEnterMaxHeight:ys,pleaseEnter:Es,pleaseEnterWatermark:As,pleaseEnterFileName:Cs,pleaseUploadAtLeastOnePrintTemplate:Fs,pleaseAssignBusiness:ws,pleaseAssignExternal:Bs},Ss="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",_s="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ms="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ns="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Is="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",xs="{caption}\u5FC5\u9808",Os="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Rs="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",$s="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ps="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ts="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ls="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",js="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",qs="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ks="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Us="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",Vs="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Hs="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",zs="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ws="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Zs="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",Xs="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Gs="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Ks="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Js="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Qs="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Ys="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",ec="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",tc="\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",nc="\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",rc="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",uc="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",ic="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",oc="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ac="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",sc="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",cc="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",fc="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",lc="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",hc="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",dc="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",pc="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Dc="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",gc="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",vc="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",mc="please select control",yc="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",Ec="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Ac="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Cc="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Fc="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",wc="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Bc="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",bc="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",Sc="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",_c="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Mc="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",Nc="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Ic="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",xc="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",Oc="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Rc="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",$c="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Pc="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Tc={isNotNumber:Ss,isNotString:_s,isNotObject:Ms,isNotArray:Ns,isNotBoolean:Is,runtimeRequired:xs,pleaseEnterCaption:Os,pleaseEnterCaptionTip:Rs,pleaseEnterPlaceholder:$s,pleaseEnterFieldCode:Ps,pleaseEnterForm:Ts,pleaseEnterList:Ls,pleaseEnterProcess:js,pleaseEnterLabel:qs,pleaseEnterValue:ks,bizKeyNotBindFiled:Us,pleaseSelectOneField:Vs,pleaseEnterNumberRange:Hs,pleaseEnterAValueGreaterThanMin:zs,pleaseEnterAValueLessThanMax:Ws,numberRangeSetError:Zs,stringRangeError:Xs,attachmentMaxSize:Gs,pleaseEnterTotalScoreSetting:Ks,theTotalScoreMustNotBeLessThan1:Js,scoreDefaultValueRange:Qs,attachmentLimitError:Ys,PleaseReselectTheOptionalQuantity:ec,TheMaximumLengthIsGreaterThanTheMinimumLength:tc,TheMinimumLengthIsGreaterThanTheMaximumLength:nc,PleaseSelectTheCorrectOptionSettings:rc,optionIdIsRepeat:uc,optionIsRequired:ic,pleaseEnterDataCode:oc,pleaseEnterValueFieldCode:ac,pleaseEnterSvcCode:sc,pleaseBindAtLeastOneDisplayValue:cc,pleaseSelectProvince:fc,pleaseSelectCity:lc,pleaseSelectDistrict:hc,limitRowsCannotBeLessThan0:dc,TheNumberOfRowsCannotBeLessThanMinRows:pc,pleaseEnterColumnWidth:Dc,pleaseSetTheLogicalRelationshipOfAllRuleConditions:gc,pleaseCompleteAllRulesAndConditions:vc,pleaseSelectControl:mc,pleaseSelectDashboard:yc,theViewNameCannotBeEmpty:Ec,pleaseSelectOcrType:Ac,pleaseSelectAtLeastOneFieldToFillIn:Cc,pleaseChooseAtLeastOne:Fc,pleaseEnterButtonContent:wc,pleaseEnterDataCodeInDataSetting:Bc,pleaseEnterValueFieldCodeInDataSetting:bc,pleaseEnterSvcCodeInDataSetting:Sc,pleaseBindAtLeastOneDisplayValueInDataSetting:_c,rootNodeIsRequiredInDataSetting:Mc,pleaseEnterMaxHeight:Nc,pleaseEnter:Ic,pleaseEnterWatermark:xc,pleaseEnterFileName:Oc,pleaseUploadAtLeastOnePrintTemplate:Rc,pleaseAssignBusiness:$c,pleaseAssignExternal:Pc},Lc={zhCN:Da,enUS:bs,jaJP:Tc},xe;(function(e){e.Number="Number",e.Operator="Operator",e.VariableInMainTable="VariableInMainTable",e.VariableInCurrentSubTable="VariableInCurrentSubTable",e.VariableInOtherSubTable="VariableInOtherSubTable",e.UndefinedVariable="UndefinedVariable"})(xe||(xe={}));var pt;(function(e){e.SUM="SUM",e.AVG="AVG",e.MAX="MAX",e.MIN="MIN"})(pt||(pt={}));var Wr="zh-CN";function we(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Le;(function(e){e.BASE="base",e.FORM="form",e.LAYOUT="layout",e.WRAP="wrap",e.COLUMN="column",e.LIST="list",e.SEARCH="search"})(Le||(Le={}));var X;(function(e){e.TITLE="title",e.LINK="link",e.BUTTON="button",e.DIVIDER="divider",e.TEXT="text",e.CREATE_FORM_LIST_BUTTON="list-page-btn-create-form",e.BATCH_SUBMISSION_LIST_BUTTON="list-page-btn-batch-submission",e.SUBMISSION_RECORD_LIST_BUTTON="list-page-btn-submission-record",e.IMPORT_RECORD_LIST_BUTTON="list-page-btn-import-record",e.EXPORT_RECORD_LIST_BUTTON="list-page-btn-export-record",e.EXPORT_LIST_BUTTON="list-page-btn-export-list",e.LIST_SELECT_BUTTON="list-select-button",e.FORM_SELECT_BUTTON="form-select-button",e.LIST_VIEW_SELECT="list-view-select",e.TEXT_OCR_BUTTON="text-ocr-button",e.INVOICE_CHECK_BUTTON="invoice-check-button",e.LIST_PAGE_BTN_BATCH_PRINT="list-page-btn-batch-print",e.LIST_PAGE_BTN_BATCH_PRINT_RECORD="list-page-btn-batch-print-record",e.VARCHAR_COLUMN="varchar-column",e.TEXT_COLUMN="text-column",e.DECIMAL_COLUMN="decimal-column",e.TIMESCOPE_COLUMN="timescope-column",e.TIMESTAMP_COLUMN="timestamp-column",e.ARRAY_COLUMN="array-column",e.DEPARTMENT_COLUMN="department-column",e.AUTO_NUMBER_COLUMN="auto-number-column",e.FILE_COLUMN="file-column",e.IMAGE_COLUMN="image-column",e.PEOPLE_COLUMN="people-column",e.LOCATION_COLUMN="location-column",e.CUSTOM_COLUMN="custom-column",e.ORDER_COLUMN="order-column",e.OPERATION_COLUMN="operation-column",e.EMPLOYEE_COLUMN="employee-column",e.ADDRESS="address",e.AMOUNT="amount",e.ATTACHMENT="attachment",e.AUTO_NUMBER="auto-number",e.CALC="calc",e.CHECKBOX="checkbox",e.DATE_PICKER="date-picker",e.DATE_RANGE="date-range",e.DEPARTMENT="department",e.EMPLOYEE="employee",e.IMAGE="image",e.INPUT="input",e.NUMBER="number",e.RADIO="radio",e.RICH_TEXT="rich-text",e.SCORE="score",e.SEARCH_DATE_RANGE="search-date-range",e.SEARCH_NUMBER_RANGE="search-number-range",e.SEARCH_INPUT="search-input",e.SELECT="select",e.SELECT_MULTIPLE="select-multiple",e.SELECT_RELATION="select-relation",e.VUE_FORM_ITEM="vue-form-item",e.TEXTAREA="textarea",e.EMAIL="email",e.FOOTER="footer",e.HEADER="header",e.ID_CARD="id-card",e.MOBILE="mobile",e.PHONE="phone",e.RADIO_IMAGE="radio-image",e.ELECTRONIC_SIGNATURE="electronic-signature",e.WPS="wps",e.CARD_GROUP="card-group",e.COL="col",e.GRID="grid",e.GRID_ROW="grid-row",e.GRID_TABLE_COLUMN="grid-table-column",e.ROW="row",e.TWO_COLUMNS="two-columns",e.SUBTABLE_COLUMN="subtable-column",e.SUBTABLE_ROW="subtable-row",e.TAB="tab",e.TAB_PANE="tab-pane",e.TOOLBOX="toolbox",e.DATA_VIEW="data-view",e.LIST_VIEW="list-view",e.SUBTABLE="subtable",e.GRID_TABLE="grid-table",e.SIMPLE_SEARCH="simple-search",e.PAGINATION="pagination",e.CHECKBOX_IMAGE="checkbox-image",e.DASHBOARD="dashboard",e.TREE="tree",e.EMPLOYEE2="employee2",e.DEPARTMENT2="department2"})(X||(X={}));var H;(function(e){e.VARCHAR="varchar",e.TEXT="text",e.ARRAY="array",e.ADDRESS="location",e.DECIMAL="decimal",e.DECIMAL_RANGE="decimal_range",e.TIMESTAMP="timestamp",e.EMPLOYEES="people",e.DEPARTMENTS="department",e.MONEY="money",e.TIMESCOPE="timescope",e.FILE="file",e.IMAGE="image",e.AUTO_NUMBER="auto_number",e.CALC="calc",e.RELATION="relation",e.LIST="list",e.RELATION_FIELD="relation-field",e.REFERENCE_FIELD="reference-field",e.CALC_FIELD="calc",e.JSON="json",e.BIGINT="bigint",e.ANY="ANY",e.ENCRYPTED_FIELD="encrypted_field"})(H||(H={}));var De;De={},we(De,H.ARRAY,X.ARRAY_COLUMN),we(De,H.AUTO_NUMBER,X.AUTO_NUMBER_COLUMN),we(De,H.DECIMAL,X.DECIMAL_COLUMN),we(De,H.DEPARTMENTS,X.DEPARTMENT_COLUMN),we(De,H.FILE,X.FILE_COLUMN),we(De,H.IMAGE,X.IMAGE_COLUMN),we(De,H.ADDRESS,X.LOCATION_COLUMN),we(De,H.EMPLOYEES,X.EMPLOYEE_COLUMN),we(De,H.TEXT,X.TEXT_COLUMN),we(De,H.TIMESCOPE,X.TIMESCOPE_COLUMN),we(De,H.TIMESTAMP,X.TIMESTAMP_COLUMN),we(De,H.VARCHAR,X.VARCHAR_COLUMN),we(De,H.RELATION,X.VARCHAR_COLUMN);var Zr;(function(e){e.YEAR="year",e.MONTH="month",e.DATE="date",e.DATETIME="datetime"})(Zr||(Zr={}));var Xr="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",jc=Xr+"0123456789";function Tn(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,t="",n=0;n<e;n++){var r=n===0?Xr:jc,u=Math.random()*r.length;t+=r[parseInt(String(u),10)]}return t}function Ln(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qc(e){if(Array.isArray(e))return Ln(e)}function kc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uc(){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(e){return!1}}function Kt(e,t,n){return Uc()?Kt=Reflect.construct:Kt=function(u,i,o){var s=[null];s.push.apply(s,i);var c=Function.bind.apply(u,s),l=new c;return o&&xt(l,o.prototype),l},Kt.apply(null,arguments)}function It(e){return It=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},It(e)}function Kr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xt(e,t)}function Vc(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Hc(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zc(){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 Wc(e,t){return t&&(Zc(t)==="object"||typeof t=="function")?t:kc(e)}function xt(e,t){return xt=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},xt(e,t)}function Jr(e){return qc(e)||Hc(e)||Xc(e)||zc()}var Zc=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function Xc(e,t){if(!!e){if(typeof e=="string")return Ln(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ln(e,t)}}function jn(e){var t=typeof Map=="function"?new Map:void 0;return jn=function(r){if(r===null||!Vc(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,u)}function u(){return Kt(r,arguments,It(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),xt(u,r)},jn(e)}function Gc(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Qr(e){var t=Gc();return function(){var r=It(e),u;if(t){var i=It(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Wc(this,u)}}var qn=console;function Je(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,u=t.slice(1);(r=qn).warn.apply(r,["\u{1F9D0} Driven Warning:"+t[0]].concat(Jr(u)))}function kn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,u=t.slice(1);(r=qn).log.apply(r,["\u{1F680} Driven Log:"+t[0]].concat(Jr(u)))}function Kc(e){return e+" \u{1F41B}\u{1F41B}\u{1F41B}"}var Un=function(e){Kr(n,e);var t=Qr(n);function n(r){Gr(this,n);var u;return u=t.call(this,r),u.name="\u{1F4A5} Driven Error",u.message=r?Kc(r):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",u}return n}(jn(Error)),Jc=function(e){Kr(n,e);var t=Qr(n);function n(r){Gr(this,n);var u;return u=t.call(this,r),u.name="\u{1F6A8} Driven Reference Error",u}return n}(Un);function Ze(e){throw new Un(e)}function Yr(e){throw new Jc(e)}function Jt(e){qn.error(new Un(e))}function at(e,t){Array.isArray(e)&&e.map(function(n){switch(n.controlType){case"layout":at(n==null?void 0:n.children,t);break;case"search":at(n==null?void 0:n.children,t);break;case"form":t(n)}})}var Qc=Object.prototype.toString;function eu(e,t){return Qc.call(e)==="[object "+t+"]"}function Yc(e){return eu(e,"String")}function ef(e){return eu(e,"Promise")}var tf=function(){function e(t){var n,r;this._messageCache=new Map,this.messages={},this.variableRegExp=/\{([0-9a-zA-Z_]+)\}/g,this._messages=Object.freeze((r=(n=t.messages)!==null&&n!==void 0?n:this.getPreImport(t.locale))!==null&&r!==void 0?r:{}),t.variableRegExp&&(this.variableRegExp=t.variableRegExp),this.setLocale(t.locale)}return e.prototype.setLocale=function(t){var n=this;this.locale=t,this._messageCache.clear();var r=this.getMessageData();ef(r)?r.then(function(u){n._messageCache.clear(),n.messages[n.localeInMessageKey]=u}):this.messages[this.localeInMessageKey]=r},e.prototype.getMessageData=function(){var t=this._messages[this.localeInMessageKey];return typeof t=="function"?t():t},e.prototype.translate=function(t,n,r){var u=this.getMessage(t);return u?this.formatMessage(u,r):this.formatMessage(n,r)},e.prototype.getMessage=function(t){if(this._messageCache.has(t))return this._messageCache.get(t);var n=this.getPathArray(t),r=n.reduce(function(u,i,o,s){if(u!==void 0){var c=u[i];if(!(o===s.length-1&&!Yc(c)))return c}},this.message);return this._messageCache.set(t,r),r},e.prototype.formatMessage=function(t,n){return n?t.replace(this.variableRegExp,function(r,u){var i=n[u];return i!==void 0?String(i):r}):t},e.prototype.getPreImport=function(t){var n;if(window.okI18nPreImport){var r=this.getLocaleInMessageKey(t);return window.okI18nPreImport.hasOwnProperty(r)?window.okI18nPreImport:(n={},n[r]=window.okI18nPreImport,n)}},e.prototype.getPathArray=function(t){return t.split(".")},e.prototype.getLocaleInMessageKey=function(t){return t.replace(/-/g,"")},Object.defineProperty(e.prototype,"$t",{get:function(){return this.translate},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localeInMessageKey",{get:function(){return this.getLocaleInMessageKey(this.locale)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){var t;return(t=this.messages[this.localeInMessageKey])!==null&&t!==void 0?t:{}},enumerable:!1,configurable:!0}),e}();function nf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Oe=function(){function e(){nf(this,e)}return e.getMessage=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$i18n.$t(n,"",r)},e.resetI18n=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Wr;return new tf({locale:n,messages:Lc})},e.setLocale=function(n){return this.$i18n.setLocale(n)},e}();Oe.$i18n=Oe.resetI18n();function tu(e,t,n){var r=t.replace(/\[(\d)]/g,function(i,o){return"."+o}).split("."),u=!1;return r.reduce(function(i,o,s,c){var l=i;if(!!i){if(!Object.prototype.hasOwnProperty.call(i,o)){Je("Can not set ".concat(t,"'s ").concat(o," property in current %o, Because there is no ").concat(o," property on the %o"),i,i);return}return s===c.length-1&&!Object.is(l[o],n)&&(l[o]=n,u=!0),l[o]}},e),u}var Xe=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function nu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rf={exports:{}};(function(e){(function(t){var n=function(D,y,F){if(!l(y)||a(y)||h(y)||d(y)||c(y))return y;var C,_=0,O=0;if(f(y))for(C=[],O=y.length;_<O;_++)C.push(n(D,y[_],F));else{C={};for(var R in y)Object.prototype.hasOwnProperty.call(y,R)&&(C[D(R,F)]=n(D,y[R],F))}return C},r=function(D,y){y=y||{};var F=y.separator||"_",C=y.split||/(?=[A-Z])/;return D.split(C).join(F)},u=function(D){return p(D)?D:(D=D.replace(/[\-_\s]+(.)?/g,function(y,F){return F?F.toUpperCase():""}),D.substr(0,1).toLowerCase()+D.substr(1))},i=function(D){var y=u(D);return y.substr(0,1).toUpperCase()+y.substr(1)},o=function(D,y){return r(D,y).toLowerCase()},s=Object.prototype.toString,c=function(D){return typeof D=="function"},l=function(D){return D===Object(D)},f=function(D){return s.call(D)=="[object Array]"},a=function(D){return s.call(D)=="[object Date]"},h=function(D){return s.call(D)=="[object RegExp]"},d=function(D){return s.call(D)=="[object Boolean]"},p=function(D){return D=D-0,D===D},g=function(D,y){var F=y&&"process"in y?y.process:y;return typeof F!="function"?D:function(C,_){return F(C,D,_)}},v={camelize:u,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(D,y){return n(g(u,y),D)},decamelizeKeys:function(D,y){return n(g(o,y),D,y)},pascalizeKeys:function(D,y){return n(g(i,y),D)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=v:t.humps=v})(Xe)})(rf);function ne(e){if(e!==void 0)return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}function je(e){return Object.prototype.toString.call(e)==="[object Object]"}function uf(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}function Dt(e){return Array.isArray(e)}function Be(e){return typeof e=="string"}function Qt(e){return typeof e=="number"}function ru(e){return typeof e=="function"}function of(e){return Dt(e)&&e.every(function(t){return Be(t)})}function af(e){return Dt(e)&&e.every(function(t){return Qt(t)||t===""})}function uu(e){return/^\[.*?]$/.test(e)}function Yt(e){return/^{.*?}$/.test(e)}function Vn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sf(e){if(Array.isArray(e))return Vn(e)}function iu(e,t,n,r,u,i,o){try{var s=e[i](o),c=s.value}catch(l){n(l);return}s.done?t(c):Promise.resolve(c).then(r,u)}function cf(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(c){iu(i,r,u,o,s,"next",c)}function s(c){iu(i,r,u,o,s,"throw",c)}o(void 0)})}}function ff(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lf(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hf(){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 Hn(e){return sf(e)||lf(e)||df(e)||hf()}function df(e,t){if(!!e){if(typeof e=="string")return Vn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vn(e,t)}}var pf=function(e,t){var n,r,u,i,o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(f){return c([l,f])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=l[0]&2?r.return:l[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,l[1])).done)return u;switch(r=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){o.label=l[1];break}if(l[0]===6&&o.label<u[1]){o.label=u[1],u=l;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(l);break}u[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(f){l=[6,f],r=0}finally{n=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},ou=function(){function e(){ff(this,e),this._events=new Map,this.debug=!1}var t=e.prototype;return t.emit=function(r){for(var u=arguments.length,i=new Array(u>1?u-1:0),o=1;o<u;o++)i[o-1]=arguments[o];var s=this;return cf(function(){var c,l,f,a,h,d,p,g,v,D,y,F;return pf(this,function(C){switch(C.label){case 0:if(c=s._events.get(r),l=[],!c)return[3,10];f=c.slice(),a=!0,h=!1,d=void 0,C.label=1;case 1:C.trys.push([1,8,9,10]),p=f[Symbol.iterator](),C.label=2;case 2:if(a=(g=p.next()).done)return[3,7];if(v=g.value,!c.includes(v))return[3,6];C.label=3;case 3:return C.trys.push([3,5,,6]),s.debug&&kn.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(r," \u4E8B\u4EF6: ").concat(v.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+v.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(i.map(function(){return"%o"}).join(","),"\u3002")].concat(Hn(i))),[4,v.apply(null,Hn(i))];case 4:return D=C.sent(),s.debug&&kn.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(r," \u4E8B\u4EF6: ").concat(v.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+v.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(Hn(i),[D])),l.push(D),D===!1?[3,7]:[3,6];case 5:return y=C.sent(),Jt(String(y)),[3,6];case 6:return a=!0,[3,2];case 7:return[3,10];case 8:return F=C.sent(),h=!0,d=F,[3,10];case 9:try{!a&&p.return!=null&&p.return()}finally{if(h)throw d}return[7];case 10:return[2,l]}})})()},t.on=function(r,u){if(this._events.has(r)){var i;(i=this._events.get(r))===null||i===void 0||i.push(u)}else this._events.set(r,[u])},t.off=function(r,u){if(this._events.has(r)){var i=this._events.get(r),o=i==null?void 0:i.indexOf(u);i==null||i.splice(o,1)}},t.delete=function(r){this._events.has(r)&&this._events.delete(r)},t.clear=function(){this._events=new Map},e}();function Df(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var gf=[{key:"on_click",name:"\u70B9\u51FB\u65F6",code:"click"},{key:"on_click_finish",name:"\u6267\u884C\u5B8C\u6210\u65F6",code:"click-finish"},{key:"on_change",name:"\u503C\u53D1\u751F\u53D8\u5316\u65F6",code:"change"},{key:"on_search",name:"\u641C\u7D22\u65F6",code:"search"},{key:"on_list_change",name:"\u5217\u8868\u6570\u636E\u53D8\u5316\u65F6",code:"list-change"},{key:"on_list_search",name:"\u5217\u8868\u6570\u636E\u67E5\u8BE2\u6784\u5EFA\u65F6",code:"list-search"},{key:"on_list_mounted",name:"\u5217\u8868\u6570\u636E\u8FD4\u56DE\u65F6",code:"list-mounted"},{key:"on_list_delete",name:"\u5217\u8868\u6570\u636E\u5220\u9664\u65F6",code:"list-delete"},{key:"on_input",name:"\u7528\u6237\u8F93\u5165\u65F6",code:"input"},{key:"on_blur",name:"\u5931\u53BB\u7126\u70B9\u65F6",code:"blur"},{key:"on_focus",name:"\u83B7\u53D6\u7126\u70B9\u65F6",code:"focus"},{key:"on_wps_open",name:"\u6253\u5F00\u6587\u4EF6\u65F6",code:"wps-open"},{key:"on_wps_save",name:"\u4FDD\u5B58\u6587\u4EF6\u65F6",code:"wps-save"},{key:"on_wps_rename",name:"\u91CD\u547D\u540D\u65F6",code:"wps-rename"},{key:"on_list_actions",name:"\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6",code:"list-actions"},{key:"on_list_rowclick",name:"\u884C\u70B9\u51FB\u65F6",code:"list-rowclick"},{key:"on_list_before_rowdelete",name:"\u884C\u5220\u9664\u524D",code:"list-before-rowdelete"},{key:"on_list_before_import",name:"\u5217\u8868\u6570\u636E\u5BFC\u5165\u524D",code:"list-before-import"},{key:"on_list_rows_checked",name:"\u884C\u9009\u4E2D\u65F6",code:"list-rows-checked"}],au=function(){function e(){Df(this,e)}var t=e.prototype;return t.getEventsFromKeys=function(r){var u=typeof r=="string"?[r]:r;return e.events.filter(function(i){return u.includes(i.key)})},e}();au.events=gf;function vf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var su=[],en=function(){function e(n){vf(this,e),this.registeredControlTypes=new Set,this.controlConfigMap=new Map,this._controls=[],this._type=n,this._initControls(n)}var t=e.prototype;return t.registerControlConfig=function(r,u){return this.controlConfigMap.set(r,u),this},t.getControlConfig=function(r){return this.controlConfigMap.get(r)},t.getControls=function(){return this._controls},t.register=function(r){r.__is_control__||Ze("".concat(r.name," is not a Control"));var u=this._controls.findIndex(function(i){return i.controlType===r.controlType});return u>-1&&(Je("The ".concat(r.controlType," is repeat register, So it overwrites the one that was registered before.")),this._controls.splice(u,1)),this.registeredControlTypes.add(r.controlType),this._controls.push(r),this},t.isLayoutControl=function(r){return r.controlType===Le.LAYOUT},t.isFormControl=function(r){return r.controlType===Le.FORM},t.isListControl=function(r){return r.controlType===Le.LIST},t.isColumnControl=function(r){return r.controlType===Le.COLUMN},t.createControl=function(r,u){var i=this;if(Array.isArray(r))return r.map(function(f){return i.createControl(f,u)});r.children&&(r.children=r.children.map(function(f){return i.createControl(f,u)})),this.isListControl(r)&&r.props.headers&&(r.props.headers=r.props.headers.map(function(f){return i.createControl(f,u)}));var o=this.getControlFormType(r.type);if(o){var s=r;if(typeof u=="function"){var c=u(s);c&&(s=c)}var l=new o(s);return l}else Ze("The constructor of ".concat(r.type," could not be found, please confirm that the constructor has been registered"))},t.createControlInstance=function(r,u){var i=this.getControlFormType(r);if(i)return new i(u)},t.getControlFormType=function(r){return this._controls.find(function(u){return u.controlType===r})},t._initControls=function(r){var u=this;this.constructor.staticControls.forEach(function(i){u.register(i[r])})},e.register=function(r){var u=r.Designer,i=r.Runtime;(!u||!i||!u.__is_control__||!i.__is_control__)&&Ze("".concat(r," is can't register as a Control"));var o=this.staticControls.findIndex(function(s){return s.Designer.controlType===u.controlType});return o>-1&&(Je("The ".concat(u.controlType," is repeat register, So it overwrites the one that was registered before.")),this.staticControls.splice(o,1)),this.staticRegisteredTypes.add(u.controlType),this.staticControls.push(r),this},e}();en.staticControls=su,en.staticRegisteredTypes=new Set(su.map(function(e){return e.Designer.controlType})),en.staticRegisteredConfigs=new Map;function st(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Ot=function e(t){st(this,e);var n;this.dataCode=(n=t==null?void 0:t.dataCode)!==null&&n!==void 0?n:"";var r;this.fieldCode=(r=t==null?void 0:t.fieldCode)!==null&&r!==void 0?r:"";var u;this.fieldType=(u=t==null?void 0:t.fieldType)!==null&&u!==void 0?u:""},Qe=function e(){st(this,e)},tn=function e(t){st(this,e);var n;this.amount=(n=t==null?void 0:t.amount)!==null&&n!==void 0?n:"";var r;this.currency=(r=t==null?void 0:t.currency)!==null&&r!==void 0?r:zn.CNY},nn=function e(t){st(this,e);var n;this.min=(n=t==null?void 0:t.min)!==null&&n!==void 0?n:"";var r;this.max=(r=t==null?void 0:t.max)!==null&&r!==void 0?r:""},rn=function e(t){st(this,e);var n;this.city=(n=t==null?void 0:t.city)!==null&&n!==void 0?n:"";var r;this.cityDisplay=(r=t==null?void 0:t.cityDisplay)!==null&&r!==void 0?r:"";var u;this.district=(u=t==null?void 0:t.district)!==null&&u!==void 0?u:"";var i;this.districtDisplay=(i=t==null?void 0:t.districtDisplay)!==null&&i!==void 0?i:"";var o;this.province=(o=t==null?void 0:t.province)!==null&&o!==void 0?o:"";var s;this.provinceDisplay=(s=t==null?void 0:t.provinceDisplay)!==null&&s!==void 0?s:""},un=function e(t){st(this,e);var n;this.result=(n=t==null?void 0:t.result)!==null&&n!==void 0?n:0;var r;this.unit=(r=t==null?void 0:t.unit)!==null&&r!==void 0?r:""},zn;(function(e){e.CNY="CNY",e.USD="USD",e.JPY="JPY",e.EUR="EUR",e.INR="INR",e.IDR="IDR",e.BRL="BRL",e.AED="AED",e.AUD="AUD",e.CAD="CAD",e.EGP="EGP",e.GBP="GBP",e.ZAR="ZAR",e.KRW="KRW",e.MAD="MAD",e.MXN="MXN",e.MYR="MYR",e.PHP="PHP",e.PLN="PLN",e.RUB="RUB",e.SGD="SGD",e.THB="THB",e.TRY="TRY",e.TWD="TWD",e.VND="VND",e.HKD="HKD",e.IEP="IEP"})(zn||(zn={}));var cu;(function(e){e.REQUIRED="required",e.IS_HIDE="isHide",e.IS_SHOW_UNIT="isShowUnit",e.IMD_SEARCH="immediatelySearch",e.MULTIPLE="multiple",e.SUBMIT_SELECT_CURRENCY="submitSelectCurrency",e.CAPTION="caption",e.IS_HIDE_CAPTION="isHideCaption",e.DEFAULT_SHOW_OPTIONS="defaultShowOptions",e.CAN_SEARCH="canSearch",e.CAN_CHECK="canCheck",e.CAN_EDIT="canEdit",e.CAN_DELETE="canDelete",e.SHOW_UPPER_CASE="showUpperCase",e.MICROMETER="micrometer",e.PRECISION="precision",e.PERCENTAGE="percentage",e.OPTIONAL_LEVEL="optionalLevel",e.CONTAINS_SUB_NODE="containsSubNode",e.DEFAULT_COLLAPSE="defaultCollapse",e.CAN_VIEW_FORM="canViewForm",e.SERVER_PAGINATION="serverPagination",e.IS_SHOW_CAPTION_TIP="isShowCaptionTip",e.ENCRYPTED="encrypted",e.IS_INLINE_EDIT="isInlineEdit",e.REVISIONS_MODE="revisionsMode",e.ALLOW_COPY_OPTIONS="allowCopyOptions"})(cu||(cu={}));var Wn;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.READONLY=1]="READONLY",e[e.EDITABLE=2]="EDITABLE",e[e.PRINT=5]="PRINT"})(Wn||(Wn={}));var mf=function e(t){st(this,e);var n;this.width=(n=t==null?void 0:t.width)!==null&&n!==void 0?n:"";var r;this.height=(r=t==null?void 0:t.height)!==null&&r!==void 0?r:"";var u;this.widthConfig=(u=t==null?void 0:t.widthConfig)!==null&&u!==void 0?u:"fill";var i;this.heightConfig=(i=t==null?void 0:t.heightConfig)!==null&&i!==void 0?i:"fill"};function yf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ef(){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(e){return!1}}function on(e,t,n){return Ef()?on=Reflect.construct:on=function(u,i,o){var s=[null];s.push.apply(s,i);var c=Function.bind.apply(u,s),l=new c;return o&&$t(l,o.prototype),l},on.apply(null,arguments)}function Rt(e){return Rt=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Rt(e)}function Af(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$t(e,t)}function Cf(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Ff(e,t){return t&&(wf(t)==="object"||typeof t=="function")?t:yf(e)}function $t(e,t){return $t=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},$t(e,t)}var wf=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function Xn(e){var t=typeof Map=="function"?new Map:void 0;return Xn=function(r){if(r===null||!Cf(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,u)}function u(){return on(r,arguments,Rt(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),$t(u,r)},Xn(e)}function Bf(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function bf(e){var t=Bf();return function(){var r=Rt(e),u;if(t){var i=Rt(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Ff(this,u)}}var fu=function e(t){Zn(this,e),this.isHide={type:"boolean"}},lu=function(e){Af(n,e);var t=bf(n);function n(r){return Zn(this,n),t.call(this)}return n}(Xn(Array)),ct=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";Zn(this,e);var r;this.isHide=(r=t==null?void 0:t.isHide)!==null&&r!==void 0?r:!1,this.style=new mf(t==null?void 0:t.style);var u;this.caption=(u=t==null?void 0:t.caption)!==null&&u!==void 0?u:n};ct.Rules=fu,ct.RuntimeRules=lu;function qe(){return qe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qe.apply(this,arguments)}function Sf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Gn(e){return Gn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Gn(e)}function an(e,t){return an=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},an(e,t)}function _f(){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(e){return!1}}function sn(e,t,n){return _f()?sn=Reflect.construct:sn=function(u,i,o){var s=[null];s.push.apply(s,i);var c=Function.bind.apply(u,s),l=new c;return o&&an(l,o.prototype),l},sn.apply(null,arguments)}function Mf(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Kn(e){var t=typeof Map=="function"?new Map:void 0;return Kn=function(r){if(r===null||!Mf(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,u)}function u(){return sn(r,arguments,Gn(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),an(u,r)},Kn(e)}var Nf=/%[sdj%]/g,hu=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(hu=function(t,n){typeof console!="undefined"&&console.warn&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function Jn(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function be(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,u=t[0],i=t.length;if(typeof u=="function")return u.apply(null,t.slice(1));if(typeof u=="string"){var o=String(u).replace(Nf,function(s){if(s==="%%")return"%";if(r>=i)return s;switch(s){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(c){return"[Circular]"}break;default:return s}});return o}return u}function If(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function re(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||If(t)&&typeof e=="string"&&!e)}function xf(e,t,n){var r=[],u=0,i=e.length;function o(s){r.push.apply(r,s),u++,u===i&&n(r)}e.forEach(function(s){t(s,o)})}function du(e,t,n){var r=0,u=e.length;function i(o){if(o&&o.length){n(o);return}var s=r;r=r+1,s<u?t(e[s],i):n([])}i([])}function Of(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n])}),t}var pu=function(e){Sf(t,e);function t(n,r){var u;return u=e.call(this,"Async Validation Error")||this,u.errors=n,u.fields=r,u}return t}(Kn(Error));function Rf(e,t,n,r){if(t.first){var u=new Promise(function(a,h){var d=function(v){return r(v),v.length?h(new pu(v,Jn(v))):a()},p=Of(e);du(p,n,d)});return u.catch(function(a){return a}),u}var i=t.firstFields||[];i===!0&&(i=Object.keys(e));var o=Object.keys(e),s=o.length,c=0,l=[],f=new Promise(function(a,h){var d=function(g){if(l.push.apply(l,g),c++,c===s)return r(l),l.length?h(new pu(l,Jn(l))):a()};o.length||(r(l),a()),o.forEach(function(p){var g=e[p];i.indexOf(p)!==-1?du(g,n,d):xf(g,n,d)})});return f.catch(function(a){return a}),f}function Du(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:typeof t=="function"?t():t,field:t.field||e.fullField}}}function gu(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=qe(qe({},e[n]),r):e[n]=r}}return e}function vu(e,t,n,r,u,i){e.required&&(!n.hasOwnProperty(e.field)||re(t,i||e.type))&&r.push(be(u.messages.required,e.fullField))}function $f(e,t,n,r,u){(/^\s+$/.test(t)||t==="")&&r.push(be(u.messages.whitespace,e.fullField))}var Qn={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},Pt={integer:function(t){return Pt.number(t)&&parseInt(t,10)===t},float:function(t){return Pt.number(t)&&!Pt.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(n){return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Pt.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&!!t.match(Qn.email)&&t.length<255},url:function(t){return typeof t=="string"&&!!t.match(Qn.url)},hex:function(t){return typeof t=="string"&&!!t.match(Qn.hex)}};function Pf(e,t,n,r,u){if(e.required&&t===void 0){vu(e,t,n,r,u);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=e.type;i.indexOf(o)>-1?Pt[o](t)||r.push(be(u.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(be(u.messages.types[o],e.fullField,e.type))}function Tf(e,t,n,r,u){var i=typeof e.len=="number",o=typeof e.min=="number",s=typeof e.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,f=null,a=typeof t=="number",h=typeof t=="string",d=Array.isArray(t);if(a?f="number":h?f="string":d&&(f="array"),!f)return!1;d&&(l=t.length),h&&(l=t.replace(c,"_").length),i?l!==e.len&&r.push(be(u.messages[f].len,e.fullField,e.len)):o&&!s&&l<e.min?r.push(be(u.messages[f].min,e.fullField,e.min)):s&&!o&&l>e.max?r.push(be(u.messages[f].max,e.fullField,e.max)):o&&s&&(l<e.min||l>e.max)&&r.push(be(u.messages[f].range,e.fullField,e.min,e.max))}var gt="enum";function Lf(e,t,n,r,u){e[gt]=Array.isArray(e[gt])?e[gt]:[],e[gt].indexOf(t)===-1&&r.push(be(u.messages[gt],e.fullField,e[gt].join(", ")))}function jf(e,t,n,r,u){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(be(u.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var i=new RegExp(e.pattern);i.test(t)||r.push(be(u.messages.pattern.mismatch,e.fullField,t,e.pattern))}}}var V={required:vu,whitespace:$f,type:Pf,range:Tf,enum:Lf,pattern:jf};function qf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t,"string")&&!e.required)return n();V.required(e,t,r,i,u,"string"),re(t,"string")||(V.type(e,t,r,i,u),V.range(e,t,r,i,u),V.pattern(e,t,r,i,u),e.whitespace===!0&&V.whitespace(e,t,r,i,u))}n(i)}function kf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&V.type(e,t,r,i,u)}n(i)}function Uf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(t===""&&(t=void 0),re(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&(V.type(e,t,r,i,u),V.range(e,t,r,i,u))}n(i)}function Vf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&V.type(e,t,r,i,u)}n(i)}function Hf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t)&&!e.required)return n();V.required(e,t,r,i,u),re(t)||V.type(e,t,r,i,u)}n(i)}function zf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&(V.type(e,t,r,i,u),V.range(e,t,r,i,u))}n(i)}function Wf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&(V.type(e,t,r,i,u),V.range(e,t,r,i,u))}n(i)}function Zf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(t==null&&!e.required)return n();V.required(e,t,r,i,u,"array"),t!=null&&(V.type(e,t,r,i,u),V.range(e,t,r,i,u))}n(i)}function Xf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&V.type(e,t,r,i,u)}n(i)}var Gf="enum";function Kf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&V[Gf](e,t,r,i,u)}n(i)}function Jf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t,"string")&&!e.required)return n();V.required(e,t,r,i,u),re(t,"string")||V.pattern(e,t,r,i,u)}n(i)}function Qf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t,"date")&&!e.required)return n();if(V.required(e,t,r,i,u),!re(t,"date")){var s;t instanceof Date?s=t:s=new Date(t),V.type(e,s,r,i,u),s&&V.range(e,s.getTime(),r,i,u)}}n(i)}function Yf(e,t,n,r,u){var i=[],o=Array.isArray(t)?"array":typeof t;V.required(e,t,r,i,u,o),n(i)}function Yn(e,t,n,r,u){var i=e.type,o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(re(t,i)&&!e.required)return n();V.required(e,t,r,o,u,i),re(t,i)||V.type(e,t,r,o,u)}n(o)}function el(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t)&&!e.required)return n();V.required(e,t,r,i,u)}n(i)}var Tt={string:qf,method:kf,number:Uf,boolean:Vf,regexp:Hf,integer:zf,float:Wf,array:Zf,object:Xf,enum:Kf,pattern:Jf,date:Qf,url:Yn,hex:Yn,email:Yn,required:Yf,any:el};function er(){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 t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var tr=er();function Ye(e){this.rules=null,this._messages=tr,this.define(e)}Ye.prototype={messages:function(t){return t&&(this._messages=gu(er(),t)),this._messages},define:function(t){if(!t)throw new Error("Cannot configure a schema with no rules");if(typeof t!="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={};var n,r;for(n in t)t.hasOwnProperty(n)&&(r=t[n],this.rules[n]=Array.isArray(r)?r:[r])},validate:function(t,n,r){var u=this;n===void 0&&(n={}),r===void 0&&(r=function(){});var i=t,o=n,s=r;if(typeof o=="function"&&(s=o,o={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(),Promise.resolve();function c(g){var v,D=[],y={};function F(C){if(Array.isArray(C)){var _;D=(_=D).concat.apply(_,C)}else D.push(C)}for(v=0;v<g.length;v++)F(g[v]);D.length?y=Jn(D):(D=null,y=null),s(D,y)}if(o.messages){var l=this.messages();l===tr&&(l=er()),gu(l,o.messages),o.messages=l}else o.messages=this.messages();var f,a,h={},d=o.keys||Object.keys(this.rules);d.forEach(function(g){f=u.rules[g],a=i[g],f.forEach(function(v){var D=v;typeof D.transform=="function"&&(i===t&&(i=qe({},i)),a=i[g]=D.transform(a)),typeof D=="function"?D={validator:D}:D=qe({},D),D.validator=u.getValidationMethod(D),D.field=g,D.fullField=D.fullField||g,D.type=u.getType(D),D.validator&&(h[g]=h[g]||[],h[g].push({rule:D,value:a,source:i,field:g}))})});var p={};return Rf(h,o,function(g,v){var D=g.rule,y=(D.type==="object"||D.type==="array")&&(typeof D.fields=="object"||typeof D.defaultField=="object");y=y&&(D.required||!D.required&&g.value),D.field=g.field;function F(O,R){return qe(qe({},R),{},{fullField:D.fullField+"."+O})}function C(O){O===void 0&&(O=[]);var R=O;if(Array.isArray(R)||(R=[R]),!o.suppressWarning&&R.length&&Ye.warning("async-validator:",R),R.length&&D.message!==void 0&&(R=[].concat(D.message)),R=R.map(Du(D)),o.first&&R.length)return p[D.field]=1,v(R);if(!y)v(R);else{if(D.required&&!g.value)return D.message!==void 0?R=[].concat(D.message).map(Du(D)):o.error&&(R=[o.error(D,be(o.messages.required,D.field))]),v(R);var S={};if(D.defaultField)for(var P in g.value)g.value.hasOwnProperty(P)&&(S[P]=D.defaultField);S=qe(qe({},S),g.rule.fields);for(var W in S)if(S.hasOwnProperty(W)){var k=Array.isArray(S[W])?S[W]:[S[W]];S[W]=k.map(F.bind(null,W))}var J=new Ye(S);J.messages(o.messages),g.rule.options&&(g.rule.options.messages=o.messages,g.rule.options.error=o.error),J.validate(g.value,g.rule.options||o,function(K){var ee=[];R&&R.length&&ee.push.apply(ee,R),K&&K.length&&ee.push.apply(ee,K),v(ee.length?ee:null)})}}var _;D.asyncValidator?_=D.asyncValidator(D,g.value,C,g.source,o):D.validator&&(_=D.validator(D,g.value,C,g.source,o),_===!0?C():_===!1?C(D.message||D.field+" fails"):_ instanceof Array?C(_):_ instanceof Error&&C(_.message)),_&&_.then&&_.then(function(){return C()},function(O){return C(O)})},function(g){c(g)})},getType:function(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!Tt.hasOwnProperty(t.type))throw new Error(be("Unknown rule type %s",t.type));return t.type||"string"},getValidationMethod:function(t){if(typeof t.validator=="function")return t.validator;var n=Object.keys(t),r=n.indexOf("message");return r!==-1&&n.splice(r,1),n.length===1&&n[0]==="required"?Tt.required:Tt[this.getType(t)]||!1}},Ye.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Tt[t]=n},Ye.warning=hu,Ye.messages=tr,Ye.validators=Tt;var tl={required:"%s \u5FC5\u586B",maxLength:"%s \u8D85\u51FA\u6700\u5927\u957F\u5EA6\u9650\u5236",minLength:"%s \u5C0F\u4E8E\u6700\u5C0F\u957F\u5EA6\u9650\u5236",string:{range:"%s \u4E0D\u5728\u6307\u5B9A\u957F\u5EA6\u5185"}};function nl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new Ye(e);return n.messages(Object.assign(tl,t)),n}var rl=new ou;function nr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ul(e){if(Array.isArray(e))return e}function il(e){if(Array.isArray(e))return nr(e)}function mu(e,t,n,r,u,i,o){try{var s=e[i](o),c=s.value}catch(l){n(l);return}s.done?t(c):Promise.resolve(c).then(r,u)}function yu(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(c){mu(i,r,u,o,s,"next",c)}function s(c){mu(i,r,u,o,s,"throw",c)}o(void 0)})}}function ol(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Eu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function al(e,t,n){return t&&Eu(e.prototype,t),n&&Eu(e,n),e}function sl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Au(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Cu(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cl(){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 fl(){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 Fu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable}))),r.forEach(function(u){sl(e,u,n[u])})}return e}function ll(e){return ul(e)||Cu(e)||wu(e)||cl()}function rr(e){return il(e)||Cu(e)||wu(e)||fl()}function wu(e,t){if(!!e){if(typeof e=="string")return nr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nr(e,t)}}var Bu=function(e,t){var n,r,u,i,o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(f){return c([l,f])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=l[0]&2?r.return:l[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,l[1])).done)return u;switch(r=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){o.label=l[1];break}if(l[0]===6&&o.label<u[1]){o.label=u[1],u=l;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(l);break}u[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(f){l=[6,f],r=0}finally{n=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},ke=function(){function t(r){var u=this;ol(this,t),this.setting=[],this.eventKeys=[],this.customEvents=[],this.parent=null,this.updateSetting=Su,this.removeSetting=bu,this._callControlHooks("preInstance",r);var i=Au(this,t)?this.constructor:void 0,o=i.controlName,s=i.controlIcon,c=i.controlType,l=i.controlFieldType,f=i.controlEventKeys,a=i.controlCustomEvents,h=i.name,d=i.setting;o&&s&&c||Yr("The ".concat(h," controlName,controlIcon,controlType is not define"));var p;this.id=(p=r==null?void 0:r.id)!==null&&p!==void 0?p:Tn(10),this.name=o,this.icon=s;var g;this.type=(g=r==null?void 0:r.type)!==null&&g!==void 0?g:c,this.props=new ct(r==null?void 0:r.props,(Au(this,t)?this.constructor:void 0).controlName);var v;this.controlType=(v=r==null?void 0:r.controlType)!==null&&v!==void 0?v:"base",this.setting=ne(d);var D;this.fieldType=(D=r==null?void 0:r.fieldType)!==null&&D!==void 0?D:l,this.eventKeys=ne(f),this.customEvents=ne(a),Promise.resolve().then(function(){u._callControlHooks("postInstance",r)})}var n=t.prototype;return n._callControlHooks=function(){for(var u=arguments.length,i=new Array(u),o=0;o<u;o++)i[o]=arguments[o];var s,c=ll(i),l=c[0],f=c.slice(1);return(s=rl).emit.apply(s,[l,this].concat(rr(f)))},n.preUpdate=function(u,i){this._callControlHooks("preUpdateProps",u,i)},n.postUpdate=function(u,i){this._callControlHooks("postUpdateProps",u,i)},n.updateProps=function(u,i){this.preUpdate(u,i),tu(this.props,u,i),this.postUpdate(u,i)},n.preValidate=function(){var u=this;return yu(function(){var i,o,s;return Bu(this,function(c){switch(c.label){case 0:return i=Fu({},u.rules),[4,u._callControlHooks("preValidate",i)];case 1:return o=c.sent(),s=o[o.length-1],[2,s===!1?void 0:s]}})})()},n.validate=function(u,i){var o=this;return yu(function(){var s,c,l,f;return Bu(this,function(a){switch(a.label){case 0:return[4,o.preValidate()];case 1:s=a.sent(),c=s!==void 0?s:Fu({},o.rules),Array.isArray(i)&&i.forEach(function(h){c.hasOwnProperty(h)&&delete c[h]}),l=nl(c,u),a.label=2;case 2:return a.trys.push([2,4,,5]),[4,l.validate(o.props)];case 3:return a.sent(),[2,!0];case 4:throw f=a.sent(),f.control||(f.control=o),f;case 5:return[2]}})})()},n.toDataBindModel=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=this.fieldType,o=this.id,s=this.type,c=this.props,l=c.dataBind,f=c.datasourceBind,a=c.optionConfig,h=c.caption,d=c.required,p=c.maxLength,g=c.options,v=c.encrypted,D=c.encryptedMode;if(!(!i&&!l&&!f)){var y={parentId:u,fieldType:i,controlId:o,caption:h,type:s,props:{}};switch(l&&(y.dataBind=l),a){case"datasource":case void 0:f&&(y.datasourceBind=f);break;case"custom":y.props.options=g;break}return d!==void 0&&(y.required=d),p!==void 0&&(y.maxLength=p),v!==void 0&&(y.encrypted=v),D!==void 0&&(y.encryptedMode=D),y}},n.preToSchema=function(){this._callControlHooks("preToSchema",this)},n.toSchema=function(){return this.preToSchema(),{id:this.id,type:this.type,props:ne(this.props),fieldType:this.fieldType,controlType:this.controlType}},t.updateBasicControl=function(u,i){if(u==="setting"){if(i.add){var o;(o=this.setting).push.apply(o,rr(i.add))}i.remove&&this.removeSettingItem(i.remove),i.update}},al(t,[{key:"rules",get:function(){var u=this.props.constructor.Rules;return u?new u(this.props):{}}}]),t}();ke.controlName="\u63A7\u4EF6",ke.controlIcon="icon",ke.controlType="control",ke.controlEventKeys=[],ke.controlCustomEvents=[],ke.setting=[],ke.__is_control__=!0,ke.removeSettingItem=bu,ke.updateSettingItem=Su;function bu(e){var t=this,n=Array.isArray(e)?e:[e];n.forEach(function(r){var u=typeof r!="string",i=t.setting.findIndex(function(c){return c.key===(u?r.key:r)});if(i!==-1){var o,s;u?t.setting[i].showItems=(o=t.setting[i].showItems)===null||o===void 0?void 0:o.filter(function(c){return!r.hideItems.includes(c)}):t.setting.splice(i,1),u&&!(!((s=t.setting[i].showItems)===null||s===void 0)&&s.length)&&t.setting.splice(i,1)}})}function Su(e,t){var n=this,r=typeof e=="string"?[e]:e;r.forEach(function(u){var i=n.setting.find(function(l){return l.key===u});if(i){if(typeof t=="boolean")i.visible=t;else if(typeof t=="object"){var o,s=(o=t.type)!==null&&o!==void 0?o:"replace";if(s==="replace")i.showItems=t.showItems;else{var c;(c=i.showItems).push.apply(c,rr(t.showItems))}}}})}function hl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dl(e,t,n){return t&&_u(e.prototype,t),n&&_u(e,n),e}function pl(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var Lt=function(){function t(n){hl(this,t),this.customEvents=[],this.parent=null;var r=pl(this,t)?this.constructor:void 0,u=r.controlType,i=r.controlFieldType,o=r.name,s=r.controlCustomEvents;u||Yr("The ".concat(o," controlType is not define"));var c;this.id=(c=n==null?void 0:n.id)!==null&&c!==void 0?c:Tn(10);var l;this.type=(l=n==null?void 0:n.type)!==null&&l!==void 0?l:u,this.props=new ct(n==null?void 0:n.props),this.customEvents=s;var f;this.controlType=(f=n==null?void 0:n.controlType)!==null&&f!==void 0?f:"base";var a;this.fieldType=(a=n==null?void 0:n.fieldType)!==null&&a!==void 0?a:i;var h;this.pageStatus=(h=n==null?void 0:n.pageStatus)!==null&&h!==void 0?h:Wn.UNKNOWN}return dl(t,[{key:"rules",get:function(){var r=this.props.constructor.RuntimeRules;if(r){var u=new r(this.props);return Array.from(u)}return[]}}]),t}();Lt.controlType="control",Lt.__is_control__=!0,Lt.controlCustomEvents=[];function Dl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ur(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cn(e){return cn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},cn(e)}function ir(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&or(e,t)}function gl(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function vl(e,t){return t&&(ml(t)==="object"||typeof t=="function")?t:Dl(e)}function or(e,t){return or=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},or(e,t)}var ml=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function yl(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function ar(e){var t=yl();return function(){var r=cn(e),u;if(t){var i=cn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return vl(this,u)}}var El=function(e){ir(n,e);var t=ar(n);function n(r){ur(this,n);var u;u=t.call(this,r),u.dataBind={},u.caption={type:"string",required:!0,message:Oe.getMessage("pleaseEnterCaption")},u.isHideCaption={type:"boolean"},u.labelPosition={type:"enum",enum:["top","left"]},u.defaultState={type:"enum",enum:["default","readonly"]},u.required={type:"boolean"},u.captionTip={type:"string",required:!1,message:Oe.getMessage("pleaseEnterCaptionTip")};var i={fieldCode:{type:"string",required:!0,message:Oe.getMessage("pleaseEnterFieldCode")},dataCode:{type:"string",required:!0,message:Oe.getMessage("pleaseEnterFieldCode")}};if(gl(r.dataBind,Ot))u.dataBind={type:"object",required:!0,fields:ne(i),message:Oe.getMessage("pleaseEnterFieldCode")};else{var o={type:"object",required:!0,fields:{},message:Oe.getMessage("pleaseEnterFieldCode")};Object.keys(r.dataBind).forEach(function(s){o.fields[s]={type:"object",required:!0,fields:ne(i),message:Oe.getMessage("pleaseEnterFieldCode")}}),u.dataBind=o}return r.isShowCaptionTip&&(u.captionTip.required=!0),u}return n}(fu),Al=function(e){ir(n,e);var t=ar(n);function n(r){ur(this,n);var u;return u=t.call(this,r),u.push({type:"string",required:r.isHide?!1:r.required,message:r.requiredMessage!==""?r.requiredMessage:Oe.getMessage("runtimeRequired",{caption:r.caption})}),u}return n}(lu),sr=function(e){ir(n,e);var t=ar(n);function n(r){ur(this,n);var u;u=t.call(this,r);var i;u.caption=(i=r==null?void 0:r.caption)!==null&&i!==void 0?i:"";var o;u.isHideCaption=(o=r==null?void 0:r.isHideCaption)!==null&&o!==void 0?o:!1;var s;u.isShowCaptionTip=(s=r==null?void 0:r.isShowCaptionTip)!==null&&s!==void 0?s:!1;var c;u.captionTip=(c=r==null?void 0:r.captionTip)!==null&&c!==void 0?c:"";var l;u.defaultState=(l=r==null?void 0:r.defaultState)!==null&&l!==void 0?l:"default";var f;u.labelPosition=(f=r==null?void 0:r.labelPosition)!==null&&f!==void 0?f:"top";var a;u.placeholder=(a=r==null?void 0:r.placeholder)!==null&&a!==void 0?a:"";var h;u.required=(h=r==null?void 0:r.required)!==null&&h!==void 0?h:!1;var d;u.requiredMessage=(d=r==null?void 0:r.requiredMessage)!==null&&d!==void 0?d:"",u.dataBind=new Ot(r==null?void 0:r.dataBind);var p;return u.defaultValue=(p=r==null?void 0:r.defaultValue)!==null&&p!==void 0?p:"",u}return n}(ct);sr.Rules=El,sr.RuntimeRules=Al;function Cl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fn(e){return fn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},fn(e)}function wl(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&cr(e,t)}function Bl(e,t){return t&&(bl(t)==="object"||typeof t=="function")?t:Cl(e)}function cr(e,t){return cr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},cr(e,t)}var bl=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function Sl(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _l(e){var t=Sl();return function(){var r=fn(e),u;if(t){var i=fn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Bl(this,u)}}var Ue=function(e){wl(n,e);var t=_l(n);function n(r){Fl(this,n);var u;return u=t.call(this,r),u.controlType="form",u.props=new sr(r==null?void 0:r.props),u}return n}(Lt);function Ml(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ln(e){return ln=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ln(e)}function Il(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fr(e,t)}function xl(e,t){return t&&(Ol(t)==="object"||typeof t=="function")?t:Ml(e)}function fr(e,t){return fr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},fr(e,t)}var Ol=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function Rl(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function $l(e){var t=Rl();return function(){var r=ln(e),u;if(t){var i=ln(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return xl(this,u)}}var Pl=function(e){Il(n,e);var t=$l(n);function n(r){return Nl(this,n),t.call(this,r)}return n}(ct);function lr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tl(e){if(Array.isArray(e))return lr(e)}function Ll(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jl(){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 Mu(e){return Tl(e)||Ll(e)||ql(e)||jl()}function ql(e,t){if(!!e){if(typeof e=="string")return lr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lr(e,t)}}function kl(e,t){var n;!((n=Object.getOwnPropertyDescriptors(e)[t])===null||n===void 0)&&n.enumerable&&Object.defineProperty(e,t,{enumerable:!1})}function Nu(e,t){e.parent=t,kl(e,"parent")}function Ul(e,t){e.forEach(function(n){Nu(n,t)})}var Iu=Symbol("targetKey");function xu(e){var t;return(t=e[Iu])!==null&&t!==void 0?t:e}function Ou(e,t){return Ul(e,t),new Proxy(e,{get:function(r,u){for(var i=arguments.length,o=new Array(i>2?i-2:0),s=2;s<i;s++)o[s-2]=arguments[s];var c;return u===Iu?r:(c=Reflect).get.apply(c,[r,u].concat(Mu(o)))},set:function(r,u,i){for(var o=arguments.length,s=new Array(o>3?o-3:0),c=3;c<o;c++)s[c-3]=arguments[c];var l;if(Dt(e)&&u==="length"&&i===e.length)return!0;var f=(l=Reflect).set.apply(l,[r,u,i].concat(Mu(s)));return je(i)&&Nu(i,t),f}})}function hr(e,t,n,r){var u=r!=null?r:e,i=Ou(xu(n!=null?n:[]),u);Object.defineProperty(e,t,{get:function(){return i},set:function(s){i=Ou(xu(s),u)},enumerable:!0})}function dr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vl(e){if(Array.isArray(e))return dr(e)}function Ru(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $u(e,t,n,r,u,i,o){try{var s=e[i](o),c=s.value}catch(l){n(l);return}s.done?t(c):Promise.resolve(c).then(r,u)}function Hl(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(c){$u(i,r,u,o,s,"next",c)}function s(c){$u(i,r,u,o,s,"throw",c)}o(void 0)})}}function zl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vt(e,t,n){return typeof Reflect!="undefined"&&Reflect.get?vt=Reflect.get:vt=function(u,i,o){var s=t0(u,i);if(!!s){var c=Object.getOwnPropertyDescriptor(s,i);return c.get?c.get.call(o):c.value}},vt(e,t,n||e)}function et(e){return et=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},et(e)}function Zl(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pr(e,t)}function Xl(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Gl(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Kl(){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 Jl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable}))),r.forEach(function(u){Wl(e,u,n[u])})}return e}function Ql(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function Yl(e,t){return t=t!=null?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ql(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function e0(e,t){return t&&(n0(t)==="object"||typeof t=="function")?t:Ru(e)}function pr(e,t){return pr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},pr(e,t)}function t0(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=et(e),e!==null););return e}function Pu(e){return Vl(e)||Gl(e)||r0(e)||Kl()}var n0=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function r0(e,t){if(!!e){if(typeof e=="string")return dr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dr(e,t)}}function u0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function i0(e){var t=u0();return function(){var r=et(e),u;if(t){var i=et(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return e0(this,u)}}var o0=function(e,t){var n,r,u,i,o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(f){return c([l,f])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=l[0]&2?r.return:l[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,l[1])).done)return u;switch(r=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){o.label=l[1];break}if(l[0]===6&&o.label<u[1]){o.label=u[1],u=l;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(l);break}u[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(f){l=[6,f],r=0}finally{n=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},a0=1e4,Tu=function(t){Zl(r,t);var n=i0(r);function r(i){zl(this,r);var o;o=n.call(this,i),o.controlType="layout";var s=Xl(this,r)?this.constructor:void 0,c=s.excludes,l=s.childrenMaxLength;return o.props=new Pl(i==null?void 0:i.props),hr(Ru(o),"children",i==null?void 0:i.children),o.excludes=ne(c),o.childrenMaxLength=l,o}var u=r.prototype;return u.judgeExcludesChildren=function(o){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(o)},u.judgeJoinChildren=function(o){var s=this.judgeExcludesChildren(o);return s&&this.childrenMaxLength>this.children.length},u.validate=function(o,s){var c=this,l=this,f=function(){return vt(et(r.prototype),"validate",c)};return Hl(function(){return o0(this,function(a){switch(a.label){case 0:return[4,f().call(l,o,s)];case 1:return a.sent(),[4,Promise.all(l.children.map(function(h){return h.validate(o,s)}))];case 2:return a.sent(),[2,!0]}})})()},u.toDataBindModel=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,s=vt(et(r.prototype),"toDataBindModel",this).call(this),c=s?[s]:[];return this.children.reduce(function(l,f){var a=f.toDataBindModel(o);if(Array.isArray(a)){var h=a.filter(function(d){return!!d});return Pu(l).concat(Pu(h))}return a&&l.push(a),l},c)},u.toSchema=function(){var o=vt(et(r.prototype),"toSchema",this).call(this),s=this.children.map(function(c){var l=c.toSchema();return l});return Yl(Jl({},o),{children:s})},r}(ke);Tu.excludes=!1,Tu.childrenMaxLength=a0;function Lu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hn(e){return hn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},hn(e)}function c0(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Dr(e,t)}function f0(e,t){return t&&(l0(t)==="object"||typeof t=="function")?t:Lu(e)}function Dr(e,t){return Dr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Dr(e,t)}var l0=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function h0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function d0(e){var t=h0();return function(){var r=hn(e),u;if(t){var i=hn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return f0(this,u)}}var p0=function(e){c0(n,e);var t=d0(n);function n(r,u){s0(this,n);var i;return i=t.call(this,u),hr(Lu(i),"headers",u==null?void 0:u.headers,r),i}return n}(ct);H.LIST;function gr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ju(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g0(e,t,n){return t&&ju(e.prototype,t),n&&ju(e,n),e}function dn(e){return dn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},dn(e)}function v0(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vr(e,t)}function m0(e,t){return t&&(y0(t)==="object"||typeof t=="function")?t:gr(e)}function vr(e,t){return vr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},vr(e,t)}var y0=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function E0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function A0(e){var t=E0();return function(){var r=dn(e),u;if(t){var i=dn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return m0(this,u)}}var pn=function(e){v0(n,e);var t=A0(n);function n(r){D0(this,n);var u;return u=t.call(this,r),u.controlType="list",u.props=new p0(gr(u),r==null?void 0:r.props),hr(gr(u),"children",r==null?void 0:r.children),u}return g0(n,[{key:"length",get:function(){return this.children.length}}]),n}(Lt);console.log(11);function Dn(e){return e.controlType===Le.LAYOUT||e.controlType===Le.WRAP||e.controlType===Le.LIST||e.controlType===Le.SEARCH}function jt(e,t){Array.isArray(e)&&e.map(n=>{if(n.type===X.SUBTABLE){const r=n.getChildrenFormControl();t(n,r)}else Dn(n)?jt(n==null?void 0:n.children,t):n instanceof Ue&&t(n)})}function qt(e,t){Array.isArray(e)&&e.map(n=>{n.type===X.DATA_VIEW||n.type===X.SIMPLE_SEARCH?t(n):Dn(n)&&qt(n==null?void 0:n.children,t)})}class mr extends en{constructor(t){super("Runtime"),this._flatInstances=[],this._instanceMap={};const{schema:n}=t;this._schema=n,this._instance=this.createControl(n,t.beforeCreateInstance),this.getFlatInstances()}getFlatInstances(){const t=[],n={};return qu(this._instance,r=>{t.push(r),n[r.id]||(n[r.id]=[]),n[r.id].push(r)}),this._flatInstances=t,this._instanceMap=n,this._flatInstances}get schema(){return this._schema}get instance(){return this._instance}get flatInstances(){return this._flatInstances}get instanceMap(){return this._instanceMap}get rules(){let t={};return qt(this._instance,n=>{t[n.id]=n.rules[0],jt(n.children,r=>{(r instanceof Ue||r instanceof pn)&&C0(t[n.id].fields,r)})}),t}get antdRules(){let t={};return qt(this._instance,n=>{t[n.id]=n.rules[0],jt(n.children,r=>{(r instanceof Ue||r instanceof pn)&&F0(t[n.id].fields,r)})}),t}}function qu(e,t){Array.isArray(e)?e.map(n=>{t(n),Dn(n)&&qu(n.children,t)}):t(e)}function yr(e){return e.props.isHide?!0:e.parent===null?!1:yr(e.parent)}function C0(e,t){if(!yr(t)){if(t instanceof Ue)e[t.id]=t.rules;else if(t.type===X.SUBTABLE){e[t.id]=t.rules;const n={type:"array",fields:{}};t.children.forEach((r,u)=>{at(r.children,i=>{n.fields&&(n.fields[u]||(n.fields[u]={type:"object",required:!0,fields:{}}),n.fields[u].fields[i.id]=i.rules)})}),e[t.id].push(n)}}}function F0(e,t){yr(t)||(t instanceof Ue?e[t.id]=t.rules:t.type===X.SUBTABLE&&t.children.length&&(e[t.id]=[],t.children.forEach(n=>{let r={};at(n.children,u=>{r[u.id]=u.rules}),e[t.id].push(r)})))}class w0{constructor(t){const{state:n,emptyState:r,databindMapping:u,controlidMapping:i}=B0(t.instance);this.emptyState=r,this.state=n,this.dataBindMapping=u,this.controlIdMapping=i}setState(t,n,r){const u=this.controlIdMapping[t];u!==void 0?this.state[u.dataView][t]=n:r!==void 0?Object.keys(this.controlIdMapping).map(i=>{const o=this.controlIdMapping[i].dataView,s=this.controlIdMapping[i].children;s!==void 0&&Object.keys(s).map(c=>{c===t&&(this.state[o][i][r][t]=n)})}):this.state[t]=n}getState(t,n){if(this.state[t]!==void 0)return this.state[t];{const u=this.controlIdMapping[t];if(u!==void 0)return this.state[u.dataView][t];if(n!==void 0){let i;return Object.keys(this.controlIdMapping).map(o=>{const s=this.controlIdMapping[o].dataView,c=this.controlIdMapping[o].children;c!==void 0&&Object.keys(c).map(l=>{var f;l===t&&(i=(f=this.state[s][o][n])==null?void 0:f[t])})}),i}else{let i=[];return Object.keys(this.controlIdMapping).map(o=>{const s=this.controlIdMapping[o].dataView,c=this.controlIdMapping[o].children;c!==void 0&&Object.keys(c).map(l=>{l===t&&this.state[s][o].map(f=>{i.push(f[t])})})}),i}}}getEmptyState(t){if(this.emptyState[t]!==void 0)return this.emptyState[t];{const r=this.controlIdMapping[t];if(r!==void 0)return this.emptyState[r.dataView][t];{let u;return Object.keys(this.controlIdMapping).map(i=>{const o=this.controlIdMapping[i].dataView,s=this.controlIdMapping[i].children;s!==void 0&&Object.keys(s).map(c=>{c===t&&(u=this.emptyState[o][i][t])})}),u}}}getDataBind(t){let n=this.controlIdMapping[t];if(n)return n.dataBind;e:for(let r in this.controlIdMapping){const u=this.controlIdMapping[r];if(u.children){for(let i in u.children)if(i===t){n=u.children[i];break e}}}return n==null?void 0:n.dataBind}}function B0(e){let t={},n={},r={},u={};return qt(e,i=>{const o=i.id,s={},c={};jt([i],(l,f)=>{b0(s,c,l),S0(r,o,l),_0(u,o,l)}),t[o]=s,n[o]=c}),{state:t,emptyState:n,databindMapping:r,controlidMapping:u}}function b0(e,t,n){var r;if(n instanceof Ue)e[n.id]=ne(n.props.defaultValue),t[n.id]=ne(n.props.defaultValue);else{const u={};at(n.props.headers,i=>{u[i.id]=ne(i.props.defaultValue)}),e[n.id]=new Array((r=n.props.defaultRows)!=null?r:1).fill(0).map(()=>ne(u)),t[n.id]=u}}function S0(e,t,n){if(n instanceof Ue)n.props.dataBind instanceof Qe?Object.keys(n.props.dataBind).map(r=>{const u=n.props.dataBind,i=u[r].dataCode;i!==void 0&&(e[i]===void 0&&(e[i]={controlId:n.id,fields:[],dataViewId:t}),e[i].fields.push({fieldCode:u[r].fieldCode,controlId:n.id,dataBind:u,dataViewId:[t]}))}):(e[n.props.dataBind.dataCode]===void 0&&(e[n.props.dataBind.dataCode]={controlId:t,fields:[],dataViewId:t}),e[n.props.dataBind.dataCode].fields.push({fieldCode:n.props.dataBind.fieldCode,controlId:n.id,dataBind:n.props.dataBind,dataViewId:[t]}));else{if(n.props.datasourceBind.dataCode===""){Je(`datasourceBind.dataCode is empty! maybe in preview mode, control:${n.id} type:${n.type}`);return}e[n.props.datasourceBind.dataCode]={controlId:n.id,fields:[],dataViewId:t};const r=n.id;at(n.props.headers,u=>{u.props.dataBind instanceof Qe?Object.keys(u.props.dataBind).map(i=>{const o=u.props.dataBind,s=o[i].dataCode;e[s].fields.push({fieldCode:o[i].fieldCode,controlId:u.id,dataBind:o,dataViewId:[t,r]})}):e[u.props.dataBind.dataCode].fields.push({fieldCode:u.props.dataBind.fieldCode,controlId:u.id,dataBind:u.props.dataBind,dataViewId:[t,r]})})}}function _0(e,t,n){n instanceof Ue?e[n.id]={dataBind:n.props.dataBind,options:[],dataView:t}:n.type===X.SUBTABLE&&(e[n.id]={dataBind:new Ot({dataCode:n.props.datasourceBind.dataCode,fieldCode:""}),dataView:t,children:{},options:[]},at(n.props.headers,r=>{var u,i;Object.assign((i=(u=e[n.id])==null?void 0:u.children)!=null?i:{},{[r.id]:{dataBind:r.props.dataBind}})}))}const ku=["splice","push","shift","pop","unshift","reverse"],Er=Symbol("__engineProxy__"),Ar=Symbol("__engineTarget__"),Uu=Symbol("__engineArrayBeforeSetCallbackFlag__"),Vu=Symbol("__engineProxyThisKey__"),Re={type:"",args:[],callback:Hu};function Hu(){}O0();function M0(e,t,n,r,u){if(Re.type){Re.callback=u.bind(null,e,r);return}const i=Number(t);if(i>e.length){Ze(`Wrong array operations may cause unknown errors. It is recommended to use APIs such as ${ku.join(",")} for array operations`);return}if(!(Number.isNaN(i)&&t!=="length"))if(t==="length"){const s=n,c=e.length;if(s>e.length){Ze("Do not directly modify the length of the array data, please add new rows");return}return s===e.length?void 0:()=>u.call(null,e,r,"splice",[s,c-s])}else return i===e.length?()=>u.call(null,e,r,"push",[n]):()=>u.call(null,e,r,"splice",[i,1,n])}function N0(e,t,n){return{__engineProxy__:!0,get(r,u,i){return u===Er?!0:u===Ar?r:Array.isArray(r)&&u===Uu?n:u===Vu?e:Reflect.get(r,u,i)},set(r,u,i,o){var h;let s=i;const c=r[u],l=e===""?u:e+"."+u;function f(d){if(typeof d=="object"&&d!==null)return d[Er]!==!0?gn(d,t,n,l):gn(d[Ar],t,n,l)}s=(h=f(i))!=null?h:s;let a;if(Array.isArray(r)){const d=M0(r,u,i,e,t);a=Reflect.set(r,u,s,o),d&&d()}else{try{let d=s;if(s=n.call(null,r,l,s,c),d!==s){const p=f(s);p!==void 0&&(s=p)}}catch(d){return Jt(`${l} set error ${d}`),!0}a=Reflect.set(r,u,s,o),t.call(null,r,l,i,c)}return a}}}function gn(e,t,n,r=""){if(Object.isFrozen(e))return e;for(let u in e){const i=r===""?u:r+"."+u,o=e[u];typeof o=="object"&&o!==null&&(e[u]=gn(o,t,n,i))}return new Proxy(e,N0(r,t,n))}function zu(e){const t=[];return e.forEach(n=>{t.push(n),n.controlType==="layout"&&t.push(...zu(n.children))}),t}function Cr(e,t){if(t==="")return;const n=t.split(".");if(n.length===0)return;const r=n[0],u=n.slice(1),i=e.find(o=>o.id===r);return u.length===0?i:u.reduce((o,s)=>{var f,a;const c=Number(s);if(Number.isNaN(c)){const h=o!=null&&o.children?zu(o.children):void 0,d=h==null?void 0:h.find(p=>p.id===s);return d||(o instanceof Ue?o:void 0)}else return(a=(f=o==null?void 0:o.children)==null?void 0:f[c])!=null?a:o},i)}function I0(e,t){return["push","unshift"].includes(e)?t:e==="splice"?t.slice(2):[]}function x0(e,t,n){if(["push","unshift"].includes(e))return n;if(e==="splice")return t.slice(0,2).concat(n)}function O0(){ku.forEach(e=>{const t=Array.prototype[e];Array.prototype[e]=function(...n){var r;if(this[Er]){let u;const i=I0(e,n);if(i.length){const o=(r=this[Uu])==null?void 0:r.call(this,this[Ar],this[Vu],i),s=x0(e,n,o);Re.type=e,Re.args=s,u=t.apply(this,s)}else Re.type=e,Re.args=n,u=t.apply(this,n);return typeof Re.callback=="function"&&Re.callback(e,n,u),Re.type="",Re.args=[],Re.callback=Hu,u}else return t.apply(this,n)}})}class R0{constructor(){this.actionMap=new Map,this.buildinActions={},this.actionUtils={},this.sources={}}execAction(t,n,...r){return ze(this,null,function*(){const u=this.actionMap.get(t);if(!!u)try{return yield u.func.call(null,n,...r)}catch(i){Jt(`${u.id} Exception during calling action: ${i}`)}})}addAction(t,n){this.actionMap.has(t)&&Ze("duplicated action key");const r=new $0(t,n);this.actionMap.set(t,r)}}class $0{constructor(t,n){this.id="",this.id=t,this.func=n}}class P0{constructor(t){this._dataStore=new Map,this.executer=t}add(t,n){this._dataStore.set(t,n)}get(t){let n=this._dataStore.get(t);return ne(n)}remove(t){this._dataStore.delete(t)}getRemoteData(t){return ze(this,null,function*(){return this.executer===void 0?(Jt("\u672A\u521D\u59CB\u5316executer"),[]):this.executer(t)})}}var Fr={exports:{}};(function(e){(function(t){var n=function(D,y,F){if(!l(y)||a(y)||h(y)||d(y)||c(y))return y;var C,_=0,O=0;if(f(y))for(C=[],O=y.length;_<O;_++)C.push(n(D,y[_],F));else{C={};for(var R in y)Object.prototype.hasOwnProperty.call(y,R)&&(C[D(R,F)]=n(D,y[R],F))}return C},r=function(D,y){y=y||{};var F=y.separator||"_",C=y.split||/(?=[A-Z])/;return D.split(C).join(F)},u=function(D){return p(D)?D:(D=D.replace(/[\-_\s]+(.)?/g,function(y,F){return F?F.toUpperCase():""}),D.substr(0,1).toLowerCase()+D.substr(1))},i=function(D){var y=u(D);return y.substr(0,1).toUpperCase()+y.substr(1)},o=function(D,y){return r(D,y).toLowerCase()},s=Object.prototype.toString,c=function(D){return typeof D=="function"},l=function(D){return D===Object(D)},f=function(D){return s.call(D)=="[object Array]"},a=function(D){return s.call(D)=="[object Date]"},h=function(D){return s.call(D)=="[object RegExp]"},d=function(D){return s.call(D)=="[object Boolean]"},p=function(D){return D=D-0,D===D},g=function(D,y){var F=y&&"process"in y?y.process:y;return typeof F!="function"?D:function(C,_){return F(C,D,_)}},v={camelize:u,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(D,y){return n(g(u,y),D)},decamelizeKeys:function(D,y){return n(g(o,y),D,y)},pascalizeKeys:function(D,y){return n(g(i,y),D)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=v:t.humps=v})(Xe)})(Fr);class tt{}class kt extends tt{validate(t){return Be(t)}transform(t){if(t==null)return"";if(!je(t)&&!ru(t))return String(t);if(uf(t))return JSON.stringify(t);throw`${t} is not a string`}}class wr extends tt{validate(t){return Qt(t)||t===""}transform(t){if(t==null)return"";const n=!je(t)&&!ru(t)?Number(t):void 0;if(!Number.isNaN(n)&&n!==void 0)return n;throw`${t} is not a number`}}class T0 extends tt{validate(t){return of(t)}transform(t){if(t==null)return[];function n(r){return r.map(u=>u?String(u):"")}if(Dt(t))return n(t);if(Be(t)&&uu(t))try{const r=JSON.parse(t);if(Array.isArray(r))return n(r)}catch(r){}return[String(t)]}}class L0 extends tt{validate(t){return af(t)}transform(t){if(t==null)return[];function n(u){return u.map(i=>!i&&i!==0?"":Number(i)).filter(i=>i===""||!Number.isNaN(i))}if(Dt(t))return n(t);if(Be(t)&&uu(t))try{const u=JSON.parse(t);if(Dt(u))return n(u)}catch(u){}const r=Number(t);if(Number.isNaN(r))throw`${t} is not a number array`;return[r]}}class j0 extends tt{validate(t){return t instanceof tn||je(t)&&"amount"in t&&Qt(t.amount)&&"currency"in t&&Be(t.currency)}transform(t,n){if(t==null||t==="")return new tn({currency:n==null?void 0:n.currency});let r;if(je(t)&&(r=new tn(oe(oe({},n),t))),Be(t)&&Yt(t))try{const u=JSON.parse(t);r=new tn(oe(oe({},n),u))}catch(u){}if(r){const u=new wr,i=new kt;return u.validate(r.amount)||(r.amount=u.transform(r.amount)),i.validate(r.currency)||(r.currency=i.transform(r.currency)),r}throw`${t} is not a { amount: number, currency: string } object`}}class q0 extends tt{validate(t){return t instanceof nn||je(t)&&"min"in t&&Be(t.min)&&"max"in t&&Be(t.max)}transform(t,n){if(t==null||t==="")return new nn;let r;if(je(t)&&(r=new nn(oe(oe({},n),t))),Be(t)&&Yt(t))try{const u=JSON.parse(t);r=new nn(oe(oe({},n),u))}catch(u){}if(r){const u=new kt;return u.validate(r.min)||(r.min=u.transform(r.min)),u.validate(r.max)||(r.max=u.transform(r.max)),r}throw`${t} is not a { min: string, max: string } object`}}class k0 extends tt{validate(t){return t instanceof un||je(t)&&"result"in t&&Qt(t.result)&&"unit"in t&&Be(t.unit)}transform(t,n){if(t==null||t==="")return new un({unit:n==null?void 0:n.unit});let r;if(je(t)&&(r=new un(oe(oe({},n),t))),Be(t)&&Yt(t))try{const u=JSON.parse(t);r=new un(oe(oe({},n),u))}catch(u){}if(r){const u=new wr,i=new kt;return u.validate(r.result)||(r.result=u.transform(r.result)),i.validate(r.unit)||(r.unit=i.transform(r.unit)),r}throw`${t} is not a { result: string, unit: string } object`}}class U0 extends tt{validate(t){return t instanceof rn}transform(t,n){if(t==null||t==="")return new rn;let r;if(je(t)&&(r=new rn(oe(oe({},n),Fr.exports.camelizeKeys(t)))),Be(t)&&Yt(t))try{const u=JSON.parse(t);r=new rn(oe(oe({},n),Fr.exports.camelizeKeys(u)))}catch(u){}if(r){const u=new kt;return u.validate(r.city)||(r.city=u.transform(r.city)),u.validate(r.district)||(r.district=u.transform(r.district)),u.validate(r.province)||(r.province=u.transform(r.province)),r}throw`${t} is not a { city: string, district: string, province: string } object`}}class V0{static getValueChecker(t){let n;switch(t){case H.VARCHAR:case H.TIMESTAMP:case H.TEXT:case H.RELATION:case H.AUTO_NUMBER:n=new kt;break;case H.DECIMAL:n=new wr;break;case H.EMPLOYEES:case H.DEPARTMENTS:case H.IMAGE:case H.FILE:case H.ARRAY:n=new T0;break;case H.MONEY:n=new j0;break;case H.TIMESCOPE:n=new q0;break;case H.CALC:n=new k0;break;case H.DECIMAL_RANGE:n=new L0;break;case H.ADDRESS:n=new U0;break}return n}}function H0(e){if(["min","max","currency","unit"].includes(e))return H.VARCHAR;if(["result","amount"].includes(e))return H.DECIMAL}function Wu(e,t,n,r){var o;let u=(o=H0(t))!=null?o:e,i=V0.getValueChecker(u);if(!i||i.validate(n))return n;try{const s=i.transform(n,r);return s!==void 0?s:n}catch(s){throw`${t} ${s}`}}function z0(e,t,n){return Object.entries(e).reduce((r,[u,i])=>{const o=t[u];return r[u]=Wu(i,u,o,n[u]),r},Object.assign({},t))}typeof window!="undefined"&&(window.engines={});let mt=null,Ut="";class Br extends ou{constructor(t){super(),this.isMounted=!1,this.id=Tn(8),this.__pluginsApplied=!1,this.actionManager=new R0,this._jobTasks=[],this.rawStore={},this.createControlInstance=this.createInstance,this.$options=Object.freeze(t);const{autoMount:n=!0,schema:r,beforeCreateInstance:u,externalParams:i,language:o=Wr,debug:s=!1}=this.$options;Oe.setLocale(o),this.debug=s,this.runtime=new mr({schema:r,beforeCreateInstance:u}),this.externalParams=i,this.store=new w0({instance:this.runtime.instance}),this.debugLog("engine is Instantiation complete"),n&&this.mount()}debugLog(...t){this.debug&&kn(...t)}use(t){return this.__pluginsApplied||this.__plugins.push(t),this}registerControl(...t){return this.runtime.register(...t),this}static register(...t){return mr.register(...t)}static judgeControlIsRegistered(t){return mr.staticRegisteredTypes.has(t.Runtime.controlType)}mount(){this.debugLog("engine\u7684mount\u65B9\u6CD5\u5F00\u59CB\u8C03\u7528");const{plugins:t=[]}=this.$options;this._handlerProxyState(),this.__plugins=t,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=gn(this.store.state,this._proxyStateCallback.bind(this),this._proxyStateBeforeSetCallback.bind(this))}_proxyStateBeforeSetCallback(t,n,r,u){const i=console,o=Date.now();i.log("\u3297\uFE0F_proxyStateBeforeSetCallback findItem "+n,r,u),i.time("\u3297\uFE0F_proxyStateBeforeSetCallback findItem "+n+" "+o);const s=Cr(this.runtime.flatInstances,n);if(i.timeEnd("\u3297\uFE0F_proxyStateBeforeSetCallback findItem "+n+" "+o),!s)return r;if(this.assertInstance(s,X.SUBTABLE)){const f=s.props.headers.reduce((a,h)=>{const d=h.children[0];return d&&d instanceof Ue&&(a[d.id]=d.fieldType),a},{});return r===null?[]:r.map(a=>z0(f,a,this.getEmptyState(s.id)))}const c=n.split("."),l=c[c.length-1];try{return Wu(s.fieldType,l,r,u)}catch(f){throw Je(`the id=${s.id}'s instance setState error, %o ${f}.`,r),f}}_proxyStateCallback(t,n,r,u,i){Array.isArray(t)?this._handlerArrayUpdate(t,n,r,u,i):this._handlerObjectUpdate(t,n,r,u)}_handlerArrayUpdate(t,n,r,u,i){const o=console;o.time("\u3297\uFE0F _handlerArrayUpdate findItem"+n);const s=Cr(this.runtime.flatInstances,n);if(o.timeEnd("\u3297\uFE0F _handlerArrayUpdate findItem"+n),!(s instanceof pn))return;const c=d=>[],l=mt;let f=[],a=[],h=[];if(r&&u){switch(r){case"push":case"unshift":u.length,f=c(),a=u,s.children[r](...f),this.runtime.getFlatInstances();break;case"splice":if(u.length>2){u.length-2;const d=u.slice(2);f=c(),a=d;const p=u[0],g=u[1];s.children[r](p,g,...f),this.runtime.getFlatInstances()}else s.children[r](...u),this.runtime.getFlatInstances();break;default:s.children[r](...u),this.runtime.getFlatInstances();break}r==="splice"?h=i:["pop","shift"].includes(r)&&(h=[i]),this.emit("list-change",{instance:s,value:this.getState(s.id),options:Object.assign({},l,{changed:f,data:a,deleted:h!=null?h:[]})}),mt=null}}_handlerObjectUpdate(t,n,r,u){const i=console,o=Date.now();i.log("\u3297\uFE0F_handlerObjectUpdate findItem "+n,r,u),i.time("\u3297\uFE0F_handlerObjectUpdate findItem "+n+" "+o);const s=Cr(this.runtime.flatInstances,n);if(i.timeEnd("\u3297\uFE0F_handlerObjectUpdate findItem "+n+" "+o),!s)return;const c=this.getInstanceRowIndex(s),l=mt||{};if(s instanceof pn){s.children.length=0;const f=r;let a=[];this.runtime.getFlatInstances(),this.emit("list-change",{instance:s,value:r,options:zr(oe({},l),{changed:a,data:f,deleted:u!=null?u:[]})})}else this.emit("change",{instance:s,value:this.getState(s.id,c),rowIndex:c,options:zr(oe({},l),{oldValue:u})})}applyPlugins(){this.__pluginsApplied||(this.__plugins.forEach(t=>{var n;try{Ut=(n=t.pluginName)!=null?n:t.constructor.name,t.apply(this)}catch(r){Ze(`${Ut} Plugin apply Error
|
|
1
|
+
var w1=Object.defineProperty,B1=Object.defineProperties;var b1=Object.getOwnPropertyDescriptors;var uo=Object.getOwnPropertySymbols,S1=Object.getPrototypeOf,_1=Object.prototype.hasOwnProperty,M1=Object.prototype.propertyIsEnumerable,N1=Reflect.get;var On=Math.pow,io=(Z,Y,te)=>Y in Z?w1(Z,Y,{enumerable:!0,configurable:!0,writable:!0,value:te}):Z[Y]=te,oe=(Z,Y)=>{for(var te in Y||(Y={}))_1.call(Y,te)&&io(Z,te,Y[te]);if(uo)for(var te of uo(Y))M1.call(Y,te)&&io(Z,te,Y[te]);return Z},zr=(Z,Y)=>B1(Z,b1(Y));var oo=(Z,Y,te)=>N1(S1(Z),te,Y);var ze=(Z,Y,te)=>new Promise((Rn,Gt)=>{var $n=We=>{try{Mt(te.next(We))}catch(Nt){Gt(Nt)}},Pn=We=>{try{Mt(te.throw(We))}catch(Nt){Gt(Nt)}},Mt=We=>We.done?Rn(We.value):Promise.resolve(We.value).then($n,Pn);Mt((te=te.apply(Z,Y)).next())});(function(Z,Y){typeof exports=="object"&&typeof module!="undefined"?Y(exports,require("crypto")):typeof define=="function"&&define.amd?define(["exports","crypto"],Y):(Z=typeof globalThis!="undefined"?globalThis:Z||self,Y(Z.modelDrivenEngine={},Z.require$$0))})(this,function(Z,Y){"use strict";function te(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var Rn=te(Y),Gt="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",$n="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",Pn="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",Mt="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",We="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",Nt="{caption}\u5FC5\u586B",ao="\u8BF7\u8F93\u5165\u6807\u9898",so="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",co="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",fo="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",lo="\u8BF7\u7ED1\u5B9A\u8868\u5355",ho="\u8BF7\u7ED1\u5B9A\u5217\u8868",po="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",Do="\u8BF7\u8F93\u5165\u663E\u793A\u503C",go="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",vo="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",mo="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",yo="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",Eo="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",Ao="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",Co="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",Fo="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",wo="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",Bo="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",bo="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",So="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",_o="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Mo="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",No="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",Io="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",xo="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",Oo="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",Ro="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",$o="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Po="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",To="\u8BF7\u7ED1\u5B9A\u670D\u52A1",Lo="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",jo="\u8BF7\u9009\u62E9\u7701",qo="\u8BF7\u9009\u62E9\u5E02",ko="\u8BF7\u9009\u62E9\u533A",Uo="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",Vo="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",Ho="\u8BF7\u8F93\u5165\u5217\u5BBD",zo="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",Wo="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",Zo="\u8BF7\u9009\u62E9\u63A7\u4EF6",Xo="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",Go="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",Ko="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",Jo="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",Qo="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Yo="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",ea="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",ta="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",na="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",ra="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",ua="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",ia="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",oa="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",aa="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",sa="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",ca="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",fa="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",la="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",ha="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",da="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",pa="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Da={isNotNumber:Gt,isNotString:$n,isNotObject:Pn,isNotArray:Mt,isNotBoolean:We,runtimeRequired:Nt,pleaseEnterCaption:ao,pleaseEnterCaptionTip:so,pleaseEnterPlaceholder:co,pleaseEnterFieldCode:fo,pleaseEnterForm:lo,pleaseEnterList:ho,pleaseEnterProcess:po,pleaseEnterLabel:Do,pleaseEnterValue:go,bizKeyNotBindFiled:vo,pleaseSelectOneField:mo,pleaseEnterNumberRange:yo,pleaseEnterAValueGreaterThanMin:Eo,pleaseEnterAValueLessThanMax:Ao,numberRangeSetError:Co,stringRangeError:Fo,attachmentMaxSize:wo,pleaseEnterTotalScoreSetting:Bo,theTotalScoreMustNotBeLessThan1:bo,scoreDefaultValueRange:So,attachmentLimitError:_o,PleaseReselectTheOptionalQuantity:Mo,TheMaximumLengthIsGreaterThanTheMinimumLength:No,TheMinimumLengthIsGreaterThanTheMaximumLength:Io,PleaseSelectTheCorrectOptionSettings:xo,optionIdIsRepeat:Oo,optionIsRequired:Ro,pleaseEnterDataCode:$o,pleaseEnterValueFieldCode:Po,pleaseEnterSvcCode:To,pleaseBindAtLeastOneDisplayValue:Lo,pleaseSelectProvince:jo,pleaseSelectCity:qo,pleaseSelectDistrict:ko,limitRowsCannotBeLessThan0:Uo,TheNumberOfRowsCannotBeLessThanMinRows:Vo,pleaseEnterColumnWidth:Ho,pleaseSetTheLogicalRelationshipOfAllRuleConditions:zo,pleaseCompleteAllRulesAndConditions:Wo,pleaseSelectControl:Zo,pleaseSelectAtLeastOneColumn:Xo,pleaseSelectFillBackMode:Go,pleaseSelectDashboard:Ko,rootNodeIsRequired:Jo,theViewNameCannotBeEmpty:Qo,pleaseSelectOcrType:Yo,pleaseSelectAtLeastOneFieldToFillIn:ea,pleaseChooseAtLeastOne:ta,pleaseEnterButtonContent:na,pleaseEnterDataCodeInDataSetting:ra,pleaseEnterValueFieldCodeInDataSetting:ua,pleaseEnterSvcCodeInDataSetting:ia,pleaseBindAtLeastOneDisplayValueInDataSetting:oa,rootNodeIsRequiredInDataSetting:aa,pleaseEnterMaxHeight:sa,pleaseEnter:ca,pleaseEnterWatermark:fa,pleaseEnterFileName:la,pleaseUploadAtLeastOnePrintTemplate:ha,pleaseAssignBusiness:da,pleaseAssignExternal:pa},ga="Please enter a number",va="Please enter a string",ma="Please enter an object",ya="Please enter an array",Ea="Please enter a boolean",Aa="{caption} Required",Ca="Please enter the title",Fa="Please enter the bubble prompt",wa="Please enter the prompt text",Ba="Please bind data items",ba="Please bind the form",Sa="Please bind the list",_a="Please bind the process",Ma="Please enter the displayed value",Na="Please enter the stored value",Ia="The document number is not bound to the data item",xa="Please select at least one display field",Oa="Please enter a value greater than or equal to {min} and less than or equal to {max}",Ra="Please enter a value greater than or equal to {min}",$a="Please enter a value less than or equal to {max}",Pa="The value range is set incorrectly",Ta="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",La="The attachment size must be between 0MB and 1000MB",ja="Please fill in the total score setting",qa="The total score cannot be less than 1",ka="The default value must be between {min} and {max}",Ua="The number of attachments uploaded must be between {min} and {max}",Va="Please re-select the optional quantity",Ha="The maximum length of the control must be greater than the minimum length",za="The minimum length of the control must be less than the maximum length",Wa="Please select the correct option setting",Za="Option ID cannot be repeated",Xa="Please enter at least one option",Ga="Please bind the data source",Ka="Please bind the stored value",Ja="Please bind the service",Qa="At least one display value must be bound",Ya="Please select a province",es="Please select a city",ts="Please select a district",ns="The minimum number of lines to fill in cannot be less than 0",rs="The number of rows cannot be less than {min} rows",us="Please enter the column width",is="Please set the logical relationship of all rule conditions",os="Please complete all rules and conditions",as="please select control",ss="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",cs="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",fs="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",ls="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",hs="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",ds="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",ps="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Ds="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",gs="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",vs="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",ms="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",ys="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Es="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",As="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",Cs="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Fs="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",ws="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Bs="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",bs={isNotNumber:ga,isNotString:va,isNotObject:ma,isNotArray:ya,isNotBoolean:Ea,runtimeRequired:Aa,pleaseEnterCaption:Ca,pleaseEnterCaptionTip:Fa,pleaseEnterPlaceholder:wa,pleaseEnterFieldCode:Ba,pleaseEnterForm:ba,pleaseEnterList:Sa,pleaseEnterProcess:_a,pleaseEnterLabel:Ma,pleaseEnterValue:Na,bizKeyNotBindFiled:Ia,pleaseSelectOneField:xa,pleaseEnterNumberRange:Oa,pleaseEnterAValueGreaterThanMin:Ra,pleaseEnterAValueLessThanMax:$a,numberRangeSetError:Pa,stringRangeError:Ta,attachmentMaxSize:La,pleaseEnterTotalScoreSetting:ja,theTotalScoreMustNotBeLessThan1:qa,scoreDefaultValueRange:ka,attachmentLimitError:Ua,PleaseReselectTheOptionalQuantity:Va,TheMaximumLengthIsGreaterThanTheMinimumLength:Ha,TheMinimumLengthIsGreaterThanTheMaximumLength:za,PleaseSelectTheCorrectOptionSettings:Wa,optionIdIsRepeat:Za,optionIsRequired:Xa,pleaseEnterDataCode:Ga,pleaseEnterValueFieldCode:Ka,pleaseEnterSvcCode:Ja,pleaseBindAtLeastOneDisplayValue:Qa,pleaseSelectProvince:Ya,pleaseSelectCity:es,pleaseSelectDistrict:ts,limitRowsCannotBeLessThan0:ns,TheNumberOfRowsCannotBeLessThanMinRows:rs,pleaseEnterColumnWidth:us,pleaseSetTheLogicalRelationshipOfAllRuleConditions:is,pleaseCompleteAllRulesAndConditions:os,pleaseSelectControl:as,pleaseSelectDashboard:ss,theViewNameCannotBeEmpty:cs,pleaseSelectOcrType:fs,pleaseSelectAtLeastOneFieldToFillIn:ls,pleaseChooseAtLeastOne:hs,pleaseEnterButtonContent:ds,pleaseEnterDataCodeInDataSetting:ps,pleaseEnterValueFieldCodeInDataSetting:Ds,pleaseEnterSvcCodeInDataSetting:gs,pleaseBindAtLeastOneDisplayValueInDataSetting:vs,rootNodeIsRequiredInDataSetting:ms,pleaseEnterMaxHeight:ys,pleaseEnter:Es,pleaseEnterWatermark:As,pleaseEnterFileName:Cs,pleaseUploadAtLeastOnePrintTemplate:Fs,pleaseAssignBusiness:ws,pleaseAssignExternal:Bs},Ss="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",_s="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ms="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ns="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Is="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",xs="{caption}\u5FC5\u9808",Os="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Rs="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",$s="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ps="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ts="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ls="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",js="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",qs="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ks="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Us="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",Vs="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Hs="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",zs="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ws="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Zs="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",Xs="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Gs="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Ks="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Js="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Qs="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Ys="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",ec="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",tc="\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",nc="\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",rc="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",uc="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",ic="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",oc="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ac="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",sc="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",cc="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",fc="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",lc="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",hc="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",dc="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",pc="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Dc="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",gc="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",vc="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",mc="please select control",yc="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",Ec="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Ac="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Cc="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Fc="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",wc="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Bc="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",bc="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",Sc="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",_c="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Mc="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",Nc="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Ic="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",xc="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",Oc="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Rc="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",$c="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Pc="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Tc={isNotNumber:Ss,isNotString:_s,isNotObject:Ms,isNotArray:Ns,isNotBoolean:Is,runtimeRequired:xs,pleaseEnterCaption:Os,pleaseEnterCaptionTip:Rs,pleaseEnterPlaceholder:$s,pleaseEnterFieldCode:Ps,pleaseEnterForm:Ts,pleaseEnterList:Ls,pleaseEnterProcess:js,pleaseEnterLabel:qs,pleaseEnterValue:ks,bizKeyNotBindFiled:Us,pleaseSelectOneField:Vs,pleaseEnterNumberRange:Hs,pleaseEnterAValueGreaterThanMin:zs,pleaseEnterAValueLessThanMax:Ws,numberRangeSetError:Zs,stringRangeError:Xs,attachmentMaxSize:Gs,pleaseEnterTotalScoreSetting:Ks,theTotalScoreMustNotBeLessThan1:Js,scoreDefaultValueRange:Qs,attachmentLimitError:Ys,PleaseReselectTheOptionalQuantity:ec,TheMaximumLengthIsGreaterThanTheMinimumLength:tc,TheMinimumLengthIsGreaterThanTheMaximumLength:nc,PleaseSelectTheCorrectOptionSettings:rc,optionIdIsRepeat:uc,optionIsRequired:ic,pleaseEnterDataCode:oc,pleaseEnterValueFieldCode:ac,pleaseEnterSvcCode:sc,pleaseBindAtLeastOneDisplayValue:cc,pleaseSelectProvince:fc,pleaseSelectCity:lc,pleaseSelectDistrict:hc,limitRowsCannotBeLessThan0:dc,TheNumberOfRowsCannotBeLessThanMinRows:pc,pleaseEnterColumnWidth:Dc,pleaseSetTheLogicalRelationshipOfAllRuleConditions:gc,pleaseCompleteAllRulesAndConditions:vc,pleaseSelectControl:mc,pleaseSelectDashboard:yc,theViewNameCannotBeEmpty:Ec,pleaseSelectOcrType:Ac,pleaseSelectAtLeastOneFieldToFillIn:Cc,pleaseChooseAtLeastOne:Fc,pleaseEnterButtonContent:wc,pleaseEnterDataCodeInDataSetting:Bc,pleaseEnterValueFieldCodeInDataSetting:bc,pleaseEnterSvcCodeInDataSetting:Sc,pleaseBindAtLeastOneDisplayValueInDataSetting:_c,rootNodeIsRequiredInDataSetting:Mc,pleaseEnterMaxHeight:Nc,pleaseEnter:Ic,pleaseEnterWatermark:xc,pleaseEnterFileName:Oc,pleaseUploadAtLeastOnePrintTemplate:Rc,pleaseAssignBusiness:$c,pleaseAssignExternal:Pc},Lc={zhCN:Da,enUS:bs,jaJP:Tc},xe;(function(e){e.Number="Number",e.Operator="Operator",e.VariableInMainTable="VariableInMainTable",e.VariableInCurrentSubTable="VariableInCurrentSubTable",e.VariableInOtherSubTable="VariableInOtherSubTable",e.UndefinedVariable="UndefinedVariable"})(xe||(xe={}));var pt;(function(e){e.SUM="SUM",e.AVG="AVG",e.MAX="MAX",e.MIN="MIN"})(pt||(pt={}));var Wr="zh-CN";function we(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Le;(function(e){e.BASE="base",e.FORM="form",e.LAYOUT="layout",e.WRAP="wrap",e.COLUMN="column",e.LIST="list",e.SEARCH="search"})(Le||(Le={}));var X;(function(e){e.TITLE="title",e.LINK="link",e.BUTTON="button",e.DIVIDER="divider",e.TEXT="text",e.CREATE_FORM_LIST_BUTTON="list-page-btn-create-form",e.BATCH_SUBMISSION_LIST_BUTTON="list-page-btn-batch-submission",e.SUBMISSION_RECORD_LIST_BUTTON="list-page-btn-submission-record",e.IMPORT_RECORD_LIST_BUTTON="list-page-btn-import-record",e.EXPORT_RECORD_LIST_BUTTON="list-page-btn-export-record",e.EXPORT_LIST_BUTTON="list-page-btn-export-list",e.LIST_SELECT_BUTTON="list-select-button",e.FORM_SELECT_BUTTON="form-select-button",e.LIST_VIEW_SELECT="list-view-select",e.TEXT_OCR_BUTTON="text-ocr-button",e.INVOICE_CHECK_BUTTON="invoice-check-button",e.LIST_PAGE_BTN_BATCH_PRINT="list-page-btn-batch-print",e.LIST_PAGE_BTN_BATCH_PRINT_RECORD="list-page-btn-batch-print-record",e.VARCHAR_COLUMN="varchar-column",e.TEXT_COLUMN="text-column",e.DECIMAL_COLUMN="decimal-column",e.TIMESCOPE_COLUMN="timescope-column",e.TIMESTAMP_COLUMN="timestamp-column",e.ARRAY_COLUMN="array-column",e.DEPARTMENT_COLUMN="department-column",e.AUTO_NUMBER_COLUMN="auto-number-column",e.FILE_COLUMN="file-column",e.IMAGE_COLUMN="image-column",e.PEOPLE_COLUMN="people-column",e.LOCATION_COLUMN="location-column",e.CUSTOM_COLUMN="custom-column",e.ORDER_COLUMN="order-column",e.OPERATION_COLUMN="operation-column",e.EMPLOYEE_COLUMN="employee-column",e.ADDRESS="address",e.AMOUNT="amount",e.ATTACHMENT="attachment",e.AUTO_NUMBER="auto-number",e.CALC="calc",e.CHECKBOX="checkbox",e.DATE_PICKER="date-picker",e.DATE_RANGE="date-range",e.DEPARTMENT="department",e.EMPLOYEE="employee",e.IMAGE="image",e.INPUT="input",e.NUMBER="number",e.RADIO="radio",e.RICH_TEXT="rich-text",e.SCORE="score",e.SEARCH_DATE_RANGE="search-date-range",e.SEARCH_NUMBER_RANGE="search-number-range",e.SEARCH_INPUT="search-input",e.SELECT="select",e.SELECT_MULTIPLE="select-multiple",e.SELECT_RELATION="select-relation",e.VUE_FORM_ITEM="vue-form-item",e.TEXTAREA="textarea",e.EMAIL="email",e.FOOTER="footer",e.HEADER="header",e.ID_CARD="id-card",e.MOBILE="mobile",e.PHONE="phone",e.RADIO_IMAGE="radio-image",e.ELECTRONIC_SIGNATURE="electronic-signature",e.WPS="wps",e.CARD_GROUP="card-group",e.COL="col",e.GRID="grid",e.GRID_ROW="grid-row",e.GRID_TABLE_COLUMN="grid-table-column",e.ROW="row",e.TWO_COLUMNS="two-columns",e.SUBTABLE_COLUMN="subtable-column",e.SUBTABLE_ROW="subtable-row",e.TAB="tab",e.TAB_PANE="tab-pane",e.TOOLBOX="toolbox",e.DATA_VIEW="data-view",e.LIST_VIEW="list-view",e.SUBTABLE="subtable",e.GRID_TABLE="grid-table",e.SIMPLE_SEARCH="simple-search",e.PAGINATION="pagination",e.CHECKBOX_IMAGE="checkbox-image",e.DASHBOARD="dashboard",e.TREE="tree",e.EMPLOYEE2="employee2",e.DEPARTMENT2="department2"})(X||(X={}));var H;(function(e){e.VARCHAR="varchar",e.TEXT="text",e.ARRAY="array",e.ADDRESS="location",e.DECIMAL="decimal",e.DECIMAL_RANGE="decimal_range",e.TIMESTAMP="timestamp",e.EMPLOYEES="people",e.DEPARTMENTS="department",e.MONEY="money",e.TIMESCOPE="timescope",e.FILE="file",e.IMAGE="image",e.AUTO_NUMBER="auto_number",e.CALC="calc",e.RELATION="relation",e.LIST="list",e.RELATION_FIELD="relation-field",e.REFERENCE_FIELD="reference-field",e.CALC_FIELD="calc",e.JSON="json",e.BIGINT="bigint",e.ANY="ANY",e.ENCRYPTED_FIELD="encrypted_field"})(H||(H={}));var De;De={},we(De,H.ARRAY,X.ARRAY_COLUMN),we(De,H.AUTO_NUMBER,X.AUTO_NUMBER_COLUMN),we(De,H.DECIMAL,X.DECIMAL_COLUMN),we(De,H.DEPARTMENTS,X.DEPARTMENT_COLUMN),we(De,H.FILE,X.FILE_COLUMN),we(De,H.IMAGE,X.IMAGE_COLUMN),we(De,H.ADDRESS,X.LOCATION_COLUMN),we(De,H.EMPLOYEES,X.EMPLOYEE_COLUMN),we(De,H.TEXT,X.TEXT_COLUMN),we(De,H.TIMESCOPE,X.TIMESCOPE_COLUMN),we(De,H.TIMESTAMP,X.TIMESTAMP_COLUMN),we(De,H.VARCHAR,X.VARCHAR_COLUMN),we(De,H.RELATION,X.VARCHAR_COLUMN);var Zr;(function(e){e.YEAR="year",e.MONTH="month",e.DATE="date",e.DATETIME="datetime"})(Zr||(Zr={}));var Xr="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",jc=Xr+"0123456789";function Tn(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,t="",n=0;n<e;n++){var r=n===0?Xr:jc,u=Math.random()*r.length;t+=r[parseInt(String(u),10)]}return t}function Ln(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qc(e){if(Array.isArray(e))return Ln(e)}function kc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uc(){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(e){return!1}}function Kt(e,t,n){return Uc()?Kt=Reflect.construct:Kt=function(u,i,o){var s=[null];s.push.apply(s,i);var c=Function.bind.apply(u,s),l=new c;return o&&xt(l,o.prototype),l},Kt.apply(null,arguments)}function It(e){return It=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},It(e)}function Kr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xt(e,t)}function Vc(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Hc(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zc(){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 Wc(e,t){return t&&(Zc(t)==="object"||typeof t=="function")?t:kc(e)}function xt(e,t){return xt=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},xt(e,t)}function Jr(e){return qc(e)||Hc(e)||Xc(e)||zc()}var Zc=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function Xc(e,t){if(!!e){if(typeof e=="string")return Ln(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ln(e,t)}}function jn(e){var t=typeof Map=="function"?new Map:void 0;return jn=function(r){if(r===null||!Vc(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,u)}function u(){return Kt(r,arguments,It(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),xt(u,r)},jn(e)}function Gc(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Qr(e){var t=Gc();return function(){var r=It(e),u;if(t){var i=It(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Wc(this,u)}}var qn=console;function Je(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,u=t.slice(1);(r=qn).warn.apply(r,["\u{1F9D0} Driven Warning:"+t[0]].concat(Jr(u)))}function kn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,u=t.slice(1);(r=qn).log.apply(r,["\u{1F680} Driven Log:"+t[0]].concat(Jr(u)))}function Kc(e){return e+" \u{1F41B}\u{1F41B}\u{1F41B}"}var Un=function(e){Kr(n,e);var t=Qr(n);function n(r){Gr(this,n);var u;return u=t.call(this,r),u.name="\u{1F4A5} Driven Error",u.message=r?Kc(r):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",u}return n}(jn(Error)),Jc=function(e){Kr(n,e);var t=Qr(n);function n(r){Gr(this,n);var u;return u=t.call(this,r),u.name="\u{1F6A8} Driven Reference Error",u}return n}(Un);function Ze(e){throw new Un(e)}function Yr(e){throw new Jc(e)}function Jt(e){qn.error(new Un(e))}function at(e,t){Array.isArray(e)&&e.map(function(n){switch(n.controlType){case"layout":at(n==null?void 0:n.children,t);break;case"search":at(n==null?void 0:n.children,t);break;case"form":t(n)}})}var Qc=Object.prototype.toString;function eu(e,t){return Qc.call(e)==="[object "+t+"]"}function Yc(e){return eu(e,"String")}function ef(e){return eu(e,"Promise")}var tf=function(){function e(t){var n,r;this._messageCache=new Map,this.messages={},this.variableRegExp=/\{([0-9a-zA-Z_]+)\}/g,this._messages=Object.freeze((r=(n=t.messages)!==null&&n!==void 0?n:this.getPreImport(t.locale))!==null&&r!==void 0?r:{}),t.variableRegExp&&(this.variableRegExp=t.variableRegExp),this.setLocale(t.locale)}return e.prototype.setLocale=function(t){var n=this;this.locale=t,this._messageCache.clear();var r=this.getMessageData();ef(r)?r.then(function(u){n._messageCache.clear(),n.messages[n.localeInMessageKey]=u}):this.messages[this.localeInMessageKey]=r},e.prototype.getMessageData=function(){var t=this._messages[this.localeInMessageKey];return typeof t=="function"?t():t},e.prototype.translate=function(t,n,r){var u=this.getMessage(t);return u?this.formatMessage(u,r):this.formatMessage(n,r)},e.prototype.getMessage=function(t){if(this._messageCache.has(t))return this._messageCache.get(t);var n=this.getPathArray(t),r=n.reduce(function(u,i,o,s){if(u!==void 0){var c=u[i];if(!(o===s.length-1&&!Yc(c)))return c}},this.message);return this._messageCache.set(t,r),r},e.prototype.formatMessage=function(t,n){return n?t.replace(this.variableRegExp,function(r,u){var i=n[u];return i!==void 0?String(i):r}):t},e.prototype.getPreImport=function(t){var n;if(window.okI18nPreImport){var r=this.getLocaleInMessageKey(t);return window.okI18nPreImport.hasOwnProperty(r)?window.okI18nPreImport:(n={},n[r]=window.okI18nPreImport,n)}},e.prototype.getPathArray=function(t){return t.split(".")},e.prototype.getLocaleInMessageKey=function(t){return t.replace(/-/g,"")},Object.defineProperty(e.prototype,"$t",{get:function(){return this.translate},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localeInMessageKey",{get:function(){return this.getLocaleInMessageKey(this.locale)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){var t;return(t=this.messages[this.localeInMessageKey])!==null&&t!==void 0?t:{}},enumerable:!1,configurable:!0}),e}();function nf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Oe=function(){function e(){nf(this,e)}return e.getMessage=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$i18n.$t(n,"",r)},e.resetI18n=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Wr;return new tf({locale:n,messages:Lc})},e.setLocale=function(n){return this.$i18n.setLocale(n)},e}();Oe.$i18n=Oe.resetI18n();function tu(e,t,n){var r=t.replace(/\[(\d)]/g,function(i,o){return"."+o}).split("."),u=!1;return r.reduce(function(i,o,s,c){var l=i;if(!!i){if(!Object.prototype.hasOwnProperty.call(i,o)){Je("Can not set ".concat(t,"'s ").concat(o," property in current %o, Because there is no ").concat(o," property on the %o"),i,i);return}return s===c.length-1&&!Object.is(l[o],n)&&(l[o]=n,u=!0),l[o]}},e),u}var Xe=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function nu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rf={exports:{}};(function(e){(function(t){var n=function(D,y,F){if(!l(y)||a(y)||h(y)||d(y)||c(y))return y;var C,_=0,O=0;if(f(y))for(C=[],O=y.length;_<O;_++)C.push(n(D,y[_],F));else{C={};for(var R in y)Object.prototype.hasOwnProperty.call(y,R)&&(C[D(R,F)]=n(D,y[R],F))}return C},r=function(D,y){y=y||{};var F=y.separator||"_",C=y.split||/(?=[A-Z])/;return D.split(C).join(F)},u=function(D){return p(D)?D:(D=D.replace(/[\-_\s]+(.)?/g,function(y,F){return F?F.toUpperCase():""}),D.substr(0,1).toLowerCase()+D.substr(1))},i=function(D){var y=u(D);return y.substr(0,1).toUpperCase()+y.substr(1)},o=function(D,y){return r(D,y).toLowerCase()},s=Object.prototype.toString,c=function(D){return typeof D=="function"},l=function(D){return D===Object(D)},f=function(D){return s.call(D)=="[object Array]"},a=function(D){return s.call(D)=="[object Date]"},h=function(D){return s.call(D)=="[object RegExp]"},d=function(D){return s.call(D)=="[object Boolean]"},p=function(D){return D=D-0,D===D},g=function(D,y){var F=y&&"process"in y?y.process:y;return typeof F!="function"?D:function(C,_){return F(C,D,_)}},v={camelize:u,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(D,y){return n(g(u,y),D)},decamelizeKeys:function(D,y){return n(g(o,y),D,y)},pascalizeKeys:function(D,y){return n(g(i,y),D)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=v:t.humps=v})(Xe)})(rf);function ne(e){if(e!==void 0)return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}function je(e){return Object.prototype.toString.call(e)==="[object Object]"}function uf(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}function Dt(e){return Array.isArray(e)}function Be(e){return typeof e=="string"}function Qt(e){return typeof e=="number"}function ru(e){return typeof e=="function"}function of(e){return Dt(e)&&e.every(function(t){return Be(t)})}function af(e){return Dt(e)&&e.every(function(t){return Qt(t)||t===""})}function uu(e){return/^\[.*?]$/.test(e)}function Yt(e){return/^{.*?}$/.test(e)}function Vn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sf(e){if(Array.isArray(e))return Vn(e)}function iu(e,t,n,r,u,i,o){try{var s=e[i](o),c=s.value}catch(l){n(l);return}s.done?t(c):Promise.resolve(c).then(r,u)}function cf(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(c){iu(i,r,u,o,s,"next",c)}function s(c){iu(i,r,u,o,s,"throw",c)}o(void 0)})}}function ff(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lf(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hf(){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 Hn(e){return sf(e)||lf(e)||df(e)||hf()}function df(e,t){if(!!e){if(typeof e=="string")return Vn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vn(e,t)}}var pf=function(e,t){var n,r,u,i,o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(f){return c([l,f])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=l[0]&2?r.return:l[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,l[1])).done)return u;switch(r=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){o.label=l[1];break}if(l[0]===6&&o.label<u[1]){o.label=u[1],u=l;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(l);break}u[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(f){l=[6,f],r=0}finally{n=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},ou=function(){function e(){ff(this,e),this._events=new Map,this.debug=!1}var t=e.prototype;return t.emit=function(r){for(var u=arguments.length,i=new Array(u>1?u-1:0),o=1;o<u;o++)i[o-1]=arguments[o];var s=this;return cf(function(){var c,l,f,a,h,d,p,g,v,D,y,F;return pf(this,function(C){switch(C.label){case 0:if(c=s._events.get(r),l=[],!c)return[3,10];f=c.slice(),a=!0,h=!1,d=void 0,C.label=1;case 1:C.trys.push([1,8,9,10]),p=f[Symbol.iterator](),C.label=2;case 2:if(a=(g=p.next()).done)return[3,7];if(v=g.value,!c.includes(v))return[3,6];C.label=3;case 3:return C.trys.push([3,5,,6]),s.debug&&kn.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(r," \u4E8B\u4EF6: ").concat(v.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+v.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(i.map(function(){return"%o"}).join(","),"\u3002")].concat(Hn(i))),[4,v.apply(null,Hn(i))];case 4:return D=C.sent(),s.debug&&kn.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(r," \u4E8B\u4EF6: ").concat(v.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+v.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(Hn(i),[D])),l.push(D),D===!1?[3,7]:[3,6];case 5:return y=C.sent(),Jt(String(y)),[3,6];case 6:return a=!0,[3,2];case 7:return[3,10];case 8:return F=C.sent(),h=!0,d=F,[3,10];case 9:try{!a&&p.return!=null&&p.return()}finally{if(h)throw d}return[7];case 10:return[2,l]}})})()},t.on=function(r,u){if(this._events.has(r)){var i;(i=this._events.get(r))===null||i===void 0||i.push(u)}else this._events.set(r,[u])},t.off=function(r,u){if(this._events.has(r)){var i=this._events.get(r),o=i==null?void 0:i.indexOf(u);i==null||i.splice(o,1)}},t.delete=function(r){this._events.has(r)&&this._events.delete(r)},t.clear=function(){this._events=new Map},e}();function Df(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var gf=[{key:"on_click",name:"\u70B9\u51FB\u65F6",code:"click"},{key:"on_click_finish",name:"\u6267\u884C\u5B8C\u6210\u65F6",code:"click-finish"},{key:"on_change",name:"\u503C\u53D1\u751F\u53D8\u5316\u65F6",code:"change"},{key:"on_search",name:"\u641C\u7D22\u65F6",code:"search"},{key:"on_list_change",name:"\u5217\u8868\u6570\u636E\u53D8\u5316\u65F6",code:"list-change"},{key:"on_list_search",name:"\u5217\u8868\u6570\u636E\u67E5\u8BE2\u6784\u5EFA\u65F6",code:"list-search"},{key:"on_list_mounted",name:"\u5217\u8868\u6570\u636E\u8FD4\u56DE\u65F6",code:"list-mounted"},{key:"on_list_delete",name:"\u5217\u8868\u6570\u636E\u5220\u9664\u65F6",code:"list-delete"},{key:"on_input",name:"\u7528\u6237\u8F93\u5165\u65F6",code:"input"},{key:"on_blur",name:"\u5931\u53BB\u7126\u70B9\u65F6",code:"blur"},{key:"on_focus",name:"\u83B7\u53D6\u7126\u70B9\u65F6",code:"focus"},{key:"on_wps_open",name:"\u6253\u5F00\u6587\u4EF6\u65F6",code:"wps-open"},{key:"on_wps_save",name:"\u4FDD\u5B58\u6587\u4EF6\u65F6",code:"wps-save"},{key:"on_wps_rename",name:"\u91CD\u547D\u540D\u65F6",code:"wps-rename"},{key:"on_list_actions",name:"\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6",code:"list-actions"},{key:"on_list_rowclick",name:"\u884C\u70B9\u51FB\u65F6",code:"list-rowclick"},{key:"on_list_before_rowdelete",name:"\u884C\u5220\u9664\u524D",code:"list-before-rowdelete"},{key:"on_list_before_import",name:"\u5217\u8868\u6570\u636E\u5BFC\u5165\u524D",code:"list-before-import"},{key:"on_list_rows_checked",name:"\u884C\u9009\u4E2D\u65F6",code:"list-rows-checked"}],au=function(){function e(){Df(this,e)}var t=e.prototype;return t.getEventsFromKeys=function(r){var u=typeof r=="string"?[r]:r;return e.events.filter(function(i){return u.includes(i.key)})},e}();au.events=gf;function vf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var su=[],en=function(){function e(n){vf(this,e),this.registeredControlTypes=new Set,this.controlConfigMap=new Map,this._controls=[],this._type=n,this._initControls(n)}var t=e.prototype;return t.registerControlConfig=function(r,u){return this.controlConfigMap.set(r,u),this},t.getControlConfig=function(r){return this.controlConfigMap.get(r)},t.getControls=function(){return this._controls},t.register=function(r){r.__is_control__||Ze("".concat(r.name," is not a Control"));var u=this._controls.findIndex(function(i){return i.controlType===r.controlType});return u>-1&&(Je("The ".concat(r.controlType," is repeat register, So it overwrites the one that was registered before.")),this._controls.splice(u,1)),this.registeredControlTypes.add(r.controlType),this._controls.push(r),this},t.isLayoutControl=function(r){return r.controlType===Le.LAYOUT},t.isFormControl=function(r){return r.controlType===Le.FORM},t.isListControl=function(r){return r.controlType===Le.LIST},t.isColumnControl=function(r){return r.controlType===Le.COLUMN},t.createControl=function(r,u){var i=this;if(Array.isArray(r))return r.map(function(f){return i.createControl(f,u)});r.children&&(r.children=r.children.map(function(f){return i.createControl(f,u)})),this.isListControl(r)&&r.props.headers&&(r.props.headers=r.props.headers.map(function(f){return i.createControl(f,u)}));var o=this.getControlFormType(r.type);if(o){var s=r;if(typeof u=="function"){var c=u(s);c&&(s=c)}var l=new o(s);return l}else Ze("The constructor of ".concat(r.type," could not be found, please confirm that the constructor has been registered"))},t.createControlInstance=function(r,u){var i=this.getControlFormType(r);if(i)return new i(u)},t.getControlFormType=function(r){return this._controls.find(function(u){return u.controlType===r})},t._initControls=function(r){var u=this;this.constructor.staticControls.forEach(function(i){u.register(i[r])})},e.register=function(r){var u=r.Designer,i=r.Runtime;(!u||!i||!u.__is_control__||!i.__is_control__)&&Ze("".concat(r," is can't register as a Control"));var o=this.staticControls.findIndex(function(s){return s.Designer.controlType===u.controlType});return o>-1&&(Je("The ".concat(u.controlType," is repeat register, So it overwrites the one that was registered before.")),this.staticControls.splice(o,1)),this.staticRegisteredTypes.add(u.controlType),this.staticControls.push(r),this},e}();en.staticControls=su,en.staticRegisteredTypes=new Set(su.map(function(e){return e.Designer.controlType})),en.staticRegisteredConfigs=new Map;function st(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Ot=function e(t){st(this,e);var n;this.dataCode=(n=t==null?void 0:t.dataCode)!==null&&n!==void 0?n:"";var r;this.fieldCode=(r=t==null?void 0:t.fieldCode)!==null&&r!==void 0?r:"";var u;this.fieldType=(u=t==null?void 0:t.fieldType)!==null&&u!==void 0?u:""},Qe=function e(){st(this,e)},tn=function e(t){st(this,e);var n;this.amount=(n=t==null?void 0:t.amount)!==null&&n!==void 0?n:"";var r;this.currency=(r=t==null?void 0:t.currency)!==null&&r!==void 0?r:zn.CNY},nn=function e(t){st(this,e);var n;this.min=(n=t==null?void 0:t.min)!==null&&n!==void 0?n:"";var r;this.max=(r=t==null?void 0:t.max)!==null&&r!==void 0?r:""},rn=function e(t){st(this,e);var n;this.city=(n=t==null?void 0:t.city)!==null&&n!==void 0?n:"";var r;this.cityDisplay=(r=t==null?void 0:t.cityDisplay)!==null&&r!==void 0?r:"";var u;this.district=(u=t==null?void 0:t.district)!==null&&u!==void 0?u:"";var i;this.districtDisplay=(i=t==null?void 0:t.districtDisplay)!==null&&i!==void 0?i:"";var o;this.province=(o=t==null?void 0:t.province)!==null&&o!==void 0?o:"";var s;this.provinceDisplay=(s=t==null?void 0:t.provinceDisplay)!==null&&s!==void 0?s:""},un=function e(t){st(this,e);var n;this.result=(n=t==null?void 0:t.result)!==null&&n!==void 0?n:0;var r;this.unit=(r=t==null?void 0:t.unit)!==null&&r!==void 0?r:""},zn;(function(e){e.CNY="CNY",e.USD="USD",e.JPY="JPY",e.EUR="EUR",e.INR="INR",e.IDR="IDR",e.BRL="BRL",e.AED="AED",e.AUD="AUD",e.CAD="CAD",e.EGP="EGP",e.GBP="GBP",e.ZAR="ZAR",e.KRW="KRW",e.MAD="MAD",e.MXN="MXN",e.MYR="MYR",e.PHP="PHP",e.PLN="PLN",e.RUB="RUB",e.SGD="SGD",e.THB="THB",e.TRY="TRY",e.TWD="TWD",e.VND="VND",e.HKD="HKD",e.IEP="IEP"})(zn||(zn={}));var cu;(function(e){e.REQUIRED="required",e.IS_HIDE="isHide",e.IS_SHOW_UNIT="isShowUnit",e.IMD_SEARCH="immediatelySearch",e.MULTIPLE="multiple",e.SUBMIT_SELECT_CURRENCY="submitSelectCurrency",e.CAPTION="caption",e.IS_HIDE_CAPTION="isHideCaption",e.DEFAULT_SHOW_OPTIONS="defaultShowOptions",e.CAN_SEARCH="canSearch",e.CAN_CHECK="canCheck",e.CAN_EDIT="canEdit",e.CAN_DELETE="canDelete",e.SHOW_UPPER_CASE="showUpperCase",e.MICROMETER="micrometer",e.PRECISION="precision",e.PERCENTAGE="percentage",e.OPTIONAL_LEVEL="optionalLevel",e.CONTAINS_SUB_NODE="containsSubNode",e.DEFAULT_COLLAPSE="defaultCollapse",e.CAN_VIEW_FORM="canViewForm",e.SERVER_PAGINATION="serverPagination",e.IS_SHOW_CAPTION_TIP="isShowCaptionTip",e.ENCRYPTED="encrypted",e.IS_INLINE_EDIT="isInlineEdit",e.REVISIONS_MODE="revisionsMode",e.ALLOW_COPY_OPTIONS="allowCopyOptions"})(cu||(cu={}));var Wn;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.READONLY=1]="READONLY",e[e.EDITABLE=2]="EDITABLE",e[e.PRINT=5]="PRINT"})(Wn||(Wn={}));var mf=function e(t){st(this,e);var n;this.width=(n=t==null?void 0:t.width)!==null&&n!==void 0?n:"";var r;this.height=(r=t==null?void 0:t.height)!==null&&r!==void 0?r:"";var u;this.widthConfig=(u=t==null?void 0:t.widthConfig)!==null&&u!==void 0?u:"fill";var i;this.heightConfig=(i=t==null?void 0:t.heightConfig)!==null&&i!==void 0?i:"fill"};function yf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ef(){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(e){return!1}}function on(e,t,n){return Ef()?on=Reflect.construct:on=function(u,i,o){var s=[null];s.push.apply(s,i);var c=Function.bind.apply(u,s),l=new c;return o&&$t(l,o.prototype),l},on.apply(null,arguments)}function Rt(e){return Rt=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Rt(e)}function Af(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$t(e,t)}function Cf(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Ff(e,t){return t&&(wf(t)==="object"||typeof t=="function")?t:yf(e)}function $t(e,t){return $t=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},$t(e,t)}var wf=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function Xn(e){var t=typeof Map=="function"?new Map:void 0;return Xn=function(r){if(r===null||!Cf(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,u)}function u(){return on(r,arguments,Rt(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),$t(u,r)},Xn(e)}function Bf(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function bf(e){var t=Bf();return function(){var r=Rt(e),u;if(t){var i=Rt(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Ff(this,u)}}var fu=function e(t){Zn(this,e),this.isHide={type:"boolean"}},lu=function(e){Af(n,e);var t=bf(n);function n(r){return Zn(this,n),t.call(this)}return n}(Xn(Array)),ct=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";Zn(this,e);var r;this.isHide=(r=t==null?void 0:t.isHide)!==null&&r!==void 0?r:!1,this.style=new mf(t==null?void 0:t.style);var u;this.caption=(u=t==null?void 0:t.caption)!==null&&u!==void 0?u:n};ct.Rules=fu,ct.RuntimeRules=lu;function qe(){return qe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qe.apply(this,arguments)}function Sf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Gn(e){return Gn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Gn(e)}function an(e,t){return an=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},an(e,t)}function _f(){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(e){return!1}}function sn(e,t,n){return _f()?sn=Reflect.construct:sn=function(u,i,o){var s=[null];s.push.apply(s,i);var c=Function.bind.apply(u,s),l=new c;return o&&an(l,o.prototype),l},sn.apply(null,arguments)}function Mf(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Kn(e){var t=typeof Map=="function"?new Map:void 0;return Kn=function(r){if(r===null||!Mf(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,u)}function u(){return sn(r,arguments,Gn(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),an(u,r)},Kn(e)}var Nf=/%[sdj%]/g,hu=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(hu=function(t,n){typeof console!="undefined"&&console.warn&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function Jn(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function be(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,u=t[0],i=t.length;if(typeof u=="function")return u.apply(null,t.slice(1));if(typeof u=="string"){var o=String(u).replace(Nf,function(s){if(s==="%%")return"%";if(r>=i)return s;switch(s){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(c){return"[Circular]"}break;default:return s}});return o}return u}function If(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function re(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||If(t)&&typeof e=="string"&&!e)}function xf(e,t,n){var r=[],u=0,i=e.length;function o(s){r.push.apply(r,s),u++,u===i&&n(r)}e.forEach(function(s){t(s,o)})}function du(e,t,n){var r=0,u=e.length;function i(o){if(o&&o.length){n(o);return}var s=r;r=r+1,s<u?t(e[s],i):n([])}i([])}function Of(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n])}),t}var pu=function(e){Sf(t,e);function t(n,r){var u;return u=e.call(this,"Async Validation Error")||this,u.errors=n,u.fields=r,u}return t}(Kn(Error));function Rf(e,t,n,r){if(t.first){var u=new Promise(function(a,h){var d=function(v){return r(v),v.length?h(new pu(v,Jn(v))):a()},p=Of(e);du(p,n,d)});return u.catch(function(a){return a}),u}var i=t.firstFields||[];i===!0&&(i=Object.keys(e));var o=Object.keys(e),s=o.length,c=0,l=[],f=new Promise(function(a,h){var d=function(g){if(l.push.apply(l,g),c++,c===s)return r(l),l.length?h(new pu(l,Jn(l))):a()};o.length||(r(l),a()),o.forEach(function(p){var g=e[p];i.indexOf(p)!==-1?du(g,n,d):xf(g,n,d)})});return f.catch(function(a){return a}),f}function Du(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:typeof t=="function"?t():t,field:t.field||e.fullField}}}function gu(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=qe(qe({},e[n]),r):e[n]=r}}return e}function vu(e,t,n,r,u,i){e.required&&(!n.hasOwnProperty(e.field)||re(t,i||e.type))&&r.push(be(u.messages.required,e.fullField))}function $f(e,t,n,r,u){(/^\s+$/.test(t)||t==="")&&r.push(be(u.messages.whitespace,e.fullField))}var Qn={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},Pt={integer:function(t){return Pt.number(t)&&parseInt(t,10)===t},float:function(t){return Pt.number(t)&&!Pt.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(n){return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Pt.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&!!t.match(Qn.email)&&t.length<255},url:function(t){return typeof t=="string"&&!!t.match(Qn.url)},hex:function(t){return typeof t=="string"&&!!t.match(Qn.hex)}};function Pf(e,t,n,r,u){if(e.required&&t===void 0){vu(e,t,n,r,u);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=e.type;i.indexOf(o)>-1?Pt[o](t)||r.push(be(u.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(be(u.messages.types[o],e.fullField,e.type))}function Tf(e,t,n,r,u){var i=typeof e.len=="number",o=typeof e.min=="number",s=typeof e.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,f=null,a=typeof t=="number",h=typeof t=="string",d=Array.isArray(t);if(a?f="number":h?f="string":d&&(f="array"),!f)return!1;d&&(l=t.length),h&&(l=t.replace(c,"_").length),i?l!==e.len&&r.push(be(u.messages[f].len,e.fullField,e.len)):o&&!s&&l<e.min?r.push(be(u.messages[f].min,e.fullField,e.min)):s&&!o&&l>e.max?r.push(be(u.messages[f].max,e.fullField,e.max)):o&&s&&(l<e.min||l>e.max)&&r.push(be(u.messages[f].range,e.fullField,e.min,e.max))}var gt="enum";function Lf(e,t,n,r,u){e[gt]=Array.isArray(e[gt])?e[gt]:[],e[gt].indexOf(t)===-1&&r.push(be(u.messages[gt],e.fullField,e[gt].join(", ")))}function jf(e,t,n,r,u){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(be(u.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var i=new RegExp(e.pattern);i.test(t)||r.push(be(u.messages.pattern.mismatch,e.fullField,t,e.pattern))}}}var V={required:vu,whitespace:$f,type:Pf,range:Tf,enum:Lf,pattern:jf};function qf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t,"string")&&!e.required)return n();V.required(e,t,r,i,u,"string"),re(t,"string")||(V.type(e,t,r,i,u),V.range(e,t,r,i,u),V.pattern(e,t,r,i,u),e.whitespace===!0&&V.whitespace(e,t,r,i,u))}n(i)}function kf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&V.type(e,t,r,i,u)}n(i)}function Uf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(t===""&&(t=void 0),re(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&(V.type(e,t,r,i,u),V.range(e,t,r,i,u))}n(i)}function Vf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&V.type(e,t,r,i,u)}n(i)}function Hf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t)&&!e.required)return n();V.required(e,t,r,i,u),re(t)||V.type(e,t,r,i,u)}n(i)}function zf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&(V.type(e,t,r,i,u),V.range(e,t,r,i,u))}n(i)}function Wf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&(V.type(e,t,r,i,u),V.range(e,t,r,i,u))}n(i)}function Zf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(t==null&&!e.required)return n();V.required(e,t,r,i,u,"array"),t!=null&&(V.type(e,t,r,i,u),V.range(e,t,r,i,u))}n(i)}function Xf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&V.type(e,t,r,i,u)}n(i)}var Gf="enum";function Kf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&V[Gf](e,t,r,i,u)}n(i)}function Jf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t,"string")&&!e.required)return n();V.required(e,t,r,i,u),re(t,"string")||V.pattern(e,t,r,i,u)}n(i)}function Qf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t,"date")&&!e.required)return n();if(V.required(e,t,r,i,u),!re(t,"date")){var s;t instanceof Date?s=t:s=new Date(t),V.type(e,s,r,i,u),s&&V.range(e,s.getTime(),r,i,u)}}n(i)}function Yf(e,t,n,r,u){var i=[],o=Array.isArray(t)?"array":typeof t;V.required(e,t,r,i,u,o),n(i)}function Yn(e,t,n,r,u){var i=e.type,o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(re(t,i)&&!e.required)return n();V.required(e,t,r,o,u,i),re(t,i)||V.type(e,t,r,o,u)}n(o)}function el(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t)&&!e.required)return n();V.required(e,t,r,i,u)}n(i)}var Tt={string:qf,method:kf,number:Uf,boolean:Vf,regexp:Hf,integer:zf,float:Wf,array:Zf,object:Xf,enum:Kf,pattern:Jf,date:Qf,url:Yn,hex:Yn,email:Yn,required:Yf,any:el};function er(){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 t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var tr=er();function Ye(e){this.rules=null,this._messages=tr,this.define(e)}Ye.prototype={messages:function(t){return t&&(this._messages=gu(er(),t)),this._messages},define:function(t){if(!t)throw new Error("Cannot configure a schema with no rules");if(typeof t!="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={};var n,r;for(n in t)t.hasOwnProperty(n)&&(r=t[n],this.rules[n]=Array.isArray(r)?r:[r])},validate:function(t,n,r){var u=this;n===void 0&&(n={}),r===void 0&&(r=function(){});var i=t,o=n,s=r;if(typeof o=="function"&&(s=o,o={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(),Promise.resolve();function c(g){var v,D=[],y={};function F(C){if(Array.isArray(C)){var _;D=(_=D).concat.apply(_,C)}else D.push(C)}for(v=0;v<g.length;v++)F(g[v]);D.length?y=Jn(D):(D=null,y=null),s(D,y)}if(o.messages){var l=this.messages();l===tr&&(l=er()),gu(l,o.messages),o.messages=l}else o.messages=this.messages();var f,a,h={},d=o.keys||Object.keys(this.rules);d.forEach(function(g){f=u.rules[g],a=i[g],f.forEach(function(v){var D=v;typeof D.transform=="function"&&(i===t&&(i=qe({},i)),a=i[g]=D.transform(a)),typeof D=="function"?D={validator:D}:D=qe({},D),D.validator=u.getValidationMethod(D),D.field=g,D.fullField=D.fullField||g,D.type=u.getType(D),D.validator&&(h[g]=h[g]||[],h[g].push({rule:D,value:a,source:i,field:g}))})});var p={};return Rf(h,o,function(g,v){var D=g.rule,y=(D.type==="object"||D.type==="array")&&(typeof D.fields=="object"||typeof D.defaultField=="object");y=y&&(D.required||!D.required&&g.value),D.field=g.field;function F(O,R){return qe(qe({},R),{},{fullField:D.fullField+"."+O})}function C(O){O===void 0&&(O=[]);var R=O;if(Array.isArray(R)||(R=[R]),!o.suppressWarning&&R.length&&Ye.warning("async-validator:",R),R.length&&D.message!==void 0&&(R=[].concat(D.message)),R=R.map(Du(D)),o.first&&R.length)return p[D.field]=1,v(R);if(!y)v(R);else{if(D.required&&!g.value)return D.message!==void 0?R=[].concat(D.message).map(Du(D)):o.error&&(R=[o.error(D,be(o.messages.required,D.field))]),v(R);var S={};if(D.defaultField)for(var P in g.value)g.value.hasOwnProperty(P)&&(S[P]=D.defaultField);S=qe(qe({},S),g.rule.fields);for(var W in S)if(S.hasOwnProperty(W)){var k=Array.isArray(S[W])?S[W]:[S[W]];S[W]=k.map(F.bind(null,W))}var J=new Ye(S);J.messages(o.messages),g.rule.options&&(g.rule.options.messages=o.messages,g.rule.options.error=o.error),J.validate(g.value,g.rule.options||o,function(K){var ee=[];R&&R.length&&ee.push.apply(ee,R),K&&K.length&&ee.push.apply(ee,K),v(ee.length?ee:null)})}}var _;D.asyncValidator?_=D.asyncValidator(D,g.value,C,g.source,o):D.validator&&(_=D.validator(D,g.value,C,g.source,o),_===!0?C():_===!1?C(D.message||D.field+" fails"):_ instanceof Array?C(_):_ instanceof Error&&C(_.message)),_&&_.then&&_.then(function(){return C()},function(O){return C(O)})},function(g){c(g)})},getType:function(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!Tt.hasOwnProperty(t.type))throw new Error(be("Unknown rule type %s",t.type));return t.type||"string"},getValidationMethod:function(t){if(typeof t.validator=="function")return t.validator;var n=Object.keys(t),r=n.indexOf("message");return r!==-1&&n.splice(r,1),n.length===1&&n[0]==="required"?Tt.required:Tt[this.getType(t)]||!1}},Ye.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Tt[t]=n},Ye.warning=hu,Ye.messages=tr,Ye.validators=Tt;var tl={required:"%s \u5FC5\u586B",maxLength:"%s \u8D85\u51FA\u6700\u5927\u957F\u5EA6\u9650\u5236",minLength:"%s \u5C0F\u4E8E\u6700\u5C0F\u957F\u5EA6\u9650\u5236",string:{range:"%s \u4E0D\u5728\u6307\u5B9A\u957F\u5EA6\u5185"}};function nl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new Ye(e);return n.messages(Object.assign(tl,t)),n}var rl=new ou;function nr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ul(e){if(Array.isArray(e))return e}function il(e){if(Array.isArray(e))return nr(e)}function mu(e,t,n,r,u,i,o){try{var s=e[i](o),c=s.value}catch(l){n(l);return}s.done?t(c):Promise.resolve(c).then(r,u)}function yu(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(c){mu(i,r,u,o,s,"next",c)}function s(c){mu(i,r,u,o,s,"throw",c)}o(void 0)})}}function ol(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Eu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function al(e,t,n){return t&&Eu(e.prototype,t),n&&Eu(e,n),e}function sl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Au(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Cu(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cl(){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 fl(){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 Fu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable}))),r.forEach(function(u){sl(e,u,n[u])})}return e}function ll(e){return ul(e)||Cu(e)||wu(e)||cl()}function rr(e){return il(e)||Cu(e)||wu(e)||fl()}function wu(e,t){if(!!e){if(typeof e=="string")return nr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nr(e,t)}}var Bu=function(e,t){var n,r,u,i,o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(f){return c([l,f])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=l[0]&2?r.return:l[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,l[1])).done)return u;switch(r=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){o.label=l[1];break}if(l[0]===6&&o.label<u[1]){o.label=u[1],u=l;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(l);break}u[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(f){l=[6,f],r=0}finally{n=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},ke=function(){function t(r){var u=this;ol(this,t),this.setting=[],this.eventKeys=[],this.customEvents=[],this.parent=null,this.updateSetting=Su,this.removeSetting=bu,this._callControlHooks("preInstance",r);var i=Au(this,t)?this.constructor:void 0,o=i.controlName,s=i.controlIcon,c=i.controlType,l=i.controlFieldType,f=i.controlEventKeys,a=i.controlCustomEvents,h=i.name,d=i.setting;o&&s&&c||Yr("The ".concat(h," controlName,controlIcon,controlType is not define"));var p;this.id=(p=r==null?void 0:r.id)!==null&&p!==void 0?p:Tn(10),this.name=o,this.icon=s;var g;this.type=(g=r==null?void 0:r.type)!==null&&g!==void 0?g:c,this.props=new ct(r==null?void 0:r.props,(Au(this,t)?this.constructor:void 0).controlName);var v;this.controlType=(v=r==null?void 0:r.controlType)!==null&&v!==void 0?v:"base",this.setting=ne(d);var D;this.fieldType=(D=r==null?void 0:r.fieldType)!==null&&D!==void 0?D:l,this.eventKeys=ne(f),this.customEvents=ne(a),Promise.resolve().then(function(){u._callControlHooks("postInstance",r)})}var n=t.prototype;return n._callControlHooks=function(){for(var u=arguments.length,i=new Array(u),o=0;o<u;o++)i[o]=arguments[o];var s,c=ll(i),l=c[0],f=c.slice(1);return(s=rl).emit.apply(s,[l,this].concat(rr(f)))},n.preUpdate=function(u,i){this._callControlHooks("preUpdateProps",u,i)},n.postUpdate=function(u,i){this._callControlHooks("postUpdateProps",u,i)},n.updateProps=function(u,i){this.preUpdate(u,i),tu(this.props,u,i),this.postUpdate(u,i)},n.preValidate=function(){var u=this;return yu(function(){var i,o,s;return Bu(this,function(c){switch(c.label){case 0:return i=Fu({},u.rules),[4,u._callControlHooks("preValidate",i)];case 1:return o=c.sent(),s=o[o.length-1],[2,s===!1?void 0:s]}})})()},n.validate=function(u,i){var o=this;return yu(function(){var s,c,l,f;return Bu(this,function(a){switch(a.label){case 0:return[4,o.preValidate()];case 1:s=a.sent(),c=s!==void 0?s:Fu({},o.rules),Array.isArray(i)&&i.forEach(function(h){c.hasOwnProperty(h)&&delete c[h]}),l=nl(c,u),a.label=2;case 2:return a.trys.push([2,4,,5]),[4,l.validate(o.props)];case 3:return a.sent(),[2,!0];case 4:throw f=a.sent(),f.control||(f.control=o),f;case 5:return[2]}})})()},n.toDataBindModel=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=this.fieldType,o=this.id,s=this.type,c=this.props,l=c.dataBind,f=c.datasourceBind,a=c.optionConfig,h=c.caption,d=c.required,p=c.maxLength,g=c.options,v=c.encrypted,D=c.encryptedMode;if(!(!i&&!l&&!f)){var y={parentId:u,fieldType:i,controlId:o,caption:h,type:s,props:{}};switch(l&&(y.dataBind=l),a){case"datasource":case void 0:f&&(y.datasourceBind=f);break;case"custom":y.props.options=g;break}return d!==void 0&&(y.required=d),p!==void 0&&(y.maxLength=p),v!==void 0&&(y.encrypted=v),D!==void 0&&(y.encryptedMode=D),y}},n.preToSchema=function(){this._callControlHooks("preToSchema",this)},n.toSchema=function(){return this.preToSchema(),{id:this.id,type:this.type,props:ne(this.props),fieldType:this.fieldType,controlType:this.controlType}},t.updateBasicControl=function(u,i){if(u==="setting"){if(i.add){var o;(o=this.setting).push.apply(o,rr(i.add))}i.remove&&this.removeSettingItem(i.remove),i.update}},al(t,[{key:"rules",get:function(){var u=this.props.constructor.Rules;return u?new u(this.props):{}}}]),t}();ke.controlName="\u63A7\u4EF6",ke.controlIcon="icon",ke.controlType="control",ke.controlEventKeys=[],ke.controlCustomEvents=[],ke.setting=[],ke.__is_control__=!0,ke.removeSettingItem=bu,ke.updateSettingItem=Su;function bu(e){var t=this,n=Array.isArray(e)?e:[e];n.forEach(function(r){var u=typeof r!="string",i=t.setting.findIndex(function(c){return c.key===(u?r.key:r)});if(i!==-1){var o,s;u?t.setting[i].showItems=(o=t.setting[i].showItems)===null||o===void 0?void 0:o.filter(function(c){return!r.hideItems.includes(c)}):t.setting.splice(i,1),u&&!(!((s=t.setting[i].showItems)===null||s===void 0)&&s.length)&&t.setting.splice(i,1)}})}function Su(e,t){var n=this,r=typeof e=="string"?[e]:e;r.forEach(function(u){var i=n.setting.find(function(l){return l.key===u});if(i){if(typeof t=="boolean")i.visible=t;else if(typeof t=="object"){var o,s=(o=t.type)!==null&&o!==void 0?o:"replace";if(s==="replace")i.showItems=t.showItems;else{var c;(c=i.showItems).push.apply(c,rr(t.showItems))}}}})}function hl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dl(e,t,n){return t&&_u(e.prototype,t),n&&_u(e,n),e}function pl(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var Lt=function(){function t(n){hl(this,t),this.customEvents=[],this.parent=null;var r=pl(this,t)?this.constructor:void 0,u=r.controlType,i=r.controlFieldType,o=r.name,s=r.controlCustomEvents;u||Yr("The ".concat(o," controlType is not define"));var c;this.id=(c=n==null?void 0:n.id)!==null&&c!==void 0?c:Tn(10);var l;this.type=(l=n==null?void 0:n.type)!==null&&l!==void 0?l:u,this.props=new ct(n==null?void 0:n.props),this.customEvents=s;var f;this.controlType=(f=n==null?void 0:n.controlType)!==null&&f!==void 0?f:"base";var a;this.fieldType=(a=n==null?void 0:n.fieldType)!==null&&a!==void 0?a:i;var h;this.pageStatus=(h=n==null?void 0:n.pageStatus)!==null&&h!==void 0?h:Wn.UNKNOWN}return dl(t,[{key:"rules",get:function(){var r=this.props.constructor.RuntimeRules;if(r){var u=new r(this.props);return Array.from(u)}return[]}}]),t}();Lt.controlType="control",Lt.__is_control__=!0,Lt.controlCustomEvents=[];function Dl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ur(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cn(e){return cn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},cn(e)}function ir(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&or(e,t)}function gl(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function vl(e,t){return t&&(ml(t)==="object"||typeof t=="function")?t:Dl(e)}function or(e,t){return or=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},or(e,t)}var ml=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function yl(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function ar(e){var t=yl();return function(){var r=cn(e),u;if(t){var i=cn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return vl(this,u)}}var El=function(e){ir(n,e);var t=ar(n);function n(r){ur(this,n);var u;u=t.call(this,r),u.dataBind={},u.caption={type:"string",required:!0,message:Oe.getMessage("pleaseEnterCaption")},u.isHideCaption={type:"boolean"},u.labelPosition={type:"enum",enum:["top","left"]},u.defaultState={type:"enum",enum:["default","readonly"]},u.required={type:"boolean"},u.captionTip={type:"string",required:!1,message:Oe.getMessage("pleaseEnterCaptionTip")};var i={fieldCode:{type:"string",required:!0,message:Oe.getMessage("pleaseEnterFieldCode")},dataCode:{type:"string",required:!0,message:Oe.getMessage("pleaseEnterFieldCode")}};if(gl(r.dataBind,Ot))u.dataBind={type:"object",required:!0,fields:ne(i),message:Oe.getMessage("pleaseEnterFieldCode")};else{var o={type:"object",required:!0,fields:{},message:Oe.getMessage("pleaseEnterFieldCode")};Object.keys(r.dataBind).forEach(function(s){o.fields[s]={type:"object",required:!0,fields:ne(i),message:Oe.getMessage("pleaseEnterFieldCode")}}),u.dataBind=o}return r.isShowCaptionTip&&(u.captionTip.required=!0),u}return n}(fu),Al=function(e){ir(n,e);var t=ar(n);function n(r){ur(this,n);var u;return u=t.call(this,r),u.push({type:"string",required:r.isHide?!1:r.required,message:r.requiredMessage!==""?r.requiredMessage:Oe.getMessage("runtimeRequired",{caption:r.caption})}),u}return n}(lu),sr=function(e){ir(n,e);var t=ar(n);function n(r){ur(this,n);var u;u=t.call(this,r);var i;u.caption=(i=r==null?void 0:r.caption)!==null&&i!==void 0?i:"";var o;u.isHideCaption=(o=r==null?void 0:r.isHideCaption)!==null&&o!==void 0?o:!1;var s;u.isShowCaptionTip=(s=r==null?void 0:r.isShowCaptionTip)!==null&&s!==void 0?s:!1;var c;u.captionTip=(c=r==null?void 0:r.captionTip)!==null&&c!==void 0?c:"";var l;u.defaultState=(l=r==null?void 0:r.defaultState)!==null&&l!==void 0?l:"default";var f;u.labelPosition=(f=r==null?void 0:r.labelPosition)!==null&&f!==void 0?f:"top";var a;u.placeholder=(a=r==null?void 0:r.placeholder)!==null&&a!==void 0?a:"";var h;u.required=(h=r==null?void 0:r.required)!==null&&h!==void 0?h:!1;var d;u.requiredMessage=(d=r==null?void 0:r.requiredMessage)!==null&&d!==void 0?d:"",u.dataBind=new Ot(r==null?void 0:r.dataBind);var p;return u.defaultValue=(p=r==null?void 0:r.defaultValue)!==null&&p!==void 0?p:"",u}return n}(ct);sr.Rules=El,sr.RuntimeRules=Al;function Cl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fn(e){return fn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},fn(e)}function wl(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&cr(e,t)}function Bl(e,t){return t&&(bl(t)==="object"||typeof t=="function")?t:Cl(e)}function cr(e,t){return cr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},cr(e,t)}var bl=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function Sl(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _l(e){var t=Sl();return function(){var r=fn(e),u;if(t){var i=fn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Bl(this,u)}}var Ue=function(e){wl(n,e);var t=_l(n);function n(r){Fl(this,n);var u;return u=t.call(this,r),u.controlType="form",u.props=new sr(r==null?void 0:r.props),u}return n}(Lt);function Ml(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ln(e){return ln=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ln(e)}function Il(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fr(e,t)}function xl(e,t){return t&&(Ol(t)==="object"||typeof t=="function")?t:Ml(e)}function fr(e,t){return fr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},fr(e,t)}var Ol=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function Rl(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function $l(e){var t=Rl();return function(){var r=ln(e),u;if(t){var i=ln(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return xl(this,u)}}var Pl=function(e){Il(n,e);var t=$l(n);function n(r){return Nl(this,n),t.call(this,r)}return n}(ct);function lr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tl(e){if(Array.isArray(e))return lr(e)}function Ll(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jl(){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 Mu(e){return Tl(e)||Ll(e)||ql(e)||jl()}function ql(e,t){if(!!e){if(typeof e=="string")return lr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lr(e,t)}}function kl(e,t){var n;!((n=Object.getOwnPropertyDescriptors(e)[t])===null||n===void 0)&&n.enumerable&&Object.defineProperty(e,t,{enumerable:!1})}function Nu(e,t){e.parent=t,kl(e,"parent")}function Ul(e,t){e.forEach(function(n){Nu(n,t)})}var Iu=Symbol("targetKey");function xu(e){var t;return(t=e[Iu])!==null&&t!==void 0?t:e}function Ou(e,t){return Ul(e,t),new Proxy(e,{get:function(r,u){for(var i=arguments.length,o=new Array(i>2?i-2:0),s=2;s<i;s++)o[s-2]=arguments[s];var c;return u===Iu?r:(c=Reflect).get.apply(c,[r,u].concat(Mu(o)))},set:function(r,u,i){for(var o=arguments.length,s=new Array(o>3?o-3:0),c=3;c<o;c++)s[c-3]=arguments[c];var l;if(Dt(e)&&u==="length"&&i===e.length)return!0;var f=(l=Reflect).set.apply(l,[r,u,i].concat(Mu(s)));return je(i)&&Nu(i,t),f}})}function hr(e,t,n,r){var u=r!=null?r:e,i=Ou(xu(n!=null?n:[]),u);Object.defineProperty(e,t,{get:function(){return i},set:function(s){i=Ou(xu(s),u)},enumerable:!0})}function dr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vl(e){if(Array.isArray(e))return dr(e)}function Ru(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $u(e,t,n,r,u,i,o){try{var s=e[i](o),c=s.value}catch(l){n(l);return}s.done?t(c):Promise.resolve(c).then(r,u)}function Hl(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(c){$u(i,r,u,o,s,"next",c)}function s(c){$u(i,r,u,o,s,"throw",c)}o(void 0)})}}function zl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vt(e,t,n){return typeof Reflect!="undefined"&&Reflect.get?vt=Reflect.get:vt=function(u,i,o){var s=t0(u,i);if(!!s){var c=Object.getOwnPropertyDescriptor(s,i);return c.get?c.get.call(o):c.value}},vt(e,t,n||e)}function et(e){return et=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},et(e)}function Zl(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pr(e,t)}function Xl(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Gl(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Kl(){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 Jl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable}))),r.forEach(function(u){Wl(e,u,n[u])})}return e}function Ql(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function Yl(e,t){return t=t!=null?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ql(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function e0(e,t){return t&&(n0(t)==="object"||typeof t=="function")?t:Ru(e)}function pr(e,t){return pr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},pr(e,t)}function t0(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=et(e),e!==null););return e}function Pu(e){return Vl(e)||Gl(e)||r0(e)||Kl()}var n0=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function r0(e,t){if(!!e){if(typeof e=="string")return dr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dr(e,t)}}function u0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function i0(e){var t=u0();return function(){var r=et(e),u;if(t){var i=et(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return e0(this,u)}}var o0=function(e,t){var n,r,u,i,o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(f){return c([l,f])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=l[0]&2?r.return:l[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,l[1])).done)return u;switch(r=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){o.label=l[1];break}if(l[0]===6&&o.label<u[1]){o.label=u[1],u=l;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(l);break}u[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(f){l=[6,f],r=0}finally{n=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},a0=1e4,Tu=function(t){Zl(r,t);var n=i0(r);function r(i){zl(this,r);var o;o=n.call(this,i),o.controlType="layout";var s=Xl(this,r)?this.constructor:void 0,c=s.excludes,l=s.childrenMaxLength;return o.props=new Pl(i==null?void 0:i.props),hr(Ru(o),"children",i==null?void 0:i.children),o.excludes=ne(c),o.childrenMaxLength=l,o}var u=r.prototype;return u.judgeExcludesChildren=function(o){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(o)},u.judgeJoinChildren=function(o){var s=this.judgeExcludesChildren(o);return s&&this.childrenMaxLength>this.children.length},u.validate=function(o,s){var c=this,l=this,f=function(){return vt(et(r.prototype),"validate",c)};return Hl(function(){return o0(this,function(a){switch(a.label){case 0:return[4,f().call(l,o,s)];case 1:return a.sent(),[4,Promise.all(l.children.map(function(h){return h.validate(o,s)}))];case 2:return a.sent(),[2,!0]}})})()},u.toDataBindModel=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,s=vt(et(r.prototype),"toDataBindModel",this).call(this),c=s?[s]:[];return this.children.reduce(function(l,f){var a=f.toDataBindModel(o);if(Array.isArray(a)){var h=a.filter(function(d){return!!d});return Pu(l).concat(Pu(h))}return a&&l.push(a),l},c)},u.toSchema=function(){var o=vt(et(r.prototype),"toSchema",this).call(this),s=this.children.map(function(c){var l=c.toSchema();return l});return Yl(Jl({},o),{children:s})},r}(ke);Tu.excludes=!1,Tu.childrenMaxLength=a0;function Lu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hn(e){return hn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},hn(e)}function c0(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Dr(e,t)}function f0(e,t){return t&&(l0(t)==="object"||typeof t=="function")?t:Lu(e)}function Dr(e,t){return Dr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Dr(e,t)}var l0=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function h0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function d0(e){var t=h0();return function(){var r=hn(e),u;if(t){var i=hn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return f0(this,u)}}var p0=function(e){c0(n,e);var t=d0(n);function n(r,u){s0(this,n);var i;return i=t.call(this,u),hr(Lu(i),"headers",u==null?void 0:u.headers,r),i}return n}(ct);H.LIST;function gr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ju(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g0(e,t,n){return t&&ju(e.prototype,t),n&&ju(e,n),e}function dn(e){return dn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},dn(e)}function v0(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vr(e,t)}function m0(e,t){return t&&(y0(t)==="object"||typeof t=="function")?t:gr(e)}function vr(e,t){return vr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},vr(e,t)}var y0=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function E0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function A0(e){var t=E0();return function(){var r=dn(e),u;if(t){var i=dn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return m0(this,u)}}var pn=function(e){v0(n,e);var t=A0(n);function n(r){D0(this,n);var u;return u=t.call(this,r),u.controlType="list",u.props=new p0(gr(u),r==null?void 0:r.props),hr(gr(u),"children",r==null?void 0:r.children),u}return g0(n,[{key:"length",get:function(){return this.children.length}}]),n}(Lt);console.log(11);function Dn(e){return e.controlType===Le.LAYOUT||e.controlType===Le.WRAP||e.controlType===Le.LIST||e.controlType===Le.SEARCH}function jt(e,t){Array.isArray(e)&&e.map(n=>{if(n.type===X.SUBTABLE){const r=n.getChildrenFormControl();t(n,r)}else Dn(n)?jt(n==null?void 0:n.children,t):n instanceof Ue&&t(n)})}function qt(e,t){Array.isArray(e)&&e.map(n=>{n.type===X.DATA_VIEW||n.type===X.SIMPLE_SEARCH?t(n):Dn(n)&&qt(n==null?void 0:n.children,t)})}class mr extends en{constructor(t){super("Runtime"),this._flatInstances=[],this._instanceMap={};const{schema:n}=t;this._schema=n,this._instance=this.createControl(n,t.beforeCreateInstance),this.getFlatInstances()}getFlatInstances(){const t=[],n={};return qu(this._instance,r=>{t.push(r),n[r.id]||(n[r.id]=[]),n[r.id].push(r)}),this._flatInstances=t,this._instanceMap=n,this._flatInstances}get schema(){return this._schema}get instance(){return this._instance}get flatInstances(){return this._flatInstances}get instanceMap(){return this._instanceMap}get rules(){let t={};return qt(this._instance,n=>{t[n.id]=n.rules[0],jt(n.children,r=>{(r instanceof Ue||r instanceof pn)&&C0(t[n.id].fields,r)})}),t}get antdRules(){let t={};return qt(this._instance,n=>{t[n.id]=n.rules[0],jt(n.children,r=>{(r instanceof Ue||r instanceof pn)&&F0(t[n.id].fields,r)})}),t}}function qu(e,t){Array.isArray(e)?e.map(n=>{t(n),Dn(n)&&qu(n.children,t)}):t(e)}function yr(e){return e.props.isHide?!0:e.parent===null?!1:yr(e.parent)}function C0(e,t){if(!yr(t)){if(t instanceof Ue)e[t.id]=t.rules;else if(t.type===X.SUBTABLE){e[t.id]=t.rules;const n={type:"array",fields:{}};t.children.forEach((r,u)=>{at(r.children,i=>{n.fields&&(n.fields[u]||(n.fields[u]={type:"object",required:!0,fields:{}}),n.fields[u].fields[i.id]=i.rules)})}),e[t.id].push(n)}}}function F0(e,t){yr(t)||(t instanceof Ue?e[t.id]=t.rules:t.type===X.SUBTABLE&&t.children.length&&(e[t.id]=[],t.children.forEach(n=>{let r={};at(n.children,u=>{r[u.id]=u.rules}),e[t.id].push(r)})))}class w0{constructor(t){const{state:n,emptyState:r,databindMapping:u,controlidMapping:i}=B0(t.instance);this.emptyState=r,this.state=n,this.dataBindMapping=u,this.controlIdMapping=i}setState(t,n,r){const u=this.controlIdMapping[t];u!==void 0?this.state[u.dataView][t]=n:r!==void 0?Object.keys(this.controlIdMapping).map(i=>{const o=this.controlIdMapping[i].dataView,s=this.controlIdMapping[i].children;s!==void 0&&Object.keys(s).map(c=>{c===t&&(this.state[o][i][r][t]=n)})}):this.state[t]=n}getState(t,n){if(this.state[t]!==void 0)return this.state[t];{const u=this.controlIdMapping[t];if(u!==void 0)return this.state[u.dataView][t];if(n!==void 0){let i;return Object.keys(this.controlIdMapping).map(o=>{const s=this.controlIdMapping[o].dataView,c=this.controlIdMapping[o].children;c!==void 0&&Object.keys(c).map(l=>{var f;l===t&&(i=(f=this.state[s][o][n])==null?void 0:f[t])})}),i}else{let i=[];return Object.keys(this.controlIdMapping).map(o=>{const s=this.controlIdMapping[o].dataView,c=this.controlIdMapping[o].children;c!==void 0&&Object.keys(c).map(l=>{l===t&&this.state[s][o].map(f=>{i.push(f[t])})})}),i}}}getEmptyState(t){if(this.emptyState[t]!==void 0)return this.emptyState[t];{const r=this.controlIdMapping[t];if(r!==void 0)return this.emptyState[r.dataView][t];{let u;return Object.keys(this.controlIdMapping).map(i=>{const o=this.controlIdMapping[i].dataView,s=this.controlIdMapping[i].children;s!==void 0&&Object.keys(s).map(c=>{c===t&&(u=this.emptyState[o][i][t])})}),u}}}getDataBind(t){let n=this.controlIdMapping[t];if(n)return n.dataBind;e:for(let r in this.controlIdMapping){const u=this.controlIdMapping[r];if(u.children){for(let i in u.children)if(i===t){n=u.children[i];break e}}}return n==null?void 0:n.dataBind}}function B0(e){let t={},n={},r={},u={};return qt(e,i=>{const o=i.id,s={},c={};jt([i],(l,f)=>{b0(s,c,l),S0(r,o,l),_0(u,o,l)}),t[o]=s,n[o]=c}),{state:t,emptyState:n,databindMapping:r,controlidMapping:u}}function b0(e,t,n){var r;if(n instanceof Ue)e[n.id]=ne(n.props.defaultValue),t[n.id]=ne(n.props.defaultValue);else{const u={};at(n.props.headers,i=>{u[i.id]=ne(i.props.defaultValue)}),e[n.id]=new Array((r=n.props.defaultRows)!=null?r:1).fill(0).map(()=>ne(u)),t[n.id]=u}}function S0(e,t,n){if(n instanceof Ue)n.props.dataBind instanceof Qe?Object.keys(n.props.dataBind).map(r=>{const u=n.props.dataBind,i=u[r].dataCode;i!==void 0&&(e[i]===void 0&&(e[i]={controlId:n.id,fields:[],dataViewId:t}),e[i].fields.push({fieldCode:u[r].fieldCode,controlId:n.id,dataBind:u,dataViewId:[t]}))}):(e[n.props.dataBind.dataCode]===void 0&&(e[n.props.dataBind.dataCode]={controlId:t,fields:[],dataViewId:t}),e[n.props.dataBind.dataCode].fields.push({fieldCode:n.props.dataBind.fieldCode,controlId:n.id,dataBind:n.props.dataBind,dataViewId:[t]}));else{if(n.props.datasourceBind.dataCode===""){Je(`datasourceBind.dataCode is empty! maybe in preview mode, control:${n.id} type:${n.type}`);return}e[n.props.datasourceBind.dataCode]={controlId:n.id,fields:[],dataViewId:t};const r=n.id;at(n.props.headers,u=>{u.props.dataBind instanceof Qe?Object.keys(u.props.dataBind).map(i=>{const o=u.props.dataBind,s=o[i].dataCode;e[s].fields.push({fieldCode:o[i].fieldCode,controlId:u.id,dataBind:o,dataViewId:[t,r]})}):e[u.props.dataBind.dataCode].fields.push({fieldCode:u.props.dataBind.fieldCode,controlId:u.id,dataBind:u.props.dataBind,dataViewId:[t,r]})})}}function _0(e,t,n){n instanceof Ue?e[n.id]={dataBind:n.props.dataBind,options:[],dataView:t}:n.type===X.SUBTABLE&&(e[n.id]={dataBind:new Ot({dataCode:n.props.datasourceBind.dataCode,fieldCode:""}),dataView:t,children:{},options:[]},at(n.props.headers,r=>{var u,i;Object.assign((i=(u=e[n.id])==null?void 0:u.children)!=null?i:{},{[r.id]:{dataBind:r.props.dataBind}})}))}const ku=["splice","push","shift","pop","unshift","reverse"],Er=Symbol("__engineProxy__"),Ar=Symbol("__engineTarget__"),Uu=Symbol("__engineArrayBeforeSetCallbackFlag__"),Vu=Symbol("__engineProxyThisKey__"),Re={type:"",args:[],callback:Hu};function Hu(){}O0();function M0(e,t,n,r,u){if(Re.type){Re.callback=u.bind(null,e,r);return}const i=Number(t);if(i>e.length){Ze(`Wrong array operations may cause unknown errors. It is recommended to use APIs such as ${ku.join(",")} for array operations`);return}if(!(Number.isNaN(i)&&t!=="length"))if(t==="length"){const s=n,c=e.length;if(s>e.length){Ze("Do not directly modify the length of the array data, please add new rows");return}return s===e.length?void 0:()=>u.call(null,e,r,"splice",[s,c-s])}else return i===e.length?()=>u.call(null,e,r,"push",[n]):()=>u.call(null,e,r,"splice",[i,1,n])}function N0(e,t,n){return{__engineProxy__:!0,get(r,u,i){return u===Er?!0:u===Ar?r:Array.isArray(r)&&u===Uu?n:u===Vu?e:Reflect.get(r,u,i)},set(r,u,i,o){var h;let s=i;const c=r[u],l=e===""?u:e+"."+u;function f(d){if(typeof d=="object"&&d!==null)return d[Er]!==!0?gn(d,t,n,l):gn(d[Ar],t,n,l)}s=(h=f(i))!=null?h:s;let a;if(Array.isArray(r)){const d=M0(r,u,i,e,t);a=Reflect.set(r,u,s,o),d&&d()}else{try{let d=s;if(s=n.call(null,r,l,s,c),d!==s){const p=f(s);p!==void 0&&(s=p)}}catch(d){return Jt(`${l} set error ${d}`),!0}a=Reflect.set(r,u,s,o),t.call(null,r,l,i,c)}return a}}}function gn(e,t,n,r=""){if(Object.isFrozen(e))return e;for(let u in e){const i=r===""?u:r+"."+u,o=e[u];typeof o=="object"&&o!==null&&(e[u]=gn(o,t,n,i))}return new Proxy(e,N0(r,t,n))}function zu(e){const t=[];return e.forEach(n=>{t.push(n),n.controlType==="layout"&&t.push(...zu(n.children))}),t}function Cr(e,t){if(t==="")return;const n=t.split(".");if(n.length===0)return;const r=n[0],u=n.slice(1),i=e.find(o=>o.id===r);return u.length===0?i:u.reduce((o,s)=>{var f,a;const c=Number(s);if(Number.isNaN(c)){const h=o!=null&&o.children?zu(o.children):void 0,d=h==null?void 0:h.find(p=>p.id===s);return d||(o instanceof Ue?o:void 0)}else return(a=(f=o==null?void 0:o.children)==null?void 0:f[c])!=null?a:o},i)}function I0(e,t){return["push","unshift"].includes(e)?t:e==="splice"?t.slice(2):[]}function x0(e,t,n){if(["push","unshift"].includes(e))return n;if(e==="splice")return t.slice(0,2).concat(n)}function O0(){ku.forEach(e=>{const t=Array.prototype[e];Array.prototype[e]=function(...n){var r;if(this[Er]){let u;const i=I0(e,n);if(i.length){const o=(r=this[Uu])==null?void 0:r.call(this,this[Ar],this[Vu],i),s=x0(e,n,o);Re.type=e,Re.args=s,u=t.apply(this,s)}else Re.type=e,Re.args=n,u=t.apply(this,n);return typeof Re.callback=="function"&&Re.callback(e,n,u),Re.type="",Re.args=[],Re.callback=Hu,u}else return t.apply(this,n)}})}class R0{constructor(){this.actionMap=new Map,this.buildinActions={},this.actionUtils={},this.sources={}}execAction(t,n,...r){return ze(this,null,function*(){const u=this.actionMap.get(t);if(!!u)try{return yield u.func.call(null,n,...r)}catch(i){Jt(`${u.id} Exception during calling action: ${i}`)}})}addAction(t,n){this.actionMap.has(t)&&Ze("duplicated action key");const r=new $0(t,n);this.actionMap.set(t,r)}}class $0{constructor(t,n){this.id="",this.id=t,this.func=n}}class P0{constructor(t){this._dataStore=new Map,this.executer=t}add(t,n){this._dataStore.set(t,n)}get(t){let n=this._dataStore.get(t);return ne(n)}remove(t){this._dataStore.delete(t)}getRemoteData(t){return ze(this,null,function*(){return this.executer===void 0?(Jt("\u672A\u521D\u59CB\u5316executer"),[]):this.executer(t)})}}var Fr={exports:{}};(function(e){(function(t){var n=function(D,y,F){if(!l(y)||a(y)||h(y)||d(y)||c(y))return y;var C,_=0,O=0;if(f(y))for(C=[],O=y.length;_<O;_++)C.push(n(D,y[_],F));else{C={};for(var R in y)Object.prototype.hasOwnProperty.call(y,R)&&(C[D(R,F)]=n(D,y[R],F))}return C},r=function(D,y){y=y||{};var F=y.separator||"_",C=y.split||/(?=[A-Z])/;return D.split(C).join(F)},u=function(D){return p(D)?D:(D=D.replace(/[\-_\s]+(.)?/g,function(y,F){return F?F.toUpperCase():""}),D.substr(0,1).toLowerCase()+D.substr(1))},i=function(D){var y=u(D);return y.substr(0,1).toUpperCase()+y.substr(1)},o=function(D,y){return r(D,y).toLowerCase()},s=Object.prototype.toString,c=function(D){return typeof D=="function"},l=function(D){return D===Object(D)},f=function(D){return s.call(D)=="[object Array]"},a=function(D){return s.call(D)=="[object Date]"},h=function(D){return s.call(D)=="[object RegExp]"},d=function(D){return s.call(D)=="[object Boolean]"},p=function(D){return D=D-0,D===D},g=function(D,y){var F=y&&"process"in y?y.process:y;return typeof F!="function"?D:function(C,_){return F(C,D,_)}},v={camelize:u,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(D,y){return n(g(u,y),D)},decamelizeKeys:function(D,y){return n(g(o,y),D,y)},pascalizeKeys:function(D,y){return n(g(i,y),D)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=v:t.humps=v})(Xe)})(Fr);class tt{}class kt extends tt{validate(t){return Be(t)}transform(t){if(t==null)return"";if(!je(t)&&!ru(t))return String(t);if(uf(t))return JSON.stringify(t);throw`${t} is not a string`}}class wr extends tt{validate(t){return Qt(t)||t===""}transform(t){if(t==null)return"";const n=!je(t)&&!ru(t)?Number(t):void 0;if(!Number.isNaN(n)&&n!==void 0)return n;throw`${t} is not a number`}}class T0 extends tt{validate(t){return of(t)}transform(t){if(t==null)return[];function n(r){return r.map(u=>u?String(u):"")}if(Dt(t))return n(t);if(Be(t)&&uu(t))try{const r=JSON.parse(t);if(Array.isArray(r))return n(r)}catch(r){}return[String(t)]}}class L0 extends tt{validate(t){return af(t)}transform(t){if(t==null)return[];function n(u){return u.map(i=>!i&&i!==0?"":Number(i)).filter(i=>i===""||!Number.isNaN(i))}if(Dt(t))return n(t);if(Be(t)&&uu(t))try{const u=JSON.parse(t);if(Dt(u))return n(u)}catch(u){}const r=Number(t);if(Number.isNaN(r))throw`${t} is not a number array`;return[r]}}class j0 extends tt{validate(t){return t instanceof tn||je(t)&&"amount"in t&&Qt(t.amount)&&"currency"in t&&Be(t.currency)}transform(t,n){if(t==null||t==="")return new tn({currency:n==null?void 0:n.currency});let r;if(je(t)&&(r=new tn(oe(oe({},n),t))),Be(t)&&Yt(t))try{const u=JSON.parse(t);r=new tn(oe(oe({},n),u))}catch(u){}if(r){const u=new wr,i=new kt;return u.validate(r.amount)||(r.amount=u.transform(r.amount)),i.validate(r.currency)||(r.currency=i.transform(r.currency)),r}throw`${t} is not a { amount: number, currency: string } object`}}class q0 extends tt{validate(t){return t instanceof nn||je(t)&&"min"in t&&Be(t.min)&&"max"in t&&Be(t.max)}transform(t,n){if(t==null||t==="")return new nn;let r;if(je(t)&&(r=new nn(oe(oe({},n),t))),Be(t)&&Yt(t))try{const u=JSON.parse(t);r=new nn(oe(oe({},n),u))}catch(u){}if(r){const u=new kt;return u.validate(r.min)||(r.min=u.transform(r.min)),u.validate(r.max)||(r.max=u.transform(r.max)),r}throw`${t} is not a { min: string, max: string } object`}}class k0 extends tt{validate(t){return t instanceof un||je(t)&&"result"in t&&Qt(t.result)&&"unit"in t&&Be(t.unit)}transform(t,n){if(t==null||t==="")return new un({unit:n==null?void 0:n.unit});let r;if(je(t)&&(r=new un(oe(oe({},n),t))),Be(t)&&Yt(t))try{const u=JSON.parse(t);r=new un(oe(oe({},n),u))}catch(u){}if(r){const u=new wr,i=new kt;return u.validate(r.result)||(r.result=u.transform(r.result)),i.validate(r.unit)||(r.unit=i.transform(r.unit)),r}throw`${t} is not a { result: string, unit: string } object`}}class U0 extends tt{validate(t){return t instanceof rn}transform(t,n){if(t==null||t==="")return new rn;let r;if(je(t)&&(r=new rn(oe(oe({},n),Fr.exports.camelizeKeys(t)))),Be(t)&&Yt(t))try{const u=JSON.parse(t);r=new rn(oe(oe({},n),Fr.exports.camelizeKeys(u)))}catch(u){}if(r){const u=new kt;return u.validate(r.city)||(r.city=u.transform(r.city)),u.validate(r.district)||(r.district=u.transform(r.district)),u.validate(r.province)||(r.province=u.transform(r.province)),r}throw`${t} is not a { city: string, district: string, province: string } object`}}class V0{static getValueChecker(t){let n;switch(t){case H.VARCHAR:case H.TIMESTAMP:case H.TEXT:case H.RELATION:case H.AUTO_NUMBER:n=new kt;break;case H.DECIMAL:n=new wr;break;case H.EMPLOYEES:case H.DEPARTMENTS:case H.IMAGE:case H.FILE:case H.ARRAY:n=new T0;break;case H.MONEY:n=new j0;break;case H.TIMESCOPE:n=new q0;break;case H.CALC:n=new k0;break;case H.DECIMAL_RANGE:n=new L0;break;case H.ADDRESS:n=new U0;break}return n}}function H0(e){if(["min","max","currency","unit"].includes(e))return H.VARCHAR;if(["result","amount"].includes(e))return H.DECIMAL}function Wu(e,t,n,r){var o;let u=(o=H0(t))!=null?o:e,i=V0.getValueChecker(u);if(!i||i.validate(n))return n;try{const s=i.transform(n,r);return s!==void 0?s:n}catch(s){throw`${t} ${s}`}}function z0(e,t,n){return Object.entries(e).reduce((r,[u,i])=>{const o=t[u];return r[u]=Wu(i,u,o,n[u]),r},Object.assign({},t))}typeof window!="undefined"&&(window.engines={});let mt=null,Ut="";class Br extends ou{constructor(t){super(),this.isMounted=!1,this.id=Tn(8),this.__pluginsApplied=!1,this.actionManager=new R0,this._jobTasks=[],this.rawStore={},this.createControlInstance=this.createInstance,this.$options=Object.freeze(t);const{autoMount:n=!0,schema:r,beforeCreateInstance:u,externalParams:i,language:o=Wr,debug:s=!1}=this.$options;Oe.setLocale(o),this.debug=s,this.runtime=new mr({schema:r,beforeCreateInstance:u}),this.externalParams=i,this.store=new w0({instance:this.runtime.instance}),this.debugLog("engine is Instantiation complete"),n&&this.mount()}debugLog(...t){this.debug&&kn(...t)}use(t){return this.__pluginsApplied||this.__plugins.push(t),this}registerControl(...t){return this.runtime.register(...t),this}static register(...t){return mr.register(...t)}static judgeControlIsRegistered(t){return mr.staticRegisteredTypes.has(t.Runtime.controlType)}mount(){this.debugLog("engine\u7684mount\u65B9\u6CD5\u5F00\u59CB\u8C03\u7528");const{plugins:t=[]}=this.$options;this._handlerProxyState(),this.__plugins=t,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=gn(this.store.state,this._proxyStateCallback.bind(this),this._proxyStateBeforeSetCallback.bind(this))}_proxyStateBeforeSetCallback(t,n,r,u){const i=console,o=Date.now();i.log("\u3297\uFE0F_proxyStateBeforeSetCallback findItem "+n,r,u),i.time("\u3297\uFE0F_proxyStateBeforeSetCallback findItem "+n+" "+o);const s=Cr(this.runtime.flatInstances,n);if(i.timeEnd("\u3297\uFE0F_proxyStateBeforeSetCallback findItem "+n+" "+o),!s)return r;if(this.assertInstance(s,X.SUBTABLE)){const f=s.props.headers.reduce((a,h)=>{const d=h.children[0];return d&&d instanceof Ue&&(a[d.id]=d.fieldType),a},{});return r===null?[]:r.map(a=>z0(f,a,this.getEmptyState(s.id)))}const c=n.split("."),l=c[c.length-1];try{return Wu(s.fieldType,l,r,u)}catch(f){throw Je(`the id=${s.id}'s instance setState error, %o ${f}.`,r),f}}_proxyStateCallback(t,n,r,u,i){Array.isArray(t)?this._handlerArrayUpdate(t,n,r,u,i):this._handlerObjectUpdate(t,n,r,u)}_handlerArrayUpdate(t,n,r,u,i){const o=console;o.time("\u3297\uFE0F _handlerArrayUpdate findItem"+n);const s=Cr(this.runtime.flatInstances,n);if(o.timeEnd("\u3297\uFE0F _handlerArrayUpdate findItem"+n),!(s instanceof pn))return;const c=d=>[],l=mt;let f=[],a=[],h=[];if(r&&u){switch(r){case"push":case"unshift":u.length,f=c(),a=u,s.children[r](...f),this.runtime.getFlatInstances();break;case"splice":if(u.length>2){u.length-2;const d=u.slice(2);f=c(),a=d;const p=u[0],g=u[1];s.children[r](p,g,...f),this.runtime.getFlatInstances()}else s.children[r](...u),this.runtime.getFlatInstances();break;default:s.children[r](...u),this.runtime.getFlatInstances();break}r==="splice"?h=i:["pop","shift"].includes(r)&&(h=[i]),this.emit("list-change",{instance:s,value:this.getState(s.id),options:Object.assign({},l,{changed:f,data:a,deleted:h!=null?h:[]})}),mt=null}}_handlerObjectUpdate(t,n,r,u){const i=console,o=Date.now();i.log("\u3297\uFE0F_handlerObjectUpdate findItem "+n,r,u),i.time("\u3297\uFE0F_handlerObjectUpdate findItem "+n+" "+o);const s=Cr(this.runtime.flatInstances,n);if(i.timeEnd("\u3297\uFE0F_handlerObjectUpdate findItem "+n+" "+o),!s)return;const c=this.getInstanceRowIndex(s),l=mt||{};if(s instanceof pn){s.controlType,s.children.length=0;const f=r;let a=[];this.runtime.getFlatInstances(),this.emit("list-change",{instance:s,value:r,options:zr(oe({},l),{changed:a,data:f,deleted:u!=null?u:[]})})}else this.emit("change",{instance:s,value:this.getState(s.id,c),rowIndex:c,options:zr(oe({},l),{oldValue:u})})}applyPlugins(){this.__pluginsApplied||(this.__plugins.forEach(t=>{var n;try{Ut=(n=t.pluginName)!=null?n:t.constructor.name,t.apply(this)}catch(r){Ze(`${Ut} Plugin apply Error
|
|
2
2
|
${r}`)}finally{Ut=""}}),this.__pluginsApplied=!0)}listControlCreateRow(t,n){const r=this.runtime.createControlInstance(n);if(!!r)return r}listControlAddRow(t,n="subtable-row"){throw new Error("\u8BE5api\u5DF2\u5E9F\u5F03")}emit(t,n){return ze(this,null,function*(){if(t==="engine-mounted"){if(this.isMounted)return Je("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 r,u;this.isMounted||(u=new Promise(o=>{r=o}),this._jobTasks.push(u));const i=yield oo(Br.prototype,this,"emit").call(this,t,n);return r&&u&&(r(),this._jobTasks.splice(this._jobTasks.indexOf(u),1)),i})}on(t,n){return Ut&&(n.applyingPluginName=Ut),super.on(t,n)}createControl(...t){return this.runtime.createControl(...t)}createInstance(t,n){return this.runtime.createControlInstance(t,n)}schemaEvent(t,n){this.emit(t,n)}updateInstanceProps(t,n,r,u){return this.setInstance(t,n,r,u)}getRules(t){var n;return t===void 0?this.runtime.rules:(n=this.runtime.rules[t])==null?void 0:n.fields}getAntdRules(t){var n;return t===void 0?this.runtime.antdRules:(n=this.runtime.antdRules[t])==null?void 0:n.fields}getState(t,n){return t===void 0?this.store.state:this.store.getState(t,n)}getEmptyState(t){return ne(t===void 0?this.store.emptyState:this.store.getEmptyState(t))}setPayloadOptions(t){mt=t}setState(t,n,r,u){mt=u,this.debugLog("[%o]: \u89E6\u53D1setState, \u4FEE\u6539\u7684\u503C\u4E3A%o, rowIndex=%o, options=%o",t,n,r,u),this.store.setState(t,n,r),this.debugLog("[%o]: setState\u5B8C\u6210, \u4FEE\u6539\u7684\u503C\u4E3A%o, rowIndex=%o",t,n,r),mt=null}setStates(t,n,r){let u=t;Object.keys(u).forEach(i=>{Object.entries(this.store.controlIdMapping).forEach(([o,s])=>{if(s.dataView===i){const c=u[i][o];c!==void 0&&this.setState(o,c,n,r)}else(o===i||s.children&&s.children[i])&&u[i]!==void 0&&this.setState(i,u[i],n,r)})})}getField(t,n,r){if(!n){const c=this.getDataBindMapping(t);if(c){const{controlId:l}=c;return this.getState(l)}return}const u=this.getDataBindMapping(t,n);if(!u)return;const{dataBind:i,controlId:o}=u,s=this.getState(o,r);return i instanceof Qe?Object.entries(i).reduce((c,[l,f])=>f.fieldCode===n?c[l]:c,s):s}getData(t){var u,i,o,s,c,l,f,a;if(!t)return;let n=this.getDataBindMapping(t),r=this.getControlIdMapping();if(n){const{controlId:h}=n,d=this.getField(t);if(Array.isArray(d))return d.map(g=>{var D,y,F,C,_,O,R;let v={};for(let S in g)if((F=(y=(D=r[h])==null?void 0:D.children[S])==null?void 0:y.dataBind)!=null&&F.fieldCode)v[(C=r[h].children[S])==null?void 0:C.dataBind.fieldCode]=g[S];else if((_=r[h])!=null&&_.children[S])for(let P in g[S])v[(R=(O=r[h])==null?void 0:O.children[S])==null?void 0:R.dataBind[P].fieldCode]=g[S][P];return v});{let p={};for(let g in d)if((i=(u=r[g])==null?void 0:u.dataBind)!=null&&i.fieldCode)p[(o=r[g])==null?void 0:o.dataBind.fieldCode]=d[g];else if((c=(s=r[g])==null?void 0:s.dataBind)!=null&&c.dataCode)p[(l=r[g])==null?void 0:l.dataBind.dataCode]=d[g].map(v=>{var y,F,C;let D={};for(let _ in v)if((y=r[g].children[_])!=null&&y.dataBind.fieldCode)D[(F=r[g].children[_])==null?void 0:F.dataBind.fieldCode]=v[_];else for(let O in v[_])D[(C=r[g].children[_])==null?void 0:C.dataBind[O].fieldCode]=v[_][O];return D});else if(r[g])for(let v in d[g])p[(a=(f=r[g])==null?void 0:f.dataBind[v])==null?void 0:a.fieldCode]=d[g][v];return p}}}setField(t,n,r,u,i){var l;const o=this.getDataBindMapping(t,n);if(!o)return;const{dataBind:s,controlId:c}=o;if(s instanceof Qe){const f=(l=ne(this.getState(c,u)))!=null?l:this.getEmptyState(c),a=Object.entries(s).reduce((h,[d,p])=>(p.fieldCode===n&&(h[d]=r),h),f);this.setState(c,a,u,i)}else this.setState(c,r,u,i)}setFields(t,n,r,u){const i=this.getDataBindMapping(t);if(!i)return;let o=[];i.fields.forEach(s=>{var a;const{dataBind:c,controlId:l,fieldCode:f}=s;if(!o.includes(f)&&!!Object.hasOwnProperty.call(n,f))if(c instanceof Qe){const h=(a=ne(this.getState(l,r)))!=null?a:this.getEmptyState(l),d=Object.entries(c).reduce((p,[g,v])=>{o.push(v.fieldCode);const D=n[v.fieldCode];return D!==void 0&&(p[g]=D),p},h);this.setState(s.controlId,d,r,u)}else this.setState(l,n[f],r,u)})}buildFields(t,n){const r=this.getDataBindMapping(t);if(!r)return;let u=[];const i={};return r.fields.forEach(o=>{const{dataBind:s,controlId:c,fieldCode:l}=o;if(!u.includes(l)&&!!Object.hasOwnProperty.call(n,l))if(s instanceof Qe){const f=this.getEmptyState(c);i[o.controlId]=Object.entries(s).reduce((a,[h,d])=>{u.push(d.fieldCode);const p=n[d.fieldCode];return p!==void 0&&(a[h]=p),a},f)}else i[c]=n[l]}),i}setData(t,n){this.debugLog("engine setData\u65B9\u6CD5\u6267\u884C\uFF0C\u53C2\u6570\u4E3A%o\uFF0C%o\u3002",t,n);let r={};debugger;Object.keys(t).map(u=>{const i=t[u];if(Array.isArray(i))i.map(o=>{const s=this.getDataBindMapping(u);if(!s)return;let c=ne(this.store.emptyState[s.dataViewId][s.controlId]),l=[];Object.keys(o).map(f=>{var h,d,p;if(l.includes(f))return;const a=(d=(h=this.store.dataBindMapping[u])==null?void 0:h.fields)==null?void 0:d.find(g=>g.fieldCode===f);if(a){if(a.dataBind instanceof Ot&&o[f]!==void 0)c[a.controlId]=o[f];else if(a.dataBind instanceof Qe){let g=ne((p=this.getEmptyState(a.controlId))!=null?p:{});Object.keys(a.dataBind).map(v=>{const D=a.dataBind[v];o[D.fieldCode]!==void 0&&(g[v]=o[D.fieldCode]),l.push(D.fieldCode)}),c[a.controlId]=g}}}),r[s.dataViewId]||(r[s.dataViewId]={}),r[s.dataViewId][s.controlId]||(r[s.dataViewId][s.controlId]=[]),r[s.dataViewId][s.controlId].push(c)});else if(i){let o=[];Object.keys(i).map(s=>{var l;if(o.includes(s))return;const c=this.getDataBindMapping(u,s);if(c){if(r[c.dataViewId[0]]||(r[c.dataViewId[0]]={}),c.dataBind instanceof Ot&&i[s]!==void 0)r[c.dataViewId[0]][c.controlId]=i[s];else if(c.dataBind instanceof Qe){let f=ne((l=this.getEmptyState(c.controlId))!=null?l:{});Object.keys(c.dataBind).map(a=>{const h=c.dataBind[a];i[h.fieldCode]!==void 0&&(f[a]=i[h.fieldCode]),o.push(h.fieldCode)}),r[c.dataViewId[0]][c.controlId]=f}}})}}),this.debugLog("engine setData\u65B9\u6CD5\u6570\u636E\u7EC4\u5408\u5B8C\u6210\uFF0C\u53C2\u6570\u4E3A%o\u3002",r),this.setStates(r,void 0,n),this.debugLog("engine setData\u65B9\u6CD5\u6267\u884C\u5B8C\u6210\u3002")}getDataBind(t){return this.store.getDataBind(t)}getInstance(t,n){const r=this.getInstances(t,n===-1);if(r.length>0)return n!==void 0?n===-1?r[0]:r[n]:r[0]}getInstances(t,n=!1){var s;if(t===void 0)return this.runtime.flatInstances;const r=console,u=Date.now(),i="\u26A0\uFE0F getInstances "+t+" "+n+u;r.time(i);const o=this.runtime.flatInstances.filter(c=>c.id===t);if(n)if(o.length){const c=o[0];if(this.getInstanceRowIndex(c)!==void 0){const l=this.getInstanceInSubtableHeader(c);l&&o.unshift(l)}}else{const c=this.getControlIdMapping(),[l]=(s=Object.entries(c).find(([f,a])=>a.children&&t in a.children))!=null?s:[];if(l){const a=this.getInstance(l).props.headers.find(h=>h.children.find(d=>d.id===t));if(a){const h=a.children.find(d=>d.id===t);h&&o.unshift(h)}}}return r.timeEnd(i),o}setInstance(t,n,r,u){try{let i;if(typeof t=="string"?i=this.getInstance(t,u):i=t,!i)return;this.debugLog("[%o]: \u4FEE\u6539instance: %o\u7684%o\u5C5E\u6027\uFF0C\u4FEE\u6539\u7684\u503C\u4E3A%o\u3002",i.id,i,n,r),tu(i.props,n,r),this.schemaEvent("schema-change",{instance:i,props:n,value:r})}catch(i){throw i}}getControlIdMapping(){return this.store.controlIdMapping}getDataBindMapping(t,n){if(!t&&!n)return this.store.dataBindMapping;const r=this.store.dataBindMapping[t];if(!r){Je(`No corresponding dataCode=${t} was found`);return}if(!n)return r;const u=r.fields.find(i=>i.fieldCode===n);if(!u){Je(`No corresponding fieldCode=${n} was found`);return}return u}getAction(){return this.actionManager}initDataManager(t){this.dataManager=new P0(t)}getDataManager(){return this.dataManager}assertInstance(t,n){return Be(n)?t.type===n:n.includes(t.type)}getInstanceRowIndex(t){if(!t.parent)return;let n;if(this.assertInstance(t.parent,X.SUBTABLE))if(this.assertInstance(t,X.SUBTABLE_COLUMN))n=-1;else{const r=t.parent.children.findIndex(u=>u===t);r>-1&&(n=r)}else n=this.getInstanceRowIndex(t.parent);return n}getInstanceParentControl(t,n){if(!!t.parent)return this.assertInstance(t.parent,n)?t.parent:this.getInstanceParentControl(t.parent,n)}getInstanceInSubtableHeader(t){const n=this.getInstanceRowIndex(t);if(n===void 0)return;if(n===-1)return t;const r=this.assertInstance(t,X.SUBTABLE_COLUMN)?t:this.getInstanceParentControl(t,X.SUBTABLE_COLUMN);if(!r)return;const i=this.getInstanceParentControl(t,X.SUBTABLE).props.headers.find(o=>o.id===r.id);if(!!i)return i.children.find(o=>o.id===t.id)}setControlConfig(...t){return this.runtime.registerControlConfig(...t)}getControlConfig(t){return this.runtime.getControlConfig(t)}}class W0{}class Z0{constructor(t){this.config=t}apply(t){this.engine=t;const n=this.config;if(!n)return;const r=Zu(n,t);if(!r)return;const u=t.getAction();for(let[i,o]of Object.entries(r.funcMap))u.addAction(i,o)}}function Zu(e,t){if(!e.module||!e.module.compiled)return;const n=e.module.compiled,r={exports:{ctx:t,utils:t.getAction().actionUtils}};try{new Function("module","exports",n).call(r,r,r.exports)}catch(o){Ze(o.message+". fail to parse the module"),process.env.NODE_ENV!=="production"&&Ze("fail to parse the module")}const u={},i={};for(const[o,s]of Object.entries(r.exports))typeof s=="function"?u[o]=s:i[o]=s;return{funcMap:u,variables:i}}const X0={"engine-mounted":"did_mount","engine-submit":"will_submit","engine-submit-params":"do_submit","engine-submitted":"did_submit"};class G0{constructor(t){this.config=t}apply(t){this.engine=t,Object.entries(X0).forEach(([n,r])=>{t.on(n,u=>ze(this,null,function*(){const i=yield this.callLifecycleEvent(r,u);return i.includes(!1)?!1:i}))})}callLifecycleEvent(t,n){return ze(this,null,function*(){const r=this.config;return!r||!Array.isArray(r[t])?[]:yield Promise.all(r[t].map(i=>ze(this,null,function*(){return yield this.engine.getAction().execAction(i,n)})))})}}class K0{constructor(t){this.config=t}apply(t){this.engine=t,au.events.forEach(n=>{n.code&&n.key&&this.engineAddEventListener(n.code,n.key)})}engineAddEventListener(t,n){this.engine.on(t,r=>ze(this,null,function*(){if(!(t==="change"&&!this.engine.isMounted)&&r.instance!==void 0)return yield this.callControlEvent(n,r)}))}callControlEvent(t,n){return ze(this,null,function*(){const r=this.config[n.instance.id];if(!r||!Array.isArray(r[t]))return[];const u=yield Promise.all(r[t].map(i=>ze(this,null,function*(){return yield this.engine.getAction().execAction(i,n)})));return u.includes(!1)?!1:u})}}function br(){return br=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},br.apply(this,arguments)}var Xu={epsilon:1e-12,matrix:"Matrix",number:"number",precision:64,predictable:!1,randomSeed:null};function ge(e){return typeof e=="number"}function nt(e){return!e||typeof e!="object"||typeof e.constructor!="function"?!1:e.isBigNumber===!0&&typeof e.constructor.prototype=="object"&&e.constructor.prototype.isBigNumber===!0||typeof e.constructor.isDecimal=="function"&&e.constructor.isDecimal(e)===!0}function Gu(e){return e&&typeof e=="object"&&Object.getPrototypeOf(e).isComplex===!0||!1}function Ku(e){return e&&typeof e=="object"&&Object.getPrototypeOf(e).isFraction===!0||!1}function Ju(e){return e&&e.constructor.prototype.isUnit===!0||!1}function vn(e){return typeof e=="string"}var Se=Array.isArray;function Vt(e){return e&&e.constructor.prototype.isMatrix===!0||!1}function Sr(e){return Array.isArray(e)||Vt(e)}function J0(e){return e&&e.isDenseMatrix&&e.constructor.prototype.isMatrix===!0||!1}function Q0(e){return e&&e.isSparseMatrix&&e.constructor.prototype.isMatrix===!0||!1}function Y0(e){return e&&e.constructor.prototype.isRange===!0||!1}function Qu(e){return e&&e.constructor.prototype.isIndex===!0||!1}function eh(e){return typeof e=="boolean"}function th(e){return e&&e.constructor.prototype.isResultSet===!0||!1}function nh(e){return e&&e.constructor.prototype.isHelp===!0||!1}function rh(e){return typeof e=="function"}function uh(e){return e instanceof Date}function ih(e){return e instanceof RegExp}function oh(e){return!!(e&&typeof e=="object"&&e.constructor===Object&&!Gu(e)&&!Ku(e))}function ah(e){return e===null}function sh(e){return e===void 0}function ch(e){return e&&e.isAccessorNode===!0&&e.constructor.prototype.isNode===!0||!1}function fh(e){return e&&e.isArrayNode===!0&&e.constructor.prototype.isNode===!0||!1}function lh(e){return e&&e.isAssignmentNode===!0&&e.constructor.prototype.isNode===!0||!1}function hh(e){return e&&e.isBlockNode===!0&&e.constructor.prototype.isNode===!0||!1}function dh(e){return e&&e.isConditionalNode===!0&&e.constructor.prototype.isNode===!0||!1}function ph(e){return e&&e.isConstantNode===!0&&e.constructor.prototype.isNode===!0||!1}function Dh(e){return e&&e.isFunctionAssignmentNode===!0&&e.constructor.prototype.isNode===!0||!1}function gh(e){return e&&e.isFunctionNode===!0&&e.constructor.prototype.isNode===!0||!1}function vh(e){return e&&e.isIndexNode===!0&&e.constructor.prototype.isNode===!0||!1}function mh(e){return e&&e.isNode===!0&&e.constructor.prototype.isNode===!0||!1}function yh(e){return e&&e.isObjectNode===!0&&e.constructor.prototype.isNode===!0||!1}function Eh(e){return e&&e.isOperatorNode===!0&&e.constructor.prototype.isNode===!0||!1}function Ah(e){return e&&e.isParenthesisNode===!0&&e.constructor.prototype.isNode===!0||!1}function Ch(e){return e&&e.isRangeNode===!0&&e.constructor.prototype.isNode===!0||!1}function Fh(e){return e&&e.isRelationalNode===!0&&e.constructor.prototype.isNode===!0||!1}function wh(e){return e&&e.isSymbolNode===!0&&e.constructor.prototype.isNode===!0||!1}function Bh(e){return e&&e.constructor.prototype.isChain===!0||!1}function _r(e){var t=typeof e;return t==="object"?e===null?"null":nt(e)?"BigNumber":e.constructor&&e.constructor.name?e.constructor.name:"Object":t}function ft(e){var t=typeof e;if(t==="number"||t==="string"||t==="boolean"||e===null||e===void 0)return e;if(typeof e.clone=="function")return e.clone();if(Array.isArray(e))return e.map(function(n){return ft(n)});if(e instanceof Date)return new Date(e.valueOf());if(nt(e))return e;if(e instanceof RegExp)throw new TypeError("Cannot clone "+e);return bh(e,ft)}function bh(e,t){var n={};for(var r in e)mn(e,r)&&(n[r]=t(e[r]));return n}function Mr(e,t){var n,r,u;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(r=0,u=e.length;r<u;r++)if(!Mr(e[r],t[r]))return!1;return!0}else{if(typeof e=="function")return e===t;if(e instanceof Object){if(Array.isArray(t)||!(t instanceof Object))return!1;for(n in e)if(!(n in t)||!Mr(e[n],t[n]))return!1;for(n in t)if(!(n in e))return!1;return!0}else return e===t}}function mn(e,t){return e&&Object.hasOwnProperty.call(e,t)}function Sh(e,t){for(var n={},r=0;r<t.length;r++){var u=t[r],i=e[u];i!==void 0&&(n[u]=i)}return n}var _h=["Matrix","Array"],Mh=["number","BigNumber","Fraction"],Yu=function(t){if(t)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:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/model-driven-engine",
|
|
3
|
-
"version": "1.7.6-bete.
|
|
3
|
+
"version": "1.7.6-bete.18",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "郝晨光 <2293885211@qq.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"postpublish": "node ../../scripts/postpublish.js"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@byteluck-fe/model-driven-core": "1.7.6-bete.
|
|
25
|
+
"@byteluck-fe/model-driven-core": "1.7.6-bete.18",
|
|
26
26
|
"@byteluck-fe/model-driven-shared": "^1.7.5",
|
|
27
27
|
"lodash.clonedeep": "^4.5.0",
|
|
28
28
|
"mathjs": "^11.3.3"
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"@types/lodash.clonedeep": "^4.5.7",
|
|
32
32
|
"@types/node": "~18.0.3"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "8c64ef4fdd955fbb59bc0917091cefb8cebc884b"
|
|
35
35
|
}
|