@byteluck-fe/model-driven-engine 2.10.0-alpha.1 → 2.10.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.umd.js +1 -1
- package/package.json +4 -4
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var H1=Object.defineProperty,z1=Object.defineProperties;var W1=Object.getOwnPropertyDescriptors;var Uo=Object.getOwnPropertySymbols,Z1=Object.getPrototypeOf,G1=Object.prototype.hasOwnProperty,J1=Object.prototype.propertyIsEnumerable,X1=Reflect.get;var Un=Math.pow,Vo=(W,ie,fe)=>ie in W?H1(W,ie,{enumerable:!0,configurable:!0,writable:!0,value:fe}):W[ie]=fe,se=(W,ie)=>{for(var fe in ie||(ie={}))G1.call(ie,fe)&&Vo(W,fe,ie[fe]);if(Uo)for(var fe of Uo(ie))J1.call(ie,fe)&&Vo(W,fe,ie[fe]);return W},uu=(W,ie)=>z1(W,W1(ie));var Ho=(W,ie,fe)=>X1(Z1(W),fe,ie);var Ge=(W,ie,fe)=>new Promise((Vn,un)=>{var Hn=Je=>{try{kt(fe.next(Je))}catch(qt){un(qt)}},zn=Je=>{try{kt(fe.throw(Je))}catch(qt){un(qt)}},kt=Je=>Je.done?Vn(Je.value):Promise.resolve(Je.value).then(Hn,zn);kt((fe=fe.apply(W,ie)).next())});(function(W,ie){typeof exports=="object"&&typeof module!="undefined"?ie(exports,require("crypto")):typeof define=="function"&&define.amd?define(["exports","crypto"],ie):(W=typeof globalThis!="undefined"?globalThis:W||self,ie(W.modelDrivenEngine={},W.require$$0))})(this,function(W,ie){"use strict";function fe(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var Vn=fe(ie),un="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",Hn="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",zn="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",kt="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",Je="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",qt="{caption}\u5FC5\u586B",zo="\u8BF7\u8F93\u5165\u6807\u9898",Wo="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",Zo="\u8BF7\u8F93\u5165\u884C\u6807\u9898",Go="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",Jo="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",Xo="\u8BF7\u7ED1\u5B9A\u8868\u5355",Ko="\u8BF7\u7ED1\u5B9A\u5217\u8868",Qo="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",Yo="\u8BF7\u8F93\u5165\u663E\u793A\u503C",ea="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",ta="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",na="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",ra="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",ua="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",ia="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",oa="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",aa="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",sa="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",ca="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",la="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",fa="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",da="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",ha="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",pa="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",Da="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",ga="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",va="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",ma="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",ya="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Ea="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",Aa="\u8BF7\u7ED1\u5B9A\u670D\u52A1",Ca="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Fa="\u8BF7\u9009\u62E9\u7701",wa="\u8BF7\u9009\u62E9\u5E02",ba="\u8BF7\u9009\u62E9\u533A",Ba="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",_a="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",Sa="\u8BF7\u8F93\u5165\u5217\u5BBD",Ma="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",Ia="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",Na="\u8BF7\u9009\u62E9\u63A7\u4EF6",Oa="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",xa="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",Ra="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",$a="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",Pa="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Ta="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",ja="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",La="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",ka="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",qa="\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",Va="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",Ha="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",za="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",Wa="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Za="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",Ga="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",Ja="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Xa="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",Ka="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Qa="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Ya="\u8BF7\u8F93\u5165\u5B50\u8868\u522B\u540D",es="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u4E1A\u52A1\u6A21\u578B",ts="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u7ED1\u5B9A\u670D\u52A1",ns="\u8BF7\u9009\u62E9\u5173\u8054\u5B50\u8868\u5B57\u6BB5",rs="\u8BF7\u9009\u62E9\u5173\u8054\u4E3B\u8868\u5B57\u6BB5",us="\u8BF7\u9009\u62E9\u6392\u5E8F\u5B57\u6BB5",is={isNotNumber:un,isNotString:Hn,isNotObject:zn,isNotArray:kt,isNotBoolean:Je,runtimeRequired:qt,pleaseEnterCaption:zo,pleaseEnterCaptionTip:Wo,pleaseEnterRowCaption:Zo,pleaseEnterPlaceholder:Go,pleaseEnterFieldCode:Jo,pleaseEnterForm:Xo,pleaseEnterList:Ko,pleaseEnterProcess:Qo,pleaseEnterLabel:Yo,pleaseEnterValue:ea,bizKeyNotBindFiled:ta,pleaseSelectOneField:na,pleaseEnterNumberRange:ra,pleaseEnterAValueGreaterThanMin:ua,pleaseEnterAValueLessThanMax:ia,numberRangeSetError:oa,stringRangeError:aa,attachmentMaxSize:sa,pleaseEnterTotalScoreSetting:ca,theTotalScoreMustNotBeLessThan1:la,scoreDefaultValueRange:fa,attachmentLimitError:da,PleaseReselectTheOptionalQuantity:ha,TheMaximumLengthIsGreaterThanTheMinimumLength:pa,TheMinimumLengthIsGreaterThanTheMaximumLength:Da,PleaseSelectTheCorrectOptionSettings:ga,optionIdIsRepeat:va,optionIsRequired:ma,pleaseEnterDataCode:ya,pleaseEnterValueFieldCode:Ea,pleaseEnterSvcCode:Aa,pleaseBindAtLeastOneDisplayValue:Ca,pleaseSelectProvince:Fa,pleaseSelectCity:wa,pleaseSelectDistrict:ba,limitRowsCannotBeLessThan0:Ba,TheNumberOfRowsCannotBeLessThanMinRows:_a,pleaseEnterColumnWidth:Sa,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Ma,pleaseCompleteAllRulesAndConditions:Ia,pleaseSelectControl:Na,pleaseSelectAtLeastOneColumn:Oa,pleaseSelectFillBackMode:xa,pleaseSelectDashboard:Ra,rootNodeIsRequired:$a,theViewNameCannotBeEmpty:Pa,pleaseSelectOcrType:Ta,pleaseSelectAtLeastOneFieldToFillIn:ja,pleaseChooseAtLeastOne:La,pleaseEnterButtonContent:ka,pleaseEnterDataCodeInDataSetting:qa,pleaseEnterValueFieldCodeInDataSetting:Ua,pleaseEnterSvcCodeInDataSetting:Va,pleaseBindAtLeastOneDisplayValueInDataSetting:Ha,rootNodeIsRequiredInDataSetting:za,pleaseEnterMaxHeight:Wa,pleaseEnter:Za,pleaseEnterWatermark:Ga,pleaseEnterFileName:Ja,pleaseUploadAtLeastOnePrintTemplate:Xa,pleaseAssignBusiness:Ka,pleaseAssignExternal:Qa,pleaseEnterAliasCode:Ya,pleaseSelectDataCode:es,pleaseSelectSvcCode:ts,pleaseSelectJoinFieldCode:ns,pleaseSelectMainFieldCode:rs,pleaseSelectSortFieldCode:us},os="Please enter a number",as="Please enter a string",ss="Please enter an object",cs="Please enter an array",ls="Please enter a boolean",fs="{caption} Required",ds="Please enter the title",hs="Please enter the bubble prompt",ps="Please enter the row title",Ds="Please enter the prompt text",gs="Please bind data items",vs="Please bind the form",ms="Please bind the list",ys="Please bind the process",Es="Please enter the displayed value",As="Please enter the stored value",Cs="The document number is not bound to the data item",Fs="Please select at least one display field",ws="Please enter a value greater than or equal to {min} and less than or equal to {max}",bs="Please enter a value greater than or equal to {min}",Bs="Please enter a value less than or equal to {max}",_s="The value range is set incorrectly",Ss="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",Ms="The attachment size must be between 0MB and 1000MB",Is="Please fill in the total score setting",Ns="The total score cannot be less than 1",Os="The default value must be between {min} and {max}",xs="The number of attachments uploaded must be between {min} and {max}",Rs="Please re-select the optional quantity",$s="The maximum length of the control must be greater than the minimum length",Ps="The minimum length of the control must be less than the maximum length",Ts="Please select the correct option setting",js="Option ID cannot be repeated",Ls="Please enter at least one option",ks="Please bind the data source",qs="Please bind the stored value",Us="Please bind the service",Vs="At least one display value must be bound",Hs="Please select a province",zs="Please select a city",Ws="Please select a district",Zs="The minimum number of lines to fill in cannot be less than 0",Gs="The number of rows cannot be less than {min} rows",Js="Please enter the column width",Xs="Please set the logical relationship of all rule conditions",Ks="Please complete all rules and conditions",Qs="please select control",Ys="Please select the dashboard",ec="View name cannot be empty",tc="Please select recognition type",nc="Please select at least one field to fill in",rc="Please select at least one",uc="Please enter the button title",ic="Please bind the business model in the data settings",oc="Please bind storage values in data settings",ac="Please bind the service in the data settings",sc="Please bind at least one display value in the data settings",cc="Please select the root node in the data settings",lc="Please enter the maximum height",fc="The input content cannot be empty",dc="Watermark cannot be empty",hc="File name cannot be empty",pc="Please upload at least one printing template!\uFF01",Dc="Please select a specific business department",gc="Please select a specified external organization",vc="Please enter a sub table alias",mc="Please select the associated table to set the business model",yc="Please select the association table to set the binding service",Ec="Select associated sub table fields",Ac="Please select the associated main table field",Cc="Please select the sort field",Fc={isNotNumber:os,isNotString:as,isNotObject:ss,isNotArray:cs,isNotBoolean:ls,runtimeRequired:fs,pleaseEnterCaption:ds,pleaseEnterCaptionTip:hs,pleaseEnterRowCaption:ps,pleaseEnterPlaceholder:Ds,pleaseEnterFieldCode:gs,pleaseEnterForm:vs,pleaseEnterList:ms,pleaseEnterProcess:ys,pleaseEnterLabel:Es,pleaseEnterValue:As,bizKeyNotBindFiled:Cs,pleaseSelectOneField:Fs,pleaseEnterNumberRange:ws,pleaseEnterAValueGreaterThanMin:bs,pleaseEnterAValueLessThanMax:Bs,numberRangeSetError:_s,stringRangeError:Ss,attachmentMaxSize:Ms,pleaseEnterTotalScoreSetting:Is,theTotalScoreMustNotBeLessThan1:Ns,scoreDefaultValueRange:Os,attachmentLimitError:xs,PleaseReselectTheOptionalQuantity:Rs,TheMaximumLengthIsGreaterThanTheMinimumLength:$s,TheMinimumLengthIsGreaterThanTheMaximumLength:Ps,PleaseSelectTheCorrectOptionSettings:Ts,optionIdIsRepeat:js,optionIsRequired:Ls,pleaseEnterDataCode:ks,pleaseEnterValueFieldCode:qs,pleaseEnterSvcCode:Us,pleaseBindAtLeastOneDisplayValue:Vs,pleaseSelectProvince:Hs,pleaseSelectCity:zs,pleaseSelectDistrict:Ws,limitRowsCannotBeLessThan0:Zs,TheNumberOfRowsCannotBeLessThanMinRows:Gs,pleaseEnterColumnWidth:Js,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Xs,pleaseCompleteAllRulesAndConditions:Ks,pleaseSelectControl:Qs,pleaseSelectDashboard:Ys,theViewNameCannotBeEmpty:ec,pleaseSelectOcrType:tc,pleaseSelectAtLeastOneFieldToFillIn:nc,pleaseChooseAtLeastOne:rc,pleaseEnterButtonContent:uc,pleaseEnterDataCodeInDataSetting:ic,pleaseEnterValueFieldCodeInDataSetting:oc,pleaseEnterSvcCodeInDataSetting:ac,pleaseBindAtLeastOneDisplayValueInDataSetting:sc,rootNodeIsRequiredInDataSetting:cc,pleaseEnterMaxHeight:lc,pleaseEnter:fc,pleaseEnterWatermark:dc,pleaseEnterFileName:hc,pleaseUploadAtLeastOnePrintTemplate:pc,pleaseAssignBusiness:Dc,pleaseAssignExternal:gc,pleaseEnterAliasCode:vc,pleaseSelectDataCode:mc,pleaseSelectSvcCode:yc,pleaseSelectJoinFieldCode:Ec,pleaseSelectMainFieldCode:Ac,pleaseSelectSortFieldCode:Cc},wc="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",bc="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Bc="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",_c="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Sc="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Mc="{caption}\u5FC5\u9808",Ic="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Nc="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Oc="\u884C\u30D8\u30C3\u30C0\u30FC\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",xc="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Rc="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",$c="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Pc="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Tc="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",jc="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Lc="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",kc="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",qc="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Uc="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Vc="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Hc="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",zc="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",Wc="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Zc="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Gc="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Jc="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Xc="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Kc="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Qc="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Yc="\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",el="\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",tl="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",nl="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",rl="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",ul="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",il="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ol="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",al="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",sl="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",cl="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",ll="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",fl="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",dl="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",hl="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",pl="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Dl="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",gl="please select control",vl="\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ml="\u30D3\u30E5\u30FC\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",yl="\u8B58\u5225\u30BF\u30A4\u30D7\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",El="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Al="\u5C11\u306A\u304F\u3068\u30821\u3064\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Cl="\u30DC\u30BF\u30F3\u306E\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Fl="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",wl="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u683C\u7D0D\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",bl="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30B5\u30FC\u30D3\u30B9\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Bl="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",_l="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30EB\u30FC\u30C8\u30CE\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Sl="\u6700\u5927\u9AD8\u3055\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ml="\u5165\u529B\u5185\u5BB9\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Il="\u900F\u304B\u3057\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Nl="\u30D5\u30A1\u30A4\u30EB\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Ol="\u5370\u5237\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u5C11\u306A\u304F\u3068\u30821\u3064\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\uFF01\uFF01",xl="\u6307\u5B9A\u3055\u308C\u305F\u30D3\u30B8\u30CD\u30B9\u90E8\u9580\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Rl="\u5916\u90E8\u7D44\u7E54\u306E\u6307\u5B9A\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",$l="\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u5225\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Pl="\u95A2\u9023\u8868\u3092\u9078\u629E\u3057\u3066\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044",Tl="\u95A2\u9023\u30C6\u30FC\u30D6\u30EB\u8A2D\u5B9A\u30D0\u30A4\u30F3\u30C9\u30B5\u30FC\u30D3\u30B9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",jl="\u95A2\u9023\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u9078\u629E",Ll="\u95A2\u9023\u30DE\u30B9\u30BF\u30FC\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",kl="\u30BD\u30FC\u30C8\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ql={isNotNumber:wc,isNotString:bc,isNotObject:Bc,isNotArray:_c,isNotBoolean:Sc,runtimeRequired:Mc,pleaseEnterCaption:Ic,pleaseEnterCaptionTip:Nc,pleaseEnterRowCaption:Oc,pleaseEnterPlaceholder:xc,pleaseEnterFieldCode:Rc,pleaseEnterForm:$c,pleaseEnterList:Pc,pleaseEnterProcess:Tc,pleaseEnterLabel:jc,pleaseEnterValue:Lc,bizKeyNotBindFiled:kc,pleaseSelectOneField:qc,pleaseEnterNumberRange:Uc,pleaseEnterAValueGreaterThanMin:Vc,pleaseEnterAValueLessThanMax:Hc,numberRangeSetError:zc,stringRangeError:Wc,attachmentMaxSize:Zc,pleaseEnterTotalScoreSetting:Gc,theTotalScoreMustNotBeLessThan1:Jc,scoreDefaultValueRange:Xc,attachmentLimitError:Kc,PleaseReselectTheOptionalQuantity:Qc,TheMaximumLengthIsGreaterThanTheMinimumLength:Yc,TheMinimumLengthIsGreaterThanTheMaximumLength:el,PleaseSelectTheCorrectOptionSettings:tl,optionIdIsRepeat:nl,optionIsRequired:rl,pleaseEnterDataCode:ul,pleaseEnterValueFieldCode:il,pleaseEnterSvcCode:ol,pleaseBindAtLeastOneDisplayValue:al,pleaseSelectProvince:sl,pleaseSelectCity:cl,pleaseSelectDistrict:ll,limitRowsCannotBeLessThan0:fl,TheNumberOfRowsCannotBeLessThanMinRows:dl,pleaseEnterColumnWidth:hl,pleaseSetTheLogicalRelationshipOfAllRuleConditions:pl,pleaseCompleteAllRulesAndConditions:Dl,pleaseSelectControl:gl,pleaseSelectDashboard:vl,theViewNameCannotBeEmpty:ml,pleaseSelectOcrType:yl,pleaseSelectAtLeastOneFieldToFillIn:El,pleaseChooseAtLeastOne:Al,pleaseEnterButtonContent:Cl,pleaseEnterDataCodeInDataSetting:Fl,pleaseEnterValueFieldCodeInDataSetting:wl,pleaseEnterSvcCodeInDataSetting:bl,pleaseBindAtLeastOneDisplayValueInDataSetting:Bl,rootNodeIsRequiredInDataSetting:_l,pleaseEnterMaxHeight:Sl,pleaseEnter:Ml,pleaseEnterWatermark:Il,pleaseEnterFileName:Nl,pleaseUploadAtLeastOnePrintTemplate:Ol,pleaseAssignBusiness:xl,pleaseAssignExternal:Rl,pleaseEnterAliasCode:$l,pleaseSelectDataCode:Pl,pleaseSelectSvcCode:Tl,pleaseSelectJoinFieldCode:jl,pleaseSelectMainFieldCode:Ll,pleaseSelectSortFieldCode:kl},Ul={zhCN:is,enUS:Fc,jaJP:ql},je;(function(e){e.Number="Number",e.Operator="Operator",e.VariableInMainTable="VariableInMainTable",e.VariableInCurrentSubTable="VariableInCurrentSubTable",e.VariableInOtherSubTable="VariableInOtherSubTable",e.UndefinedVariable="UndefinedVariable"})(je||(je={}));var wt;(function(e){e.SUM="SUM",e.AVG="AVG",e.MAX="MAX",e.MIN="MIN"})(wt||(wt={}));var iu="zh-CN";function U(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G;(function(e){e.BASE="base",e.FORM="form",e.LAYOUT="layout",e.WRAP="wrap",e.COLUMN="column",e.LIST="list",e.SEARCH="search"})(G||(G={}));var ou;(function(e){e[e.FORM=0]="FORM",e[e.LIST=1]="LIST",e[e.REPORT=2]="REPORT",e[e.DASHBOARD=3]="DASHBOARD",e[e.VUE=4]="VUE",e[e.FREE_PAGE=5]="FREE_PAGE"})(ou||(ou={}));var oe;(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.BATCH_DELETE_LIST_BUTTON="list-page-btn-batch-delete",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.ORGANIZATION_SELECTION="organization-selection",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.Approval_Status_Column="approval-status-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.GRID_LAYOUT_CONTAINER="grid-layout-container",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.ACTION_BAR="action-bar",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",e.GRID_LAYOUT_WRAP="grid-layout-wrap",e.VUE_PAGE="vue-page"})(oe||(oe={}));var au;(function(e){e.SAVE="save",e.DRAFT="draft",e.UNSUBMIT="unsubmit",e.AUDIT="audit",e.UNAUDIT="unaudit",e.CANCEL="cancel",e.FORM_SUBMIT="form_submit"})(au||(au={}));var ae;(function(e){e.VARCHAR="varchar",e.TEXT="text",e.ARRAY="array",e.ADDRESS="location",e.DECIMAL="decimal",e.REAL_DECIMAL="real-decimal",e.DECIMAL_RANGE="decimal_range",e.TIMESTAMP="timestamp",e.REAL_TIMESTAMP="real-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",e.BOOLEAN="boolean",e.MODEL="model",e.MODEL_SET="model_set"})(ae||(ae={}));var re;re={},U(re,"varchar","\u77ED\u6587\u672C"),U(re,"timestamp","\u65F6\u95F4"),U(re,"real-timestamp","\u65F6\u95F4\uFF08timestamp\uFF09"),U(re,"text","\u957F\u6587\u672C"),U(re,"decimal","\u6570\u503C\u7C7B\u578B"),U(re,"real-decimal","\u6570\u503C\u7C7B\u578B\uFF08decimal\uFF09"),U(re,"relation","\u5F15\u7528\u7C7B\u578B"),U(re,"bigint","\u957F\u6574\u578B"),U(re,"image","\u56FE\u7247"),U(re,"file","\u9644\u4EF6"),U(re,"auto_number","\u81EA\u52A8\u7F16\u53F7"),U(re,"boolean","\u903B\u8F91"),U(re,"people","\u4EBA\u5458"),U(re,"location","\u5730\u5740"),U(re,"department","\u90E8\u95E8"),U(re,"relation-field","\u5173\u8054\u5B57\u6BB5"),U(re,"reference-field","\u5F15\u7528\u5B57\u6BB5"),U(re,"calc","\u8BA1\u7B97\u516C\u5F0F"),U(re,"json","JSON"),U(re,"model","\u6A21\u578B"),U(re,"model_set","\u6A21\u578B\u96C6\u5408"),U(re,"array","\u6570\u7EC4");var ge;ge={},U(ge,"array","array-column"),U(ge,"auto_number","auto-number-column"),U(ge,"decimal","decimal-column"),U(ge,"real-decimal","decimal-column"),U(ge,"department","department-column"),U(ge,"file","file-column"),U(ge,"image","image-column"),U(ge,"location","location-column"),U(ge,"people","employee-column"),U(ge,"text","text-column"),U(ge,"timescope","timescope-column"),U(ge,"timestamp","timestamp-column"),U(ge,"real-timestamp","timestamp-column"),U(ge,"varchar","varchar-column"),U(ge,"relation","varchar-column");var su;(function(e){e.YEAR="year",e.MONTH="month",e.DATE="date",e.DATEHOUR="datehour",e.DATEMIN="datemin",e.DATETIME="datetime"})(su||(su={}));var cu="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",Vl=cu+"0123456789";function on(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,t="",n=0;n<e;n++){var r=n===0?cu:Vl,u=Math.random()*r.length;t+=r[parseInt(String(u),10)]}return t}function Wn(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 Hl(e){if(Array.isArray(e))return Wn(e)}function zl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function an(e,t,n){return hu()?an=Reflect.construct:an=function(u,i,o){var s=[null];s.push.apply(s,i);var c=Function.bind.apply(u,s),f=new c;return o&&Vt(f,o.prototype),f},an.apply(null,arguments)}function Ut(e){return Ut=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ut(e)}function fu(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&&Vt(e,t)}function Wl(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Zl(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Gl(){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,t){return t&&(Xl(t)==="object"||typeof t=="function")?t:zl(e)}function Vt(e,t){return Vt=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Vt(e,t)}function du(e){return Hl(e)||Zl(e)||Kl(e)||Gl()}function Xl(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Kl(e,t){if(!!e){if(typeof e=="string")return Wn(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 Wn(e,t)}}function Zn(e){var t=typeof Map=="function"?new Map:void 0;return Zn=function(r){if(r===null||!Wl(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 an(r,arguments,Ut(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),Vt(u,r)},Zn(e)}function hu(){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 pu(e){var t=hu();return function(){var r=Ut(e),u;if(t){var i=Ut(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Jl(this,u)}}var Gn=console;function rt(){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=Gn).warn.apply(r,["\u{1F9D0} Driven Warning:"+t[0]].concat(du(u)))}function Jn(){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=Gn).log.apply(r,["\u{1F680} Driven Log:"+t[0]].concat(du(u)))}function Ql(e){return e+" \u{1F41B}\u{1F41B}\u{1F41B}"}var Xn=function(e){fu(n,e);var t=pu(n);function n(r){lu(this,n);var u;return u=t.call(this,r),u.name="\u{1F4A5} Driven Error",u.message=r?Ql(r):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",u}return n}(Zn(Error)),Yl=function(e){fu(n,e);var t=pu(n);function n(r){lu(this,n);var u;return u=t.call(this,r),u.name="\u{1F6A8} Driven Reference Error",u}return n}(Xn);function Xe(e){throw new Xn(e)}function Du(e){throw new Yl(e)}function sn(e){Gn.error(new Xn(e))}function Ke(e,t){Array.isArray(e)&&e.map(function(n){switch(n.controlType){case"layout":Ke(n==null?void 0:n.children,t);break;case"wrap":Ke(n==null?void 0:n.children,t);break;case"search":Ke(n==null?void 0:n.children,t);break;case"form":t(n)}})}var ef=Object.prototype.toString;function gu(e,t){return ef.call(e)==="[object "+t+"]"}function tf(e){return gu(e,"String")}function nf(e){return gu(e,"Promise")}var rf=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();nf(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&&!tf(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 uf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vu(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 of(e,t,n){return t&&vu(e.prototype,t),n&&vu(e,n),e}function af(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Me=function(){function e(){uf(this,e)}return of(e,null,[{key:"getMessage",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$i18n.$t(n,"",r)}},{key:"resetI18n",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:iu;return new rf({locale:n,messages:Ul})}},{key:"setLocale",value:function(n){return this.$i18n.setLocale(n)}}]),e}();af(Me,"$i18n",Me.resetI18n());function Kn(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 f=i;if(!!i){if(!Object.prototype.hasOwnProperty.call(i,o)){rt("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(f[o],n)&&(f[o]=n,u=!0),f[o]}},e),u}var ut=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function mu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qn={exports:{}};(function(e){(function(t){var n=function(p,m,y){if(!f(m)||a(m)||d(m)||h(m)||c(m))return m;var C,w=0,S=0;if(l(m))for(C=[],S=m.length;w<S;w++)C.push(n(p,m[w],y));else{C={};for(var I in m)Object.prototype.hasOwnProperty.call(m,I)&&(C[p(I,y)]=n(p,m[I],y))}return C},r=function(p,m){m=m||{};var y=m.separator||"_",C=m.split||/(?=[A-Z])/;return p.split(C).join(y)},u=function(p){return D(p)?p:(p=p.replace(/[\-_\s]+(.)?/g,function(m,y){return y?y.toUpperCase():""}),p.substr(0,1).toLowerCase()+p.substr(1))},i=function(p){var m=u(p);return m.substr(0,1).toUpperCase()+m.substr(1)},o=function(p,m){return r(p,m).toLowerCase()},s=Object.prototype.toString,c=function(p){return typeof p=="function"},f=function(p){return p===Object(p)},l=function(p){return s.call(p)=="[object Array]"},a=function(p){return s.call(p)=="[object Date]"},d=function(p){return s.call(p)=="[object RegExp]"},h=function(p){return s.call(p)=="[object Boolean]"},D=function(p){return p=p-0,p===p},g=function(p,m){var y=m&&"process"in m?m.process:m;return typeof y!="function"?p:function(C,w){return y(C,p,w)}},A={camelize:u,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(p,m){return n(g(u,m),p)},decamelizeKeys:function(p,m){return n(g(o,m),p,m)},pascalizeKeys:function(p,m){return n(g(i,m),p)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=A:t.humps=A})(ut)})(Qn);var yu={};Object.defineProperty(yu,"__esModule",{value:!0});function Yn(e){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map(t=>typeof t!="object"||t===null?t:Yn(t));{const t={};for(const n in e){const r=e[n];t[n]=typeof r!="object"||r===null?r:Yn(r)}return t}}var sf=yu.default=Yn;function te(e){if(e!==void 0)return typeof e=="object"?sf(e):e}function Le(e){return Object.prototype.toString.call(e)==="[object Object]"}function cf(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}function gt(e){return Array.isArray(e)}function we(e){return typeof e=="string"}function cn(e){return typeof e=="number"}function Eu(e){return typeof e=="function"}function lf(e){return gt(e)&&e.every(function(t){return we(t)})}function ff(e){return gt(e)&&e.every(function(t){return cn(t)||t===""})}function Au(e){return/^\[.*?]$/.test(e)}function ln(e){return/^{.*?}$/.test(e)}function df(e){return Object.values(oe).includes(e)}function er(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 hf(e){if(Array.isArray(e))return er(e)}function Cu(e,t,n,r,u,i,o){try{var s=e[i](o),c=s.value}catch(f){n(f);return}s.done?t(c):Promise.resolve(c).then(r,u)}function pf(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(c){Cu(i,r,u,o,s,"next",c)}function s(c){Cu(i,r,u,o,s,"throw",c)}o(void 0)})}}function Df(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fu(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 gf(e,t,n){return t&&Fu(e.prototype,t),n&&Fu(e,n),e}function wu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vf(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mf(){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 tr(e){return hf(e)||vf(e)||yf(e)||mf()}function yf(e,t){if(!!e){if(typeof e=="string")return er(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 er(e,t)}}function Ef(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(f){return function(l){return c([f,l])}}function c(f){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=f[0]&2?r.return:f[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,f[1])).done)return u;switch(r=0,u&&(f=[f[0]&2,u.value]),f[0]){case 0:case 1:u=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,r=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!u||f[1]>u[0]&&f[1]<u[3])){o.label=f[1];break}if(f[0]===6&&o.label<u[1]){o.label=u[1],u=f;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(f);break}u[2]&&o.ops.pop(),o.trys.pop();continue}f=t.call(e,o)}catch(l){f=[6,l],r=0}finally{n=u=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}var bu=function(){function e(){Df(this,e),wu(this,"_events",new Map),wu(this,"debug",!1)}return gf(e,[{key:"emit",value:function(n){for(var r=arguments.length,u=new Array(r>1?r-1:0),i=1;i<r;i++)u[i-1]=arguments[i];var o=this;return pf(function(){var s,c,f,l,a,d,h,D,g,A,p,m;return Ef(this,function(y){switch(y.label){case 0:if(s=o._events.get(n),c=[],!s)return[3,10];f=s.slice(),l=!0,a=!1,d=void 0,y.label=1;case 1:y.trys.push([1,8,9,10]),h=f[Symbol.iterator](),y.label=2;case 2:if(l=(D=h.next()).done)return[3,7];if(g=D.value,!s.includes(g))return[3,6];y.label=3;case 3:return y.trys.push([3,5,,6]),o.debug&&Jn.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(g.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+g.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(u.map(function(){return"%o"}).join(","),"\u3002")].concat(tr(u))),[4,g.apply(null,tr(u))];case 4:return A=y.sent(),o.debug&&Jn.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(g.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+g.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(u.map(function(){return"%o"}).join(","),"; \u51FD\u6570\u7684\u8FD4\u56DE\u7ED3\u679C\u4E3A%o")].concat(tr(u),[A])),c.push(A),A===!1?[3,7]:[3,6];case 5:return p=y.sent(),sn(String(p)+":"+String(p.stack)),[3,6];case 6:return l=!0,[3,2];case 7:return[3,10];case 8:return m=y.sent(),a=!0,d=m,[3,10];case 9:try{!l&&h.return!=null&&h.return()}finally{if(a)throw d}return[7];case 10:return[2,c]}})})()}},{key:"on",value:function(n,r){if(this._events.has(n)){var u;(u=this._events.get(n))===null||u===void 0||u.push(r)}else this._events.set(n,[r])}},{key:"off",value:function(n,r){if(this._events.has(n)){var u=this._events.get(n),i=u==null?void 0:u.indexOf(r);u==null||u.splice(i,1)}}},{key:"delete",value:function(n){this._events.has(n)&&this._events.delete(n)}},{key:"clear",value:function(){this._events=new Map}}]),e}();function Af(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bu(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 Cf(e,t,n){return t&&Bu(e.prototype,t),n&&Bu(e,n),e}function Ff(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wf=[{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_list_before_insert",name:"\u5217\u8868\u6570\u636E\u63D2\u5165\u524D",code:"list-before-insert"},{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_render_operation",name:"\u64CD\u4F5C\u5217\u6E32\u67D3\u65F6",code:"list-render-operation"},{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"},{key:"on_change_tab",name:"\u6807\u7B7E\u9875\u5207\u6362\u65F6",code:"change-tab"},{key:"on_modal_ok",name:"\u5F39\u7A97\u786E\u8BA4\u65F6",code:"modal-ok"}],_u=function(){function e(){Af(this,e)}return Cf(e,null,[{key:"getEventsFromKeys",value:function(n){var r=typeof n=="string"?[n]:n;return e.events.filter(function(u){return r.includes(u.key)})}},{key:"getEventsFromControl",value:function(n){var r=[],u=n.eventKeys;r=r.concat(e.events.filter(function(o){return u.includes(o.key)}));var i=n.customEvents.map(function(o){var s=o.key;return o.namespace!==void 0&&o.namespace!==null&&o.namespace!==""&&(s=o.namespace+":"+o.key),{key:s,code:o.key,name:o.name}});return r=r.concat(i),r}}]),e}();Ff(_u,"events",wf);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 bf(e){if(Array.isArray(e))return nr(e)}function Bf(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _f(){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 Su(e){return bf(e)||Bf(e)||Sf(e)||_f()}function Sf(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)}}function rr(e,t){var n;!((n=Object.getOwnPropertyDescriptors(e)[t])===null||n===void 0)&&n.enumerable&&Object.defineProperty(e,t,{enumerable:!1})}function Mu(e,t,n){n==="Designer"&&(e.parent=t,rr(e,"parent"))}function Mf(e,t,n){e.forEach(function(r){Mu(r,t,n)})}var Iu=Symbol("targetKey");function Nu(e){var t;return(t=e[Iu])!==null&&t!==void 0?t:e}function Ou(e,t,n){return Mf(e,t,n),new Proxy(e,{get:function(u,i){for(var o=arguments.length,s=new Array(o>2?o-2:0),c=2;c<o;c++)s[c-2]=arguments[c];var f;return i===Iu?u:(f=Reflect).get.apply(f,[u,i].concat(Su(s)))},set:function(u,i,o){for(var s=arguments.length,c=new Array(s>3?s-3:0),f=3;f<s;f++)c[f-3]=arguments[f];var l;if(gt(e)&&i==="length"&&o===e.length)return!0;var a=(l=Reflect).set.apply(l,[u,i,o].concat(Su(c)));return Le(o)&&Mu(o,t,n),a}})}function ur(e,t,n,r,u){var i=r!=null?r:e,o=Ou(Nu(n!=null?n:[]),i,u);Object.defineProperty(e,t,{get:function(){return o},set:function(c){o=Ou(Nu(c),i,u)},enumerable:!0})}function If(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xu(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 Nf(e,t,n){return t&&xu(e.prototype,t),n&&xu(e,n),e}function it(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ru=[],Ht=function(){function e(t){If(this,e),it(this,"registeredControlTypes",new Set),it(this,"controlConfigMap",new Map),it(this,"_controls",[]),it(this,"_type",void 0),this._type=t,this._initControls(t)}return Nf(e,[{key:"registerControlConfig",value:function(n,r){return this.controlConfigMap.set(n,r),this}},{key:"getControlConfig",value:function(n){return this.controlConfigMap.get(n)}},{key:"getControls",value:function(){return this._controls}},{key:"register",value:function(n){n.__is_control__||Xe("".concat(n.name," is not a Control"));var r=this._controls.findIndex(function(u){return u.controlType===n.controlType});return r>-1&&(rt("The ".concat(n.controlType," is repeat register, So it overwrites the one that was registered before.")),this._controls.splice(r,1)),this.registeredControlTypes.add(n.controlType),this._controls.push(n),this}},{key:"isLayoutControl",value:function(n){return n.controlType===G.LAYOUT}},{key:"isFormControl",value:function(n){return n.controlType===G.FORM}},{key:"isListControl",value:function(n){return n.controlType===G.LIST}},{key:"isColumnControl",value:function(n){return n.controlType===G.COLUMN}},{key:"createControl",value:function(n,r){var u=this;if(Array.isArray(n))return n.map(function(l){return u.createControl(l,r)});if(n.children&&(n.children=n.children.map(function(l){return u.createControl(l,r)})),this.isListControl(n)){var i=n.props;i.headers&&(i.headers=i.headers.map(function(l){return u.createControl(l,r)})),i.footers&&(i.footers=i.footers.map(function(l){var a;return l&&(a=u.createControl(l,r)),a}))}var o=this.getControlFormType(n.type);if(o){var s=n;if(typeof r=="function"){var c=r(s);c&&(s=c)}var f;return o.mode==="Runtime"?(f=s,f.fieldType=o.controlFieldType,this._setParentPrototypeToSchema(f,this)):f=new o(s),f}else Xe("The constructor of ".concat(n.type," could not be found, please confirm that the constructor has been registered"))}},{key:"resetInstanceParent",value:function(n,r){delete n.parent,Object.defineProperty(n,"parent",{configurable:!0,get:function(){return r}}),rr(n,"parent")}},{key:"_setParentPrototypeToSchema",value:function(n,r){r._type==="Runtime"&&(Object.defineProperty(n,"parent",{configurable:!0,get:function(){var i=n.id,o=r._controlParentIdMap,s=r.instanceMap;if(!(!o||!s)){var c=o[i],f=s[i];if(!(!c&&!f)){var l=f.findIndex(function(h){return h==n}),a=s[c]||[],d;return a.length!==f.length?d=a[0]:d=a[l],d}}}}),rr(n,"parent"))}},{key:"createControlInstance",value:function(n,r){var u=this.getControlFormType(n);if(u)return new u(r)}},{key:"getControlFormType",value:function(n){return this._controls.find(function(r){return r.controlType===n})}},{key:"_initControls",value:function(n){var r=this;this.constructor.staticControls.forEach(function(u){r.register(u[n]),e.staticControlsRuntimeRules.set(u.Runtime.controlType,u.Property.RuntimeRules),u.Property.mode=n})}}],[{key:"staticGetRules",value:function(n,r){var u=e.staticControlsRuntimeRules.get(n),i=[];if(u){var o=new u(r);i=Array.from(o)}return i}},{key:"register",value:function(n,r){var u=n.Designer,i=n.Runtime,o=n.Property;(!u||!i||!u.__is_control__||!i.__is_control__)&&Xe("".concat(n," is can't register as a Control"));var s=this.staticControls.findIndex(function(c){return c.Designer.controlType===u.controlType});return s>-1&&(rt("The ".concat(u.controlType," is repeat register, So it overwrites the one that was registered before.")),this.staticControls.splice(s,1)),this.staticRegisteredTypes.add(u.controlType),this.staticControls.push(n),o.mode=r,this}}]),e}();it(Ht,"staticControlsRuntimeRules",new Map),it(Ht,"staticControls",Ru),it(Ht,"staticRegisteredTypes",new Set(Ru.map(function(e){return e.Designer.controlType}))),it(Ht,"staticRegisteredConfigs",new Map);function vt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ir=function e(t){vt(this,e),ue(this,"dataCode",void 0),ue(this,"fieldCode",void 0),ue(this,"fieldType",void 0),ue(this,"aliasCode",void 0);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:"",this.aliasCode=t==null?void 0:t.aliasCode},Of=function e(t){vt(this,e),ue(this,"minWidth",void 0),ue(this,"maxWidth",void 0),ue(this,"flex",void 0);var n;this.minWidth=(n=t==null?void 0:t.minWidth)!==null&&n!==void 0?n:150,this.maxWidth=t==null?void 0:t.maxWidth;var r;this.flex=(r=t==null?void 0:t.flex)!==null&&r!==void 0?r:1},or=function e(t){vt(this,e),ue(this,"amount",void 0),ue(this,"currency",void 0);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:"CNY"},ar=function e(t){vt(this,e),ue(this,"min",void 0),ue(this,"max",void 0);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:""},sr=function e(t){vt(this,e),ue(this,"city",void 0),ue(this,"cityDisplay",void 0),ue(this,"district",void 0),ue(this,"districtDisplay",void 0),ue(this,"province",void 0),ue(this,"provinceDisplay",void 0);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:""},cr=function e(t){vt(this,e),ue(this,"result",void 0),ue(this,"unit",void 0);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:""},$u;(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"})($u||($u={}));var Pu;(function(e){e.DEFAULT_DISPLAY="defaultDisplay",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.VIEW_FORM_MODEL_TYPE="viewFormModelType",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",e.IS_PASTE="isPaste"})(Pu||(Pu={}));var lr;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.READONLY=1]="READONLY",e[e.EDITABLE=2]="EDITABLE",e[e.PRINT=5]="PRINT"})(lr||(lr={}));var xf=function e(t){vt(this,e),ue(this,"width",void 0),ue(this,"height",void 0),ue(this,"widthConfig",void 0),ue(this,"heightConfig",void 0);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 Rf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fn(e,t,n){return Tu()?fn=Reflect.construct:fn=function(u,i,o){var s=[null];s.push.apply(s,i);var c=Function.bind.apply(u,s),f=new c;return o&&Wt(f,o.prototype),f},fn.apply(null,arguments)}function ot(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zt(e){return zt=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},zt(e)}function $f(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&&Wt(e,t)}function Pf(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Tf(e,t){return t&&(jf(t)==="object"||typeof t=="function")?t:Rf(e)}function Wt(e,t){return Wt=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Wt(e,t)}function jf(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function dr(e){var t=typeof Map=="function"?new Map:void 0;return dr=function(r){if(r===null||!Pf(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 fn(r,arguments,zt(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),Wt(u,r)},dr(e)}function Tu(){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 Lf(e){var t=Tu();return function(){var r=zt(e),u;if(t){var i=zt(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Tf(this,u)}}var hr=function e(t){fr(this,e),ot(this,"isHide",{type:"boolean"})},ju=function(e){$f(n,e);var t=Lf(n);function n(r){return fr(this,n),t.call(this)}return n}(dr(Array)),Qe=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";fr(this,e),ot(this,"isHide",void 0),ot(this,"className",void 0),ot(this,"style",void 0),ot(this,"caption",void 0);var r;this.isHide=(r=t==null?void 0:t.isHide)!==null&&r!==void 0?r:!1,this.style=new xf(t==null?void 0:t.style);var u;this.caption=(u=t==null?void 0:t.caption)!==null&&u!==void 0?u:n};ot(Qe,"mode",void 0),ot(Qe,"Rules",hr),ot(Qe,"RuntimeRules",ju);function ze(){return ze=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},ze.apply(this,arguments)}function kf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function pr(e){return pr=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},pr(e)}function dn(e,t){return dn=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},dn(e,t)}function qf(){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 hn(e,t,n){return qf()?hn=Reflect.construct:hn=function(u,i,o){var s=[null];s.push.apply(s,i);var c=Function.bind.apply(u,s),f=new c;return o&&dn(f,o.prototype),f},hn.apply(null,arguments)}function Uf(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Dr(e){var t=typeof Map=="function"?new Map:void 0;return Dr=function(r){if(r===null||!Uf(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 hn(r,arguments,pr(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),dn(u,r)},Dr(e)}var Vf=/%[sdj%]/g,Lu=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(Lu=function(t,n){typeof console!="undefined"&&console.warn&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function gr(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 Ie(){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(Vf,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 Hf(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function de(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Hf(t)&&typeof e=="string"&&!e)}function zf(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 ku(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 Wf(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n])}),t}var qu=function(e){kf(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}(Dr(Error));function Zf(e,t,n,r){if(t.first){var u=new Promise(function(a,d){var h=function(A){return r(A),A.length?d(new qu(A,gr(A))):a()},D=Wf(e);ku(D,n,h)});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,f=[],l=new Promise(function(a,d){var h=function(g){if(f.push.apply(f,g),c++,c===s)return r(f),f.length?d(new qu(f,gr(f))):a()};o.length||(r(f),a()),o.forEach(function(D){var g=e[D];i.indexOf(D)!==-1?ku(g,n,h):zf(g,n,h)})});return l.catch(function(a){return a}),l}function Uu(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 Vu(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]=ze(ze({},e[n]),r):e[n]=r}}return e}function Hu(e,t,n,r,u,i){e.required&&(!n.hasOwnProperty(e.field)||de(t,i||e.type))&&r.push(Ie(u.messages.required,e.fullField))}function Gf(e,t,n,r,u){(/^\s+$/.test(t)||t==="")&&r.push(Ie(u.messages.whitespace,e.fullField))}var vr={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},Zt={integer:function(t){return Zt.number(t)&&parseInt(t,10)===t},float:function(t){return Zt.number(t)&&!Zt.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"&&!Zt.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&!!t.match(vr.email)&&t.length<255},url:function(t){return typeof t=="string"&&!!t.match(vr.url)},hex:function(t){return typeof t=="string"&&!!t.match(vr.hex)}};function Jf(e,t,n,r,u){if(e.required&&t===void 0){Hu(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?Zt[o](t)||r.push(Ie(u.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(Ie(u.messages.types[o],e.fullField,e.type))}function Xf(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,f=t,l=null,a=typeof t=="number",d=typeof t=="string",h=Array.isArray(t);if(a?l="number":d?l="string":h&&(l="array"),!l)return!1;h&&(f=t.length),d&&(f=t.replace(c,"_").length),i?f!==e.len&&r.push(Ie(u.messages[l].len,e.fullField,e.len)):o&&!s&&f<e.min?r.push(Ie(u.messages[l].min,e.fullField,e.min)):s&&!o&&f>e.max?r.push(Ie(u.messages[l].max,e.fullField,e.max)):o&&s&&(f<e.min||f>e.max)&&r.push(Ie(u.messages[l].range,e.fullField,e.min,e.max))}var bt="enum";function Kf(e,t,n,r,u){e[bt]=Array.isArray(e[bt])?e[bt]:[],e[bt].indexOf(t)===-1&&r.push(Ie(u.messages[bt],e.fullField,e[bt].join(", ")))}function Qf(e,t,n,r,u){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Ie(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(Ie(u.messages.pattern.mismatch,e.fullField,t,e.pattern))}}}var V={required:Hu,whitespace:Gf,type:Jf,range:Xf,enum:Kf,pattern:Qf};function Yf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(t,"string")&&!e.required)return n();V.required(e,t,r,i,u,"string"),de(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 e0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(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 t0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(t===""&&(t=void 0),de(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 n0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(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 r0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(t)&&!e.required)return n();V.required(e,t,r,i,u),de(t)||V.type(e,t,r,i,u)}n(i)}function u0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(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 i0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(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 o0(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 a0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(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 s0="enum";function c0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&V[s0](e,t,r,i,u)}n(i)}function l0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(t,"string")&&!e.required)return n();V.required(e,t,r,i,u),de(t,"string")||V.pattern(e,t,r,i,u)}n(i)}function f0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(t,"date")&&!e.required)return n();if(V.required(e,t,r,i,u),!de(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 d0(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 mr(e,t,n,r,u){var i=e.type,o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(de(t,i)&&!e.required)return n();V.required(e,t,r,o,u,i),de(t,i)||V.type(e,t,r,o,u)}n(o)}function h0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(t)&&!e.required)return n();V.required(e,t,r,i,u)}n(i)}var Gt={string:Yf,method:e0,number:t0,boolean:n0,regexp:r0,integer:u0,float:i0,array:o0,object:a0,enum:c0,pattern:l0,date:f0,url:mr,hex:mr,email:mr,required:d0,any:h0};function yr(){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 Er=yr();function at(e){this.rules=null,this._messages=Er,this.define(e)}at.prototype={messages:function(t){return t&&(this._messages=Vu(yr(),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 A,p=[],m={};function y(C){if(Array.isArray(C)){var w;p=(w=p).concat.apply(w,C)}else p.push(C)}for(A=0;A<g.length;A++)y(g[A]);p.length?m=gr(p):(p=null,m=null),s(p,m)}if(o.messages){var f=this.messages();f===Er&&(f=yr()),Vu(f,o.messages),o.messages=f}else o.messages=this.messages();var l,a,d={},h=o.keys||Object.keys(this.rules);h.forEach(function(g){l=u.rules[g],a=i[g],l.forEach(function(A){var p=A;typeof p.transform=="function"&&(i===t&&(i=ze({},i)),a=i[g]=p.transform(a)),typeof p=="function"?p={validator:p}:p=ze({},p),p.validator=u.getValidationMethod(p),p.field=g,p.fullField=p.fullField||g,p.type=u.getType(p),p.validator&&(d[g]=d[g]||[],d[g].push({rule:p,value:a,source:i,field:g}))})});var D={};return Zf(d,o,function(g,A){var p=g.rule,m=(p.type==="object"||p.type==="array")&&(typeof p.fields=="object"||typeof p.defaultField=="object");m=m&&(p.required||!p.required&&g.value),p.field=g.field;function y(S,I){return ze(ze({},I),{},{fullField:p.fullField+"."+S})}function C(S){S===void 0&&(S=[]);var I=S;if(Array.isArray(I)||(I=[I]),!o.suppressWarning&&I.length&&at.warning("async-validator:",I),I.length&&p.message!==void 0&&(I=[].concat(p.message)),I=I.map(Uu(p)),o.first&&I.length)return D[p.field]=1,A(I);if(!m)A(I);else{if(p.required&&!g.value)return p.message!==void 0?I=[].concat(p.message).map(Uu(p)):o.error&&(I=[o.error(p,Ie(o.messages.required,p.field))]),A(I);var j={};if(p.defaultField)for(var H in g.value)g.value.hasOwnProperty(H)&&(j[H]=p.defaultField);j=ze(ze({},j),g.rule.fields);for(var z in j)if(j.hasOwnProperty(z)){var x=Array.isArray(j[z])?j[z]:[j[z]];j[z]=x.map(y.bind(null,z))}var P=new at(j);P.messages(o.messages),g.rule.options&&(g.rule.options.messages=o.messages,g.rule.options.error=o.error),P.validate(g.value,g.rule.options||o,function(X){var Z=[];I&&I.length&&Z.push.apply(Z,I),X&&X.length&&Z.push.apply(Z,X),A(Z.length?Z:null)})}}var w;p.asyncValidator?w=p.asyncValidator(p,g.value,C,g.source,o):p.validator&&(w=p.validator(p,g.value,C,g.source,o),w===!0?C():w===!1?C(p.message||p.field+" fails"):w instanceof Array?C(w):w instanceof Error&&C(w.message)),w&&w.then&&w.then(function(){return C()},function(S){return C(S)})},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&&!Gt.hasOwnProperty(t.type))throw new Error(Ie("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"?Gt.required:Gt[this.getType(t)]||!1}},at.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Gt[t]=n},at.warning=Lu,at.messages=Er,at.validators=Gt;var p0={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 D0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new at(e);return n.messages(Object.assign(p0,t)),n}var g0=new bu;function Ar(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 v0(e){if(Array.isArray(e))return e}function m0(e){if(Array.isArray(e))return Ar(e)}function zu(e,t,n,r,u,i,o){try{var s=e[i](o),c=s.value}catch(f){n(f);return}s.done?t(c):Promise.resolve(c).then(r,u)}function Wu(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(c){zu(i,r,u,o,s,"next",c)}function s(c){zu(i,r,u,o,s,"throw",c)}o(void 0)})}}function y0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zu(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 E0(e,t,n){return t&&Zu(e.prototype,t),n&&Zu(e,n),e}function J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gu(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Ju(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function A0(){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 C0(){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 Xu(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){J(e,u,n[u])})}return e}function F0(e){return v0(e)||Ju(e)||Ku(e)||A0()}function Cr(e){return m0(e)||Ju(e)||Ku(e)||C0()}function Ku(e,t){if(!!e){if(typeof e=="string")return Ar(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 Ar(e,t)}}function Qu(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(f){return function(l){return c([f,l])}}function c(f){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=f[0]&2?r.return:f[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,f[1])).done)return u;switch(r=0,u&&(f=[f[0]&2,u.value]),f[0]){case 0:case 1:u=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,r=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!u||f[1]>u[0]&&f[1]<u[3])){o.label=f[1];break}if(f[0]===6&&o.label<u[1]){o.label=u[1],u=f;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(f);break}u[2]&&o.ops.pop(),o.trys.pop();continue}f=t.call(e,o)}catch(l){f=[6,l],r=0}finally{n=u=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}var ye=function(){function t(n){var r=this;y0(this,t),J(this,"id",void 0),J(this,"name",void 0),J(this,"icon",void 0),J(this,"type",void 0),J(this,"controlType",void 0),J(this,"props",void 0),J(this,"setting",[]),J(this,"fieldType",void 0),J(this,"eventKeys",[]),J(this,"customEvents",[]),J(this,"parent",null),J(this,"slots",void 0),J(this,"slotPosition",void 0),J(this,"updateSetting",ei),J(this,"removeSetting",Yu),this._callControlHooks("preInstance",n);var u=Gu(this,t)?this.constructor:void 0,i=u.controlName,o=u.controlIcon,s=u.controlType,c=u.controlFieldType,f=u.controlEventKeys,l=u.controlCustomEvents,a=u.name,d=u.setting,h=u.slots,D=u.slotPosition;i&&o&&s||Du("The ".concat(a," controlName,controlIcon,controlType is not define"));var g;this.id=(g=n==null?void 0:n.id)!==null&&g!==void 0?g:on(10),this.name=i,this.icon=o;var A;this.type=(A=n==null?void 0:n.type)!==null&&A!==void 0?A:s,this.props=new Qe(n==null?void 0:n.props,(Gu(this,t)?this.constructor:void 0).controlName);var p;this.controlType=(p=n==null?void 0:n.controlType)!==null&&p!==void 0?p:"base",this.setting=te(d);var m;this.fieldType=(m=n==null?void 0:n.fieldType)!==null&&m!==void 0?m:c,this.eventKeys=te(f),this.customEvents=te(l),this.slots=te(h),this.slotPosition=te(D),Promise.resolve().then(function(){r._callControlHooks("postInstance",n)})}return E0(t,[{key:"rules",get:function(){var r=this.props.constructor.Rules;return r?new r(this.props):{}}},{key:"_callControlHooks",value:function(){for(var r=arguments.length,u=new Array(r),i=0;i<r;i++)u[i]=arguments[i];var o,s=F0(u),c=s[0],f=s.slice(1);return(o=g0).emit.apply(o,[c,this].concat(Cr(f)))}},{key:"preUpdate",value:function(r,u){this._callControlHooks("preUpdateProps",r,u)}},{key:"postUpdate",value:function(r,u){this._callControlHooks("postUpdateProps",r,u)}},{key:"updateProps",value:function(r,u){this.preUpdate(r,u),Kn(this.props,r,u),this.postUpdate(r,u)}},{key:"preValidate",value:function(){var r=this;return Wu(function(){var u,i,o;return Qu(this,function(s){switch(s.label){case 0:return u=Xu({},r.rules),[4,r._callControlHooks("preValidate",u)];case 1:return i=s.sent(),o=i[i.length-1],[2,o===!1?void 0:o]}})})()}},{key:"validate",value:function(r,u){var i=this;return Wu(function(){var o,s,c,f;return Qu(this,function(l){switch(l.label){case 0:return[4,i.preValidate()];case 1:o=l.sent(),s=o!==void 0?o:Xu({},i.rules),Array.isArray(u)&&u.forEach(function(a){s.hasOwnProperty(a)&&delete s[a]}),c=D0(s,r),l.label=2;case 2:return l.trys.push([2,4,,5]),[4,c.validate(i.props)];case 3:return l.sent(),[2,!0];case 4:throw f=l.sent(),f.control||(f.control=i),f;case 5:return[2]}})})()}},{key:"toDataBindModel",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,u=this.fieldType,i=this.id,o=this.type,s=this.props,c=s.dataBind,f=s.datasourceBind,l=s.optionConfig,a=s.caption,d=s.required,h=s.maxLength,D=s.options,g=s.encrypted,A=s.encryptedMode;if(!(!u&&!c&&!f)){var p={parentId:r,fieldType:u,controlId:i,caption:a,type:o,props:{}};switch(c&&(p.dataBind=c),l){case"datasource":case void 0:f&&(p.datasourceBind=f);break;case"custom":p.props.options=D;break}return d!==void 0&&(p.required=d),h!==void 0&&(p.maxLength=h),g!==void 0&&(p.encrypted=g),A!==void 0&&(p.encryptedMode=A),p}}},{key:"preToSchema",value:function(){this._callControlHooks("preToSchema",this)}},{key:"toSchema",value:function(){return this.preToSchema(),{id:this.id,type:this.type,props:te(this.props),fieldType:this.fieldType,controlType:this.controlType}}}],[{key:"updateBasicControl",value:function(r,u){if(r==="setting"){if(u.add){var i;(i=this.setting).push.apply(i,Cr(u.add))}u.remove&&this.removeSettingItem(u.remove),u.update}}}]),t}();J(ye,"mode","Designer"),J(ye,"slots",void 0),J(ye,"slotPosition",void 0),J(ye,"controlName","\u63A7\u4EF6"),J(ye,"controlIcon","icon"),J(ye,"controlType","control"),J(ye,"controlFieldType",void 0),J(ye,"controlEventKeys",[]),J(ye,"controlCustomEvents",[]),J(ye,"setting",[]),J(ye,"__is_control__",!0),J(ye,"removeSettingItem",Yu),J(ye,"updateSettingItem",ei);function Yu(e){var t=this,n=Array.isArray(e)?e:[e];n.forEach(function(r){var u,i=typeof r!="string",o=(u=t.setting)===null||u===void 0?void 0:u.findIndex(function(f){return f.key===(i?r.key:r)});if(o!==-1){var s,c;i?t.setting[o].showItems=(s=t.setting[o].showItems)===null||s===void 0?void 0:s.filter(function(f){return!r.hideItems.includes(f)}):t.setting.splice(o,1),i&&!(!((c=t.setting[o].showItems)===null||c===void 0)&&c.length)&&t.setting.splice(o,1)}})}function ei(e,t){var n=this,r=typeof e=="string"?[e]:e;r.forEach(function(u){var i=n.setting.find(function(f){return f.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,Cr(t.showItems))}}}})}function w0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ti(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 b0(e,t,n){return t&&ti(e.prototype,t),n&&ti(e,n),e}function Ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B0(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var Jt=function(){function t(n){w0(this,t),Ne(this,"id",void 0),Ne(this,"type",void 0),Ne(this,"controlType",void 0),Ne(this,"props",void 0),Ne(this,"fieldType",void 0),Ne(this,"customEvents",[]),Ne(this,"pageStatus",void 0),Ne(this,"parent",null);var r=B0(this,t)?this.constructor:void 0,u=r.controlType,i=r.controlFieldType,o=r.name,s=r.controlCustomEvents;u||Du("The ".concat(o," controlType is not define"));var c;this.id=(c=n==null?void 0:n.id)!==null&&c!==void 0?c:on(10);var f;this.type=(f=n==null?void 0:n.type)!==null&&f!==void 0?f:u,this.props=new Qe(n==null?void 0:n.props),this.customEvents=s;var l;this.controlType=(l=n==null?void 0:n.controlType)!==null&&l!==void 0?l:"base";var a;this.fieldType=(a=n==null?void 0:n.fieldType)!==null&&a!==void 0?a:i;var d;this.pageStatus=(d=n==null?void 0:n.pageStatus)!==null&&d!==void 0?d:lr.UNKNOWN}return b0(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}();Ne(Jt,"mode","Runtime"),Ne(Jt,"controlType","control"),Ne(Jt,"controlFieldType",void 0),Ne(Jt,"__is_control__",!0),Ne(Jt,"controlCustomEvents",[]);function Oe(e){return(e==null?void 0:e.dataCode)!==void 0&&(e==null?void 0:e.fieldCode)!==void 0}function he(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pn(e){return pn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},pn(e)}function wr(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&&br(e,t)}function _0(e,t){return t&&(S0(t)==="object"||typeof t=="function")?t:he(e)}function br(e,t){return br=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},br(e,t)}function S0(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function M0(){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 Br(e){var t=M0();return function(){var r=pn(e),u;if(t){var i=pn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return _0(this,u)}}var I0=function(e){wr(n,e);var t=Br(n);function n(r){Fr(this,n);var u;u=t.call(this,r),ce(he(u),"dataBind",{}),ce(he(u),"caption",{type:"string",required:!0,message:Me.getMessage("pleaseEnterCaption")}),ce(he(u),"isHideCaption",{type:"boolean"}),ce(he(u),"labelPosition",{type:"enum",enum:["top","left"]}),ce(he(u),"defaultState",{type:"enum",enum:["default","readonly"]}),ce(he(u),"required",{type:"boolean"}),ce(he(u),"captionTip",{type:"string",required:!1,message:Me.getMessage("pleaseEnterCaptionTip")});var i={fieldCode:{type:"string",required:!0,message:Me.getMessage("pleaseEnterFieldCode")},dataCode:{type:"string",required:!0,message:Me.getMessage("pleaseEnterFieldCode")}};if(Oe(r.dataBind))u.dataBind={type:"object",required:!0,fields:te(i),message:Me.getMessage("pleaseEnterFieldCode")};else{var o={type:"object",required:!0,fields:{},message:Me.getMessage("pleaseEnterFieldCode")};Object.keys(r.dataBind).forEach(function(s){o.fields[s]={type:"object",required:!0,fields:te(i),message:Me.getMessage("pleaseEnterFieldCode")}}),u.dataBind=o}return r.isShowCaptionTip&&(u.captionTip.required=!0),u}return n}(hr),N0=function(e){wr(n,e);var t=Br(n);function n(r){Fr(this,n);var u;u=t.call(this,r);var i=r.isHide?!1:r.required;return i&&u.push({type:"string",required:i,message:r.requiredMessage!==""?r.requiredMessage:Me.getMessage("runtimeRequired",{caption:r.caption})}),u}return n}(ju),_r=function(e){wr(n,e);var t=Br(n);function n(r){Fr(this,n);var u;u=t.call(this,r),ce(he(u),"caption",void 0),ce(he(u),"isHideCaption",void 0),ce(he(u),"isShowCaptionTip",void 0),ce(he(u),"captionTip",void 0),ce(he(u),"labelPosition",void 0),ce(he(u),"dataBind",void 0),ce(he(u),"defaultValue",void 0),ce(he(u),"placeholder",void 0),ce(he(u),"defaultState",void 0),ce(he(u),"required",void 0),ce(he(u),"requiredMessage",void 0);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 f;u.defaultState=(f=r==null?void 0:r.defaultState)!==null&&f!==void 0?f:"default";var l;u.labelPosition=(l=r==null?void 0:r.labelPosition)!==null&&l!==void 0?l:"top";var a;u.placeholder=(a=r==null?void 0:r.placeholder)!==null&&a!==void 0?a:"";var d;u.required=(d=r==null?void 0:r.required)!==null&&d!==void 0?d:!1;var h;u.requiredMessage=(h=r==null?void 0:r.requiredMessage)!==null&&h!==void 0?h:"",u.dataBind=new ir(r==null?void 0:r.dataBind);var D;return u.defaultValue=(D=r==null?void 0:r.defaultValue)!==null&&D!==void 0?D:"",u}return n}(Qe);ce(_r,"Rules",I0),ce(_r,"RuntimeRules",N0);function Sr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gn(e){return gn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},gn(e)}function x0(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&&Mr(e,t)}function R0(e,t){return t&&($0(t)==="object"||typeof t=="function")?t:Sr(e)}function Mr(e,t){return Mr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Mr(e,t)}function $0(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function P0(){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 T0(e){var t=P0();return function(){var r=gn(e),u;if(t){var i=gn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return R0(this,u)}}var ni=function(e){x0(n,e);var t=T0(n);function n(r){O0(this,n);var u;return u=t.call(this,r),Dn(Sr(u),"controlType","form"),Dn(Sr(u),"props",void 0),u.props=new _r(r==null?void 0:r.props),u}return n}(ye);Dn(ni,"controlEventKeys",["on_change","on_focus","on_blur"]),Dn(ni,"controlCustomAttributes",void 0);function j0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vn(e){return vn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},vn(e)}function k0(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&&Ir(e,t)}function q0(e,t){return t&&(U0(t)==="object"||typeof t=="function")?t:j0(e)}function Ir(e,t){return Ir=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Ir(e,t)}function U0(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function V0(){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 H0(e){var t=V0();return function(){var r=vn(e),u;if(t){var i=vn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return q0(this,u)}}var z0=function(e){k0(n,e);var t=H0(n);function n(r){return L0(this,n),t.call(this,r)}return n}(Qe);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 W0(e){if(Array.isArray(e))return Nr(e)}function mt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ri(e,t,n,r,u,i,o){try{var s=e[i](o),c=s.value}catch(f){n(f);return}s.done?t(c):Promise.resolve(c).then(r,u)}function Z0(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(c){ri(i,r,u,o,s,"next",c)}function s(c){ri(i,r,u,o,s,"throw",c)}o(void 0)})}}function G0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ui(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 J0(e,t,n){return t&&ui(e.prototype,t),n&&ui(e,n),e}function st(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bt(e,t,n){return typeof Reflect!="undefined"&&Reflect.get?Bt=Reflect.get:Bt=function(u,i,o){var s=ud(u,i);if(!!s){var c=Object.getOwnPropertyDescriptor(s,i);return c.get?c.get.call(o||u):c.value}},Bt(e,t,n||e)}function ct(e){return ct=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ct(e)}function X0(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 K0(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Q0(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Y0(){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 ed(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){st(e,u,n[u])})}return e}function td(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 nd(e,t){return t=t!=null?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):td(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function rd(e,t){return t&&(id(t)==="object"||typeof t=="function")?t:mt(e)}function Or(e,t){return Or=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Or(e,t)}function ud(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=ct(e),e!==null););return e}function ii(e){return W0(e)||Q0(e)||od(e)||Y0()}function id(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function od(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)}}function ad(){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 sd(e){var t=ad();return function(){var r=ct(e),u;if(t){var i=ct(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return rd(this,u)}}function cd(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(f){return function(l){return c([f,l])}}function c(f){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=f[0]&2?r.return:f[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,f[1])).done)return u;switch(r=0,u&&(f=[f[0]&2,u.value]),f[0]){case 0:case 1:u=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,r=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!u||f[1]>u[0]&&f[1]<u[3])){o.label=f[1];break}if(f[0]===6&&o.label<u[1]){o.label=u[1],u=f;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(f);break}u[2]&&o.ops.pop(),o.trys.pop();continue}f=t.call(e,o)}catch(l){f=[6,l],r=0}finally{n=u=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}var ld=1e4,oi=function(t){X0(r,t);var n=sd(r);function r(u){G0(this,r);var i;i=n.call(this,u),st(mt(i),"controlType","layout"),st(mt(i),"children",void 0),st(mt(i),"excludes",void 0),st(mt(i),"childrenMaxLength",void 0),st(mt(i),"props",void 0);var o=K0(this,r)?this.constructor:void 0,s=o.excludes,c=o.childrenMaxLength;return i.props=new z0(u==null?void 0:u.props),ur(mt(i),"children",u==null?void 0:u.children,void 0,"Designer"),i.excludes=te(s),i.childrenMaxLength=c,i}return J0(r,[{key:"judgeExcludesChildren",value:function(i){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(i)}},{key:"judgeJoinChildren",value:function(i){var o=this.judgeExcludesChildren(i);return o&&this.childrenMaxLength>this.children.length}},{key:"validate",value:function(i,o){var s=this,c=this,f=function(){return Bt(ct(r.prototype),"validate",s)};return Z0(function(){return cd(this,function(l){switch(l.label){case 0:return[4,f().call(c,i,o)];case 1:return l.sent(),[4,Promise.all(c.children.map(function(a){return a.validate(i,o)}))];case 2:return l.sent(),[2,!0]}})})()}},{key:"toDataBindModel",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,o=Bt(ct(r.prototype),"toDataBindModel",this).call(this),s=o?[o]:[];return this.children.reduce(function(c,f){var l=f.toDataBindModel(i);if(Array.isArray(l)){var a=l.filter(function(d){return!!d});return ii(c).concat(ii(a))}return l&&c.push(l),c},s)}},{key:"toSchema",value:function(){var i=Bt(ct(r.prototype),"toSchema",this).call(this),o=this.children.map(function(s){var c=s.toSchema();return c});return nd(ed({},i),{children:o})}}]),r}(ye);st(oi,"excludes",!1),st(oi,"childrenMaxLength",ld);function Ye(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mn(e){return mn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},mn(e)}function dd(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&&xr(e,t)}function hd(e,t){return t&&(pd(t)==="object"||typeof t=="function")?t:Ye(e)}function xr(e,t){return xr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},xr(e,t)}function pd(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Dd(){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 gd(e){var t=Dd();return function(){var r=mn(e),u;if(t){var i=mn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return hd(this,u)}}var vd=function(e){dd(n,e);var t=gd(n);function n(r,u,i){fd(this,n);var o;o=t.call(this,u),_t(Ye(o),"headers",void 0),_t(Ye(o),"footers",void 0),_t(Ye(o),"pageIndex",void 0),_t(Ye(o),"pageSize",void 0),_t(Ye(o),"pageSizeOptions",void 0),_t(Ye(o),"totalCount",void 0),ur(Ye(o),"headers",u==null?void 0:u.headers,r,i),ur(Ye(o),"footers",u==null?void 0:u.footers,r);var s;o.pageIndex=(s=u==null?void 0:u.pageIndex)!==null&&s!==void 0?s:1;var c;o.pageSize=(c=u==null?void 0:u.pageSize)!==null&&c!==void 0?c:20;var f;o.pageSizeOptions=(f=u==null?void 0:u.pageSizeOptions)!==null&&f!==void 0?f:[20];var l;return o.totalCount=(l=u==null?void 0:u.totalCount)!==null&&l!==void 0?l:0,o}return n}(Qe);function Rr(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 md(e){if(Array.isArray(e))return Rr(e)}function yn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ai(e,t,n,r,u,i,o){try{var s=e[i](o),c=s.value}catch(f){n(f);return}s.done?t(c):Promise.resolve(c).then(r,u)}function yd(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(c){ai(i,r,u,o,s,"next",c)}function s(c){ai(i,r,u,o,s,"throw",c)}o(void 0)})}}function Ed(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function si(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 Ad(e,t,n){return t&&si(e.prototype,t),n&&si(e,n),e}function En(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function St(e,t,n){return typeof Reflect!="undefined"&&Reflect.get?St=Reflect.get:St=function(u,i,o){var s=_d(u,i);if(!!s){var c=Object.getOwnPropertyDescriptor(s,i);return c.get?c.get.call(o||u):c.value}},St(e,t,n||e)}function lt(e){return lt=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},lt(e)}function Cd(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&&$r(e,t)}function Fd(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wd(){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 ci(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){En(e,u,n[u])})}return e}function bd(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 li(e,t){return t=t!=null?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):bd(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function Bd(e,t){return t&&(Sd(t)==="object"||typeof t=="function")?t:yn(e)}function $r(e,t){return $r=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},$r(e,t)}function _d(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=lt(e),e!==null););return e}function fi(e){return md(e)||Fd(e)||Md(e)||wd()}function Sd(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Md(e,t){if(!!e){if(typeof e=="string")return Rr(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 Rr(e,t)}}function Id(){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 Nd(e){var t=Id();return function(){var r=lt(e),u;if(t){var i=lt(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Bd(this,u)}}function Od(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(f){return function(l){return c([f,l])}}function c(f){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=f[0]&2?r.return:f[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,f[1])).done)return u;switch(r=0,u&&(f=[f[0]&2,u.value]),f[0]){case 0:case 1:u=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,r=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!u||f[1]>u[0]&&f[1]<u[3])){o.label=f[1];break}if(f[0]===6&&o.label<u[1]){o.label=u[1],u=f;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(f);break}u[2]&&o.ops.pop(),o.trys.pop();continue}f=t.call(e,o)}catch(l){f=[6,l],r=0}finally{n=u=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}var xd=function(e){Cd(n,e);var t=Nd(n);function n(r){Ed(this,n);var u;return u=t.call(this,r),En(yn(u),"controlType","list"),En(yn(u),"props",void 0),u.props=new vd(yn(u),r==null?void 0:r.props,"Designer"),u}return Ad(n,[{key:"validate",value:function(u,i){var o=this,s=this,c=function(){return St(lt(n.prototype),"validate",o)};return yd(function(){return Od(this,function(f){switch(f.label){case 0:return[4,c().call(s,u)];case 1:return f.sent(),[4,Promise.all(s.props.headers.map(function(l){return l.validate(u,i)}))];case 2:return f.sent(),[2,!0]}})})()}},{key:"toDataBindModel",value:function(){var u=St(lt(n.prototype),"toDataBindModel",this).call(this),i=u?[u]:[],o=this.id;return this.props.headers.reduce(function(s,c){var f=c.toDataBindModel(o);if(Array.isArray(f)){var l=f.filter(function(a){return!!a});return fi(s).concat(fi(l))}return f&&s.push(f),s},i)}},{key:"toSchema",value:function(){var u,i,o=St(lt(n.prototype),"toSchema",this).call(this),s=this.props.headers.map(function(f){return f.toSchema()}),c=(i=this.props)===null||i===void 0||(u=i.footers)===null||u===void 0?void 0:u.map(function(f){if(f)return f.toSchema()});return li(ci({},o),{props:li(ci({},this.props),{headers:s,footers:c})})}}]),n}(ye);En(xd,"controlFieldType",ae.LIST);function xe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function di(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function An(e){return An=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},An(e)}function hi(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 Rd(e,t){return t&&($d(t)==="object"||typeof t=="function")?t:xe(e)}function Pr(e,t){return Pr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Pr(e,t)}function $d(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Pd(){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 pi(e){var t=Pd();return function(){var r=An(e),u;if(t){var i=An(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Rd(this,u)}}var Td=function(e){hi(n,e);var t=pi(n);function n(r){di(this,n);var u;return u=t.call(this,r),Re(xe(u),"caption",{type:"string",required:!0,message:Me.getMessage("pleaseEnterCaption")}),Re(xe(u),"width",{type:"number",required:!1,message:Me.getMessage("pleaseEnterColumnWidth")}),u.width.required=r.widthType==="px",u}return n}(hr),jd=function(e){hi(n,e);var t=pi(n);function n(r){di(this,n);var u;u=t.call(this,r),Re(xe(u),"widthType",void 0),Re(xe(u),"width",void 0),Re(xe(u),"caption",void 0),Re(xe(u),"dataBind",void 0),Re(xe(u),"autoWidth",void 0),Re(xe(u),"fixed",void 0),Re(xe(u),"sort",void 0),Re(xe(u),"align",void 0),Re(xe(u),"colSpan",void 0),Re(xe(u),"autoHeight",void 0);var i;u.width=(i=r==null?void 0:r.width)!==null&&i!==void 0?i:150,u.widthType=(r==null?void 0:r.widthType)||"auto";var o;u.caption=(o=r==null?void 0:r.caption)!==null&&o!==void 0?o:"";var s;u.fixed=(s=r==null?void 0:r.fixed)!==null&&s!==void 0?s:"none",u.autoWidth=new Of(r==null?void 0:r.autoWidth),u.dataBind=new ir(r==null?void 0:r.dataBind);var c;u.sort=(c=r==null?void 0:r.sort)!==null&&c!==void 0?c:!0,u.align=r==null?void 0:r.align,u.colSpan=r==null?void 0:r.colSpan;var f;return u.autoHeight=(f=r==null?void 0:r.autoHeight)!==null&&f!==void 0?f:!1,u}return n}(Qe);Re(jd,"Rules",Td);function Cn(e){return e.controlType===G.LAYOUT||e.controlType===G.WRAP||e.controlType===G.LIST||e.controlType===G.SEARCH}function yt(e,t){Array.isArray(e)&&e.map(n=>{n.type===oe.SUBTABLE?t(n,[]):Cn(n)?yt(n==null?void 0:n.children,t):n.controlType===G.FORM&&t(n)})}function Et(e,t){Array.isArray(e)&&e.map(n=>{n.type===oe.DATA_VIEW||n.type===oe.SIMPLE_SEARCH?t(n):Cn(n)&&Et(n==null?void 0:n.children,t)})}let Di=0;function Xt(e=""){const t=Date.now(),n=Math.floor(Math.random()*1e9);return Di++,e+"_"+n+Di+String(t)}class Ce extends Ht{constructor(t){super("Runtime"),this._flatInstances=[],this._instanceMap={},this._controlParentIdMap={};const{schema:n}=t;this._schema=n,this._instance=this.createControl(n,t.beforeCreateInstance),this.getFlatInstances()}getFlatInstances(){const t=[],n={},r={};return Fn(this._instance,"",(u,i)=>{i&&(r[u.id]=i),n[u.id]||(n[u.id]=[]),!(u.type==="subtable-column"&&n[u.id].length>0)&&(t.push(u),n[u.id].push(u))}),this._flatInstances=t,this._instanceMap=n,this._controlParentIdMap=r,this._flatInstances}get schema(){return this._schema}get instance(){return this._instance}get flatInstances(){return this._flatInstances}get instanceMap(){return this._instanceMap}get allRules(){let t={},n={},r={};return Et(this._instance,u=>{let i=Ce.staticGetRules(u.type,u.props);n[u.id]=te(i[0]),t[u.id]=te(i[0]),r[u.id]=te(i[0]),yt(u.children,o=>{(o.controlType===G.FORM||o.controlType===G.LIST)&&(vi(n[u.id].fields,o,!0),Ei(t[u.id].fields,o,!0),mi(r[u.id].fields,o,!0))})}),{rules:this.rules,antdRules:this.antdRules,fieldCodeRules:this.fieldCodeRules,defaultAntdRules:t,defaultRule:n,defaultFieldRules:r}}get rules(){let t={};return Et(this._instance,n=>{let r=Ce.staticGetRules(n.type,n.props);t[n.id]=r[0],yt(n.children,u=>{(u.controlType===G.FORM||u.controlType===G.LIST)&&vi(t[n.id].fields,u)})}),t}get fieldCodeRules(){let t={};return Et(this._instance,n=>{let r=Ce.staticGetRules(n.type,n.props);t[n.id]=r[0],yt(n.children,u=>{(u.controlType===G.FORM||u.controlType===G.LIST)&&mi(t[n.id].fields,u)})}),t}get antdRules(){let t={};return Et(this._instance,n=>{let r=Ce.staticGetRules(n.type,n.props);t[n.id]=r[0],yt(n.children,u=>{(u.controlType===G.FORM||u.controlType===G.LIST)&&Ei(t[n.id].fields,u)})}),t}}function Fn(e,t,n){(Array.isArray(e)?e:[e]).map(u=>{if(n(u,t),Cn(u)){const i=u;i.children||(i.children=[]),Fn(i.children,i.id,n)}gi(u,"headers")&&Fn(u.props.headers,u.id,n),gi(u,"footers")&&Fn(u.props.footers,u.id,n)})}function gi(e,t){return t in e.props&>(e.props[t])}function wn(e){return e.props.isHide?!0:e.parent===null||e.parent===void 0?!1:wn(e.parent)}function vi(e,t,n=!1){if(wn(t))return;let r=Ce.staticGetRules(t.type,t.props);if(t.controlType===G.FORM)e[t.id]=r;else if(t.type===oe.SUBTABLE){e[t.id]=r;const u={type:"array",fields:{}};(n===!0?[{children:t.props.headers}]:t.children).forEach((i,o)=>{Ke(i.children,s=>{if(u.fields){u.fields[o]||(u.fields[o]={type:"object",required:!0,fields:{}});let c=Ce.staticGetRules(s.type,s.props);u.fields[o].fields[s.id]=c}})}),e[t.id].push(u)}}function mi(e,t,n=!1){var u,i,o,s,c,f,l;if(wn(t))return;let r=Ce.staticGetRules(t.type,t.props);if(t.controlType===G.FORM)if(Oe(t.props.dataBind))((u=t.props.dataBind)==null?void 0:u.fieldCode)!=""&&(e[(i=t.props.dataBind)==null?void 0:i.fieldCode]=r);else for(const a in t.props.dataBind)((o=t.props.dataBind[a])==null?void 0:o.fieldCode)!=""&&(e[(s=t.props.dataBind[a])==null?void 0:s.fieldCode]=((c=yi(r))==null?void 0:c[a])||[]);else if(t.type===oe.SUBTABLE){e[(f=t.props.datasourceBind)==null?void 0:f.dataCode]=r;const a={type:"array",fields:{}};(n===!0?[{children:t.props.headers}]:t.children).forEach((d,h)=>{Ke(d.children,D=>{var g,A,p,m;if(a.fields){a.fields[h]||(a.fields[h]={type:"object",required:!0,fields:{}});let y=Ce.staticGetRules(D.type,D.props);if(Oe(D.props.dataBind))((p=D.props.dataBind)==null?void 0:p.fieldCode)!=""&&(a.fields[h].fields[(m=D.props.dataBind)==null?void 0:m.fieldCode]=y);else for(const C in D.props.dataBind)((g=D.props.dataBind[C])==null?void 0:g.fieldCode)!=""&&(a.fields[h].fields[D.props.dataBind[C].fieldCode]=((A=yi(y))==null?void 0:A[C])||[])}})}),e[(l=t.props.datasourceBind)==null?void 0:l.dataCode].push(a)}}function yi(e){let t={};return e.map(n=>{n.fields&&(t=n)}),t==null?void 0:t.fields}function Ei(e,t,n=!1){if(wn(t))return;let r=Ce.staticGetRules(t.type,t.props);t.controlType===G.FORM?e[t.id]=r:t.type===oe.SUBTABLE&&t.children.length&&(e[t.id]=[],(n===!0?[{children:t.props.headers}]:t.children).forEach(u=>{let i={};Ke(u.children,o=>{let s=Ce.staticGetRules(o.type,o.props);i[o.id]=s}),e[t.id].push(i)}))}class Ld{constructor(t){const{state:n,emptyState:r,databindMapping:u,controlidMapping:i,defaultState:o,subtableHeadersControlIdMapping:s}=kd(t.instance);this.emptyState=r,this.state=n,this.dataBindMapping=u,this.controlIdMapping=i,this.defaultState=o,this.subtableHeadersControlIdMapping=s}setState(t,n,r){const u=this.controlIdMapping[t];u!==void 0?(u.children&&n.forEach(i=>{i.uid||Object.assign(i,{uid:"new:"+Xt("uid")})}),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]&&(this.state[o][i][r][t]=n)})}):this.state[t]=n}getState(t,n){var u;if(this.state[t]!==void 0)return this.state[t];{const i=this.controlIdMapping[t];if(i!==void 0){const o=this.state[i.dataView][t];return n!==void 0&&Object.keys((u=i==null?void 0:i.children)!=null?u:{}).length>0?o[n]:o}else if(n!==void 0){let o;return Object.keys(this.controlIdMapping).map(s=>{const c=this.controlIdMapping[s].dataView,f=this.controlIdMapping[s].children;f!==void 0&&Object.keys(f).map(l=>{var a;l===t&&(o=(a=this.state[c][s][n])==null?void 0:a[t])})}),o}else{let o=[];return Object.keys(this.controlIdMapping).map(s=>{const c=this.controlIdMapping[s].dataView,f=this.controlIdMapping[s].children;f!==void 0&&Object.keys(f).map(l=>{l===t&&this.state[c][s].map(a=>{o.push(a[t])})})}),o}}}getEmptyState(t){if(this.emptyState[t]!==void 0)return this.emptyState[t];{const r=this.controlIdMapping[t];if(r!==void 0){const u=this.emptyState[r.dataView][t];return"children"in r&&Object.assign(u,{uid:"new:"+Xt("uid")}),u}else{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 kd(e){let t={},n={},r={},u={},i={},o={};return Et(e,s=>{const c=s.id,f={},l={};yt([s],(a,d)=>{qd(f,l,a),Ud(r,c,a),Vd(u,c,a),Hd(i,a)}),t[c]={},o[c]=f,n[c]=l}),{state:t,defaultState:o,subtableHeadersControlIdMapping:i,emptyState:n,databindMapping:r,controlidMapping:u}}function qd(e,t,n){var r,u;if(n.controlType===G.FORM)e[n.id]=te(n.props.defaultValue),t[n.id]=te(n.props.defaultValue);else{const i={};Ke(n.props.headers,o=>{i[o.id]=te(o.props.defaultValue)}),e[n.id]=(u=new Array((r=n.props.defaultRows)!=null?r:1).fill(0).map(()=>se({uid:"new:"+Xt("uid")},te(i))))!=null?u:[],t[n.id]=i}}function Ud(e,t,n){var r,u;if(n.controlType===G.FORM)Oe(n.props.dataBind)?((u=(r=n.props)==null?void 0:r.dataBind)==null?void 0:u.dataCode)===void 0||(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]})):Object.keys(n.props.dataBind).map(i=>{const o=n.props.dataBind,s=o[i].dataCode;s!==void 0&&(e[s]===void 0&&(e[s]={controlId:n.id,fields:[],dataViewId:t}),e[s].fields.push({fieldCode:o[i].fieldCode,controlId:n.id,dataBind:o,dataViewId:[t]}))});else{if(n.props.datasourceBind.dataCode===""){rt(`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 i=n.id;Ke(n.props.headers,o=>{Oe(o.props.dataBind)?e[o.props.dataBind.dataCode].fields.push({fieldCode:o.props.dataBind.fieldCode,controlId:o.id,dataBind:o.props.dataBind,dataViewId:[t,i]}):Object.keys(o.props.dataBind).map(s=>{const c=o.props.dataBind,f=c[s].dataCode;e[f].fields.push({fieldCode:c[s].fieldCode,controlId:o.id,dataBind:c,dataViewId:[t,i]})})})}}function Vd(e,t,n){n.controlType===G.FORM?e[n.id]={dataBind:n.props.dataBind,options:[],dataView:t}:n.type===oe.SUBTABLE&&(e[n.id]={dataBind:new ir({dataCode:n.props.datasourceBind.dataCode,fieldCode:""}),dataView:t,children:{},options:[]},Ke(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}})}))}function Hd(e,t){if(t.type===oe.SUBTABLE){const n={};t.props.headers.map(r=>{r.children.map(u=>{Object.assign(n,{[u.id]:u})})}),Object.assign(e,{[t.id]:n})}}const Ai=["splice","push","shift","pop","unshift","reverse"],Tr=Symbol("__engineProxy__"),jr=Symbol("__engineTarget__"),Ci=Symbol("__engineArrayBeforeSetCallbackFlag__"),Fi=Symbol("__engineProxyThisKey__"),ke={type:"",args:[],callback:wi};function wi(){}Jd();function zd(e,t,n,r,u){if(ke.type){ke.callback=u.bind(null,e,r);return}const i=Number(t);if(i>e.length){Xe(`Wrong array operations may cause unknown errors. It is recommended to use APIs such as ${Ai.join(",")} for array operations`);return}if(!(Number.isNaN(i)&&t!=="length"))if(t==="length"){const s=n,c=e.length;if(s>e.length){Xe("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 Wd(e,t,n){return{__engineProxy__:!0,get(r,u,i){return u===Tr?!0:u===jr?r:Array.isArray(r)&&u===Ci?n:u===Fi?e:Reflect.get(r,u,i)},set(r,u,i,o){var d;let s=i;const c=r[u],f=e===""?u:e+"."+u;function l(h){if(typeof h=="object"&&h!==null)return h[Tr]!==!0?bn(h,t,n,f):bn(h[jr],t,n,f)}s=(d=l(i))!=null?d:s;let a;if(Array.isArray(r)){const h=zd(r,u,i,e,t);a=Reflect.set(r,u,s,o),h&&h()}else{try{let h=s;if(s=n.call(null,r,f,s,c),h!==s){const D=l(s);D!==void 0&&(s=D)}}catch(h){return sn(`${f} set error ${h}`),!0}a=Reflect.set(r,u,s,o),t.call(null,r,f,i,c)}return a||!0}}}function bn(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]=bn(o,t,n,i))}return new Proxy(e,Wd(r,t,n))}function bi(e){const t=[];return e.forEach(n=>{t.push(n),(n.controlType==="layout"||n.controlType==="wrap")&&t.push(...bi(n.children))}),t}function Lr(e,t,n){if(t==="")return;const r=t.split(".");if(r.length===0)return;const u=r[0],i=r.slice(1),o=n[u]?n[u][0]:void 0;return i.length===0?o:i.reduce((s,c)=>{var a,d;const f=Number(c);if(Number.isNaN(f)&&s){const h=s!=null&&s.children?bi(s.children):void 0,D=h==null?void 0:h.find(g=>g.id===c);return D||(s.controlType===G.FORM?s:void 0)}else return(d=(a=s==null?void 0:s.children)==null?void 0:a[f])!=null?d:s},o)}function Zd(e,t){return["push","unshift"].includes(e)?t:e==="splice"?t.slice(2):[]}function Gd(e,t,n){if(["push","unshift"].includes(e))return n;if(e==="splice")return t.slice(0,2).concat(n)}function Jd(){Ai.forEach(e=>{const t=Array.prototype[e];Array.prototype[e]=function(...n){var r;if(this[Tr]){let u;const i=Zd(e,n);if(i.length){const o=(r=this[Ci])==null?void 0:r.call(this,this[jr],this[Fi],i),s=Gd(e,n,o);ke.type=e,ke.args=s,u=t.apply(this,s)}else ke.type=e,ke.args=n,u=t.apply(this,n);return typeof ke.callback=="function"&&ke.callback(e,n,u),ke.type="",ke.args=[],ke.callback=wi,u}else return t.apply(this,n)}})}class Xd{constructor(){this.actionMap=new Map,this.buildinActions={},this.actionUtils={},this.sources={}}execAction(t,n,...r){return Ge(this,null,function*(){const u=this.actionMap.get(t);if(!!u)try{return yield u.func.call(null,n,...r)}catch(i){sn(`${u.id} Exception during calling action: ${i}`)}})}addAction(t,n){this.actionMap.has(t)&&Xe("duplicated action key");const r=new Kd(t,n);this.actionMap.set(t,r)}}class Kd{constructor(t,n){this.id="",this.id=t,this.func=n}}class Qd{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 te(n)}remove(t){this._dataStore.delete(t)}getRemoteData(t){return Ge(this,null,function*(){return this.executer===void 0?(sn("\u672A\u521D\u59CB\u5316executer"),[]):this.executer(t)})}}class ft{}class Kt extends ft{validate(t){return we(t)}transform(t){if(t==null)return"";if(!Le(t)&&!Eu(t))return String(t);if(cf(t))return JSON.stringify(t);throw`${t} is not a string`}}class kr extends ft{validate(t){return cn(t)||t===""}transform(t){if(t==null)return"";const n=!Le(t)&&!Eu(t)?Number(t):void 0;if(!Number.isNaN(n)&&n!==void 0)return n;throw`${t} is not a number`}}class Yd extends ft{validate(t){return lf(t)}transform(t){if(t==null)return[];function n(r){return r.map(u=>u?String(u):"")}if(gt(t))return n(t);if(we(t)&&Au(t))try{const r=JSON.parse(t);if(Array.isArray(r))return n(r)}catch(r){}return[String(t)]}}class eh extends ft{validate(t){return ff(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(gt(t))return n(t);if(we(t)&&Au(t))try{const u=JSON.parse(t);if(gt(u))return n(u)}catch(u){}const r=Number(t);if(Number.isNaN(r))throw`${t} is not a number array`;return[r]}}class th extends ft{validate(t){return Le(t)&&"amount"in t&&cn(t.amount)&&"currency"in t&&we(t.currency)}transform(t,n){if(t==null||t==="")return new or({currency:n==null?void 0:n.currency});let r;if(Le(t)&&(r=new or(se(se({},n),t))),we(t)&&ln(t))try{const u=JSON.parse(t);r=new or(se(se({},n),u))}catch(u){}if(r){const u=new kr,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 nh extends ft{validate(t){return Le(t)&&"min"in t&&we(t.min)&&"max"in t&&we(t.max)}transform(t,n){if(t==null||t==="")return new ar;let r;if(Le(t)&&(r=new ar(se(se({},n),t))),we(t)&&ln(t))try{const u=JSON.parse(t);r=new ar(se(se({},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 rh extends ft{validate(t){return Le(t)&&"result"in t&&cn(t.result)&&"unit"in t&&we(t.unit)}transform(t,n){if(t==null||t==="")return new cr({unit:n==null?void 0:n.unit});let r;if(Le(t)&&(r=new cr(se(se({},n),t))),we(t)&&ln(t))try{const u=JSON.parse(t);r=new cr(se(se({},n),u))}catch(u){}if(r){const u=new kr,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 uh extends ft{validate(t){return!!Le(t)}transform(t,n){if(t==null||t==="")return new sr;let r;if(Le(t)&&(r=new sr(se(se({},n),Qn.exports.camelizeKeys(t)))),we(t)&&ln(t))try{const u=JSON.parse(t);r=new sr(se(se({},n),Qn.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 ih{static getValueChecker(t){let n;switch(t){case ae.VARCHAR:case ae.TIMESTAMP:case ae.TEXT:case ae.RELATION:case ae.AUTO_NUMBER:n=new Kt;break;case ae.DECIMAL:n=new kr;break;case ae.EMPLOYEES:case ae.DEPARTMENTS:case ae.IMAGE:case ae.FILE:case ae.ARRAY:n=new Yd;break;case ae.MONEY:n=new th;break;case ae.TIMESCOPE:n=new nh;break;case ae.CALC:n=new rh;break;case ae.DECIMAL_RANGE:n=new eh;break;case ae.ADDRESS:n=new uh;break}return n}}function oh(e){if(["min","max","currency","unit"].includes(e))return ae.VARCHAR;if(["result","amount"].includes(e))return ae.DECIMAL}function Bi(e,t,n,r){var o;let u=(o=oh(t))!=null?o:e,i=ih.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 ah(e,t,n){return Object.entries(e).reduce((r,[u,i])=>{const o=t[u];return r[u]=Bi(i,u,o,n[u]),r},Object.assign({},t))}typeof window!="undefined"&&(window.engines={});let Mt=null,Qt="";class qr extends bu{constructor(t){super(),this.rawStore={},this.isMounted=!1,this.id=on(8),this.__pluginsApplied=!1,this.actionManager=new Xd,this._jobTasks=[],this.createControlInstance=this.createInstance,this.$options=Object.freeze(t);const{autoMount:n=!0,schema:r,beforeCreateInstance:u,externalParams:i,language:o=iu,debug:s=!1}=this.$options;Me.setLocale(o),this.debug=s,this.runtime=new Ce({schema:r,beforeCreateInstance:u}),this.externalParams=i,this.store=new Ld({instance:this.runtime.instance}),this.debugLog("engine is Instantiation complete"),n&&this.mount()}debugLog(...t){this.debug&&Jn(...t)}use(t){return this.__pluginsApplied||this.__plugins.push(t),this}registerControl(...t){return this.runtime.register(...t),this}static register(t){return Ce.register(t,"Runtime")}static judgeControlIsRegistered(t){return Ce.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=bn(this.store.state,this._proxyStateCallback.bind(this),this._proxyStateBeforeSetCallback.bind(this))}_proxyStateBeforeSetCallback(t,n,r,u){const i=Lr(this.runtime.flatInstances,n,this.runtime.instanceMap);if(!i)return r;if(this.assertInstance(i,oe.SUBTABLE)){if(r===null)return[];const c=i.props.headers.reduce((l,a)=>{const d=a.children[0];return d&&d.controlType===G.FORM&&(l[d.id]=d.fieldType),l},{}),f=this.getEmptyState(i.id);return r==null?void 0:r.map(l=>ah(c,l,f))}const o=n.split("."),s=o[o.length-1];try{return Bi(i.fieldType,s,r,u)}catch(c){throw rt(`the id=${i.id}'s instance setState error, %o ${c}.`,r),c}}_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=Lr(this.runtime.flatInstances,n,this.runtime.instanceMap);if((o==null?void 0:o.controlType)!==G.LIST)return;const s=h=>{const D=[];for(let g=0;g<h;g++){const A=this.listControlCreateRow(o,"subtable-row");A&&D.push(A)}return D},c=Mt;let f=[],l=[],a=[],d=!1;if(r&&u){switch(r){case"push":case"unshift":const D=u.length;f=s(D),l=u,o.children[r](...f),this.runtime.getFlatInstances();break;case"splice":if(u.length>2){const g=u.length-2,A=u.slice(2);f=s(g),l=A;const p=u[0],m=u[1];o.children[r](p,m,...f),this.runtime.getFlatInstances()}else{const g=u[0],A=u[1];g+A===o.children.length-1&&(d=!0),o.children[r](...u),this.runtime.getFlatInstances()}break;default:o.children[r](...u),this.runtime.getFlatInstances();break}r==="splice"?a=i:["pop","shift"].includes(r)&&(a=[i]);const h=this.getState(o.id);this._handlerSubtableUpdateUid(h),this.emit("list-change",{instance:o,value:h,options:Object.assign({},c,{changed:f,data:l,deleted:a!=null?a:[],jsonValue:JSON.stringify(h),isDeleteLastOne:d,type:r,args:u})}),Mt=null}}_handlerSubtableUpdateUid(t){t.forEach(n=>{n.uid||Object.assign(n,{uid:"new:"+Xt("uid")})})}_handlerObjectUpdate(t,n,r,u){const i=Lr(this.runtime.flatInstances,n,this.runtime.instanceMap);if(!i)return;const o=this.getInstanceRowIndex(i),s=Mt||{};if(i.controlType===G.LIST&&i.type===oe.SUBTABLE){i.children.length=0;const c=r;let f=[];for(let a=0;a<c.length;a++){const d=this.listControlCreateRow(i,"subtable-row");d&&f.push(d)}i.children.push(...f),this.runtime.getFlatInstances();let l=u!=null?u:[];(s==null?void 0:s.setData)===!0&&(l=[]),this._handlerSubtableUpdateUid(c),this.emit("list-change",{instance:i,value:r,options:uu(se({},s),{changed:f,data:c,deleted:l,type:"push",jsonValue:JSON.stringify(c)})})}else this.emit("change",{instance:i,value:this.getState(i.id,o),rowIndex:o,options:uu(se({},s),{oldValue:u})})}applyPlugins(){this.__pluginsApplied||(this.__plugins.forEach(t=>{var n;try{Qt=(n=t.pluginName)!=null?n:t.constructor.name,t.apply(this)}catch(r){Xe(`${Qt} Plugin apply Error
|
|
1
|
+
var H1=Object.defineProperty,z1=Object.defineProperties;var W1=Object.getOwnPropertyDescriptors;var Uo=Object.getOwnPropertySymbols,Z1=Object.getPrototypeOf,G1=Object.prototype.hasOwnProperty,J1=Object.prototype.propertyIsEnumerable,X1=Reflect.get;var Un=Math.pow,Vo=(W,ie,fe)=>ie in W?H1(W,ie,{enumerable:!0,configurable:!0,writable:!0,value:fe}):W[ie]=fe,se=(W,ie)=>{for(var fe in ie||(ie={}))G1.call(ie,fe)&&Vo(W,fe,ie[fe]);if(Uo)for(var fe of Uo(ie))J1.call(ie,fe)&&Vo(W,fe,ie[fe]);return W},uu=(W,ie)=>z1(W,W1(ie));var Ho=(W,ie,fe)=>X1(Z1(W),fe,ie);var Ge=(W,ie,fe)=>new Promise((Vn,un)=>{var Hn=Je=>{try{kt(fe.next(Je))}catch(qt){un(qt)}},zn=Je=>{try{kt(fe.throw(Je))}catch(qt){un(qt)}},kt=Je=>Je.done?Vn(Je.value):Promise.resolve(Je.value).then(Hn,zn);kt((fe=fe.apply(W,ie)).next())});(function(W,ie){typeof exports=="object"&&typeof module!="undefined"?ie(exports,require("crypto")):typeof define=="function"&&define.amd?define(["exports","crypto"],ie):(W=typeof globalThis!="undefined"?globalThis:W||self,ie(W.modelDrivenEngine={},W.require$$0))})(this,function(W,ie){"use strict";function fe(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var Vn=fe(ie),un="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",Hn="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",zn="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",kt="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",Je="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",qt="{caption}\u5FC5\u586B",zo="\u8BF7\u8F93\u5165\u6807\u9898",Wo="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",Zo="\u8BF7\u8F93\u5165\u884C\u6807\u9898",Go="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",Jo="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",Xo="\u8BF7\u7ED1\u5B9A\u8868\u5355",Ko="\u8BF7\u7ED1\u5B9A\u5217\u8868",Qo="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",Yo="\u8BF7\u8F93\u5165\u663E\u793A\u503C",ea="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",ta="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",na="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",ra="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",ua="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",ia="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",oa="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",aa="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",sa="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",ca="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",la="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",fa="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",da="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",ha="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",pa="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",Da="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",ga="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",va="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",ma="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",ya="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Ea="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",Aa="\u8BF7\u7ED1\u5B9A\u670D\u52A1",Ca="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Fa="\u8BF7\u9009\u62E9\u7701",wa="\u8BF7\u9009\u62E9\u5E02",ba="\u8BF7\u9009\u62E9\u533A",Ba="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",_a="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",Sa="\u8BF7\u8F93\u5165\u5217\u5BBD",Ma="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",Ia="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",Na="\u8BF7\u9009\u62E9\u63A7\u4EF6",Oa="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",xa="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",Ra="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",$a="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",Pa="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Ta="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",ja="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",La="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",ka="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",qa="\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",Va="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",Ha="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",za="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",Wa="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Za="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",Ga="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",Ja="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Xa="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",Ka="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Qa="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Ya="\u8BF7\u8F93\u5165\u5B50\u8868\u522B\u540D",es="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u4E1A\u52A1\u6A21\u578B",ts="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u7ED1\u5B9A\u670D\u52A1",ns="\u8BF7\u9009\u62E9\u5173\u8054\u5B50\u8868\u5B57\u6BB5",rs="\u8BF7\u9009\u62E9\u5173\u8054\u4E3B\u8868\u5B57\u6BB5",us="\u8BF7\u9009\u62E9\u6392\u5E8F\u5B57\u6BB5",is={isNotNumber:un,isNotString:Hn,isNotObject:zn,isNotArray:kt,isNotBoolean:Je,runtimeRequired:qt,pleaseEnterCaption:zo,pleaseEnterCaptionTip:Wo,pleaseEnterRowCaption:Zo,pleaseEnterPlaceholder:Go,pleaseEnterFieldCode:Jo,pleaseEnterForm:Xo,pleaseEnterList:Ko,pleaseEnterProcess:Qo,pleaseEnterLabel:Yo,pleaseEnterValue:ea,bizKeyNotBindFiled:ta,pleaseSelectOneField:na,pleaseEnterNumberRange:ra,pleaseEnterAValueGreaterThanMin:ua,pleaseEnterAValueLessThanMax:ia,numberRangeSetError:oa,stringRangeError:aa,attachmentMaxSize:sa,pleaseEnterTotalScoreSetting:ca,theTotalScoreMustNotBeLessThan1:la,scoreDefaultValueRange:fa,attachmentLimitError:da,PleaseReselectTheOptionalQuantity:ha,TheMaximumLengthIsGreaterThanTheMinimumLength:pa,TheMinimumLengthIsGreaterThanTheMaximumLength:Da,PleaseSelectTheCorrectOptionSettings:ga,optionIdIsRepeat:va,optionIsRequired:ma,pleaseEnterDataCode:ya,pleaseEnterValueFieldCode:Ea,pleaseEnterSvcCode:Aa,pleaseBindAtLeastOneDisplayValue:Ca,pleaseSelectProvince:Fa,pleaseSelectCity:wa,pleaseSelectDistrict:ba,limitRowsCannotBeLessThan0:Ba,TheNumberOfRowsCannotBeLessThanMinRows:_a,pleaseEnterColumnWidth:Sa,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Ma,pleaseCompleteAllRulesAndConditions:Ia,pleaseSelectControl:Na,pleaseSelectAtLeastOneColumn:Oa,pleaseSelectFillBackMode:xa,pleaseSelectDashboard:Ra,rootNodeIsRequired:$a,theViewNameCannotBeEmpty:Pa,pleaseSelectOcrType:Ta,pleaseSelectAtLeastOneFieldToFillIn:ja,pleaseChooseAtLeastOne:La,pleaseEnterButtonContent:ka,pleaseEnterDataCodeInDataSetting:qa,pleaseEnterValueFieldCodeInDataSetting:Ua,pleaseEnterSvcCodeInDataSetting:Va,pleaseBindAtLeastOneDisplayValueInDataSetting:Ha,rootNodeIsRequiredInDataSetting:za,pleaseEnterMaxHeight:Wa,pleaseEnter:Za,pleaseEnterWatermark:Ga,pleaseEnterFileName:Ja,pleaseUploadAtLeastOnePrintTemplate:Xa,pleaseAssignBusiness:Ka,pleaseAssignExternal:Qa,pleaseEnterAliasCode:Ya,pleaseSelectDataCode:es,pleaseSelectSvcCode:ts,pleaseSelectJoinFieldCode:ns,pleaseSelectMainFieldCode:rs,pleaseSelectSortFieldCode:us},os="Please enter a number",as="Please enter a string",ss="Please enter an object",cs="Please enter an array",ls="Please enter a boolean",fs="{caption} Required",ds="Please enter the title",hs="Please enter the bubble prompt",ps="Please enter the row title",Ds="Please enter the prompt text",gs="Please bind data items",vs="Please bind the form",ms="Please bind the list",ys="Please bind the process",Es="Please enter the displayed value",As="Please enter the stored value",Cs="The document number is not bound to the data item",Fs="Please select at least one display field",ws="Please enter a value greater than or equal to {min} and less than or equal to {max}",bs="Please enter a value greater than or equal to {min}",Bs="Please enter a value less than or equal to {max}",_s="The value range is set incorrectly",Ss="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",Ms="The attachment size must be between 0MB and 1000MB",Is="Please fill in the total score setting",Ns="The total score cannot be less than 1",Os="The default value must be between {min} and {max}",xs="The number of attachments uploaded must be between {min} and {max}",Rs="Please re-select the optional quantity",$s="The maximum length of the control must be greater than the minimum length",Ps="The minimum length of the control must be less than the maximum length",Ts="Please select the correct option setting",js="Option ID cannot be repeated",Ls="Please enter at least one option",ks="Please bind the data source",qs="Please bind the stored value",Us="Please bind the service",Vs="At least one display value must be bound",Hs="Please select a province",zs="Please select a city",Ws="Please select a district",Zs="The minimum number of lines to fill in cannot be less than 0",Gs="The number of rows cannot be less than {min} rows",Js="Please enter the column width",Xs="Please set the logical relationship of all rule conditions",Ks="Please complete all rules and conditions",Qs="please select control",Ys="Please select the dashboard",ec="View name cannot be empty",tc="Please select recognition type",nc="Please select at least one field to fill in",rc="Please select at least one",uc="Please enter the button title",ic="Please bind the business model in the data settings",oc="Please bind storage values in data settings",ac="Please bind the service in the data settings",sc="Please bind at least one display value in the data settings",cc="Please select the root node in the data settings",lc="Please enter the maximum height",fc="The input content cannot be empty",dc="Watermark cannot be empty",hc="File name cannot be empty",pc="Please upload at least one printing template!\uFF01",Dc="Please select a specific business department",gc="Please select a specified external organization",vc="Please enter a sub table alias",mc="Please select the associated table to set the business model",yc="Please select the association table to set the binding service",Ec="Select associated sub table fields",Ac="Please select the associated main table field",Cc="Please select the sort field",Fc={isNotNumber:os,isNotString:as,isNotObject:ss,isNotArray:cs,isNotBoolean:ls,runtimeRequired:fs,pleaseEnterCaption:ds,pleaseEnterCaptionTip:hs,pleaseEnterRowCaption:ps,pleaseEnterPlaceholder:Ds,pleaseEnterFieldCode:gs,pleaseEnterForm:vs,pleaseEnterList:ms,pleaseEnterProcess:ys,pleaseEnterLabel:Es,pleaseEnterValue:As,bizKeyNotBindFiled:Cs,pleaseSelectOneField:Fs,pleaseEnterNumberRange:ws,pleaseEnterAValueGreaterThanMin:bs,pleaseEnterAValueLessThanMax:Bs,numberRangeSetError:_s,stringRangeError:Ss,attachmentMaxSize:Ms,pleaseEnterTotalScoreSetting:Is,theTotalScoreMustNotBeLessThan1:Ns,scoreDefaultValueRange:Os,attachmentLimitError:xs,PleaseReselectTheOptionalQuantity:Rs,TheMaximumLengthIsGreaterThanTheMinimumLength:$s,TheMinimumLengthIsGreaterThanTheMaximumLength:Ps,PleaseSelectTheCorrectOptionSettings:Ts,optionIdIsRepeat:js,optionIsRequired:Ls,pleaseEnterDataCode:ks,pleaseEnterValueFieldCode:qs,pleaseEnterSvcCode:Us,pleaseBindAtLeastOneDisplayValue:Vs,pleaseSelectProvince:Hs,pleaseSelectCity:zs,pleaseSelectDistrict:Ws,limitRowsCannotBeLessThan0:Zs,TheNumberOfRowsCannotBeLessThanMinRows:Gs,pleaseEnterColumnWidth:Js,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Xs,pleaseCompleteAllRulesAndConditions:Ks,pleaseSelectControl:Qs,pleaseSelectDashboard:Ys,theViewNameCannotBeEmpty:ec,pleaseSelectOcrType:tc,pleaseSelectAtLeastOneFieldToFillIn:nc,pleaseChooseAtLeastOne:rc,pleaseEnterButtonContent:uc,pleaseEnterDataCodeInDataSetting:ic,pleaseEnterValueFieldCodeInDataSetting:oc,pleaseEnterSvcCodeInDataSetting:ac,pleaseBindAtLeastOneDisplayValueInDataSetting:sc,rootNodeIsRequiredInDataSetting:cc,pleaseEnterMaxHeight:lc,pleaseEnter:fc,pleaseEnterWatermark:dc,pleaseEnterFileName:hc,pleaseUploadAtLeastOnePrintTemplate:pc,pleaseAssignBusiness:Dc,pleaseAssignExternal:gc,pleaseEnterAliasCode:vc,pleaseSelectDataCode:mc,pleaseSelectSvcCode:yc,pleaseSelectJoinFieldCode:Ec,pleaseSelectMainFieldCode:Ac,pleaseSelectSortFieldCode:Cc},wc="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",bc="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Bc="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",_c="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Sc="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Mc="{caption}\u5FC5\u9808",Ic="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Nc="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Oc="\u884C\u30D8\u30C3\u30C0\u30FC\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",xc="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Rc="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",$c="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Pc="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Tc="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",jc="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Lc="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",kc="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",qc="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Uc="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Vc="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Hc="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",zc="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",Wc="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Zc="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Gc="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Jc="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Xc="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Kc="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Qc="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Yc="\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",el="\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",tl="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",nl="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",rl="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",ul="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",il="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ol="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",al="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",sl="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",cl="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",ll="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",fl="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",dl="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",hl="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",pl="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Dl="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",gl="please select control",vl="\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ml="\u30D3\u30E5\u30FC\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",yl="\u8B58\u5225\u30BF\u30A4\u30D7\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",El="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Al="\u5C11\u306A\u304F\u3068\u30821\u3064\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Cl="\u30DC\u30BF\u30F3\u306E\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Fl="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",wl="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u683C\u7D0D\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",bl="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30B5\u30FC\u30D3\u30B9\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Bl="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",_l="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30EB\u30FC\u30C8\u30CE\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Sl="\u6700\u5927\u9AD8\u3055\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ml="\u5165\u529B\u5185\u5BB9\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Il="\u900F\u304B\u3057\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Nl="\u30D5\u30A1\u30A4\u30EB\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Ol="\u5370\u5237\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u5C11\u306A\u304F\u3068\u30821\u3064\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\uFF01\uFF01",xl="\u6307\u5B9A\u3055\u308C\u305F\u30D3\u30B8\u30CD\u30B9\u90E8\u9580\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Rl="\u5916\u90E8\u7D44\u7E54\u306E\u6307\u5B9A\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",$l="\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u5225\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Pl="\u95A2\u9023\u8868\u3092\u9078\u629E\u3057\u3066\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044",Tl="\u95A2\u9023\u30C6\u30FC\u30D6\u30EB\u8A2D\u5B9A\u30D0\u30A4\u30F3\u30C9\u30B5\u30FC\u30D3\u30B9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",jl="\u95A2\u9023\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u9078\u629E",Ll="\u95A2\u9023\u30DE\u30B9\u30BF\u30FC\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",kl="\u30BD\u30FC\u30C8\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ql={isNotNumber:wc,isNotString:bc,isNotObject:Bc,isNotArray:_c,isNotBoolean:Sc,runtimeRequired:Mc,pleaseEnterCaption:Ic,pleaseEnterCaptionTip:Nc,pleaseEnterRowCaption:Oc,pleaseEnterPlaceholder:xc,pleaseEnterFieldCode:Rc,pleaseEnterForm:$c,pleaseEnterList:Pc,pleaseEnterProcess:Tc,pleaseEnterLabel:jc,pleaseEnterValue:Lc,bizKeyNotBindFiled:kc,pleaseSelectOneField:qc,pleaseEnterNumberRange:Uc,pleaseEnterAValueGreaterThanMin:Vc,pleaseEnterAValueLessThanMax:Hc,numberRangeSetError:zc,stringRangeError:Wc,attachmentMaxSize:Zc,pleaseEnterTotalScoreSetting:Gc,theTotalScoreMustNotBeLessThan1:Jc,scoreDefaultValueRange:Xc,attachmentLimitError:Kc,PleaseReselectTheOptionalQuantity:Qc,TheMaximumLengthIsGreaterThanTheMinimumLength:Yc,TheMinimumLengthIsGreaterThanTheMaximumLength:el,PleaseSelectTheCorrectOptionSettings:tl,optionIdIsRepeat:nl,optionIsRequired:rl,pleaseEnterDataCode:ul,pleaseEnterValueFieldCode:il,pleaseEnterSvcCode:ol,pleaseBindAtLeastOneDisplayValue:al,pleaseSelectProvince:sl,pleaseSelectCity:cl,pleaseSelectDistrict:ll,limitRowsCannotBeLessThan0:fl,TheNumberOfRowsCannotBeLessThanMinRows:dl,pleaseEnterColumnWidth:hl,pleaseSetTheLogicalRelationshipOfAllRuleConditions:pl,pleaseCompleteAllRulesAndConditions:Dl,pleaseSelectControl:gl,pleaseSelectDashboard:vl,theViewNameCannotBeEmpty:ml,pleaseSelectOcrType:yl,pleaseSelectAtLeastOneFieldToFillIn:El,pleaseChooseAtLeastOne:Al,pleaseEnterButtonContent:Cl,pleaseEnterDataCodeInDataSetting:Fl,pleaseEnterValueFieldCodeInDataSetting:wl,pleaseEnterSvcCodeInDataSetting:bl,pleaseBindAtLeastOneDisplayValueInDataSetting:Bl,rootNodeIsRequiredInDataSetting:_l,pleaseEnterMaxHeight:Sl,pleaseEnter:Ml,pleaseEnterWatermark:Il,pleaseEnterFileName:Nl,pleaseUploadAtLeastOnePrintTemplate:Ol,pleaseAssignBusiness:xl,pleaseAssignExternal:Rl,pleaseEnterAliasCode:$l,pleaseSelectDataCode:Pl,pleaseSelectSvcCode:Tl,pleaseSelectJoinFieldCode:jl,pleaseSelectMainFieldCode:Ll,pleaseSelectSortFieldCode:kl},Ul={zhCN:is,enUS:Fc,jaJP:ql},je;(function(e){e.Number="Number",e.Operator="Operator",e.VariableInMainTable="VariableInMainTable",e.VariableInCurrentSubTable="VariableInCurrentSubTable",e.VariableInOtherSubTable="VariableInOtherSubTable",e.UndefinedVariable="UndefinedVariable"})(je||(je={}));var wt;(function(e){e.SUM="SUM",e.AVG="AVG",e.MAX="MAX",e.MIN="MIN"})(wt||(wt={}));var iu="zh-CN";function U(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G;(function(e){e.BASE="base",e.FORM="form",e.LAYOUT="layout",e.WRAP="wrap",e.COLUMN="column",e.LIST="list",e.SEARCH="search"})(G||(G={}));var ou;(function(e){e[e.FORM=0]="FORM",e[e.LIST=1]="LIST",e[e.REPORT=2]="REPORT",e[e.DASHBOARD=3]="DASHBOARD",e[e.VUE=4]="VUE",e[e.FREE_PAGE=5]="FREE_PAGE"})(ou||(ou={}));var oe;(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.BATCH_DELETE_LIST_BUTTON="list-page-btn-batch-delete",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.ORGANIZATION_SELECTION="organization-selection",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.Approval_Status_Column="approval-status-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.GRID_LAYOUT_CONTAINER="grid-layout-container",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.ACTION_BAR="action-bar",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",e.GRID_LAYOUT_WRAP="grid-layout-wrap",e.VUE_PAGE="vue-page"})(oe||(oe={}));var au;(function(e){e.SAVE="save",e.DRAFT="draft",e.UNSUBMIT="unsubmit",e.AUDIT="audit",e.UNAUDIT="unaudit",e.CANCEL="cancel",e.FORM_SUBMIT="form_submit"})(au||(au={}));var ae;(function(e){e.VARCHAR="varchar",e.TEXT="text",e.ARRAY="array",e.ADDRESS="location",e.DECIMAL="decimal",e.REAL_DECIMAL="real-decimal",e.DECIMAL_RANGE="decimal_range",e.TIMESTAMP="timestamp",e.DATETIME="datetime",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",e.BOOLEAN="boolean",e.MODEL="model",e.MODEL_SET="model_set"})(ae||(ae={}));var re;re={},U(re,"varchar","\u77ED\u6587\u672C"),U(re,"timestamp","\u65F6\u95F4"),U(re,"datetime","\u65F6\u95F4\uFF08datetime\uFF09"),U(re,"text","\u957F\u6587\u672C"),U(re,"decimal","\u6570\u503C\u7C7B\u578B"),U(re,"real-decimal","\u6570\u503C\u7C7B\u578B\uFF08decimal\uFF09"),U(re,"relation","\u5F15\u7528\u7C7B\u578B"),U(re,"bigint","\u957F\u6574\u578B"),U(re,"image","\u56FE\u7247"),U(re,"file","\u9644\u4EF6"),U(re,"auto_number","\u81EA\u52A8\u7F16\u53F7"),U(re,"boolean","\u903B\u8F91"),U(re,"people","\u4EBA\u5458"),U(re,"location","\u5730\u5740"),U(re,"department","\u90E8\u95E8"),U(re,"relation-field","\u5173\u8054\u5B57\u6BB5"),U(re,"reference-field","\u5F15\u7528\u5B57\u6BB5"),U(re,"calc","\u8BA1\u7B97\u516C\u5F0F"),U(re,"json","JSON"),U(re,"model","\u6A21\u578B"),U(re,"model_set","\u6A21\u578B\u96C6\u5408"),U(re,"array","\u6570\u7EC4");var ge;ge={},U(ge,"array","array-column"),U(ge,"auto_number","auto-number-column"),U(ge,"decimal","decimal-column"),U(ge,"real-decimal","decimal-column"),U(ge,"department","department-column"),U(ge,"file","file-column"),U(ge,"image","image-column"),U(ge,"location","location-column"),U(ge,"people","employee-column"),U(ge,"text","text-column"),U(ge,"timescope","timescope-column"),U(ge,"timestamp","timestamp-column"),U(ge,"datetime","timestamp-column"),U(ge,"varchar","varchar-column"),U(ge,"relation","varchar-column");var su;(function(e){e.YEAR="year",e.MONTH="month",e.DATE="date",e.DATEHOUR="datehour",e.DATEMIN="datemin",e.DATETIME="datetime"})(su||(su={}));var cu="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",Vl=cu+"0123456789";function on(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,t="",n=0;n<e;n++){var r=n===0?cu:Vl,u=Math.random()*r.length;t+=r[parseInt(String(u),10)]}return t}function Wn(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 Hl(e){if(Array.isArray(e))return Wn(e)}function zl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function an(e,t,n){return hu()?an=Reflect.construct:an=function(u,i,o){var s=[null];s.push.apply(s,i);var c=Function.bind.apply(u,s),f=new c;return o&&Vt(f,o.prototype),f},an.apply(null,arguments)}function Ut(e){return Ut=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ut(e)}function fu(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&&Vt(e,t)}function Wl(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Zl(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Gl(){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,t){return t&&(Xl(t)==="object"||typeof t=="function")?t:zl(e)}function Vt(e,t){return Vt=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Vt(e,t)}function du(e){return Hl(e)||Zl(e)||Kl(e)||Gl()}function Xl(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Kl(e,t){if(!!e){if(typeof e=="string")return Wn(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 Wn(e,t)}}function Zn(e){var t=typeof Map=="function"?new Map:void 0;return Zn=function(r){if(r===null||!Wl(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 an(r,arguments,Ut(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),Vt(u,r)},Zn(e)}function hu(){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 pu(e){var t=hu();return function(){var r=Ut(e),u;if(t){var i=Ut(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Jl(this,u)}}var Gn=console;function rt(){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=Gn).warn.apply(r,["\u{1F9D0} Driven Warning:"+t[0]].concat(du(u)))}function Jn(){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=Gn).log.apply(r,["\u{1F680} Driven Log:"+t[0]].concat(du(u)))}function Ql(e){return e+" \u{1F41B}\u{1F41B}\u{1F41B}"}var Xn=function(e){fu(n,e);var t=pu(n);function n(r){lu(this,n);var u;return u=t.call(this,r),u.name="\u{1F4A5} Driven Error",u.message=r?Ql(r):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",u}return n}(Zn(Error)),Yl=function(e){fu(n,e);var t=pu(n);function n(r){lu(this,n);var u;return u=t.call(this,r),u.name="\u{1F6A8} Driven Reference Error",u}return n}(Xn);function Xe(e){throw new Xn(e)}function Du(e){throw new Yl(e)}function sn(e){Gn.error(new Xn(e))}function Ke(e,t){Array.isArray(e)&&e.map(function(n){switch(n.controlType){case"layout":Ke(n==null?void 0:n.children,t);break;case"wrap":Ke(n==null?void 0:n.children,t);break;case"search":Ke(n==null?void 0:n.children,t);break;case"form":t(n)}})}var ef=Object.prototype.toString;function gu(e,t){return ef.call(e)==="[object "+t+"]"}function tf(e){return gu(e,"String")}function nf(e){return gu(e,"Promise")}var rf=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();nf(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&&!tf(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 uf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vu(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 of(e,t,n){return t&&vu(e.prototype,t),n&&vu(e,n),e}function af(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Me=function(){function e(){uf(this,e)}return of(e,null,[{key:"getMessage",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$i18n.$t(n,"",r)}},{key:"resetI18n",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:iu;return new rf({locale:n,messages:Ul})}},{key:"setLocale",value:function(n){return this.$i18n.setLocale(n)}}]),e}();af(Me,"$i18n",Me.resetI18n());function Kn(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 f=i;if(!!i){if(!Object.prototype.hasOwnProperty.call(i,o)){rt("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(f[o],n)&&(f[o]=n,u=!0),f[o]}},e),u}var ut=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function mu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qn={exports:{}};(function(e){(function(t){var n=function(p,m,y){if(!f(m)||a(m)||d(m)||h(m)||c(m))return m;var C,w=0,S=0;if(l(m))for(C=[],S=m.length;w<S;w++)C.push(n(p,m[w],y));else{C={};for(var I in m)Object.prototype.hasOwnProperty.call(m,I)&&(C[p(I,y)]=n(p,m[I],y))}return C},r=function(p,m){m=m||{};var y=m.separator||"_",C=m.split||/(?=[A-Z])/;return p.split(C).join(y)},u=function(p){return D(p)?p:(p=p.replace(/[\-_\s]+(.)?/g,function(m,y){return y?y.toUpperCase():""}),p.substr(0,1).toLowerCase()+p.substr(1))},i=function(p){var m=u(p);return m.substr(0,1).toUpperCase()+m.substr(1)},o=function(p,m){return r(p,m).toLowerCase()},s=Object.prototype.toString,c=function(p){return typeof p=="function"},f=function(p){return p===Object(p)},l=function(p){return s.call(p)=="[object Array]"},a=function(p){return s.call(p)=="[object Date]"},d=function(p){return s.call(p)=="[object RegExp]"},h=function(p){return s.call(p)=="[object Boolean]"},D=function(p){return p=p-0,p===p},g=function(p,m){var y=m&&"process"in m?m.process:m;return typeof y!="function"?p:function(C,w){return y(C,p,w)}},A={camelize:u,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(p,m){return n(g(u,m),p)},decamelizeKeys:function(p,m){return n(g(o,m),p,m)},pascalizeKeys:function(p,m){return n(g(i,m),p)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=A:t.humps=A})(ut)})(Qn);var yu={};Object.defineProperty(yu,"__esModule",{value:!0});function Yn(e){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map(t=>typeof t!="object"||t===null?t:Yn(t));{const t={};for(const n in e){const r=e[n];t[n]=typeof r!="object"||r===null?r:Yn(r)}return t}}var sf=yu.default=Yn;function te(e){if(e!==void 0)return typeof e=="object"?sf(e):e}function Le(e){return Object.prototype.toString.call(e)==="[object Object]"}function cf(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}function gt(e){return Array.isArray(e)}function we(e){return typeof e=="string"}function cn(e){return typeof e=="number"}function Eu(e){return typeof e=="function"}function lf(e){return gt(e)&&e.every(function(t){return we(t)})}function ff(e){return gt(e)&&e.every(function(t){return cn(t)||t===""})}function Au(e){return/^\[.*?]$/.test(e)}function ln(e){return/^{.*?}$/.test(e)}function df(e){return Object.values(oe).includes(e)}function er(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 hf(e){if(Array.isArray(e))return er(e)}function Cu(e,t,n,r,u,i,o){try{var s=e[i](o),c=s.value}catch(f){n(f);return}s.done?t(c):Promise.resolve(c).then(r,u)}function pf(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(c){Cu(i,r,u,o,s,"next",c)}function s(c){Cu(i,r,u,o,s,"throw",c)}o(void 0)})}}function Df(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fu(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 gf(e,t,n){return t&&Fu(e.prototype,t),n&&Fu(e,n),e}function wu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vf(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mf(){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 tr(e){return hf(e)||vf(e)||yf(e)||mf()}function yf(e,t){if(!!e){if(typeof e=="string")return er(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 er(e,t)}}function Ef(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(f){return function(l){return c([f,l])}}function c(f){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=f[0]&2?r.return:f[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,f[1])).done)return u;switch(r=0,u&&(f=[f[0]&2,u.value]),f[0]){case 0:case 1:u=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,r=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!u||f[1]>u[0]&&f[1]<u[3])){o.label=f[1];break}if(f[0]===6&&o.label<u[1]){o.label=u[1],u=f;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(f);break}u[2]&&o.ops.pop(),o.trys.pop();continue}f=t.call(e,o)}catch(l){f=[6,l],r=0}finally{n=u=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}var bu=function(){function e(){Df(this,e),wu(this,"_events",new Map),wu(this,"debug",!1)}return gf(e,[{key:"emit",value:function(n){for(var r=arguments.length,u=new Array(r>1?r-1:0),i=1;i<r;i++)u[i-1]=arguments[i];var o=this;return pf(function(){var s,c,f,l,a,d,h,D,g,A,p,m;return Ef(this,function(y){switch(y.label){case 0:if(s=o._events.get(n),c=[],!s)return[3,10];f=s.slice(),l=!0,a=!1,d=void 0,y.label=1;case 1:y.trys.push([1,8,9,10]),h=f[Symbol.iterator](),y.label=2;case 2:if(l=(D=h.next()).done)return[3,7];if(g=D.value,!s.includes(g))return[3,6];y.label=3;case 3:return y.trys.push([3,5,,6]),o.debug&&Jn.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(g.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+g.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(u.map(function(){return"%o"}).join(","),"\u3002")].concat(tr(u))),[4,g.apply(null,tr(u))];case 4:return A=y.sent(),o.debug&&Jn.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(g.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+g.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(u.map(function(){return"%o"}).join(","),"; \u51FD\u6570\u7684\u8FD4\u56DE\u7ED3\u679C\u4E3A%o")].concat(tr(u),[A])),c.push(A),A===!1?[3,7]:[3,6];case 5:return p=y.sent(),sn(String(p)+":"+String(p.stack)),[3,6];case 6:return l=!0,[3,2];case 7:return[3,10];case 8:return m=y.sent(),a=!0,d=m,[3,10];case 9:try{!l&&h.return!=null&&h.return()}finally{if(a)throw d}return[7];case 10:return[2,c]}})})()}},{key:"on",value:function(n,r){if(this._events.has(n)){var u;(u=this._events.get(n))===null||u===void 0||u.push(r)}else this._events.set(n,[r])}},{key:"off",value:function(n,r){if(this._events.has(n)){var u=this._events.get(n),i=u==null?void 0:u.indexOf(r);u==null||u.splice(i,1)}}},{key:"delete",value:function(n){this._events.has(n)&&this._events.delete(n)}},{key:"clear",value:function(){this._events=new Map}}]),e}();function Af(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bu(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 Cf(e,t,n){return t&&Bu(e.prototype,t),n&&Bu(e,n),e}function Ff(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wf=[{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_list_before_insert",name:"\u5217\u8868\u6570\u636E\u63D2\u5165\u524D",code:"list-before-insert"},{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_render_operation",name:"\u64CD\u4F5C\u5217\u6E32\u67D3\u65F6",code:"list-render-operation"},{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"},{key:"on_change_tab",name:"\u6807\u7B7E\u9875\u5207\u6362\u65F6",code:"change-tab"},{key:"on_modal_ok",name:"\u5F39\u7A97\u786E\u8BA4\u65F6",code:"modal-ok"}],_u=function(){function e(){Af(this,e)}return Cf(e,null,[{key:"getEventsFromKeys",value:function(n){var r=typeof n=="string"?[n]:n;return e.events.filter(function(u){return r.includes(u.key)})}},{key:"getEventsFromControl",value:function(n){var r=[],u=n.eventKeys;r=r.concat(e.events.filter(function(o){return u.includes(o.key)}));var i=n.customEvents.map(function(o){var s=o.key;return o.namespace!==void 0&&o.namespace!==null&&o.namespace!==""&&(s=o.namespace+":"+o.key),{key:s,code:o.key,name:o.name}});return r=r.concat(i),r}}]),e}();Ff(_u,"events",wf);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 bf(e){if(Array.isArray(e))return nr(e)}function Bf(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _f(){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 Su(e){return bf(e)||Bf(e)||Sf(e)||_f()}function Sf(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)}}function rr(e,t){var n;!((n=Object.getOwnPropertyDescriptors(e)[t])===null||n===void 0)&&n.enumerable&&Object.defineProperty(e,t,{enumerable:!1})}function Mu(e,t,n){n==="Designer"&&(e.parent=t,rr(e,"parent"))}function Mf(e,t,n){e.forEach(function(r){Mu(r,t,n)})}var Iu=Symbol("targetKey");function Nu(e){var t;return(t=e[Iu])!==null&&t!==void 0?t:e}function Ou(e,t,n){return Mf(e,t,n),new Proxy(e,{get:function(u,i){for(var o=arguments.length,s=new Array(o>2?o-2:0),c=2;c<o;c++)s[c-2]=arguments[c];var f;return i===Iu?u:(f=Reflect).get.apply(f,[u,i].concat(Su(s)))},set:function(u,i,o){for(var s=arguments.length,c=new Array(s>3?s-3:0),f=3;f<s;f++)c[f-3]=arguments[f];var l;if(gt(e)&&i==="length"&&o===e.length)return!0;var a=(l=Reflect).set.apply(l,[u,i,o].concat(Su(c)));return Le(o)&&Mu(o,t,n),a}})}function ur(e,t,n,r,u){var i=r!=null?r:e,o=Ou(Nu(n!=null?n:[]),i,u);Object.defineProperty(e,t,{get:function(){return o},set:function(c){o=Ou(Nu(c),i,u)},enumerable:!0})}function If(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xu(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 Nf(e,t,n){return t&&xu(e.prototype,t),n&&xu(e,n),e}function it(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ru=[],Ht=function(){function e(t){If(this,e),it(this,"registeredControlTypes",new Set),it(this,"controlConfigMap",new Map),it(this,"_controls",[]),it(this,"_type",void 0),this._type=t,this._initControls(t)}return Nf(e,[{key:"registerControlConfig",value:function(n,r){return this.controlConfigMap.set(n,r),this}},{key:"getControlConfig",value:function(n){return this.controlConfigMap.get(n)}},{key:"getControls",value:function(){return this._controls}},{key:"register",value:function(n){n.__is_control__||Xe("".concat(n.name," is not a Control"));var r=this._controls.findIndex(function(u){return u.controlType===n.controlType});return r>-1&&(rt("The ".concat(n.controlType," is repeat register, So it overwrites the one that was registered before.")),this._controls.splice(r,1)),this.registeredControlTypes.add(n.controlType),this._controls.push(n),this}},{key:"isLayoutControl",value:function(n){return n.controlType===G.LAYOUT}},{key:"isFormControl",value:function(n){return n.controlType===G.FORM}},{key:"isListControl",value:function(n){return n.controlType===G.LIST}},{key:"isColumnControl",value:function(n){return n.controlType===G.COLUMN}},{key:"createControl",value:function(n,r){var u=this;if(Array.isArray(n))return n.map(function(l){return u.createControl(l,r)});if(n.children&&(n.children=n.children.map(function(l){return u.createControl(l,r)})),this.isListControl(n)){var i=n.props;i.headers&&(i.headers=i.headers.map(function(l){return u.createControl(l,r)})),i.footers&&(i.footers=i.footers.map(function(l){var a;return l&&(a=u.createControl(l,r)),a}))}var o=this.getControlFormType(n.type);if(o){var s=n;if(typeof r=="function"){var c=r(s);c&&(s=c)}var f;return o.mode==="Runtime"?(f=s,f.fieldType=o.controlFieldType,this._setParentPrototypeToSchema(f,this)):f=new o(s),f}else Xe("The constructor of ".concat(n.type," could not be found, please confirm that the constructor has been registered"))}},{key:"resetInstanceParent",value:function(n,r){delete n.parent,Object.defineProperty(n,"parent",{configurable:!0,get:function(){return r}}),rr(n,"parent")}},{key:"_setParentPrototypeToSchema",value:function(n,r){r._type==="Runtime"&&(Object.defineProperty(n,"parent",{configurable:!0,get:function(){var i=n.id,o=r._controlParentIdMap,s=r.instanceMap;if(!(!o||!s)){var c=o[i],f=s[i];if(!(!c&&!f)){var l=f.findIndex(function(h){return h==n}),a=s[c]||[],d;return a.length!==f.length?d=a[0]:d=a[l],d}}}}),rr(n,"parent"))}},{key:"createControlInstance",value:function(n,r){var u=this.getControlFormType(n);if(u)return new u(r)}},{key:"getControlFormType",value:function(n){return this._controls.find(function(r){return r.controlType===n})}},{key:"_initControls",value:function(n){var r=this;this.constructor.staticControls.forEach(function(u){r.register(u[n]),e.staticControlsRuntimeRules.set(u.Runtime.controlType,u.Property.RuntimeRules),u.Property.mode=n})}}],[{key:"staticGetRules",value:function(n,r){var u=e.staticControlsRuntimeRules.get(n),i=[];if(u){var o=new u(r);i=Array.from(o)}return i}},{key:"register",value:function(n,r){var u=n.Designer,i=n.Runtime,o=n.Property;(!u||!i||!u.__is_control__||!i.__is_control__)&&Xe("".concat(n," is can't register as a Control"));var s=this.staticControls.findIndex(function(c){return c.Designer.controlType===u.controlType});return s>-1&&(rt("The ".concat(u.controlType," is repeat register, So it overwrites the one that was registered before.")),this.staticControls.splice(s,1)),this.staticRegisteredTypes.add(u.controlType),this.staticControls.push(n),o.mode=r,this}}]),e}();it(Ht,"staticControlsRuntimeRules",new Map),it(Ht,"staticControls",Ru),it(Ht,"staticRegisteredTypes",new Set(Ru.map(function(e){return e.Designer.controlType}))),it(Ht,"staticRegisteredConfigs",new Map);function vt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ir=function e(t){vt(this,e),ue(this,"dataCode",void 0),ue(this,"fieldCode",void 0),ue(this,"fieldType",void 0),ue(this,"aliasCode",void 0);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:"",this.aliasCode=t==null?void 0:t.aliasCode},Of=function e(t){vt(this,e),ue(this,"minWidth",void 0),ue(this,"maxWidth",void 0),ue(this,"flex",void 0);var n;this.minWidth=(n=t==null?void 0:t.minWidth)!==null&&n!==void 0?n:150,this.maxWidth=t==null?void 0:t.maxWidth;var r;this.flex=(r=t==null?void 0:t.flex)!==null&&r!==void 0?r:1},or=function e(t){vt(this,e),ue(this,"amount",void 0),ue(this,"currency",void 0);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:"CNY"},ar=function e(t){vt(this,e),ue(this,"min",void 0),ue(this,"max",void 0);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:""},sr=function e(t){vt(this,e),ue(this,"city",void 0),ue(this,"cityDisplay",void 0),ue(this,"district",void 0),ue(this,"districtDisplay",void 0),ue(this,"province",void 0),ue(this,"provinceDisplay",void 0);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:""},cr=function e(t){vt(this,e),ue(this,"result",void 0),ue(this,"unit",void 0);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:""},$u;(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"})($u||($u={}));var Pu;(function(e){e.DEFAULT_DISPLAY="defaultDisplay",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.VIEW_FORM_MODEL_TYPE="viewFormModelType",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",e.IS_PASTE="isPaste"})(Pu||(Pu={}));var lr;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.READONLY=1]="READONLY",e[e.EDITABLE=2]="EDITABLE",e[e.PRINT=5]="PRINT"})(lr||(lr={}));var xf=function e(t){vt(this,e),ue(this,"width",void 0),ue(this,"height",void 0),ue(this,"widthConfig",void 0),ue(this,"heightConfig",void 0);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 Rf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fn(e,t,n){return Tu()?fn=Reflect.construct:fn=function(u,i,o){var s=[null];s.push.apply(s,i);var c=Function.bind.apply(u,s),f=new c;return o&&Wt(f,o.prototype),f},fn.apply(null,arguments)}function ot(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zt(e){return zt=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},zt(e)}function $f(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&&Wt(e,t)}function Pf(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Tf(e,t){return t&&(jf(t)==="object"||typeof t=="function")?t:Rf(e)}function Wt(e,t){return Wt=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Wt(e,t)}function jf(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function dr(e){var t=typeof Map=="function"?new Map:void 0;return dr=function(r){if(r===null||!Pf(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 fn(r,arguments,zt(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),Wt(u,r)},dr(e)}function Tu(){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 Lf(e){var t=Tu();return function(){var r=zt(e),u;if(t){var i=zt(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Tf(this,u)}}var hr=function e(t){fr(this,e),ot(this,"isHide",{type:"boolean"})},ju=function(e){$f(n,e);var t=Lf(n);function n(r){return fr(this,n),t.call(this)}return n}(dr(Array)),Qe=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";fr(this,e),ot(this,"isHide",void 0),ot(this,"className",void 0),ot(this,"style",void 0),ot(this,"caption",void 0);var r;this.isHide=(r=t==null?void 0:t.isHide)!==null&&r!==void 0?r:!1,this.style=new xf(t==null?void 0:t.style);var u;this.caption=(u=t==null?void 0:t.caption)!==null&&u!==void 0?u:n};ot(Qe,"mode",void 0),ot(Qe,"Rules",hr),ot(Qe,"RuntimeRules",ju);function ze(){return ze=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},ze.apply(this,arguments)}function kf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function pr(e){return pr=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},pr(e)}function dn(e,t){return dn=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},dn(e,t)}function qf(){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 hn(e,t,n){return qf()?hn=Reflect.construct:hn=function(u,i,o){var s=[null];s.push.apply(s,i);var c=Function.bind.apply(u,s),f=new c;return o&&dn(f,o.prototype),f},hn.apply(null,arguments)}function Uf(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Dr(e){var t=typeof Map=="function"?new Map:void 0;return Dr=function(r){if(r===null||!Uf(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 hn(r,arguments,pr(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),dn(u,r)},Dr(e)}var Vf=/%[sdj%]/g,Lu=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(Lu=function(t,n){typeof console!="undefined"&&console.warn&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function gr(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 Ie(){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(Vf,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 Hf(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function de(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Hf(t)&&typeof e=="string"&&!e)}function zf(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 ku(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 Wf(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n])}),t}var qu=function(e){kf(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}(Dr(Error));function Zf(e,t,n,r){if(t.first){var u=new Promise(function(a,d){var h=function(A){return r(A),A.length?d(new qu(A,gr(A))):a()},D=Wf(e);ku(D,n,h)});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,f=[],l=new Promise(function(a,d){var h=function(g){if(f.push.apply(f,g),c++,c===s)return r(f),f.length?d(new qu(f,gr(f))):a()};o.length||(r(f),a()),o.forEach(function(D){var g=e[D];i.indexOf(D)!==-1?ku(g,n,h):zf(g,n,h)})});return l.catch(function(a){return a}),l}function Uu(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 Vu(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]=ze(ze({},e[n]),r):e[n]=r}}return e}function Hu(e,t,n,r,u,i){e.required&&(!n.hasOwnProperty(e.field)||de(t,i||e.type))&&r.push(Ie(u.messages.required,e.fullField))}function Gf(e,t,n,r,u){(/^\s+$/.test(t)||t==="")&&r.push(Ie(u.messages.whitespace,e.fullField))}var vr={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},Zt={integer:function(t){return Zt.number(t)&&parseInt(t,10)===t},float:function(t){return Zt.number(t)&&!Zt.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"&&!Zt.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&!!t.match(vr.email)&&t.length<255},url:function(t){return typeof t=="string"&&!!t.match(vr.url)},hex:function(t){return typeof t=="string"&&!!t.match(vr.hex)}};function Jf(e,t,n,r,u){if(e.required&&t===void 0){Hu(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?Zt[o](t)||r.push(Ie(u.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(Ie(u.messages.types[o],e.fullField,e.type))}function Xf(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,f=t,l=null,a=typeof t=="number",d=typeof t=="string",h=Array.isArray(t);if(a?l="number":d?l="string":h&&(l="array"),!l)return!1;h&&(f=t.length),d&&(f=t.replace(c,"_").length),i?f!==e.len&&r.push(Ie(u.messages[l].len,e.fullField,e.len)):o&&!s&&f<e.min?r.push(Ie(u.messages[l].min,e.fullField,e.min)):s&&!o&&f>e.max?r.push(Ie(u.messages[l].max,e.fullField,e.max)):o&&s&&(f<e.min||f>e.max)&&r.push(Ie(u.messages[l].range,e.fullField,e.min,e.max))}var bt="enum";function Kf(e,t,n,r,u){e[bt]=Array.isArray(e[bt])?e[bt]:[],e[bt].indexOf(t)===-1&&r.push(Ie(u.messages[bt],e.fullField,e[bt].join(", ")))}function Qf(e,t,n,r,u){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Ie(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(Ie(u.messages.pattern.mismatch,e.fullField,t,e.pattern))}}}var V={required:Hu,whitespace:Gf,type:Jf,range:Xf,enum:Kf,pattern:Qf};function Yf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(t,"string")&&!e.required)return n();V.required(e,t,r,i,u,"string"),de(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 e0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(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 t0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(t===""&&(t=void 0),de(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 n0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(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 r0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(t)&&!e.required)return n();V.required(e,t,r,i,u),de(t)||V.type(e,t,r,i,u)}n(i)}function u0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(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 i0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(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 o0(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 a0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(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 s0="enum";function c0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&V[s0](e,t,r,i,u)}n(i)}function l0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(t,"string")&&!e.required)return n();V.required(e,t,r,i,u),de(t,"string")||V.pattern(e,t,r,i,u)}n(i)}function f0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(t,"date")&&!e.required)return n();if(V.required(e,t,r,i,u),!de(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 d0(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 mr(e,t,n,r,u){var i=e.type,o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(de(t,i)&&!e.required)return n();V.required(e,t,r,o,u,i),de(t,i)||V.type(e,t,r,o,u)}n(o)}function h0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(t)&&!e.required)return n();V.required(e,t,r,i,u)}n(i)}var Gt={string:Yf,method:e0,number:t0,boolean:n0,regexp:r0,integer:u0,float:i0,array:o0,object:a0,enum:c0,pattern:l0,date:f0,url:mr,hex:mr,email:mr,required:d0,any:h0};function yr(){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 Er=yr();function at(e){this.rules=null,this._messages=Er,this.define(e)}at.prototype={messages:function(t){return t&&(this._messages=Vu(yr(),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 A,p=[],m={};function y(C){if(Array.isArray(C)){var w;p=(w=p).concat.apply(w,C)}else p.push(C)}for(A=0;A<g.length;A++)y(g[A]);p.length?m=gr(p):(p=null,m=null),s(p,m)}if(o.messages){var f=this.messages();f===Er&&(f=yr()),Vu(f,o.messages),o.messages=f}else o.messages=this.messages();var l,a,d={},h=o.keys||Object.keys(this.rules);h.forEach(function(g){l=u.rules[g],a=i[g],l.forEach(function(A){var p=A;typeof p.transform=="function"&&(i===t&&(i=ze({},i)),a=i[g]=p.transform(a)),typeof p=="function"?p={validator:p}:p=ze({},p),p.validator=u.getValidationMethod(p),p.field=g,p.fullField=p.fullField||g,p.type=u.getType(p),p.validator&&(d[g]=d[g]||[],d[g].push({rule:p,value:a,source:i,field:g}))})});var D={};return Zf(d,o,function(g,A){var p=g.rule,m=(p.type==="object"||p.type==="array")&&(typeof p.fields=="object"||typeof p.defaultField=="object");m=m&&(p.required||!p.required&&g.value),p.field=g.field;function y(S,I){return ze(ze({},I),{},{fullField:p.fullField+"."+S})}function C(S){S===void 0&&(S=[]);var I=S;if(Array.isArray(I)||(I=[I]),!o.suppressWarning&&I.length&&at.warning("async-validator:",I),I.length&&p.message!==void 0&&(I=[].concat(p.message)),I=I.map(Uu(p)),o.first&&I.length)return D[p.field]=1,A(I);if(!m)A(I);else{if(p.required&&!g.value)return p.message!==void 0?I=[].concat(p.message).map(Uu(p)):o.error&&(I=[o.error(p,Ie(o.messages.required,p.field))]),A(I);var j={};if(p.defaultField)for(var H in g.value)g.value.hasOwnProperty(H)&&(j[H]=p.defaultField);j=ze(ze({},j),g.rule.fields);for(var z in j)if(j.hasOwnProperty(z)){var x=Array.isArray(j[z])?j[z]:[j[z]];j[z]=x.map(y.bind(null,z))}var P=new at(j);P.messages(o.messages),g.rule.options&&(g.rule.options.messages=o.messages,g.rule.options.error=o.error),P.validate(g.value,g.rule.options||o,function(X){var Z=[];I&&I.length&&Z.push.apply(Z,I),X&&X.length&&Z.push.apply(Z,X),A(Z.length?Z:null)})}}var w;p.asyncValidator?w=p.asyncValidator(p,g.value,C,g.source,o):p.validator&&(w=p.validator(p,g.value,C,g.source,o),w===!0?C():w===!1?C(p.message||p.field+" fails"):w instanceof Array?C(w):w instanceof Error&&C(w.message)),w&&w.then&&w.then(function(){return C()},function(S){return C(S)})},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&&!Gt.hasOwnProperty(t.type))throw new Error(Ie("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"?Gt.required:Gt[this.getType(t)]||!1}},at.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Gt[t]=n},at.warning=Lu,at.messages=Er,at.validators=Gt;var p0={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 D0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new at(e);return n.messages(Object.assign(p0,t)),n}var g0=new bu;function Ar(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 v0(e){if(Array.isArray(e))return e}function m0(e){if(Array.isArray(e))return Ar(e)}function zu(e,t,n,r,u,i,o){try{var s=e[i](o),c=s.value}catch(f){n(f);return}s.done?t(c):Promise.resolve(c).then(r,u)}function Wu(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(c){zu(i,r,u,o,s,"next",c)}function s(c){zu(i,r,u,o,s,"throw",c)}o(void 0)})}}function y0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zu(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 E0(e,t,n){return t&&Zu(e.prototype,t),n&&Zu(e,n),e}function J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gu(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Ju(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function A0(){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 C0(){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 Xu(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){J(e,u,n[u])})}return e}function F0(e){return v0(e)||Ju(e)||Ku(e)||A0()}function Cr(e){return m0(e)||Ju(e)||Ku(e)||C0()}function Ku(e,t){if(!!e){if(typeof e=="string")return Ar(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 Ar(e,t)}}function Qu(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(f){return function(l){return c([f,l])}}function c(f){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=f[0]&2?r.return:f[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,f[1])).done)return u;switch(r=0,u&&(f=[f[0]&2,u.value]),f[0]){case 0:case 1:u=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,r=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!u||f[1]>u[0]&&f[1]<u[3])){o.label=f[1];break}if(f[0]===6&&o.label<u[1]){o.label=u[1],u=f;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(f);break}u[2]&&o.ops.pop(),o.trys.pop();continue}f=t.call(e,o)}catch(l){f=[6,l],r=0}finally{n=u=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}var ye=function(){function t(n){var r=this;y0(this,t),J(this,"id",void 0),J(this,"name",void 0),J(this,"icon",void 0),J(this,"type",void 0),J(this,"controlType",void 0),J(this,"props",void 0),J(this,"setting",[]),J(this,"fieldType",void 0),J(this,"eventKeys",[]),J(this,"customEvents",[]),J(this,"parent",null),J(this,"slots",void 0),J(this,"slotPosition",void 0),J(this,"updateSetting",ei),J(this,"removeSetting",Yu),this._callControlHooks("preInstance",n);var u=Gu(this,t)?this.constructor:void 0,i=u.controlName,o=u.controlIcon,s=u.controlType,c=u.controlFieldType,f=u.controlEventKeys,l=u.controlCustomEvents,a=u.name,d=u.setting,h=u.slots,D=u.slotPosition;i&&o&&s||Du("The ".concat(a," controlName,controlIcon,controlType is not define"));var g;this.id=(g=n==null?void 0:n.id)!==null&&g!==void 0?g:on(10),this.name=i,this.icon=o;var A;this.type=(A=n==null?void 0:n.type)!==null&&A!==void 0?A:s,this.props=new Qe(n==null?void 0:n.props,(Gu(this,t)?this.constructor:void 0).controlName);var p;this.controlType=(p=n==null?void 0:n.controlType)!==null&&p!==void 0?p:"base",this.setting=te(d);var m;this.fieldType=(m=n==null?void 0:n.fieldType)!==null&&m!==void 0?m:c,this.eventKeys=te(f),this.customEvents=te(l),this.slots=te(h),this.slotPosition=te(D),Promise.resolve().then(function(){r._callControlHooks("postInstance",n)})}return E0(t,[{key:"rules",get:function(){var r=this.props.constructor.Rules;return r?new r(this.props):{}}},{key:"_callControlHooks",value:function(){for(var r=arguments.length,u=new Array(r),i=0;i<r;i++)u[i]=arguments[i];var o,s=F0(u),c=s[0],f=s.slice(1);return(o=g0).emit.apply(o,[c,this].concat(Cr(f)))}},{key:"preUpdate",value:function(r,u){this._callControlHooks("preUpdateProps",r,u)}},{key:"postUpdate",value:function(r,u){this._callControlHooks("postUpdateProps",r,u)}},{key:"updateProps",value:function(r,u){this.preUpdate(r,u),Kn(this.props,r,u),this.postUpdate(r,u)}},{key:"preValidate",value:function(){var r=this;return Wu(function(){var u,i,o;return Qu(this,function(s){switch(s.label){case 0:return u=Xu({},r.rules),[4,r._callControlHooks("preValidate",u)];case 1:return i=s.sent(),o=i[i.length-1],[2,o===!1?void 0:o]}})})()}},{key:"validate",value:function(r,u){var i=this;return Wu(function(){var o,s,c,f;return Qu(this,function(l){switch(l.label){case 0:return[4,i.preValidate()];case 1:o=l.sent(),s=o!==void 0?o:Xu({},i.rules),Array.isArray(u)&&u.forEach(function(a){s.hasOwnProperty(a)&&delete s[a]}),c=D0(s,r),l.label=2;case 2:return l.trys.push([2,4,,5]),[4,c.validate(i.props)];case 3:return l.sent(),[2,!0];case 4:throw f=l.sent(),f.control||(f.control=i),f;case 5:return[2]}})})()}},{key:"toDataBindModel",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,u=this.fieldType,i=this.id,o=this.type,s=this.props,c=s.dataBind,f=s.datasourceBind,l=s.optionConfig,a=s.caption,d=s.required,h=s.maxLength,D=s.options,g=s.encrypted,A=s.encryptedMode;if(!(!u&&!c&&!f)){var p={parentId:r,fieldType:u,controlId:i,caption:a,type:o,props:{}};switch(c&&(p.dataBind=c),l){case"datasource":case void 0:f&&(p.datasourceBind=f);break;case"custom":p.props.options=D;break}return d!==void 0&&(p.required=d),h!==void 0&&(p.maxLength=h),g!==void 0&&(p.encrypted=g),A!==void 0&&(p.encryptedMode=A),p}}},{key:"preToSchema",value:function(){this._callControlHooks("preToSchema",this)}},{key:"toSchema",value:function(){return this.preToSchema(),{id:this.id,type:this.type,props:te(this.props),fieldType:this.fieldType,controlType:this.controlType}}}],[{key:"updateBasicControl",value:function(r,u){if(r==="setting"){if(u.add){var i;(i=this.setting).push.apply(i,Cr(u.add))}u.remove&&this.removeSettingItem(u.remove),u.update}}}]),t}();J(ye,"mode","Designer"),J(ye,"slots",void 0),J(ye,"slotPosition",void 0),J(ye,"controlName","\u63A7\u4EF6"),J(ye,"controlIcon","icon"),J(ye,"controlType","control"),J(ye,"controlFieldType",void 0),J(ye,"controlEventKeys",[]),J(ye,"controlCustomEvents",[]),J(ye,"setting",[]),J(ye,"__is_control__",!0),J(ye,"removeSettingItem",Yu),J(ye,"updateSettingItem",ei);function Yu(e){var t=this,n=Array.isArray(e)?e:[e];n.forEach(function(r){var u,i=typeof r!="string",o=(u=t.setting)===null||u===void 0?void 0:u.findIndex(function(f){return f.key===(i?r.key:r)});if(o!==-1){var s,c;i?t.setting[o].showItems=(s=t.setting[o].showItems)===null||s===void 0?void 0:s.filter(function(f){return!r.hideItems.includes(f)}):t.setting.splice(o,1),i&&!(!((c=t.setting[o].showItems)===null||c===void 0)&&c.length)&&t.setting.splice(o,1)}})}function ei(e,t){var n=this,r=typeof e=="string"?[e]:e;r.forEach(function(u){var i=n.setting.find(function(f){return f.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,Cr(t.showItems))}}}})}function w0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ti(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 b0(e,t,n){return t&&ti(e.prototype,t),n&&ti(e,n),e}function Ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B0(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var Jt=function(){function t(n){w0(this,t),Ne(this,"id",void 0),Ne(this,"type",void 0),Ne(this,"controlType",void 0),Ne(this,"props",void 0),Ne(this,"fieldType",void 0),Ne(this,"customEvents",[]),Ne(this,"pageStatus",void 0),Ne(this,"parent",null);var r=B0(this,t)?this.constructor:void 0,u=r.controlType,i=r.controlFieldType,o=r.name,s=r.controlCustomEvents;u||Du("The ".concat(o," controlType is not define"));var c;this.id=(c=n==null?void 0:n.id)!==null&&c!==void 0?c:on(10);var f;this.type=(f=n==null?void 0:n.type)!==null&&f!==void 0?f:u,this.props=new Qe(n==null?void 0:n.props),this.customEvents=s;var l;this.controlType=(l=n==null?void 0:n.controlType)!==null&&l!==void 0?l:"base";var a;this.fieldType=(a=n==null?void 0:n.fieldType)!==null&&a!==void 0?a:i;var d;this.pageStatus=(d=n==null?void 0:n.pageStatus)!==null&&d!==void 0?d:lr.UNKNOWN}return b0(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}();Ne(Jt,"mode","Runtime"),Ne(Jt,"controlType","control"),Ne(Jt,"controlFieldType",void 0),Ne(Jt,"__is_control__",!0),Ne(Jt,"controlCustomEvents",[]);function Oe(e){return(e==null?void 0:e.dataCode)!==void 0&&(e==null?void 0:e.fieldCode)!==void 0}function he(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pn(e){return pn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},pn(e)}function wr(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&&br(e,t)}function _0(e,t){return t&&(S0(t)==="object"||typeof t=="function")?t:he(e)}function br(e,t){return br=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},br(e,t)}function S0(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function M0(){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 Br(e){var t=M0();return function(){var r=pn(e),u;if(t){var i=pn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return _0(this,u)}}var I0=function(e){wr(n,e);var t=Br(n);function n(r){Fr(this,n);var u;u=t.call(this,r),ce(he(u),"dataBind",{}),ce(he(u),"caption",{type:"string",required:!0,message:Me.getMessage("pleaseEnterCaption")}),ce(he(u),"isHideCaption",{type:"boolean"}),ce(he(u),"labelPosition",{type:"enum",enum:["top","left"]}),ce(he(u),"defaultState",{type:"enum",enum:["default","readonly"]}),ce(he(u),"required",{type:"boolean"}),ce(he(u),"captionTip",{type:"string",required:!1,message:Me.getMessage("pleaseEnterCaptionTip")});var i={fieldCode:{type:"string",required:!0,message:Me.getMessage("pleaseEnterFieldCode")},dataCode:{type:"string",required:!0,message:Me.getMessage("pleaseEnterFieldCode")}};if(Oe(r.dataBind))u.dataBind={type:"object",required:!0,fields:te(i),message:Me.getMessage("pleaseEnterFieldCode")};else{var o={type:"object",required:!0,fields:{},message:Me.getMessage("pleaseEnterFieldCode")};Object.keys(r.dataBind).forEach(function(s){o.fields[s]={type:"object",required:!0,fields:te(i),message:Me.getMessage("pleaseEnterFieldCode")}}),u.dataBind=o}return r.isShowCaptionTip&&(u.captionTip.required=!0),u}return n}(hr),N0=function(e){wr(n,e);var t=Br(n);function n(r){Fr(this,n);var u;u=t.call(this,r);var i=r.isHide?!1:r.required;return i&&u.push({type:"string",required:i,message:r.requiredMessage!==""?r.requiredMessage:Me.getMessage("runtimeRequired",{caption:r.caption})}),u}return n}(ju),_r=function(e){wr(n,e);var t=Br(n);function n(r){Fr(this,n);var u;u=t.call(this,r),ce(he(u),"caption",void 0),ce(he(u),"isHideCaption",void 0),ce(he(u),"isShowCaptionTip",void 0),ce(he(u),"captionTip",void 0),ce(he(u),"labelPosition",void 0),ce(he(u),"dataBind",void 0),ce(he(u),"defaultValue",void 0),ce(he(u),"placeholder",void 0),ce(he(u),"defaultState",void 0),ce(he(u),"required",void 0),ce(he(u),"requiredMessage",void 0);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 f;u.defaultState=(f=r==null?void 0:r.defaultState)!==null&&f!==void 0?f:"default";var l;u.labelPosition=(l=r==null?void 0:r.labelPosition)!==null&&l!==void 0?l:"top";var a;u.placeholder=(a=r==null?void 0:r.placeholder)!==null&&a!==void 0?a:"";var d;u.required=(d=r==null?void 0:r.required)!==null&&d!==void 0?d:!1;var h;u.requiredMessage=(h=r==null?void 0:r.requiredMessage)!==null&&h!==void 0?h:"",u.dataBind=new ir(r==null?void 0:r.dataBind);var D;return u.defaultValue=(D=r==null?void 0:r.defaultValue)!==null&&D!==void 0?D:"",u}return n}(Qe);ce(_r,"Rules",I0),ce(_r,"RuntimeRules",N0);function Sr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gn(e){return gn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},gn(e)}function x0(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&&Mr(e,t)}function R0(e,t){return t&&($0(t)==="object"||typeof t=="function")?t:Sr(e)}function Mr(e,t){return Mr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Mr(e,t)}function $0(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function P0(){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 T0(e){var t=P0();return function(){var r=gn(e),u;if(t){var i=gn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return R0(this,u)}}var ni=function(e){x0(n,e);var t=T0(n);function n(r){O0(this,n);var u;return u=t.call(this,r),Dn(Sr(u),"controlType","form"),Dn(Sr(u),"props",void 0),u.props=new _r(r==null?void 0:r.props),u}return n}(ye);Dn(ni,"controlEventKeys",["on_change","on_focus","on_blur"]),Dn(ni,"controlCustomAttributes",void 0);function j0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vn(e){return vn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},vn(e)}function k0(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&&Ir(e,t)}function q0(e,t){return t&&(U0(t)==="object"||typeof t=="function")?t:j0(e)}function Ir(e,t){return Ir=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Ir(e,t)}function U0(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function V0(){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 H0(e){var t=V0();return function(){var r=vn(e),u;if(t){var i=vn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return q0(this,u)}}var z0=function(e){k0(n,e);var t=H0(n);function n(r){return L0(this,n),t.call(this,r)}return n}(Qe);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 W0(e){if(Array.isArray(e))return Nr(e)}function mt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ri(e,t,n,r,u,i,o){try{var s=e[i](o),c=s.value}catch(f){n(f);return}s.done?t(c):Promise.resolve(c).then(r,u)}function Z0(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(c){ri(i,r,u,o,s,"next",c)}function s(c){ri(i,r,u,o,s,"throw",c)}o(void 0)})}}function G0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ui(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 J0(e,t,n){return t&&ui(e.prototype,t),n&&ui(e,n),e}function st(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bt(e,t,n){return typeof Reflect!="undefined"&&Reflect.get?Bt=Reflect.get:Bt=function(u,i,o){var s=ud(u,i);if(!!s){var c=Object.getOwnPropertyDescriptor(s,i);return c.get?c.get.call(o||u):c.value}},Bt(e,t,n||e)}function ct(e){return ct=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ct(e)}function X0(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 K0(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Q0(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Y0(){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 ed(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){st(e,u,n[u])})}return e}function td(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 nd(e,t){return t=t!=null?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):td(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function rd(e,t){return t&&(id(t)==="object"||typeof t=="function")?t:mt(e)}function Or(e,t){return Or=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Or(e,t)}function ud(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=ct(e),e!==null););return e}function ii(e){return W0(e)||Q0(e)||od(e)||Y0()}function id(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function od(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)}}function ad(){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 sd(e){var t=ad();return function(){var r=ct(e),u;if(t){var i=ct(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return rd(this,u)}}function cd(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(f){return function(l){return c([f,l])}}function c(f){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=f[0]&2?r.return:f[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,f[1])).done)return u;switch(r=0,u&&(f=[f[0]&2,u.value]),f[0]){case 0:case 1:u=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,r=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!u||f[1]>u[0]&&f[1]<u[3])){o.label=f[1];break}if(f[0]===6&&o.label<u[1]){o.label=u[1],u=f;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(f);break}u[2]&&o.ops.pop(),o.trys.pop();continue}f=t.call(e,o)}catch(l){f=[6,l],r=0}finally{n=u=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}var ld=1e4,oi=function(t){X0(r,t);var n=sd(r);function r(u){G0(this,r);var i;i=n.call(this,u),st(mt(i),"controlType","layout"),st(mt(i),"children",void 0),st(mt(i),"excludes",void 0),st(mt(i),"childrenMaxLength",void 0),st(mt(i),"props",void 0);var o=K0(this,r)?this.constructor:void 0,s=o.excludes,c=o.childrenMaxLength;return i.props=new z0(u==null?void 0:u.props),ur(mt(i),"children",u==null?void 0:u.children,void 0,"Designer"),i.excludes=te(s),i.childrenMaxLength=c,i}return J0(r,[{key:"judgeExcludesChildren",value:function(i){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(i)}},{key:"judgeJoinChildren",value:function(i){var o=this.judgeExcludesChildren(i);return o&&this.childrenMaxLength>this.children.length}},{key:"validate",value:function(i,o){var s=this,c=this,f=function(){return Bt(ct(r.prototype),"validate",s)};return Z0(function(){return cd(this,function(l){switch(l.label){case 0:return[4,f().call(c,i,o)];case 1:return l.sent(),[4,Promise.all(c.children.map(function(a){return a.validate(i,o)}))];case 2:return l.sent(),[2,!0]}})})()}},{key:"toDataBindModel",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,o=Bt(ct(r.prototype),"toDataBindModel",this).call(this),s=o?[o]:[];return this.children.reduce(function(c,f){var l=f.toDataBindModel(i);if(Array.isArray(l)){var a=l.filter(function(d){return!!d});return ii(c).concat(ii(a))}return l&&c.push(l),c},s)}},{key:"toSchema",value:function(){var i=Bt(ct(r.prototype),"toSchema",this).call(this),o=this.children.map(function(s){var c=s.toSchema();return c});return nd(ed({},i),{children:o})}}]),r}(ye);st(oi,"excludes",!1),st(oi,"childrenMaxLength",ld);function Ye(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mn(e){return mn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},mn(e)}function dd(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&&xr(e,t)}function hd(e,t){return t&&(pd(t)==="object"||typeof t=="function")?t:Ye(e)}function xr(e,t){return xr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},xr(e,t)}function pd(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Dd(){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 gd(e){var t=Dd();return function(){var r=mn(e),u;if(t){var i=mn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return hd(this,u)}}var vd=function(e){dd(n,e);var t=gd(n);function n(r,u,i){fd(this,n);var o;o=t.call(this,u),_t(Ye(o),"headers",void 0),_t(Ye(o),"footers",void 0),_t(Ye(o),"pageIndex",void 0),_t(Ye(o),"pageSize",void 0),_t(Ye(o),"pageSizeOptions",void 0),_t(Ye(o),"totalCount",void 0),ur(Ye(o),"headers",u==null?void 0:u.headers,r,i),ur(Ye(o),"footers",u==null?void 0:u.footers,r);var s;o.pageIndex=(s=u==null?void 0:u.pageIndex)!==null&&s!==void 0?s:1;var c;o.pageSize=(c=u==null?void 0:u.pageSize)!==null&&c!==void 0?c:20;var f;o.pageSizeOptions=(f=u==null?void 0:u.pageSizeOptions)!==null&&f!==void 0?f:[20];var l;return o.totalCount=(l=u==null?void 0:u.totalCount)!==null&&l!==void 0?l:0,o}return n}(Qe);function Rr(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 md(e){if(Array.isArray(e))return Rr(e)}function yn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ai(e,t,n,r,u,i,o){try{var s=e[i](o),c=s.value}catch(f){n(f);return}s.done?t(c):Promise.resolve(c).then(r,u)}function yd(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(c){ai(i,r,u,o,s,"next",c)}function s(c){ai(i,r,u,o,s,"throw",c)}o(void 0)})}}function Ed(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function si(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 Ad(e,t,n){return t&&si(e.prototype,t),n&&si(e,n),e}function En(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function St(e,t,n){return typeof Reflect!="undefined"&&Reflect.get?St=Reflect.get:St=function(u,i,o){var s=_d(u,i);if(!!s){var c=Object.getOwnPropertyDescriptor(s,i);return c.get?c.get.call(o||u):c.value}},St(e,t,n||e)}function lt(e){return lt=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},lt(e)}function Cd(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&&$r(e,t)}function Fd(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wd(){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 ci(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){En(e,u,n[u])})}return e}function bd(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 li(e,t){return t=t!=null?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):bd(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function Bd(e,t){return t&&(Sd(t)==="object"||typeof t=="function")?t:yn(e)}function $r(e,t){return $r=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},$r(e,t)}function _d(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=lt(e),e!==null););return e}function fi(e){return md(e)||Fd(e)||Md(e)||wd()}function Sd(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Md(e,t){if(!!e){if(typeof e=="string")return Rr(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 Rr(e,t)}}function Id(){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 Nd(e){var t=Id();return function(){var r=lt(e),u;if(t){var i=lt(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Bd(this,u)}}function Od(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(f){return function(l){return c([f,l])}}function c(f){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=f[0]&2?r.return:f[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,f[1])).done)return u;switch(r=0,u&&(f=[f[0]&2,u.value]),f[0]){case 0:case 1:u=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,r=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!u||f[1]>u[0]&&f[1]<u[3])){o.label=f[1];break}if(f[0]===6&&o.label<u[1]){o.label=u[1],u=f;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(f);break}u[2]&&o.ops.pop(),o.trys.pop();continue}f=t.call(e,o)}catch(l){f=[6,l],r=0}finally{n=u=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}var xd=function(e){Cd(n,e);var t=Nd(n);function n(r){Ed(this,n);var u;return u=t.call(this,r),En(yn(u),"controlType","list"),En(yn(u),"props",void 0),u.props=new vd(yn(u),r==null?void 0:r.props,"Designer"),u}return Ad(n,[{key:"validate",value:function(u,i){var o=this,s=this,c=function(){return St(lt(n.prototype),"validate",o)};return yd(function(){return Od(this,function(f){switch(f.label){case 0:return[4,c().call(s,u)];case 1:return f.sent(),[4,Promise.all(s.props.headers.map(function(l){return l.validate(u,i)}))];case 2:return f.sent(),[2,!0]}})})()}},{key:"toDataBindModel",value:function(){var u=St(lt(n.prototype),"toDataBindModel",this).call(this),i=u?[u]:[],o=this.id;return this.props.headers.reduce(function(s,c){var f=c.toDataBindModel(o);if(Array.isArray(f)){var l=f.filter(function(a){return!!a});return fi(s).concat(fi(l))}return f&&s.push(f),s},i)}},{key:"toSchema",value:function(){var u,i,o=St(lt(n.prototype),"toSchema",this).call(this),s=this.props.headers.map(function(f){return f.toSchema()}),c=(i=this.props)===null||i===void 0||(u=i.footers)===null||u===void 0?void 0:u.map(function(f){if(f)return f.toSchema()});return li(ci({},o),{props:li(ci({},this.props),{headers:s,footers:c})})}}]),n}(ye);En(xd,"controlFieldType",ae.LIST);function xe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function di(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function An(e){return An=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},An(e)}function hi(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 Rd(e,t){return t&&($d(t)==="object"||typeof t=="function")?t:xe(e)}function Pr(e,t){return Pr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Pr(e,t)}function $d(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Pd(){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 pi(e){var t=Pd();return function(){var r=An(e),u;if(t){var i=An(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Rd(this,u)}}var Td=function(e){hi(n,e);var t=pi(n);function n(r){di(this,n);var u;return u=t.call(this,r),Re(xe(u),"caption",{type:"string",required:!0,message:Me.getMessage("pleaseEnterCaption")}),Re(xe(u),"width",{type:"number",required:!1,message:Me.getMessage("pleaseEnterColumnWidth")}),u.width.required=r.widthType==="px",u}return n}(hr),jd=function(e){hi(n,e);var t=pi(n);function n(r){di(this,n);var u;u=t.call(this,r),Re(xe(u),"widthType",void 0),Re(xe(u),"width",void 0),Re(xe(u),"caption",void 0),Re(xe(u),"dataBind",void 0),Re(xe(u),"autoWidth",void 0),Re(xe(u),"fixed",void 0),Re(xe(u),"sort",void 0),Re(xe(u),"align",void 0),Re(xe(u),"colSpan",void 0),Re(xe(u),"autoHeight",void 0);var i;u.width=(i=r==null?void 0:r.width)!==null&&i!==void 0?i:150,u.widthType=(r==null?void 0:r.widthType)||"auto";var o;u.caption=(o=r==null?void 0:r.caption)!==null&&o!==void 0?o:"";var s;u.fixed=(s=r==null?void 0:r.fixed)!==null&&s!==void 0?s:"none",u.autoWidth=new Of(r==null?void 0:r.autoWidth),u.dataBind=new ir(r==null?void 0:r.dataBind);var c;u.sort=(c=r==null?void 0:r.sort)!==null&&c!==void 0?c:!0,u.align=r==null?void 0:r.align,u.colSpan=r==null?void 0:r.colSpan;var f;return u.autoHeight=(f=r==null?void 0:r.autoHeight)!==null&&f!==void 0?f:!1,u}return n}(Qe);Re(jd,"Rules",Td);function Cn(e){return e.controlType===G.LAYOUT||e.controlType===G.WRAP||e.controlType===G.LIST||e.controlType===G.SEARCH}function yt(e,t){Array.isArray(e)&&e.map(n=>{n.type===oe.SUBTABLE?t(n,[]):Cn(n)?yt(n==null?void 0:n.children,t):n.controlType===G.FORM&&t(n)})}function Et(e,t){Array.isArray(e)&&e.map(n=>{n.type===oe.DATA_VIEW||n.type===oe.SIMPLE_SEARCH?t(n):Cn(n)&&Et(n==null?void 0:n.children,t)})}let Di=0;function Xt(e=""){const t=Date.now(),n=Math.floor(Math.random()*1e9);return Di++,e+"_"+n+Di+String(t)}class Ce extends Ht{constructor(t){super("Runtime"),this._flatInstances=[],this._instanceMap={},this._controlParentIdMap={};const{schema:n}=t;this._schema=n,this._instance=this.createControl(n,t.beforeCreateInstance),this.getFlatInstances()}getFlatInstances(){const t=[],n={},r={};return Fn(this._instance,"",(u,i)=>{i&&(r[u.id]=i),n[u.id]||(n[u.id]=[]),!(u.type==="subtable-column"&&n[u.id].length>0)&&(t.push(u),n[u.id].push(u))}),this._flatInstances=t,this._instanceMap=n,this._controlParentIdMap=r,this._flatInstances}get schema(){return this._schema}get instance(){return this._instance}get flatInstances(){return this._flatInstances}get instanceMap(){return this._instanceMap}get allRules(){let t={},n={},r={};return Et(this._instance,u=>{let i=Ce.staticGetRules(u.type,u.props);n[u.id]=te(i[0]),t[u.id]=te(i[0]),r[u.id]=te(i[0]),yt(u.children,o=>{(o.controlType===G.FORM||o.controlType===G.LIST)&&(vi(n[u.id].fields,o,!0),Ei(t[u.id].fields,o,!0),mi(r[u.id].fields,o,!0))})}),{rules:this.rules,antdRules:this.antdRules,fieldCodeRules:this.fieldCodeRules,defaultAntdRules:t,defaultRule:n,defaultFieldRules:r}}get rules(){let t={};return Et(this._instance,n=>{let r=Ce.staticGetRules(n.type,n.props);t[n.id]=r[0],yt(n.children,u=>{(u.controlType===G.FORM||u.controlType===G.LIST)&&vi(t[n.id].fields,u)})}),t}get fieldCodeRules(){let t={};return Et(this._instance,n=>{let r=Ce.staticGetRules(n.type,n.props);t[n.id]=r[0],yt(n.children,u=>{(u.controlType===G.FORM||u.controlType===G.LIST)&&mi(t[n.id].fields,u)})}),t}get antdRules(){let t={};return Et(this._instance,n=>{let r=Ce.staticGetRules(n.type,n.props);t[n.id]=r[0],yt(n.children,u=>{(u.controlType===G.FORM||u.controlType===G.LIST)&&Ei(t[n.id].fields,u)})}),t}}function Fn(e,t,n){(Array.isArray(e)?e:[e]).map(u=>{if(n(u,t),Cn(u)){const i=u;i.children||(i.children=[]),Fn(i.children,i.id,n)}gi(u,"headers")&&Fn(u.props.headers,u.id,n),gi(u,"footers")&&Fn(u.props.footers,u.id,n)})}function gi(e,t){return t in e.props&>(e.props[t])}function wn(e){return e.props.isHide?!0:e.parent===null||e.parent===void 0?!1:wn(e.parent)}function vi(e,t,n=!1){if(wn(t))return;let r=Ce.staticGetRules(t.type,t.props);if(t.controlType===G.FORM)e[t.id]=r;else if(t.type===oe.SUBTABLE){e[t.id]=r;const u={type:"array",fields:{}};(n===!0?[{children:t.props.headers}]:t.children).forEach((i,o)=>{Ke(i.children,s=>{if(u.fields){u.fields[o]||(u.fields[o]={type:"object",required:!0,fields:{}});let c=Ce.staticGetRules(s.type,s.props);u.fields[o].fields[s.id]=c}})}),e[t.id].push(u)}}function mi(e,t,n=!1){var u,i,o,s,c,f,l;if(wn(t))return;let r=Ce.staticGetRules(t.type,t.props);if(t.controlType===G.FORM)if(Oe(t.props.dataBind))((u=t.props.dataBind)==null?void 0:u.fieldCode)!=""&&(e[(i=t.props.dataBind)==null?void 0:i.fieldCode]=r);else for(const a in t.props.dataBind)((o=t.props.dataBind[a])==null?void 0:o.fieldCode)!=""&&(e[(s=t.props.dataBind[a])==null?void 0:s.fieldCode]=((c=yi(r))==null?void 0:c[a])||[]);else if(t.type===oe.SUBTABLE){e[(f=t.props.datasourceBind)==null?void 0:f.dataCode]=r;const a={type:"array",fields:{}};(n===!0?[{children:t.props.headers}]:t.children).forEach((d,h)=>{Ke(d.children,D=>{var g,A,p,m;if(a.fields){a.fields[h]||(a.fields[h]={type:"object",required:!0,fields:{}});let y=Ce.staticGetRules(D.type,D.props);if(Oe(D.props.dataBind))((p=D.props.dataBind)==null?void 0:p.fieldCode)!=""&&(a.fields[h].fields[(m=D.props.dataBind)==null?void 0:m.fieldCode]=y);else for(const C in D.props.dataBind)((g=D.props.dataBind[C])==null?void 0:g.fieldCode)!=""&&(a.fields[h].fields[D.props.dataBind[C].fieldCode]=((A=yi(y))==null?void 0:A[C])||[])}})}),e[(l=t.props.datasourceBind)==null?void 0:l.dataCode].push(a)}}function yi(e){let t={};return e.map(n=>{n.fields&&(t=n)}),t==null?void 0:t.fields}function Ei(e,t,n=!1){if(wn(t))return;let r=Ce.staticGetRules(t.type,t.props);t.controlType===G.FORM?e[t.id]=r:t.type===oe.SUBTABLE&&t.children.length&&(e[t.id]=[],(n===!0?[{children:t.props.headers}]:t.children).forEach(u=>{let i={};Ke(u.children,o=>{let s=Ce.staticGetRules(o.type,o.props);i[o.id]=s}),e[t.id].push(i)}))}class Ld{constructor(t){const{state:n,emptyState:r,databindMapping:u,controlidMapping:i,defaultState:o,subtableHeadersControlIdMapping:s}=kd(t.instance);this.emptyState=r,this.state=n,this.dataBindMapping=u,this.controlIdMapping=i,this.defaultState=o,this.subtableHeadersControlIdMapping=s}setState(t,n,r){const u=this.controlIdMapping[t];u!==void 0?(u.children&&n.forEach(i=>{i.uid||Object.assign(i,{uid:"new:"+Xt("uid")})}),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]&&(this.state[o][i][r][t]=n)})}):this.state[t]=n}getState(t,n){var u;if(this.state[t]!==void 0)return this.state[t];{const i=this.controlIdMapping[t];if(i!==void 0){const o=this.state[i.dataView][t];return n!==void 0&&Object.keys((u=i==null?void 0:i.children)!=null?u:{}).length>0?o[n]:o}else if(n!==void 0){let o;return Object.keys(this.controlIdMapping).map(s=>{const c=this.controlIdMapping[s].dataView,f=this.controlIdMapping[s].children;f!==void 0&&Object.keys(f).map(l=>{var a;l===t&&(o=(a=this.state[c][s][n])==null?void 0:a[t])})}),o}else{let o=[];return Object.keys(this.controlIdMapping).map(s=>{const c=this.controlIdMapping[s].dataView,f=this.controlIdMapping[s].children;f!==void 0&&Object.keys(f).map(l=>{l===t&&this.state[c][s].map(a=>{o.push(a[t])})})}),o}}}getEmptyState(t){if(this.emptyState[t]!==void 0)return this.emptyState[t];{const r=this.controlIdMapping[t];if(r!==void 0){const u=this.emptyState[r.dataView][t];return"children"in r&&Object.assign(u,{uid:"new:"+Xt("uid")}),u}else{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 kd(e){let t={},n={},r={},u={},i={},o={};return Et(e,s=>{const c=s.id,f={},l={};yt([s],(a,d)=>{qd(f,l,a),Ud(r,c,a),Vd(u,c,a),Hd(i,a)}),t[c]={},o[c]=f,n[c]=l}),{state:t,defaultState:o,subtableHeadersControlIdMapping:i,emptyState:n,databindMapping:r,controlidMapping:u}}function qd(e,t,n){var r,u;if(n.controlType===G.FORM)e[n.id]=te(n.props.defaultValue),t[n.id]=te(n.props.defaultValue);else{const i={};Ke(n.props.headers,o=>{i[o.id]=te(o.props.defaultValue)}),e[n.id]=(u=new Array((r=n.props.defaultRows)!=null?r:1).fill(0).map(()=>se({uid:"new:"+Xt("uid")},te(i))))!=null?u:[],t[n.id]=i}}function Ud(e,t,n){var r,u;if(n.controlType===G.FORM)Oe(n.props.dataBind)?((u=(r=n.props)==null?void 0:r.dataBind)==null?void 0:u.dataCode)===void 0||(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]})):Object.keys(n.props.dataBind).map(i=>{const o=n.props.dataBind,s=o[i].dataCode;s!==void 0&&(e[s]===void 0&&(e[s]={controlId:n.id,fields:[],dataViewId:t}),e[s].fields.push({fieldCode:o[i].fieldCode,controlId:n.id,dataBind:o,dataViewId:[t]}))});else{if(n.props.datasourceBind.dataCode===""){rt(`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 i=n.id;Ke(n.props.headers,o=>{Oe(o.props.dataBind)?e[o.props.dataBind.dataCode].fields.push({fieldCode:o.props.dataBind.fieldCode,controlId:o.id,dataBind:o.props.dataBind,dataViewId:[t,i]}):Object.keys(o.props.dataBind).map(s=>{const c=o.props.dataBind,f=c[s].dataCode;e[f].fields.push({fieldCode:c[s].fieldCode,controlId:o.id,dataBind:c,dataViewId:[t,i]})})})}}function Vd(e,t,n){n.controlType===G.FORM?e[n.id]={dataBind:n.props.dataBind,options:[],dataView:t}:n.type===oe.SUBTABLE&&(e[n.id]={dataBind:new ir({dataCode:n.props.datasourceBind.dataCode,fieldCode:""}),dataView:t,children:{},options:[]},Ke(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}})}))}function Hd(e,t){if(t.type===oe.SUBTABLE){const n={};t.props.headers.map(r=>{r.children.map(u=>{Object.assign(n,{[u.id]:u})})}),Object.assign(e,{[t.id]:n})}}const Ai=["splice","push","shift","pop","unshift","reverse"],Tr=Symbol("__engineProxy__"),jr=Symbol("__engineTarget__"),Ci=Symbol("__engineArrayBeforeSetCallbackFlag__"),Fi=Symbol("__engineProxyThisKey__"),ke={type:"",args:[],callback:wi};function wi(){}Jd();function zd(e,t,n,r,u){if(ke.type){ke.callback=u.bind(null,e,r);return}const i=Number(t);if(i>e.length){Xe(`Wrong array operations may cause unknown errors. It is recommended to use APIs such as ${Ai.join(",")} for array operations`);return}if(!(Number.isNaN(i)&&t!=="length"))if(t==="length"){const s=n,c=e.length;if(s>e.length){Xe("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 Wd(e,t,n){return{__engineProxy__:!0,get(r,u,i){return u===Tr?!0:u===jr?r:Array.isArray(r)&&u===Ci?n:u===Fi?e:Reflect.get(r,u,i)},set(r,u,i,o){var d;let s=i;const c=r[u],f=e===""?u:e+"."+u;function l(h){if(typeof h=="object"&&h!==null)return h[Tr]!==!0?bn(h,t,n,f):bn(h[jr],t,n,f)}s=(d=l(i))!=null?d:s;let a;if(Array.isArray(r)){const h=zd(r,u,i,e,t);a=Reflect.set(r,u,s,o),h&&h()}else{try{let h=s;if(s=n.call(null,r,f,s,c),h!==s){const D=l(s);D!==void 0&&(s=D)}}catch(h){return sn(`${f} set error ${h}`),!0}a=Reflect.set(r,u,s,o),t.call(null,r,f,i,c)}return a||!0}}}function bn(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]=bn(o,t,n,i))}return new Proxy(e,Wd(r,t,n))}function bi(e){const t=[];return e.forEach(n=>{t.push(n),(n.controlType==="layout"||n.controlType==="wrap")&&t.push(...bi(n.children))}),t}function Lr(e,t,n){if(t==="")return;const r=t.split(".");if(r.length===0)return;const u=r[0],i=r.slice(1),o=n[u]?n[u][0]:void 0;return i.length===0?o:i.reduce((s,c)=>{var a,d;const f=Number(c);if(Number.isNaN(f)&&s){const h=s!=null&&s.children?bi(s.children):void 0,D=h==null?void 0:h.find(g=>g.id===c);return D||(s.controlType===G.FORM?s:void 0)}else return(d=(a=s==null?void 0:s.children)==null?void 0:a[f])!=null?d:s},o)}function Zd(e,t){return["push","unshift"].includes(e)?t:e==="splice"?t.slice(2):[]}function Gd(e,t,n){if(["push","unshift"].includes(e))return n;if(e==="splice")return t.slice(0,2).concat(n)}function Jd(){Ai.forEach(e=>{const t=Array.prototype[e];Array.prototype[e]=function(...n){var r;if(this[Tr]){let u;const i=Zd(e,n);if(i.length){const o=(r=this[Ci])==null?void 0:r.call(this,this[jr],this[Fi],i),s=Gd(e,n,o);ke.type=e,ke.args=s,u=t.apply(this,s)}else ke.type=e,ke.args=n,u=t.apply(this,n);return typeof ke.callback=="function"&&ke.callback(e,n,u),ke.type="",ke.args=[],ke.callback=wi,u}else return t.apply(this,n)}})}class Xd{constructor(){this.actionMap=new Map,this.buildinActions={},this.actionUtils={},this.sources={}}execAction(t,n,...r){return Ge(this,null,function*(){const u=this.actionMap.get(t);if(!!u)try{return yield u.func.call(null,n,...r)}catch(i){sn(`${u.id} Exception during calling action: ${i}`)}})}addAction(t,n){this.actionMap.has(t)&&Xe("duplicated action key");const r=new Kd(t,n);this.actionMap.set(t,r)}}class Kd{constructor(t,n){this.id="",this.id=t,this.func=n}}class Qd{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 te(n)}remove(t){this._dataStore.delete(t)}getRemoteData(t){return Ge(this,null,function*(){return this.executer===void 0?(sn("\u672A\u521D\u59CB\u5316executer"),[]):this.executer(t)})}}class ft{}class Kt extends ft{validate(t){return we(t)}transform(t){if(t==null)return"";if(!Le(t)&&!Eu(t))return String(t);if(cf(t))return JSON.stringify(t);throw`${t} is not a string`}}class kr extends ft{validate(t){return cn(t)||t===""}transform(t){if(t==null)return"";const n=!Le(t)&&!Eu(t)?Number(t):void 0;if(!Number.isNaN(n)&&n!==void 0)return n;throw`${t} is not a number`}}class Yd extends ft{validate(t){return lf(t)}transform(t){if(t==null)return[];function n(r){return r.map(u=>u?String(u):"")}if(gt(t))return n(t);if(we(t)&&Au(t))try{const r=JSON.parse(t);if(Array.isArray(r))return n(r)}catch(r){}return[String(t)]}}class eh extends ft{validate(t){return ff(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(gt(t))return n(t);if(we(t)&&Au(t))try{const u=JSON.parse(t);if(gt(u))return n(u)}catch(u){}const r=Number(t);if(Number.isNaN(r))throw`${t} is not a number array`;return[r]}}class th extends ft{validate(t){return Le(t)&&"amount"in t&&cn(t.amount)&&"currency"in t&&we(t.currency)}transform(t,n){if(t==null||t==="")return new or({currency:n==null?void 0:n.currency});let r;if(Le(t)&&(r=new or(se(se({},n),t))),we(t)&&ln(t))try{const u=JSON.parse(t);r=new or(se(se({},n),u))}catch(u){}if(r){const u=new kr,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 nh extends ft{validate(t){return Le(t)&&"min"in t&&we(t.min)&&"max"in t&&we(t.max)}transform(t,n){if(t==null||t==="")return new ar;let r;if(Le(t)&&(r=new ar(se(se({},n),t))),we(t)&&ln(t))try{const u=JSON.parse(t);r=new ar(se(se({},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 rh extends ft{validate(t){return Le(t)&&"result"in t&&cn(t.result)&&"unit"in t&&we(t.unit)}transform(t,n){if(t==null||t==="")return new cr({unit:n==null?void 0:n.unit});let r;if(Le(t)&&(r=new cr(se(se({},n),t))),we(t)&&ln(t))try{const u=JSON.parse(t);r=new cr(se(se({},n),u))}catch(u){}if(r){const u=new kr,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 uh extends ft{validate(t){return!!Le(t)}transform(t,n){if(t==null||t==="")return new sr;let r;if(Le(t)&&(r=new sr(se(se({},n),Qn.exports.camelizeKeys(t)))),we(t)&&ln(t))try{const u=JSON.parse(t);r=new sr(se(se({},n),Qn.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 ih{static getValueChecker(t){let n;switch(t){case ae.VARCHAR:case ae.TIMESTAMP:case ae.TEXT:case ae.RELATION:case ae.AUTO_NUMBER:n=new Kt;break;case ae.DECIMAL:n=new kr;break;case ae.EMPLOYEES:case ae.DEPARTMENTS:case ae.IMAGE:case ae.FILE:case ae.ARRAY:n=new Yd;break;case ae.MONEY:n=new th;break;case ae.TIMESCOPE:n=new nh;break;case ae.CALC:n=new rh;break;case ae.DECIMAL_RANGE:n=new eh;break;case ae.ADDRESS:n=new uh;break}return n}}function oh(e){if(["min","max","currency","unit"].includes(e))return ae.VARCHAR;if(["result","amount"].includes(e))return ae.DECIMAL}function Bi(e,t,n,r){var o;let u=(o=oh(t))!=null?o:e,i=ih.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 ah(e,t,n){return Object.entries(e).reduce((r,[u,i])=>{const o=t[u];return r[u]=Bi(i,u,o,n[u]),r},Object.assign({},t))}typeof window!="undefined"&&(window.engines={});let Mt=null,Qt="";class qr extends bu{constructor(t){super(),this.rawStore={},this.isMounted=!1,this.id=on(8),this.__pluginsApplied=!1,this.actionManager=new Xd,this._jobTasks=[],this.createControlInstance=this.createInstance,this.$options=Object.freeze(t);const{autoMount:n=!0,schema:r,beforeCreateInstance:u,externalParams:i,language:o=iu,debug:s=!1}=this.$options;Me.setLocale(o),this.debug=s,this.runtime=new Ce({schema:r,beforeCreateInstance:u}),this.externalParams=i,this.store=new Ld({instance:this.runtime.instance}),this.debugLog("engine is Instantiation complete"),n&&this.mount()}debugLog(...t){this.debug&&Jn(...t)}use(t){return this.__pluginsApplied||this.__plugins.push(t),this}registerControl(...t){return this.runtime.register(...t),this}static register(t){return Ce.register(t,"Runtime")}static judgeControlIsRegistered(t){return Ce.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=bn(this.store.state,this._proxyStateCallback.bind(this),this._proxyStateBeforeSetCallback.bind(this))}_proxyStateBeforeSetCallback(t,n,r,u){const i=Lr(this.runtime.flatInstances,n,this.runtime.instanceMap);if(!i)return r;if(this.assertInstance(i,oe.SUBTABLE)){if(r===null)return[];const c=i.props.headers.reduce((l,a)=>{const d=a.children[0];return d&&d.controlType===G.FORM&&(l[d.id]=d.fieldType),l},{}),f=this.getEmptyState(i.id);return r==null?void 0:r.map(l=>ah(c,l,f))}const o=n.split("."),s=o[o.length-1];try{return Bi(i.fieldType,s,r,u)}catch(c){throw rt(`the id=${i.id}'s instance setState error, %o ${c}.`,r),c}}_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=Lr(this.runtime.flatInstances,n,this.runtime.instanceMap);if((o==null?void 0:o.controlType)!==G.LIST)return;const s=h=>{const D=[];for(let g=0;g<h;g++){const A=this.listControlCreateRow(o,"subtable-row");A&&D.push(A)}return D},c=Mt;let f=[],l=[],a=[],d=!1;if(r&&u){switch(r){case"push":case"unshift":const D=u.length;f=s(D),l=u,o.children[r](...f),this.runtime.getFlatInstances();break;case"splice":if(u.length>2){const g=u.length-2,A=u.slice(2);f=s(g),l=A;const p=u[0],m=u[1];o.children[r](p,m,...f),this.runtime.getFlatInstances()}else{const g=u[0],A=u[1];g+A===o.children.length-1&&(d=!0),o.children[r](...u),this.runtime.getFlatInstances()}break;default:o.children[r](...u),this.runtime.getFlatInstances();break}r==="splice"?a=i:["pop","shift"].includes(r)&&(a=[i]);const h=this.getState(o.id);this._handlerSubtableUpdateUid(h),this.emit("list-change",{instance:o,value:h,options:Object.assign({},c,{changed:f,data:l,deleted:a!=null?a:[],jsonValue:JSON.stringify(h),isDeleteLastOne:d,type:r,args:u})}),Mt=null}}_handlerSubtableUpdateUid(t){t.forEach(n=>{n.uid||Object.assign(n,{uid:"new:"+Xt("uid")})})}_handlerObjectUpdate(t,n,r,u){const i=Lr(this.runtime.flatInstances,n,this.runtime.instanceMap);if(!i)return;const o=this.getInstanceRowIndex(i),s=Mt||{};if(i.controlType===G.LIST&&i.type===oe.SUBTABLE){i.children.length=0;const c=r;let f=[];for(let a=0;a<c.length;a++){const d=this.listControlCreateRow(i,"subtable-row");d&&f.push(d)}i.children.push(...f),this.runtime.getFlatInstances();let l=u!=null?u:[];(s==null?void 0:s.setData)===!0&&(l=[]),this._handlerSubtableUpdateUid(c),this.emit("list-change",{instance:i,value:r,options:uu(se({},s),{changed:f,data:c,deleted:l,type:"push",jsonValue:JSON.stringify(c)})})}else this.emit("change",{instance:i,value:this.getState(i.id,o),rowIndex:o,options:uu(se({},s),{oldValue:u})})}applyPlugins(){this.__pluginsApplied||(this.__plugins.forEach(t=>{var n;try{Qt=(n=t.pluginName)!=null?n:t.constructor.name,t.apply(this)}catch(r){Xe(`${Qt} Plugin apply Error
|
|
2
2
|
${r}`)}finally{Qt=""}}),this.__pluginsApplied=!0)}listControlCreateRow(t,n){let r;if(n==="subtable-row"?r={children:[],controlType:G.LAYOUT,id:on(),type:"subtable-row",props:{caption:"",isHide:!1,style:{height:"",heightConfig:"fill",width:"",widthConfig:"fill"}},fieldType:void 0,customEvents:[],pageStatus:0,rules:[],parent:void 0}:r=this.runtime.createControlInstance(n),!!r){if(r.controlType===G.LAYOUT){const u=r,i=te(t.props.headers),o=this.createControl(i);for(let s of o)s.parent||this.runtime.resetInstanceParent(s,u);u.children.push(...o)}return r.parent=t,r}}listControlAddRow(t,n="subtable-row"){const r=this.listControlCreateRow(t,n);!r||t.children.push(r)}emit(t,n){return Ge(this,null,function*(){if(t==="engine-mounted"){if(this.isMounted)return rt("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 Ho(qr.prototype,this,"emit").call(this,t,n);return r&&u&&(r(),this._jobTasks.splice(this._jobTasks.indexOf(u),1)),i})}on(t,n){return Qt&&(n.applyingPluginName=Qt),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)}getRule(t,n){return Ce.staticGetRules(t,n)}getAllRules(t){var r,u;const n=this.runtime.allRules;return t===void 0?n:{rules:(r=n.rules[t])==null?void 0:r.fields,antdRules:(u=n.antdRules[t])==null?void 0:u.fields}}getRules(t,n=!1){var s,c,f,l,a,d,h;const r=this.runtime.rules,u=this.runtime.fieldCodeRules,i=this.store.controlIdMapping,o=n?u:r;if(t===void 0)return n?u:o;{if(t=n?(s=i[t])!=null&&s.children?(c=i[t].dataBind)==null?void 0:c.dataCode:((f=i[t].dataBind)==null?void 0:f.fieldCode)||t:t,t in o)return(l=o[t])==null?void 0:l.fields;let D;for(const g in o)if(t in(((a=o[g])==null?void 0:a.fields)||{})){D=(h=(d=o[g])==null?void 0:d.fields)==null?void 0:h[t];break}return D}}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 te(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!=null?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:f}=c;return this.getState(f)}return}const u=this.getDataBindMapping(t,n);if(!u)return;const{dataBind:i,controlId:o}=u,s=this.getState(o,r);return Oe(i)?s:Object.entries(i).reduce((c,[f,l])=>l.fieldCode===n?c[f]:c,s)}getData(t){var u,i,o,s,c,f,l,a;if(!t)return;let n=this.getDataBindMapping(t),r=this.getControlIdMapping();if(n){const{controlId:d}=n,h=this.getField(t);if(Array.isArray(h))return h.map(g=>{var p,m,y,C,w,S;let A={};for(let I in g){const j=(y=(m=(p=r[d])==null?void 0:p.children[I])==null?void 0:m.dataBind)==null?void 0:y.fieldCode;if(j!==""){if(j)A[j]=g[I];else if((C=r[d])!=null&&C.children[I])for(let H in g[I])A[(S=(w=r[d])==null?void 0:w.children[I])==null?void 0:S.dataBind[H].fieldCode]=g[I][H]}}return A});{let D={};for(let g in h)if((i=(u=r[g])==null?void 0:u.dataBind)!=null&&i.fieldCode)D[(o=r[g])==null?void 0:o.dataBind.fieldCode]=h[g];else if((c=(s=r[g])==null?void 0:s.dataBind)!=null&&c.dataCode)D[(f=r[g])==null?void 0:f.dataBind.dataCode]=h[g].map(A=>{var m,y;let p={};for(let C in A){const w=(m=r[g].children[C])==null?void 0:m.dataBind.fieldCode;if(w!=="")if(w)p[w]=A[C];else for(let S in A[C])p[(y=r[g].children[C])==null?void 0:y.dataBind[S].fieldCode]=A[C][S]}return p});else if(r[g])for(let A in h[g])D[(a=(l=r[g])==null?void 0:l.dataBind[A])==null?void 0:a.fieldCode]=h[g][A];return D}}}setField(t,n,r,u,i){var f;const o=this.getDataBindMapping(t,n);if(!o)return;const{dataBind:s,controlId:c}=o;if(Oe(s))this.setState(c,r,u,i);else{const l=(f=te(this.getState(c,u)))!=null?f:this.getEmptyState(c),a=Object.entries(s).reduce((d,[h,D])=>(D.fieldCode===n&&(d[h]=r),d),l);this.setState(c,a,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:f,fieldCode:l}=s;if(!o.includes(l)&&!!Object.hasOwnProperty.call(n,l))if(Oe(c))this.setState(f,n[l],r,u);else{const d=(a=te(this.getState(f,r)))!=null?a:this.getEmptyState(f),h=Object.entries(c).reduce((D,[g,A])=>{o.push(A.fieldCode);const p=n[A.fieldCode];return p!==void 0&&(D[g]=p),D},d);this.setState(s.controlId,h,r,u)}})}buildFields(t,n){const r=this.getDataBindMapping(t);if(!r||!r.fields)return;let u=[];const i={};return r.fields.forEach(o=>{const{dataBind:s,controlId:c,fieldCode:f}=o;if(!u.includes(f)&&!!Object.hasOwnProperty.call(n,f))if(Oe(s))i[c]=n[f];else{const l=this.getEmptyState(c);i[o.controlId]=Object.entries(s).reduce((a,[d,h])=>{u.push(h.fieldCode);const D=n[h.fieldCode];return D!==void 0&&(a[d]=D),a},l)}}),i}setData(t,n){this.debugLog("engine setData\u65B9\u6CD5\u6267\u884C\uFF0C\u53C2\u6570\u4E3A%o\uFF0C%o\u3002",t,n);const r=n==null?void 0:n.onlySetData;let u=this.store.defaultState;r===!0&&(u={}),Object.keys(t).map(i=>{var s,c,f,l;const o=t[i];if(Array.isArray(o)){const a=this.getDataBindMapping(i);if(!a)return;u[a.dataViewId]||(u[a.dataViewId]={}),o.length?u[a.dataViewId][a.controlId]=[]:u[a.dataViewId][a.controlId]=(s=u[a.dataViewId][a.controlId])!=null?s:[];let d={},h={};o.map(D=>{let g=te(this.store.emptyState[a.dataViewId][a.controlId]),A=[];Object.keys(D).map(p=>{var y,C,w;if(A.includes(p))return;h.hasOwnProperty(p)===!1&&(h[p]=(C=(y=this.store.dataBindMapping[i])==null?void 0:y.fields)==null?void 0:C.find(S=>S.fieldCode===p));const m=h[p];if(m){if(Oe(m.dataBind)&&D[p]!==void 0)g[m.controlId]=D[p];else if(!Oe(m.dataBind)){d.hasOwnProperty(m.controlId)===!1&&(d[m.controlId]=te((w=this.getEmptyState(m.controlId))!=null?w:{}));let S=te(d[m.controlId]);Object.keys(m.dataBind).map(I=>{const j=m.dataBind[I];D[j.fieldCode]!==void 0&&(S[I]=D[j.fieldCode]),A.push(j.fieldCode)}),g[m.controlId]=S}}else p==="uid"&&D.uid!==void 0?g.uid=D.uid:p==="virtualStore"&&D.virtualStore!==void 0&&(g.virtualStore=Object.freeze(D.virtualStore))}),u[a.dataViewId][a.controlId].push(g)})}else if(o){let a=[];const d=te(this.store.emptyState);(c=Object.keys(o))!=null&&c.length&&Object.keys(o).map(D=>{var A;if(a.includes(D))return;const g=this.getDataBindMapping(i,D);if(g){if(u[g.dataViewId[0]]||(u[g.dataViewId[0]]={}),Oe(g.dataBind)&&o[D]!==void 0)u[g.dataViewId[0]][g.controlId]=o[D]!==void 0?o[D]:d[g.dataViewId[0]][g.controlId];else if(!Oe(g.dataBind)){let p=(A=this.getEmptyState(g.controlId))!=null?A:{};Object.keys(g.dataBind).map(m=>{const y=g.dataBind[m];o[y.fieldCode]!==void 0&&(p[m]=o[y.fieldCode]),a.push(y.fieldCode)}),u[g.dataViewId[0]][g.controlId]=p}}});const h=this.getDataBindMapping(i);if(h){const D=(f=h==null?void 0:h.fields)==null?void 0:f.map(p=>p==null?void 0:p.controlId),g=this.getEmptyState(h==null?void 0:h.controlId),A=Object.keys((l=u==null?void 0:u[h==null?void 0:h.controlId])!=null?l:{});D==null||D.forEach(p=>{!A.includes(p)&&p!=="uid"&&u[h==null?void 0:h.controlId]&&(Object.keys(u).length?Object.assign(u[h==null?void 0:h.controlId],{[p]:g[p]}):Object.assign(u,{[h.controlId]:{[p]:g[p]}}))}),this.debugLog("engine setData\u65B9\u6CD5\u9ED8\u8BA4\u503C\u53CA\u8868\u5355\u6570\u636E\u7EC4\u5408\u5B8C\u6210\uFF0C\u53C2\u6570\u4E3A%o\u3002",u)}}}),this.debugLog("engine setData\u65B9\u6CD5\u6570\u636E\u7EC4\u5408\u5B8C\u6210\uFF0C\u53C2\u6570\u4E3A%o\u3002",u),this.setStates(u,void 0,se({setData:!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){if(t===void 0)return this.runtime.flatInstances;const r=Array.from(this.runtime.instanceMap[t]||[]);if(n&&r.length){const u=r[0],i=this.findSubtableHeadersControl(u.id);i!==void 0&&r.unshift(i)}return r}setInstance(t,n,r,u){try{if(typeof t=="string"&&u===-1)this.getInstances(t,u===-1).map(o=>{o&&(this.debugLog("[%o]: \u4FEE\u6539instance: %o\u7684%o\u5C5E\u6027\uFF0C\u4FEE\u6539\u7684\u503C\u4E3A%o\u3002",o.id,o,n,r),Kn(o.props,n,r),this.schemaEvent("schema-change",{instance:o,props:n,value:r,rowIndex:u}))});else{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),Kn(i.props,n,r),this.schemaEvent("schema-change",{instance:i,props:n,value:r,rowIndex:u})}}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){rt(`No corresponding dataCode=${t} was found`);return}if(!n)return r;const u=r.fields.find(i=>i.fieldCode===n);if(!u){rt(`No corresponding fieldCode=${n} was found`);return}return u}getAction(){return this.actionManager}initDataManager(t){this.dataManager=new Qd(t)}getDataManager(){return this.dataManager}assertInstance(t,n){return we(n)?t.type===n:n.includes(t.type)}assertInstanceIsCustomControl(t){return!df(we(t)?t:t.type)}getInstanceRowIndex(t){if(!t.parent)return;let n;if(this.assertInstance(t.parent,oe.SUBTABLE_COLUMN)&&this.assertInstance(t.parent.parent,oe.SUBTABLE))n=-1;else if(this.getInstanceParentControl(t,oe.SUBTABLE_COLUMN)){const i=this.runtime.instanceMap[t.id];if(Object.prototype.toString.call(i)==="[object Array]"){const o=i.findIndex(s=>s===t);o>-1&&(n=o)}}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,oe.SUBTABLE_COLUMN)?t:this.getInstanceParentControl(t,oe.SUBTABLE_COLUMN);if(!r)return;const i=this.getInstanceParentControl(t,oe.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)}inList(t){const n=this.store.subtableHeadersControlIdMapping;let r;for(const u in n)if(t in n[u]){r=u;break}return r}findSubtableHeadersControl(t){const n=this.store.subtableHeadersControlIdMapping;let r;for(const u in n)if(t in n[u]){r=n[u][t];break}return r}}class sh{}class ch{constructor(t,n,r){this.config=t,this.env=n,this.eventJs=r}apply(t){this.engine=t;const n=this.config;if(!n)return;const r=t.getAction();if(this.eventJs){this.eventJs.exportsFun({ctx:t,utils:r.actionUtils});for(let[u,i]of Object.entries(this.eventJs))r.addAction(u,i)}else{const u=_i(n,t,this.env);if(!u)return;for(let[i,o]of Object.entries(u.funcMap))r.addAction(i,o)}}}function _i(e,t,n){if(!e.module||!e.module.compiled)return;const r=e.module.compiled,u={exports:{ctx:t,utils:t.getAction().actionUtils,env:n}};try{new Function("module","exports",r).call(u,u,u.exports)}catch(s){Xe(s.message+". fail to parse the module"),process.env.NODE_ENV!=="production"&&Xe("fail to parse the module")}const i={},o={};for(const[s,c]of Object.entries(u.exports))typeof c=="function"?i[s]=c:o[s]=c;return{funcMap:i,variables:o}}const lh={"engine-mounted":"did_mount","engine-submit":"will_submit","engine-submit-params":"do_submit","engine-submitted":"did_submit"};class fh{constructor(t){this.config=t}apply(t){this.engine=t,Object.entries(lh).forEach(([n,r])=>{t.on(n,u=>Ge(this,null,function*(){const i=yield this.callLifecycleEvent(r,u);return i.includes(!1)?!1:i}))})}callLifecycleEvent(t,n){return Ge(this,null,function*(){const r=this.config;return!r||!Array.isArray(r[t])?[]:yield Promise.all(r[t].map(i=>Ge(this,null,function*(){return yield this.engine.getAction().execAction(i,n)})))})}}class dh{constructor(t,n){this.config=t,this.customEvents=n}apply(t){this.engine=t,_u.events.forEach(n=>{n.code&&n.key&&this.engineAddEventListener(n.code,n.key)}),this.customEvents.map(n=>{let r=n.key;n.namespace!==void 0&&n.namespace!==null&&n.namespace!==""&&(r=n.namespace+":"+n.key),this.engineAddEventListener(r,r)})}engineAddEventListener(t,n){this.engine.on(t,r=>Ge(this,null,function*(){if(!(t==="change"&&!this.engine.isMounted)&&r.instance!==void 0)return yield this.callControlEvent(n,r)}))}callControlEvent(t,n){return Ge(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=>Ge(this,null,function*(){return yield this.engine.getAction().execAction(i,n)})));return u.includes(!1)?!1:u})}}function Bn(){return Bn=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},Bn.apply(this,arguments)}var Si={epsilon:1e-12,matrix:"Matrix",number:"number",precision:64,predictable:!1,randomSeed:null};function Ee(e){return typeof e=="number"}function et(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 Mi(e){return e&&typeof e=="object"&&Object.getPrototypeOf(e).isComplex===!0||!1}function Ii(e){return e&&typeof e=="object"&&Object.getPrototypeOf(e).isFraction===!0||!1}function Ni(e){return e&&e.constructor.prototype.isUnit===!0||!1}function _n(e){return typeof e=="string"}var $e=Array.isArray;function It(e){return e&&e.constructor.prototype.isMatrix===!0||!1}function Ur(e){return Array.isArray(e)||It(e)}function hh(e){return e&&e.isDenseMatrix&&e.constructor.prototype.isMatrix===!0||!1}function ph(e){return e&&e.isSparseMatrix&&e.constructor.prototype.isMatrix===!0||!1}function Dh(e){return e&&e.constructor.prototype.isRange===!0||!1}function Oi(e){return e&&e.constructor.prototype.isIndex===!0||!1}function gh(e){return typeof e=="boolean"}function vh(e){return e&&e.constructor.prototype.isResultSet===!0||!1}function mh(e){return e&&e.constructor.prototype.isHelp===!0||!1}function yh(e){return typeof e=="function"}function Eh(e){return e instanceof Date}function Ah(e){return e instanceof RegExp}function xi(e){return!!(e&&typeof e=="object"&&e.constructor===Object&&!Mi(e)&&!Ii(e))}function Ch(e){return e===null}function Fh(e){return e===void 0}function wh(e){return e&&e.isAccessorNode===!0&&e.constructor.prototype.isNode===!0||!1}function bh(e){return e&&e.isArrayNode===!0&&e.constructor.prototype.isNode===!0||!1}function Bh(e){return e&&e.isAssignmentNode===!0&&e.constructor.prototype.isNode===!0||!1}function _h(e){return e&&e.isBlockNode===!0&&e.constructor.prototype.isNode===!0||!1}function Sh(e){return e&&e.isConditionalNode===!0&&e.constructor.prototype.isNode===!0||!1}function Mh(e){return e&&e.isConstantNode===!0&&e.constructor.prototype.isNode===!0||!1}function Ih(e){return e&&e.isFunctionAssignmentNode===!0&&e.constructor.prototype.isNode===!0||!1}function Nh(e){return e&&e.isFunctionNode===!0&&e.constructor.prototype.isNode===!0||!1}function Oh(e){return e&&e.isIndexNode===!0&&e.constructor.prototype.isNode===!0||!1}function xh(e){return e&&e.isNode===!0&&e.constructor.prototype.isNode===!0||!1}function Rh(e){return e&&e.isObjectNode===!0&&e.constructor.prototype.isNode===!0||!1}function $h(e){return e&&e.isOperatorNode===!0&&e.constructor.prototype.isNode===!0||!1}function Ph(e){return e&&e.isParenthesisNode===!0&&e.constructor.prototype.isNode===!0||!1}function Th(e){return e&&e.isRangeNode===!0&&e.constructor.prototype.isNode===!0||!1}function jh(e){return e&&e.isRelationalNode===!0&&e.constructor.prototype.isNode===!0||!1}function Lh(e){return e&&e.isSymbolNode===!0&&e.constructor.prototype.isNode===!0||!1}function kh(e){return e&&e.constructor.prototype.isChain===!0||!1}function Vr(e){var t=typeof e;return t==="object"?e===null?"null":et(e)?"BigNumber":e.constructor&&e.constructor.name?e.constructor.name:"Object":t}function At(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 At(n)});if(e instanceof Date)return new Date(e.valueOf());if(et(e))return e;if(xi(e))return qh(e,At);throw new TypeError("Cannot clone: unknown type of value (value: ".concat(e,")"))}function qh(e,t){var n={};for(var r in e)Sn(e,r)&&(n[r]=t(e[r]));return n}function Yt(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(!Yt(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)||!Yt(e[n],t[n]))return!1;for(n in t)if(!(n in e))return!1;return!0}else return e===t}}function Sn(e,t){return e&&Object.hasOwnProperty.call(e,t)}function Uh(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 Vh=["Matrix","Array"],Hh=["number","BigNumber","Fraction"],Ri=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": "2.10.0-alpha.
|
|
3
|
+
"version": "2.10.0-alpha.8",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "郝晨光 <2293885211@qq.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"postpublish": "node ../../scripts/postpublish.js"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@byteluck-fe/model-driven-core": "2.10.0-alpha.
|
|
30
|
-
"@byteluck-fe/model-driven-shared": "2.10.0-alpha.
|
|
29
|
+
"@byteluck-fe/model-driven-core": "2.10.0-alpha.8",
|
|
30
|
+
"@byteluck-fe/model-driven-shared": "2.10.0-alpha.8",
|
|
31
31
|
"@types/mathjs": "^9.4.2",
|
|
32
32
|
"mathjs": "^11.3.3"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/node": "~18.0.6"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "a9f162bf562e4cc6b50639ef2a94b1aee6c4b2fa"
|
|
38
38
|
}
|