@byteluck-fe/model-driven-core 2.5.0-alpha.1 → 2.5.0-alpha.10

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.
@@ -8,4 +8,5 @@ export * from "./WrapControl";
8
8
  export * from "./Validator";
9
9
  export * from "./ControlArray";
10
10
  export * from "./initOptionAndDataSourceRules";
11
+ export * from "./initLinkOperationRules";
11
12
  export * from "./controlHooksEmitter";
@@ -0,0 +1,17 @@
1
+ import { RulesMessage } from "@byteluck-fe/model-driven-shared";
2
+ export function initLinkOperationRules(props) {
3
+ if (props.hasOwnProperty("linkOperationOption") && props.hasOwnProperty("showLinkOperation") && props.showLinkOperation) {
4
+ this.linkOperationOption = [
5
+ {
6
+ type: "object",
7
+ fields: {
8
+ formKey: {
9
+ type: "string",
10
+ required: true,
11
+ message: RulesMessage.getMessage("pleaseEnterForm")
12
+ }
13
+ }
14
+ }
15
+ ];
16
+ }
17
+ }
@@ -551,6 +551,57 @@ export var DataSourceParamItem = function DataSourceParamItem(props) {
551
551
  this.svcCode = (_props_svcCode = props === null || props === void 0 ? void 0 : props.svcCode) !== null && _props_svcCode !== void 0 ? _props_svcCode : "";
552
552
  callFiltersAndOrders.call(this, props);
553
553
  };
554
+ export var SelectedContentConfig = function SelectedContentConfig(props) {
555
+ "use strict";
556
+ _classCallCheck(this, SelectedContentConfig);
557
+ /**
558
+ * 展示已选内容
559
+ * @defaultValue ''
560
+ * @public
561
+ */ _defineProperty(this, "dataCode", void 0);
562
+ /**
563
+ * 展示已选明细
564
+ * @defaultValue []
565
+ * @public
566
+ */ _defineProperty(this, "displayBoList", void 0);
567
+ var _props_dataCode;
568
+ this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
569
+ this.displayBoList = [];
570
+ };
571
+ export var LinkOperationOption = function LinkOperationOption(props) {
572
+ "use strict";
573
+ _classCallCheck(this, LinkOperationOption);
574
+ _defineProperty(this, "code", void 0);
575
+ _defineProperty(this, "color", void 0);
576
+ _defineProperty(this, "command", void 0);
577
+ _defineProperty(this, "confirmMessage", void 0);
578
+ _defineProperty(this, "defaultState", void 0);
579
+ _defineProperty(this, "formKey", void 0);
580
+ _defineProperty(this, "icon", void 0);
581
+ _defineProperty(this, "needConfirm", void 0);
582
+ _defineProperty(this, "openType", void 0);
583
+ _defineProperty(this, "priorityProcess", void 0);
584
+ var _props_code;
585
+ this.code = (_props_code = props === null || props === void 0 ? void 0 : props.code) !== null && _props_code !== void 0 ? _props_code : "view";
586
+ var _props_color;
587
+ this.color = (_props_color = props === null || props === void 0 ? void 0 : props.color) !== null && _props_color !== void 0 ? _props_color : "primary";
588
+ var _props_command;
589
+ this.command = (_props_command = props === null || props === void 0 ? void 0 : props.command) !== null && _props_command !== void 0 ? _props_command : "view";
590
+ var _props_confirmMessage;
591
+ this.confirmMessage = (_props_confirmMessage = props === null || props === void 0 ? void 0 : props.confirmMessage) !== null && _props_confirmMessage !== void 0 ? _props_confirmMessage : undefined;
592
+ var _props_defaultState;
593
+ this.defaultState = (_props_defaultState = props === null || props === void 0 ? void 0 : props.defaultState) !== null && _props_defaultState !== void 0 ? _props_defaultState : "default";
594
+ var _props_formKey;
595
+ this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : undefined;
596
+ var _props_icon;
597
+ this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : "iconliulan1";
598
+ var _props_needConfirm;
599
+ this.needConfirm = (_props_needConfirm = props === null || props === void 0 ? void 0 : props.needConfirm) !== null && _props_needConfirm !== void 0 ? _props_needConfirm : false;
600
+ var _props_openType;
601
+ this.openType = (_props_openType = props === null || props === void 0 ? void 0 : props.openType) !== null && _props_openType !== void 0 ? _props_openType : "modal";
602
+ var _props_priorityProcess;
603
+ this.priorityProcess = (_props_priorityProcess = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && _props_priorityProcess !== void 0 ? _props_priorityProcess : true;
604
+ };
554
605
  export var CustomAttributeItem = function CustomAttributeItem(props) {
555
606
  "use strict";
556
607
  _classCallCheck(this, CustomAttributeItem);
@@ -585,6 +636,27 @@ export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
585
636
  }
586
637
  return SuperDataSourceBind;
587
638
  }(DataSourceBind);
639
+ export var OrganizationDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
640
+ "use strict";
641
+ _inherits(OrganizationDataSourceBind, DataSourceBind);
642
+ var _super = _createSuper(OrganizationDataSourceBind);
643
+ function OrganizationDataSourceBind(props) {
644
+ _classCallCheck(this, OrganizationDataSourceBind);
645
+ var _this;
646
+ var _props_attributes;
647
+ _this = _super.call(this, props);
648
+ _defineProperty(_assertThisInitialized(_this), "attributes", void 0);
649
+ _defineProperty(_assertThisInitialized(_this), "formCode", void 0);
650
+ var _props_attributes_map;
651
+ _this.attributes = (_props_attributes_map = props === null || props === void 0 ? void 0 : (_props_attributes = props.attributes) === null || _props_attributes === void 0 ? void 0 : _props_attributes.map(function(item) {
652
+ return new CustomAttributeItem(item);
653
+ })) !== null && _props_attributes_map !== void 0 ? _props_attributes_map : [];
654
+ var _props_formCode;
655
+ _this.formCode = (_props_formCode = props === null || props === void 0 ? void 0 : props.formCode) !== null && _props_formCode !== void 0 ? _props_formCode : "";
656
+ return _this;
657
+ }
658
+ return OrganizationDataSourceBind;
659
+ }(DataSourceBind);
588
660
  export var TreeDataSourceBind = /*#__PURE__*/ function(SuperDataSourceBind) {
589
661
  "use strict";
590
662
  _inherits(TreeDataSourceBind, SuperDataSourceBind);
@@ -594,7 +666,9 @@ export var TreeDataSourceBind = /*#__PURE__*/ function(SuperDataSourceBind) {
594
666
  var _this;
595
667
  _this = _super.call(this, props);
596
668
  _defineProperty(_assertThisInitialized(_this), "rootNode", void 0);
669
+ _defineProperty(_assertThisInitialized(_this), "filterCode", void 0);
597
670
  _this.rootNode = new RightVariable(props === null || props === void 0 ? void 0 : props.rootNode);
671
+ _this.filterCode = "";
598
672
  return _this;
599
673
  }
600
674
  return TreeDataSourceBind;
package/dist/index.umd.js CHANGED
@@ -1 +1 @@
1
- var _s=Object.defineProperty,qs=Object.defineProperties;var Ps=Object.getOwnPropertyDescriptors;var nn=Object.getOwnPropertySymbols,Vs=Object.getPrototypeOf,xs=Object.prototype.hasOwnProperty,Ns=Object.prototype.propertyIsEnumerable,Os=Reflect.get;var un=(s,F,I)=>F in s?_s(s,F,{enumerable:!0,configurable:!0,writable:!0,value:I}):s[F]=I,Q=(s,F)=>{for(var I in F||(F={}))xs.call(F,I)&&un(s,I,F[I]);if(nn)for(var I of nn(F))Ns.call(F,I)&&un(s,I,F[I]);return s},Be=(s,F)=>qs(s,Ps(F));var it=(s,F,I)=>Os(Vs(s),I,F);var re=(s,F,I)=>new Promise((Ae,se)=>{var Ce=U=>{try{Z(I.next(U))}catch(Y){se(Y)}},Fe=U=>{try{Z(I.throw(U))}catch(Y){se(Y)}},Z=U=>U.done?Ae(U.value):Promise.resolve(U.value).then(Ce,Fe);Z((I=I.apply(s,F)).next())});(function(s,F){typeof exports=="object"&&typeof module!="undefined"?F(exports):typeof define=="function"&&define.amd?define(["exports"],F):(s=typeof globalThis!="undefined"?globalThis:s||self,F(s.modelDrivenCore={}))})(this,function(s){"use strict";var F="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",I="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",Ae="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",se="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",Ce="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",Fe="{caption}\u5FC5\u586B",Z="\u8BF7\u8F93\u5165\u6807\u9898",U="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",Y="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",an="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",rn="\u8BF7\u7ED1\u5B9A\u8868\u5355",sn="\u8BF7\u7ED1\u5B9A\u5217\u8868",ln="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",on="\u8BF7\u8F93\u5165\u663E\u793A\u503C",cn="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",dn="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",fn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",hn="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",mn="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",gn="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",yn="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",En="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",vn="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",Bn="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",An="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",Cn="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Fn="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Dn="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",bn="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",Sn="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",wn="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",In="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",Rn="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",Mn="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Ln="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",$n="\u8BF7\u7ED1\u5B9A\u670D\u52A1",_n="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",qn="\u8BF7\u9009\u62E9\u7701",Pn="\u8BF7\u9009\u62E9\u5E02",Vn="\u8BF7\u9009\u62E9\u533A",xn="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",Nn="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",On="\u8BF7\u8F93\u5165\u5217\u5BBD",Un="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",jn="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",Hn="\u8BF7\u9009\u62E9\u63A7\u4EF6",Tn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",Wn="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",kn="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",Kn="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",zn="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Xn="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Gn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Jn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Qn="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Zn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Yn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",pn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",eu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",tu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",nu="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",uu="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",au="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",iu="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",ru="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",su="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",lu="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",ou={isNotNumber:F,isNotString:I,isNotObject:Ae,isNotArray:se,isNotBoolean:Ce,runtimeRequired:Fe,pleaseEnterCaption:Z,pleaseEnterCaptionTip:U,pleaseEnterPlaceholder:Y,pleaseEnterFieldCode:an,pleaseEnterForm:rn,pleaseEnterList:sn,pleaseEnterProcess:ln,pleaseEnterLabel:on,pleaseEnterValue:cn,bizKeyNotBindFiled:dn,pleaseSelectOneField:fn,pleaseEnterNumberRange:hn,pleaseEnterAValueGreaterThanMin:mn,pleaseEnterAValueLessThanMax:gn,numberRangeSetError:yn,stringRangeError:En,attachmentMaxSize:vn,pleaseEnterTotalScoreSetting:Bn,theTotalScoreMustNotBeLessThan1:An,scoreDefaultValueRange:Cn,attachmentLimitError:Fn,PleaseReselectTheOptionalQuantity:Dn,TheMaximumLengthIsGreaterThanTheMinimumLength:bn,TheMinimumLengthIsGreaterThanTheMaximumLength:Sn,PleaseSelectTheCorrectOptionSettings:wn,optionIdIsRepeat:In,optionIsRequired:Rn,pleaseEnterDataCode:Mn,pleaseEnterValueFieldCode:Ln,pleaseEnterSvcCode:$n,pleaseBindAtLeastOneDisplayValue:_n,pleaseSelectProvince:qn,pleaseSelectCity:Pn,pleaseSelectDistrict:Vn,limitRowsCannotBeLessThan0:xn,TheNumberOfRowsCannotBeLessThanMinRows:Nn,pleaseEnterColumnWidth:On,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Un,pleaseCompleteAllRulesAndConditions:jn,pleaseSelectControl:Hn,pleaseSelectAtLeastOneColumn:Tn,pleaseSelectFillBackMode:Wn,pleaseSelectDashboard:kn,rootNodeIsRequired:Kn,theViewNameCannotBeEmpty:zn,pleaseSelectOcrType:Xn,pleaseSelectAtLeastOneFieldToFillIn:Gn,pleaseChooseAtLeastOne:Jn,pleaseEnterButtonContent:Qn,pleaseEnterDataCodeInDataSetting:Zn,pleaseEnterValueFieldCodeInDataSetting:Yn,pleaseEnterSvcCodeInDataSetting:pn,pleaseBindAtLeastOneDisplayValueInDataSetting:eu,rootNodeIsRequiredInDataSetting:tu,pleaseEnterMaxHeight:nu,pleaseEnter:uu,pleaseEnterWatermark:au,pleaseEnterFileName:iu,pleaseUploadAtLeastOnePrintTemplate:ru,pleaseAssignBusiness:su,pleaseAssignExternal:lu},cu="Please enter a number",du="Please enter a string",fu="Please enter an object",hu="Please enter an array",mu="Please enter a boolean",gu="{caption} Required",yu="Please enter the title",Eu="Please enter the bubble prompt",vu="Please enter the prompt text",Bu="Please bind data items",Au="Please bind the form",Cu="Please bind the list",Fu="Please bind the process",Du="Please enter the displayed value",bu="Please enter the stored value",Su="The document number is not bound to the data item",wu="Please select at least one display field",Iu="Please enter a value greater than or equal to {min} and less than or equal to {max}",Ru="Please enter a value greater than or equal to {min}",Mu="Please enter a value less than or equal to {max}",Lu="The value range is set incorrectly",$u="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",_u="The attachment size must be between 0MB and 1000MB",qu="Please fill in the total score setting",Pu="The total score cannot be less than 1",Vu="The default value must be between {min} and {max}",xu="The number of attachments uploaded must be between {min} and {max}",Nu="Please re-select the optional quantity",Ou="The maximum length of the control must be greater than the minimum length",Uu="The minimum length of the control must be less than the maximum length",ju="Please select the correct option setting",Hu="Option ID cannot be repeated",Tu="Please enter at least one option",Wu="Please bind the data source",ku="Please bind the stored value",Ku="Please bind the service",zu="At least one display value must be bound",Xu="Please select a province",Gu="Please select a city",Ju="Please select a district",Qu="The minimum number of lines to fill in cannot be less than 0",Zu="The number of rows cannot be less than {min} rows",Yu="Please enter the column width",pu="Please set the logical relationship of all rule conditions",ea="Please complete all rules and conditions",ta="please select control",na="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",ua="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",aa="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",ia="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",ra="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",sa="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",la="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",oa="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",ca="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",da="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",fa="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",ha="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",ma="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",ga="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",ya="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Ea="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",va="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Ba="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Aa={isNotNumber:cu,isNotString:du,isNotObject:fu,isNotArray:hu,isNotBoolean:mu,runtimeRequired:gu,pleaseEnterCaption:yu,pleaseEnterCaptionTip:Eu,pleaseEnterPlaceholder:vu,pleaseEnterFieldCode:Bu,pleaseEnterForm:Au,pleaseEnterList:Cu,pleaseEnterProcess:Fu,pleaseEnterLabel:Du,pleaseEnterValue:bu,bizKeyNotBindFiled:Su,pleaseSelectOneField:wu,pleaseEnterNumberRange:Iu,pleaseEnterAValueGreaterThanMin:Ru,pleaseEnterAValueLessThanMax:Mu,numberRangeSetError:Lu,stringRangeError:$u,attachmentMaxSize:_u,pleaseEnterTotalScoreSetting:qu,theTotalScoreMustNotBeLessThan1:Pu,scoreDefaultValueRange:Vu,attachmentLimitError:xu,PleaseReselectTheOptionalQuantity:Nu,TheMaximumLengthIsGreaterThanTheMinimumLength:Ou,TheMinimumLengthIsGreaterThanTheMaximumLength:Uu,PleaseSelectTheCorrectOptionSettings:ju,optionIdIsRepeat:Hu,optionIsRequired:Tu,pleaseEnterDataCode:Wu,pleaseEnterValueFieldCode:ku,pleaseEnterSvcCode:Ku,pleaseBindAtLeastOneDisplayValue:zu,pleaseSelectProvince:Xu,pleaseSelectCity:Gu,pleaseSelectDistrict:Ju,limitRowsCannotBeLessThan0:Qu,TheNumberOfRowsCannotBeLessThanMinRows:Zu,pleaseEnterColumnWidth:Yu,pleaseSetTheLogicalRelationshipOfAllRuleConditions:pu,pleaseCompleteAllRulesAndConditions:ea,pleaseSelectControl:ta,pleaseSelectDashboard:na,theViewNameCannotBeEmpty:ua,pleaseSelectOcrType:aa,pleaseSelectAtLeastOneFieldToFillIn:ia,pleaseChooseAtLeastOne:ra,pleaseEnterButtonContent:sa,pleaseEnterDataCodeInDataSetting:la,pleaseEnterValueFieldCodeInDataSetting:oa,pleaseEnterSvcCodeInDataSetting:ca,pleaseBindAtLeastOneDisplayValueInDataSetting:da,rootNodeIsRequiredInDataSetting:fa,pleaseEnterMaxHeight:ha,pleaseEnter:ma,pleaseEnterWatermark:ga,pleaseEnterFileName:ya,pleaseUploadAtLeastOnePrintTemplate:Ea,pleaseAssignBusiness:va,pleaseAssignExternal:Ba},Ca="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Fa="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Da="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ba="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Sa="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",wa="{caption}\u5FC5\u9808",Ia="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ra="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ma="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",La="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",$a="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",_a="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",qa="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Pa="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Va="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",xa="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",Na="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Oa="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ua="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ja="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ha="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",Ta="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Wa="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",ka="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Ka="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",za="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Xa="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Ga="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Ja="\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",Qa="\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",Za="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Ya="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",pa="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",ei="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ti="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ni="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ui="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",ai="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",ii="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",ri="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",si="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",li="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",oi="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ci="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",di="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",fi="please select control",hi="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",mi="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",gi="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",yi="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Ei="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",vi="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Bi="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Ai="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",Ci="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",Fi="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Di="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",bi="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Si="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",wi="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",Ii="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Ri="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",Mi="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Li="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",$i={isNotNumber:Ca,isNotString:Fa,isNotObject:Da,isNotArray:ba,isNotBoolean:Sa,runtimeRequired:wa,pleaseEnterCaption:Ia,pleaseEnterCaptionTip:Ra,pleaseEnterPlaceholder:Ma,pleaseEnterFieldCode:La,pleaseEnterForm:$a,pleaseEnterList:_a,pleaseEnterProcess:qa,pleaseEnterLabel:Pa,pleaseEnterValue:Va,bizKeyNotBindFiled:xa,pleaseSelectOneField:Na,pleaseEnterNumberRange:Oa,pleaseEnterAValueGreaterThanMin:Ua,pleaseEnterAValueLessThanMax:ja,numberRangeSetError:Ha,stringRangeError:Ta,attachmentMaxSize:Wa,pleaseEnterTotalScoreSetting:ka,theTotalScoreMustNotBeLessThan1:Ka,scoreDefaultValueRange:za,attachmentLimitError:Xa,PleaseReselectTheOptionalQuantity:Ga,TheMaximumLengthIsGreaterThanTheMinimumLength:Ja,TheMinimumLengthIsGreaterThanTheMaximumLength:Qa,PleaseSelectTheCorrectOptionSettings:Za,optionIdIsRepeat:Ya,optionIsRequired:pa,pleaseEnterDataCode:ei,pleaseEnterValueFieldCode:ti,pleaseEnterSvcCode:ni,pleaseBindAtLeastOneDisplayValue:ui,pleaseSelectProvince:ai,pleaseSelectCity:ii,pleaseSelectDistrict:ri,limitRowsCannotBeLessThan0:si,TheNumberOfRowsCannotBeLessThanMinRows:li,pleaseEnterColumnWidth:oi,pleaseSetTheLogicalRelationshipOfAllRuleConditions:ci,pleaseCompleteAllRulesAndConditions:di,pleaseSelectControl:fi,pleaseSelectDashboard:hi,theViewNameCannotBeEmpty:mi,pleaseSelectOcrType:gi,pleaseSelectAtLeastOneFieldToFillIn:yi,pleaseChooseAtLeastOne:Ei,pleaseEnterButtonContent:vi,pleaseEnterDataCodeInDataSetting:Bi,pleaseEnterValueFieldCodeInDataSetting:Ai,pleaseEnterSvcCodeInDataSetting:Ci,pleaseBindAtLeastOneDisplayValueInDataSetting:Fi,rootNodeIsRequiredInDataSetting:Di,pleaseEnterMaxHeight:bi,pleaseEnter:Si,pleaseEnterWatermark:wi,pleaseEnterFileName:Ii,pleaseUploadAtLeastOnePrintTemplate:Ri,pleaseAssignBusiness:Mi,pleaseAssignExternal:Li},_i={zhCN:ou,enUS:Aa,jaJP:$i},rt;(function(t){t.Number="Number",t.Operator="Operator",t.VariableInMainTable="VariableInMainTable",t.VariableInCurrentSubTable="VariableInCurrentSubTable",t.VariableInOtherSubTable="VariableInOtherSubTable",t.UndefinedVariable="UndefinedVariable"})(rt||(rt={}));var st;(function(t){t.SUM="SUM",t.AVG="AVG",t.MAX="MAX",t.MIN="MIN"})(st||(st={}));var qi="zh-CN";function q(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var z;(function(t){t.BASE="base",t.FORM="form",t.LAYOUT="layout",t.WRAP="wrap",t.COLUMN="column",t.LIST="list",t.SEARCH="search"})(z||(z={}));var L;(function(t){t.TITLE="title",t.LINK="link",t.BUTTON="button",t.DIVIDER="divider",t.TEXT="text",t.CREATE_FORM_LIST_BUTTON="list-page-btn-create-form",t.BATCH_SUBMISSION_LIST_BUTTON="list-page-btn-batch-submission",t.SUBMISSION_RECORD_LIST_BUTTON="list-page-btn-submission-record",t.IMPORT_RECORD_LIST_BUTTON="list-page-btn-import-record",t.EXPORT_RECORD_LIST_BUTTON="list-page-btn-export-record",t.EXPORT_LIST_BUTTON="list-page-btn-export-list",t.LIST_SELECT_BUTTON="list-select-button",t.FORM_SELECT_BUTTON="form-select-button",t.LIST_VIEW_SELECT="list-view-select",t.TEXT_OCR_BUTTON="text-ocr-button",t.INVOICE_CHECK_BUTTON="invoice-check-button",t.LIST_PAGE_BTN_BATCH_PRINT="list-page-btn-batch-print",t.LIST_PAGE_BTN_BATCH_PRINT_RECORD="list-page-btn-batch-print-record",t.VARCHAR_COLUMN="varchar-column",t.TEXT_COLUMN="text-column",t.DECIMAL_COLUMN="decimal-column",t.TIMESCOPE_COLUMN="timescope-column",t.TIMESTAMP_COLUMN="timestamp-column",t.ARRAY_COLUMN="array-column",t.DEPARTMENT_COLUMN="department-column",t.AUTO_NUMBER_COLUMN="auto-number-column",t.FILE_COLUMN="file-column",t.IMAGE_COLUMN="image-column",t.PEOPLE_COLUMN="people-column",t.LOCATION_COLUMN="location-column",t.CUSTOM_COLUMN="custom-column",t.ORDER_COLUMN="order-column",t.OPERATION_COLUMN="operation-column",t.EMPLOYEE_COLUMN="employee-column",t.ADDRESS="address",t.AMOUNT="amount",t.ATTACHMENT="attachment",t.AUTO_NUMBER="auto-number",t.CALC="calc",t.CHECKBOX="checkbox",t.DATE_PICKER="date-picker",t.DATE_RANGE="date-range",t.DEPARTMENT="department",t.EMPLOYEE="employee",t.IMAGE="image",t.INPUT="input",t.NUMBER="number",t.RADIO="radio",t.RICH_TEXT="rich-text",t.SCORE="score",t.SEARCH_DATE_RANGE="search-date-range",t.SEARCH_NUMBER_RANGE="search-number-range",t.SEARCH_INPUT="search-input",t.SELECT="select",t.SELECT_MULTIPLE="select-multiple",t.SELECT_RELATION="select-relation",t.VUE_FORM_ITEM="vue-form-item",t.TEXTAREA="textarea",t.EMAIL="email",t.FOOTER="footer",t.HEADER="header",t.ID_CARD="id-card",t.MOBILE="mobile",t.PHONE="phone",t.RADIO_IMAGE="radio-image",t.ELECTRONIC_SIGNATURE="electronic-signature",t.WPS="wps",t.CARD_GROUP="card-group",t.COL="col",t.GRID="grid",t.GRID_ROW="grid-row",t.GRID_TABLE_COLUMN="grid-table-column",t.ROW="row",t.TWO_COLUMNS="two-columns",t.SUBTABLE_COLUMN="subtable-column",t.SUBTABLE_ROW="subtable-row",t.TAB="tab",t.TAB_PANE="tab-pane",t.TOOLBOX="toolbox",t.DATA_VIEW="data-view",t.LIST_VIEW="list-view",t.SUBTABLE="subtable",t.GRID_TABLE="grid-table",t.SIMPLE_SEARCH="simple-search",t.PAGINATION="pagination",t.CHECKBOX_IMAGE="checkbox-image",t.DASHBOARD="dashboard",t.TREE="tree",t.EMPLOYEE2="employee2",t.DEPARTMENT2="department2"})(L||(L={}));var M;(function(t){t.VARCHAR="varchar",t.TEXT="text",t.ARRAY="array",t.ADDRESS="location",t.DECIMAL="decimal",t.DECIMAL_RANGE="decimal_range",t.TIMESTAMP="timestamp",t.EMPLOYEES="people",t.DEPARTMENTS="department",t.MONEY="money",t.TIMESCOPE="timescope",t.FILE="file",t.IMAGE="image",t.AUTO_NUMBER="auto_number",t.CALC="calc",t.RELATION="relation",t.LIST="list",t.RELATION_FIELD="relation-field",t.REFERENCE_FIELD="reference-field",t.CALC_FIELD="calc",t.JSON="json",t.BIGINT="bigint",t.ANY="ANY",t.ENCRYPTED_FIELD="encrypted_field"})(M||(M={}));var $;$={},q($,M.ARRAY,L.ARRAY_COLUMN),q($,M.AUTO_NUMBER,L.AUTO_NUMBER_COLUMN),q($,M.DECIMAL,L.DECIMAL_COLUMN),q($,M.DEPARTMENTS,L.DEPARTMENT_COLUMN),q($,M.FILE,L.FILE_COLUMN),q($,M.IMAGE,L.IMAGE_COLUMN),q($,M.ADDRESS,L.LOCATION_COLUMN),q($,M.EMPLOYEES,L.EMPLOYEE_COLUMN),q($,M.TEXT,L.TEXT_COLUMN),q($,M.TIMESCOPE,L.TIMESCOPE_COLUMN),q($,M.TIMESTAMP,L.TIMESTAMP_COLUMN),q($,M.VARCHAR,L.VARCHAR_COLUMN),q($,M.RELATION,L.VARCHAR_COLUMN);var lt;(function(t){t.YEAR="year",t.MONTH="month",t.DATE="date",t.DATETIME="datetime"})(lt||(lt={}));var ot="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",Pi=ot+"0123456789";function W(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,e="",n=0;n<t;n++){var u=n===0?ot:Pi,a=Math.random()*u.length;e+=u[parseInt(String(a),10)]}return e}function De(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,u=new Array(e);n<e;n++)u[n]=t[n];return u}function Vi(t){if(Array.isArray(t))return De(t)}function xi(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ct(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ni(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function le(t,e,n){return Ni()?le=Reflect.construct:le=function(a,i,r){var o=[null];o.push.apply(o,i);var d=Function.bind.apply(a,o),c=new d;return r&&ee(c,r.prototype),c},le.apply(null,arguments)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},p(t)}function dt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ee(t,e)}function Oi(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Ui(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ji(){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 Hi(t,e){return e&&(Ti(e)==="object"||typeof e=="function")?e:xi(t)}function ee(t,e){return ee=Object.setPrototypeOf||function(u,a){return u.__proto__=a,u},ee(t,e)}function ft(t){return Vi(t)||Ui(t)||Wi(t)||ji()}var Ti=function(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t};function Wi(t,e){if(!!t){if(typeof t=="string")return De(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return De(t,e)}}function be(t){var e=typeof Map=="function"?new Map:void 0;return be=function(u){if(u===null||!Oi(u))return u;if(typeof u!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(u))return e.get(u);e.set(u,a)}function a(){return le(u,arguments,p(this).constructor)}return a.prototype=Object.create(u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),ee(a,u)},be(t)}function ki(){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(t){return!1}}function ht(t){var e=ki();return function(){var u=p(t),a;if(e){var i=p(this).constructor;a=Reflect.construct(u,arguments,i)}else a=u.apply(this,arguments);return Hi(this,a)}}var Se=console;function we(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var u,a=e.slice(1);(u=Se).warn.apply(u,["\u{1F9D0} Driven Warning:"+e[0]].concat(ft(a)))}function mt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var u,a=e.slice(1);(u=Se).log.apply(u,["\u{1F680} Driven Log:"+e[0]].concat(ft(a)))}function Ki(t){return t+" \u{1F41B}\u{1F41B}\u{1F41B}"}var Ie=function(t){dt(n,t);var e=ht(n);function n(u){ct(this,n);var a;return a=e.call(this,u),a.name="\u{1F4A5} Driven Error",a.message=u?Ki(u):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",a}return n}(be(Error)),zi=function(t){dt(n,t);var e=ht(n);function n(u){ct(this,n);var a;return a=e.call(this,u),a.name="\u{1F6A8} Driven Reference Error",a}return n}(Ie);function Re(t){throw new Ie(t)}function gt(t){throw new zi(t)}function Xi(t){Se.error(new Ie(t))}var Gi=Object.prototype.toString;function yt(t,e){return Gi.call(t)==="[object "+e+"]"}function Ji(t){return yt(t,"String")}function Qi(t){return yt(t,"Promise")}var Zi=function(){function t(e){var n,u;this._messageCache=new Map,this.messages={},this.variableRegExp=/\{([0-9a-zA-Z_]+)\}/g,this._messages=Object.freeze((u=(n=e.messages)!==null&&n!==void 0?n:this.getPreImport(e.locale))!==null&&u!==void 0?u:{}),e.variableRegExp&&(this.variableRegExp=e.variableRegExp),this.setLocale(e.locale)}return t.prototype.setLocale=function(e){var n=this;this.locale=e,this._messageCache.clear();var u=this.getMessageData();Qi(u)?u.then(function(a){n._messageCache.clear(),n.messages[n.localeInMessageKey]=a}):this.messages[this.localeInMessageKey]=u},t.prototype.getMessageData=function(){var e=this._messages[this.localeInMessageKey];return typeof e=="function"?e():e},t.prototype.translate=function(e,n,u){var a=this.getMessage(e);return a?this.formatMessage(a,u):this.formatMessage(n,u)},t.prototype.getMessage=function(e){if(this._messageCache.has(e))return this._messageCache.get(e);var n=this.getPathArray(e),u=n.reduce(function(a,i,r,o){if(a!==void 0){var d=a[i];if(!(r===o.length-1&&!Ji(d)))return d}},this.message);return this._messageCache.set(e,u),u},t.prototype.formatMessage=function(e,n){return n?e.replace(this.variableRegExp,function(u,a){var i=n[a];return i!==void 0?String(i):u}):e},t.prototype.getPreImport=function(e){var n;if(window.okI18nPreImport){var u=this.getLocaleInMessageKey(e);return window.okI18nPreImport.hasOwnProperty(u)?window.okI18nPreImport:(n={},n[u]=window.okI18nPreImport,n)}},t.prototype.getPathArray=function(e){return e.split(".")},t.prototype.getLocaleInMessageKey=function(e){return e.replace(/-/g,"")},Object.defineProperty(t.prototype,"$t",{get:function(){return this.translate},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"localeInMessageKey",{get:function(){return this.getLocaleInMessageKey(this.locale)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"message",{get:function(){var e;return(e=this.messages[this.localeInMessageKey])!==null&&e!==void 0?e:{}},enumerable:!1,configurable:!0}),t}();function Yi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Et(t,e){for(var n=0;n<e.length;n++){var u=e[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function pi(t,e,n){return e&&Et(t.prototype,e),n&&Et(t,n),t}function er(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h=function(){function t(){Yi(this,t)}return pi(t,null,[{key:"getMessage",value:function(n){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$i18n.$t(n,"",u)}},{key:"resetI18n",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qi;return new Zi({locale:n,messages:_i})}},{key:"setLocale",value:function(n){return this.$i18n.setLocale(n)}}]),t}();er(h,"$i18n",h.resetI18n());function tr(t,e,n){var u=e.replace(/\[(\d)]/g,function(i,r){return"."+r}).split("."),a=!1;return u.reduce(function(i,r,o,d){var c=i;if(!!i){if(!Object.prototype.hasOwnProperty.call(i,r)){we("Can not set ".concat(e,"'s ").concat(r," property in current %o, Because there is no ").concat(r," property on the %o"),i,i);return}return o===d.length-1&&!Object.is(c[r],n)&&(c[r]=n,a=!0),c[r]}},t),a}var nr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},ur={exports:{}};(function(t){(function(e){var n=function(l,m,v){if(!c(m)||E(m)||C(m)||D(m)||d(m))return m;var b,w=0,N=0;if(g(m))for(b=[],N=m.length;w<N;w++)b.push(n(l,m[w],v));else{b={};for(var A in m)Object.prototype.hasOwnProperty.call(m,A)&&(b[l(A,v)]=n(l,m[A],v))}return b},u=function(l,m){m=m||{};var v=m.separator||"_",b=m.split||/(?=[A-Z])/;return l.split(b).join(v)},a=function(l){return S(l)?l:(l=l.replace(/[\-_\s]+(.)?/g,function(m,v){return v?v.toUpperCase():""}),l.substr(0,1).toLowerCase()+l.substr(1))},i=function(l){var m=a(l);return m.substr(0,1).toUpperCase()+m.substr(1)},r=function(l,m){return u(l,m).toLowerCase()},o=Object.prototype.toString,d=function(l){return typeof l=="function"},c=function(l){return l===Object(l)},g=function(l){return o.call(l)=="[object Array]"},E=function(l){return o.call(l)=="[object Date]"},C=function(l){return o.call(l)=="[object RegExp]"},D=function(l){return o.call(l)=="[object Boolean]"},S=function(l){return l=l-0,l===l},f=function(l,m){var v=m&&"process"in m?m.process:m;return typeof v!="function"?l:function(b,w){return v(b,l,w)}},B={camelize:a,decamelize:r,pascalize:i,depascalize:r,camelizeKeys:function(l,m){return n(f(a,m),l)},decamelizeKeys:function(l,m){return n(f(r,m),l,m)},pascalizeKeys:function(l,m){return n(f(i,m),l)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=B:e.humps=B})(nr)})(ur);var vt={};Object.defineProperty(vt,"__esModule",{value:!0});function Me(t){if(typeof t!="object"||t===null)return t;if(Array.isArray(t))return t.map(e=>typeof e!="object"||e===null?e:Me(e));{const e={};for(const n in t){const u=t[n];e[n]=typeof u!="object"||u===null?u:Me(u)}return e}}var ar=vt.default=Me;function k(t){if(t!==void 0)return typeof t=="object"?ar(t):t}function ir(t){return Object.prototype.toString.call(t)==="[object Object]"}function rr(t){return Array.isArray(t)}function sr(t){return t.reduce(function(e,n){return e.includes(n)||e.push(n),e},[])}function Le(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,u=new Array(e);n<e;n++)u[n]=t[n];return u}function lr(t){if(Array.isArray(t))return Le(t)}function Bt(t,e,n,u,a,i,r){try{var o=t[i](r),d=o.value}catch(c){n(c);return}o.done?e(d):Promise.resolve(d).then(u,a)}function or(t){return function(){var e=this,n=arguments;return new Promise(function(u,a){var i=t.apply(e,n);function r(d){Bt(i,u,a,r,o,"next",d)}function o(d){Bt(i,u,a,r,o,"throw",d)}r(void 0)})}}function cr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function At(t,e){for(var n=0;n<e.length;n++){var u=e[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function dr(t,e,n){return e&&At(t.prototype,e),n&&At(t,n),t}function Ct(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function fr(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function hr(){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 $e(t){return lr(t)||fr(t)||mr(t)||hr()}function mr(t,e){if(!!t){if(typeof t=="string")return Le(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Le(t,e)}}var gr=function(t,e){var n,u,a,i,r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]};return i={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function o(c){return function(g){return d([c,g])}}function d(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,u&&(a=c[0]&2?u.return:c[0]?u.throw||((a=u.return)&&a.call(u),0):u.next)&&!(a=a.call(u,c[1])).done)return a;switch(u=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,u=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(g){c=[6,g],u=0}finally{n=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},yr=function(){function t(){cr(this,t),Ct(this,"_events",new Map),Ct(this,"debug",!1)}return dr(t,[{key:"emit",value:function(n){for(var u=arguments.length,a=new Array(u>1?u-1:0),i=1;i<u;i++)a[i-1]=arguments[i];var r=this;return or(function(){var o,d,c,g,E,C,D,S,f,B,l,m;return gr(this,function(v){switch(v.label){case 0:if(o=r._events.get(n),d=[],!o)return[3,10];c=o.slice(),g=!0,E=!1,C=void 0,v.label=1;case 1:v.trys.push([1,8,9,10]),D=c[Symbol.iterator](),v.label=2;case 2:if(g=(S=D.next()).done)return[3,7];if(f=S.value,!o.includes(f))return[3,6];v.label=3;case 3:return v.trys.push([3,5,,6]),r.debug&&mt.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(f.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+f.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(a.map(function(){return"%o"}).join(","),"\u3002")].concat($e(a))),[4,f.apply(null,$e(a))];case 4:return B=v.sent(),r.debug&&mt.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(f.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+f.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(a.map(function(){return"%o"}).join(","),"; \u51FD\u6570\u7684\u8FD4\u56DE\u7ED3\u679C\u4E3A%o")].concat($e(a),[B])),d.push(B),B===!1?[3,7]:[3,6];case 5:return l=v.sent(),Xi(String(l)+":"+String(l.stack)),[3,6];case 6:return g=!0,[3,2];case 7:return[3,10];case 8:return m=v.sent(),E=!0,C=m,[3,10];case 9:try{!g&&D.return!=null&&D.return()}finally{if(E)throw C}return[7];case 10:return[2,d]}})})()}},{key:"on",value:function(n,u){if(this._events.has(n)){var a;(a=this._events.get(n))===null||a===void 0||a.push(u)}else this._events.set(n,[u])}},{key:"off",value:function(n,u){if(this._events.has(n)){var a=this._events.get(n),i=a==null?void 0:a.indexOf(u);a==null||a.splice(i,1)}}},{key:"delete",value:function(n){this._events.has(n)&&this._events.delete(n)}},{key:"clear",value:function(){this._events=new Map}}]),t}();function Er(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ft(t,e){for(var n=0;n<e.length;n++){var u=e[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function vr(t,e,n){return e&&Ft(t.prototype,e),n&&Ft(t,n),t}function Br(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ar=[{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"}],Cr=function(){function t(){Er(this,t)}return vr(t,[{key:"getEventsFromKeys",value:function(n){var u=typeof n=="string"?[n]:n;return t.events.filter(function(a){return u.includes(a.key)})}}]),t}();Br(Cr,"events",Ar);const Dt=[];class oe{constructor(e){this.registeredControlTypes=new Set,this.controlConfigMap=new Map,this._controls=[],this._type=e,this._initControls(e)}registerControlConfig(e,n){return this.controlConfigMap.set(e,n),this}getControlConfig(e){return this.controlConfigMap.get(e)}static register(e){const{Designer:n,Runtime:u}=e;(!n||!u||!n.__is_control__||!u.__is_control__)&&Re(`${e} is can't register as a Control`);const a=this.staticControls.findIndex(i=>i.Designer.controlType===n.controlType);return a>-1&&(we(`The ${n.controlType} is repeat register, So it overwrites the one that was registered before.`),this.staticControls.splice(a,1)),this.staticRegisteredTypes.add(n.controlType),this.staticControls.push(e),this}getControls(){return this._controls}register(e){e.__is_control__||Re(`${e.name} is not a Control`);const n=this._controls.findIndex(u=>u.controlType===e.controlType);return n>-1&&(we(`The ${e.controlType} is repeat register, So it overwrites the one that was registered before.`),this._controls.splice(n,1)),this.registeredControlTypes.add(e.controlType),this._controls.push(e),this}isLayoutControl(e){return e.controlType===z.LAYOUT}isFormControl(e){return e.controlType===z.FORM}isListControl(e){return e.controlType===z.LIST}isColumnControl(e){return e.controlType===z.COLUMN}createControl(e,n){if(Array.isArray(e))return e.map(a=>this.createControl(a,n));e.children&&(e.children=e.children.map(a=>this.createControl(a,n))),this.isListControl(e)&&e.props.headers&&(e.props.headers=e.props.headers.map(a=>this.createControl(a,n)));const u=this.getControlFormType(e.type);if(u){let a=e;if(typeof n=="function"){const r=n(a);r&&(a=r)}return new u(a)}else Re(`The constructor of ${e.type} could not be found, please confirm that the constructor has been registered`)}createControlInstance(e,n){const u=this.getControlFormType(e);if(u)return new u(n)}getControlFormType(e){return this._controls.find(n=>n.controlType===e)}_initControls(e){this.constructor.staticControls.forEach(n=>{this.register(n[e])})}}oe.staticControls=Dt,oe.staticRegisteredTypes=new Set(Dt.map(t=>t.Designer.controlType)),oe.staticRegisteredConfigs=new Map;class V{constructor(e){var n,u,a;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.fieldCode=(u=e==null?void 0:e.fieldCode)!=null?u:"",this.fieldType=(a=e==null?void 0:e.fieldType)!=null?a:""}}class _e{constructor(e){var n,u;this.minWidth=(n=e==null?void 0:e.minWidth)!=null?n:150,this.maxWidth=e==null?void 0:e.maxWidth,this.flex=(u=e==null?void 0:e.flex)!=null?u:1}}class ce extends _e{constructor(e){var n,u;super(e),this.width=(n=e==null?void 0:e.width)!=null?n:240,this.widthType=(u=e==null?void 0:e.widthType)!=null?u:"auto"}}class Fr{constructor(e){this.pc=new ce(e==null?void 0:e.pc),this.mobile=e!=null&&e.mobile?new ce(e==null?void 0:e.mobile):new ce({width:130,minWidth:180})}}class Dr{constructor(e){var n,u;this.type=(n=e==null?void 0:e.type)!=null?n:"firstThree",this.customOptions=(u=e==null?void 0:e.customOptions)!=null?u:[]}}class de{constructor(e){var n,u,a;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.formKey=(u=e==null?void 0:e.formKey)!=null?u:"",this.appId=(a=e==null?void 0:e.appId)!=null?a:""}}class br extends de{constructor(e){var n;super(e),this.primaryControlId=(n=e==null?void 0:e.primaryControlId)!=null?n:""}}class bt{constructor(e){var n;this.fieldCode=(n=e==null?void 0:e.fieldCode)!=null?n:""}}class Sr{constructor(e){var n,u,a,i;this.appId=(n=e==null?void 0:e.appId)!=null?n:"",this.formKey=(u=e==null?void 0:e.formKey)!=null?u:"",this.headers=(i=(a=e==null?void 0:e.headers)==null?void 0:a.map(r=>new bt(r)))!=null?i:[]}}class St{constructor(e){var n,u,a;this.fieldName=(n=e==null?void 0:e.fieldName)!=null?n:"",this.fieldCode=(u=e==null?void 0:e.fieldCode)!=null?u:"",this.fieldType=(a=e==null?void 0:e.fieldType)!=null?a:M.VARCHAR}}class wt extends de{constructor(e){var n,u,a,i;super(e),this.title=(n=e==null?void 0:e.title)!=null?n:"",this.svcCode=(u=e==null?void 0:e.svcCode)!=null?u:"",this.isOpenFilter=(a=e==null?void 0:e.isOpenFilter)!=null?a:!1,this.filters=(i=e==null?void 0:e.filters)!=null?i:[]}}class wr{constructor(e){var n,u,a,i;this.type="sublist-page",this.formBind=new de(e==null?void 0:e.formBind),this.displayFields=(u=(n=e==null?void 0:e.displayFields)==null?void 0:n.map(r=>new St(r)))!=null?u:[],this.sublists=(i=(a=e==null?void 0:e.sublists)==null?void 0:a.map(r=>new wt(r)))!=null?i:[]}}class It{constructor(e){this.type=e==null?void 0:e.type,this.value=e==null?void 0:e.value}}class qe{constructor(e){var n,u,a;this.type=(n=e==null?void 0:e.type)!=null?n:"custom",this.value=(u=e==null?void 0:e.value)!=null?u:[],this.displayBos=(a=e==null?void 0:e.displayBos)!=null?a:[]}}class fe{constructor(e){var n,u,a,i;this.type="conditions",this.id=(n=e==null?void 0:e.id)!=null?n:W(),this.ruleId=(u=e==null?void 0:e.ruleId)!=null?u:new Date().valueOf(),this.level=(a=e==null?void 0:e.level)!=null?a:0,this.value=(i=e==null?void 0:e.value)!=null?i:"and",this.children=[],Array.isArray(e==null?void 0:e.children)&&(e==null||e.children.map(r=>{var o,d;if(r.children!==void 0){const c=new fe(r);(o=this.children)==null||o.push(c)}else{const c=new Pe(r);(d=this.children)==null||d.push(c)}}))}}class Pe{constructor(e){var n,u,a,i,r;this.type="condition",this.id=(n=e==null?void 0:e.id)!=null?n:W(),this.ruleId=(u=e==null?void 0:e.ruleId)!=null?u:new Date().valueOf(),this.symbol=(a=e==null?void 0:e.symbol)!=null?a:"",this.checked=(i=e==null?void 0:e.checked)!=null?i:!1,this.describe=(r=e==null?void 0:e.describe)!=null?r:"",this.leftVariableBo=new It(e==null?void 0:e.leftVariableBo),this.rightVariableBo=new qe(e==null?void 0:e.rightVariableBo)}}class Rt{constructor(e){var n,u,a,i;this.controlId=(n=e==null?void 0:e.controlId)!=null?n:"",this.fieldCode=(u=e==null?void 0:e.fieldCode)!=null?u:"",this.fieldType=(a=e==null?void 0:e.fieldType)!=null?a:"",this.propName=(i=e==null?void 0:e.propName)!=null?i:""}}class Ve{constructor(e){var n,u;this.type=(n=e==null?void 0:e.type)!=null?n:"FIELD",this.value=(u=e==null?void 0:e.value)!=null?u:"",this.fieldType=e==null?void 0:e.fieldType}}class xe{constructor(e){var n,u;this.columnName=(n=e.columnName)!=null?n:"",this.desc=(u=e.desc)!=null?u:!1}}class Mt{constructor(e){var n,u,a;this.code=(n=e.code)!=null?n:"",this.value=(u=e.value)!=null?u:"",this.field_type=(a=e.field_type)!=null?a:M.ANY}}class Ir{constructor(e){var n,u,a,i,r,o,d;this.id=(n=e.id)!=null?n:"",this.limit=(u=e.limit)!=null?u:20,this.formKey=(a=e.formKey)!=null?a:"",this.orders=(r=(i=e.orders)==null?void 0:i.map(c=>new xe(c)))!=null?r:[],this.dataSet=(d=(o=e.dataSet)==null?void 0:o.map(c=>new Mt(c)))!=null?d:[]}}function Ne(t){var e,n,u,a;this.filters=(n=(e=t==null?void 0:t.filters)==null?void 0:e.map(i=>i.children!==void 0?new fe(i):new Pe(i)))!=null?n:[],(this instanceof Oe||this instanceof qt)&&(this.orders=(a=(u=t==null?void 0:t.orders)==null?void 0:u.map(i=>new xe(i)))!=null?a:[])}class Oe{constructor(e){var n,u,a,i,r;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.appId=(u=e==null?void 0:e.appId)!=null?u:"",this.valueFieldCode=(a=e==null?void 0:e.valueFieldCode)!=null?a:"",this.displayBoList=[],Array.isArray(e==null?void 0:e.displayBoList)&&(e==null||e.displayBoList.map(o=>{var d;(d=this.displayBoList)==null||d.push(new Ve(o))})),this.showOrder=(i=e==null?void 0:e.showOrder)!=null?i:!0,this.svcCode=(r=e==null?void 0:e.svcCode)!=null?r:"",Ne.call(this,e)}}class Lt{constructor(e){var n,u,a,i;this.name=(n=e==null?void 0:e.name)!=null?n:"",this.key=(u=e==null?void 0:e.key)!=null?u:"",this.value=(i=(a=e==null?void 0:e.value)==null?void 0:a.map(r=>new Ve(r)))!=null?i:[]}}class $t extends Oe{constructor(e){var n,u;super(e),this.attributes=(u=(n=e==null?void 0:e.attributes)==null?void 0:n.map(a=>new Lt(a)))!=null?u:[]}}class Rr extends $t{constructor(e){super(e),this.rootNode=new qe(e==null?void 0:e.rootNode)}}class _t{constructor(e){var n,u,a,i;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.appId=(u=e==null?void 0:e.appId)!=null?u:"",this.fillList=(i=(a=e==null?void 0:e.fillList)==null?void 0:a.map(r=>new Rt(r)))!=null?i:[]}}class qt extends _t{constructor(e){super(e),Ne.call(this,e)}}class Mr extends _t{constructor(e){var n,u;super(e),this.mode=(n=e==null?void 0:e.mode)!=null?n:"current",this.multiple=(u=e==null?void 0:e.multiple)!=null?u:!1}}class Lr{constructor(e){var n,u,a;this.zh=(n=e==null?void 0:e.zh)!=null?n:"",this.en=(u=e==null?void 0:e.en)!=null?u:"",this.ja=(a=e==null?void 0:e.ja)!=null?a:""}}class $r{constructor(e){var n,u,a;this.stencilName=(n=e==null?void 0:e.stencilName)!=null?n:"",this.expression=(u=e==null?void 0:e.expression)!=null?u:"",this.errMessage=(a=e==null?void 0:e.errMessage)!=null?a:""}}class Ue{constructor(e){var n,u,a;this.id=(n=e==null?void 0:e.id)!=null?n:W(8),this.label=(u=e==null?void 0:e.label)!=null?u:"",this.value=(a=e==null?void 0:e.value)!=null?a:this.label}}class Pt extends Ue{constructor(e){var n,u;super(e),this.image=(n=e==null?void 0:e.image)!=null?n:"",this.type=(u=e==null?void 0:e.type)!=null?u:"src"}}function _r(t){var e;return(e=t==null?void 0:t.map(n=>new Ue(n)))!=null?e:[]}function qr(t){var e;return(e=t==null?void 0:t.map(n=>new Pt(n)))!=null?e:[]}class he{}class Pr extends he{constructor(e){super(),this.amount=new V(e==null?void 0:e.amount),this.currency=new V(e==null?void 0:e.currency)}}class Vr{constructor(e){var n,u;this.amount=(n=e==null?void 0:e.amount)!=null?n:"",this.currency=(u=e==null?void 0:e.currency)!=null?u:je.CNY}}class xr extends he{constructor(e){super(),this.min=new V(e==null?void 0:e.min),this.max=new V(e==null?void 0:e.max)}}class Nr{constructor(e){var n,u;this.min=(n=e==null?void 0:e.min)!=null?n:"",this.max=(u=e==null?void 0:e.max)!=null?u:""}}class Or{constructor(e){var n,u,a,i,r,o;this.city=(n=e==null?void 0:e.city)!=null?n:"",this.cityDisplay=(u=e==null?void 0:e.cityDisplay)!=null?u:"",this.district=(a=e==null?void 0:e.district)!=null?a:"",this.districtDisplay=(i=e==null?void 0:e.districtDisplay)!=null?i:"",this.province=(r=e==null?void 0:e.province)!=null?r:"",this.provinceDisplay=(o=e==null?void 0:e.provinceDisplay)!=null?o:""}}class Ur extends he{constructor(e){super(),this.result=new V(e==null?void 0:e.result),this.unit=new V(e==null?void 0:e.unit)}}class jr{constructor(e){var n,u;this.result=(n=e==null?void 0:e.result)!=null?n:0,this.unit=(u=e==null?void 0:e.unit)!=null?u:""}}var je=(t=>(t.CNY="CNY",t.USD="USD",t.JPY="JPY",t.EUR="EUR",t.INR="INR",t.IDR="IDR",t.BRL="BRL",t.AED="AED",t.AUD="AUD",t.CAD="CAD",t.EGP="EGP",t.GBP="GBP",t.ZAR="ZAR",t.KRW="KRW",t.MAD="MAD",t.MXN="MXN",t.MYR="MYR",t.PHP="PHP",t.PLN="PLN",t.RUB="RUB",t.SGD="SGD",t.THB="THB",t.TRY="TRY",t.TWD="TWD",t.VND="VND",t.HKD="HKD",t.IEP="IEP",t))(je||{}),Vt=(t=>(t.DEFAULT_DISPLAY="defaultDisplay",t.REQUIRED="required",t.IS_HIDE="isHide",t.IS_SHOW_UNIT="isShowUnit",t.IMD_SEARCH="immediatelySearch",t.MULTIPLE="multiple",t.SUBMIT_SELECT_CURRENCY="submitSelectCurrency",t.CAPTION="caption",t.IS_HIDE_CAPTION="isHideCaption",t.DEFAULT_SHOW_OPTIONS="defaultShowOptions",t.CAN_SEARCH="canSearch",t.CAN_CHECK="canCheck",t.CAN_EDIT="canEdit",t.CAN_DELETE="canDelete",t.SHOW_UPPER_CASE="showUpperCase",t.MICROMETER="micrometer",t.PRECISION="precision",t.PERCENTAGE="percentage",t.OPTIONAL_LEVEL="optionalLevel",t.CONTAINS_SUB_NODE="containsSubNode",t.DEFAULT_COLLAPSE="defaultCollapse",t.CAN_VIEW_FORM="canViewForm",t.SERVER_PAGINATION="serverPagination",t.IS_SHOW_CAPTION_TIP="isShowCaptionTip",t.ENCRYPTED="encrypted",t.IS_INLINE_EDIT="isInlineEdit",t.REVISIONS_MODE="revisionsMode",t.ALLOW_COPY_OPTIONS="allowCopyOptions",t))(Vt||{}),He=(t=>(t[t.UNKNOWN=0]="UNKNOWN",t[t.READONLY=1]="READONLY",t[t.EDITABLE=2]="EDITABLE",t[t.PRINT=5]="PRINT",t))(He||{});class Hr{constructor(e){var n,u,a,i,r,o;this.isShow=(n=e==null?void 0:e.isShow)!=null?n:!0,this.content=(u=e==null?void 0:e.content)!=null?u:"",this.formKey=(a=e==null?void 0:e.formKey)!=null?a:"",this.openType=(i=e==null?void 0:e.openType)!=null?i:"modal",this.type=(r=e==null?void 0:e.type)!=null?r:"",this.priorityProcess=(o=e==null?void 0:e.priorityProcess)!=null?o:!1}}class Tr{constructor(e){var n,u,a,i;this.id=(n=e==null?void 0:e.id)!=null?n:W(8),this.title=(u=e==null?void 0:e.title)!=null?u:"",this.headers=(i=(a=e==null?void 0:e.headers)==null?void 0:a.map(r=>new bt(r)))!=null?i:[],Ne.call(this,e)}}class Wr{constructor(e){var n,u;this.key=(n=e.key)!=null?n:W(8),this.caption=(u=e.caption)!=null?u:""}}class xt{constructor(e){var n,u,a,i;this.width=(n=e==null?void 0:e.width)!=null?n:"",this.height=(u=e==null?void 0:e.height)!=null?u:"",this.widthConfig=(a=e==null?void 0:e.widthConfig)!=null?a:"fill",this.heightConfig=(i=e==null?void 0:e.heightConfig)!=null?i:"fill"}}class me{constructor(e){this.isHide={type:"boolean"}}}class Te extends Array{constructor(e){super()}}class j{constructor(e,n=""){var u,a;this.isHide=(u=e==null?void 0:e.isHide)!=null?u:!1,this.style=new xt(e==null?void 0:e.style),this.caption=(a=e==null?void 0:e.caption)!=null?a:n}}j.Rules=me,j.RuntimeRules=Te;function x(){return x=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(t[u]=n[u])}return t},x.apply(this,arguments)}function kr(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function We(t){return We=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},We(t)}function ge(t,e){return ge=Object.setPrototypeOf||function(u,a){return u.__proto__=a,u},ge(t,e)}function Kr(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function ye(t,e,n){return Kr()?ye=Reflect.construct:ye=function(a,i,r){var o=[null];o.push.apply(o,i);var d=Function.bind.apply(a,o),c=new d;return r&&ge(c,r.prototype),c},ye.apply(null,arguments)}function zr(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function ke(t){var e=typeof Map=="function"?new Map:void 0;return ke=function(u){if(u===null||!zr(u))return u;if(typeof u!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(u))return e.get(u);e.set(u,a)}function a(){return ye(u,arguments,We(this).constructor)}return a.prototype=Object.create(u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),ge(a,u)},ke(t)}var Xr=/%[sdj%]/g,Nt=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(Nt=function(e,n){typeof console!="undefined"&&console.warn&&n.every(function(u){return typeof u=="string"})&&console.warn(e,n)});function Ke(t){if(!t||!t.length)return null;var e={};return t.forEach(function(n){var u=n.field;e[u]=e[u]||[],e[u].push(n)}),e}function P(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var u=1,a=e[0],i=e.length;if(typeof a=="function")return a.apply(null,e.slice(1));if(typeof a=="string"){var r=String(a).replace(Xr,function(o){if(o==="%%")return"%";if(u>=i)return o;switch(o){case"%s":return String(e[u++]);case"%d":return Number(e[u++]);case"%j":try{return JSON.stringify(e[u++])}catch(d){return"[Circular]"}break;default:return o}});return r}return a}function Gr(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function R(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||Gr(e)&&typeof t=="string"&&!t)}function Jr(t,e,n){var u=[],a=0,i=t.length;function r(o){u.push.apply(u,o),a++,a===i&&n(u)}t.forEach(function(o){e(o,r)})}function Ot(t,e,n){var u=0,a=t.length;function i(r){if(r&&r.length){n(r);return}var o=u;u=u+1,o<a?e(t[o],i):n([])}i([])}function Qr(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,t[n])}),e}var Ut=function(t){kr(e,t);function e(n,u){var a;return a=t.call(this,"Async Validation Error")||this,a.errors=n,a.fields=u,a}return e}(ke(Error));function Zr(t,e,n,u){if(e.first){var a=new Promise(function(E,C){var D=function(B){return u(B),B.length?C(new Ut(B,Ke(B))):E()},S=Qr(t);Ot(S,n,D)});return a.catch(function(E){return E}),a}var i=e.firstFields||[];i===!0&&(i=Object.keys(t));var r=Object.keys(t),o=r.length,d=0,c=[],g=new Promise(function(E,C){var D=function(f){if(c.push.apply(c,f),d++,d===o)return u(c),c.length?C(new Ut(c,Ke(c))):E()};r.length||(u(c),E()),r.forEach(function(S){var f=t[S];i.indexOf(S)!==-1?Ot(f,n,D):Jr(f,n,D)})});return g.catch(function(E){return E}),g}function jt(t){return function(e){return e&&e.message?(e.field=e.field||t.fullField,e):{message:typeof e=="function"?e():e,field:e.field||t.fullField}}}function Ht(t,e){if(e){for(var n in e)if(e.hasOwnProperty(n)){var u=e[n];typeof u=="object"&&typeof t[n]=="object"?t[n]=x(x({},t[n]),u):t[n]=u}}return t}function Tt(t,e,n,u,a,i){t.required&&(!n.hasOwnProperty(t.field)||R(e,i||t.type))&&u.push(P(a.messages.required,t.fullField))}function Yr(t,e,n,u,a){(/^\s+$/.test(e)||e==="")&&u.push(P(a.messages.whitespace,t.fullField))}var ze={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},te={integer:function(e){return te.number(e)&&parseInt(e,10)===e},float:function(e){return te.number(e)&&!te.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(n){return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!te.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&!!e.match(ze.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(ze.url)},hex:function(e){return typeof e=="string"&&!!e.match(ze.hex)}};function pr(t,e,n,u,a){if(t.required&&e===void 0){Tt(t,e,n,u,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],r=t.type;i.indexOf(r)>-1?te[r](e)||u.push(P(a.messages.types[r],t.fullField,t.type)):r&&typeof e!==t.type&&u.push(P(a.messages.types[r],t.fullField,t.type))}function es(t,e,n,u,a){var i=typeof t.len=="number",r=typeof t.min=="number",o=typeof t.max=="number",d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=e,g=null,E=typeof e=="number",C=typeof e=="string",D=Array.isArray(e);if(E?g="number":C?g="string":D&&(g="array"),!g)return!1;D&&(c=e.length),C&&(c=e.replace(d,"_").length),i?c!==t.len&&u.push(P(a.messages[g].len,t.fullField,t.len)):r&&!o&&c<t.min?u.push(P(a.messages[g].min,t.fullField,t.min)):o&&!r&&c>t.max?u.push(P(a.messages[g].max,t.fullField,t.max)):r&&o&&(c<t.min||c>t.max)&&u.push(P(a.messages[g].range,t.fullField,t.min,t.max))}var X="enum";function ts(t,e,n,u,a){t[X]=Array.isArray(t[X])?t[X]:[],t[X].indexOf(e)===-1&&u.push(P(a.messages[X],t.fullField,t[X].join(", ")))}function ns(t,e,n,u,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||u.push(P(a.messages.pattern.mismatch,t.fullField,e,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(e)||u.push(P(a.messages.pattern.mismatch,t.fullField,e,t.pattern))}}}var y={required:Tt,whitespace:Yr,type:pr,range:es,enum:ts,pattern:ns};function us(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e,"string")&&!t.required)return n();y.required(t,e,u,i,a,"string"),R(e,"string")||(y.type(t,e,u,i,a),y.range(t,e,u,i,a),y.pattern(t,e,u,i,a),t.whitespace===!0&&y.whitespace(t,e,u,i,a))}n(i)}function as(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&y.type(t,e,u,i,a)}n(i)}function is(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(e===""&&(e=void 0),R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&(y.type(t,e,u,i,a),y.range(t,e,u,i,a))}n(i)}function rs(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&y.type(t,e,u,i,a)}n(i)}function ss(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),R(e)||y.type(t,e,u,i,a)}n(i)}function ls(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&(y.type(t,e,u,i,a),y.range(t,e,u,i,a))}n(i)}function os(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&(y.type(t,e,u,i,a),y.range(t,e,u,i,a))}n(i)}function cs(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(e==null&&!t.required)return n();y.required(t,e,u,i,a,"array"),e!=null&&(y.type(t,e,u,i,a),y.range(t,e,u,i,a))}n(i)}function ds(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&y.type(t,e,u,i,a)}n(i)}var fs="enum";function hs(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&y[fs](t,e,u,i,a)}n(i)}function ms(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e,"string")&&!t.required)return n();y.required(t,e,u,i,a),R(e,"string")||y.pattern(t,e,u,i,a)}n(i)}function gs(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e,"date")&&!t.required)return n();if(y.required(t,e,u,i,a),!R(e,"date")){var o;e instanceof Date?o=e:o=new Date(e),y.type(t,o,u,i,a),o&&y.range(t,o.getTime(),u,i,a)}}n(i)}function ys(t,e,n,u,a){var i=[],r=Array.isArray(e)?"array":typeof e;y.required(t,e,u,i,a,r),n(i)}function Xe(t,e,n,u,a){var i=t.type,r=[],o=t.required||!t.required&&u.hasOwnProperty(t.field);if(o){if(R(e,i)&&!t.required)return n();y.required(t,e,u,r,a,i),R(e,i)||y.type(t,e,u,r,a)}n(r)}function Es(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a)}n(i)}var ne={string:us,method:as,number:is,boolean:rs,regexp:ss,integer:ls,float:os,array:cs,object:ds,enum:hs,pattern:ms,date:gs,url:Xe,hex:Xe,email:Xe,required:ys,any:Es};function Ge(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Je=Ge();function H(t){this.rules=null,this._messages=Je,this.define(t)}H.prototype={messages:function(e){return e&&(this._messages=Ht(Ge(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if(typeof e!="object"||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var n,u;for(n in e)e.hasOwnProperty(n)&&(u=e[n],this.rules[n]=Array.isArray(u)?u:[u])},validate:function(e,n,u){var a=this;n===void 0&&(n={}),u===void 0&&(u=function(){});var i=e,r=n,o=u;if(typeof r=="function"&&(o=r,r={}),!this.rules||Object.keys(this.rules).length===0)return o&&o(),Promise.resolve();function d(f){var B,l=[],m={};function v(b){if(Array.isArray(b)){var w;l=(w=l).concat.apply(w,b)}else l.push(b)}for(B=0;B<f.length;B++)v(f[B]);l.length?m=Ke(l):(l=null,m=null),o(l,m)}if(r.messages){var c=this.messages();c===Je&&(c=Ge()),Ht(c,r.messages),r.messages=c}else r.messages=this.messages();var g,E,C={},D=r.keys||Object.keys(this.rules);D.forEach(function(f){g=a.rules[f],E=i[f],g.forEach(function(B){var l=B;typeof l.transform=="function"&&(i===e&&(i=x({},i)),E=i[f]=l.transform(E)),typeof l=="function"?l={validator:l}:l=x({},l),l.validator=a.getValidationMethod(l),l.field=f,l.fullField=l.fullField||f,l.type=a.getType(l),l.validator&&(C[f]=C[f]||[],C[f].push({rule:l,value:E,source:i,field:f}))})});var S={};return Zr(C,r,function(f,B){var l=f.rule,m=(l.type==="object"||l.type==="array")&&(typeof l.fields=="object"||typeof l.defaultField=="object");m=m&&(l.required||!l.required&&f.value),l.field=f.field;function v(N,A){return x(x({},A),{},{fullField:l.fullField+"."+N})}function b(N){N===void 0&&(N=[]);var A=N;if(Array.isArray(A)||(A=[A]),!r.suppressWarning&&A.length&&H.warning("async-validator:",A),A.length&&l.message!==void 0&&(A=[].concat(l.message)),A=A.map(jt(l)),r.first&&A.length)return S[l.field]=1,B(A);if(!m)B(A);else{if(l.required&&!f.value)return l.message!==void 0?A=[].concat(l.message).map(jt(l)):r.error&&(A=[r.error(l,P(r.messages.required,l.field))]),B(A);var O={};if(l.defaultField)for(var en in f.value)f.value.hasOwnProperty(en)&&(O[en]=l.defaultField);O=x(x({},O),f.rule.fields);for(var G in O)if(O.hasOwnProperty(G)){var $s=Array.isArray(O[G])?O[G]:[O[G]];O[G]=$s.map(v.bind(null,G))}var tn=new H(O);tn.messages(r.messages),f.rule.options&&(f.rule.options.messages=r.messages,f.rule.options.error=r.error),tn.validate(f.value,f.rule.options||r,function(at){var J=[];A&&A.length&&J.push.apply(J,A),at&&at.length&&J.push.apply(J,at),B(J.length?J:null)})}}var w;l.asyncValidator?w=l.asyncValidator(l,f.value,b,f.source,r):l.validator&&(w=l.validator(l,f.value,b,f.source,r),w===!0?b():w===!1?b(l.message||l.field+" fails"):w instanceof Array?b(w):w instanceof Error&&b(w.message)),w&&w.then&&w.then(function(){return b()},function(N){return b(N)})},function(f){d(f)})},getType:function(e){if(e.type===void 0&&e.pattern instanceof RegExp&&(e.type="pattern"),typeof e.validator!="function"&&e.type&&!ne.hasOwnProperty(e.type))throw new Error(P("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if(typeof e.validator=="function")return e.validator;var n=Object.keys(e),u=n.indexOf("message");return u!==-1&&n.splice(u,1),n.length===1&&n[0]==="required"?ne.required:ne[this.getType(e)]||!1}},H.register=function(e,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");ne[e]=n},H.warning=Nt,H.messages=Je,H.validators=ne;const vs={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 Wt(t,e={}){const n=new H(t);return n.messages(Object.assign(vs,e)),n}const kt=new yr;class _{constructor(e){var g,E,C,D;this.setting=[],this.eventKeys=[],this.customEvents=[],this.parent=null,this.updateSetting=zt,this.removeSetting=Kt,this._callControlHooks("preInstance",e);const{controlName:n,controlIcon:u,controlType:a,controlFieldType:i,controlEventKeys:r,controlCustomEvents:o,name:d,setting:c}=new.target;n&&u&&a||gt(`The ${d} controlName,controlIcon,controlType is not define`),this.id=(g=e==null?void 0:e.id)!=null?g:W(10),this.name=n,this.icon=u,this.type=(E=e==null?void 0:e.type)!=null?E:a,this.props=new j(e==null?void 0:e.props,new.target.controlName),this.controlType=(C=e==null?void 0:e.controlType)!=null?C:"base",this.setting=k(c),this.fieldType=(D=e==null?void 0:e.fieldType)!=null?D:i,this.eventKeys=k(r),this.customEvents=k(o),Promise.resolve().then(()=>{this._callControlHooks("postInstance",e)})}get rules(){const e=this.props.constructor.Rules;return e?new e(this.props):{}}_callControlHooks(...e){const[n,...u]=e;return kt.emit(n,this,...u)}preUpdate(e,n){this._callControlHooks("preUpdateProps",e,n)}postUpdate(e,n){this._callControlHooks("postUpdateProps",e,n)}updateProps(e,n){this.preUpdate(e,n),tr(this.props,e,n),this.postUpdate(e,n)}preValidate(){return re(this,null,function*(){const e=Q({},this.rules),n=yield this._callControlHooks("preValidate",e),u=n[n.length-1];return u===!1?void 0:u})}validate(e,n){return re(this,null,function*(){const u=yield this.preValidate(),a=u!==void 0?u:Q({},this.rules);Array.isArray(n)&&n.forEach(r=>{a.hasOwnProperty(r)&&delete a[r]});const i=Wt(a,e);try{return yield i.validate(this.props),!0}catch(r){throw r.control||(r.control=this),r}})}toDataBindModel(e=null){const n=this.fieldType,u=this.id,a=this.type,{dataBind:i,datasourceBind:r,optionConfig:o,caption:d,required:c,maxLength:g,options:E,encrypted:C,encryptedMode:D}=this.props;if(!n&&!i&&!r)return;const S={parentId:e,fieldType:n,controlId:u,caption:d,type:a,props:{}};switch(i&&(S.dataBind=i),o){case"datasource":case void 0:r&&(S.datasourceBind=r);break;case"custom":S.props.options=E;break}return c!==void 0&&(S.required=c),g!==void 0&&(S.maxLength=g),C!==void 0&&(S.encrypted=C),D!==void 0&&(S.encryptedMode=D),S}preToSchema(){this._callControlHooks("preToSchema",this)}toSchema(){return this.preToSchema(),{id:this.id,type:this.type,props:k(this.props),fieldType:this.fieldType,controlType:this.controlType}}static updateBasicControl(e,n){e==="setting"&&(n.add&&this.setting.push(...n.add),n.remove&&this.removeSettingItem(n.remove),n.update)}}_.controlName="\u63A7\u4EF6",_.controlIcon="icon",_.controlType="control",_.controlEventKeys=[],_.controlCustomEvents=[],_.setting=[],_.__is_control__=!0,_.removeSettingItem=Kt,_.updateSettingItem=zt;function Kt(t){(Array.isArray(t)?t:[t]).forEach(n=>{var i,r;const u=typeof n!="string",a=this.setting.findIndex(o=>o.key===(u?n.key:n));a!==-1&&(u?this.setting[a].showItems=(i=this.setting[a].showItems)==null?void 0:i.filter(o=>!n.hideItems.includes(o)):this.setting.splice(a,1),u&&!((r=this.setting[a].showItems)!=null&&r.length)&&this.setting.splice(a,1))})}function zt(t,e){(typeof t=="string"?[t]:t).forEach(u=>{var i;const a=this.setting.find(r=>r.key===u);a&&(typeof e=="boolean"?a.visible=e:typeof e=="object"&&(((i=e.type)!=null?i:"replace")==="replace"?a.showItems=e.showItems:a.showItems.push(...e.showItems)))})}class T{constructor(e){var r,o,d,c,g;this.customEvents=[],this.parent=null;const{controlType:n,controlFieldType:u,name:a,controlCustomEvents:i}=new.target;n||gt(`The ${a} controlType is not define`),this.id=(r=e==null?void 0:e.id)!=null?r:W(10),this.type=(o=e==null?void 0:e.type)!=null?o:n,this.props=new j(e==null?void 0:e.props),this.customEvents=i,this.controlType=(d=e==null?void 0:e.controlType)!=null?d:"base",this.fieldType=(c=e==null?void 0:e.fieldType)!=null?c:u,this.pageStatus=(g=e==null?void 0:e.pageStatus)!=null?g:He.UNKNOWN}get rules(){const e=this.props.constructor.RuntimeRules;if(e){const n=new e(this.props);return Array.from(n)}return[]}}T.controlType="control",T.__is_control__=!0,T.controlCustomEvents=[];function Qe(t){t.hasOwnProperty("optionConfig")||(this.optionConfig={type:"any"}),t.hasOwnProperty("options")||(this.options={type:"any"}),t.hasOwnProperty("datasourceBind")||(this.datasourceBind={type:"any"}),t.hasOwnProperty("options")&&(!t.hasOwnProperty("optionConfig")||t.hasOwnProperty("optionConfig")&&t.optionConfig==="custom")?this.options=[{type:"array",message:h.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{label:{type:"string",required:!0,message:h.getMessage("pleaseEnterLabel")},value:{type:"string",required:!0,message:h.getMessage("pleaseEnterValue")}}}},{type:"array",validator(e,n,u){n.length===0&&u(h.getMessage("optionIsRequired")),u()}},{type:"array",validator(e,n,u){const a=n.map(r=>r.value),i=sr(a);a.length!==i.length?u(h.getMessage("optionIdIsRepeat")):u()},message:h.getMessage("optionIdIsRepeat")}]:t.hasOwnProperty("datasourceBind")&&(!t.hasOwnProperty("optionConfig")||t.hasOwnProperty("optionConfig")&&t.optionConfig==="datasource")&&(this.datasourceBind=[{type:"object",message:h.getMessage("isNotObject")},{type:"object",fields:{dataCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterDataCode")},valueFieldCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterValueFieldCode")},svcCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterSvcCode")},displayBoList:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",validator(e,n,u){n.length===0&&u(h.getMessage("pleaseBindAtLeastOneDisplayValue")),u()},message:h.getMessage("pleaseBindAtLeastOneDisplayValue")}],orders:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{columnName:{type:"string",required:!0,message:h.getMessage("pleaseEnterFieldCode")},desc:{type:"boolean",message:h.getMessage("isNotBoolean")}}}}]}}])}function Bs(t,e,n=!1){this.datasourceBind=[{type:"object",message:h.getMessage("isNotObject")},{type:"object",fields:{dataCode:{type:"string",required:!0,message:h.getMessage(n?"pleaseEnterDataCodeInDataSetting":"pleaseEnterDataCode")},valueFieldCode:{type:"string",required:!0,message:h.getMessage(n?"pleaseEnterValueFieldCodeInDataSetting":"pleaseEnterValueFieldCode")},svcCode:{type:"string",required:!0,message:h.getMessage(n?"pleaseEnterSvcCodeInDataSetting":"pleaseEnterSvcCode")},attributes:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{name:{type:"string",required:!0,message:h.getMessage("isNotString")},key:{type:"string",required:!0,message:h.getMessage("isNotString")},value:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",validator(u,a,i){a.length===0&&i(h.getMessage(n?"pleaseBindAtLeastOneDisplayValueInDataSetting":"pleaseBindAtLeastOneDisplayValue")),i()},message:h.getMessage(n?"pleaseBindAtLeastOneDisplayValueInDataSetting":"pleaseBindAtLeastOneDisplayValue")}]}}}],orders:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{columnName:{type:"string",required:!0,message:h.getMessage("pleaseEnterFieldCode")},desc:{type:"boolean",message:h.getMessage("isNotBoolean")}}}}]}}]}class Ze extends me{constructor(e){super(e),this.dataBind={},this.caption={type:"string",required:!0,message:h.getMessage("pleaseEnterCaption")},this.isHideCaption={type:"boolean"},this.labelPosition={type:"enum",enum:["top","left"]},this.defaultState={type:"enum",enum:["default","readonly"]},this.required={type:"boolean"},this.captionTip={type:"string",required:!1,message:h.getMessage("pleaseEnterCaptionTip")};const n={fieldCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterFieldCode")},dataCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterFieldCode")}};if(e.dataBind instanceof V)this.dataBind={type:"object",required:!0,fields:k(n),message:h.getMessage("pleaseEnterFieldCode")};else{let u={type:"object",required:!0,fields:{},message:h.getMessage("pleaseEnterFieldCode")};Object.keys(e.dataBind).forEach(a=>{u.fields[a]={type:"object",required:!0,fields:k(n),message:h.getMessage("pleaseEnterFieldCode")}}),this.dataBind=u}e.isShowCaptionTip&&(this.captionTip.required=!0)}}class Xt extends Te{constructor(e){super(e),this.push({type:"string",required:e.isHide?!1:e.required,message:e.requiredMessage!==""?e.requiredMessage:h.getMessage("runtimeRequired",{caption:e.caption})})}}class ue extends j{constructor(e){var n,u,a,i,r,o,d,c,g,E;super(e),this.caption=(n=e==null?void 0:e.caption)!=null?n:"",this.isHideCaption=(u=e==null?void 0:e.isHideCaption)!=null?u:!1,this.isShowCaptionTip=(a=e==null?void 0:e.isShowCaptionTip)!=null?a:!1,this.captionTip=(i=e==null?void 0:e.captionTip)!=null?i:"",this.defaultState=(r=e==null?void 0:e.defaultState)!=null?r:"default",this.labelPosition=(o=e==null?void 0:e.labelPosition)!=null?o:"top",this.placeholder=(d=e==null?void 0:e.placeholder)!=null?d:"",this.required=(c=e==null?void 0:e.required)!=null?c:!1,this.requiredMessage=(g=e==null?void 0:e.requiredMessage)!=null?g:"",this.dataBind=new V(e==null?void 0:e.dataBind),this.defaultValue=(E=e==null?void 0:e.defaultValue)!=null?E:""}}ue.Rules=Ze,ue.RuntimeRules=Xt;class As extends Ze{constructor(e){super(e),this.optionConfig={type:"enum",enum:["custom","datasource"],message:h.getMessage("PleaseSelectTheCorrectOptionSettings")},this.options=[{type:"array",message:h.getMessage("isNotArray")}],this.datasourceBind=[{type:"object",message:h.getMessage("isNotObject")}],Qe.call(this,e)}}class Gt extends _{constructor(e){super(e),this.controlType="form",this.props=new ue(e==null?void 0:e.props)}}Gt.controlEventKeys=["on_change","on_focus","on_blur"];class Cs extends T{constructor(e){super(e),this.controlType="form",this.props=new ue(e==null?void 0:e.props)}}class ae extends j{constructor(e){super(e)}}function Jt(t,e){var n;(n=Object.getOwnPropertyDescriptors(t)[e])!=null&&n.enumerable&&Object.defineProperty(t,e,{enumerable:!1})}function Ye(t,e){t.parent=e,Jt(t,"parent")}function Qt(t,e){t.forEach(n=>{Ye(n,e)})}const Zt=Symbol("targetKey");function Yt(t){var e;return(e=t[Zt])!=null?e:t}function pt(t,e){return Qt(t,e),new Proxy(t,{get(n,u,...a){return u===Zt?n:Reflect.get(n,u,...a)},set(n,u,a,...i){if(rr(t)&&u==="length"&&a===t.length)return!0;const r=Reflect.set(n,u,a,...i);return ir(a)&&Ye(a,e),r}})}function ie(t,e,n,u){const a=u!=null?u:t;let i=pt(Yt(n!=null?n:[]),a);Object.defineProperty(t,e,{get(){return i},set(r){i=pt(Yt(r),a)},enumerable:!0})}const Fs=1e4;class K extends _{constructor(e){super(e),this.controlType="layout";const{excludes:n,childrenMaxLength:u}=new.target;this.props=new ae(e==null?void 0:e.props),ie(this,"children",e==null?void 0:e.children),this.excludes=k(n),this.childrenMaxLength=u}judgeExcludesChildren(e){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(e)}judgeJoinChildren(e){const n=this.judgeExcludesChildren(e);return n&&this.childrenMaxLength>this.children.length}validate(e,n){return re(this,null,function*(){return yield it(K.prototype,this,"validate").call(this,e,n),yield Promise.all(this.children.map(u=>u.validate(e,n))),!0})}toDataBindModel(e=null){const n=super.toDataBindModel(),u=n?[n]:[];return this.children.reduce((a,i)=>{const r=i.toDataBindModel(e);if(Array.isArray(r)){const o=r.filter(d=>!!d);return[...a,...o]}return r&&a.push(r),a},u)}toSchema(){const e=super.toSchema(),n=this.children.map(u=>u.toSchema());return Be(Q({},e),{children:n})}}K.excludes=!1,K.childrenMaxLength=Fs;class pe extends T{constructor(e){super(e),this.controlType="layout",this.props=new ae(e==null?void 0:e.props),ie(this,"children",e==null?void 0:e.children)}}class et extends j{constructor(e,n){super(n),ie(this,"headers",n==null?void 0:n.headers,e)}}class Ee extends _{constructor(e){super(e),this.controlType="list",this.props=new et(this,e==null?void 0:e.props)}validate(e,n){return re(this,null,function*(){return yield it(Ee.prototype,this,"validate").call(this,e),yield Promise.all(this.props.headers.map(u=>u.validate(e,n))),!0})}toDataBindModel(){const e=super.toDataBindModel(),n=e?[e]:[],u=this.id;return this.props.headers.reduce((a,i)=>{const r=i.toDataBindModel(u);if(Array.isArray(r)){const o=r.filter(d=>!!d);return[...a,...o]}return r&&a.push(r),a},n)}toSchema(){const e=super.toSchema(),n=this.props.headers.map(u=>u.toSchema());return Be(Q({},e),{props:Be(Q({},this.props),{headers:n})})}}Ee.controlFieldType=M.LIST;class Ds extends T{constructor(e){super(e),this.controlType="list",this.props=new et(this,e==null?void 0:e.props),ie(this,"children",e==null?void 0:e.children)}get length(){return this.children.length}}class tt extends me{constructor(e){super(e),this.caption={type:"string",required:!0,message:h.getMessage("pleaseEnterCaption")},this.width={type:"number",required:!1,message:h.getMessage("pleaseEnterColumnWidth")},this.width.required=e.widthType==="px"}}class ve extends j{constructor(e){var n,u,a,i,r;super(e),this.width=(n=e==null?void 0:e.width)!=null?n:150,this.widthType=(e==null?void 0:e.widthType)||"auto",this.caption=(u=e==null?void 0:e.caption)!=null?u:"",this.fixed=(a=e==null?void 0:e.fixed)!=null?a:"none",this.autoWidth=new _e(e==null?void 0:e.autoWidth),this.dataBind=new V(e==null?void 0:e.dataBind),this.sort=(i=e==null?void 0:e.sort)!=null?i:!0,this.align=e==null?void 0:e.align,this.colSpan=e==null?void 0:e.colSpan,this.autoHeight=(r=e==null?void 0:e.autoHeight)!=null?r:!1}}ve.Rules=tt;class bs extends tt{constructor(e){super(e),this.optionConfig={type:"enum",enum:["custom","datasource","none"],message:h.getMessage("PleaseSelectTheCorrectOptionSettings")},this.options=[{type:"array",message:h.getMessage("isNotArray")}],this.datasourceBind=[{type:"object",message:h.getMessage("isNotObject")}],Qe.call(this,e)}}class Ss extends _{constructor(e){super(e),this.controlType="column",this.props=new ve(e==null?void 0:e.props)}}class ws extends T{constructor(e){super(e),this.controlType="column",this.props=new ve(e==null?void 0:e.props)}}class nt extends ae{constructor(e){super(e),this.dataBind=new V(e==null?void 0:e.dataBind)}}class Is extends K{constructor(e){super(e),this.controlType="search",this.props=new nt(e==null?void 0:e.props)}}class Rs extends pe{constructor(e){super(e),this.controlType="search",this.props=new nt(e==null?void 0:e.props)}}class ut extends ae{constructor(e){super(e)}}class Ms extends K{constructor(e){super(e),this.controlType="wrap",this.props=new ut(e==null?void 0:e.props)}}class Ls extends pe{constructor(e){super(e),this.controlType="wrap",this.props=new ut(e==null?void 0:e.props)}}s.AMOUNT_TYPE=je,s.AddressValue=Or,s.AmountDataBind=Pr,s.AmountValue=Vr,s.AutoWidth=_e,s.BaseControlProperty=ue,s.BaseControlPropertyRules=Ze,s.BaseControlPropertyRuntimeRules=Xt,s.BaseStyle=xt,s.COMMON_SETTING_TYPE=Vt,s.CalcDataBind=Ur,s.CalcValue=jr,s.ColumnControlProperty=ve,s.ColumnControlPropertyRules=tt,s.ColumnOptionAndDataSourcePropertyRules=bs,s.CustomAttributeItem=Lt,s.CustomPermissionItem=Wr,s.DataBind=V,s.DataSourceBind=Oe,s.DataSourceDataSetValue=Mt,s.DataSourceOrderItem=xe,s.DataSourceParamItem=Ir,s.DataStorageDoc=Dr,s.DesignerColumnControl=Ss,s.DesignerControl=_,s.DesignerFormControl=Gt,s.DesignerLayoutControl=K,s.DesignerListControl=Ee,s.DesignerSearchControl=Is,s.DesignerWrapControl=Ms,s.DisplayBoListItem=Ve,s.FieldBindItem=St,s.FieldFilterCondition=Pe,s.FieldFilterConditions=fe,s.FillBackBind=Mr,s.FillPayloadBind=qt,s.FormBind=de,s.FormSelectBind=br,s.ImageOptionSetting=Pt,s.Language=Lr,s.LayoutControlProperty=ae,s.LeftVariable=It,s.ListBind=Sr,s.ListControlProperty=et,s.MetaAutoWidth=Fr,s.MetaWidth=ce,s.MultistageFillingItem=Rt,s.ObjectDataBind=he,s.OperationItem=Hr,s.OptionAndDataSourcePropertyRules=As,s.OptionSetting=Ue,s.PAGE_STATUS=He,s.Property=j,s.PropertyRules=me,s.PropertyRuntimeRules=Te,s.RangeDataBind=xr,s.RangeDateValue=Nr,s.RegisterControls=oe,s.RegularRules=$r,s.RightVariable=qe,s.RuntimeColumnControl=ws,s.RuntimeControl=T,s.RuntimeFormControl=Cs,s.RuntimeLayoutControl=pe,s.RuntimeListControl=Ds,s.RuntimeSearchControl=Rs,s.RuntimeWrapControl=Ls,s.SearchControlProperty=nt,s.SubListItem=wt,s.SubListPageConfig=wr,s.SuperDataSourceBind=$t,s.TreeDataSourceBind=Rr,s.ViewOperationItem=Tr,s.WrapControlProperty=ut,s.controlHooksEmitter=kt,s.createValidator=Wt,s.defineArrayParent=Qt,s.defineControlArrayToProperty=ie,s.defineParent=Ye,s.initImageOptions=qr,s.initOptionAndDataSourceRules=Qe,s.initOptions=_r,s.initSuperDataSourceRules=Bs,s.setPropertyDontEnum=Jt,Object.defineProperty(s,"__esModule",{value:!0})});
1
+ var Vl=Object.defineProperty,Nl=Object.defineProperties;var xl=Object.getOwnPropertyDescriptors;var nn=Object.getOwnPropertySymbols,Ul=Object.getPrototypeOf,jl=Object.prototype.hasOwnProperty,Hl=Object.prototype.propertyIsEnumerable,Tl=Reflect.get;var un=(l,F,I)=>F in l?Vl(l,F,{enumerable:!0,configurable:!0,writable:!0,value:I}):l[F]=I,Z=(l,F)=>{for(var I in F||(F={}))jl.call(F,I)&&un(l,I,F[I]);if(nn)for(var I of nn(F))Hl.call(F,I)&&un(l,I,F[I]);return l},Ae=(l,F)=>Nl(l,xl(F));var rt=(l,F,I)=>Tl(Ul(l),I,F);var re=(l,F,I)=>new Promise((Ce,le)=>{var Fe=U=>{try{Q(I.next(U))}catch(Y){le(Y)}},De=U=>{try{Q(I.throw(U))}catch(Y){le(Y)}},Q=U=>U.done?Ce(U.value):Promise.resolve(U.value).then(Fe,De);Q((I=I.apply(l,F)).next())});(function(l,F){typeof exports=="object"&&typeof module!="undefined"?F(exports):typeof define=="function"&&define.amd?define(["exports"],F):(l=typeof globalThis!="undefined"?globalThis:l||self,F(l.modelDrivenCore={}))})(this,function(l){"use strict";var F="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",I="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",Ce="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",le="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",Fe="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",De="{caption}\u5FC5\u586B",Q="\u8BF7\u8F93\u5165\u6807\u9898",U="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",Y="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",an="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",rn="\u8BF7\u7ED1\u5B9A\u8868\u5355",ln="\u8BF7\u7ED1\u5B9A\u5217\u8868",sn="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",on="\u8BF7\u8F93\u5165\u663E\u793A\u503C",cn="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",dn="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",fn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",hn="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",mn="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",gn="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",yn="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",En="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",vn="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",Bn="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",An="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",Cn="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Fn="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Dn="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",bn="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",Sn="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",wn="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",In="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",Rn="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",Mn="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Ln="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",$n="\u8BF7\u7ED1\u5B9A\u670D\u52A1",_n="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Pn="\u8BF7\u9009\u62E9\u7701",qn="\u8BF7\u9009\u62E9\u5E02",On="\u8BF7\u9009\u62E9\u533A",Vn="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",Nn="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",xn="\u8BF7\u8F93\u5165\u5217\u5BBD",Un="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",jn="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",Hn="\u8BF7\u9009\u62E9\u63A7\u4EF6",Tn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",kn="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",Wn="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",Kn="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",zn="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Xn="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Gn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Jn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Zn="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Qn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Yn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",pn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",eu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",tu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",nu="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",uu="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",au="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",iu="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",ru="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",lu="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",su="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",ou={isNotNumber:F,isNotString:I,isNotObject:Ce,isNotArray:le,isNotBoolean:Fe,runtimeRequired:De,pleaseEnterCaption:Q,pleaseEnterCaptionTip:U,pleaseEnterPlaceholder:Y,pleaseEnterFieldCode:an,pleaseEnterForm:rn,pleaseEnterList:ln,pleaseEnterProcess:sn,pleaseEnterLabel:on,pleaseEnterValue:cn,bizKeyNotBindFiled:dn,pleaseSelectOneField:fn,pleaseEnterNumberRange:hn,pleaseEnterAValueGreaterThanMin:mn,pleaseEnterAValueLessThanMax:gn,numberRangeSetError:yn,stringRangeError:En,attachmentMaxSize:vn,pleaseEnterTotalScoreSetting:Bn,theTotalScoreMustNotBeLessThan1:An,scoreDefaultValueRange:Cn,attachmentLimitError:Fn,PleaseReselectTheOptionalQuantity:Dn,TheMaximumLengthIsGreaterThanTheMinimumLength:bn,TheMinimumLengthIsGreaterThanTheMaximumLength:Sn,PleaseSelectTheCorrectOptionSettings:wn,optionIdIsRepeat:In,optionIsRequired:Rn,pleaseEnterDataCode:Mn,pleaseEnterValueFieldCode:Ln,pleaseEnterSvcCode:$n,pleaseBindAtLeastOneDisplayValue:_n,pleaseSelectProvince:Pn,pleaseSelectCity:qn,pleaseSelectDistrict:On,limitRowsCannotBeLessThan0:Vn,TheNumberOfRowsCannotBeLessThanMinRows:Nn,pleaseEnterColumnWidth:xn,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Un,pleaseCompleteAllRulesAndConditions:jn,pleaseSelectControl:Hn,pleaseSelectAtLeastOneColumn:Tn,pleaseSelectFillBackMode:kn,pleaseSelectDashboard:Wn,rootNodeIsRequired:Kn,theViewNameCannotBeEmpty:zn,pleaseSelectOcrType:Xn,pleaseSelectAtLeastOneFieldToFillIn:Gn,pleaseChooseAtLeastOne:Jn,pleaseEnterButtonContent:Zn,pleaseEnterDataCodeInDataSetting:Qn,pleaseEnterValueFieldCodeInDataSetting:Yn,pleaseEnterSvcCodeInDataSetting:pn,pleaseBindAtLeastOneDisplayValueInDataSetting:eu,rootNodeIsRequiredInDataSetting:tu,pleaseEnterMaxHeight:nu,pleaseEnter:uu,pleaseEnterWatermark:au,pleaseEnterFileName:iu,pleaseUploadAtLeastOnePrintTemplate:ru,pleaseAssignBusiness:lu,pleaseAssignExternal:su},cu="Please enter a number",du="Please enter a string",fu="Please enter an object",hu="Please enter an array",mu="Please enter a boolean",gu="{caption} Required",yu="Please enter the title",Eu="Please enter the bubble prompt",vu="Please enter the prompt text",Bu="Please bind data items",Au="Please bind the form",Cu="Please bind the list",Fu="Please bind the process",Du="Please enter the displayed value",bu="Please enter the stored value",Su="The document number is not bound to the data item",wu="Please select at least one display field",Iu="Please enter a value greater than or equal to {min} and less than or equal to {max}",Ru="Please enter a value greater than or equal to {min}",Mu="Please enter a value less than or equal to {max}",Lu="The value range is set incorrectly",$u="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",_u="The attachment size must be between 0MB and 1000MB",Pu="Please fill in the total score setting",qu="The total score cannot be less than 1",Ou="The default value must be between {min} and {max}",Vu="The number of attachments uploaded must be between {min} and {max}",Nu="Please re-select the optional quantity",xu="The maximum length of the control must be greater than the minimum length",Uu="The minimum length of the control must be less than the maximum length",ju="Please select the correct option setting",Hu="Option ID cannot be repeated",Tu="Please enter at least one option",ku="Please bind the data source",Wu="Please bind the stored value",Ku="Please bind the service",zu="At least one display value must be bound",Xu="Please select a province",Gu="Please select a city",Ju="Please select a district",Zu="The minimum number of lines to fill in cannot be less than 0",Qu="The number of rows cannot be less than {min} rows",Yu="Please enter the column width",pu="Please set the logical relationship of all rule conditions",ea="Please complete all rules and conditions",ta="please select control",na="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",ua="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",aa="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",ia="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",ra="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",la="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",sa="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",oa="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",ca="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",da="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",fa="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",ha="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",ma="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",ga="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",ya="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Ea="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",va="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Ba="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Aa={isNotNumber:cu,isNotString:du,isNotObject:fu,isNotArray:hu,isNotBoolean:mu,runtimeRequired:gu,pleaseEnterCaption:yu,pleaseEnterCaptionTip:Eu,pleaseEnterPlaceholder:vu,pleaseEnterFieldCode:Bu,pleaseEnterForm:Au,pleaseEnterList:Cu,pleaseEnterProcess:Fu,pleaseEnterLabel:Du,pleaseEnterValue:bu,bizKeyNotBindFiled:Su,pleaseSelectOneField:wu,pleaseEnterNumberRange:Iu,pleaseEnterAValueGreaterThanMin:Ru,pleaseEnterAValueLessThanMax:Mu,numberRangeSetError:Lu,stringRangeError:$u,attachmentMaxSize:_u,pleaseEnterTotalScoreSetting:Pu,theTotalScoreMustNotBeLessThan1:qu,scoreDefaultValueRange:Ou,attachmentLimitError:Vu,PleaseReselectTheOptionalQuantity:Nu,TheMaximumLengthIsGreaterThanTheMinimumLength:xu,TheMinimumLengthIsGreaterThanTheMaximumLength:Uu,PleaseSelectTheCorrectOptionSettings:ju,optionIdIsRepeat:Hu,optionIsRequired:Tu,pleaseEnterDataCode:ku,pleaseEnterValueFieldCode:Wu,pleaseEnterSvcCode:Ku,pleaseBindAtLeastOneDisplayValue:zu,pleaseSelectProvince:Xu,pleaseSelectCity:Gu,pleaseSelectDistrict:Ju,limitRowsCannotBeLessThan0:Zu,TheNumberOfRowsCannotBeLessThanMinRows:Qu,pleaseEnterColumnWidth:Yu,pleaseSetTheLogicalRelationshipOfAllRuleConditions:pu,pleaseCompleteAllRulesAndConditions:ea,pleaseSelectControl:ta,pleaseSelectDashboard:na,theViewNameCannotBeEmpty:ua,pleaseSelectOcrType:aa,pleaseSelectAtLeastOneFieldToFillIn:ia,pleaseChooseAtLeastOne:ra,pleaseEnterButtonContent:la,pleaseEnterDataCodeInDataSetting:sa,pleaseEnterValueFieldCodeInDataSetting:oa,pleaseEnterSvcCodeInDataSetting:ca,pleaseBindAtLeastOneDisplayValueInDataSetting:da,rootNodeIsRequiredInDataSetting:fa,pleaseEnterMaxHeight:ha,pleaseEnter:ma,pleaseEnterWatermark:ga,pleaseEnterFileName:ya,pleaseUploadAtLeastOnePrintTemplate:Ea,pleaseAssignBusiness:va,pleaseAssignExternal:Ba},Ca="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Fa="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Da="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ba="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Sa="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",wa="{caption}\u5FC5\u9808",Ia="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ra="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ma="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",La="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",$a="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",_a="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Pa="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",qa="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Oa="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Va="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",Na="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",xa="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ua="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ja="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ha="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",Ta="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ka="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Wa="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Ka="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",za="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Xa="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Ga="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Ja="\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",Za="\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",Qa="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Ya="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",pa="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",ei="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ti="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ni="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ui="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",ai="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",ii="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",ri="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",li="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",si="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",oi="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ci="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",di="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",fi="please select control",hi="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",mi="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",gi="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",yi="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Ei="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",vi="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Bi="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Ai="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",Ci="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",Fi="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Di="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",bi="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Si="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",wi="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",Ii="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Ri="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",Mi="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Li="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",$i={isNotNumber:Ca,isNotString:Fa,isNotObject:Da,isNotArray:ba,isNotBoolean:Sa,runtimeRequired:wa,pleaseEnterCaption:Ia,pleaseEnterCaptionTip:Ra,pleaseEnterPlaceholder:Ma,pleaseEnterFieldCode:La,pleaseEnterForm:$a,pleaseEnterList:_a,pleaseEnterProcess:Pa,pleaseEnterLabel:qa,pleaseEnterValue:Oa,bizKeyNotBindFiled:Va,pleaseSelectOneField:Na,pleaseEnterNumberRange:xa,pleaseEnterAValueGreaterThanMin:Ua,pleaseEnterAValueLessThanMax:ja,numberRangeSetError:Ha,stringRangeError:Ta,attachmentMaxSize:ka,pleaseEnterTotalScoreSetting:Wa,theTotalScoreMustNotBeLessThan1:Ka,scoreDefaultValueRange:za,attachmentLimitError:Xa,PleaseReselectTheOptionalQuantity:Ga,TheMaximumLengthIsGreaterThanTheMinimumLength:Ja,TheMinimumLengthIsGreaterThanTheMaximumLength:Za,PleaseSelectTheCorrectOptionSettings:Qa,optionIdIsRepeat:Ya,optionIsRequired:pa,pleaseEnterDataCode:ei,pleaseEnterValueFieldCode:ti,pleaseEnterSvcCode:ni,pleaseBindAtLeastOneDisplayValue:ui,pleaseSelectProvince:ai,pleaseSelectCity:ii,pleaseSelectDistrict:ri,limitRowsCannotBeLessThan0:li,TheNumberOfRowsCannotBeLessThanMinRows:si,pleaseEnterColumnWidth:oi,pleaseSetTheLogicalRelationshipOfAllRuleConditions:ci,pleaseCompleteAllRulesAndConditions:di,pleaseSelectControl:fi,pleaseSelectDashboard:hi,theViewNameCannotBeEmpty:mi,pleaseSelectOcrType:gi,pleaseSelectAtLeastOneFieldToFillIn:yi,pleaseChooseAtLeastOne:Ei,pleaseEnterButtonContent:vi,pleaseEnterDataCodeInDataSetting:Bi,pleaseEnterValueFieldCodeInDataSetting:Ai,pleaseEnterSvcCodeInDataSetting:Ci,pleaseBindAtLeastOneDisplayValueInDataSetting:Fi,rootNodeIsRequiredInDataSetting:Di,pleaseEnterMaxHeight:bi,pleaseEnter:Si,pleaseEnterWatermark:wi,pleaseEnterFileName:Ii,pleaseUploadAtLeastOnePrintTemplate:Ri,pleaseAssignBusiness:Mi,pleaseAssignExternal:Li},_i={zhCN:ou,enUS:Aa,jaJP:$i},lt;(function(t){t.Number="Number",t.Operator="Operator",t.VariableInMainTable="VariableInMainTable",t.VariableInCurrentSubTable="VariableInCurrentSubTable",t.VariableInOtherSubTable="VariableInOtherSubTable",t.UndefinedVariable="UndefinedVariable"})(lt||(lt={}));var st;(function(t){t.SUM="SUM",t.AVG="AVG",t.MAX="MAX",t.MIN="MIN"})(st||(st={}));var Pi="zh-CN";function P(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var z;(function(t){t.BASE="base",t.FORM="form",t.LAYOUT="layout",t.WRAP="wrap",t.COLUMN="column",t.LIST="list",t.SEARCH="search"})(z||(z={}));var L;(function(t){t.TITLE="title",t.LINK="link",t.BUTTON="button",t.DIVIDER="divider",t.TEXT="text",t.CREATE_FORM_LIST_BUTTON="list-page-btn-create-form",t.BATCH_SUBMISSION_LIST_BUTTON="list-page-btn-batch-submission",t.SUBMISSION_RECORD_LIST_BUTTON="list-page-btn-submission-record",t.IMPORT_RECORD_LIST_BUTTON="list-page-btn-import-record",t.EXPORT_RECORD_LIST_BUTTON="list-page-btn-export-record",t.EXPORT_LIST_BUTTON="list-page-btn-export-list",t.LIST_SELECT_BUTTON="list-select-button",t.ORGANIZATION_SELECTION="organization-selection",t.FORM_SELECT_BUTTON="form-select-button",t.LIST_VIEW_SELECT="list-view-select",t.TEXT_OCR_BUTTON="text-ocr-button",t.INVOICE_CHECK_BUTTON="invoice-check-button",t.LIST_PAGE_BTN_BATCH_PRINT="list-page-btn-batch-print",t.LIST_PAGE_BTN_BATCH_PRINT_RECORD="list-page-btn-batch-print-record",t.VARCHAR_COLUMN="varchar-column",t.TEXT_COLUMN="text-column",t.DECIMAL_COLUMN="decimal-column",t.TIMESCOPE_COLUMN="timescope-column",t.TIMESTAMP_COLUMN="timestamp-column",t.ARRAY_COLUMN="array-column",t.DEPARTMENT_COLUMN="department-column",t.AUTO_NUMBER_COLUMN="auto-number-column",t.FILE_COLUMN="file-column",t.IMAGE_COLUMN="image-column",t.PEOPLE_COLUMN="people-column",t.LOCATION_COLUMN="location-column",t.CUSTOM_COLUMN="custom-column",t.ORDER_COLUMN="order-column",t.OPERATION_COLUMN="operation-column",t.EMPLOYEE_COLUMN="employee-column",t.ADDRESS="address",t.AMOUNT="amount",t.ATTACHMENT="attachment",t.AUTO_NUMBER="auto-number",t.CALC="calc",t.CHECKBOX="checkbox",t.DATE_PICKER="date-picker",t.DATE_RANGE="date-range",t.DEPARTMENT="department",t.EMPLOYEE="employee",t.IMAGE="image",t.INPUT="input",t.NUMBER="number",t.RADIO="radio",t.RICH_TEXT="rich-text",t.SCORE="score",t.SEARCH_DATE_RANGE="search-date-range",t.SEARCH_NUMBER_RANGE="search-number-range",t.SEARCH_INPUT="search-input",t.SELECT="select",t.SELECT_MULTIPLE="select-multiple",t.SELECT_RELATION="select-relation",t.VUE_FORM_ITEM="vue-form-item",t.TEXTAREA="textarea",t.EMAIL="email",t.FOOTER="footer",t.HEADER="header",t.ID_CARD="id-card",t.MOBILE="mobile",t.PHONE="phone",t.RADIO_IMAGE="radio-image",t.ELECTRONIC_SIGNATURE="electronic-signature",t.WPS="wps",t.CARD_GROUP="card-group",t.COL="col",t.GRID="grid",t.GRID_ROW="grid-row",t.GRID_TABLE_COLUMN="grid-table-column",t.ROW="row",t.TWO_COLUMNS="two-columns",t.SUBTABLE_COLUMN="subtable-column",t.SUBTABLE_ROW="subtable-row",t.TAB="tab",t.TAB_PANE="tab-pane",t.TOOLBOX="toolbox",t.DATA_VIEW="data-view",t.LIST_VIEW="list-view",t.SUBTABLE="subtable",t.GRID_TABLE="grid-table",t.SIMPLE_SEARCH="simple-search",t.PAGINATION="pagination",t.CHECKBOX_IMAGE="checkbox-image",t.DASHBOARD="dashboard",t.TREE="tree",t.EMPLOYEE2="employee2",t.DEPARTMENT2="department2"})(L||(L={}));var M;(function(t){t.VARCHAR="varchar",t.TEXT="text",t.ARRAY="array",t.ADDRESS="location",t.DECIMAL="decimal",t.DECIMAL_RANGE="decimal_range",t.TIMESTAMP="timestamp",t.EMPLOYEES="people",t.DEPARTMENTS="department",t.MONEY="money",t.TIMESCOPE="timescope",t.FILE="file",t.IMAGE="image",t.AUTO_NUMBER="auto_number",t.CALC="calc",t.RELATION="relation",t.LIST="list",t.RELATION_FIELD="relation-field",t.REFERENCE_FIELD="reference-field",t.CALC_FIELD="calc",t.JSON="json",t.BIGINT="bigint",t.ANY="ANY",t.ENCRYPTED_FIELD="encrypted_field"})(M||(M={}));var $;$={},P($,M.ARRAY,L.ARRAY_COLUMN),P($,M.AUTO_NUMBER,L.AUTO_NUMBER_COLUMN),P($,M.DECIMAL,L.DECIMAL_COLUMN),P($,M.DEPARTMENTS,L.DEPARTMENT_COLUMN),P($,M.FILE,L.FILE_COLUMN),P($,M.IMAGE,L.IMAGE_COLUMN),P($,M.ADDRESS,L.LOCATION_COLUMN),P($,M.EMPLOYEES,L.EMPLOYEE_COLUMN),P($,M.TEXT,L.TEXT_COLUMN),P($,M.TIMESCOPE,L.TIMESCOPE_COLUMN),P($,M.TIMESTAMP,L.TIMESTAMP_COLUMN),P($,M.VARCHAR,L.VARCHAR_COLUMN),P($,M.RELATION,L.VARCHAR_COLUMN);var ot;(function(t){t.YEAR="year",t.MONTH="month",t.DATE="date",t.DATETIME="datetime"})(ot||(ot={}));var ct="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",qi=ct+"0123456789";function k(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,e="",n=0;n<t;n++){var u=n===0?ct:qi,a=Math.random()*u.length;e+=u[parseInt(String(a),10)]}return e}function be(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,u=new Array(e);n<e;n++)u[n]=t[n];return u}function Oi(t){if(Array.isArray(t))return be(t)}function Vi(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function dt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ni(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function se(t,e,n){return Ni()?se=Reflect.construct:se=function(a,i,r){var o=[null];o.push.apply(o,i);var d=Function.bind.apply(a,o),c=new d;return r&&ee(c,r.prototype),c},se.apply(null,arguments)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},p(t)}function ft(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ee(t,e)}function xi(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Ui(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ji(){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 Hi(t,e){return e&&(Ti(e)==="object"||typeof e=="function")?e:Vi(t)}function ee(t,e){return ee=Object.setPrototypeOf||function(u,a){return u.__proto__=a,u},ee(t,e)}function ht(t){return Oi(t)||Ui(t)||ki(t)||ji()}var Ti=function(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t};function ki(t,e){if(!!t){if(typeof t=="string")return be(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return be(t,e)}}function Se(t){var e=typeof Map=="function"?new Map:void 0;return Se=function(u){if(u===null||!xi(u))return u;if(typeof u!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(u))return e.get(u);e.set(u,a)}function a(){return se(u,arguments,p(this).constructor)}return a.prototype=Object.create(u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),ee(a,u)},Se(t)}function Wi(){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(t){return!1}}function mt(t){var e=Wi();return function(){var u=p(t),a;if(e){var i=p(this).constructor;a=Reflect.construct(u,arguments,i)}else a=u.apply(this,arguments);return Hi(this,a)}}var we=console;function Ie(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var u,a=e.slice(1);(u=we).warn.apply(u,["\u{1F9D0} Driven Warning:"+e[0]].concat(ht(a)))}function gt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var u,a=e.slice(1);(u=we).log.apply(u,["\u{1F680} Driven Log:"+e[0]].concat(ht(a)))}function Ki(t){return t+" \u{1F41B}\u{1F41B}\u{1F41B}"}var Re=function(t){ft(n,t);var e=mt(n);function n(u){dt(this,n);var a;return a=e.call(this,u),a.name="\u{1F4A5} Driven Error",a.message=u?Ki(u):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",a}return n}(Se(Error)),zi=function(t){ft(n,t);var e=mt(n);function n(u){dt(this,n);var a;return a=e.call(this,u),a.name="\u{1F6A8} Driven Reference Error",a}return n}(Re);function Me(t){throw new Re(t)}function yt(t){throw new zi(t)}function Xi(t){we.error(new Re(t))}var Gi=Object.prototype.toString;function Et(t,e){return Gi.call(t)==="[object "+e+"]"}function Ji(t){return Et(t,"String")}function Zi(t){return Et(t,"Promise")}var Qi=function(){function t(e){var n,u;this._messageCache=new Map,this.messages={},this.variableRegExp=/\{([0-9a-zA-Z_]+)\}/g,this._messages=Object.freeze((u=(n=e.messages)!==null&&n!==void 0?n:this.getPreImport(e.locale))!==null&&u!==void 0?u:{}),e.variableRegExp&&(this.variableRegExp=e.variableRegExp),this.setLocale(e.locale)}return t.prototype.setLocale=function(e){var n=this;this.locale=e,this._messageCache.clear();var u=this.getMessageData();Zi(u)?u.then(function(a){n._messageCache.clear(),n.messages[n.localeInMessageKey]=a}):this.messages[this.localeInMessageKey]=u},t.prototype.getMessageData=function(){var e=this._messages[this.localeInMessageKey];return typeof e=="function"?e():e},t.prototype.translate=function(e,n,u){var a=this.getMessage(e);return a?this.formatMessage(a,u):this.formatMessage(n,u)},t.prototype.getMessage=function(e){if(this._messageCache.has(e))return this._messageCache.get(e);var n=this.getPathArray(e),u=n.reduce(function(a,i,r,o){if(a!==void 0){var d=a[i];if(!(r===o.length-1&&!Ji(d)))return d}},this.message);return this._messageCache.set(e,u),u},t.prototype.formatMessage=function(e,n){return n?e.replace(this.variableRegExp,function(u,a){var i=n[a];return i!==void 0?String(i):u}):e},t.prototype.getPreImport=function(e){var n;if(window.okI18nPreImport){var u=this.getLocaleInMessageKey(e);return window.okI18nPreImport.hasOwnProperty(u)?window.okI18nPreImport:(n={},n[u]=window.okI18nPreImport,n)}},t.prototype.getPathArray=function(e){return e.split(".")},t.prototype.getLocaleInMessageKey=function(e){return e.replace(/-/g,"")},Object.defineProperty(t.prototype,"$t",{get:function(){return this.translate},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"localeInMessageKey",{get:function(){return this.getLocaleInMessageKey(this.locale)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"message",{get:function(){var e;return(e=this.messages[this.localeInMessageKey])!==null&&e!==void 0?e:{}},enumerable:!1,configurable:!0}),t}();function Yi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vt(t,e){for(var n=0;n<e.length;n++){var u=e[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function pi(t,e,n){return e&&vt(t.prototype,e),n&&vt(t,n),t}function er(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h=function(){function t(){Yi(this,t)}return pi(t,null,[{key:"getMessage",value:function(n){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$i18n.$t(n,"",u)}},{key:"resetI18n",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Pi;return new Qi({locale:n,messages:_i})}},{key:"setLocale",value:function(n){return this.$i18n.setLocale(n)}}]),t}();er(h,"$i18n",h.resetI18n());function tr(t,e,n){var u=e.replace(/\[(\d)]/g,function(i,r){return"."+r}).split("."),a=!1;return u.reduce(function(i,r,o,d){var c=i;if(!!i){if(!Object.prototype.hasOwnProperty.call(i,r)){Ie("Can not set ".concat(e,"'s ").concat(r," property in current %o, Because there is no ").concat(r," property on the %o"),i,i);return}return o===d.length-1&&!Object.is(c[r],n)&&(c[r]=n,a=!0),c[r]}},t),a}var nr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},ur={exports:{}};(function(t){(function(e){var n=function(s,m,v){if(!c(m)||E(m)||C(m)||D(m)||d(m))return m;var b,w=0,N=0;if(g(m))for(b=[],N=m.length;w<N;w++)b.push(n(s,m[w],v));else{b={};for(var A in m)Object.prototype.hasOwnProperty.call(m,A)&&(b[s(A,v)]=n(s,m[A],v))}return b},u=function(s,m){m=m||{};var v=m.separator||"_",b=m.split||/(?=[A-Z])/;return s.split(b).join(v)},a=function(s){return S(s)?s:(s=s.replace(/[\-_\s]+(.)?/g,function(m,v){return v?v.toUpperCase():""}),s.substr(0,1).toLowerCase()+s.substr(1))},i=function(s){var m=a(s);return m.substr(0,1).toUpperCase()+m.substr(1)},r=function(s,m){return u(s,m).toLowerCase()},o=Object.prototype.toString,d=function(s){return typeof s=="function"},c=function(s){return s===Object(s)},g=function(s){return o.call(s)=="[object Array]"},E=function(s){return o.call(s)=="[object Date]"},C=function(s){return o.call(s)=="[object RegExp]"},D=function(s){return o.call(s)=="[object Boolean]"},S=function(s){return s=s-0,s===s},f=function(s,m){var v=m&&"process"in m?m.process:m;return typeof v!="function"?s:function(b,w){return v(b,s,w)}},B={camelize:a,decamelize:r,pascalize:i,depascalize:r,camelizeKeys:function(s,m){return n(f(a,m),s)},decamelizeKeys:function(s,m){return n(f(r,m),s,m)},pascalizeKeys:function(s,m){return n(f(i,m),s)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=B:e.humps=B})(nr)})(ur);var Bt={};Object.defineProperty(Bt,"__esModule",{value:!0});function Le(t){if(typeof t!="object"||t===null)return t;if(Array.isArray(t))return t.map(e=>typeof e!="object"||e===null?e:Le(e));{const e={};for(const n in t){const u=t[n];e[n]=typeof u!="object"||u===null?u:Le(u)}return e}}var ar=Bt.default=Le;function W(t){if(t!==void 0)return typeof t=="object"?ar(t):t}function ir(t){return Object.prototype.toString.call(t)==="[object Object]"}function rr(t){return Array.isArray(t)}function lr(t){return t.reduce(function(e,n){return e.includes(n)||e.push(n),e},[])}function $e(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,u=new Array(e);n<e;n++)u[n]=t[n];return u}function sr(t){if(Array.isArray(t))return $e(t)}function At(t,e,n,u,a,i,r){try{var o=t[i](r),d=o.value}catch(c){n(c);return}o.done?e(d):Promise.resolve(d).then(u,a)}function or(t){return function(){var e=this,n=arguments;return new Promise(function(u,a){var i=t.apply(e,n);function r(d){At(i,u,a,r,o,"next",d)}function o(d){At(i,u,a,r,o,"throw",d)}r(void 0)})}}function cr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ct(t,e){for(var n=0;n<e.length;n++){var u=e[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function dr(t,e,n){return e&&Ct(t.prototype,e),n&&Ct(t,n),t}function Ft(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function fr(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function hr(){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 _e(t){return sr(t)||fr(t)||mr(t)||hr()}function mr(t,e){if(!!t){if(typeof t=="string")return $e(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $e(t,e)}}var gr=function(t,e){var n,u,a,i,r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]};return i={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function o(c){return function(g){return d([c,g])}}function d(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,u&&(a=c[0]&2?u.return:c[0]?u.throw||((a=u.return)&&a.call(u),0):u.next)&&!(a=a.call(u,c[1])).done)return a;switch(u=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,u=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(g){c=[6,g],u=0}finally{n=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},yr=function(){function t(){cr(this,t),Ft(this,"_events",new Map),Ft(this,"debug",!1)}return dr(t,[{key:"emit",value:function(n){for(var u=arguments.length,a=new Array(u>1?u-1:0),i=1;i<u;i++)a[i-1]=arguments[i];var r=this;return or(function(){var o,d,c,g,E,C,D,S,f,B,s,m;return gr(this,function(v){switch(v.label){case 0:if(o=r._events.get(n),d=[],!o)return[3,10];c=o.slice(),g=!0,E=!1,C=void 0,v.label=1;case 1:v.trys.push([1,8,9,10]),D=c[Symbol.iterator](),v.label=2;case 2:if(g=(S=D.next()).done)return[3,7];if(f=S.value,!o.includes(f))return[3,6];v.label=3;case 3:return v.trys.push([3,5,,6]),r.debug&&gt.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(f.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+f.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(a.map(function(){return"%o"}).join(","),"\u3002")].concat(_e(a))),[4,f.apply(null,_e(a))];case 4:return B=v.sent(),r.debug&&gt.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(f.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+f.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(a.map(function(){return"%o"}).join(","),"; \u51FD\u6570\u7684\u8FD4\u56DE\u7ED3\u679C\u4E3A%o")].concat(_e(a),[B])),d.push(B),B===!1?[3,7]:[3,6];case 5:return s=v.sent(),Xi(String(s)+":"+String(s.stack)),[3,6];case 6:return g=!0,[3,2];case 7:return[3,10];case 8:return m=v.sent(),E=!0,C=m,[3,10];case 9:try{!g&&D.return!=null&&D.return()}finally{if(E)throw C}return[7];case 10:return[2,d]}})})()}},{key:"on",value:function(n,u){if(this._events.has(n)){var a;(a=this._events.get(n))===null||a===void 0||a.push(u)}else this._events.set(n,[u])}},{key:"off",value:function(n,u){if(this._events.has(n)){var a=this._events.get(n),i=a==null?void 0:a.indexOf(u);a==null||a.splice(i,1)}}},{key:"delete",value:function(n){this._events.has(n)&&this._events.delete(n)}},{key:"clear",value:function(){this._events=new Map}}]),t}();function Er(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Dt(t,e){for(var n=0;n<e.length;n++){var u=e[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function vr(t,e,n){return e&&Dt(t.prototype,e),n&&Dt(t,n),t}function Br(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ar=[{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"}],Cr=function(){function t(){Er(this,t)}return vr(t,[{key:"getEventsFromKeys",value:function(n){var u=typeof n=="string"?[n]:n;return t.events.filter(function(a){return u.includes(a.key)})}}]),t}();Br(Cr,"events",Ar);const bt=[];class oe{constructor(e){this.registeredControlTypes=new Set,this.controlConfigMap=new Map,this._controls=[],this._type=e,this._initControls(e)}registerControlConfig(e,n){return this.controlConfigMap.set(e,n),this}getControlConfig(e){return this.controlConfigMap.get(e)}static register(e){const{Designer:n,Runtime:u}=e;(!n||!u||!n.__is_control__||!u.__is_control__)&&Me(`${e} is can't register as a Control`);const a=this.staticControls.findIndex(i=>i.Designer.controlType===n.controlType);return a>-1&&(Ie(`The ${n.controlType} is repeat register, So it overwrites the one that was registered before.`),this.staticControls.splice(a,1)),this.staticRegisteredTypes.add(n.controlType),this.staticControls.push(e),this}getControls(){return this._controls}register(e){e.__is_control__||Me(`${e.name} is not a Control`);const n=this._controls.findIndex(u=>u.controlType===e.controlType);return n>-1&&(Ie(`The ${e.controlType} is repeat register, So it overwrites the one that was registered before.`),this._controls.splice(n,1)),this.registeredControlTypes.add(e.controlType),this._controls.push(e),this}isLayoutControl(e){return e.controlType===z.LAYOUT}isFormControl(e){return e.controlType===z.FORM}isListControl(e){return e.controlType===z.LIST}isColumnControl(e){return e.controlType===z.COLUMN}createControl(e,n){if(Array.isArray(e))return e.map(a=>this.createControl(a,n));e.children&&(e.children=e.children.map(a=>this.createControl(a,n))),this.isListControl(e)&&e.props.headers&&(e.props.headers=e.props.headers.map(a=>this.createControl(a,n)));const u=this.getControlFormType(e.type);if(u){let a=e;if(typeof n=="function"){const r=n(a);r&&(a=r)}return new u(a)}else Me(`The constructor of ${e.type} could not be found, please confirm that the constructor has been registered`)}createControlInstance(e,n){const u=this.getControlFormType(e);if(u)return new u(n)}getControlFormType(e){return this._controls.find(n=>n.controlType===e)}_initControls(e){this.constructor.staticControls.forEach(n=>{this.register(n[e])})}}oe.staticControls=bt,oe.staticRegisteredTypes=new Set(bt.map(t=>t.Designer.controlType)),oe.staticRegisteredConfigs=new Map;class O{constructor(e){var n,u,a;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.fieldCode=(u=e==null?void 0:e.fieldCode)!=null?u:"",this.fieldType=(a=e==null?void 0:e.fieldType)!=null?a:""}}class Pe{constructor(e){var n,u;this.minWidth=(n=e==null?void 0:e.minWidth)!=null?n:150,this.maxWidth=e==null?void 0:e.maxWidth,this.flex=(u=e==null?void 0:e.flex)!=null?u:1}}class ce extends Pe{constructor(e){var n,u;super(e),this.width=(n=e==null?void 0:e.width)!=null?n:240,this.widthType=(u=e==null?void 0:e.widthType)!=null?u:"auto"}}class Fr{constructor(e){this.pc=new ce(e==null?void 0:e.pc),this.mobile=e!=null&&e.mobile?new ce(e==null?void 0:e.mobile):new ce({width:130,minWidth:180})}}class Dr{constructor(e){var n,u;this.type=(n=e==null?void 0:e.type)!=null?n:"firstThree",this.customOptions=(u=e==null?void 0:e.customOptions)!=null?u:[]}}class de{constructor(e){var n,u,a;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.formKey=(u=e==null?void 0:e.formKey)!=null?u:"",this.appId=(a=e==null?void 0:e.appId)!=null?a:""}}class br extends de{constructor(e){var n;super(e),this.primaryControlId=(n=e==null?void 0:e.primaryControlId)!=null?n:""}}class St{constructor(e){var n;this.fieldCode=(n=e==null?void 0:e.fieldCode)!=null?n:""}}class Sr{constructor(e){var n,u,a,i;this.appId=(n=e==null?void 0:e.appId)!=null?n:"",this.formKey=(u=e==null?void 0:e.formKey)!=null?u:"",this.headers=(i=(a=e==null?void 0:e.headers)==null?void 0:a.map(r=>new St(r)))!=null?i:[]}}class wt{constructor(e){var n,u,a;this.fieldName=(n=e==null?void 0:e.fieldName)!=null?n:"",this.fieldCode=(u=e==null?void 0:e.fieldCode)!=null?u:"",this.fieldType=(a=e==null?void 0:e.fieldType)!=null?a:M.VARCHAR}}class It extends de{constructor(e){var n,u,a,i;super(e),this.title=(n=e==null?void 0:e.title)!=null?n:"",this.svcCode=(u=e==null?void 0:e.svcCode)!=null?u:"",this.isOpenFilter=(a=e==null?void 0:e.isOpenFilter)!=null?a:!1,this.filters=(i=e==null?void 0:e.filters)!=null?i:[]}}class wr{constructor(e){var n,u,a,i;this.type="sublist-page",this.formBind=new de(e==null?void 0:e.formBind),this.displayFields=(u=(n=e==null?void 0:e.displayFields)==null?void 0:n.map(r=>new wt(r)))!=null?u:[],this.sublists=(i=(a=e==null?void 0:e.sublists)==null?void 0:a.map(r=>new It(r)))!=null?i:[]}}class Rt{constructor(e){this.type=e==null?void 0:e.type,this.value=e==null?void 0:e.value}}class qe{constructor(e){var n,u,a;this.type=(n=e==null?void 0:e.type)!=null?n:"custom",this.value=(u=e==null?void 0:e.value)!=null?u:[],this.displayBos=(a=e==null?void 0:e.displayBos)!=null?a:[]}}class fe{constructor(e){var n,u,a,i;this.type="conditions",this.id=(n=e==null?void 0:e.id)!=null?n:k(),this.ruleId=(u=e==null?void 0:e.ruleId)!=null?u:new Date().valueOf(),this.level=(a=e==null?void 0:e.level)!=null?a:0,this.value=(i=e==null?void 0:e.value)!=null?i:"and",this.children=[],Array.isArray(e==null?void 0:e.children)&&(e==null||e.children.map(r=>{var o,d;if(r.children!==void 0){const c=new fe(r);(o=this.children)==null||o.push(c)}else{const c=new Oe(r);(d=this.children)==null||d.push(c)}}))}}class Oe{constructor(e){var n,u,a,i,r;this.type="condition",this.id=(n=e==null?void 0:e.id)!=null?n:k(),this.ruleId=(u=e==null?void 0:e.ruleId)!=null?u:new Date().valueOf(),this.symbol=(a=e==null?void 0:e.symbol)!=null?a:"",this.checked=(i=e==null?void 0:e.checked)!=null?i:!1,this.describe=(r=e==null?void 0:e.describe)!=null?r:"",this.leftVariableBo=new Rt(e==null?void 0:e.leftVariableBo),this.rightVariableBo=new qe(e==null?void 0:e.rightVariableBo)}}class Mt{constructor(e){var n,u,a,i;this.controlId=(n=e==null?void 0:e.controlId)!=null?n:"",this.fieldCode=(u=e==null?void 0:e.fieldCode)!=null?u:"",this.fieldType=(a=e==null?void 0:e.fieldType)!=null?a:"",this.propName=(i=e==null?void 0:e.propName)!=null?i:""}}class Ve{constructor(e){var n,u;this.type=(n=e==null?void 0:e.type)!=null?n:"FIELD",this.value=(u=e==null?void 0:e.value)!=null?u:"",this.fieldType=e==null?void 0:e.fieldType}}class Ne{constructor(e){var n,u;this.columnName=(n=e.columnName)!=null?n:"",this.desc=(u=e.desc)!=null?u:!1}}class Lt{constructor(e){var n,u,a;this.code=(n=e.code)!=null?n:"",this.value=(u=e.value)!=null?u:"",this.field_type=(a=e.field_type)!=null?a:M.ANY}}class Ir{constructor(e){var n,u,a,i,r,o,d;this.id=(n=e.id)!=null?n:"",this.limit=(u=e.limit)!=null?u:20,this.formKey=(a=e.formKey)!=null?a:"",this.orders=(r=(i=e.orders)==null?void 0:i.map(c=>new Ne(c)))!=null?r:[],this.dataSet=(d=(o=e.dataSet)==null?void 0:o.map(c=>new Lt(c)))!=null?d:[]}}function xe(t){var e,n,u,a;this.filters=(n=(e=t==null?void 0:t.filters)==null?void 0:e.map(i=>i.children!==void 0?new fe(i):new Oe(i)))!=null?n:[],(this instanceof he||this instanceof Pt)&&(this.orders=(a=(u=t==null?void 0:t.orders)==null?void 0:u.map(i=>new Ne(i)))!=null?a:[])}class he{constructor(e){var n,u,a,i,r;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.appId=(u=e==null?void 0:e.appId)!=null?u:"",this.valueFieldCode=(a=e==null?void 0:e.valueFieldCode)!=null?a:"",this.displayBoList=[],Array.isArray(e==null?void 0:e.displayBoList)&&(e==null||e.displayBoList.map(o=>{var d;(d=this.displayBoList)==null||d.push(new Ve(o))})),this.showOrder=(i=e==null?void 0:e.showOrder)!=null?i:!0,this.svcCode=(r=e==null?void 0:e.svcCode)!=null?r:"",xe.call(this,e)}}class Rr{constructor(e){var n;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.displayBoList=[]}}class Mr{constructor(e){var n,u,a,i,r,o,d,c,g,E;this.code=(n=e==null?void 0:e.code)!=null?n:"view",this.color=(u=e==null?void 0:e.color)!=null?u:"primary",this.command=(a=e==null?void 0:e.command)!=null?a:"view",this.confirmMessage=(i=e==null?void 0:e.confirmMessage)!=null?i:void 0,this.defaultState=(r=e==null?void 0:e.defaultState)!=null?r:"default",this.formKey=(o=e==null?void 0:e.formKey)!=null?o:void 0,this.icon=(d=e==null?void 0:e.icon)!=null?d:"iconliulan1",this.needConfirm=(c=e==null?void 0:e.needConfirm)!=null?c:!1,this.openType=(g=e==null?void 0:e.openType)!=null?g:"modal",this.priorityProcess=(E=e==null?void 0:e.priorityProcess)!=null?E:!0}}class Ue{constructor(e){var n,u,a,i;this.name=(n=e==null?void 0:e.name)!=null?n:"",this.key=(u=e==null?void 0:e.key)!=null?u:"",this.value=(i=(a=e==null?void 0:e.value)==null?void 0:a.map(r=>new Ve(r)))!=null?i:[]}}class $t extends he{constructor(e){var n,u;super(e),this.attributes=(u=(n=e==null?void 0:e.attributes)==null?void 0:n.map(a=>new Ue(a)))!=null?u:[]}}class Lr extends he{constructor(e){var n,u,a;super(e),this.attributes=(u=(n=e==null?void 0:e.attributes)==null?void 0:n.map(i=>new Ue(i)))!=null?u:[],this.formCode=(a=e==null?void 0:e.formCode)!=null?a:""}}class $r extends $t{constructor(e){super(e),this.rootNode=new qe(e==null?void 0:e.rootNode),this.filterCode=""}}class _t{constructor(e){var n,u,a,i;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.appId=(u=e==null?void 0:e.appId)!=null?u:"",this.fillList=(i=(a=e==null?void 0:e.fillList)==null?void 0:a.map(r=>new Mt(r)))!=null?i:[]}}class Pt extends _t{constructor(e){super(e),xe.call(this,e)}}class _r extends _t{constructor(e){var n,u;super(e),this.mode=(n=e==null?void 0:e.mode)!=null?n:"current",this.multiple=(u=e==null?void 0:e.multiple)!=null?u:!1}}class Pr{constructor(e){var n,u,a;this.zh=(n=e==null?void 0:e.zh)!=null?n:"",this.en=(u=e==null?void 0:e.en)!=null?u:"",this.ja=(a=e==null?void 0:e.ja)!=null?a:""}}class qr{constructor(e){var n,u,a;this.stencilName=(n=e==null?void 0:e.stencilName)!=null?n:"",this.expression=(u=e==null?void 0:e.expression)!=null?u:"",this.errMessage=(a=e==null?void 0:e.errMessage)!=null?a:""}}class je{constructor(e){var n,u,a;this.id=(n=e==null?void 0:e.id)!=null?n:k(8),this.label=(u=e==null?void 0:e.label)!=null?u:"",this.value=(a=e==null?void 0:e.value)!=null?a:this.label}}class qt extends je{constructor(e){var n,u;super(e),this.image=(n=e==null?void 0:e.image)!=null?n:"",this.type=(u=e==null?void 0:e.type)!=null?u:"src"}}function Or(t){var e;return(e=t==null?void 0:t.map(n=>new je(n)))!=null?e:[]}function Vr(t){var e;return(e=t==null?void 0:t.map(n=>new qt(n)))!=null?e:[]}class me{}class Nr extends me{constructor(e){super(),this.amount=new O(e==null?void 0:e.amount),this.currency=new O(e==null?void 0:e.currency)}}class xr{constructor(e){var n,u;this.amount=(n=e==null?void 0:e.amount)!=null?n:"",this.currency=(u=e==null?void 0:e.currency)!=null?u:He.CNY}}class Ur extends me{constructor(e){super(),this.min=new O(e==null?void 0:e.min),this.max=new O(e==null?void 0:e.max)}}class jr{constructor(e){var n,u;this.min=(n=e==null?void 0:e.min)!=null?n:"",this.max=(u=e==null?void 0:e.max)!=null?u:""}}class Hr{constructor(e){var n,u,a,i,r,o;this.city=(n=e==null?void 0:e.city)!=null?n:"",this.cityDisplay=(u=e==null?void 0:e.cityDisplay)!=null?u:"",this.district=(a=e==null?void 0:e.district)!=null?a:"",this.districtDisplay=(i=e==null?void 0:e.districtDisplay)!=null?i:"",this.province=(r=e==null?void 0:e.province)!=null?r:"",this.provinceDisplay=(o=e==null?void 0:e.provinceDisplay)!=null?o:""}}class Tr extends me{constructor(e){super(),this.result=new O(e==null?void 0:e.result),this.unit=new O(e==null?void 0:e.unit)}}class kr{constructor(e){var n,u;this.result=(n=e==null?void 0:e.result)!=null?n:0,this.unit=(u=e==null?void 0:e.unit)!=null?u:""}}var He=(t=>(t.CNY="CNY",t.USD="USD",t.JPY="JPY",t.EUR="EUR",t.INR="INR",t.IDR="IDR",t.BRL="BRL",t.AED="AED",t.AUD="AUD",t.CAD="CAD",t.EGP="EGP",t.GBP="GBP",t.ZAR="ZAR",t.KRW="KRW",t.MAD="MAD",t.MXN="MXN",t.MYR="MYR",t.PHP="PHP",t.PLN="PLN",t.RUB="RUB",t.SGD="SGD",t.THB="THB",t.TRY="TRY",t.TWD="TWD",t.VND="VND",t.HKD="HKD",t.IEP="IEP",t))(He||{}),Ot=(t=>(t.DEFAULT_DISPLAY="defaultDisplay",t.REQUIRED="required",t.IS_HIDE="isHide",t.IS_SHOW_UNIT="isShowUnit",t.IMD_SEARCH="immediatelySearch",t.MULTIPLE="multiple",t.SUBMIT_SELECT_CURRENCY="submitSelectCurrency",t.CAPTION="caption",t.IS_HIDE_CAPTION="isHideCaption",t.DEFAULT_SHOW_OPTIONS="defaultShowOptions",t.CAN_SEARCH="canSearch",t.CAN_CHECK="canCheck",t.CAN_EDIT="canEdit",t.CAN_DELETE="canDelete",t.SHOW_UPPER_CASE="showUpperCase",t.MICROMETER="micrometer",t.PRECISION="precision",t.PERCENTAGE="percentage",t.OPTIONAL_LEVEL="optionalLevel",t.CONTAINS_SUB_NODE="containsSubNode",t.DEFAULT_COLLAPSE="defaultCollapse",t.CAN_VIEW_FORM="canViewForm",t.SERVER_PAGINATION="serverPagination",t.IS_SHOW_CAPTION_TIP="isShowCaptionTip",t.ENCRYPTED="encrypted",t.IS_INLINE_EDIT="isInlineEdit",t.REVISIONS_MODE="revisionsMode",t.ALLOW_COPY_OPTIONS="allowCopyOptions",t))(Ot||{}),Te=(t=>(t[t.UNKNOWN=0]="UNKNOWN",t[t.READONLY=1]="READONLY",t[t.EDITABLE=2]="EDITABLE",t[t.PRINT=5]="PRINT",t))(Te||{});class Wr{constructor(e){var n,u,a,i,r,o;this.isShow=(n=e==null?void 0:e.isShow)!=null?n:!0,this.content=(u=e==null?void 0:e.content)!=null?u:"",this.formKey=(a=e==null?void 0:e.formKey)!=null?a:"",this.openType=(i=e==null?void 0:e.openType)!=null?i:"modal",this.type=(r=e==null?void 0:e.type)!=null?r:"",this.priorityProcess=(o=e==null?void 0:e.priorityProcess)!=null?o:!1}}class Kr{constructor(e){var n,u,a,i;this.id=(n=e==null?void 0:e.id)!=null?n:k(8),this.title=(u=e==null?void 0:e.title)!=null?u:"",this.headers=(i=(a=e==null?void 0:e.headers)==null?void 0:a.map(r=>new St(r)))!=null?i:[],xe.call(this,e)}}class zr{constructor(e){var n,u;this.key=(n=e.key)!=null?n:k(8),this.caption=(u=e.caption)!=null?u:""}}class Vt{constructor(e){var n,u,a,i;this.width=(n=e==null?void 0:e.width)!=null?n:"",this.height=(u=e==null?void 0:e.height)!=null?u:"",this.widthConfig=(a=e==null?void 0:e.widthConfig)!=null?a:"fill",this.heightConfig=(i=e==null?void 0:e.heightConfig)!=null?i:"fill"}}class ge{constructor(e){this.isHide={type:"boolean"}}}class ke extends Array{constructor(e){super()}}class j{constructor(e,n=""){var u,a;this.isHide=(u=e==null?void 0:e.isHide)!=null?u:!1,this.style=new Vt(e==null?void 0:e.style),this.caption=(a=e==null?void 0:e.caption)!=null?a:n}}j.Rules=ge,j.RuntimeRules=ke;function V(){return V=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(t[u]=n[u])}return t},V.apply(this,arguments)}function Xr(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function We(t){return We=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},We(t)}function ye(t,e){return ye=Object.setPrototypeOf||function(u,a){return u.__proto__=a,u},ye(t,e)}function Gr(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function Ee(t,e,n){return Gr()?Ee=Reflect.construct:Ee=function(a,i,r){var o=[null];o.push.apply(o,i);var d=Function.bind.apply(a,o),c=new d;return r&&ye(c,r.prototype),c},Ee.apply(null,arguments)}function Jr(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Ke(t){var e=typeof Map=="function"?new Map:void 0;return Ke=function(u){if(u===null||!Jr(u))return u;if(typeof u!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(u))return e.get(u);e.set(u,a)}function a(){return Ee(u,arguments,We(this).constructor)}return a.prototype=Object.create(u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),ye(a,u)},Ke(t)}var Zr=/%[sdj%]/g,Nt=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(Nt=function(e,n){typeof console!="undefined"&&console.warn&&n.every(function(u){return typeof u=="string"})&&console.warn(e,n)});function ze(t){if(!t||!t.length)return null;var e={};return t.forEach(function(n){var u=n.field;e[u]=e[u]||[],e[u].push(n)}),e}function q(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var u=1,a=e[0],i=e.length;if(typeof a=="function")return a.apply(null,e.slice(1));if(typeof a=="string"){var r=String(a).replace(Zr,function(o){if(o==="%%")return"%";if(u>=i)return o;switch(o){case"%s":return String(e[u++]);case"%d":return Number(e[u++]);case"%j":try{return JSON.stringify(e[u++])}catch(d){return"[Circular]"}break;default:return o}});return r}return a}function Qr(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function R(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||Qr(e)&&typeof t=="string"&&!t)}function Yr(t,e,n){var u=[],a=0,i=t.length;function r(o){u.push.apply(u,o),a++,a===i&&n(u)}t.forEach(function(o){e(o,r)})}function xt(t,e,n){var u=0,a=t.length;function i(r){if(r&&r.length){n(r);return}var o=u;u=u+1,o<a?e(t[o],i):n([])}i([])}function pr(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,t[n])}),e}var Ut=function(t){Xr(e,t);function e(n,u){var a;return a=t.call(this,"Async Validation Error")||this,a.errors=n,a.fields=u,a}return e}(Ke(Error));function el(t,e,n,u){if(e.first){var a=new Promise(function(E,C){var D=function(B){return u(B),B.length?C(new Ut(B,ze(B))):E()},S=pr(t);xt(S,n,D)});return a.catch(function(E){return E}),a}var i=e.firstFields||[];i===!0&&(i=Object.keys(t));var r=Object.keys(t),o=r.length,d=0,c=[],g=new Promise(function(E,C){var D=function(f){if(c.push.apply(c,f),d++,d===o)return u(c),c.length?C(new Ut(c,ze(c))):E()};r.length||(u(c),E()),r.forEach(function(S){var f=t[S];i.indexOf(S)!==-1?xt(f,n,D):Yr(f,n,D)})});return g.catch(function(E){return E}),g}function jt(t){return function(e){return e&&e.message?(e.field=e.field||t.fullField,e):{message:typeof e=="function"?e():e,field:e.field||t.fullField}}}function Ht(t,e){if(e){for(var n in e)if(e.hasOwnProperty(n)){var u=e[n];typeof u=="object"&&typeof t[n]=="object"?t[n]=V(V({},t[n]),u):t[n]=u}}return t}function Tt(t,e,n,u,a,i){t.required&&(!n.hasOwnProperty(t.field)||R(e,i||t.type))&&u.push(q(a.messages.required,t.fullField))}function tl(t,e,n,u,a){(/^\s+$/.test(e)||e==="")&&u.push(q(a.messages.whitespace,t.fullField))}var Xe={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},te={integer:function(e){return te.number(e)&&parseInt(e,10)===e},float:function(e){return te.number(e)&&!te.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(n){return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!te.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&!!e.match(Xe.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(Xe.url)},hex:function(e){return typeof e=="string"&&!!e.match(Xe.hex)}};function nl(t,e,n,u,a){if(t.required&&e===void 0){Tt(t,e,n,u,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],r=t.type;i.indexOf(r)>-1?te[r](e)||u.push(q(a.messages.types[r],t.fullField,t.type)):r&&typeof e!==t.type&&u.push(q(a.messages.types[r],t.fullField,t.type))}function ul(t,e,n,u,a){var i=typeof t.len=="number",r=typeof t.min=="number",o=typeof t.max=="number",d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=e,g=null,E=typeof e=="number",C=typeof e=="string",D=Array.isArray(e);if(E?g="number":C?g="string":D&&(g="array"),!g)return!1;D&&(c=e.length),C&&(c=e.replace(d,"_").length),i?c!==t.len&&u.push(q(a.messages[g].len,t.fullField,t.len)):r&&!o&&c<t.min?u.push(q(a.messages[g].min,t.fullField,t.min)):o&&!r&&c>t.max?u.push(q(a.messages[g].max,t.fullField,t.max)):r&&o&&(c<t.min||c>t.max)&&u.push(q(a.messages[g].range,t.fullField,t.min,t.max))}var X="enum";function al(t,e,n,u,a){t[X]=Array.isArray(t[X])?t[X]:[],t[X].indexOf(e)===-1&&u.push(q(a.messages[X],t.fullField,t[X].join(", ")))}function il(t,e,n,u,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||u.push(q(a.messages.pattern.mismatch,t.fullField,e,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(e)||u.push(q(a.messages.pattern.mismatch,t.fullField,e,t.pattern))}}}var y={required:Tt,whitespace:tl,type:nl,range:ul,enum:al,pattern:il};function rl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e,"string")&&!t.required)return n();y.required(t,e,u,i,a,"string"),R(e,"string")||(y.type(t,e,u,i,a),y.range(t,e,u,i,a),y.pattern(t,e,u,i,a),t.whitespace===!0&&y.whitespace(t,e,u,i,a))}n(i)}function ll(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&y.type(t,e,u,i,a)}n(i)}function sl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(e===""&&(e=void 0),R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&(y.type(t,e,u,i,a),y.range(t,e,u,i,a))}n(i)}function ol(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&y.type(t,e,u,i,a)}n(i)}function cl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),R(e)||y.type(t,e,u,i,a)}n(i)}function dl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&(y.type(t,e,u,i,a),y.range(t,e,u,i,a))}n(i)}function fl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&(y.type(t,e,u,i,a),y.range(t,e,u,i,a))}n(i)}function hl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(e==null&&!t.required)return n();y.required(t,e,u,i,a,"array"),e!=null&&(y.type(t,e,u,i,a),y.range(t,e,u,i,a))}n(i)}function ml(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&y.type(t,e,u,i,a)}n(i)}var gl="enum";function yl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&y[gl](t,e,u,i,a)}n(i)}function El(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e,"string")&&!t.required)return n();y.required(t,e,u,i,a),R(e,"string")||y.pattern(t,e,u,i,a)}n(i)}function vl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e,"date")&&!t.required)return n();if(y.required(t,e,u,i,a),!R(e,"date")){var o;e instanceof Date?o=e:o=new Date(e),y.type(t,o,u,i,a),o&&y.range(t,o.getTime(),u,i,a)}}n(i)}function Bl(t,e,n,u,a){var i=[],r=Array.isArray(e)?"array":typeof e;y.required(t,e,u,i,a,r),n(i)}function Ge(t,e,n,u,a){var i=t.type,r=[],o=t.required||!t.required&&u.hasOwnProperty(t.field);if(o){if(R(e,i)&&!t.required)return n();y.required(t,e,u,r,a,i),R(e,i)||y.type(t,e,u,r,a)}n(r)}function Al(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a)}n(i)}var ne={string:rl,method:ll,number:sl,boolean:ol,regexp:cl,integer:dl,float:fl,array:hl,object:ml,enum:yl,pattern:El,date:vl,url:Ge,hex:Ge,email:Ge,required:Bl,any:Al};function Je(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Ze=Je();function H(t){this.rules=null,this._messages=Ze,this.define(t)}H.prototype={messages:function(e){return e&&(this._messages=Ht(Je(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if(typeof e!="object"||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var n,u;for(n in e)e.hasOwnProperty(n)&&(u=e[n],this.rules[n]=Array.isArray(u)?u:[u])},validate:function(e,n,u){var a=this;n===void 0&&(n={}),u===void 0&&(u=function(){});var i=e,r=n,o=u;if(typeof r=="function"&&(o=r,r={}),!this.rules||Object.keys(this.rules).length===0)return o&&o(),Promise.resolve();function d(f){var B,s=[],m={};function v(b){if(Array.isArray(b)){var w;s=(w=s).concat.apply(w,b)}else s.push(b)}for(B=0;B<f.length;B++)v(f[B]);s.length?m=ze(s):(s=null,m=null),o(s,m)}if(r.messages){var c=this.messages();c===Ze&&(c=Je()),Ht(c,r.messages),r.messages=c}else r.messages=this.messages();var g,E,C={},D=r.keys||Object.keys(this.rules);D.forEach(function(f){g=a.rules[f],E=i[f],g.forEach(function(B){var s=B;typeof s.transform=="function"&&(i===e&&(i=V({},i)),E=i[f]=s.transform(E)),typeof s=="function"?s={validator:s}:s=V({},s),s.validator=a.getValidationMethod(s),s.field=f,s.fullField=s.fullField||f,s.type=a.getType(s),s.validator&&(C[f]=C[f]||[],C[f].push({rule:s,value:E,source:i,field:f}))})});var S={};return el(C,r,function(f,B){var s=f.rule,m=(s.type==="object"||s.type==="array")&&(typeof s.fields=="object"||typeof s.defaultField=="object");m=m&&(s.required||!s.required&&f.value),s.field=f.field;function v(N,A){return V(V({},A),{},{fullField:s.fullField+"."+N})}function b(N){N===void 0&&(N=[]);var A=N;if(Array.isArray(A)||(A=[A]),!r.suppressWarning&&A.length&&H.warning("async-validator:",A),A.length&&s.message!==void 0&&(A=[].concat(s.message)),A=A.map(jt(s)),r.first&&A.length)return S[s.field]=1,B(A);if(!m)B(A);else{if(s.required&&!f.value)return s.message!==void 0?A=[].concat(s.message).map(jt(s)):r.error&&(A=[r.error(s,q(r.messages.required,s.field))]),B(A);var x={};if(s.defaultField)for(var en in f.value)f.value.hasOwnProperty(en)&&(x[en]=s.defaultField);x=V(V({},x),f.rule.fields);for(var G in x)if(x.hasOwnProperty(G)){var Ol=Array.isArray(x[G])?x[G]:[x[G]];x[G]=Ol.map(v.bind(null,G))}var tn=new H(x);tn.messages(r.messages),f.rule.options&&(f.rule.options.messages=r.messages,f.rule.options.error=r.error),tn.validate(f.value,f.rule.options||r,function(it){var J=[];A&&A.length&&J.push.apply(J,A),it&&it.length&&J.push.apply(J,it),B(J.length?J:null)})}}var w;s.asyncValidator?w=s.asyncValidator(s,f.value,b,f.source,r):s.validator&&(w=s.validator(s,f.value,b,f.source,r),w===!0?b():w===!1?b(s.message||s.field+" fails"):w instanceof Array?b(w):w instanceof Error&&b(w.message)),w&&w.then&&w.then(function(){return b()},function(N){return b(N)})},function(f){d(f)})},getType:function(e){if(e.type===void 0&&e.pattern instanceof RegExp&&(e.type="pattern"),typeof e.validator!="function"&&e.type&&!ne.hasOwnProperty(e.type))throw new Error(q("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if(typeof e.validator=="function")return e.validator;var n=Object.keys(e),u=n.indexOf("message");return u!==-1&&n.splice(u,1),n.length===1&&n[0]==="required"?ne.required:ne[this.getType(e)]||!1}},H.register=function(e,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");ne[e]=n},H.warning=Nt,H.messages=Ze,H.validators=ne;const Cl={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 kt(t,e={}){const n=new H(t);return n.messages(Object.assign(Cl,e)),n}const Wt=new yr;class _{constructor(e){var g,E,C,D;this.setting=[],this.eventKeys=[],this.customEvents=[],this.parent=null,this.updateSetting=zt,this.removeSetting=Kt,this._callControlHooks("preInstance",e);const{controlName:n,controlIcon:u,controlType:a,controlFieldType:i,controlEventKeys:r,controlCustomEvents:o,name:d,setting:c}=new.target;n&&u&&a||yt(`The ${d} controlName,controlIcon,controlType is not define`),this.id=(g=e==null?void 0:e.id)!=null?g:k(10),this.name=n,this.icon=u,this.type=(E=e==null?void 0:e.type)!=null?E:a,this.props=new j(e==null?void 0:e.props,new.target.controlName),this.controlType=(C=e==null?void 0:e.controlType)!=null?C:"base",this.setting=W(c),this.fieldType=(D=e==null?void 0:e.fieldType)!=null?D:i,this.eventKeys=W(r),this.customEvents=W(o),Promise.resolve().then(()=>{this._callControlHooks("postInstance",e)})}get rules(){const e=this.props.constructor.Rules;return e?new e(this.props):{}}_callControlHooks(...e){const[n,...u]=e;return Wt.emit(n,this,...u)}preUpdate(e,n){this._callControlHooks("preUpdateProps",e,n)}postUpdate(e,n){this._callControlHooks("postUpdateProps",e,n)}updateProps(e,n){this.preUpdate(e,n),tr(this.props,e,n),this.postUpdate(e,n)}preValidate(){return re(this,null,function*(){const e=Z({},this.rules),n=yield this._callControlHooks("preValidate",e),u=n[n.length-1];return u===!1?void 0:u})}validate(e,n){return re(this,null,function*(){const u=yield this.preValidate(),a=u!==void 0?u:Z({},this.rules);Array.isArray(n)&&n.forEach(r=>{a.hasOwnProperty(r)&&delete a[r]});const i=kt(a,e);try{return yield i.validate(this.props),!0}catch(r){throw r.control||(r.control=this),r}})}toDataBindModel(e=null){const n=this.fieldType,u=this.id,a=this.type,{dataBind:i,datasourceBind:r,optionConfig:o,caption:d,required:c,maxLength:g,options:E,encrypted:C,encryptedMode:D}=this.props;if(!n&&!i&&!r)return;const S={parentId:e,fieldType:n,controlId:u,caption:d,type:a,props:{}};switch(i&&(S.dataBind=i),o){case"datasource":case void 0:r&&(S.datasourceBind=r);break;case"custom":S.props.options=E;break}return c!==void 0&&(S.required=c),g!==void 0&&(S.maxLength=g),C!==void 0&&(S.encrypted=C),D!==void 0&&(S.encryptedMode=D),S}preToSchema(){this._callControlHooks("preToSchema",this)}toSchema(){return this.preToSchema(),{id:this.id,type:this.type,props:W(this.props),fieldType:this.fieldType,controlType:this.controlType}}static updateBasicControl(e,n){e==="setting"&&(n.add&&this.setting.push(...n.add),n.remove&&this.removeSettingItem(n.remove),n.update)}}_.controlName="\u63A7\u4EF6",_.controlIcon="icon",_.controlType="control",_.controlEventKeys=[],_.controlCustomEvents=[],_.setting=[],_.__is_control__=!0,_.removeSettingItem=Kt,_.updateSettingItem=zt;function Kt(t){(Array.isArray(t)?t:[t]).forEach(n=>{var i,r;const u=typeof n!="string",a=this.setting.findIndex(o=>o.key===(u?n.key:n));a!==-1&&(u?this.setting[a].showItems=(i=this.setting[a].showItems)==null?void 0:i.filter(o=>!n.hideItems.includes(o)):this.setting.splice(a,1),u&&!((r=this.setting[a].showItems)!=null&&r.length)&&this.setting.splice(a,1))})}function zt(t,e){(typeof t=="string"?[t]:t).forEach(u=>{var i;const a=this.setting.find(r=>r.key===u);a&&(typeof e=="boolean"?a.visible=e:typeof e=="object"&&(((i=e.type)!=null?i:"replace")==="replace"?a.showItems=e.showItems:a.showItems.push(...e.showItems)))})}class T{constructor(e){var r,o,d,c,g;this.customEvents=[],this.parent=null;const{controlType:n,controlFieldType:u,name:a,controlCustomEvents:i}=new.target;n||yt(`The ${a} controlType is not define`),this.id=(r=e==null?void 0:e.id)!=null?r:k(10),this.type=(o=e==null?void 0:e.type)!=null?o:n,this.props=new j(e==null?void 0:e.props),this.customEvents=i,this.controlType=(d=e==null?void 0:e.controlType)!=null?d:"base",this.fieldType=(c=e==null?void 0:e.fieldType)!=null?c:u,this.pageStatus=(g=e==null?void 0:e.pageStatus)!=null?g:Te.UNKNOWN}get rules(){const e=this.props.constructor.RuntimeRules;if(e){const n=new e(this.props);return Array.from(n)}return[]}}T.controlType="control",T.__is_control__=!0,T.controlCustomEvents=[];function Qe(t){t.hasOwnProperty("optionConfig")||(this.optionConfig={type:"any"}),t.hasOwnProperty("options")||(this.options={type:"any"}),t.hasOwnProperty("datasourceBind")||(this.datasourceBind={type:"any"}),t.hasOwnProperty("options")&&(!t.hasOwnProperty("optionConfig")||t.hasOwnProperty("optionConfig")&&t.optionConfig==="custom")?this.options=[{type:"array",message:h.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{label:{type:"string",required:!0,message:h.getMessage("pleaseEnterLabel")},value:{type:"string",required:!0,message:h.getMessage("pleaseEnterValue")}}}},{type:"array",validator(e,n,u){n.length===0&&u(h.getMessage("optionIsRequired")),u()}},{type:"array",validator(e,n,u){const a=n.map(r=>r.value),i=lr(a);a.length!==i.length?u(h.getMessage("optionIdIsRepeat")):u()},message:h.getMessage("optionIdIsRepeat")}]:t.hasOwnProperty("datasourceBind")&&(!t.hasOwnProperty("optionConfig")||t.hasOwnProperty("optionConfig")&&t.optionConfig==="datasource")&&(this.datasourceBind=[{type:"object",message:h.getMessage("isNotObject")},{type:"object",fields:{dataCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterDataCode")},valueFieldCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterValueFieldCode")},svcCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterSvcCode")},displayBoList:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",validator(e,n,u){n.length===0&&u(h.getMessage("pleaseBindAtLeastOneDisplayValue")),u()},message:h.getMessage("pleaseBindAtLeastOneDisplayValue")}],orders:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{columnName:{type:"string",required:!0,message:h.getMessage("pleaseEnterFieldCode")},desc:{type:"boolean",message:h.getMessage("isNotBoolean")}}}}]}}])}function Fl(t,e,n=!1){this.datasourceBind=[{type:"object",message:h.getMessage("isNotObject")},{type:"object",fields:{dataCode:{type:"string",required:!0,message:h.getMessage(n?"pleaseEnterDataCodeInDataSetting":"pleaseEnterDataCode")},valueFieldCode:{type:"string",required:!0,message:h.getMessage(n?"pleaseEnterValueFieldCodeInDataSetting":"pleaseEnterValueFieldCode")},svcCode:{type:"string",required:!0,message:h.getMessage(n?"pleaseEnterSvcCodeInDataSetting":"pleaseEnterSvcCode")},attributes:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{name:{type:"string",required:!0,message:h.getMessage("isNotString")},key:{type:"string",required:!0,message:h.getMessage("isNotString")},value:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",validator(u,a,i){a.length===0&&i(h.getMessage(n?"pleaseBindAtLeastOneDisplayValueInDataSetting":"pleaseBindAtLeastOneDisplayValue")),i()},message:h.getMessage(n?"pleaseBindAtLeastOneDisplayValueInDataSetting":"pleaseBindAtLeastOneDisplayValue")}]}}}],orders:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{columnName:{type:"string",required:!0,message:h.getMessage("pleaseEnterFieldCode")},desc:{type:"boolean",message:h.getMessage("isNotBoolean")}}}}]}}]}class Ye extends ge{constructor(e){super(e),this.dataBind={},this.caption={type:"string",required:!0,message:h.getMessage("pleaseEnterCaption")},this.isHideCaption={type:"boolean"},this.labelPosition={type:"enum",enum:["top","left"]},this.defaultState={type:"enum",enum:["default","readonly"]},this.required={type:"boolean"},this.captionTip={type:"string",required:!1,message:h.getMessage("pleaseEnterCaptionTip")};const n={fieldCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterFieldCode")},dataCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterFieldCode")}};if(e.dataBind instanceof O)this.dataBind={type:"object",required:!0,fields:W(n),message:h.getMessage("pleaseEnterFieldCode")};else{let u={type:"object",required:!0,fields:{},message:h.getMessage("pleaseEnterFieldCode")};Object.keys(e.dataBind).forEach(a=>{u.fields[a]={type:"object",required:!0,fields:W(n),message:h.getMessage("pleaseEnterFieldCode")}}),this.dataBind=u}e.isShowCaptionTip&&(this.captionTip.required=!0)}}class Xt extends ke{constructor(e){super(e),this.push({type:"string",required:e.isHide?!1:e.required,message:e.requiredMessage!==""?e.requiredMessage:h.getMessage("runtimeRequired",{caption:e.caption})})}}class ue extends j{constructor(e){var n,u,a,i,r,o,d,c,g,E;super(e),this.caption=(n=e==null?void 0:e.caption)!=null?n:"",this.isHideCaption=(u=e==null?void 0:e.isHideCaption)!=null?u:!1,this.isShowCaptionTip=(a=e==null?void 0:e.isShowCaptionTip)!=null?a:!1,this.captionTip=(i=e==null?void 0:e.captionTip)!=null?i:"",this.defaultState=(r=e==null?void 0:e.defaultState)!=null?r:"default",this.labelPosition=(o=e==null?void 0:e.labelPosition)!=null?o:"top",this.placeholder=(d=e==null?void 0:e.placeholder)!=null?d:"",this.required=(c=e==null?void 0:e.required)!=null?c:!1,this.requiredMessage=(g=e==null?void 0:e.requiredMessage)!=null?g:"",this.dataBind=new O(e==null?void 0:e.dataBind),this.defaultValue=(E=e==null?void 0:e.defaultValue)!=null?E:""}}ue.Rules=Ye,ue.RuntimeRules=Xt;class Dl extends Ye{constructor(e){super(e),this.optionConfig={type:"enum",enum:["custom","datasource"],message:h.getMessage("PleaseSelectTheCorrectOptionSettings")},this.options=[{type:"array",message:h.getMessage("isNotArray")}],this.datasourceBind=[{type:"object",message:h.getMessage("isNotObject")}],Qe.call(this,e)}}class Gt extends _{constructor(e){super(e),this.controlType="form",this.props=new ue(e==null?void 0:e.props)}}Gt.controlEventKeys=["on_change","on_focus","on_blur"];class bl extends T{constructor(e){super(e),this.controlType="form",this.props=new ue(e==null?void 0:e.props)}}class ae extends j{constructor(e){super(e)}}function Jt(t,e){var n;(n=Object.getOwnPropertyDescriptors(t)[e])!=null&&n.enumerable&&Object.defineProperty(t,e,{enumerable:!1})}function pe(t,e){t.parent=e,Jt(t,"parent")}function Zt(t,e){t.forEach(n=>{pe(n,e)})}const Qt=Symbol("targetKey");function Yt(t){var e;return(e=t[Qt])!=null?e:t}function pt(t,e){return Zt(t,e),new Proxy(t,{get(n,u,...a){return u===Qt?n:Reflect.get(n,u,...a)},set(n,u,a,...i){if(rr(t)&&u==="length"&&a===t.length)return!0;const r=Reflect.set(n,u,a,...i);return ir(a)&&pe(a,e),r}})}function ie(t,e,n,u){const a=u!=null?u:t;let i=pt(Yt(n!=null?n:[]),a);Object.defineProperty(t,e,{get(){return i},set(r){i=pt(Yt(r),a)},enumerable:!0})}const Sl=1e4;class K extends _{constructor(e){super(e),this.controlType="layout";const{excludes:n,childrenMaxLength:u}=new.target;this.props=new ae(e==null?void 0:e.props),ie(this,"children",e==null?void 0:e.children),this.excludes=W(n),this.childrenMaxLength=u}judgeExcludesChildren(e){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(e)}judgeJoinChildren(e){const n=this.judgeExcludesChildren(e);return n&&this.childrenMaxLength>this.children.length}validate(e,n){return re(this,null,function*(){return yield rt(K.prototype,this,"validate").call(this,e,n),yield Promise.all(this.children.map(u=>u.validate(e,n))),!0})}toDataBindModel(e=null){const n=super.toDataBindModel(),u=n?[n]:[];return this.children.reduce((a,i)=>{const r=i.toDataBindModel(e);if(Array.isArray(r)){const o=r.filter(d=>!!d);return[...a,...o]}return r&&a.push(r),a},u)}toSchema(){const e=super.toSchema(),n=this.children.map(u=>u.toSchema());return Ae(Z({},e),{children:n})}}K.excludes=!1,K.childrenMaxLength=Sl;class et extends T{constructor(e){super(e),this.controlType="layout",this.props=new ae(e==null?void 0:e.props),ie(this,"children",e==null?void 0:e.children)}}class tt extends j{constructor(e,n){super(n),ie(this,"headers",n==null?void 0:n.headers,e)}}class ve extends _{constructor(e){super(e),this.controlType="list",this.props=new tt(this,e==null?void 0:e.props)}validate(e,n){return re(this,null,function*(){return yield rt(ve.prototype,this,"validate").call(this,e),yield Promise.all(this.props.headers.map(u=>u.validate(e,n))),!0})}toDataBindModel(){const e=super.toDataBindModel(),n=e?[e]:[],u=this.id;return this.props.headers.reduce((a,i)=>{const r=i.toDataBindModel(u);if(Array.isArray(r)){const o=r.filter(d=>!!d);return[...a,...o]}return r&&a.push(r),a},n)}toSchema(){const e=super.toSchema(),n=this.props.headers.map(u=>u.toSchema());return Ae(Z({},e),{props:Ae(Z({},this.props),{headers:n})})}}ve.controlFieldType=M.LIST;class wl extends T{constructor(e){super(e),this.controlType="list",this.props=new tt(this,e==null?void 0:e.props),ie(this,"children",e==null?void 0:e.children)}get length(){return this.children.length}}class nt extends ge{constructor(e){super(e),this.caption={type:"string",required:!0,message:h.getMessage("pleaseEnterCaption")},this.width={type:"number",required:!1,message:h.getMessage("pleaseEnterColumnWidth")},this.width.required=e.widthType==="px"}}class Be extends j{constructor(e){var n,u,a,i,r;super(e),this.width=(n=e==null?void 0:e.width)!=null?n:150,this.widthType=(e==null?void 0:e.widthType)||"auto",this.caption=(u=e==null?void 0:e.caption)!=null?u:"",this.fixed=(a=e==null?void 0:e.fixed)!=null?a:"none",this.autoWidth=new Pe(e==null?void 0:e.autoWidth),this.dataBind=new O(e==null?void 0:e.dataBind),this.sort=(i=e==null?void 0:e.sort)!=null?i:!0,this.align=e==null?void 0:e.align,this.colSpan=e==null?void 0:e.colSpan,this.autoHeight=(r=e==null?void 0:e.autoHeight)!=null?r:!1}}Be.Rules=nt;class Il extends nt{constructor(e){super(e),this.optionConfig={type:"enum",enum:["custom","datasource","none"],message:h.getMessage("PleaseSelectTheCorrectOptionSettings")},this.options=[{type:"array",message:h.getMessage("isNotArray")}],this.datasourceBind=[{type:"object",message:h.getMessage("isNotObject")}],Qe.call(this,e)}}class Rl extends _{constructor(e){super(e),this.controlType="column",this.props=new Be(e==null?void 0:e.props)}}class Ml extends T{constructor(e){super(e),this.controlType="column",this.props=new Be(e==null?void 0:e.props)}}class ut extends ae{constructor(e){super(e),this.dataBind=new O(e==null?void 0:e.dataBind)}}class Ll extends K{constructor(e){super(e),this.controlType="search",this.props=new ut(e==null?void 0:e.props)}}class $l extends et{constructor(e){super(e),this.controlType="search",this.props=new ut(e==null?void 0:e.props)}}class at extends ae{constructor(e){super(e)}}class _l extends K{constructor(e){super(e),this.controlType="wrap",this.props=new at(e==null?void 0:e.props)}}class Pl extends et{constructor(e){super(e),this.controlType="wrap",this.props=new at(e==null?void 0:e.props)}}function ql(t){t.hasOwnProperty("linkOperationOption")&&t.hasOwnProperty("showLinkOperation")&&t.showLinkOperation&&(this.linkOperationOption=[{type:"object",fields:{formKey:{type:"string",required:!0,message:h.getMessage("pleaseEnterForm")}}}])}l.AMOUNT_TYPE=He,l.AddressValue=Hr,l.AmountDataBind=Nr,l.AmountValue=xr,l.AutoWidth=Pe,l.BaseControlProperty=ue,l.BaseControlPropertyRules=Ye,l.BaseControlPropertyRuntimeRules=Xt,l.BaseStyle=Vt,l.COMMON_SETTING_TYPE=Ot,l.CalcDataBind=Tr,l.CalcValue=kr,l.ColumnControlProperty=Be,l.ColumnControlPropertyRules=nt,l.ColumnOptionAndDataSourcePropertyRules=Il,l.CustomAttributeItem=Ue,l.CustomPermissionItem=zr,l.DataBind=O,l.DataSourceBind=he,l.DataSourceDataSetValue=Lt,l.DataSourceOrderItem=Ne,l.DataSourceParamItem=Ir,l.DataStorageDoc=Dr,l.DesignerColumnControl=Rl,l.DesignerControl=_,l.DesignerFormControl=Gt,l.DesignerLayoutControl=K,l.DesignerListControl=ve,l.DesignerSearchControl=Ll,l.DesignerWrapControl=_l,l.DisplayBoListItem=Ve,l.FieldBindItem=wt,l.FieldFilterCondition=Oe,l.FieldFilterConditions=fe,l.FillBackBind=_r,l.FillPayloadBind=Pt,l.FormBind=de,l.FormSelectBind=br,l.ImageOptionSetting=qt,l.Language=Pr,l.LayoutControlProperty=ae,l.LeftVariable=Rt,l.LinkOperationOption=Mr,l.ListBind=Sr,l.ListControlProperty=tt,l.MetaAutoWidth=Fr,l.MetaWidth=ce,l.MultistageFillingItem=Mt,l.ObjectDataBind=me,l.OperationItem=Wr,l.OptionAndDataSourcePropertyRules=Dl,l.OptionSetting=je,l.OrganizationDataSourceBind=Lr,l.PAGE_STATUS=Te,l.Property=j,l.PropertyRules=ge,l.PropertyRuntimeRules=ke,l.RangeDataBind=Ur,l.RangeDateValue=jr,l.RegisterControls=oe,l.RegularRules=qr,l.RightVariable=qe,l.RuntimeColumnControl=Ml,l.RuntimeControl=T,l.RuntimeFormControl=bl,l.RuntimeLayoutControl=et,l.RuntimeListControl=wl,l.RuntimeSearchControl=$l,l.RuntimeWrapControl=Pl,l.SearchControlProperty=ut,l.SelectedContentConfig=Rr,l.SubListItem=It,l.SubListPageConfig=wr,l.SuperDataSourceBind=$t,l.TreeDataSourceBind=$r,l.ViewOperationItem=Kr,l.WrapControlProperty=at,l.controlHooksEmitter=Wt,l.createValidator=kt,l.defineArrayParent=Zt,l.defineControlArrayToProperty=ie,l.defineParent=pe,l.initImageOptions=Vr,l.initLinkOperationRules=ql,l.initOptionAndDataSourceRules=Qe,l.initOptions=Or,l.initSuperDataSourceRules=Fl,l.setPropertyDontEnum=Jt,Object.defineProperty(l,"__esModule",{value:!0})});
@@ -8,4 +8,5 @@ export * from './WrapControl';
8
8
  export * from './Validator';
9
9
  export * from './ControlArray';
10
10
  export * from './initOptionAndDataSourceRules';
11
+ export * from './initLinkOperationRules';
11
12
  export * from './controlHooksEmitter';
@@ -0,0 +1,6 @@
1
+ import { PropertyRules } from './BaseControl';
2
+ import { LinkOperationOption } from '../framework';
3
+ export declare function initLinkOperationRules(this: PropertyRules, props: {
4
+ linkOperationOption?: LinkOperationOption;
5
+ showLinkOperation?: boolean;
6
+ }): void;
@@ -246,11 +246,39 @@ export declare class DataSourceBind {
246
246
  showOrder?: boolean;
247
247
  constructor(props?: Partial<DataSourceBind>);
248
248
  }
249
+ export declare class SelectedContentConfig {
250
+ /**
251
+ * 展示已选内容
252
+ * @defaultValue ''
253
+ * @public
254
+ */
255
+ dataCode: string;
256
+ /**
257
+ * 展示已选明细
258
+ * @defaultValue []
259
+ * @public
260
+ */
261
+ displayBoList: any[];
262
+ constructor(props?: Partial<SelectedContentConfig>);
263
+ }
249
264
  export interface CustomAttribute {
250
265
  key: string;
251
266
  name: string;
252
267
  required?: boolean;
253
268
  }
269
+ export declare class LinkOperationOption {
270
+ code: string;
271
+ color: string;
272
+ command: undefined | string;
273
+ confirmMessage: undefined;
274
+ defaultState: string;
275
+ formKey: undefined | string;
276
+ icon: string;
277
+ needConfirm: boolean;
278
+ openType: string;
279
+ priorityProcess: boolean;
280
+ constructor(props?: Partial<LinkOperationOption>);
281
+ }
254
282
  export declare class CustomAttributeItem {
255
283
  name: string;
256
284
  key: string;
@@ -263,8 +291,16 @@ export declare class SuperDataSourceBind extends DataSourceBind {
263
291
  attributes?: Partial<CustomAttributeItem>[];
264
292
  });
265
293
  }
294
+ export declare class OrganizationDataSourceBind extends DataSourceBind {
295
+ attributes: CustomAttributeItem[];
296
+ formCode: string;
297
+ constructor(props?: Omit<Partial<OrganizationDataSourceBind>, 'attributes'> & {
298
+ attributes?: Partial<CustomAttributeItem>[];
299
+ });
300
+ }
266
301
  export declare class TreeDataSourceBind extends SuperDataSourceBind {
267
302
  rootNode: RightVariable;
303
+ filterCode?: String;
268
304
  constructor(props?: Omit<Partial<TreeDataSourceBind>, 'attributes'> & {
269
305
  attributes?: Partial<CustomAttributeItem>[];
270
306
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/model-driven-core",
3
- "version": "2.5.0-alpha.1",
3
+ "version": "2.5.0-alpha.10",
4
4
  "description": "model engine core",
5
5
  "author": "郝晨光 <2293885211@qq.com>",
6
6
  "homepage": "",
@@ -26,9 +26,9 @@
26
26
  "postpublish": "node ../../scripts/postpublish.js"
27
27
  },
28
28
  "dependencies": {
29
- "@byteluck-fe/model-driven-shared": "2.3.1",
29
+ "@byteluck-fe/model-driven-shared": "2.5.0-alpha.9",
30
30
  "async-validator": "3.5.1",
31
31
  "tslib": "^2.1.0"
32
32
  },
33
- "gitHead": "651410c125de15d4251043f28bd8c65f13e9326a"
33
+ "gitHead": "a688b994d1e17d1d2e394f6b4ca0003f0cedf91f"
34
34
  }