@byteluck-fe/model-driven-core 2.6.0-alpha.17b → 2.6.0-alpha.17c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/common/ControlArray.js +14 -12
- package/dist/esm/common/LayoutControl/designer.js +1 -1
- package/dist/esm/common/LayoutControl/runtime.js +1 -1
- package/dist/esm/common/ListControl/designer.js +1 -1
- package/dist/esm/common/ListControl/property.js +2 -2
- package/dist/esm/common/ListControl/runtime.js +2 -2
- package/dist/esm/framework/RegisterControls.js +37 -2
- package/dist/index.umd.js +1 -1
- package/dist/types/common/BaseControl/property.d.ts +2 -0
- package/dist/types/common/ControlArray.d.ts +4 -3
- package/dist/types/common/ListControl/property.d.ts +1 -1
- package/dist/types/framework/RegisterControls.d.ts +2 -1
- package/package.json +2 -2
|
@@ -33,14 +33,16 @@ export function setPropertyDontEnum(obj, property) {
|
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
export function defineParent(control, parent) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
export function defineParent(control, parent, mode) {
|
|
37
|
+
if (mode === 'Designer') {
|
|
38
|
+
control.parent = parent;
|
|
39
|
+
// 如果没有被设置过不允许枚举的话,说明是第一次被代理,需要设置parent属性不允许枚举
|
|
40
|
+
setPropertyDontEnum(control, 'parent');
|
|
41
|
+
}
|
|
40
42
|
}
|
|
41
|
-
export function defineArrayParent(controls, parent) {
|
|
43
|
+
export function defineArrayParent(controls, parent, mode) {
|
|
42
44
|
controls.forEach(function(item) {
|
|
43
|
-
defineParent(item, parent);
|
|
45
|
+
defineParent(item, parent, mode);
|
|
44
46
|
});
|
|
45
47
|
}
|
|
46
48
|
var targetKey = Symbol('targetKey');
|
|
@@ -48,8 +50,8 @@ function getTargetValue(value) {
|
|
|
48
50
|
var _targetKey;
|
|
49
51
|
return (_targetKey = value[targetKey]) !== null && _targetKey !== void 0 ? _targetKey : value;
|
|
50
52
|
}
|
|
51
|
-
function proxyState(target, parent) {
|
|
52
|
-
defineArrayParent(target, parent);
|
|
53
|
+
function proxyState(target, parent, mode) {
|
|
54
|
+
defineArrayParent(target, parent, mode);
|
|
53
55
|
return new Proxy(target, {
|
|
54
56
|
get: function get(t, p) {
|
|
55
57
|
for(var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++){
|
|
@@ -79,21 +81,21 @@ function proxyState(target, parent) {
|
|
|
79
81
|
value
|
|
80
82
|
].concat(_toConsumableArray(args)));
|
|
81
83
|
if (isPlainObject(value)) {
|
|
82
|
-
defineParent(value, parent);
|
|
84
|
+
defineParent(value, parent, mode);
|
|
83
85
|
}
|
|
84
86
|
return result;
|
|
85
87
|
}
|
|
86
88
|
});
|
|
87
89
|
}
|
|
88
|
-
export function defineControlArrayToProperty(obj, property, initialValue, parent) {
|
|
90
|
+
export function defineControlArrayToProperty(obj, property, initialValue, parent, mode) {
|
|
89
91
|
var _parent = parent !== null && parent !== void 0 ? parent : obj;
|
|
90
|
-
var value = proxyState(getTargetValue(initialValue !== null && initialValue !== void 0 ? initialValue : []), _parent);
|
|
92
|
+
var value = proxyState(getTargetValue(initialValue !== null && initialValue !== void 0 ? initialValue : []), _parent, mode);
|
|
91
93
|
Object.defineProperty(obj, property, {
|
|
92
94
|
get: function get() {
|
|
93
95
|
return value;
|
|
94
96
|
},
|
|
95
97
|
set: function set(newValue) {
|
|
96
|
-
value = proxyState(getTargetValue(newValue), _parent);
|
|
98
|
+
value = proxyState(getTargetValue(newValue), _parent, mode);
|
|
97
99
|
},
|
|
98
100
|
enumerable: true
|
|
99
101
|
});
|
|
@@ -213,7 +213,7 @@ var LayoutControl = /*#__PURE__*/ function _target(DesignerControl1) {
|
|
|
213
213
|
_this.controlType = 'layout';
|
|
214
214
|
var ref = _instanceof(this, LayoutControl) ? this.constructor : void 0, excludes = ref.excludes, childrenMaxLength = ref.childrenMaxLength;
|
|
215
215
|
_this.props = new LayoutControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
216
|
-
defineControlArrayToProperty(_assertThisInitialized(_this), 'children', props === null || props === void 0 ? void 0 : props.children);
|
|
216
|
+
defineControlArrayToProperty(_assertThisInitialized(_this), 'children', props === null || props === void 0 ? void 0 : props.children, undefined, 'Designer');
|
|
217
217
|
_this.excludes = JSONCopy(excludes);
|
|
218
218
|
_this.childrenMaxLength = childrenMaxLength;
|
|
219
219
|
return _this;
|
|
@@ -82,7 +82,7 @@ var LayoutControl = /*#__PURE__*/ function(RuntimeControl1) {
|
|
|
82
82
|
_this = _super.call(this, props);
|
|
83
83
|
_this.controlType = 'layout';
|
|
84
84
|
_this.props = new LayoutControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
85
|
-
defineControlArrayToProperty(_assertThisInitialized(_this), 'children', props === null || props === void 0 ? void 0 : props.children);
|
|
85
|
+
defineControlArrayToProperty(_assertThisInitialized(_this), 'children', props === null || props === void 0 ? void 0 : props.children, undefined, 'Runtime');
|
|
86
86
|
return _this;
|
|
87
87
|
}
|
|
88
88
|
return LayoutControl;
|
|
@@ -201,7 +201,7 @@ var ListControl = /*#__PURE__*/ function(DesignerControl1) {
|
|
|
201
201
|
var _this;
|
|
202
202
|
_this = _super.call(this, props);
|
|
203
203
|
_this.controlType = 'list';
|
|
204
|
-
_this.props = new ListControlProperty(_assertThisInitialized(_this), props === null || props === void 0 ? void 0 : props.props);
|
|
204
|
+
_this.props = new ListControlProperty(_assertThisInitialized(_this), props === null || props === void 0 ? void 0 : props.props, 'Designer');
|
|
205
205
|
return _this;
|
|
206
206
|
}
|
|
207
207
|
_createClass(ListControl, [
|
|
@@ -75,11 +75,11 @@ var ListControlProperty = /*#__PURE__*/ function(Property1) {
|
|
|
75
75
|
"use strict";
|
|
76
76
|
_inherits(ListControlProperty, Property1);
|
|
77
77
|
var _super = _createSuper(ListControlProperty);
|
|
78
|
-
function ListControlProperty(parent, props) {
|
|
78
|
+
function ListControlProperty(parent, props, mode) {
|
|
79
79
|
_classCallCheck(this, ListControlProperty);
|
|
80
80
|
var _this;
|
|
81
81
|
_this = _super.call(this, props);
|
|
82
|
-
defineControlArrayToProperty(_assertThisInitialized(_this), 'headers', props === null || props === void 0 ? void 0 : props.headers, parent);
|
|
82
|
+
defineControlArrayToProperty(_assertThisInitialized(_this), 'headers', props === null || props === void 0 ? void 0 : props.headers, parent, mode);
|
|
83
83
|
return _this;
|
|
84
84
|
}
|
|
85
85
|
return ListControlProperty;
|
|
@@ -95,8 +95,8 @@ var ListControl = /*#__PURE__*/ function(RuntimeControl1) {
|
|
|
95
95
|
var _this;
|
|
96
96
|
_this = _super.call(this, props);
|
|
97
97
|
_this.controlType = 'list';
|
|
98
|
-
_this.props = new ListControlProperty(_assertThisInitialized(_this), props === null || props === void 0 ? void 0 : props.props);
|
|
99
|
-
defineControlArrayToProperty(_assertThisInitialized(_this), 'children', props === null || props === void 0 ? void 0 : props.children);
|
|
98
|
+
_this.props = new ListControlProperty(_assertThisInitialized(_this), props === null || props === void 0 ? void 0 : props.props, 'Runtime');
|
|
99
|
+
defineControlArrayToProperty(_assertThisInitialized(_this), 'children', props === null || props === void 0 ? void 0 : props.children, undefined, 'Runtime');
|
|
100
100
|
return _this;
|
|
101
101
|
}
|
|
102
102
|
_createClass(ListControl, [
|
|
@@ -156,6 +156,7 @@ export var RegisterControls = /*#__PURE__*/ function() {
|
|
|
156
156
|
// @ts-ignore
|
|
157
157
|
var control = new Constructor(createSchema);
|
|
158
158
|
// this.defineParentToChildren(control)
|
|
159
|
+
this._setParentPrototypeToSchema(control, this);
|
|
159
160
|
return control;
|
|
160
161
|
} else {
|
|
161
162
|
error(// @ts-ignore
|
|
@@ -163,6 +164,38 @@ export var RegisterControls = /*#__PURE__*/ function() {
|
|
|
163
164
|
}
|
|
164
165
|
}
|
|
165
166
|
},
|
|
167
|
+
{
|
|
168
|
+
key: "_setParentPrototypeToSchema",
|
|
169
|
+
value: function _setParentPrototypeToSchema(schema, runtime) {
|
|
170
|
+
if (Reflect.has(schema, 'parent')) {
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
Object.defineProperty(schema, 'parent', {
|
|
174
|
+
get: function get() {
|
|
175
|
+
// @ts-ignore
|
|
176
|
+
var id = schema.id;
|
|
177
|
+
var controlParentIdMap = runtime._controlParentIdMap;
|
|
178
|
+
var instanceMap = runtime.instanceMap;
|
|
179
|
+
if (!controlParentIdMap || !instanceMap) {
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
var parentId = controlParentIdMap[id];
|
|
183
|
+
var selfInInstances = instanceMap[id];
|
|
184
|
+
var selfIndex = selfInInstances.findIndex(function(item) {
|
|
185
|
+
return item == schema;
|
|
186
|
+
});
|
|
187
|
+
var parentInstances = instanceMap[parentId] || [];
|
|
188
|
+
var parentInstance;
|
|
189
|
+
if (parentInstances.length - 1 > selfIndex) {
|
|
190
|
+
parentInstance = parentInstances[0];
|
|
191
|
+
} else {
|
|
192
|
+
parentInstance = parentInstances[selfIndex];
|
|
193
|
+
}
|
|
194
|
+
return parentInstance;
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
},
|
|
166
199
|
{
|
|
167
200
|
key: "createControlInstance",
|
|
168
201
|
value: function createControlInstance(type, initSchema) {
|
|
@@ -191,14 +224,15 @@ export var RegisterControls = /*#__PURE__*/ function() {
|
|
|
191
224
|
this.constructor.staticControls.forEach(function(item) {
|
|
192
225
|
_this.register(item[type]);
|
|
193
226
|
RegisterControls.staticControlsRuntimeRules.set(item.Runtime.controlType, item.Property.RuntimeRules);
|
|
227
|
+
item.Property.mode = type;
|
|
194
228
|
});
|
|
195
229
|
}
|
|
196
230
|
}
|
|
197
231
|
], [
|
|
198
232
|
{
|
|
199
233
|
key: "register",
|
|
200
|
-
value: function register(control) {
|
|
201
|
-
var Designer = control.Designer, Runtime = control.Runtime;
|
|
234
|
+
value: function register(control, mode) {
|
|
235
|
+
var Designer = control.Designer, Runtime = control.Runtime, Property = control.Property;
|
|
202
236
|
if (!Designer || !Runtime || !Designer.__is_control__ || !Runtime.__is_control__) {
|
|
203
237
|
error("".concat(control, " is can't register as a Control"));
|
|
204
238
|
}
|
|
@@ -211,6 +245,7 @@ export var RegisterControls = /*#__PURE__*/ function() {
|
|
|
211
245
|
}
|
|
212
246
|
this.staticRegisteredTypes.add(Designer.controlType);
|
|
213
247
|
this.staticControls.push(control);
|
|
248
|
+
Property.mode = mode;
|
|
214
249
|
return this;
|
|
215
250
|
}
|
|
216
251
|
}
|
package/dist/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var cl=Object.defineProperty,dl=Object.defineProperties;var fl=Object.getOwnPropertyDescriptors;var Cn=Object.getOwnPropertySymbols;var hl=Object.prototype.hasOwnProperty,ml=Object.prototype.propertyIsEnumerable;var An=(s,P,V)=>P in s?cl(s,P,{enumerable:!0,configurable:!0,writable:!0,value:V}):s[P]=V,oe=(s,P)=>{for(var V in P||(P={}))hl.call(P,V)&&An(s,V,P[V]);if(Cn)for(var V of Cn(P))ml.call(P,V)&&An(s,V,P[V]);return s},Ne=(s,P)=>dl(s,fl(P));var be=(s,P,V)=>new Promise((je,De)=>{var _e=X=>{try{ce(V.next(X))}catch(de){De(de)}},Ue=X=>{try{ce(V.throw(X))}catch(de){De(de)}},ce=X=>X.done?je(X.value):Promise.resolve(X.value).then(_e,Ue);ce((V=V.apply(s,P)).next())});(function(s,P){typeof exports=="object"&&typeof module!="undefined"?P(exports):typeof define=="function"&&define.amd?define(["exports"],P):(s=typeof globalThis!="undefined"?globalThis:s||self,P(s.modelDrivenCore={}))})(this,function(s){"use strict";var P="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",V="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",je="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",De="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",_e="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",Ue="{caption}\u5FC5\u586B",ce="\u8BF7\u8F93\u5165\u6807\u9898",X="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",de="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",Fn="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",bn="\u8BF7\u7ED1\u5B9A\u8868\u5355",Dn="\u8BF7\u7ED1\u5B9A\u5217\u8868",Sn="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",wn="\u8BF7\u8F93\u5165\u663E\u793A\u503C",In="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",Rn="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",Mn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",Ln="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",$n="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",Pn="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",On="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",qn="\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",Nn="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",jn="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",_n="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Un="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Tn="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",Hn="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",xn="\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",kn="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",Kn="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",zn="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Gn="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",Jn="\u8BF7\u7ED1\u5B9A\u670D\u52A1",Xn="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Zn="\u8BF7\u9009\u62E9\u7701",Qn="\u8BF7\u9009\u62E9\u5E02",Yn="\u8BF7\u9009\u62E9\u533A",pn="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",eu="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",tu="\u8BF7\u8F93\u5165\u5217\u5BBD",nu="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",uu="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",au="\u8BF7\u9009\u62E9\u63A7\u4EF6",iu="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",ru="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",su="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",lu="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",ou="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",cu="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",du="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",fu="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",hu="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",mu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",gu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",yu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",vu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Eu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",Bu="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Cu="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",Au="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",Fu="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",bu="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",Du="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Su="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",wu="\u8BF7\u8F93\u5165\u5B50\u8868\u522B\u540D",Iu="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u4E1A\u52A1\u6A21\u578B",Ru="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u7ED1\u5B9A\u670D\u52A1",Mu="\u8BF7\u9009\u62E9\u5173\u8054\u5B50\u8868\u5B57\u6BB5",Lu="\u8BF7\u9009\u62E9\u5173\u8054\u4E3B\u8868\u5B57\u6BB5",$u={isNotNumber:P,isNotString:V,isNotObject:je,isNotArray:De,isNotBoolean:_e,runtimeRequired:Ue,pleaseEnterCaption:ce,pleaseEnterCaptionTip:X,pleaseEnterPlaceholder:de,pleaseEnterFieldCode:Fn,pleaseEnterForm:bn,pleaseEnterList:Dn,pleaseEnterProcess:Sn,pleaseEnterLabel:wn,pleaseEnterValue:In,bizKeyNotBindFiled:Rn,pleaseSelectOneField:Mn,pleaseEnterNumberRange:Ln,pleaseEnterAValueGreaterThanMin:$n,pleaseEnterAValueLessThanMax:Pn,numberRangeSetError:On,stringRangeError:qn,attachmentMaxSize:Vn,pleaseEnterTotalScoreSetting:Nn,theTotalScoreMustNotBeLessThan1:jn,scoreDefaultValueRange:_n,attachmentLimitError:Un,PleaseReselectTheOptionalQuantity:Tn,TheMaximumLengthIsGreaterThanTheMinimumLength:Hn,TheMinimumLengthIsGreaterThanTheMaximumLength:xn,PleaseSelectTheCorrectOptionSettings:Wn,optionIdIsRepeat:kn,optionIsRequired:Kn,pleaseEnterDataCode:zn,pleaseEnterValueFieldCode:Gn,pleaseEnterSvcCode:Jn,pleaseBindAtLeastOneDisplayValue:Xn,pleaseSelectProvince:Zn,pleaseSelectCity:Qn,pleaseSelectDistrict:Yn,limitRowsCannotBeLessThan0:pn,TheNumberOfRowsCannotBeLessThanMinRows:eu,pleaseEnterColumnWidth:tu,pleaseSetTheLogicalRelationshipOfAllRuleConditions:nu,pleaseCompleteAllRulesAndConditions:uu,pleaseSelectControl:au,pleaseSelectAtLeastOneColumn:iu,pleaseSelectFillBackMode:ru,pleaseSelectDashboard:su,rootNodeIsRequired:lu,theViewNameCannotBeEmpty:ou,pleaseSelectOcrType:cu,pleaseSelectAtLeastOneFieldToFillIn:du,pleaseChooseAtLeastOne:fu,pleaseEnterButtonContent:hu,pleaseEnterDataCodeInDataSetting:mu,pleaseEnterValueFieldCodeInDataSetting:gu,pleaseEnterSvcCodeInDataSetting:yu,pleaseBindAtLeastOneDisplayValueInDataSetting:vu,rootNodeIsRequiredInDataSetting:Eu,pleaseEnterMaxHeight:Bu,pleaseEnter:Cu,pleaseEnterWatermark:Au,pleaseEnterFileName:Fu,pleaseUploadAtLeastOnePrintTemplate:bu,pleaseAssignBusiness:Du,pleaseAssignExternal:Su,pleaseEnterAliasCode:wu,pleaseSelectDataCode:Iu,pleaseSelectSvcCode:Ru,pleaseSelectJoinFieldCode:Mu,pleaseSelectMainFieldCode:Lu},Pu="Please enter a number",Ou="Please enter a string",qu="Please enter an object",Vu="Please enter an array",Nu="Please enter a boolean",ju="{caption} Required",_u="Please enter the title",Uu="Please enter the bubble prompt",Tu="Please enter the prompt text",Hu="Please bind data items",xu="Please bind the form",Wu="Please bind the list",ku="Please bind the process",Ku="Please enter the displayed value",zu="Please enter the stored value",Gu="The document number is not bound to the data item",Ju="Please select at least one display field",Xu="Please enter a value greater than or equal to {min} and less than or equal to {max}",Zu="Please enter a value greater than or equal to {min}",Qu="Please enter a value less than or equal to {max}",Yu="The value range is set incorrectly",pu="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",ea="The attachment size must be between 0MB and 1000MB",ta="Please fill in the total score setting",na="The total score cannot be less than 1",ua="The default value must be between {min} and {max}",aa="The number of attachments uploaded must be between {min} and {max}",ia="Please re-select the optional quantity",ra="The maximum length of the control must be greater than the minimum length",sa="The minimum length of the control must be less than the maximum length",la="Please select the correct option setting",oa="Option ID cannot be repeated",ca="Please enter at least one option",da="Please bind the data source",fa="Please bind the stored value",ha="Please bind the service",ma="At least one display value must be bound",ga="Please select a province",ya="Please select a city",va="Please select a district",Ea="The minimum number of lines to fill in cannot be less than 0",Ba="The number of rows cannot be less than {min} rows",Ca="Please enter the column width",Aa="Please set the logical relationship of all rule conditions",Fa="Please complete all rules and conditions",ba="please select control",Da="Please select the dashboard",Sa="View name cannot be empty",wa="Please select recognition type",Ia="Please select at least one field to fill in",Ra="Please select at least one",Ma="Please enter the button title",La="Please bind the business model in the data settings",$a="Please bind storage values in data settings",Pa="Please bind the service in the data settings",Oa="Please bind at least one display value in the data settings",qa="Please select the root node in the data settings",Va="Please enter the maximum height",Na="The input content cannot be empty",ja="Watermark cannot be empty",_a="File name cannot be empty",Ua="Please upload at least one printing template!\uFF01",Ta="Please select a specific business department",Ha="Please select a specified external organization",xa="Please enter a sub table alias",Wa="Please select the associated table to set the business model",ka="Please select the association table to set the binding service",Ka="Select associated sub table fields",za="Please select the associated main table field",Ga={isNotNumber:Pu,isNotString:Ou,isNotObject:qu,isNotArray:Vu,isNotBoolean:Nu,runtimeRequired:ju,pleaseEnterCaption:_u,pleaseEnterCaptionTip:Uu,pleaseEnterPlaceholder:Tu,pleaseEnterFieldCode:Hu,pleaseEnterForm:xu,pleaseEnterList:Wu,pleaseEnterProcess:ku,pleaseEnterLabel:Ku,pleaseEnterValue:zu,bizKeyNotBindFiled:Gu,pleaseSelectOneField:Ju,pleaseEnterNumberRange:Xu,pleaseEnterAValueGreaterThanMin:Zu,pleaseEnterAValueLessThanMax:Qu,numberRangeSetError:Yu,stringRangeError:pu,attachmentMaxSize:ea,pleaseEnterTotalScoreSetting:ta,theTotalScoreMustNotBeLessThan1:na,scoreDefaultValueRange:ua,attachmentLimitError:aa,PleaseReselectTheOptionalQuantity:ia,TheMaximumLengthIsGreaterThanTheMinimumLength:ra,TheMinimumLengthIsGreaterThanTheMaximumLength:sa,PleaseSelectTheCorrectOptionSettings:la,optionIdIsRepeat:oa,optionIsRequired:ca,pleaseEnterDataCode:da,pleaseEnterValueFieldCode:fa,pleaseEnterSvcCode:ha,pleaseBindAtLeastOneDisplayValue:ma,pleaseSelectProvince:ga,pleaseSelectCity:ya,pleaseSelectDistrict:va,limitRowsCannotBeLessThan0:Ea,TheNumberOfRowsCannotBeLessThanMinRows:Ba,pleaseEnterColumnWidth:Ca,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Aa,pleaseCompleteAllRulesAndConditions:Fa,pleaseSelectControl:ba,pleaseSelectDashboard:Da,theViewNameCannotBeEmpty:Sa,pleaseSelectOcrType:wa,pleaseSelectAtLeastOneFieldToFillIn:Ia,pleaseChooseAtLeastOne:Ra,pleaseEnterButtonContent:Ma,pleaseEnterDataCodeInDataSetting:La,pleaseEnterValueFieldCodeInDataSetting:$a,pleaseEnterSvcCodeInDataSetting:Pa,pleaseBindAtLeastOneDisplayValueInDataSetting:Oa,rootNodeIsRequiredInDataSetting:qa,pleaseEnterMaxHeight:Va,pleaseEnter:Na,pleaseEnterWatermark:ja,pleaseEnterFileName:_a,pleaseUploadAtLeastOnePrintTemplate:Ua,pleaseAssignBusiness:Ta,pleaseAssignExternal:Ha,pleaseEnterAliasCode:xa,pleaseSelectDataCode:Wa,pleaseSelectSvcCode:ka,pleaseSelectJoinFieldCode:Ka,pleaseSelectMainFieldCode:za},Ja="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Xa="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Za="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Qa="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ya="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",pa="{caption}\u5FC5\u9808",ei="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ti="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ni="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ui="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ai="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ii="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ri="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",si="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",li="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",oi="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",ci="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",di="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",fi="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",hi="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",mi="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",gi="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",yi="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",vi="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Ei="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Bi="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Ci="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Ai="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Fi="\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",bi="\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",Di="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Si="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",wi="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",Ii="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ri="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Mi="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Li="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",$i="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Pi="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Oi="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",qi="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Vi="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Ni="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ji="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",_i="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",Ui="please select control",Ti="\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Hi="\u30D3\u30E5\u30FC\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",xi="\u8B58\u5225\u30BF\u30A4\u30D7\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Wi="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ki="\u5C11\u306A\u304F\u3068\u30821\u3064\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Ki="\u30DC\u30BF\u30F3\u306E\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",zi="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Gi="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u683C\u7D0D\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Ji="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30B5\u30FC\u30D3\u30B9\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Xi="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Zi="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30EB\u30FC\u30C8\u30CE\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Qi="\u6700\u5927\u9AD8\u3055\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Yi="\u5165\u529B\u5185\u5BB9\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",pi="\u900F\u304B\u3057\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",er="\u30D5\u30A1\u30A4\u30EB\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",tr="\u5370\u5237\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u5C11\u306A\u304F\u3068\u30821\u3064\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\uFF01\uFF01",nr="\u6307\u5B9A\u3055\u308C\u305F\u30D3\u30B8\u30CD\u30B9\u90E8\u9580\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ur="\u5916\u90E8\u7D44\u7E54\u306E\u6307\u5B9A\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ar="\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u5225\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ir="\u95A2\u9023\u8868\u3092\u9078\u629E\u3057\u3066\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044",rr="\u95A2\u9023\u30C6\u30FC\u30D6\u30EB\u8A2D\u5B9A\u30D0\u30A4\u30F3\u30C9\u30B5\u30FC\u30D3\u30B9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",sr="\u95A2\u9023\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u9078\u629E",lr="\u95A2\u9023\u30DE\u30B9\u30BF\u30FC\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",or={isNotNumber:Ja,isNotString:Xa,isNotObject:Za,isNotArray:Qa,isNotBoolean:Ya,runtimeRequired:pa,pleaseEnterCaption:ei,pleaseEnterCaptionTip:ti,pleaseEnterPlaceholder:ni,pleaseEnterFieldCode:ui,pleaseEnterForm:ai,pleaseEnterList:ii,pleaseEnterProcess:ri,pleaseEnterLabel:si,pleaseEnterValue:li,bizKeyNotBindFiled:oi,pleaseSelectOneField:ci,pleaseEnterNumberRange:di,pleaseEnterAValueGreaterThanMin:fi,pleaseEnterAValueLessThanMax:hi,numberRangeSetError:mi,stringRangeError:gi,attachmentMaxSize:yi,pleaseEnterTotalScoreSetting:vi,theTotalScoreMustNotBeLessThan1:Ei,scoreDefaultValueRange:Bi,attachmentLimitError:Ci,PleaseReselectTheOptionalQuantity:Ai,TheMaximumLengthIsGreaterThanTheMinimumLength:Fi,TheMinimumLengthIsGreaterThanTheMaximumLength:bi,PleaseSelectTheCorrectOptionSettings:Di,optionIdIsRepeat:Si,optionIsRequired:wi,pleaseEnterDataCode:Ii,pleaseEnterValueFieldCode:Ri,pleaseEnterSvcCode:Mi,pleaseBindAtLeastOneDisplayValue:Li,pleaseSelectProvince:$i,pleaseSelectCity:Pi,pleaseSelectDistrict:Oi,limitRowsCannotBeLessThan0:qi,TheNumberOfRowsCannotBeLessThanMinRows:Vi,pleaseEnterColumnWidth:Ni,pleaseSetTheLogicalRelationshipOfAllRuleConditions:ji,pleaseCompleteAllRulesAndConditions:_i,pleaseSelectControl:Ui,pleaseSelectDashboard:Ti,theViewNameCannotBeEmpty:Hi,pleaseSelectOcrType:xi,pleaseSelectAtLeastOneFieldToFillIn:Wi,pleaseChooseAtLeastOne:ki,pleaseEnterButtonContent:Ki,pleaseEnterDataCodeInDataSetting:zi,pleaseEnterValueFieldCodeInDataSetting:Gi,pleaseEnterSvcCodeInDataSetting:Ji,pleaseBindAtLeastOneDisplayValueInDataSetting:Xi,rootNodeIsRequiredInDataSetting:Zi,pleaseEnterMaxHeight:Qi,pleaseEnter:Yi,pleaseEnterWatermark:pi,pleaseEnterFileName:er,pleaseUploadAtLeastOnePrintTemplate:tr,pleaseAssignBusiness:nr,pleaseAssignExternal:ur,pleaseEnterAliasCode:ar,pleaseSelectDataCode:ir,pleaseSelectSvcCode:rr,pleaseSelectJoinFieldCode:sr,pleaseSelectMainFieldCode:lr},cr={zhCN:$u,enUS:Ga,jaJP:or},Dt;(function(t){t.Number="Number",t.Operator="Operator",t.VariableInMainTable="VariableInMainTable",t.VariableInCurrentSubTable="VariableInCurrentSubTable",t.VariableInOtherSubTable="VariableInOtherSubTable",t.UndefinedVariable="UndefinedVariable"})(Dt||(Dt={}));var St;(function(t){t.SUM="SUM",t.AVG="AVG",t.MAX="MAX",t.MIN="MIN"})(St||(St={}));var dr="zh-CN";function k(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ie;(function(t){t.BASE="base",t.FORM="form",t.LAYOUT="layout",t.WRAP="wrap",t.COLUMN="column",t.LIST="list",t.SEARCH="search"})(ie||(ie={}));var N;(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.Approval_Status_Column="approval-status-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.ACTION_BAR="action-bar",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"})(N||(N={}));var q;(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"})(q||(q={}));var j;j={},k(j,q.ARRAY,N.ARRAY_COLUMN),k(j,q.AUTO_NUMBER,N.AUTO_NUMBER_COLUMN),k(j,q.DECIMAL,N.DECIMAL_COLUMN),k(j,q.DEPARTMENTS,N.DEPARTMENT_COLUMN),k(j,q.FILE,N.FILE_COLUMN),k(j,q.IMAGE,N.IMAGE_COLUMN),k(j,q.ADDRESS,N.LOCATION_COLUMN),k(j,q.EMPLOYEES,N.EMPLOYEE_COLUMN),k(j,q.TEXT,N.TEXT_COLUMN),k(j,q.TIMESCOPE,N.TIMESCOPE_COLUMN),k(j,q.TIMESTAMP,N.TIMESTAMP_COLUMN),k(j,q.VARCHAR,N.VARCHAR_COLUMN),k(j,q.RELATION,N.VARCHAR_COLUMN);var wt;(function(t){t.YEAR="year",t.MONTH="month",t.DATE="date",t.DATEHOUR="datehour",t.DATEMIN="datemin",t.DATETIME="datetime"})(wt||(wt={}));var It="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",fr=It+"0123456789";function ne(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,e="",n=0;n<t;n++){var u=n===0?It:fr,a=Math.random()*u.length;e+=u[parseInt(String(a),10)]}return e}function Te(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 hr(t){if(Array.isArray(t))return Te(t)}function mr(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Rt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}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 Se(t,e,n){return gr()?Se=Reflect.construct:Se=function(a,i,r){var o=[null];o.push.apply(o,i);var m=Function.bind.apply(a,o),h=new m;return r&&he(h,r.prototype),h},Se.apply(null,arguments)}function fe(t){return fe=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},fe(t)}function Mt(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&&he(t,e)}function yr(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function vr(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Er(){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 Br(t,e){return e&&(Cr(e)==="object"||typeof e=="function")?e:mr(t)}function he(t,e){return he=Object.setPrototypeOf||function(u,a){return u.__proto__=a,u},he(t,e)}function Lt(t){return hr(t)||vr(t)||Ar(t)||Er()}var Cr=function(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t};function Ar(t,e){if(!!t){if(typeof t=="string")return Te(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 Te(t,e)}}function He(t){var e=typeof Map=="function"?new Map:void 0;return He=function(u){if(u===null||!yr(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,fe(this).constructor)}return a.prototype=Object.create(u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),he(a,u)},He(t)}function Fr(){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 $t(t){var e=Fr();return function(){var u=fe(t),a;if(e){var i=fe(this).constructor;a=Reflect.construct(u,arguments,i)}else a=u.apply(this,arguments);return Br(this,a)}}var xe=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=xe).warn.apply(u,["\u{1F9D0} Driven Warning:"+e[0]].concat(Lt(a)))}function Pt(){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=xe).log.apply(u,["\u{1F680} Driven Log:"+e[0]].concat(Lt(a)))}function br(t){return t+" \u{1F41B}\u{1F41B}\u{1F41B}"}var ke=function(t){Mt(n,t);var e=$t(n);function n(u){Rt(this,n);var a;return a=e.call(this,u),a.name="\u{1F4A5} Driven Error",a.message=u?br(u):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",a}return n}(He(Error)),Dr=function(t){Mt(n,t);var e=$t(n);function n(u){Rt(this,n);var a;return a=e.call(this,u),a.name="\u{1F6A8} Driven Reference Error",a}return n}(ke);function Ke(t){throw new ke(t)}function Ot(t){throw new Dr(t)}function Sr(t){xe.error(new ke(t))}var wr=Object.prototype.toString;function qt(t,e){return wr.call(t)==="[object "+e+"]"}function Ir(t){return qt(t,"String")}function Rr(t){return qt(t,"Promise")}var Mr=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();Rr(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 m=a[i];if(!(r===o.length-1&&!Ir(m)))return m}},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 Lr(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 $r(t,e,n){return e&&Vt(t.prototype,e),n&&Vt(t,n),t}var E=function(){function t(){Lr(this,t)}return $r(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]:dr;return new Mr({locale:n,messages:cr})}},{key:"setLocale",value:function(n){return this.$i18n.setLocale(n)}}]),t}();E.$i18n=E.resetI18n();function Pr(t,e,n){var u=e.replace(/\[(\d)]/g,function(i,r){return"."+r}).split("."),a=!1;return u.reduce(function(i,r,o,m){var h=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===m.length-1&&!Object.is(h[r],n)&&(h[r]=n,a=!0),h[r]}},t),a}var Or=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},qr={exports:{}};(function(t){(function(e){var n=function(l,g,y){if(!h(g)||C(g)||M(g)||$(g)||m(g))return g;var R,S=0,T=0;if(F(g))for(R=[],T=g.length;S<T;S++)R.push(n(l,g[S],y));else{R={};for(var w in g)Object.prototype.hasOwnProperty.call(g,w)&&(R[l(w,y)]=n(l,g[w],y))}return R},u=function(l,g){g=g||{};var y=g.separator||"_",R=g.split||/(?=[A-Z])/;return l.split(R).join(y)},a=function(l){return L(l)?l:(l=l.replace(/[\-_\s]+(.)?/g,function(g,y){return y?y.toUpperCase():""}),l.substr(0,1).toLowerCase()+l.substr(1))},i=function(l){var g=a(l);return g.substr(0,1).toUpperCase()+g.substr(1)},r=function(l,g){return u(l,g).toLowerCase()},o=Object.prototype.toString,m=function(l){return typeof l=="function"},h=function(l){return l===Object(l)},F=function(l){return o.call(l)=="[object Array]"},C=function(l){return o.call(l)=="[object Date]"},M=function(l){return o.call(l)=="[object RegExp]"},$=function(l){return o.call(l)=="[object Boolean]"},L=function(l){return l=l-0,l===l},B=function(l,g){var y=g&&"process"in g?g.process:g;return typeof y!="function"?l:function(R,S){return y(R,l,S)}},D={camelize:a,decamelize:r,pascalize:i,depascalize:r,camelizeKeys:function(l,g){return n(B(a,g),l)},decamelizeKeys:function(l,g){return n(B(r,g),l,g)},pascalizeKeys:function(l,g){return n(B(i,g),l)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=D:e.humps=D})(Or)})(qr);var Nt={};Object.defineProperty(Nt,"__esModule",{value:!0});function ze(t){if(typeof t!="object"||t===null)return t;if(Array.isArray(t))return t.map(e=>typeof e!="object"||e===null?e:ze(e));{const e={};for(const n in t){const u=t[n];e[n]=typeof u!="object"||u===null?u:ze(u)}return e}}var Vr=Nt.default=ze;function ue(t){if(t!==void 0)return typeof t=="object"?Vr(t):t}function Nr(t){return Object.prototype.toString.call(t)==="[object Object]"}function jr(t){return Array.isArray(t)}function _r(t){return t.reduce(function(e,n){return e.includes(n)||e.push(n),e},[])}var jt={exports:{}};(function(t){var e=function(n){var u=Object.prototype,a=u.hasOwnProperty,i=Object.defineProperty||function(d,c,f){d[c]=f.value},r,o=typeof Symbol=="function"?Symbol:{},m=o.iterator||"@@iterator",h=o.asyncIterator||"@@asyncIterator",F=o.toStringTag||"@@toStringTag";function C(d,c,f){return Object.defineProperty(d,c,{value:f,enumerable:!0,configurable:!0,writable:!0}),d[c]}try{C({},"")}catch(d){C=function(c,f,A){return c[f]=A}}function M(d,c,f,A){var v=c&&c.prototype instanceof y?c:y,I=Object.create(v.prototype),H=new At(A||[]);return i(I,"_invoke",{value:Ve(d,f,H)}),I}n.wrap=M;function $(d,c,f){try{return{type:"normal",arg:d.call(c,f)}}catch(A){return{type:"throw",arg:A}}}var L="suspendedStart",B="suspendedYield",D="executing",l="completed",g={};function y(){}function R(){}function S(){}var T={};C(T,m,function(){return this});var w=Object.getPrototypeOf,_=w&&w(w(Ft([])));_&&_!==u&&a.call(_,m)&&(T=_);var Q=S.prototype=y.prototype=Object.create(T);R.prototype=S,i(Q,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:R,configurable:!0}),R.displayName=C(S,F,"GeneratorFunction");function Y(d){["next","throw","return"].forEach(function(c){C(d,c,function(f){return this._invoke(c,f)})})}n.isGeneratorFunction=function(d){var c=typeof d=="function"&&d.constructor;return c?c===R||(c.displayName||c.name)==="GeneratorFunction":!1},n.mark=function(d){return Object.setPrototypeOf?Object.setPrototypeOf(d,S):(d.__proto__=S,C(d,F,"GeneratorFunction")),d.prototype=Object.create(Q),d},n.awrap=function(d){return{__await:d}};function se(d,c){function f(I,H,x,z){var W=$(d[I],d,H);if(W.type==="throw")z(W.arg);else{var bt=W.arg,Fe=bt.value;return Fe&&typeof Fe=="object"&&a.call(Fe,"__await")?c.resolve(Fe.__await).then(function(ae){f("next",ae,x,z)},function(ae){f("throw",ae,x,z)}):c.resolve(Fe).then(function(ae){bt.value=ae,x(bt)},function(ae){return f("throw",ae,x,z)})}}var A;function v(I,H){function x(){return new c(function(z,W){f(I,H,z,W)})}return A=A?A.then(x,x):x()}i(this,"_invoke",{value:v})}Y(se.prototype),C(se.prototype,h,function(){return this}),n.AsyncIterator=se,n.async=function(d,c,f,A,v){v===void 0&&(v=Promise);var I=new se(M(d,c,f,A),v);return n.isGeneratorFunction(c)?I:I.next().then(function(H){return H.done?H.value:I.next()})};function Ve(d,c,f){var A=L;return function(I,H){if(A===D)throw new Error("Generator is already running");if(A===l){if(I==="throw")throw H;return ol()}for(f.method=I,f.arg=H;;){var x=f.delegate;if(x){var z=le(x,f);if(z){if(z===g)continue;return z}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(A===L)throw A=l,f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);A=D;var W=$(d,c,f);if(W.type==="normal"){if(A=f.done?l:B,W.arg===g)continue;return{value:W.arg,done:f.done}}else W.type==="throw"&&(A=l,f.method="throw",f.arg=W.arg)}}}function le(d,c){var f=c.method,A=d.iterator[f];if(A===r)return c.delegate=null,f==="throw"&&d.iterator.return&&(c.method="return",c.arg=r,le(d,c),c.method==="throw")||f!=="return"&&(c.method="throw",c.arg=new TypeError("The iterator does not provide a '"+f+"' method")),g;var v=$(A,d.iterator,c.arg);if(v.type==="throw")return c.method="throw",c.arg=v.arg,c.delegate=null,g;var I=v.arg;if(!I)return c.method="throw",c.arg=new TypeError("iterator result is not an object"),c.delegate=null,g;if(I.done)c[d.resultName]=I.value,c.next=d.nextLoc,c.method!=="return"&&(c.method="next",c.arg=r);else return I;return c.delegate=null,g}Y(Q),C(Q,F,"Generator"),C(Q,m,function(){return this}),C(Q,"toString",function(){return"[object Generator]"});function te(d){var c={tryLoc:d[0]};1 in d&&(c.catchLoc=d[1]),2 in d&&(c.finallyLoc=d[2],c.afterLoc=d[3]),this.tryEntries.push(c)}function Ct(d){var c=d.completion||{};c.type="normal",delete c.arg,d.completion=c}function At(d){this.tryEntries=[{tryLoc:"root"}],d.forEach(te,this),this.reset(!0)}n.keys=function(d){var c=Object(d),f=[];for(var A in c)f.push(A);return f.reverse(),function v(){for(;f.length;){var I=f.pop();if(I in c)return v.value=I,v.done=!1,v}return v.done=!0,v}};function Ft(d){if(d||d===""){var c=d[m];if(c)return c.call(d);if(typeof d.next=="function")return d;if(!isNaN(d.length)){var f=-1,A=function v(){for(;++f<d.length;)if(a.call(d,f))return v.value=d[f],v.done=!1,v;return v.value=r,v.done=!0,v};return A.next=A}}throw new TypeError(typeof d+" is not iterable")}n.values=Ft;function ol(){return{value:r,done:!0}}return At.prototype={constructor:At,reset:function(d){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(Ct),!d)for(var c in this)c.charAt(0)==="t"&&a.call(this,c)&&!isNaN(+c.slice(1))&&(this[c]=r)},stop:function(){this.done=!0;var d=this.tryEntries[0],c=d.completion;if(c.type==="throw")throw c.arg;return this.rval},dispatchException:function(d){if(this.done)throw d;var c=this;function f(z,W){return I.type="throw",I.arg=d,c.next=z,W&&(c.method="next",c.arg=r),!!W}for(var A=this.tryEntries.length-1;A>=0;--A){var v=this.tryEntries[A],I=v.completion;if(v.tryLoc==="root")return f("end");if(v.tryLoc<=this.prev){var H=a.call(v,"catchLoc"),x=a.call(v,"finallyLoc");if(H&&x){if(this.prev<v.catchLoc)return f(v.catchLoc,!0);if(this.prev<v.finallyLoc)return f(v.finallyLoc)}else if(H){if(this.prev<v.catchLoc)return f(v.catchLoc,!0)}else if(x){if(this.prev<v.finallyLoc)return f(v.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(d,c){for(var f=this.tryEntries.length-1;f>=0;--f){var A=this.tryEntries[f];if(A.tryLoc<=this.prev&&a.call(A,"finallyLoc")&&this.prev<A.finallyLoc){var v=A;break}}v&&(d==="break"||d==="continue")&&v.tryLoc<=c&&c<=v.finallyLoc&&(v=null);var I=v?v.completion:{};return I.type=d,I.arg=c,v?(this.method="next",this.next=v.finallyLoc,g):this.complete(I)},complete:function(d,c){if(d.type==="throw")throw d.arg;return d.type==="break"||d.type==="continue"?this.next=d.arg:d.type==="return"?(this.rval=this.arg=d.arg,this.method="return",this.next="end"):d.type==="normal"&&c&&(this.next=c),g},finish:function(d){for(var c=this.tryEntries.length-1;c>=0;--c){var f=this.tryEntries[c];if(f.finallyLoc===d)return this.complete(f.completion,f.afterLoc),Ct(f),g}},catch:function(d){for(var c=this.tryEntries.length-1;c>=0;--c){var f=this.tryEntries[c];if(f.tryLoc===d){var A=f.completion;if(A.type==="throw"){var v=A.arg;Ct(f)}return v}}throw new Error("illegal catch attempt")},delegateYield:function(d,c,f){return this.delegate={iterator:Ft(d),resultName:c,nextLoc:f},this.method==="next"&&(this.arg=r),g}},n}(t.exports);try{regeneratorRuntime=e}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}})(jt);var _t=jt.exports;function Ge(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 Ur(t){if(Array.isArray(t))return Ge(t)}function Ut(t,e,n,u,a,i,r){try{var o=t[i](r),m=o.value}catch(h){n(h);return}o.done?e(m):Promise.resolve(m).then(u,a)}function Tr(t){return function(){var e=this,n=arguments;return new Promise(function(u,a){var i=t.apply(e,n);function r(m){Ut(i,u,a,r,o,"next",m)}function o(m){Ut(i,u,a,r,o,"throw",m)}r(void 0)})}}function Hr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Tt(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 xr(t,e,n){return e&&Tt(t.prototype,e),n&&Tt(t,n),t}function Wr(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function kr(){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 Je(t){return Ur(t)||Wr(t)||Kr(t)||kr()}function Kr(t,e){if(!!t){if(typeof t=="string")return Ge(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 Ge(t,e)}}var zr=function(){function t(){Hr(this,t),this._events=new Map,this.debug=!1}return xr(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 Tr(_t.mark(function o(){var m,h,F,C,M,$,L,B,D,l;return _t.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(m=r._events.get(n),h=[],!m){y.next=42;break}F=m.slice(),C=!0,M=!1,$=void 0,y.prev=5,L=F[Symbol.iterator]();case 7:if(C=(B=L.next()).done){y.next=28;break}if(D=B.value,m.includes(D)){y.next=11;break}return y.abrupt("continue",25);case 11:return y.prev=11,r.debug&&Pt.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(D.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+D.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(a.map(function(){return"%o"}).join(","),"\u3002")].concat(Je(a))),y.next=15,D.apply(null,Je(a));case 15:if(l=y.sent,r.debug&&Pt.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(D.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+D.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(Je(a),[l])),h.push(l),l!==!1){y.next=20;break}return y.abrupt("break",28);case 20:y.next=25;break;case 22:y.prev=22,y.t0=y.catch(11),Sr(String(y.t0)+":"+String(y.t0.stack));case 25:C=!0,y.next=7;break;case 28:y.next=34;break;case 30:y.prev=30,y.t1=y.catch(5),M=!0,$=y.t1;case 34:y.prev=34,y.prev=35,!C&&L.return!=null&&L.return();case 37:if(y.prev=37,!M){y.next=40;break}throw $;case 40:return y.finish(37);case 41:return y.finish(34);case 42:return y.abrupt("return",h);case 43:case"end":return y.stop()}},o,null,[[5,30,34,42],[11,22],[35,,37,41]])}))()}},{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}();const Ht=[],xt=class{constructor(t){this.registeredControlTypes=new Set,this.controlConfigMap=new Map,this._controls=[],this._type=t,this._initControls(t)}registerControlConfig(t,e){return this.controlConfigMap.set(t,e),this}getControlConfig(t){return this.controlConfigMap.get(t)}static register(t){const{Designer:e,Runtime:n}=t;(!e||!n||!e.__is_control__||!n.__is_control__)&&Ke(`${t} is can't register as a Control`);const u=this.staticControls.findIndex(a=>a.Designer.controlType===e.controlType);return u>-1&&(We(`The ${e.controlType} is repeat register, So it overwrites the one that was registered before.`),this.staticControls.splice(u,1)),this.staticRegisteredTypes.add(e.controlType),this.staticControls.push(t),this}getControls(){return this._controls}register(t){t.__is_control__||Ke(`${t.name} is not a Control`);const e=this._controls.findIndex(n=>n.controlType===t.controlType);return e>-1&&(We(`The ${t.controlType} is repeat register, So it overwrites the one that was registered before.`),this._controls.splice(e,1)),this.registeredControlTypes.add(t.controlType),this._controls.push(t),this}isLayoutControl(t){return t.controlType===ie.LAYOUT}isFormControl(t){return t.controlType===ie.FORM}isListControl(t){return t.controlType===ie.LIST}isColumnControl(t){return t.controlType===ie.COLUMN}createControl(t,e){if(Array.isArray(t))return t.map(u=>this.createControl(u,e));if(t.children&&(t.children=t.children.map(u=>this.createControl(u,e))),this.isListControl(t)){const u=t.props;u.headers&&(u.headers=u.headers.map(a=>this.createControl(a,e))),u.footers&&(u.footers=u.footers.map(a=>{let i;return a&&(i=this.createControl(a,e)),i}))}const n=this.getControlFormType(t.type);if(n){let u=t;if(typeof e=="function"){const i=e(u);i&&(u=i)}return new n(u)}else Ke(`The constructor of ${t.type} could not be found, please confirm that the constructor has been registered`)}createControlInstance(t,e){const n=this.getControlFormType(t);if(n)return new n(e)}getControlFormType(t){return this._controls.find(e=>e.controlType===t)}_initControls(t){this.constructor.staticControls.forEach(e=>{this.register(e[t]),xt.staticControlsRuntimeRules.set(e.Runtime.controlType,e.Property.RuntimeRules)})}};let me=xt;me.staticControlsRuntimeRules=new Map,me.staticControls=Ht,me.staticRegisteredTypes=new Set(Ht.map(t=>t.Designer.controlType)),me.staticRegisteredConfigs=new Map;class G{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:"",this.aliasCode=e==null?void 0:e.aliasCode}}class Xe{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 we extends Xe{constructor(e){super(e);var n,u;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 Gr{constructor(e){this.pc=new we(e==null?void 0:e.pc),this.mobile=(e==null?void 0:e.mobile)?new we(e==null?void 0:e.mobile):new we({width:130,minWidth:180})}}class Jr{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 Ie{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 Xr extends Ie{constructor(e){super(e);var n;this.primaryControlId=(n=e==null?void 0:e.primaryControlId)!=null?n:""}}class Wt{constructor(e){var n;this.fieldCode=(n=e==null?void 0:e.fieldCode)!=null?n:""}}class Zr{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 Wt(r)))!=null?i:[]}}class kt{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:q.VARCHAR}}class Kt extends Ie{constructor(e){super(e);var n,u,a,i;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 Qr{constructor(e){var n,u,a,i;this.type="sublist-page",this.formBind=new Ie(e==null?void 0:e.formBind),this.displayFields=(u=(n=e==null?void 0:e.displayFields)==null?void 0:n.map(r=>new kt(r)))!=null?u:[],this.sublists=(i=(a=e==null?void 0:e.sublists)==null?void 0:a.map(r=>new Kt(r)))!=null?i:[]}}class zt{constructor(e){this.type=e==null?void 0:e.type,this.value=e==null?void 0:e.value}}class Ze{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 ge{constructor(e){var n,u,a,i;this.type="conditions",this.id=(n=e==null?void 0:e.id)!=null?n:ne(),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,m;if(r.children!==void 0){const h=new ge(r);(o=this.children)==null||o.push(h)}else{const h=new Re(r);(m=this.children)==null||m.push(h)}}))}}class Re{constructor(e){var n,u,a,i,r;this.type="condition",this.id=(n=e==null?void 0:e.id)!=null?n:ne(),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 zt(e==null?void 0:e.leftVariableBo),this.rightVariableBo=new Ze(e==null?void 0:e.rightVariableBo)}}class Yr{constructor(e){var n,u;this.aliasCode=(n=e==null?void 0:e.aliasCode)!=null?n:"",this.datasourceBind=new Me(e==null?void 0:e.datasourceBind),this.relationFields=(u=e==null?void 0:e.relationFields)!=null?u:[]}}class Gt{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 Qe{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 Ye{constructor(e){var n,u;this.columnName=(n=e.columnName)!=null?n:"",this.desc=(u=e.desc)!=null?u:!1}}class Jt{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:q.ANY}}class pr{constructor(e){var n,u,a,i,r,o,m;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(h=>new Ye(h)))!=null?r:[],this.dataSet=(m=(o=e.dataSet)==null?void 0:o.map(h=>new Jt(h)))!=null?m:[]}}function pe(t){var e,n,u,a,i,r;this.filters=(n=(e=t==null?void 0:t.filters)==null?void 0:e.map(o=>o.children!==void 0?new ge(o):new Re(o)))!=null?n:[],this.viewFilters=(a=(u=t==null?void 0:t.viewFilters)==null?void 0:u.map(o=>o.children!==void 0?new ge(o):new Re(o)))!=null?a:[],this.orders=(r=(i=t==null?void 0:t.orders)==null?void 0:i.map(o=>new Ye(o)))!=null?r:[]}class Me{constructor(e){var n,u,a,i,r,o;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=[],this.isOpenViewFilters=(i=e==null?void 0:e.isOpenViewFilters)!=null?i:0,Array.isArray(e==null?void 0:e.displayBoList)&&(e==null||e.displayBoList.map(m=>{var h;(h=this.displayBoList)==null||h.push(new Qe(m))})),this.showOrder=(r=e==null?void 0:e.showOrder)!=null?r:!0,this.svcCode=(o=e==null?void 0:e.svcCode)!=null?o:"",pe.call(this,e)}}class es{constructor(e){var n,u;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.displayBoList=(u=e==null?void 0:e.displayBoList)!=null?u:[]}}class ts{constructor(e){var n,u,a,i,r,o,m,h,F,C;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=(m=e==null?void 0:e.icon)!=null?m:"iconliulan1",this.needConfirm=(h=e==null?void 0:e.needConfirm)!=null?h:!1,this.openType=(F=e==null?void 0:e.openType)!=null?F:"modal",this.priorityProcess=(C=e==null?void 0:e.priorityProcess)!=null?C:!0}}class et{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 Qe(r)))!=null?i:[]}}class Xt extends Me{constructor(e){super(e);var n,u;this.attributes=(u=(n=e==null?void 0:e.attributes)==null?void 0:n.map(a=>new et(a)))!=null?u:[]}}class ns extends Me{constructor(e){super(e);var n,u,a;this.attributes=(u=(n=e==null?void 0:e.attributes)==null?void 0:n.map(i=>new et(i)))!=null?u:[],this.formCode=(a=e==null?void 0:e.formCode)!=null?a:""}}class us extends Xt{constructor(e){super(e);var n;this.rootNode=new Ze(e==null?void 0:e.rootNode),this.filterCode=(n=e==null?void 0:e.filterCode)!=null?n:""}}class Zt{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 Gt(r)))!=null?i:[]}}class as extends Zt{constructor(e){super(e);pe.call(this,e)}}class is extends Zt{constructor(e){super(e);var n,u;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 rs{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 ss{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 tt{constructor(e){var n,u,a;this.id=(n=e==null?void 0:e.id)!=null?n:ne(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 tt{constructor(e){super(e);var n,u;this.image=(n=e==null?void 0:e.image)!=null?n:"",this.type=(u=e==null?void 0:e.type)!=null?u:"src"}}function ls(t){var e;return(e=t==null?void 0:t.map(n=>new tt(n)))!=null?e:[]}function os(t){var e;return(e=t==null?void 0:t.map(n=>new Qt(n)))!=null?e:[]}class Le{}class cs extends Le{constructor(e){super();this.amount=new G(e==null?void 0:e.amount),this.currency=new G(e==null?void 0:e.currency)}}class ds{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:nt.CNY}}class fs extends Le{constructor(e){super();this.min=new G(e==null?void 0:e.min),this.max=new G(e==null?void 0:e.max)}}class hs{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 ms{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 gs extends Le{constructor(e){super();this.result=new G(e==null?void 0:e.result),this.unit=new G(e==null?void 0:e.unit)}}class ys{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 nt=(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))(nt||{}),Yt=(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.VIEW_FORM_MODEL_TYPE="viewFormModelType",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))(Yt||{}),ut=(t=>(t[t.UNKNOWN=0]="UNKNOWN",t[t.READONLY=1]="READONLY",t[t.EDITABLE=2]="EDITABLE",t[t.PRINT=5]="PRINT",t))(ut||{});class vs{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 Es{constructor(e){var n,u,a,i;this.id=(n=e==null?void 0:e.id)!=null?n:ne(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 Wt(r)))!=null?i:[],pe.call(this,e)}}class Bs{constructor(e){var n,u;this.key=(n=e.key)!=null?n:ne(8),this.caption=(u=e.caption)!=null?u:""}}class pt{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 Cs{constructor(e){var n,u;this.optCode=(n=e==null?void 0:e.optCode)!=null?n:"",this.optType=(u=e==null?void 0:e.optType)!=null?u:""}}class $e{constructor(e){this.isHide={type:"boolean"}}}class at extends Array{constructor(e){super()}}class Z{constructor(e,n=""){var u,a;this.isHide=(u=e==null?void 0:e.isHide)!=null?u:!1,this.style=new pt(e==null?void 0:e.style),this.caption=(a=e==null?void 0:e.caption)!=null?a:n}}Z.Rules=$e,Z.RuntimeRules=at;function J(){return J=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},J.apply(this,arguments)}function As(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function it(t){return it=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},it(t)}function Pe(t,e){return Pe=Object.setPrototypeOf||function(u,a){return u.__proto__=a,u},Pe(t,e)}function Fs(){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 Oe(t,e,n){return Fs()?Oe=Reflect.construct:Oe=function(a,i,r){var o=[null];o.push.apply(o,i);var m=Function.bind.apply(a,o),h=new m;return r&&Pe(h,r.prototype),h},Oe.apply(null,arguments)}function bs(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function rt(t){var e=typeof Map=="function"?new Map:void 0;return rt=function(u){if(u===null||!bs(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 Oe(u,arguments,it(this).constructor)}return a.prototype=Object.create(u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Pe(a,u)},rt(t)}var Ds=/%[sdj%]/g,en=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(en=function(e,n){typeof console!="undefined"&&console.warn&&n.every(function(u){return typeof u=="string"})&&console.warn(e,n)});function st(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 K(){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(Ds,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(m){return"[Circular]"}break;default:return o}});return r}return a}function Ss(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function O(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||Ss(e)&&typeof t=="string"&&!t)}function ws(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 tn(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 Is(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,t[n])}),e}var nn=function(t){As(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}(rt(Error));function Rs(t,e,n,u){if(e.first){var a=new Promise(function(C,M){var $=function(D){return u(D),D.length?M(new nn(D,st(D))):C()},L=Is(t);tn(L,n,$)});return a.catch(function(C){return C}),a}var i=e.firstFields||[];i===!0&&(i=Object.keys(t));var r=Object.keys(t),o=r.length,m=0,h=[],F=new Promise(function(C,M){var $=function(B){if(h.push.apply(h,B),m++,m===o)return u(h),h.length?M(new nn(h,st(h))):C()};r.length||(u(h),C()),r.forEach(function(L){var B=t[L];i.indexOf(L)!==-1?tn(B,n,$):ws(B,n,$)})});return F.catch(function(C){return C}),F}function un(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 an(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]=J(J({},t[n]),u):t[n]=u}}return t}function rn(t,e,n,u,a,i){t.required&&(!n.hasOwnProperty(t.field)||O(e,i||t.type))&&u.push(K(a.messages.required,t.fullField))}function Ms(t,e,n,u,a){(/^\s+$/.test(e)||e==="")&&u.push(K(a.messages.whitespace,t.fullField))}var lt={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},ye={integer:function(e){return ye.number(e)&&parseInt(e,10)===e},float:function(e){return ye.number(e)&&!ye.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"&&!ye.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&!!e.match(lt.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(lt.url)},hex:function(e){return typeof e=="string"&&!!e.match(lt.hex)}};function Ls(t,e,n,u,a){if(t.required&&e===void 0){rn(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?ye[r](e)||u.push(K(a.messages.types[r],t.fullField,t.type)):r&&typeof e!==t.type&&u.push(K(a.messages.types[r],t.fullField,t.type))}function $s(t,e,n,u,a){var i=typeof t.len=="number",r=typeof t.min=="number",o=typeof t.max=="number",m=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,h=e,F=null,C=typeof e=="number",M=typeof e=="string",$=Array.isArray(e);if(C?F="number":M?F="string":$&&(F="array"),!F)return!1;$&&(h=e.length),M&&(h=e.replace(m,"_").length),i?h!==t.len&&u.push(K(a.messages[F].len,t.fullField,t.len)):r&&!o&&h<t.min?u.push(K(a.messages[F].min,t.fullField,t.min)):o&&!r&&h>t.max?u.push(K(a.messages[F].max,t.fullField,t.max)):r&&o&&(h<t.min||h>t.max)&&u.push(K(a.messages[F].range,t.fullField,t.min,t.max))}var re="enum";function Ps(t,e,n,u,a){t[re]=Array.isArray(t[re])?t[re]:[],t[re].indexOf(e)===-1&&u.push(K(a.messages[re],t.fullField,t[re].join(", ")))}function Os(t,e,n,u,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||u.push(K(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(K(a.messages.pattern.mismatch,t.fullField,e,t.pattern))}}}var b={required:rn,whitespace:Ms,type:Ls,range:$s,enum:Ps,pattern:Os};function qs(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(O(e,"string")&&!t.required)return n();b.required(t,e,u,i,a,"string"),O(e,"string")||(b.type(t,e,u,i,a),b.range(t,e,u,i,a),b.pattern(t,e,u,i,a),t.whitespace===!0&&b.whitespace(t,e,u,i,a))}n(i)}function Vs(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(O(e)&&!t.required)return n();b.required(t,e,u,i,a),e!==void 0&&b.type(t,e,u,i,a)}n(i)}function Ns(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(e===""&&(e=void 0),O(e)&&!t.required)return n();b.required(t,e,u,i,a),e!==void 0&&(b.type(t,e,u,i,a),b.range(t,e,u,i,a))}n(i)}function js(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(O(e)&&!t.required)return n();b.required(t,e,u,i,a),e!==void 0&&b.type(t,e,u,i,a)}n(i)}function _s(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(O(e)&&!t.required)return n();b.required(t,e,u,i,a),O(e)||b.type(t,e,u,i,a)}n(i)}function Us(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(O(e)&&!t.required)return n();b.required(t,e,u,i,a),e!==void 0&&(b.type(t,e,u,i,a),b.range(t,e,u,i,a))}n(i)}function Ts(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(O(e)&&!t.required)return n();b.required(t,e,u,i,a),e!==void 0&&(b.type(t,e,u,i,a),b.range(t,e,u,i,a))}n(i)}function Hs(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();b.required(t,e,u,i,a,"array"),e!=null&&(b.type(t,e,u,i,a),b.range(t,e,u,i,a))}n(i)}function xs(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(O(e)&&!t.required)return n();b.required(t,e,u,i,a),e!==void 0&&b.type(t,e,u,i,a)}n(i)}var Ws="enum";function ks(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(O(e)&&!t.required)return n();b.required(t,e,u,i,a),e!==void 0&&b[Ws](t,e,u,i,a)}n(i)}function Ks(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(O(e,"string")&&!t.required)return n();b.required(t,e,u,i,a),O(e,"string")||b.pattern(t,e,u,i,a)}n(i)}function zs(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(O(e,"date")&&!t.required)return n();if(b.required(t,e,u,i,a),!O(e,"date")){var o;e instanceof Date?o=e:o=new Date(e),b.type(t,o,u,i,a),o&&b.range(t,o.getTime(),u,i,a)}}n(i)}function Gs(t,e,n,u,a){var i=[],r=Array.isArray(e)?"array":typeof e;b.required(t,e,u,i,a,r),n(i)}function ot(t,e,n,u,a){var i=t.type,r=[],o=t.required||!t.required&&u.hasOwnProperty(t.field);if(o){if(O(e,i)&&!t.required)return n();b.required(t,e,u,r,a,i),O(e,i)||b.type(t,e,u,r,a)}n(r)}function Js(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(O(e)&&!t.required)return n();b.required(t,e,u,i,a)}n(i)}var ve={string:qs,method:Vs,number:Ns,boolean:js,regexp:_s,integer:Us,float:Ts,array:Hs,object:xs,enum:ks,pattern:Ks,date:zs,url:ot,hex:ot,email:ot,required:Gs,any:Js};function ct(){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 dt=ct();function p(t){this.rules=null,this._messages=dt,this.define(t)}p.prototype={messages:function(e){return e&&(this._messages=an(ct(),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 m(B){var D,l=[],g={};function y(R){if(Array.isArray(R)){var S;l=(S=l).concat.apply(S,R)}else l.push(R)}for(D=0;D<B.length;D++)y(B[D]);l.length?g=st(l):(l=null,g=null),o(l,g)}if(r.messages){var h=this.messages();h===dt&&(h=ct()),an(h,r.messages),r.messages=h}else r.messages=this.messages();var F,C,M={},$=r.keys||Object.keys(this.rules);$.forEach(function(B){F=a.rules[B],C=i[B],F.forEach(function(D){var l=D;typeof l.transform=="function"&&(i===e&&(i=J({},i)),C=i[B]=l.transform(C)),typeof l=="function"?l={validator:l}:l=J({},l),l.validator=a.getValidationMethod(l),l.field=B,l.fullField=l.fullField||B,l.type=a.getType(l),!!l.validator&&(M[B]=M[B]||[],M[B].push({rule:l,value:C,source:i,field:B}))})});var L={};return Rs(M,r,function(B,D){var l=B.rule,g=(l.type==="object"||l.type==="array")&&(typeof l.fields=="object"||typeof l.defaultField=="object");g=g&&(l.required||!l.required&&B.value),l.field=B.field;function y(T,w){return J(J({},w),{},{fullField:l.fullField+"."+T})}function R(T){T===void 0&&(T=[]);var w=T;if(Array.isArray(w)||(w=[w]),!r.suppressWarning&&w.length&&p.warning("async-validator:",w),w.length&&l.message!==void 0&&(w=[].concat(l.message)),w=w.map(un(l)),r.first&&w.length)return L[l.field]=1,D(w);if(!g)D(w);else{if(l.required&&!B.value)return l.message!==void 0?w=[].concat(l.message).map(un(l)):r.error&&(w=[r.error(l,K(r.messages.required,l.field))]),D(w);var _={};if(l.defaultField)for(var Q in B.value)B.value.hasOwnProperty(Q)&&(_[Q]=l.defaultField);_=J(J({},_),B.rule.fields);for(var Y in _)if(_.hasOwnProperty(Y)){var se=Array.isArray(_[Y])?_[Y]:[_[Y]];_[Y]=se.map(y.bind(null,Y))}var Ve=new p(_);Ve.messages(r.messages),B.rule.options&&(B.rule.options.messages=r.messages,B.rule.options.error=r.error),Ve.validate(B.value,B.rule.options||r,function(le){var te=[];w&&w.length&&te.push.apply(te,w),le&&le.length&&te.push.apply(te,le),D(te.length?te:null)})}}var S;l.asyncValidator?S=l.asyncValidator(l,B.value,R,B.source,r):l.validator&&(S=l.validator(l,B.value,R,B.source,r),S===!0?R():S===!1?R(l.message||l.field+" fails"):S instanceof Array?R(S):S instanceof Error&&R(S.message)),S&&S.then&&S.then(function(){return R()},function(T){return R(T)})},function(B){m(B)})},getType:function(e){if(e.type===void 0&&e.pattern instanceof RegExp&&(e.type="pattern"),typeof e.validator!="function"&&e.type&&!ve.hasOwnProperty(e.type))throw new Error(K("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"?ve.required:ve[this.getType(e)]||!1}},p.register=function(e,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");ve[e]=n},p.warning=en,p.messages=dt,p.validators=ve;const Xs={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 sn(t,e={}){const n=new p(t);return n.messages(Object.assign(Xs,e)),n}const ln=new zr;class U{constructor(e){var F,C,M,$;this.setting=[],this.eventKeys=[],this.customEvents=[],this.parent=null,this.updateSetting=cn,this.removeSetting=on,this._callControlHooks("preInstance",e);const{controlName:n,controlIcon:u,controlType:a,controlFieldType:i,controlEventKeys:r,controlCustomEvents:o,name:m,setting:h}=new.target;n&&u&&a||Ot(`The ${m} controlName,controlIcon,controlType is not define`),this.id=(F=e==null?void 0:e.id)!=null?F:ne(10),this.name=n,this.icon=u,this.type=(C=e==null?void 0:e.type)!=null?C:a,this.props=new Z(e==null?void 0:e.props,new.target.controlName),this.controlType=(M=e==null?void 0:e.controlType)!=null?M:"base",this.setting=ue(h),this.fieldType=($=e==null?void 0:e.fieldType)!=null?$:i,this.eventKeys=ue(r),this.customEvents=ue(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 ln.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),Pr(this.props,e,n),this.postUpdate(e,n)}preValidate(){return be(this,null,function*(){const e=oe({},this.rules),n=yield this._callControlHooks("preValidate",e),u=n[n.length-1];return u===!1?void 0:u})}validate(e,n){return be(this,null,function*(){const u=yield this.preValidate(),a=u!==void 0?u:oe({},this.rules);Array.isArray(n)&&n.forEach(r=>{a.hasOwnProperty(r)&&delete a[r]});const i=sn(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:m,required:h,maxLength:F,options:C,encrypted:M,encryptedMode:$}=this.props;if(!n&&!i&&!r)return;const L={parentId:e,fieldType:n,controlId:u,caption:m,type:a,props:{}};switch(i&&(L.dataBind=i),o){case"datasource":case void 0:r&&(L.datasourceBind=r);break;case"custom":L.props.options=C;break}return h!==void 0&&(L.required=h),F!==void 0&&(L.maxLength=F),M!==void 0&&(L.encrypted=M),$!==void 0&&(L.encryptedMode=$),L}preToSchema(){this._callControlHooks("preToSchema",this)}toSchema(){return this.preToSchema(),{id:this.id,type:this.type,props:ue(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)}}U.controlName="\u63A7\u4EF6",U.controlIcon="icon",U.controlType="control",U.controlEventKeys=[],U.controlCustomEvents=[],U.setting=[],U.__is_control__=!0,U.removeSettingItem=on,U.updateSettingItem=cn;function on(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?void 0:r.length)&&this.setting.splice(a,1))})}function cn(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 ee{constructor(e){var r,o,m,h,F;this.customEvents=[],this.parent=null;const{controlType:n,controlFieldType:u,name:a,controlCustomEvents:i}=new.target;n||Ot(`The ${a} controlType is not define`),this.id=(r=e==null?void 0:e.id)!=null?r:ne(10),this.type=(o=e==null?void 0:e.type)!=null?o:n,this.props=new Z(e==null?void 0:e.props),this.customEvents=i,this.controlType=(m=e==null?void 0:e.controlType)!=null?m:"base",this.fieldType=(h=e==null?void 0:e.fieldType)!=null?h:u,this.pageStatus=(F=e==null?void 0:e.pageStatus)!=null?F:ut.UNKNOWN}get rules(){const e=this.props.constructor.RuntimeRules;if(e){const n=new e(this.props);return Array.from(n)}return[]}}ee.controlType="control",ee.__is_control__=!0,ee.controlCustomEvents=[];function ft(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:E.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{label:{type:"string",required:!0,message:E.getMessage("pleaseEnterLabel")},value:{type:"string",required:!0,message:E.getMessage("pleaseEnterValue")}}}},{type:"array",validator(e,n,u){n.length===0&&u(E.getMessage("optionIsRequired")),u()}},{type:"array",validator(e,n,u){const a=n.map(r=>r.value),i=_r(a);a.length!==i.length?u(E.getMessage("optionIdIsRepeat")):u()},message:E.getMessage("optionIdIsRepeat")}]:t.hasOwnProperty("datasourceBind")&&(!t.hasOwnProperty("optionConfig")||t.hasOwnProperty("optionConfig")&&t.optionConfig==="datasource")&&(this.datasourceBind=[{type:"object",message:E.getMessage("isNotObject")},{type:"object",fields:{dataCode:{type:"string",required:!0,message:E.getMessage("pleaseEnterDataCode")},valueFieldCode:{type:"string",required:!0,message:E.getMessage("pleaseEnterValueFieldCode")},svcCode:{type:"string",required:!0,message:E.getMessage("pleaseEnterSvcCode")},displayBoList:[{type:"array",message:E.getMessage("isNotArray")},{type:"array",validator(e,n,u){n.length===0&&u(E.getMessage("pleaseBindAtLeastOneDisplayValue")),u()},message:E.getMessage("pleaseBindAtLeastOneDisplayValue")}],orders:[{type:"array",message:E.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{columnName:{type:"string",required:!0,message:E.getMessage("pleaseEnterFieldCode")},desc:{type:"boolean",message:E.getMessage("isNotBoolean")}}}}]}}])}function Zs(t,e,n=!1){this.datasourceBind=[{type:"object",message:E.getMessage("isNotObject")},{type:"object",fields:{dataCode:{type:"string",required:!0,message:E.getMessage(n?"pleaseEnterDataCodeInDataSetting":"pleaseEnterDataCode")},valueFieldCode:{type:"string",required:!0,message:E.getMessage(n?"pleaseEnterValueFieldCodeInDataSetting":"pleaseEnterValueFieldCode")},svcCode:{type:"string",required:!0,message:E.getMessage(n?"pleaseEnterSvcCodeInDataSetting":"pleaseEnterSvcCode")},attributes:[{type:"array",message:E.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{name:{type:"string",required:!0,message:E.getMessage("isNotString")},key:{type:"string",required:!0,message:E.getMessage("isNotString")},value:[{type:"array",message:E.getMessage("isNotArray")},{type:"array",validator(u,a,i){a.length===0&&i(E.getMessage(n?"pleaseBindAtLeastOneDisplayValueInDataSetting":"pleaseBindAtLeastOneDisplayValue")),i()},message:E.getMessage(n?"pleaseBindAtLeastOneDisplayValueInDataSetting":"pleaseBindAtLeastOneDisplayValue")}]}}}],orders:[{type:"array",message:E.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{columnName:{type:"string",required:!0,message:E.getMessage("pleaseEnterFieldCode")},desc:{type:"boolean",message:E.getMessage("isNotBoolean")}}}}]}}]}function dn(t){return t.dataCode!==void 0&&t.fieldCode!==void 0}class ht extends $e{constructor(e){super(e);this.dataBind={},this.caption={type:"string",required:!0,message:E.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:E.getMessage("pleaseEnterCaptionTip")};const n={fieldCode:{type:"string",required:!0,message:E.getMessage("pleaseEnterFieldCode")},dataCode:{type:"string",required:!0,message:E.getMessage("pleaseEnterFieldCode")}};if(dn(e.dataBind))this.dataBind={type:"object",required:!0,fields:ue(n),message:E.getMessage("pleaseEnterFieldCode")};else{let u={type:"object",required:!0,fields:{},message:E.getMessage("pleaseEnterFieldCode")};Object.keys(e.dataBind).forEach(a=>{u.fields[a]={type:"object",required:!0,fields:ue(n),message:E.getMessage("pleaseEnterFieldCode")}}),this.dataBind=u}e.isShowCaptionTip&&(this.captionTip.required=!0)}}class fn extends at{constructor(e){super(e);const n=e.isHide?!1:e.required;n&&this.push({type:"string",required:n,message:e.requiredMessage!==""?e.requiredMessage:E.getMessage("runtimeRequired",{caption:e.caption})})}}class Ee extends Z{constructor(e){super(e);var n,u,a,i,r,o,m,h,F,C;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=(m=e==null?void 0:e.placeholder)!=null?m:"",this.required=(h=e==null?void 0:e.required)!=null?h:!1,this.requiredMessage=(F=e==null?void 0:e.requiredMessage)!=null?F:"",this.dataBind=new G(e==null?void 0:e.dataBind),this.defaultValue=(C=e==null?void 0:e.defaultValue)!=null?C:""}}Ee.Rules=ht,Ee.RuntimeRules=fn;class Qs extends ht{constructor(e){super(e);this.optionConfig={type:"enum",enum:["custom","datasource"],message:E.getMessage("PleaseSelectTheCorrectOptionSettings")},this.options=[{type:"array",message:E.getMessage("isNotArray")}],this.datasourceBind=[{type:"object",message:E.getMessage("isNotObject")}],ft.call(this,e)}}class hn extends U{constructor(e){super(e);this.controlType="form",this.props=new Ee(e==null?void 0:e.props)}}hn.controlEventKeys=["on_change","on_focus","on_blur"];class Ys extends ee{constructor(e){super(e);this.controlType="form",this.props=new Ee(e==null?void 0:e.props)}}class Be extends Z{constructor(e){super(e)}}function mn(t,e){var n;((n=Object.getOwnPropertyDescriptors(t)[e])==null?void 0:n.enumerable)&&Object.defineProperty(t,e,{enumerable:!1})}function mt(t,e){t.parent=e,mn(t,"parent")}function gn(t,e){t.forEach(n=>{mt(n,e)})}const yn=Symbol("targetKey");function vn(t){var e;return(e=t[yn])!=null?e:t}function En(t,e){return gn(t,e),new Proxy(t,{get(n,u,...a){return u===yn?n:Reflect.get(n,u,...a)},set(n,u,a,...i){if(jr(t)&&u==="length"&&a===t.length)return!0;const r=Reflect.set(n,u,a,...i);return Nr(a)&&mt(a,e),r}})}function Ce(t,e,n,u){const a=u!=null?u:t;let i=En(vn(n!=null?n:[]),a);Object.defineProperty(t,e,{get(){return i},set(r){i=En(vn(r),a)},enumerable:!0})}const ps=1e4;class Ae extends U{constructor(e){super(e);this.controlType="layout";const{excludes:n,childrenMaxLength:u}=new.target;this.props=new Be(e==null?void 0:e.props),Ce(this,"children",e==null?void 0:e.children),this.excludes=ue(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){var u=a=>super[a];return be(this,null,function*(){return yield u("validate").call(this,e,n),yield Promise.all(this.children.map(i=>i.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(m=>!!m);return[...a,...o]}return r&&a.push(r),a},u)}toSchema(){const e=super.toSchema(),n=this.children.map(u=>u.toSchema());return Ne(oe({},e),{children:n})}}Ae.excludes=!1,Ae.childrenMaxLength=ps;class gt extends ee{constructor(e){super(e);this.controlType="layout",this.props=new Be(e==null?void 0:e.props),Ce(this,"children",e==null?void 0:e.children)}}class yt extends Z{constructor(e,n){super(n);Ce(this,"headers",n==null?void 0:n.headers,e)}}class Bn extends U{constructor(e){super(e);this.controlType="list",this.props=new yt(this,e==null?void 0:e.props)}validate(e,n){var u=a=>super[a];return be(this,null,function*(){return yield u("validate").call(this,e),yield Promise.all(this.props.headers.map(i=>i.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(m=>!!m);return[...a,...o]}return r&&a.push(r),a},n)}toSchema(){var a,i;const e=super.toSchema(),n=this.props.headers.map(r=>r.toSchema()),u=(i=(a=this.props)==null?void 0:a.footers)==null?void 0:i.map(r=>{if(r)return r.toSchema()});return Ne(oe({},e),{props:Ne(oe({},this.props),{headers:n,footers:u})})}}Bn.controlFieldType=q.LIST;class el extends ee{constructor(e){super(e);this.controlType="list",this.props=new yt(this,e==null?void 0:e.props),Ce(this,"children",e==null?void 0:e.children)}get length(){return this.children.length}}class vt extends $e{constructor(e){super(e);this.caption={type:"string",required:!0,message:E.getMessage("pleaseEnterCaption")},this.width={type:"number",required:!1,message:E.getMessage("pleaseEnterColumnWidth")},this.width.required=e.widthType==="px"}}class qe extends Z{constructor(e){super(e);var n,u,a,i,r;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 Xe(e==null?void 0:e.autoWidth),this.dataBind=new G(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}}qe.Rules=vt;class tl extends vt{constructor(e){super(e);this.optionConfig={type:"enum",enum:["custom","datasource","none"],message:E.getMessage("PleaseSelectTheCorrectOptionSettings")},this.options=[{type:"array",message:E.getMessage("isNotArray")}],this.datasourceBind=[{type:"object",message:E.getMessage("isNotObject")}],ft.call(this,e)}}class nl extends U{constructor(e){super(e);this.controlType="column",this.props=new qe(e==null?void 0:e.props)}}class ul extends ee{constructor(e){super(e);this.controlType="column",this.props=new qe(e==null?void 0:e.props)}}class Et extends Be{constructor(e){super(e);this.dataBind=new G(e==null?void 0:e.dataBind)}}class al extends Ae{constructor(e){super(e);this.controlType="search",this.props=new Et(e==null?void 0:e.props)}}class il extends gt{constructor(e){super(e);this.controlType="search",this.props=new Et(e==null?void 0:e.props)}}class Bt extends Be{constructor(e){super(e)}}class rl extends Ae{constructor(e){super(e);this.controlType="wrap",this.props=new Bt(e==null?void 0:e.props)}}class sl extends gt{constructor(e){super(e);this.controlType="wrap",this.props=new Bt(e==null?void 0:e.props)}}function ll(t){t.hasOwnProperty("linkOperationOption")&&t.hasOwnProperty("showLinkOperation")&&t.showLinkOperation&&(this.linkOperationOption=[{type:"object",fields:{formKey:{type:"string",required:!0,message:E.getMessage("pleaseEnterForm")}}}])}s.AMOUNT_TYPE=nt,s.AddressValue=ms,s.AmountDataBind=cs,s.AmountValue=ds,s.AutoWidth=Xe,s.BaseControlProperty=Ee,s.BaseControlPropertyRules=ht,s.BaseControlPropertyRuntimeRules=fn,s.BaseStyle=pt,s.COMMON_SETTING_TYPE=Yt,s.CalcDataBind=gs,s.CalcValue=ys,s.ColumnControlProperty=qe,s.ColumnControlPropertyRules=vt,s.ColumnOptionAndDataSourcePropertyRules=tl,s.CustomAttributeItem=et,s.CustomPermissionItem=Bs,s.DataBind=G,s.DataSourceBind=Me,s.DataSourceDataSetValue=Jt,s.DataSourceOrderItem=Ye,s.DataSourceParamItem=pr,s.DataStorageDoc=Jr,s.DesignerColumnControl=nl,s.DesignerControl=U,s.DesignerFormControl=hn,s.DesignerLayoutControl=Ae,s.DesignerListControl=Bn,s.DesignerSearchControl=al,s.DesignerWrapControl=rl,s.DisplayBoListItem=Qe,s.FieldBindItem=kt,s.FieldFilterCondition=Re,s.FieldFilterConditions=ge,s.FillBackBind=is,s.FillPayloadBind=as,s.FormBind=Ie,s.FormSelectBind=Xr,s.ImageOptionSetting=Qt,s.JoinRelation=Yr,s.Language=rs,s.LayoutControlProperty=Be,s.LeftVariable=zt,s.LinkOperationOption=ts,s.ListBind=Zr,s.ListControlProperty=yt,s.MetaAutoWidth=Gr,s.MetaWidth=we,s.MultistageFillingItem=Gt,s.ObjectDataBind=Le,s.OperationItem=vs,s.OptObject=Cs,s.OptionAndDataSourcePropertyRules=Qs,s.OptionSetting=tt,s.OrganizationDataSourceBind=ns,s.PAGE_STATUS=ut,s.Property=Z,s.PropertyRules=$e,s.PropertyRuntimeRules=at,s.RangeDataBind=fs,s.RangeDateValue=hs,s.RegisterControls=me,s.RegularRules=ss,s.RightVariable=Ze,s.RuntimeColumnControl=ul,s.RuntimeControl=ee,s.RuntimeFormControl=Ys,s.RuntimeLayoutControl=gt,s.RuntimeListControl=el,s.RuntimeSearchControl=il,s.RuntimeWrapControl=sl,s.SearchControlProperty=Et,s.SelectedContentConfig=es,s.SubListItem=Kt,s.SubListPageConfig=Qr,s.SuperDataSourceBind=Xt,s.TreeDataSourceBind=us,s.ViewOperationItem=Es,s.WrapControlProperty=Bt,s.controlHooksEmitter=ln,s.createValidator=sn,s.defineArrayParent=gn,s.defineControlArrayToProperty=Ce,s.defineParent=mt,s.initImageOptions=os,s.initLinkOperationRules=ll,s.initOptionAndDataSourceRules=ft,s.initOptions=ls,s.initSuperDataSourceRules=Zs,s.isDataBind=dn,s.setPropertyDontEnum=mn,Object.defineProperty(s,"__esModule",{value:!0})});
|
|
1
|
+
var cl=Object.defineProperty,dl=Object.defineProperties;var fl=Object.getOwnPropertyDescriptors;var Cn=Object.getOwnPropertySymbols;var hl=Object.prototype.hasOwnProperty,ml=Object.prototype.propertyIsEnumerable;var An=(l,P,V)=>P in l?cl(l,P,{enumerable:!0,configurable:!0,writable:!0,value:V}):l[P]=V,oe=(l,P)=>{for(var V in P||(P={}))hl.call(P,V)&&An(l,V,P[V]);if(Cn)for(var V of Cn(P))ml.call(P,V)&&An(l,V,P[V]);return l},Ne=(l,P)=>dl(l,fl(P));var De=(l,P,V)=>new Promise((je,be)=>{var _e=X=>{try{ce(V.next(X))}catch(de){be(de)}},Ue=X=>{try{ce(V.throw(X))}catch(de){be(de)}},ce=X=>X.done?je(X.value):Promise.resolve(X.value).then(_e,Ue);ce((V=V.apply(l,P)).next())});(function(l,P){typeof exports=="object"&&typeof module!="undefined"?P(exports):typeof define=="function"&&define.amd?define(["exports"],P):(l=typeof globalThis!="undefined"?globalThis:l||self,P(l.modelDrivenCore={}))})(this,function(l){"use strict";var P="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",V="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",je="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",be="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",_e="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",Ue="{caption}\u5FC5\u586B",ce="\u8BF7\u8F93\u5165\u6807\u9898",X="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",de="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",Fn="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",Dn="\u8BF7\u7ED1\u5B9A\u8868\u5355",bn="\u8BF7\u7ED1\u5B9A\u5217\u8868",Sn="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",wn="\u8BF7\u8F93\u5165\u663E\u793A\u503C",In="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",Rn="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",Mn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",Ln="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",$n="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",Pn="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",On="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",qn="\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",Nn="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",jn="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",_n="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Un="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Tn="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",xn="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",Hn="\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",kn="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",Kn="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",zn="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Gn="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",Jn="\u8BF7\u7ED1\u5B9A\u670D\u52A1",Xn="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Zn="\u8BF7\u9009\u62E9\u7701",Qn="\u8BF7\u9009\u62E9\u5E02",Yn="\u8BF7\u9009\u62E9\u533A",pn="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",eu="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",tu="\u8BF7\u8F93\u5165\u5217\u5BBD",nu="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",uu="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",au="\u8BF7\u9009\u62E9\u63A7\u4EF6",iu="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",ru="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",su="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",lu="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",ou="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",cu="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",du="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",fu="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",hu="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",mu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",gu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",yu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",vu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Eu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",Bu="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Cu="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",Au="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",Fu="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Du="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",bu="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Su="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",wu="\u8BF7\u8F93\u5165\u5B50\u8868\u522B\u540D",Iu="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u4E1A\u52A1\u6A21\u578B",Ru="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u7ED1\u5B9A\u670D\u52A1",Mu="\u8BF7\u9009\u62E9\u5173\u8054\u5B50\u8868\u5B57\u6BB5",Lu="\u8BF7\u9009\u62E9\u5173\u8054\u4E3B\u8868\u5B57\u6BB5",$u={isNotNumber:P,isNotString:V,isNotObject:je,isNotArray:be,isNotBoolean:_e,runtimeRequired:Ue,pleaseEnterCaption:ce,pleaseEnterCaptionTip:X,pleaseEnterPlaceholder:de,pleaseEnterFieldCode:Fn,pleaseEnterForm:Dn,pleaseEnterList:bn,pleaseEnterProcess:Sn,pleaseEnterLabel:wn,pleaseEnterValue:In,bizKeyNotBindFiled:Rn,pleaseSelectOneField:Mn,pleaseEnterNumberRange:Ln,pleaseEnterAValueGreaterThanMin:$n,pleaseEnterAValueLessThanMax:Pn,numberRangeSetError:On,stringRangeError:qn,attachmentMaxSize:Vn,pleaseEnterTotalScoreSetting:Nn,theTotalScoreMustNotBeLessThan1:jn,scoreDefaultValueRange:_n,attachmentLimitError:Un,PleaseReselectTheOptionalQuantity:Tn,TheMaximumLengthIsGreaterThanTheMinimumLength:xn,TheMinimumLengthIsGreaterThanTheMaximumLength:Hn,PleaseSelectTheCorrectOptionSettings:Wn,optionIdIsRepeat:kn,optionIsRequired:Kn,pleaseEnterDataCode:zn,pleaseEnterValueFieldCode:Gn,pleaseEnterSvcCode:Jn,pleaseBindAtLeastOneDisplayValue:Xn,pleaseSelectProvince:Zn,pleaseSelectCity:Qn,pleaseSelectDistrict:Yn,limitRowsCannotBeLessThan0:pn,TheNumberOfRowsCannotBeLessThanMinRows:eu,pleaseEnterColumnWidth:tu,pleaseSetTheLogicalRelationshipOfAllRuleConditions:nu,pleaseCompleteAllRulesAndConditions:uu,pleaseSelectControl:au,pleaseSelectAtLeastOneColumn:iu,pleaseSelectFillBackMode:ru,pleaseSelectDashboard:su,rootNodeIsRequired:lu,theViewNameCannotBeEmpty:ou,pleaseSelectOcrType:cu,pleaseSelectAtLeastOneFieldToFillIn:du,pleaseChooseAtLeastOne:fu,pleaseEnterButtonContent:hu,pleaseEnterDataCodeInDataSetting:mu,pleaseEnterValueFieldCodeInDataSetting:gu,pleaseEnterSvcCodeInDataSetting:yu,pleaseBindAtLeastOneDisplayValueInDataSetting:vu,rootNodeIsRequiredInDataSetting:Eu,pleaseEnterMaxHeight:Bu,pleaseEnter:Cu,pleaseEnterWatermark:Au,pleaseEnterFileName:Fu,pleaseUploadAtLeastOnePrintTemplate:Du,pleaseAssignBusiness:bu,pleaseAssignExternal:Su,pleaseEnterAliasCode:wu,pleaseSelectDataCode:Iu,pleaseSelectSvcCode:Ru,pleaseSelectJoinFieldCode:Mu,pleaseSelectMainFieldCode:Lu},Pu="Please enter a number",Ou="Please enter a string",qu="Please enter an object",Vu="Please enter an array",Nu="Please enter a boolean",ju="{caption} Required",_u="Please enter the title",Uu="Please enter the bubble prompt",Tu="Please enter the prompt text",xu="Please bind data items",Hu="Please bind the form",Wu="Please bind the list",ku="Please bind the process",Ku="Please enter the displayed value",zu="Please enter the stored value",Gu="The document number is not bound to the data item",Ju="Please select at least one display field",Xu="Please enter a value greater than or equal to {min} and less than or equal to {max}",Zu="Please enter a value greater than or equal to {min}",Qu="Please enter a value less than or equal to {max}",Yu="The value range is set incorrectly",pu="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",ea="The attachment size must be between 0MB and 1000MB",ta="Please fill in the total score setting",na="The total score cannot be less than 1",ua="The default value must be between {min} and {max}",aa="The number of attachments uploaded must be between {min} and {max}",ia="Please re-select the optional quantity",ra="The maximum length of the control must be greater than the minimum length",sa="The minimum length of the control must be less than the maximum length",la="Please select the correct option setting",oa="Option ID cannot be repeated",ca="Please enter at least one option",da="Please bind the data source",fa="Please bind the stored value",ha="Please bind the service",ma="At least one display value must be bound",ga="Please select a province",ya="Please select a city",va="Please select a district",Ea="The minimum number of lines to fill in cannot be less than 0",Ba="The number of rows cannot be less than {min} rows",Ca="Please enter the column width",Aa="Please set the logical relationship of all rule conditions",Fa="Please complete all rules and conditions",Da="please select control",ba="Please select the dashboard",Sa="View name cannot be empty",wa="Please select recognition type",Ia="Please select at least one field to fill in",Ra="Please select at least one",Ma="Please enter the button title",La="Please bind the business model in the data settings",$a="Please bind storage values in data settings",Pa="Please bind the service in the data settings",Oa="Please bind at least one display value in the data settings",qa="Please select the root node in the data settings",Va="Please enter the maximum height",Na="The input content cannot be empty",ja="Watermark cannot be empty",_a="File name cannot be empty",Ua="Please upload at least one printing template!\uFF01",Ta="Please select a specific business department",xa="Please select a specified external organization",Ha="Please enter a sub table alias",Wa="Please select the associated table to set the business model",ka="Please select the association table to set the binding service",Ka="Select associated sub table fields",za="Please select the associated main table field",Ga={isNotNumber:Pu,isNotString:Ou,isNotObject:qu,isNotArray:Vu,isNotBoolean:Nu,runtimeRequired:ju,pleaseEnterCaption:_u,pleaseEnterCaptionTip:Uu,pleaseEnterPlaceholder:Tu,pleaseEnterFieldCode:xu,pleaseEnterForm:Hu,pleaseEnterList:Wu,pleaseEnterProcess:ku,pleaseEnterLabel:Ku,pleaseEnterValue:zu,bizKeyNotBindFiled:Gu,pleaseSelectOneField:Ju,pleaseEnterNumberRange:Xu,pleaseEnterAValueGreaterThanMin:Zu,pleaseEnterAValueLessThanMax:Qu,numberRangeSetError:Yu,stringRangeError:pu,attachmentMaxSize:ea,pleaseEnterTotalScoreSetting:ta,theTotalScoreMustNotBeLessThan1:na,scoreDefaultValueRange:ua,attachmentLimitError:aa,PleaseReselectTheOptionalQuantity:ia,TheMaximumLengthIsGreaterThanTheMinimumLength:ra,TheMinimumLengthIsGreaterThanTheMaximumLength:sa,PleaseSelectTheCorrectOptionSettings:la,optionIdIsRepeat:oa,optionIsRequired:ca,pleaseEnterDataCode:da,pleaseEnterValueFieldCode:fa,pleaseEnterSvcCode:ha,pleaseBindAtLeastOneDisplayValue:ma,pleaseSelectProvince:ga,pleaseSelectCity:ya,pleaseSelectDistrict:va,limitRowsCannotBeLessThan0:Ea,TheNumberOfRowsCannotBeLessThanMinRows:Ba,pleaseEnterColumnWidth:Ca,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Aa,pleaseCompleteAllRulesAndConditions:Fa,pleaseSelectControl:Da,pleaseSelectDashboard:ba,theViewNameCannotBeEmpty:Sa,pleaseSelectOcrType:wa,pleaseSelectAtLeastOneFieldToFillIn:Ia,pleaseChooseAtLeastOne:Ra,pleaseEnterButtonContent:Ma,pleaseEnterDataCodeInDataSetting:La,pleaseEnterValueFieldCodeInDataSetting:$a,pleaseEnterSvcCodeInDataSetting:Pa,pleaseBindAtLeastOneDisplayValueInDataSetting:Oa,rootNodeIsRequiredInDataSetting:qa,pleaseEnterMaxHeight:Va,pleaseEnter:Na,pleaseEnterWatermark:ja,pleaseEnterFileName:_a,pleaseUploadAtLeastOnePrintTemplate:Ua,pleaseAssignBusiness:Ta,pleaseAssignExternal:xa,pleaseEnterAliasCode:Ha,pleaseSelectDataCode:Wa,pleaseSelectSvcCode:ka,pleaseSelectJoinFieldCode:Ka,pleaseSelectMainFieldCode:za},Ja="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Xa="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Za="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Qa="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ya="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",pa="{caption}\u5FC5\u9808",ei="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ti="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ni="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ui="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ai="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ii="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ri="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",si="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",li="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",oi="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",ci="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",di="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",fi="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",hi="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",mi="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",gi="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",yi="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",vi="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Ei="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Bi="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Ci="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Ai="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Fi="\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",Di="\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",bi="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Si="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",wi="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",Ii="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ri="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Mi="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Li="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",$i="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Pi="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Oi="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",qi="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Vi="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Ni="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ji="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",_i="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",Ui="please select control",Ti="\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",xi="\u30D3\u30E5\u30FC\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Hi="\u8B58\u5225\u30BF\u30A4\u30D7\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Wi="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ki="\u5C11\u306A\u304F\u3068\u30821\u3064\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Ki="\u30DC\u30BF\u30F3\u306E\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",zi="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Gi="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u683C\u7D0D\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Ji="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30B5\u30FC\u30D3\u30B9\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Xi="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Zi="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30EB\u30FC\u30C8\u30CE\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Qi="\u6700\u5927\u9AD8\u3055\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Yi="\u5165\u529B\u5185\u5BB9\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",pi="\u900F\u304B\u3057\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",er="\u30D5\u30A1\u30A4\u30EB\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",tr="\u5370\u5237\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u5C11\u306A\u304F\u3068\u30821\u3064\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\uFF01\uFF01",nr="\u6307\u5B9A\u3055\u308C\u305F\u30D3\u30B8\u30CD\u30B9\u90E8\u9580\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ur="\u5916\u90E8\u7D44\u7E54\u306E\u6307\u5B9A\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ar="\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u5225\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ir="\u95A2\u9023\u8868\u3092\u9078\u629E\u3057\u3066\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044",rr="\u95A2\u9023\u30C6\u30FC\u30D6\u30EB\u8A2D\u5B9A\u30D0\u30A4\u30F3\u30C9\u30B5\u30FC\u30D3\u30B9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",sr="\u95A2\u9023\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u9078\u629E",lr="\u95A2\u9023\u30DE\u30B9\u30BF\u30FC\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",or={isNotNumber:Ja,isNotString:Xa,isNotObject:Za,isNotArray:Qa,isNotBoolean:Ya,runtimeRequired:pa,pleaseEnterCaption:ei,pleaseEnterCaptionTip:ti,pleaseEnterPlaceholder:ni,pleaseEnterFieldCode:ui,pleaseEnterForm:ai,pleaseEnterList:ii,pleaseEnterProcess:ri,pleaseEnterLabel:si,pleaseEnterValue:li,bizKeyNotBindFiled:oi,pleaseSelectOneField:ci,pleaseEnterNumberRange:di,pleaseEnterAValueGreaterThanMin:fi,pleaseEnterAValueLessThanMax:hi,numberRangeSetError:mi,stringRangeError:gi,attachmentMaxSize:yi,pleaseEnterTotalScoreSetting:vi,theTotalScoreMustNotBeLessThan1:Ei,scoreDefaultValueRange:Bi,attachmentLimitError:Ci,PleaseReselectTheOptionalQuantity:Ai,TheMaximumLengthIsGreaterThanTheMinimumLength:Fi,TheMinimumLengthIsGreaterThanTheMaximumLength:Di,PleaseSelectTheCorrectOptionSettings:bi,optionIdIsRepeat:Si,optionIsRequired:wi,pleaseEnterDataCode:Ii,pleaseEnterValueFieldCode:Ri,pleaseEnterSvcCode:Mi,pleaseBindAtLeastOneDisplayValue:Li,pleaseSelectProvince:$i,pleaseSelectCity:Pi,pleaseSelectDistrict:Oi,limitRowsCannotBeLessThan0:qi,TheNumberOfRowsCannotBeLessThanMinRows:Vi,pleaseEnterColumnWidth:Ni,pleaseSetTheLogicalRelationshipOfAllRuleConditions:ji,pleaseCompleteAllRulesAndConditions:_i,pleaseSelectControl:Ui,pleaseSelectDashboard:Ti,theViewNameCannotBeEmpty:xi,pleaseSelectOcrType:Hi,pleaseSelectAtLeastOneFieldToFillIn:Wi,pleaseChooseAtLeastOne:ki,pleaseEnterButtonContent:Ki,pleaseEnterDataCodeInDataSetting:zi,pleaseEnterValueFieldCodeInDataSetting:Gi,pleaseEnterSvcCodeInDataSetting:Ji,pleaseBindAtLeastOneDisplayValueInDataSetting:Xi,rootNodeIsRequiredInDataSetting:Zi,pleaseEnterMaxHeight:Qi,pleaseEnter:Yi,pleaseEnterWatermark:pi,pleaseEnterFileName:er,pleaseUploadAtLeastOnePrintTemplate:tr,pleaseAssignBusiness:nr,pleaseAssignExternal:ur,pleaseEnterAliasCode:ar,pleaseSelectDataCode:ir,pleaseSelectSvcCode:rr,pleaseSelectJoinFieldCode:sr,pleaseSelectMainFieldCode:lr},cr={zhCN:$u,enUS:Ga,jaJP:or},bt;(function(t){t.Number="Number",t.Operator="Operator",t.VariableInMainTable="VariableInMainTable",t.VariableInCurrentSubTable="VariableInCurrentSubTable",t.VariableInOtherSubTable="VariableInOtherSubTable",t.UndefinedVariable="UndefinedVariable"})(bt||(bt={}));var St;(function(t){t.SUM="SUM",t.AVG="AVG",t.MAX="MAX",t.MIN="MIN"})(St||(St={}));var dr="zh-CN";function k(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ie;(function(t){t.BASE="base",t.FORM="form",t.LAYOUT="layout",t.WRAP="wrap",t.COLUMN="column",t.LIST="list",t.SEARCH="search"})(ie||(ie={}));var N;(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.Approval_Status_Column="approval-status-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.ACTION_BAR="action-bar",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"})(N||(N={}));var q;(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"})(q||(q={}));var j;j={},k(j,q.ARRAY,N.ARRAY_COLUMN),k(j,q.AUTO_NUMBER,N.AUTO_NUMBER_COLUMN),k(j,q.DECIMAL,N.DECIMAL_COLUMN),k(j,q.DEPARTMENTS,N.DEPARTMENT_COLUMN),k(j,q.FILE,N.FILE_COLUMN),k(j,q.IMAGE,N.IMAGE_COLUMN),k(j,q.ADDRESS,N.LOCATION_COLUMN),k(j,q.EMPLOYEES,N.EMPLOYEE_COLUMN),k(j,q.TEXT,N.TEXT_COLUMN),k(j,q.TIMESCOPE,N.TIMESCOPE_COLUMN),k(j,q.TIMESTAMP,N.TIMESTAMP_COLUMN),k(j,q.VARCHAR,N.VARCHAR_COLUMN),k(j,q.RELATION,N.VARCHAR_COLUMN);var wt;(function(t){t.YEAR="year",t.MONTH="month",t.DATE="date",t.DATEHOUR="datehour",t.DATEMIN="datemin",t.DATETIME="datetime"})(wt||(wt={}));var It="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",fr=It+"0123456789";function ne(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,e="",n=0;n<t;n++){var u=n===0?It:fr,a=Math.random()*u.length;e+=u[parseInt(String(a),10)]}return e}function Te(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 hr(t){if(Array.isArray(t))return Te(t)}function mr(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Rt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}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 Se(t,e,n){return gr()?Se=Reflect.construct:Se=function(a,i,r){var s=[null];s.push.apply(s,i);var m=Function.bind.apply(a,s),h=new m;return r&&he(h,r.prototype),h},Se.apply(null,arguments)}function fe(t){return fe=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},fe(t)}function Mt(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&&he(t,e)}function yr(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function vr(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Er(){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 Br(t,e){return e&&(Cr(e)==="object"||typeof e=="function")?e:mr(t)}function he(t,e){return he=Object.setPrototypeOf||function(u,a){return u.__proto__=a,u},he(t,e)}function Lt(t){return hr(t)||vr(t)||Ar(t)||Er()}var Cr=function(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t};function Ar(t,e){if(!!t){if(typeof t=="string")return Te(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 Te(t,e)}}function xe(t){var e=typeof Map=="function"?new Map:void 0;return xe=function(u){if(u===null||!yr(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,fe(this).constructor)}return a.prototype=Object.create(u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),he(a,u)},xe(t)}function Fr(){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 $t(t){var e=Fr();return function(){var u=fe(t),a;if(e){var i=fe(this).constructor;a=Reflect.construct(u,arguments,i)}else a=u.apply(this,arguments);return Br(this,a)}}var He=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=He).warn.apply(u,["\u{1F9D0} Driven Warning:"+e[0]].concat(Lt(a)))}function Pt(){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=He).log.apply(u,["\u{1F680} Driven Log:"+e[0]].concat(Lt(a)))}function Dr(t){return t+" \u{1F41B}\u{1F41B}\u{1F41B}"}var ke=function(t){Mt(n,t);var e=$t(n);function n(u){Rt(this,n);var a;return a=e.call(this,u),a.name="\u{1F4A5} Driven Error",a.message=u?Dr(u):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",a}return n}(xe(Error)),br=function(t){Mt(n,t);var e=$t(n);function n(u){Rt(this,n);var a;return a=e.call(this,u),a.name="\u{1F6A8} Driven Reference Error",a}return n}(ke);function Ke(t){throw new ke(t)}function Ot(t){throw new br(t)}function Sr(t){He.error(new ke(t))}var wr=Object.prototype.toString;function qt(t,e){return wr.call(t)==="[object "+e+"]"}function Ir(t){return qt(t,"String")}function Rr(t){return qt(t,"Promise")}var Mr=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();Rr(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,s){if(a!==void 0){var m=a[i];if(!(r===s.length-1&&!Ir(m)))return m}},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 Lr(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 $r(t,e,n){return e&&Vt(t.prototype,e),n&&Vt(t,n),t}var E=function(){function t(){Lr(this,t)}return $r(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]:dr;return new Mr({locale:n,messages:cr})}},{key:"setLocale",value:function(n){return this.$i18n.setLocale(n)}}]),t}();E.$i18n=E.resetI18n();function Pr(t,e,n){var u=e.replace(/\[(\d)]/g,function(i,r){return"."+r}).split("."),a=!1;return u.reduce(function(i,r,s,m){var h=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 s===m.length-1&&!Object.is(h[r],n)&&(h[r]=n,a=!0),h[r]}},t),a}var Or=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},qr={exports:{}};(function(t){(function(e){var n=function(o,g,y){if(!h(g)||C(g)||M(g)||$(g)||m(g))return g;var R,S=0,T=0;if(A(g))for(R=[],T=g.length;S<T;S++)R.push(n(o,g[S],y));else{R={};for(var w in g)Object.prototype.hasOwnProperty.call(g,w)&&(R[o(w,y)]=n(o,g[w],y))}return R},u=function(o,g){g=g||{};var y=g.separator||"_",R=g.split||/(?=[A-Z])/;return o.split(R).join(y)},a=function(o){return L(o)?o:(o=o.replace(/[\-_\s]+(.)?/g,function(g,y){return y?y.toUpperCase():""}),o.substr(0,1).toLowerCase()+o.substr(1))},i=function(o){var g=a(o);return g.substr(0,1).toUpperCase()+g.substr(1)},r=function(o,g){return u(o,g).toLowerCase()},s=Object.prototype.toString,m=function(o){return typeof o=="function"},h=function(o){return o===Object(o)},A=function(o){return s.call(o)=="[object Array]"},C=function(o){return s.call(o)=="[object Date]"},M=function(o){return s.call(o)=="[object RegExp]"},$=function(o){return s.call(o)=="[object Boolean]"},L=function(o){return o=o-0,o===o},B=function(o,g){var y=g&&"process"in g?g.process:g;return typeof y!="function"?o:function(R,S){return y(R,o,S)}},b={camelize:a,decamelize:r,pascalize:i,depascalize:r,camelizeKeys:function(o,g){return n(B(a,g),o)},decamelizeKeys:function(o,g){return n(B(r,g),o,g)},pascalizeKeys:function(o,g){return n(B(i,g),o)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=b:e.humps=b})(Or)})(qr);var Nt={};Object.defineProperty(Nt,"__esModule",{value:!0});function ze(t){if(typeof t!="object"||t===null)return t;if(Array.isArray(t))return t.map(e=>typeof e!="object"||e===null?e:ze(e));{const e={};for(const n in t){const u=t[n];e[n]=typeof u!="object"||u===null?u:ze(u)}return e}}var Vr=Nt.default=ze;function ue(t){if(t!==void 0)return typeof t=="object"?Vr(t):t}function Nr(t){return Object.prototype.toString.call(t)==="[object Object]"}function jr(t){return Array.isArray(t)}function _r(t){return t.reduce(function(e,n){return e.includes(n)||e.push(n),e},[])}var jt={exports:{}};(function(t){var e=function(n){var u=Object.prototype,a=u.hasOwnProperty,i=Object.defineProperty||function(d,c,f){d[c]=f.value},r,s=typeof Symbol=="function"?Symbol:{},m=s.iterator||"@@iterator",h=s.asyncIterator||"@@asyncIterator",A=s.toStringTag||"@@toStringTag";function C(d,c,f){return Object.defineProperty(d,c,{value:f,enumerable:!0,configurable:!0,writable:!0}),d[c]}try{C({},"")}catch(d){C=function(c,f,F){return c[f]=F}}function M(d,c,f,F){var v=c&&c.prototype instanceof y?c:y,I=Object.create(v.prototype),x=new At(F||[]);return i(I,"_invoke",{value:Ve(d,f,x)}),I}n.wrap=M;function $(d,c,f){try{return{type:"normal",arg:d.call(c,f)}}catch(F){return{type:"throw",arg:F}}}var L="suspendedStart",B="suspendedYield",b="executing",o="completed",g={};function y(){}function R(){}function S(){}var T={};C(T,m,function(){return this});var w=Object.getPrototypeOf,_=w&&w(w(Ft([])));_&&_!==u&&a.call(_,m)&&(T=_);var Q=S.prototype=y.prototype=Object.create(T);R.prototype=S,i(Q,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:R,configurable:!0}),R.displayName=C(S,A,"GeneratorFunction");function Y(d){["next","throw","return"].forEach(function(c){C(d,c,function(f){return this._invoke(c,f)})})}n.isGeneratorFunction=function(d){var c=typeof d=="function"&&d.constructor;return c?c===R||(c.displayName||c.name)==="GeneratorFunction":!1},n.mark=function(d){return Object.setPrototypeOf?Object.setPrototypeOf(d,S):(d.__proto__=S,C(d,A,"GeneratorFunction")),d.prototype=Object.create(Q),d},n.awrap=function(d){return{__await:d}};function se(d,c){function f(I,x,H,z){var W=$(d[I],d,x);if(W.type==="throw")z(W.arg);else{var Dt=W.arg,Fe=Dt.value;return Fe&&typeof Fe=="object"&&a.call(Fe,"__await")?c.resolve(Fe.__await).then(function(ae){f("next",ae,H,z)},function(ae){f("throw",ae,H,z)}):c.resolve(Fe).then(function(ae){Dt.value=ae,H(Dt)},function(ae){return f("throw",ae,H,z)})}}var F;function v(I,x){function H(){return new c(function(z,W){f(I,x,z,W)})}return F=F?F.then(H,H):H()}i(this,"_invoke",{value:v})}Y(se.prototype),C(se.prototype,h,function(){return this}),n.AsyncIterator=se,n.async=function(d,c,f,F,v){v===void 0&&(v=Promise);var I=new se(M(d,c,f,F),v);return n.isGeneratorFunction(c)?I:I.next().then(function(x){return x.done?x.value:I.next()})};function Ve(d,c,f){var F=L;return function(I,x){if(F===b)throw new Error("Generator is already running");if(F===o){if(I==="throw")throw x;return ol()}for(f.method=I,f.arg=x;;){var H=f.delegate;if(H){var z=le(H,f);if(z){if(z===g)continue;return z}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(F===L)throw F=o,f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);F=b;var W=$(d,c,f);if(W.type==="normal"){if(F=f.done?o:B,W.arg===g)continue;return{value:W.arg,done:f.done}}else W.type==="throw"&&(F=o,f.method="throw",f.arg=W.arg)}}}function le(d,c){var f=c.method,F=d.iterator[f];if(F===r)return c.delegate=null,f==="throw"&&d.iterator.return&&(c.method="return",c.arg=r,le(d,c),c.method==="throw")||f!=="return"&&(c.method="throw",c.arg=new TypeError("The iterator does not provide a '"+f+"' method")),g;var v=$(F,d.iterator,c.arg);if(v.type==="throw")return c.method="throw",c.arg=v.arg,c.delegate=null,g;var I=v.arg;if(!I)return c.method="throw",c.arg=new TypeError("iterator result is not an object"),c.delegate=null,g;if(I.done)c[d.resultName]=I.value,c.next=d.nextLoc,c.method!=="return"&&(c.method="next",c.arg=r);else return I;return c.delegate=null,g}Y(Q),C(Q,A,"Generator"),C(Q,m,function(){return this}),C(Q,"toString",function(){return"[object Generator]"});function te(d){var c={tryLoc:d[0]};1 in d&&(c.catchLoc=d[1]),2 in d&&(c.finallyLoc=d[2],c.afterLoc=d[3]),this.tryEntries.push(c)}function Ct(d){var c=d.completion||{};c.type="normal",delete c.arg,d.completion=c}function At(d){this.tryEntries=[{tryLoc:"root"}],d.forEach(te,this),this.reset(!0)}n.keys=function(d){var c=Object(d),f=[];for(var F in c)f.push(F);return f.reverse(),function v(){for(;f.length;){var I=f.pop();if(I in c)return v.value=I,v.done=!1,v}return v.done=!0,v}};function Ft(d){if(d||d===""){var c=d[m];if(c)return c.call(d);if(typeof d.next=="function")return d;if(!isNaN(d.length)){var f=-1,F=function v(){for(;++f<d.length;)if(a.call(d,f))return v.value=d[f],v.done=!1,v;return v.value=r,v.done=!0,v};return F.next=F}}throw new TypeError(typeof d+" is not iterable")}n.values=Ft;function ol(){return{value:r,done:!0}}return At.prototype={constructor:At,reset:function(d){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(Ct),!d)for(var c in this)c.charAt(0)==="t"&&a.call(this,c)&&!isNaN(+c.slice(1))&&(this[c]=r)},stop:function(){this.done=!0;var d=this.tryEntries[0],c=d.completion;if(c.type==="throw")throw c.arg;return this.rval},dispatchException:function(d){if(this.done)throw d;var c=this;function f(z,W){return I.type="throw",I.arg=d,c.next=z,W&&(c.method="next",c.arg=r),!!W}for(var F=this.tryEntries.length-1;F>=0;--F){var v=this.tryEntries[F],I=v.completion;if(v.tryLoc==="root")return f("end");if(v.tryLoc<=this.prev){var x=a.call(v,"catchLoc"),H=a.call(v,"finallyLoc");if(x&&H){if(this.prev<v.catchLoc)return f(v.catchLoc,!0);if(this.prev<v.finallyLoc)return f(v.finallyLoc)}else if(x){if(this.prev<v.catchLoc)return f(v.catchLoc,!0)}else if(H){if(this.prev<v.finallyLoc)return f(v.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(d,c){for(var f=this.tryEntries.length-1;f>=0;--f){var F=this.tryEntries[f];if(F.tryLoc<=this.prev&&a.call(F,"finallyLoc")&&this.prev<F.finallyLoc){var v=F;break}}v&&(d==="break"||d==="continue")&&v.tryLoc<=c&&c<=v.finallyLoc&&(v=null);var I=v?v.completion:{};return I.type=d,I.arg=c,v?(this.method="next",this.next=v.finallyLoc,g):this.complete(I)},complete:function(d,c){if(d.type==="throw")throw d.arg;return d.type==="break"||d.type==="continue"?this.next=d.arg:d.type==="return"?(this.rval=this.arg=d.arg,this.method="return",this.next="end"):d.type==="normal"&&c&&(this.next=c),g},finish:function(d){for(var c=this.tryEntries.length-1;c>=0;--c){var f=this.tryEntries[c];if(f.finallyLoc===d)return this.complete(f.completion,f.afterLoc),Ct(f),g}},catch:function(d){for(var c=this.tryEntries.length-1;c>=0;--c){var f=this.tryEntries[c];if(f.tryLoc===d){var F=f.completion;if(F.type==="throw"){var v=F.arg;Ct(f)}return v}}throw new Error("illegal catch attempt")},delegateYield:function(d,c,f){return this.delegate={iterator:Ft(d),resultName:c,nextLoc:f},this.method==="next"&&(this.arg=r),g}},n}(t.exports);try{regeneratorRuntime=e}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}})(jt);var _t=jt.exports;function Ge(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 Ur(t){if(Array.isArray(t))return Ge(t)}function Ut(t,e,n,u,a,i,r){try{var s=t[i](r),m=s.value}catch(h){n(h);return}s.done?e(m):Promise.resolve(m).then(u,a)}function Tr(t){return function(){var e=this,n=arguments;return new Promise(function(u,a){var i=t.apply(e,n);function r(m){Ut(i,u,a,r,s,"next",m)}function s(m){Ut(i,u,a,r,s,"throw",m)}r(void 0)})}}function xr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Tt(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 Hr(t,e,n){return e&&Tt(t.prototype,e),n&&Tt(t,n),t}function Wr(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function kr(){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 Je(t){return Ur(t)||Wr(t)||Kr(t)||kr()}function Kr(t,e){if(!!t){if(typeof t=="string")return Ge(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 Ge(t,e)}}var zr=function(){function t(){xr(this,t),this._events=new Map,this.debug=!1}return Hr(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 Tr(_t.mark(function s(){var m,h,A,C,M,$,L,B,b,o;return _t.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(m=r._events.get(n),h=[],!m){y.next=42;break}A=m.slice(),C=!0,M=!1,$=void 0,y.prev=5,L=A[Symbol.iterator]();case 7:if(C=(B=L.next()).done){y.next=28;break}if(b=B.value,m.includes(b)){y.next=11;break}return y.abrupt("continue",25);case 11:return y.prev=11,r.debug&&Pt.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(b.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+b.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(a.map(function(){return"%o"}).join(","),"\u3002")].concat(Je(a))),y.next=15,b.apply(null,Je(a));case 15:if(o=y.sent,r.debug&&Pt.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(b.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+b.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(Je(a),[o])),h.push(o),o!==!1){y.next=20;break}return y.abrupt("break",28);case 20:y.next=25;break;case 22:y.prev=22,y.t0=y.catch(11),Sr(String(y.t0)+":"+String(y.t0.stack));case 25:C=!0,y.next=7;break;case 28:y.next=34;break;case 30:y.prev=30,y.t1=y.catch(5),M=!0,$=y.t1;case 34:y.prev=34,y.prev=35,!C&&L.return!=null&&L.return();case 37:if(y.prev=37,!M){y.next=40;break}throw $;case 40:return y.finish(37);case 41:return y.finish(34);case 42:return y.abrupt("return",h);case 43:case"end":return y.stop()}},s,null,[[5,30,34,42],[11,22],[35,,37,41]])}))()}},{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}();const xt=[],Ht=class{constructor(t){this.registeredControlTypes=new Set,this.controlConfigMap=new Map,this._controls=[],this._type=t,this._initControls(t)}registerControlConfig(t,e){return this.controlConfigMap.set(t,e),this}getControlConfig(t){return this.controlConfigMap.get(t)}static register(t,e){const{Designer:n,Runtime:u,Property:a}=t;(!n||!u||!n.__is_control__||!u.__is_control__)&&Ke(`${t} is can't register as a Control`);const i=this.staticControls.findIndex(r=>r.Designer.controlType===n.controlType);return i>-1&&(We(`The ${n.controlType} is repeat register, So it overwrites the one that was registered before.`),this.staticControls.splice(i,1)),this.staticRegisteredTypes.add(n.controlType),this.staticControls.push(t),a.mode=e,this}getControls(){return this._controls}register(t){t.__is_control__||Ke(`${t.name} is not a Control`);const e=this._controls.findIndex(n=>n.controlType===t.controlType);return e>-1&&(We(`The ${t.controlType} is repeat register, So it overwrites the one that was registered before.`),this._controls.splice(e,1)),this.registeredControlTypes.add(t.controlType),this._controls.push(t),this}isLayoutControl(t){return t.controlType===ie.LAYOUT}isFormControl(t){return t.controlType===ie.FORM}isListControl(t){return t.controlType===ie.LIST}isColumnControl(t){return t.controlType===ie.COLUMN}createControl(t,e){if(Array.isArray(t))return t.map(u=>this.createControl(u,e));if(t.children&&(t.children=t.children.map(u=>this.createControl(u,e))),this.isListControl(t)){const u=t.props;u.headers&&(u.headers=u.headers.map(a=>this.createControl(a,e))),u.footers&&(u.footers=u.footers.map(a=>{let i;return a&&(i=this.createControl(a,e)),i}))}const n=this.getControlFormType(t.type);if(n){let u=t;if(typeof e=="function"){const i=e(u);i&&(u=i)}const a=new n(u);return this._setParentPrototypeToSchema(a,this),a}else Ke(`The constructor of ${t.type} could not be found, please confirm that the constructor has been registered`)}_setParentPrototypeToSchema(t,e){Reflect.has(t,"parent")||Object.defineProperty(t,"parent",{get(){const n=t.id,u=e._controlParentIdMap,a=e.instanceMap;if(!u||!a)return;const i=u[n],s=a[n].findIndex(A=>A==t),m=a[i]||[];let h;return m.length-1>s?h=m[0]:h=m[s],h}})}createControlInstance(t,e){const n=this.getControlFormType(t);if(n)return new n(e)}getControlFormType(t){return this._controls.find(e=>e.controlType===t)}_initControls(t){this.constructor.staticControls.forEach(e=>{this.register(e[t]),Ht.staticControlsRuntimeRules.set(e.Runtime.controlType,e.Property.RuntimeRules),e.Property.mode=t})}};let me=Ht;me.staticControlsRuntimeRules=new Map,me.staticControls=xt,me.staticRegisteredTypes=new Set(xt.map(t=>t.Designer.controlType)),me.staticRegisteredConfigs=new Map;class G{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:"",this.aliasCode=e==null?void 0:e.aliasCode}}class Xe{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 we extends Xe{constructor(e){super(e);var n,u;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 Gr{constructor(e){this.pc=new we(e==null?void 0:e.pc),this.mobile=(e==null?void 0:e.mobile)?new we(e==null?void 0:e.mobile):new we({width:130,minWidth:180})}}class Jr{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 Ie{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 Xr extends Ie{constructor(e){super(e);var n;this.primaryControlId=(n=e==null?void 0:e.primaryControlId)!=null?n:""}}class Wt{constructor(e){var n;this.fieldCode=(n=e==null?void 0:e.fieldCode)!=null?n:""}}class Zr{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 Wt(r)))!=null?i:[]}}class kt{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:q.VARCHAR}}class Kt extends Ie{constructor(e){super(e);var n,u,a,i;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 Qr{constructor(e){var n,u,a,i;this.type="sublist-page",this.formBind=new Ie(e==null?void 0:e.formBind),this.displayFields=(u=(n=e==null?void 0:e.displayFields)==null?void 0:n.map(r=>new kt(r)))!=null?u:[],this.sublists=(i=(a=e==null?void 0:e.sublists)==null?void 0:a.map(r=>new Kt(r)))!=null?i:[]}}class zt{constructor(e){this.type=e==null?void 0:e.type,this.value=e==null?void 0:e.value}}class Ze{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 ge{constructor(e){var n,u,a,i;this.type="conditions",this.id=(n=e==null?void 0:e.id)!=null?n:ne(),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 s,m;if(r.children!==void 0){const h=new ge(r);(s=this.children)==null||s.push(h)}else{const h=new Re(r);(m=this.children)==null||m.push(h)}}))}}class Re{constructor(e){var n,u,a,i,r;this.type="condition",this.id=(n=e==null?void 0:e.id)!=null?n:ne(),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 zt(e==null?void 0:e.leftVariableBo),this.rightVariableBo=new Ze(e==null?void 0:e.rightVariableBo)}}class Yr{constructor(e){var n,u;this.aliasCode=(n=e==null?void 0:e.aliasCode)!=null?n:"",this.datasourceBind=new Me(e==null?void 0:e.datasourceBind),this.relationFields=(u=e==null?void 0:e.relationFields)!=null?u:[]}}class Gt{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 Qe{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 Ye{constructor(e){var n,u;this.columnName=(n=e.columnName)!=null?n:"",this.desc=(u=e.desc)!=null?u:!1}}class Jt{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:q.ANY}}class pr{constructor(e){var n,u,a,i,r,s,m;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(h=>new Ye(h)))!=null?r:[],this.dataSet=(m=(s=e.dataSet)==null?void 0:s.map(h=>new Jt(h)))!=null?m:[]}}function pe(t){var e,n,u,a,i,r;this.filters=(n=(e=t==null?void 0:t.filters)==null?void 0:e.map(s=>s.children!==void 0?new ge(s):new Re(s)))!=null?n:[],this.viewFilters=(a=(u=t==null?void 0:t.viewFilters)==null?void 0:u.map(s=>s.children!==void 0?new ge(s):new Re(s)))!=null?a:[],this.orders=(r=(i=t==null?void 0:t.orders)==null?void 0:i.map(s=>new Ye(s)))!=null?r:[]}class Me{constructor(e){var n,u,a,i,r,s;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=[],this.isOpenViewFilters=(i=e==null?void 0:e.isOpenViewFilters)!=null?i:0,Array.isArray(e==null?void 0:e.displayBoList)&&(e==null||e.displayBoList.map(m=>{var h;(h=this.displayBoList)==null||h.push(new Qe(m))})),this.showOrder=(r=e==null?void 0:e.showOrder)!=null?r:!0,this.svcCode=(s=e==null?void 0:e.svcCode)!=null?s:"",pe.call(this,e)}}class es{constructor(e){var n,u;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.displayBoList=(u=e==null?void 0:e.displayBoList)!=null?u:[]}}class ts{constructor(e){var n,u,a,i,r,s,m,h,A,C;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=(s=e==null?void 0:e.formKey)!=null?s:void 0,this.icon=(m=e==null?void 0:e.icon)!=null?m:"iconliulan1",this.needConfirm=(h=e==null?void 0:e.needConfirm)!=null?h:!1,this.openType=(A=e==null?void 0:e.openType)!=null?A:"modal",this.priorityProcess=(C=e==null?void 0:e.priorityProcess)!=null?C:!0}}class et{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 Qe(r)))!=null?i:[]}}class Xt extends Me{constructor(e){super(e);var n,u;this.attributes=(u=(n=e==null?void 0:e.attributes)==null?void 0:n.map(a=>new et(a)))!=null?u:[]}}class ns extends Me{constructor(e){super(e);var n,u,a;this.attributes=(u=(n=e==null?void 0:e.attributes)==null?void 0:n.map(i=>new et(i)))!=null?u:[],this.formCode=(a=e==null?void 0:e.formCode)!=null?a:""}}class us extends Xt{constructor(e){super(e);var n;this.rootNode=new Ze(e==null?void 0:e.rootNode),this.filterCode=(n=e==null?void 0:e.filterCode)!=null?n:""}}class Zt{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 Gt(r)))!=null?i:[]}}class as extends Zt{constructor(e){super(e);pe.call(this,e)}}class is extends Zt{constructor(e){super(e);var n,u;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 rs{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 ss{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 tt{constructor(e){var n,u,a;this.id=(n=e==null?void 0:e.id)!=null?n:ne(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 tt{constructor(e){super(e);var n,u;this.image=(n=e==null?void 0:e.image)!=null?n:"",this.type=(u=e==null?void 0:e.type)!=null?u:"src"}}function ls(t){var e;return(e=t==null?void 0:t.map(n=>new tt(n)))!=null?e:[]}function os(t){var e;return(e=t==null?void 0:t.map(n=>new Qt(n)))!=null?e:[]}class Le{}class cs extends Le{constructor(e){super();this.amount=new G(e==null?void 0:e.amount),this.currency=new G(e==null?void 0:e.currency)}}class ds{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:nt.CNY}}class fs extends Le{constructor(e){super();this.min=new G(e==null?void 0:e.min),this.max=new G(e==null?void 0:e.max)}}class hs{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 ms{constructor(e){var n,u,a,i,r,s;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=(s=e==null?void 0:e.provinceDisplay)!=null?s:""}}class gs extends Le{constructor(e){super();this.result=new G(e==null?void 0:e.result),this.unit=new G(e==null?void 0:e.unit)}}class ys{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 nt=(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))(nt||{}),Yt=(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.VIEW_FORM_MODEL_TYPE="viewFormModelType",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))(Yt||{}),ut=(t=>(t[t.UNKNOWN=0]="UNKNOWN",t[t.READONLY=1]="READONLY",t[t.EDITABLE=2]="EDITABLE",t[t.PRINT=5]="PRINT",t))(ut||{});class vs{constructor(e){var n,u,a,i,r,s;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=(s=e==null?void 0:e.priorityProcess)!=null?s:!1}}class Es{constructor(e){var n,u,a,i;this.id=(n=e==null?void 0:e.id)!=null?n:ne(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 Wt(r)))!=null?i:[],pe.call(this,e)}}class Bs{constructor(e){var n,u;this.key=(n=e.key)!=null?n:ne(8),this.caption=(u=e.caption)!=null?u:""}}class pt{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 Cs{constructor(e){var n,u;this.optCode=(n=e==null?void 0:e.optCode)!=null?n:"",this.optType=(u=e==null?void 0:e.optType)!=null?u:""}}class $e{constructor(e){this.isHide={type:"boolean"}}}class at extends Array{constructor(e){super()}}class Z{constructor(e,n=""){var u,a;this.isHide=(u=e==null?void 0:e.isHide)!=null?u:!1,this.style=new pt(e==null?void 0:e.style),this.caption=(a=e==null?void 0:e.caption)!=null?a:n}}Z.Rules=$e,Z.RuntimeRules=at;function J(){return J=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},J.apply(this,arguments)}function As(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function it(t){return it=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},it(t)}function Pe(t,e){return Pe=Object.setPrototypeOf||function(u,a){return u.__proto__=a,u},Pe(t,e)}function Fs(){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 Oe(t,e,n){return Fs()?Oe=Reflect.construct:Oe=function(a,i,r){var s=[null];s.push.apply(s,i);var m=Function.bind.apply(a,s),h=new m;return r&&Pe(h,r.prototype),h},Oe.apply(null,arguments)}function Ds(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function rt(t){var e=typeof Map=="function"?new Map:void 0;return rt=function(u){if(u===null||!Ds(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 Oe(u,arguments,it(this).constructor)}return a.prototype=Object.create(u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Pe(a,u)},rt(t)}var bs=/%[sdj%]/g,en=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(en=function(e,n){typeof console!="undefined"&&console.warn&&n.every(function(u){return typeof u=="string"})&&console.warn(e,n)});function st(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 K(){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(bs,function(s){if(s==="%%")return"%";if(u>=i)return s;switch(s){case"%s":return String(e[u++]);case"%d":return Number(e[u++]);case"%j":try{return JSON.stringify(e[u++])}catch(m){return"[Circular]"}break;default:return s}});return r}return a}function Ss(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function O(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||Ss(e)&&typeof t=="string"&&!t)}function ws(t,e,n){var u=[],a=0,i=t.length;function r(s){u.push.apply(u,s),a++,a===i&&n(u)}t.forEach(function(s){e(s,r)})}function tn(t,e,n){var u=0,a=t.length;function i(r){if(r&&r.length){n(r);return}var s=u;u=u+1,s<a?e(t[s],i):n([])}i([])}function Is(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,t[n])}),e}var nn=function(t){As(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}(rt(Error));function Rs(t,e,n,u){if(e.first){var a=new Promise(function(C,M){var $=function(b){return u(b),b.length?M(new nn(b,st(b))):C()},L=Is(t);tn(L,n,$)});return a.catch(function(C){return C}),a}var i=e.firstFields||[];i===!0&&(i=Object.keys(t));var r=Object.keys(t),s=r.length,m=0,h=[],A=new Promise(function(C,M){var $=function(B){if(h.push.apply(h,B),m++,m===s)return u(h),h.length?M(new nn(h,st(h))):C()};r.length||(u(h),C()),r.forEach(function(L){var B=t[L];i.indexOf(L)!==-1?tn(B,n,$):ws(B,n,$)})});return A.catch(function(C){return C}),A}function un(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 an(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]=J(J({},t[n]),u):t[n]=u}}return t}function rn(t,e,n,u,a,i){t.required&&(!n.hasOwnProperty(t.field)||O(e,i||t.type))&&u.push(K(a.messages.required,t.fullField))}function Ms(t,e,n,u,a){(/^\s+$/.test(e)||e==="")&&u.push(K(a.messages.whitespace,t.fullField))}var lt={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},ye={integer:function(e){return ye.number(e)&&parseInt(e,10)===e},float:function(e){return ye.number(e)&&!ye.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"&&!ye.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&!!e.match(lt.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(lt.url)},hex:function(e){return typeof e=="string"&&!!e.match(lt.hex)}};function Ls(t,e,n,u,a){if(t.required&&e===void 0){rn(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?ye[r](e)||u.push(K(a.messages.types[r],t.fullField,t.type)):r&&typeof e!==t.type&&u.push(K(a.messages.types[r],t.fullField,t.type))}function $s(t,e,n,u,a){var i=typeof t.len=="number",r=typeof t.min=="number",s=typeof t.max=="number",m=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,h=e,A=null,C=typeof e=="number",M=typeof e=="string",$=Array.isArray(e);if(C?A="number":M?A="string":$&&(A="array"),!A)return!1;$&&(h=e.length),M&&(h=e.replace(m,"_").length),i?h!==t.len&&u.push(K(a.messages[A].len,t.fullField,t.len)):r&&!s&&h<t.min?u.push(K(a.messages[A].min,t.fullField,t.min)):s&&!r&&h>t.max?u.push(K(a.messages[A].max,t.fullField,t.max)):r&&s&&(h<t.min||h>t.max)&&u.push(K(a.messages[A].range,t.fullField,t.min,t.max))}var re="enum";function Ps(t,e,n,u,a){t[re]=Array.isArray(t[re])?t[re]:[],t[re].indexOf(e)===-1&&u.push(K(a.messages[re],t.fullField,t[re].join(", ")))}function Os(t,e,n,u,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||u.push(K(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(K(a.messages.pattern.mismatch,t.fullField,e,t.pattern))}}}var D={required:rn,whitespace:Ms,type:Ls,range:$s,enum:Ps,pattern:Os};function qs(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(O(e,"string")&&!t.required)return n();D.required(t,e,u,i,a,"string"),O(e,"string")||(D.type(t,e,u,i,a),D.range(t,e,u,i,a),D.pattern(t,e,u,i,a),t.whitespace===!0&&D.whitespace(t,e,u,i,a))}n(i)}function Vs(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(O(e)&&!t.required)return n();D.required(t,e,u,i,a),e!==void 0&&D.type(t,e,u,i,a)}n(i)}function Ns(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(e===""&&(e=void 0),O(e)&&!t.required)return n();D.required(t,e,u,i,a),e!==void 0&&(D.type(t,e,u,i,a),D.range(t,e,u,i,a))}n(i)}function js(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(O(e)&&!t.required)return n();D.required(t,e,u,i,a),e!==void 0&&D.type(t,e,u,i,a)}n(i)}function _s(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(O(e)&&!t.required)return n();D.required(t,e,u,i,a),O(e)||D.type(t,e,u,i,a)}n(i)}function Us(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(O(e)&&!t.required)return n();D.required(t,e,u,i,a),e!==void 0&&(D.type(t,e,u,i,a),D.range(t,e,u,i,a))}n(i)}function Ts(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(O(e)&&!t.required)return n();D.required(t,e,u,i,a),e!==void 0&&(D.type(t,e,u,i,a),D.range(t,e,u,i,a))}n(i)}function xs(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();D.required(t,e,u,i,a,"array"),e!=null&&(D.type(t,e,u,i,a),D.range(t,e,u,i,a))}n(i)}function Hs(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(O(e)&&!t.required)return n();D.required(t,e,u,i,a),e!==void 0&&D.type(t,e,u,i,a)}n(i)}var Ws="enum";function ks(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(O(e)&&!t.required)return n();D.required(t,e,u,i,a),e!==void 0&&D[Ws](t,e,u,i,a)}n(i)}function Ks(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(O(e,"string")&&!t.required)return n();D.required(t,e,u,i,a),O(e,"string")||D.pattern(t,e,u,i,a)}n(i)}function zs(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(O(e,"date")&&!t.required)return n();if(D.required(t,e,u,i,a),!O(e,"date")){var s;e instanceof Date?s=e:s=new Date(e),D.type(t,s,u,i,a),s&&D.range(t,s.getTime(),u,i,a)}}n(i)}function Gs(t,e,n,u,a){var i=[],r=Array.isArray(e)?"array":typeof e;D.required(t,e,u,i,a,r),n(i)}function ot(t,e,n,u,a){var i=t.type,r=[],s=t.required||!t.required&&u.hasOwnProperty(t.field);if(s){if(O(e,i)&&!t.required)return n();D.required(t,e,u,r,a,i),O(e,i)||D.type(t,e,u,r,a)}n(r)}function Js(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(O(e)&&!t.required)return n();D.required(t,e,u,i,a)}n(i)}var ve={string:qs,method:Vs,number:Ns,boolean:js,regexp:_s,integer:Us,float:Ts,array:xs,object:Hs,enum:ks,pattern:Ks,date:zs,url:ot,hex:ot,email:ot,required:Gs,any:Js};function ct(){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 dt=ct();function p(t){this.rules=null,this._messages=dt,this.define(t)}p.prototype={messages:function(e){return e&&(this._messages=an(ct(),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,s=u;if(typeof r=="function"&&(s=r,r={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(),Promise.resolve();function m(B){var b,o=[],g={};function y(R){if(Array.isArray(R)){var S;o=(S=o).concat.apply(S,R)}else o.push(R)}for(b=0;b<B.length;b++)y(B[b]);o.length?g=st(o):(o=null,g=null),s(o,g)}if(r.messages){var h=this.messages();h===dt&&(h=ct()),an(h,r.messages),r.messages=h}else r.messages=this.messages();var A,C,M={},$=r.keys||Object.keys(this.rules);$.forEach(function(B){A=a.rules[B],C=i[B],A.forEach(function(b){var o=b;typeof o.transform=="function"&&(i===e&&(i=J({},i)),C=i[B]=o.transform(C)),typeof o=="function"?o={validator:o}:o=J({},o),o.validator=a.getValidationMethod(o),o.field=B,o.fullField=o.fullField||B,o.type=a.getType(o),!!o.validator&&(M[B]=M[B]||[],M[B].push({rule:o,value:C,source:i,field:B}))})});var L={};return Rs(M,r,function(B,b){var o=B.rule,g=(o.type==="object"||o.type==="array")&&(typeof o.fields=="object"||typeof o.defaultField=="object");g=g&&(o.required||!o.required&&B.value),o.field=B.field;function y(T,w){return J(J({},w),{},{fullField:o.fullField+"."+T})}function R(T){T===void 0&&(T=[]);var w=T;if(Array.isArray(w)||(w=[w]),!r.suppressWarning&&w.length&&p.warning("async-validator:",w),w.length&&o.message!==void 0&&(w=[].concat(o.message)),w=w.map(un(o)),r.first&&w.length)return L[o.field]=1,b(w);if(!g)b(w);else{if(o.required&&!B.value)return o.message!==void 0?w=[].concat(o.message).map(un(o)):r.error&&(w=[r.error(o,K(r.messages.required,o.field))]),b(w);var _={};if(o.defaultField)for(var Q in B.value)B.value.hasOwnProperty(Q)&&(_[Q]=o.defaultField);_=J(J({},_),B.rule.fields);for(var Y in _)if(_.hasOwnProperty(Y)){var se=Array.isArray(_[Y])?_[Y]:[_[Y]];_[Y]=se.map(y.bind(null,Y))}var Ve=new p(_);Ve.messages(r.messages),B.rule.options&&(B.rule.options.messages=r.messages,B.rule.options.error=r.error),Ve.validate(B.value,B.rule.options||r,function(le){var te=[];w&&w.length&&te.push.apply(te,w),le&&le.length&&te.push.apply(te,le),b(te.length?te:null)})}}var S;o.asyncValidator?S=o.asyncValidator(o,B.value,R,B.source,r):o.validator&&(S=o.validator(o,B.value,R,B.source,r),S===!0?R():S===!1?R(o.message||o.field+" fails"):S instanceof Array?R(S):S instanceof Error&&R(S.message)),S&&S.then&&S.then(function(){return R()},function(T){return R(T)})},function(B){m(B)})},getType:function(e){if(e.type===void 0&&e.pattern instanceof RegExp&&(e.type="pattern"),typeof e.validator!="function"&&e.type&&!ve.hasOwnProperty(e.type))throw new Error(K("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"?ve.required:ve[this.getType(e)]||!1}},p.register=function(e,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");ve[e]=n},p.warning=en,p.messages=dt,p.validators=ve;const Xs={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 sn(t,e={}){const n=new p(t);return n.messages(Object.assign(Xs,e)),n}const ln=new zr;class U{constructor(e){var A,C,M,$;this.setting=[],this.eventKeys=[],this.customEvents=[],this.parent=null,this.updateSetting=cn,this.removeSetting=on,this._callControlHooks("preInstance",e);const{controlName:n,controlIcon:u,controlType:a,controlFieldType:i,controlEventKeys:r,controlCustomEvents:s,name:m,setting:h}=new.target;n&&u&&a||Ot(`The ${m} controlName,controlIcon,controlType is not define`),this.id=(A=e==null?void 0:e.id)!=null?A:ne(10),this.name=n,this.icon=u,this.type=(C=e==null?void 0:e.type)!=null?C:a,this.props=new Z(e==null?void 0:e.props,new.target.controlName),this.controlType=(M=e==null?void 0:e.controlType)!=null?M:"base",this.setting=ue(h),this.fieldType=($=e==null?void 0:e.fieldType)!=null?$:i,this.eventKeys=ue(r),this.customEvents=ue(s),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 ln.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),Pr(this.props,e,n),this.postUpdate(e,n)}preValidate(){return De(this,null,function*(){const e=oe({},this.rules),n=yield this._callControlHooks("preValidate",e),u=n[n.length-1];return u===!1?void 0:u})}validate(e,n){return De(this,null,function*(){const u=yield this.preValidate(),a=u!==void 0?u:oe({},this.rules);Array.isArray(n)&&n.forEach(r=>{a.hasOwnProperty(r)&&delete a[r]});const i=sn(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:s,caption:m,required:h,maxLength:A,options:C,encrypted:M,encryptedMode:$}=this.props;if(!n&&!i&&!r)return;const L={parentId:e,fieldType:n,controlId:u,caption:m,type:a,props:{}};switch(i&&(L.dataBind=i),s){case"datasource":case void 0:r&&(L.datasourceBind=r);break;case"custom":L.props.options=C;break}return h!==void 0&&(L.required=h),A!==void 0&&(L.maxLength=A),M!==void 0&&(L.encrypted=M),$!==void 0&&(L.encryptedMode=$),L}preToSchema(){this._callControlHooks("preToSchema",this)}toSchema(){return this.preToSchema(),{id:this.id,type:this.type,props:ue(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)}}U.controlName="\u63A7\u4EF6",U.controlIcon="icon",U.controlType="control",U.controlEventKeys=[],U.controlCustomEvents=[],U.setting=[],U.__is_control__=!0,U.removeSettingItem=on,U.updateSettingItem=cn;function on(t){(Array.isArray(t)?t:[t]).forEach(n=>{var i,r;const u=typeof n!="string",a=this.setting.findIndex(s=>s.key===(u?n.key:n));a!==-1&&(u?this.setting[a].showItems=(i=this.setting[a].showItems)==null?void 0:i.filter(s=>!n.hideItems.includes(s)):this.setting.splice(a,1),u&&!((r=this.setting[a].showItems)==null?void 0:r.length)&&this.setting.splice(a,1))})}function cn(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 ee{constructor(e){var r,s,m,h,A;this.customEvents=[],this.parent=null;const{controlType:n,controlFieldType:u,name:a,controlCustomEvents:i}=new.target;n||Ot(`The ${a} controlType is not define`),this.id=(r=e==null?void 0:e.id)!=null?r:ne(10),this.type=(s=e==null?void 0:e.type)!=null?s:n,this.props=new Z(e==null?void 0:e.props),this.customEvents=i,this.controlType=(m=e==null?void 0:e.controlType)!=null?m:"base",this.fieldType=(h=e==null?void 0:e.fieldType)!=null?h:u,this.pageStatus=(A=e==null?void 0:e.pageStatus)!=null?A:ut.UNKNOWN}get rules(){const e=this.props.constructor.RuntimeRules;if(e){const n=new e(this.props);return Array.from(n)}return[]}}ee.controlType="control",ee.__is_control__=!0,ee.controlCustomEvents=[];function ft(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:E.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{label:{type:"string",required:!0,message:E.getMessage("pleaseEnterLabel")},value:{type:"string",required:!0,message:E.getMessage("pleaseEnterValue")}}}},{type:"array",validator(e,n,u){n.length===0&&u(E.getMessage("optionIsRequired")),u()}},{type:"array",validator(e,n,u){const a=n.map(r=>r.value),i=_r(a);a.length!==i.length?u(E.getMessage("optionIdIsRepeat")):u()},message:E.getMessage("optionIdIsRepeat")}]:t.hasOwnProperty("datasourceBind")&&(!t.hasOwnProperty("optionConfig")||t.hasOwnProperty("optionConfig")&&t.optionConfig==="datasource")&&(this.datasourceBind=[{type:"object",message:E.getMessage("isNotObject")},{type:"object",fields:{dataCode:{type:"string",required:!0,message:E.getMessage("pleaseEnterDataCode")},valueFieldCode:{type:"string",required:!0,message:E.getMessage("pleaseEnterValueFieldCode")},svcCode:{type:"string",required:!0,message:E.getMessage("pleaseEnterSvcCode")},displayBoList:[{type:"array",message:E.getMessage("isNotArray")},{type:"array",validator(e,n,u){n.length===0&&u(E.getMessage("pleaseBindAtLeastOneDisplayValue")),u()},message:E.getMessage("pleaseBindAtLeastOneDisplayValue")}],orders:[{type:"array",message:E.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{columnName:{type:"string",required:!0,message:E.getMessage("pleaseEnterFieldCode")},desc:{type:"boolean",message:E.getMessage("isNotBoolean")}}}}]}}])}function Zs(t,e,n=!1){this.datasourceBind=[{type:"object",message:E.getMessage("isNotObject")},{type:"object",fields:{dataCode:{type:"string",required:!0,message:E.getMessage(n?"pleaseEnterDataCodeInDataSetting":"pleaseEnterDataCode")},valueFieldCode:{type:"string",required:!0,message:E.getMessage(n?"pleaseEnterValueFieldCodeInDataSetting":"pleaseEnterValueFieldCode")},svcCode:{type:"string",required:!0,message:E.getMessage(n?"pleaseEnterSvcCodeInDataSetting":"pleaseEnterSvcCode")},attributes:[{type:"array",message:E.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{name:{type:"string",required:!0,message:E.getMessage("isNotString")},key:{type:"string",required:!0,message:E.getMessage("isNotString")},value:[{type:"array",message:E.getMessage("isNotArray")},{type:"array",validator(u,a,i){a.length===0&&i(E.getMessage(n?"pleaseBindAtLeastOneDisplayValueInDataSetting":"pleaseBindAtLeastOneDisplayValue")),i()},message:E.getMessage(n?"pleaseBindAtLeastOneDisplayValueInDataSetting":"pleaseBindAtLeastOneDisplayValue")}]}}}],orders:[{type:"array",message:E.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{columnName:{type:"string",required:!0,message:E.getMessage("pleaseEnterFieldCode")},desc:{type:"boolean",message:E.getMessage("isNotBoolean")}}}}]}}]}function dn(t){return t.dataCode!==void 0&&t.fieldCode!==void 0}class ht extends $e{constructor(e){super(e);this.dataBind={},this.caption={type:"string",required:!0,message:E.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:E.getMessage("pleaseEnterCaptionTip")};const n={fieldCode:{type:"string",required:!0,message:E.getMessage("pleaseEnterFieldCode")},dataCode:{type:"string",required:!0,message:E.getMessage("pleaseEnterFieldCode")}};if(dn(e.dataBind))this.dataBind={type:"object",required:!0,fields:ue(n),message:E.getMessage("pleaseEnterFieldCode")};else{let u={type:"object",required:!0,fields:{},message:E.getMessage("pleaseEnterFieldCode")};Object.keys(e.dataBind).forEach(a=>{u.fields[a]={type:"object",required:!0,fields:ue(n),message:E.getMessage("pleaseEnterFieldCode")}}),this.dataBind=u}e.isShowCaptionTip&&(this.captionTip.required=!0)}}class fn extends at{constructor(e){super(e);const n=e.isHide?!1:e.required;n&&this.push({type:"string",required:n,message:e.requiredMessage!==""?e.requiredMessage:E.getMessage("runtimeRequired",{caption:e.caption})})}}class Ee extends Z{constructor(e){super(e);var n,u,a,i,r,s,m,h,A,C;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=(s=e==null?void 0:e.labelPosition)!=null?s:"top",this.placeholder=(m=e==null?void 0:e.placeholder)!=null?m:"",this.required=(h=e==null?void 0:e.required)!=null?h:!1,this.requiredMessage=(A=e==null?void 0:e.requiredMessage)!=null?A:"",this.dataBind=new G(e==null?void 0:e.dataBind),this.defaultValue=(C=e==null?void 0:e.defaultValue)!=null?C:""}}Ee.Rules=ht,Ee.RuntimeRules=fn;class Qs extends ht{constructor(e){super(e);this.optionConfig={type:"enum",enum:["custom","datasource"],message:E.getMessage("PleaseSelectTheCorrectOptionSettings")},this.options=[{type:"array",message:E.getMessage("isNotArray")}],this.datasourceBind=[{type:"object",message:E.getMessage("isNotObject")}],ft.call(this,e)}}class hn extends U{constructor(e){super(e);this.controlType="form",this.props=new Ee(e==null?void 0:e.props)}}hn.controlEventKeys=["on_change","on_focus","on_blur"];class Ys extends ee{constructor(e){super(e);this.controlType="form",this.props=new Ee(e==null?void 0:e.props)}}class Be extends Z{constructor(e){super(e)}}function mn(t,e){var n;((n=Object.getOwnPropertyDescriptors(t)[e])==null?void 0:n.enumerable)&&Object.defineProperty(t,e,{enumerable:!1})}function mt(t,e,n){n==="Designer"&&(t.parent=e,mn(t,"parent"))}function gn(t,e,n){t.forEach(u=>{mt(u,e,n)})}const yn=Symbol("targetKey");function vn(t){var e;return(e=t[yn])!=null?e:t}function En(t,e,n){return gn(t,e,n),new Proxy(t,{get(u,a,...i){return a===yn?u:Reflect.get(u,a,...i)},set(u,a,i,...r){if(jr(t)&&a==="length"&&i===t.length)return!0;const s=Reflect.set(u,a,i,...r);return Nr(i)&&mt(i,e,n),s}})}function Ce(t,e,n,u,a){const i=u!=null?u:t;let r=En(vn(n!=null?n:[]),i,a);Object.defineProperty(t,e,{get(){return r},set(s){r=En(vn(s),i,a)},enumerable:!0})}const ps=1e4;class Ae extends U{constructor(e){super(e);this.controlType="layout";const{excludes:n,childrenMaxLength:u}=new.target;this.props=new Be(e==null?void 0:e.props),Ce(this,"children",e==null?void 0:e.children,void 0,"Designer"),this.excludes=ue(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){var u=a=>super[a];return De(this,null,function*(){return yield u("validate").call(this,e,n),yield Promise.all(this.children.map(i=>i.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 s=r.filter(m=>!!m);return[...a,...s]}return r&&a.push(r),a},u)}toSchema(){const e=super.toSchema(),n=this.children.map(u=>u.toSchema());return Ne(oe({},e),{children:n})}}Ae.excludes=!1,Ae.childrenMaxLength=ps;class gt extends ee{constructor(e){super(e);this.controlType="layout",this.props=new Be(e==null?void 0:e.props),Ce(this,"children",e==null?void 0:e.children,void 0,"Runtime")}}class yt extends Z{constructor(e,n,u){super(n);Ce(this,"headers",n==null?void 0:n.headers,e,u)}}class Bn extends U{constructor(e){super(e);this.controlType="list",this.props=new yt(this,e==null?void 0:e.props,"Designer")}validate(e,n){var u=a=>super[a];return De(this,null,function*(){return yield u("validate").call(this,e),yield Promise.all(this.props.headers.map(i=>i.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 s=r.filter(m=>!!m);return[...a,...s]}return r&&a.push(r),a},n)}toSchema(){var a,i;const e=super.toSchema(),n=this.props.headers.map(r=>r.toSchema()),u=(i=(a=this.props)==null?void 0:a.footers)==null?void 0:i.map(r=>{if(r)return r.toSchema()});return Ne(oe({},e),{props:Ne(oe({},this.props),{headers:n,footers:u})})}}Bn.controlFieldType=q.LIST;class el extends ee{constructor(e){super(e);this.controlType="list",this.props=new yt(this,e==null?void 0:e.props,"Runtime"),Ce(this,"children",e==null?void 0:e.children,void 0,"Runtime")}get length(){return this.children.length}}class vt extends $e{constructor(e){super(e);this.caption={type:"string",required:!0,message:E.getMessage("pleaseEnterCaption")},this.width={type:"number",required:!1,message:E.getMessage("pleaseEnterColumnWidth")},this.width.required=e.widthType==="px"}}class qe extends Z{constructor(e){super(e);var n,u,a,i,r;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 Xe(e==null?void 0:e.autoWidth),this.dataBind=new G(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}}qe.Rules=vt;class tl extends vt{constructor(e){super(e);this.optionConfig={type:"enum",enum:["custom","datasource","none"],message:E.getMessage("PleaseSelectTheCorrectOptionSettings")},this.options=[{type:"array",message:E.getMessage("isNotArray")}],this.datasourceBind=[{type:"object",message:E.getMessage("isNotObject")}],ft.call(this,e)}}class nl extends U{constructor(e){super(e);this.controlType="column",this.props=new qe(e==null?void 0:e.props)}}class ul extends ee{constructor(e){super(e);this.controlType="column",this.props=new qe(e==null?void 0:e.props)}}class Et extends Be{constructor(e){super(e);this.dataBind=new G(e==null?void 0:e.dataBind)}}class al extends Ae{constructor(e){super(e);this.controlType="search",this.props=new Et(e==null?void 0:e.props)}}class il extends gt{constructor(e){super(e);this.controlType="search",this.props=new Et(e==null?void 0:e.props)}}class Bt extends Be{constructor(e){super(e)}}class rl extends Ae{constructor(e){super(e);this.controlType="wrap",this.props=new Bt(e==null?void 0:e.props)}}class sl extends gt{constructor(e){super(e);this.controlType="wrap",this.props=new Bt(e==null?void 0:e.props)}}function ll(t){t.hasOwnProperty("linkOperationOption")&&t.hasOwnProperty("showLinkOperation")&&t.showLinkOperation&&(this.linkOperationOption=[{type:"object",fields:{formKey:{type:"string",required:!0,message:E.getMessage("pleaseEnterForm")}}}])}l.AMOUNT_TYPE=nt,l.AddressValue=ms,l.AmountDataBind=cs,l.AmountValue=ds,l.AutoWidth=Xe,l.BaseControlProperty=Ee,l.BaseControlPropertyRules=ht,l.BaseControlPropertyRuntimeRules=fn,l.BaseStyle=pt,l.COMMON_SETTING_TYPE=Yt,l.CalcDataBind=gs,l.CalcValue=ys,l.ColumnControlProperty=qe,l.ColumnControlPropertyRules=vt,l.ColumnOptionAndDataSourcePropertyRules=tl,l.CustomAttributeItem=et,l.CustomPermissionItem=Bs,l.DataBind=G,l.DataSourceBind=Me,l.DataSourceDataSetValue=Jt,l.DataSourceOrderItem=Ye,l.DataSourceParamItem=pr,l.DataStorageDoc=Jr,l.DesignerColumnControl=nl,l.DesignerControl=U,l.DesignerFormControl=hn,l.DesignerLayoutControl=Ae,l.DesignerListControl=Bn,l.DesignerSearchControl=al,l.DesignerWrapControl=rl,l.DisplayBoListItem=Qe,l.FieldBindItem=kt,l.FieldFilterCondition=Re,l.FieldFilterConditions=ge,l.FillBackBind=is,l.FillPayloadBind=as,l.FormBind=Ie,l.FormSelectBind=Xr,l.ImageOptionSetting=Qt,l.JoinRelation=Yr,l.Language=rs,l.LayoutControlProperty=Be,l.LeftVariable=zt,l.LinkOperationOption=ts,l.ListBind=Zr,l.ListControlProperty=yt,l.MetaAutoWidth=Gr,l.MetaWidth=we,l.MultistageFillingItem=Gt,l.ObjectDataBind=Le,l.OperationItem=vs,l.OptObject=Cs,l.OptionAndDataSourcePropertyRules=Qs,l.OptionSetting=tt,l.OrganizationDataSourceBind=ns,l.PAGE_STATUS=ut,l.Property=Z,l.PropertyRules=$e,l.PropertyRuntimeRules=at,l.RangeDataBind=fs,l.RangeDateValue=hs,l.RegisterControls=me,l.RegularRules=ss,l.RightVariable=Ze,l.RuntimeColumnControl=ul,l.RuntimeControl=ee,l.RuntimeFormControl=Ys,l.RuntimeLayoutControl=gt,l.RuntimeListControl=el,l.RuntimeSearchControl=il,l.RuntimeWrapControl=sl,l.SearchControlProperty=Et,l.SelectedContentConfig=es,l.SubListItem=Kt,l.SubListPageConfig=Qr,l.SuperDataSourceBind=Xt,l.TreeDataSourceBind=us,l.ViewOperationItem=Es,l.WrapControlProperty=Bt,l.controlHooksEmitter=ln,l.createValidator=sn,l.defineArrayParent=gn,l.defineControlArrayToProperty=Ce,l.defineParent=mt,l.initImageOptions=os,l.initLinkOperationRules=ll,l.initOptionAndDataSourceRules=ft,l.initOptions=ls,l.initSuperDataSourceRules=Zs,l.isDataBind=dn,l.setPropertyDontEnum=mn,Object.defineProperty(l,"__esModule",{value:!0})});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { RuleItem } from '../Validator';
|
|
2
2
|
import { BaseStyle } from '../../framework';
|
|
3
|
+
import { MODE } from 'type';
|
|
3
4
|
declare class PropertyRules {
|
|
4
5
|
[field: string]: RuleItem | RuleItem[];
|
|
5
6
|
isHide: RuleItem;
|
|
@@ -10,6 +11,7 @@ declare class PropertyRuntimeRules extends Array<RuleItem> {
|
|
|
10
11
|
constructor(props: Property);
|
|
11
12
|
}
|
|
12
13
|
declare class Property {
|
|
14
|
+
static mode: MODE;
|
|
13
15
|
static readonly Rules: typeof PropertyRules;
|
|
14
16
|
static readonly RuntimeRules: typeof PropertyRuntimeRules;
|
|
15
17
|
isHide: boolean;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { MODE } from '../type';
|
|
1
2
|
export declare function setPropertyDontEnum<T extends object>(obj: T, property: string): void;
|
|
2
3
|
export declare function defineParent<T extends object>(control: T & {
|
|
3
4
|
parent: any;
|
|
4
|
-
}, parent: T | null): void;
|
|
5
|
+
}, parent: T | null, mode?: MODE): void;
|
|
5
6
|
export declare function defineArrayParent<T extends object & {
|
|
6
7
|
parent: any;
|
|
7
|
-
}>(controls: T[], parent: T | null): void;
|
|
8
|
-
export declare function defineControlArrayToProperty<T>(obj: object, property: string, initialValue?: T[], parent?: object): void;
|
|
8
|
+
}>(controls: T[], parent: T | null, mode?: MODE): void;
|
|
9
|
+
export declare function defineControlArrayToProperty<T>(obj: object, property: string, initialValue?: T[], parent?: object, mode?: MODE): void;
|
|
@@ -7,7 +7,7 @@ declare class ListControlProperty<Mode extends MODE | 'Schema', Control extends
|
|
|
7
7
|
footers?: Control[];
|
|
8
8
|
constructor(parent: DesignerListControl | RuntimeListControl, props?: Partial<ListControlProperty<Mode> & {
|
|
9
9
|
headers: Control[];
|
|
10
|
-
}
|
|
10
|
+
}>, mode?: MODE);
|
|
11
11
|
}
|
|
12
12
|
export default ListControlProperty;
|
|
13
13
|
export { ListControlProperty };
|
|
@@ -15,7 +15,7 @@ export declare class RegisterControls<Mode extends MODE> {
|
|
|
15
15
|
constructor(type: Mode);
|
|
16
16
|
registerControlConfig(type: string, config: Record<string, unknown>): this;
|
|
17
17
|
getControlConfig(type: string): Readonly<Record<string, unknown>> | undefined;
|
|
18
|
-
static register(control: ControlExport): typeof RegisterControls;
|
|
18
|
+
static register(control: ControlExport, mode: MODE): typeof RegisterControls;
|
|
19
19
|
getControls(): ControlsConstructor<ControlsKeys, Mode>[];
|
|
20
20
|
register(control: ControlsConstructor<ControlsKeys, Mode>): this;
|
|
21
21
|
isLayoutControl(schema: Schema<any>): schema is LayoutControlSchema<any>;
|
|
@@ -28,6 +28,7 @@ export declare class RegisterControls<Mode extends MODE> {
|
|
|
28
28
|
createControl<T extends ControlsKeys>(schema: Schema<T> & {
|
|
29
29
|
type: T;
|
|
30
30
|
}, beforeCreateInstance?: BeforeCreateInstance): ControlsInstance<T, Mode>;
|
|
31
|
+
private _setParentPrototypeToSchema;
|
|
31
32
|
createControlInstance<T extends ControlsKeys>(type: T, initSchema?: DeepPartial<Schema<T>>): ControlsInstance<T, Mode> | undefined;
|
|
32
33
|
getControlFormType<T extends ControlsKeys>(type: T): ControlsConstructor<T, Mode> | undefined;
|
|
33
34
|
private _initControls;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/model-driven-core",
|
|
3
|
-
"version": "2.6.0-alpha.
|
|
3
|
+
"version": "2.6.0-alpha.17c",
|
|
4
4
|
"description": "model engine core",
|
|
5
5
|
"author": "郝晨光 <2293885211@qq.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"async-validator": "3.5.1",
|
|
31
31
|
"tslib": "^2.1.0"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "628fadd6e9e790f3df3122c8d62f234764774e8c"
|
|
34
34
|
}
|