@byteluck-fe/model-driven-engine 1.3.0-beta.25 → 1.5.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,2 +1,2 @@
1
- var Zc=Object.defineProperty,Yc=Object.defineProperties;var el=Object.getOwnPropertyDescriptors;var lr=Object.getOwnPropertySymbols,tl=Object.getPrototypeOf,nl=Object.prototype.hasOwnProperty,rl=Object.prototype.propertyIsEnumerable,il=Reflect.get;var fr=(D,$,P)=>$ in D?Zc(D,$,{enumerable:!0,configurable:!0,writable:!0,value:P}):D[$]=P,x=(D,$)=>{for(var P in $||($={}))nl.call($,P)&&fr(D,P,$[P]);if(lr)for(var P of lr($))rl.call($,P)&&fr(D,P,$[P]);return D},an=(D,$)=>Yc(D,el($));var dr=(D,$,P)=>il(tl(D),P,$);var ae=(D,$,P)=>new Promise((Y,qe)=>{var lt=oe=>{try{we(P.next(oe))}catch(Se){qe(Se)}},ft=oe=>{try{we(P.throw(oe))}catch(Se){qe(Se)}},we=oe=>oe.done?Y(oe.value):Promise.resolve(oe.value).then(lt,ft);we((P=P.apply(D,$)).next())});(function(D,$){typeof exports=="object"&&typeof module!="undefined"?$(exports):typeof define=="function"&&define.amd?define(["exports"],$):(D=typeof globalThis!="undefined"?globalThis:D||self,$(D.modelDrivenEngine={}))})(this,function(D){"use strict";var $=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},P={exports:{}};(function(t){var e=function(n){var r=Object.prototype,u=r.hasOwnProperty,a,o=typeof Symbol=="function"?Symbol:{},s=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(g,h,E){return Object.defineProperty(g,h,{value:E,enumerable:!0,configurable:!0,writable:!0}),g[h]}try{d({},"")}catch(g){d=function(h,E,S){return h[E]=S}}function p(g,h,E,S){var B=h&&h.prototype instanceof A?h:A,N=Object.create(B.prototype),U=new nn(S||[]);return N._invoke=tn(g,E,U),N}n.wrap=p;function y(g,h,E){try{return{type:"normal",arg:g.call(h,E)}}catch(S){return{type:"throw",arg:S}}}var v="suspendedStart",C="suspendedYield",m="executing",w="completed",f={};function A(){}function O(){}function b(){}var M={};d(M,s,function(){return this});var q=Object.getPrototypeOf,R=q&&q(q(rn([])));R&&R!==r&&u.call(R,s)&&(M=R);var T=b.prototype=A.prototype=Object.create(M);O.prototype=b,d(T,"constructor",b),d(b,"constructor",O),O.displayName=d(b,l,"GeneratorFunction");function je(g){["next","throw","return"].forEach(function(h){d(g,h,function(E){return this._invoke(h,E)})})}n.isGeneratorFunction=function(g){var h=typeof g=="function"&&g.constructor;return h?h===O||(h.displayName||h.name)==="GeneratorFunction":!1},n.mark=function(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,b):(g.__proto__=b,d(g,l,"GeneratorFunction")),g.prototype=Object.create(T),g},n.awrap=function(g){return{__await:g}};function Z(g,h){function E(N,U,k,K){var H=y(g[N],g,U);if(H.type==="throw")K(H.arg);else{var un=H.arg,Ve=un.value;return Ve&&typeof Ve=="object"&&u.call(Ve,"__await")?h.resolve(Ve.__await).then(function(ve){E("next",ve,k,K)},function(ve){E("throw",ve,k,K)}):h.resolve(Ve).then(function(ve){un.value=ve,k(un)},function(ve){return E("throw",ve,k,K)})}}var S;function B(N,U){function k(){return new h(function(K,H){E(N,U,K,H)})}return S=S?S.then(k,k):k()}this._invoke=B}je(Z.prototype),d(Z.prototype,c,function(){return this}),n.AsyncIterator=Z,n.async=function(g,h,E,S,B){B===void 0&&(B=Promise);var N=new Z(p(g,h,E,S),B);return n.isGeneratorFunction(h)?N:N.next().then(function(U){return U.done?U.value:N.next()})};function tn(g,h,E){var S=v;return function(N,U){if(S===m)throw new Error("Generator is already running");if(S===w){if(N==="throw")throw U;return cr()}for(E.method=N,E.arg=U;;){var k=E.delegate;if(k){var K=xe(k,E);if(K){if(K===f)continue;return K}}if(E.method==="next")E.sent=E._sent=E.arg;else if(E.method==="throw"){if(S===v)throw S=w,E.arg;E.dispatchException(E.arg)}else E.method==="return"&&E.abrupt("return",E.arg);S=m;var H=y(g,h,E);if(H.type==="normal"){if(S=E.done?w:C,H.arg===f)continue;return{value:H.arg,done:E.done}}else H.type==="throw"&&(S=w,E.method="throw",E.arg=H.arg)}}}function xe(g,h){var E=g.iterator[h.method];if(E===a){if(h.delegate=null,h.method==="throw"){if(g.iterator.return&&(h.method="return",h.arg=a,xe(g,h),h.method==="throw"))return f;h.method="throw",h.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var S=y(E,g.iterator,h.arg);if(S.type==="throw")return h.method="throw",h.arg=S.arg,h.delegate=null,f;var B=S.arg;if(!B)return h.method="throw",h.arg=new TypeError("iterator result is not an object"),h.delegate=null,f;if(B.done)h[g.resultName]=B.value,h.next=g.nextLoc,h.method!=="return"&&(h.method="next",h.arg=a);else return B;return h.delegate=null,f}je(T),d(T,l,"Generator"),d(T,s,function(){return this}),d(T,"toString",function(){return"[object Generator]"});function Te(g){var h={tryLoc:g[0]};1 in g&&(h.catchLoc=g[1]),2 in g&&(h.finallyLoc=g[2],h.afterLoc=g[3]),this.tryEntries.push(h)}function ue(g){var h=g.completion||{};h.type="normal",delete h.arg,g.completion=h}function nn(g){this.tryEntries=[{tryLoc:"root"}],g.forEach(Te,this),this.reset(!0)}n.keys=function(g){var h=[];for(var E in g)h.push(E);return h.reverse(),function S(){for(;h.length;){var B=h.pop();if(B in g)return S.value=B,S.done=!1,S}return S.done=!0,S}};function rn(g){if(g){var h=g[s];if(h)return h.call(g);if(typeof g.next=="function")return g;if(!isNaN(g.length)){var E=-1,S=function B(){for(;++E<g.length;)if(u.call(g,E))return B.value=g[E],B.done=!1,B;return B.value=a,B.done=!0,B};return S.next=S}}return{next:cr}}n.values=rn;function cr(){return{value:a,done:!0}}return nn.prototype={constructor:nn,reset:function(g){if(this.prev=0,this.next=0,this.sent=this._sent=a,this.done=!1,this.delegate=null,this.method="next",this.arg=a,this.tryEntries.forEach(ue),!g)for(var h in this)h.charAt(0)==="t"&&u.call(this,h)&&!isNaN(+h.slice(1))&&(this[h]=a)},stop:function(){this.done=!0;var g=this.tryEntries[0],h=g.completion;if(h.type==="throw")throw h.arg;return this.rval},dispatchException:function(g){if(this.done)throw g;var h=this;function E(K,H){return N.type="throw",N.arg=g,h.next=K,H&&(h.method="next",h.arg=a),!!H}for(var S=this.tryEntries.length-1;S>=0;--S){var B=this.tryEntries[S],N=B.completion;if(B.tryLoc==="root")return E("end");if(B.tryLoc<=this.prev){var U=u.call(B,"catchLoc"),k=u.call(B,"finallyLoc");if(U&&k){if(this.prev<B.catchLoc)return E(B.catchLoc,!0);if(this.prev<B.finallyLoc)return E(B.finallyLoc)}else if(U){if(this.prev<B.catchLoc)return E(B.catchLoc,!0)}else if(k){if(this.prev<B.finallyLoc)return E(B.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(g,h){for(var E=this.tryEntries.length-1;E>=0;--E){var S=this.tryEntries[E];if(S.tryLoc<=this.prev&&u.call(S,"finallyLoc")&&this.prev<S.finallyLoc){var B=S;break}}B&&(g==="break"||g==="continue")&&B.tryLoc<=h&&h<=B.finallyLoc&&(B=null);var N=B?B.completion:{};return N.type=g,N.arg=h,B?(this.method="next",this.next=B.finallyLoc,f):this.complete(N)},complete:function(g,h){if(g.type==="throw")throw g.arg;return g.type==="break"||g.type==="continue"?this.next=g.arg:g.type==="return"?(this.rval=this.arg=g.arg,this.method="return",this.next="end"):g.type==="normal"&&h&&(this.next=h),f},finish:function(g){for(var h=this.tryEntries.length-1;h>=0;--h){var E=this.tryEntries[h];if(E.finallyLoc===g)return this.complete(E.completion,E.afterLoc),ue(E),f}},catch:function(g){for(var h=this.tryEntries.length-1;h>=0;--h){var E=this.tryEntries[h];if(E.tryLoc===g){var S=E.completion;if(S.type==="throw"){var B=S.arg;ue(E)}return B}}throw new Error("illegal catch attempt")},delegateYield:function(g,h,E){return this.delegate={iterator:rn(g),resultName:h,nextLoc:E},this.method==="next"&&(this.arg=a),f}},n}(t.exports);try{regeneratorRuntime=e}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}})(P);var Y=P.exports,qe="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",lt="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",ft="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",we="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",oe="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",Se="{caption}\u5FC5\u586B",hr="\u8BF7\u8F93\u5165\u6807\u9898",pr="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",gr="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",yr="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",vr="\u8BF7\u7ED1\u5B9A\u8868\u5355",mr="\u8BF7\u7ED1\u5B9A\u5217\u8868",Er="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",br="\u8BF7\u8F93\u5165\u663E\u793A\u503C",Ar="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",Cr="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",Br="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",wr="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",Sr="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",Fr="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",_r="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E{min}\u4E14\u5C0F\u4E8E{max}\u7684\u503C",Dr="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",Ir="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",Rr="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",Mr="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",$r="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Or="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",Pr="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",Lr="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",Nr="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",jr="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",xr="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",Tr="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Vr="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",qr="\u8BF7\u7ED1\u5B9A\u670D\u52A1",Ur="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",kr="\u8BF7\u9009\u62E9\u7701",Hr="\u8BF7\u9009\u62E9\u5E02",Wr="\u8BF7\u9009\u62E9\u533A",zr="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",Gr="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",Kr="\u8BF7\u8F93\u5165\u5217\u5BBD",Jr="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",Xr="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",Qr="\u8BF7\u9009\u62E9\u63A7\u4EF6",Zr="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",Yr="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",ei="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",ti="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",ni="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",ri="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",ii="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",ui="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",ai="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",oi="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",si="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",ci="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",li="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",fi="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",di="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",hi="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",pi="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",gi="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",yi="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",vi={isNotNumber:qe,isNotString:lt,isNotObject:ft,isNotArray:we,isNotBoolean:oe,runtimeRequired:Se,pleaseEnterCaption:hr,pleaseEnterCaptionTip:pr,pleaseEnterPlaceholder:gr,pleaseEnterFieldCode:yr,pleaseEnterForm:vr,pleaseEnterList:mr,pleaseEnterProcess:Er,pleaseEnterLabel:br,pleaseEnterValue:Ar,bizKeyNotBindFiled:Cr,pleaseEnterNumberRange:Br,pleaseEnterAValueGreaterThanMin:wr,pleaseEnterAValueLessThanMax:Sr,numberRangeSetError:Fr,stringRangeError:_r,attachmentMaxSize:Dr,pleaseEnterTotalScoreSetting:Ir,theTotalScoreMustNotBeLessThan1:Rr,scoreDefaultValueRange:Mr,attachmentLimitError:$r,PleaseReselectTheOptionalQuantity:Or,TheMaximumLengthIsGreaterThanTheMinimumLength:Pr,TheMinimumLengthIsGreaterThanTheMaximumLength:Lr,PleaseSelectTheCorrectOptionSettings:Nr,optionIdIsRepeat:jr,optionIsRequired:xr,pleaseEnterDataCode:Tr,pleaseEnterValueFieldCode:Vr,pleaseEnterSvcCode:qr,pleaseBindAtLeastOneDisplayValue:Ur,pleaseSelectProvince:kr,pleaseSelectCity:Hr,pleaseSelectDistrict:Wr,limitRowsCannotBeLessThan0:zr,TheNumberOfRowsCannotBeLessThanMinRows:Gr,pleaseEnterColumnWidth:Kr,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Jr,pleaseCompleteAllRulesAndConditions:Xr,pleaseSelectControl:Qr,pleaseSelectAtLeastOneColumn:Zr,pleaseSelectFillBackMode:Yr,pleaseSelectDashboard:ei,rootNodeIsRequired:ti,theViewNameCannotBeEmpty:ni,pleaseSelectOcrType:ri,pleaseSelectAtLeastOneFieldToFillIn:ii,pleaseChooseAtLeastOne:ui,pleaseEnterButtonContent:ai,pleaseEnterDataCodeInDataSetting:oi,pleaseEnterValueFieldCodeInDataSetting:si,pleaseEnterSvcCodeInDataSetting:ci,pleaseBindAtLeastOneDisplayValueInDataSetting:li,rootNodeIsRequiredInDataSetting:fi,pleaseEnterMaxHeight:di,pleaseEnter:hi,pleaseEnterWatermark:pi,pleaseEnterFileName:gi,pleaseUploadAtLeastOnePrintTemplate:yi},mi="Please enter a number",Ei="Please enter a string",bi="Please enter an object",Ai="Please enter an array",Ci="Please enter a boolean",Bi="{caption} Required",wi="Please enter the title",Si="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",Fi="Please enter the prompt text",_i="Please bind data items",Di="Please bind the form",Ii="Please bind the list",Ri="Please bind the process",Mi="Please enter the displayed value",$i="Please enter the stored value",Oi="The document number is not bound to the data item",Pi="Please enter a value greater than or equal to {min} and less than or equal to {max}",Li="Please enter a value greater than or equal to {min}",Ni="Please enter a value less than or equal to {max}",ji="The value range is set incorrectly",xi="Please enter a value longer than {min} and less than {max}",Ti="The attachment size must be between 0MB and 1000MB",Vi="Please fill in the total score setting",qi="The total score cannot be less than 1",Ui="The default value must be between {min} and {max}",ki="The number of attachments uploaded must be between {min} and {max}",Hi="Please re-select the optional quantity",Wi="The maximum length of the control must be greater than the minimum length",zi="The minimum length of the control must be less than the maximum length",Gi="Please select the correct option setting",Ki="Option ID cannot be repeated",Ji="Please enter at least one option",Xi="Please bind the data source",Qi="Please bind the stored value",Zi="Please bind the service",Yi="At least one display value must be bound",eu="Please select a province",tu="Please select a city",nu="Please select a district",ru="The minimum number of lines to fill in cannot be less than 0",iu="The number of rows cannot be less than {min} rows",uu="Please enter the column width",au="Please set the logical relationship of all rule conditions",ou="Please complete all rules and conditions",su="please select control",cu="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",lu="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",fu="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",du="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",hu="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",pu="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",gu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",yu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",vu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",mu="\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",Au="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",Cu="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",Bu="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",wu="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",Su={isNotNumber:mi,isNotString:Ei,isNotObject:bi,isNotArray:Ai,isNotBoolean:Ci,runtimeRequired:Bi,pleaseEnterCaption:wi,pleaseEnterCaptionTip:Si,pleaseEnterPlaceholder:Fi,pleaseEnterFieldCode:_i,pleaseEnterForm:Di,pleaseEnterList:Ii,pleaseEnterProcess:Ri,pleaseEnterLabel:Mi,pleaseEnterValue:$i,bizKeyNotBindFiled:Oi,pleaseEnterNumberRange:Pi,pleaseEnterAValueGreaterThanMin:Li,pleaseEnterAValueLessThanMax:Ni,numberRangeSetError:ji,stringRangeError:xi,attachmentMaxSize:Ti,pleaseEnterTotalScoreSetting:Vi,theTotalScoreMustNotBeLessThan1:qi,scoreDefaultValueRange:Ui,attachmentLimitError:ki,PleaseReselectTheOptionalQuantity:Hi,TheMaximumLengthIsGreaterThanTheMinimumLength:Wi,TheMinimumLengthIsGreaterThanTheMaximumLength:zi,PleaseSelectTheCorrectOptionSettings:Gi,optionIdIsRepeat:Ki,optionIsRequired:Ji,pleaseEnterDataCode:Xi,pleaseEnterValueFieldCode:Qi,pleaseEnterSvcCode:Zi,pleaseBindAtLeastOneDisplayValue:Yi,pleaseSelectProvince:eu,pleaseSelectCity:tu,pleaseSelectDistrict:nu,limitRowsCannotBeLessThan0:ru,TheNumberOfRowsCannotBeLessThanMinRows:iu,pleaseEnterColumnWidth:uu,pleaseSetTheLogicalRelationshipOfAllRuleConditions:au,pleaseCompleteAllRulesAndConditions:ou,pleaseSelectControl:su,pleaseSelectDashboard:cu,theViewNameCannotBeEmpty:lu,pleaseSelectOcrType:fu,pleaseSelectAtLeastOneFieldToFillIn:du,pleaseChooseAtLeastOne:hu,pleaseEnterButtonContent:pu,pleaseEnterDataCodeInDataSetting:gu,pleaseEnterValueFieldCodeInDataSetting:yu,pleaseEnterSvcCodeInDataSetting:vu,pleaseBindAtLeastOneDisplayValueInDataSetting:mu,rootNodeIsRequiredInDataSetting:Eu,pleaseEnterMaxHeight:bu,pleaseEnter:Au,pleaseEnterWatermark:Cu,pleaseEnterFileName:Bu,pleaseUploadAtLeastOnePrintTemplate:wu},Fu="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",_u="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Du="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Iu="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ru="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Mu="{caption}\u5FC5\u9808",$u="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ou="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",Pu="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Lu="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Nu="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ju="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",xu="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Tu="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Vu="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",qu="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",Uu="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ku="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Hu="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Wu="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",zu="\u6587\u5B57\u6570{min}\u3088\u308A\u5927\u304D\u304F\u3001{max}\u3088\u308A\u5C0F\u3055\u3044\u6570\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Gu="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Ku="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Ju="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Xu="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Qu="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Zu="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Yu="\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",ea="\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",ta="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",na="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",ra="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",ia="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ua="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",aa="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",oa="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",sa="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",ca="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",la="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",fa="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",da="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",ha="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",pa="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",ga="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",ya="please select control",va="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",ma="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Ea="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",ba="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Aa="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Ca="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Ba="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",wa="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",Sa="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",Fa="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",_a="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",Da="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Ia="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",Ra="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",Ma="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",$a="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",Oa={isNotNumber:Fu,isNotString:_u,isNotObject:Du,isNotArray:Iu,isNotBoolean:Ru,runtimeRequired:Mu,pleaseEnterCaption:$u,pleaseEnterCaptionTip:Ou,pleaseEnterPlaceholder:Pu,pleaseEnterFieldCode:Lu,pleaseEnterForm:Nu,pleaseEnterList:ju,pleaseEnterProcess:xu,pleaseEnterLabel:Tu,pleaseEnterValue:Vu,bizKeyNotBindFiled:qu,pleaseEnterNumberRange:Uu,pleaseEnterAValueGreaterThanMin:ku,pleaseEnterAValueLessThanMax:Hu,numberRangeSetError:Wu,stringRangeError:zu,attachmentMaxSize:Gu,pleaseEnterTotalScoreSetting:Ku,theTotalScoreMustNotBeLessThan1:Ju,scoreDefaultValueRange:Xu,attachmentLimitError:Qu,PleaseReselectTheOptionalQuantity:Zu,TheMaximumLengthIsGreaterThanTheMinimumLength:Yu,TheMinimumLengthIsGreaterThanTheMaximumLength:ea,PleaseSelectTheCorrectOptionSettings:ta,optionIdIsRepeat:na,optionIsRequired:ra,pleaseEnterDataCode:ia,pleaseEnterValueFieldCode:ua,pleaseEnterSvcCode:aa,pleaseBindAtLeastOneDisplayValue:oa,pleaseSelectProvince:sa,pleaseSelectCity:ca,pleaseSelectDistrict:la,limitRowsCannotBeLessThan0:fa,TheNumberOfRowsCannotBeLessThanMinRows:da,pleaseEnterColumnWidth:ha,pleaseSetTheLogicalRelationshipOfAllRuleConditions:pa,pleaseCompleteAllRulesAndConditions:ga,pleaseSelectControl:ya,pleaseSelectDashboard:va,theViewNameCannotBeEmpty:ma,pleaseSelectOcrType:Ea,pleaseSelectAtLeastOneFieldToFillIn:ba,pleaseChooseAtLeastOne:Aa,pleaseEnterButtonContent:Ca,pleaseEnterDataCodeInDataSetting:Ba,pleaseEnterValueFieldCodeInDataSetting:wa,pleaseEnterSvcCodeInDataSetting:Sa,pleaseBindAtLeastOneDisplayValueInDataSetting:Fa,rootNodeIsRequiredInDataSetting:_a,pleaseEnterMaxHeight:Da,pleaseEnter:Ia,pleaseEnterWatermark:Ra,pleaseEnterFileName:Ma,pleaseUploadAtLeastOnePrintTemplate:$a},Pa={zhCN:vi,enUS:Su,jaJP:Oa},J;(function(t){t.Number="Number",t.Operator="Operator",t.VariableInMainTable="VariableInMainTable",t.VariableInCurrentSubTable="VariableInCurrentSubTable",t.VariableInOtherSubTable="VariableInOtherSubTable",t.UndefinedVariable="UndefinedVariable"})(J||(J={}));var me;(function(t){t.SUM="SUM",t.AVG="AVG",t.MAX="MAX",t.MIN="MIN"})(me||(me={}));var on="zh-CN";function W(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ee;(function(t){t.BASE="base",t.FORM="form",t.LAYOUT="layout",t.WRAP="wrap",t.COLUMN="column",t.LIST="list",t.SEARCH="search"})(ee||(ee={}));var I;(function(t){t.TITLE="title",t.LINK="link",t.BUTTON="button",t.DIVIDER="divider",t.TEXT="text",t.CREATE_FORM_LIST_BUTTON="list-page-btn-create-form",t.BATCH_SUBMISSION_LIST_BUTTON="list-page-btn-batch-submission",t.SUBMISSION_RECORD_LIST_BUTTON="list-page-btn-submission-record",t.IMPORT_RECORD_LIST_BUTTON="list-page-btn-import-record",t.EXPORT_RECORD_LIST_BUTTON="list-page-btn-export-record",t.EXPORT_LIST_BUTTON="list-page-btn-export-list",t.LIST_SELECT_BUTTON="list-select-button",t.FORM_SELECT_BUTTON="form-select-button",t.LIST_VIEW_SELECT="list-view-select",t.TEXT_OCR_BUTTON="text-ocr-button",t.INVOICE_CHECK_BUTTON="invoice-check-button",t.LIST_PAGE_BTN_BATCH_PRINT="list-page-btn-batch-print",t.LIST_PAGE_BTN_BATCH_PRINT_RECORD="list-page-btn-batch-print-record",t.VARCHAR_COLUMN="varchar-column",t.TEXT_COLUMN="text-column",t.DECIMAL_COLUMN="decimal-column",t.TIMESCOPE_COLUMN="timescope-column",t.TIMESTAMP_COLUMN="timestamp-column",t.ARRAY_COLUMN="array-column",t.DEPARTMENT_COLUMN="department-column",t.AUTO_NUMBER_COLUMN="auto-number-column",t.FILE_COLUMN="file-column",t.IMAGE_COLUMN="image-column",t.PEOPLE_COLUMN="people-column",t.LOCATION_COLUMN="location-column",t.CUSTOM_COLUMN="custom-column",t.ORDER_COLUMN="order-column",t.OPERATION_COLUMN="operation-column",t.EMPLOYEE_COLUMN="employee-column",t.ADDRESS="address",t.AMOUNT="amount",t.ATTACHMENT="attachment",t.AUTO_NUMBER="auto-number",t.CALC="calc",t.CHECKBOX="checkbox",t.DATE_PICKER="date-picker",t.DATE_RANGE="date-range",t.DEPARTMENT="department",t.EMPLOYEE="employee",t.IMAGE="image",t.INPUT="input",t.NUMBER="number",t.RADIO="radio",t.RICH_TEXT="rich-text",t.SCORE="score",t.SEARCH_DATE_RANGE="search-date-range",t.SEARCH_NUMBER_RANGE="search-number-range",t.SEARCH_INPUT="search-input",t.SELECT="select",t.SELECT_MULTIPLE="select-multiple",t.SELECT_RELATION="select-relation",t.VUE_FORM_ITEM="vue-form-item",t.TEXTAREA="textarea",t.EMAIL="email",t.FOOTER="footer",t.HEADER="header",t.ID_CARD="id-card",t.MOBILE="mobile",t.PHONE="phone",t.RADIO_IMAGE="radio-image",t.ELECTRONIC_SIGNATURE="electronic-signature",t.WPS="wps",t.CARD_GROUP="card-group",t.COL="col",t.GRID="grid",t.GRID_ROW="grid-row",t.GRID_TABLE_COLUMN="grid-table-column",t.ROW="row",t.TWO_COLUMNS="two-columns",t.SUBTABLE_COLUMN="subtable-column",t.SUBTABLE_ROW="subtable-row",t.TAB="tab",t.TAB_PANE="tab-pane",t.TOOLBOX="toolbox",t.DATA_VIEW="data-view",t.LIST_VIEW="list-view",t.SUBTABLE="subtable",t.GRID_TABLE="grid-table",t.SIMPLE_SEARCH="simple-search",t.PAGINATION="pagination",t.CHECKBOX_IMAGE="checkbox-image",t.DASHBOARD="dashboard",t.TREE="tree",t.EMPLOYEE2="employee2"})(I||(I={}));var _;(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"})(_||(_={}));var V;V={},W(V,_.ARRAY,I.ARRAY_COLUMN),W(V,_.AUTO_NUMBER,I.AUTO_NUMBER_COLUMN),W(V,_.DECIMAL,I.DECIMAL_COLUMN),W(V,_.DEPARTMENTS,I.DEPARTMENT_COLUMN),W(V,_.FILE,I.FILE_COLUMN),W(V,_.IMAGE,I.IMAGE_COLUMN),W(V,_.ADDRESS,I.LOCATION_COLUMN),W(V,_.EMPLOYEES,I.EMPLOYEE_COLUMN),W(V,_.TEXT,I.TEXT_COLUMN),W(V,_.TIMESCOPE,I.TIMESCOPE_COLUMN),W(V,_.TIMESTAMP,I.TIMESTAMP_COLUMN),W(V,_.VARCHAR,I.VARCHAR_COLUMN),W(V,_.RELATION,I.VARCHAR_COLUMN);var sn;(function(t){t.YEAR="year",t.MONTH="month",t.DATE="date",t.DATETIME="datetime"})(sn||(sn={}));var cn="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",La=cn+"0123456789";function dt(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,e="",n=0;n<t;n++){var r=n===0?cn:La,u=Math.random()*r.length;e+=r[parseInt(String(u),10)]}return e}function ht(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Na(t){if(Array.isArray(t))return ht(t)}function ja(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ln(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xa(){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 Ue(t,e,n){return xa()?Ue=Reflect.construct:Ue=function(u,a,o){var s=[null];s.push.apply(s,a);var c=Function.bind.apply(u,s),l=new c;return o&&_e(l,o.prototype),l},Ue.apply(null,arguments)}function Fe(t){return Fe=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Fe(t)}function fn(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&&_e(t,e)}function Ta(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Va(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function qa(){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 Ua(t,e){return e&&(ka(e)==="object"||typeof e=="function")?e:ja(t)}function _e(t,e){return _e=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},_e(t,e)}function dn(t){return Na(t)||Va(t)||Ha(t)||qa()}var ka=function(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t};function Ha(t,e){if(!!t){if(typeof t=="string")return ht(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 ht(t,e)}}function pt(t){var e=typeof Map=="function"?new Map:void 0;return pt=function(r){if(r===null||!Ta(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(r))return e.get(r);e.set(r,u)}function u(){return Ue(r,arguments,Fe(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),_e(u,r)},pt(t)}function Wa(){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 hn(t){var e=Wa();return function(){var r=Fe(t),u;if(e){var a=Fe(this).constructor;u=Reflect.construct(r,arguments,a)}else u=r.apply(this,arguments);return Ua(this,u)}}var gt=console;function ce(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r,u=e.slice(1);(r=gt).warn.apply(r,["\u{1F9D0} Driven Warning:"+e[0]].concat(dn(u)))}function yt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r,u=e.slice(1);(r=gt).log.apply(r,["\u{1F680} Driven Log:"+e[0]].concat(dn(u)))}function za(t){return t+" \u{1F41B}\u{1F41B}\u{1F41B}"}var vt=function(t){fn(n,t);var e=hn(n);function n(r){ln(this,n);var u;return u=e.call(this,r),u.name="\u{1F4A5} Driven Error",u.message=r?za(r):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",u}return n}(pt(Error)),Ga=function(t){fn(n,t);var e=hn(n);function n(r){ln(this,n);var u;return u=e.call(this,r),u.name="\u{1F6A8} Driven Reference Error",u}return n}(vt);function se(t){throw new vt(t)}function pn(t){throw new Ga(t)}function ke(t){gt.error(new vt(t))}function pe(t,e){Array.isArray(t)&&t.map(function(n){switch(n.controlType){case"layout":pe(n==null?void 0:n.children,e);break;case"search":pe(n==null?void 0:n.children,e);break;case"form":e(n)}})}var Ka=Object.prototype.toString;function gn(t,e){return Ka.call(t)==="[object "+e+"]"}function Ja(t){return gn(t,"String")}function Xa(t){return gn(t,"Promise")}var Qa=function(){function t(e){var n,r;this._messageCache=new Map,this.messages={},this.variableRegExp=/\{([0-9a-zA-Z_]+)\}/g,this._messages=Object.freeze((r=(n=e.messages)!==null&&n!==void 0?n:this.getPreImport(e.locale))!==null&&r!==void 0?r:{}),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 r=this.getMessageData();Xa(r)?r.then(function(u){n._messageCache.clear(),n.messages[n.localeInMessageKey]=u}):this.messages[this.localeInMessageKey]=r},t.prototype.getMessageData=function(){var e=this._messages[this.localeInMessageKey];return typeof e=="function"?e():e},t.prototype.translate=function(e,n,r){var u=this.getMessage(e);return u?this.formatMessage(u,r):this.formatMessage(n,r)},t.prototype.getMessage=function(e){if(this._messageCache.has(e))return this._messageCache.get(e);var n=this.getPathArray(e),r=n.reduce(function(u,a,o,s){if(u!==void 0){var c=u[a];if(!(o===s.length-1&&!Ja(c)))return c}},this.message);return this._messageCache.set(e,r),r},t.prototype.formatMessage=function(e,n){return n?e.replace(this.variableRegExp,function(r,u){var a=n[u];return a!==void 0?String(a):r}):e},t.prototype.getPreImport=function(e){var n;if(window.okI18nPreImport){var r=this.getLocaleInMessageKey(e);return window.okI18nPreImport.hasOwnProperty(r)?window.okI18nPreImport:(n={},n[r]=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 Za(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var X=function(){function t(){Za(this,t)}return t.getMessage=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$i18n.$t(n,"",r)},t.resetI18n=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:on;return new Qa({locale:n,messages:Pa})},t.setLocale=function(n){return this.$i18n.setLocale(n)},t}();X.$i18n=X.resetI18n();function yn(t,e,n){var r=e.replace(/\[(\d)]/g,function(a,o){return"."+o}).split("."),u=!1;return r.reduce(function(a,o,s,c){var l=a;if(!!a){if(!Object.prototype.hasOwnProperty.call(a,o)){ce("Can not set ".concat(e,"'s ").concat(o," property in current %o, Because there is no ").concat(o," property on the %o"),a,a);return}return s===c.length-1&&!Object.is(l[o],n)&&(l[o]=n,u=!0),l[o]}},t),u}var mt={exports:{}};(function(t){(function(e){var n=function(f,A,O){if(!l(A)||p(A)||y(A)||v(A)||c(A))return A;var b,M=0,q=0;if(d(A))for(b=[],q=A.length;M<q;M++)b.push(n(f,A[M],O));else{b={};for(var R in A)Object.prototype.hasOwnProperty.call(A,R)&&(b[f(R,O)]=n(f,A[R],O))}return b},r=function(f,A){A=A||{};var O=A.separator||"_",b=A.split||/(?=[A-Z])/;return f.split(b).join(O)},u=function(f){return C(f)?f:(f=f.replace(/[\-_\s]+(.)?/g,function(A,O){return O?O.toUpperCase():""}),f.substr(0,1).toLowerCase()+f.substr(1))},a=function(f){var A=u(f);return A.substr(0,1).toUpperCase()+A.substr(1)},o=function(f,A){return r(f,A).toLowerCase()},s=Object.prototype.toString,c=function(f){return typeof f=="function"},l=function(f){return f===Object(f)},d=function(f){return s.call(f)=="[object Array]"},p=function(f){return s.call(f)=="[object Date]"},y=function(f){return s.call(f)=="[object RegExp]"},v=function(f){return s.call(f)=="[object Boolean]"},C=function(f){return f=f-0,f===f},m=function(f,A){var O=A&&"process"in A?A.process:A;return typeof O!="function"?f:function(b,M){return O(b,f,M)}},w={camelize:u,decamelize:o,pascalize:a,depascalize:o,camelizeKeys:function(f,A){return n(m(u,A),f)},decamelizeKeys:function(f,A){return n(m(o,A),f,A)},pascalizeKeys:function(f,A){return n(m(a,A),f)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=w:e.humps=w})($)})(mt);function L(t){if(t!==void 0)return typeof t=="object"?JSON.parse(JSON.stringify(t)):t}function te(t){return Object.prototype.toString.call(t)==="[object Object]"}function Ya(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1}function Ee(t){return Array.isArray(t)}function z(t){return typeof t=="string"}function He(t){return typeof t=="number"}function vn(t){return typeof t=="function"}function eo(t){return Ee(t)&&t.every(function(e){return z(e)})}function to(t){return Ee(t)&&t.every(function(e){return He(e)||e===""})}function mn(t){return/^\[.*?]$/.test(t)}function We(t){return/^{.*?}$/.test(t)}function Et(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function no(t){if(Array.isArray(t))return Et(t)}function En(t,e,n,r,u,a,o){try{var s=t[a](o),c=s.value}catch(l){n(l);return}s.done?e(c):Promise.resolve(c).then(r,u)}function ro(t){return function(){var e=this,n=arguments;return new Promise(function(r,u){var a=t.apply(e,n);function o(c){En(a,r,u,o,s,"next",c)}function s(c){En(a,r,u,o,s,"throw",c)}o(void 0)})}}function io(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function uo(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ao(){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 bt(t){return no(t)||uo(t)||oo(t)||ao()}function oo(t,e){if(!!t){if(typeof t=="string")return Et(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 Et(t,e)}}var bn=function(){function t(){io(this,t),this._events=new Map,this.debug=!1}var e=t.prototype;return e.emit=function(r){for(var u=arguments.length,a=new Array(u>1?u-1:0),o=1;o<u;o++)a[o-1]=arguments[o];var s=this;return ro(Y.mark(function c(){var l,d,p,y,v,C,m,w,f,A;return Y.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(l=s._events.get(r),d=[],!l){b.next=42;break}p=l.slice(),y=!0,v=!1,C=void 0,b.prev=5,m=p[Symbol.iterator]();case 7:if(y=(w=m.next()).done){b.next=28;break}if(f=w.value,l.includes(f)){b.next=11;break}return b.abrupt("continue",25);case 11:return b.prev=11,s.debug&&yt.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(r," \u4E8B\u4EF6: ").concat(f.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+f.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(a.map(function(){return"%o"}).join(","),"\u3002")].concat(bt(a))),b.next=15,f.apply(null,bt(a));case 15:if(A=b.sent,s.debug&&yt.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(r," \u4E8B\u4EF6: ").concat(f.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+f.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(a.map(function(){return"%o"}).join(","),"; \u51FD\u6570\u7684\u8FD4\u56DE\u7ED3\u679C\u4E3A%o")].concat(bt(a),[A])),d.push(A),A!==!1){b.next=20;break}return b.abrupt("break",28);case 20:b.next=25;break;case 22:b.prev=22,b.t0=b.catch(11),ke(String(b.t0));case 25:y=!0,b.next=7;break;case 28:b.next=34;break;case 30:b.prev=30,b.t1=b.catch(5),v=!0,C=b.t1;case 34:b.prev=34,b.prev=35,!y&&m.return!=null&&m.return();case 37:if(b.prev=37,!v){b.next=40;break}throw C;case 40:return b.finish(37);case 41:return b.finish(34);case 42:return b.abrupt("return",d);case 43:case"end":return b.stop()}},c,null,[[5,30,34,42],[11,22],[35,,37,41]])}))()},e.on=function(r,u){if(this._events.has(r)){var a;(a=this._events.get(r))===null||a===void 0||a.push(u)}else this._events.set(r,[u])},e.off=function(r,u){if(this._events.has(r)){var a=this._events.get(r),o=a==null?void 0:a.indexOf(u);a==null||a.splice(o,1)}},e.delete=function(r){this._events.has(r)&&this._events.delete(r)},e.clear=function(){this._events=new Map},t}();function so(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var co=[{key:"on_click",name:"\u70B9\u51FB\u65F6",code:"click"},{key:"on_click_finish",name:"\u6267\u884C\u5B8C\u6210\u65F6",code:"click-finish"},{key:"on_change",name:"\u503C\u53D1\u751F\u53D8\u5316\u65F6",code:"change"},{key:"on_search",name:"\u641C\u7D22\u65F6",code:"search"},{key:"on_list_change",name:"\u5217\u8868\u6570\u636E\u53D8\u5316\u65F6",code:"list-change"},{key:"on_list_search",name:"\u5217\u8868\u6570\u636E\u67E5\u8BE2\u6784\u5EFA\u65F6",code:"list-search"},{key:"on_list_mounted",name:"\u5217\u8868\u6570\u636E\u8FD4\u56DE\u65F6",code:"list-mounted"},{key:"on_list_delete",name:"\u5217\u8868\u6570\u636E\u5220\u9664\u65F6",code:"list-delete"},{key:"on_input",name:"\u7528\u6237\u8F93\u5165\u65F6",code:"input"},{key:"on_blur",name:"\u5931\u53BB\u7126\u70B9\u65F6",code:"blur"},{key:"on_focus",name:"\u83B7\u53D6\u7126\u70B9\u65F6",code:"focus"},{key:"on_wps_open",name:"\u6253\u5F00\u6587\u4EF6\u65F6",code:"wps-open"},{key:"on_wps_save",name:"\u4FDD\u5B58\u6587\u4EF6\u65F6",code:"wps-save"},{key:"on_wps_rename",name:"\u91CD\u547D\u540D\u65F6",code:"wps-rename"},{key:"on_list_actions",name:"\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6",code:"list-actions"},{key:"on_list_rowclick",name:"\u884C\u70B9\u51FB\u65F6",code:"list-rowclick"},{key:"on_list_before_rowdelete",name:"\u884C\u5220\u9664\u524D",code:"list-before-rowdelete"},{key:"on_list_before_import",name:"\u5217\u8868\u6570\u636E\u5BFC\u5165\u524D",code:"list-before-import"}],An=function(){function t(){so(this,t)}var e=t.prototype;return e.getEventsFromKeys=function(r){var u=typeof r=="string"?[r]:r;return t.events.filter(function(a){return u.includes(a.key)})},t}();An.events=co;function lo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Cn=[],ze=function(){function t(n){lo(this,t),this.registeredControlTypes=new Set,this.controlConfigMap=new Map,this._controls=[],this._type=n,this._initControls(n)}var e=t.prototype;return e.registerControlConfig=function(r,u){return this.controlConfigMap.set(r,u),this},e.getControlConfig=function(r){return this.controlConfigMap.get(r)},e.getControls=function(){return this._controls},e.register=function(r){r.__is_control__||se("".concat(r.name," is not a Control"));var u=this._controls.findIndex(function(a){return a.controlType===r.controlType});return u>-1&&(ce("The ".concat(r.controlType," is repeat register, So it overwrites the one that was registered before.")),this._controls.splice(u,1)),this.registeredControlTypes.add(r.controlType),this._controls.push(r),this},e.isLayoutControl=function(r){return r.controlType===ee.LAYOUT},e.isFormControl=function(r){return r.controlType===ee.FORM},e.isListControl=function(r){return r.controlType===ee.LIST},e.isColumnControl=function(r){return r.controlType===ee.COLUMN},e.createControl=function(r,u){var a=this;if(Array.isArray(r))return r.map(function(d){return a.createControl(d,u)});r.children&&(r.children=r.children.map(function(d){return a.createControl(d,u)})),this.isListControl(r)&&r.props.headers&&(r.props.headers=r.props.headers.map(function(d){return a.createControl(d,u)}));var o=this.getControlFormType(r.type);if(o){var s=r;if(typeof u=="function"){var c=u(s);c&&(s=c)}var l=new o(s);return l}else se("The constructor of ".concat(r.type," could not be found, please confirm that the constructor has been registered"))},e.createControlInstance=function(r,u){var a=this.getControlFormType(r);if(a)return new a(u)},e.getControlFormType=function(r){return this._controls.find(function(u){return u.controlType===r})},e._initControls=function(r){var u=this;this.constructor.staticControls.forEach(function(a){u.register(a[r])})},t.register=function(r){var u=r.Designer,a=r.Runtime;(!u||!a||!u.__is_control__||!a.__is_control__)&&se("".concat(r," is can't register as a Control"));var o=this.staticControls.findIndex(function(s){return s.Designer.controlType===u.controlType});return o>-1&&(ce("The ".concat(u.controlType," is repeat register, So it overwrites the one that was registered before.")),this.staticControls.splice(o,1)),this.staticRegisteredTypes.add(u.controlType),this.staticControls.push(r),this},t}();ze.staticControls=Cn,ze.staticRegisteredTypes=new Set(Cn.map(function(t){return t.Designer.controlType})),ze.staticRegisteredConfigs=new Map;function ge(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var De=function t(e){ge(this,t);var n;this.dataCode=(n=e==null?void 0:e.dataCode)!==null&&n!==void 0?n:"";var r;this.fieldCode=(r=e==null?void 0:e.fieldCode)!==null&&r!==void 0?r:"";var u;this.fieldType=(u=e==null?void 0:e.fieldType)!==null&&u!==void 0?u:""},le=function t(){ge(this,t)},Ge=function t(e){ge(this,t);var n;this.amount=(n=e==null?void 0:e.amount)!==null&&n!==void 0?n:"";var r;this.currency=(r=e==null?void 0:e.currency)!==null&&r!==void 0?r:At.CNY},Ke=function t(e){ge(this,t);var n;this.min=(n=e==null?void 0:e.min)!==null&&n!==void 0?n:"";var r;this.max=(r=e==null?void 0:e.max)!==null&&r!==void 0?r:""},Je=function t(e){ge(this,t);var n;this.city=(n=e==null?void 0:e.city)!==null&&n!==void 0?n:"";var r;this.cityDisplay=(r=e==null?void 0:e.cityDisplay)!==null&&r!==void 0?r:"";var u;this.district=(u=e==null?void 0:e.district)!==null&&u!==void 0?u:"";var a;this.districtDisplay=(a=e==null?void 0:e.districtDisplay)!==null&&a!==void 0?a:"";var o;this.province=(o=e==null?void 0:e.province)!==null&&o!==void 0?o:"";var s;this.provinceDisplay=(s=e==null?void 0:e.provinceDisplay)!==null&&s!==void 0?s:""},Xe=function t(e){ge(this,t);var n;this.result=(n=e==null?void 0:e.result)!==null&&n!==void 0?n:0;var r;this.unit=(r=e==null?void 0:e.unit)!==null&&r!==void 0?r:""},At;(function(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"})(At||(At={}));var Bn;(function(t){t.REQUIRED="required",t.IS_HIDE="isHide",t.IS_SHOW_UNIT="isShowUnit",t.IMD_SEARCH="immediatelySearch",t.MULTIPLE="multiple",t.SUBMIT_SELECT_CURRENCY="submitSelectCurrency",t.CAPTION="caption",t.IS_HIDE_CAPTION="isHideCaption",t.DEFAULT_SHOW_OPTIONS="defaultShowOptions",t.CAN_SEARCH="canSearch",t.CAN_CHECK="canCheck",t.CAN_EDIT="canEdit",t.CAN_DELETE="canDelete",t.SHOW_UPPER_CASE="showUpperCase",t.MICROMETER="micrometer",t.PRECISION="precision",t.PERCENTAGE="percentage",t.OPTIONAL_LEVEL="optionalLevel",t.CONTAINS_SUB_NODE="containsSubNode",t.DEFAULT_COLLAPSE="defaultCollapse",t.CAN_VIEW_FORM="canViewForm",t.SERVER_PAGINATION="serverPagination",t.IS_SHOW_CAPTION_TIP="isShowCaptionTip",t.ENCRYPTED="encrypted"})(Bn||(Bn={}));var Ct;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.READONLY=1]="READONLY",t[t.EDITABLE=2]="EDITABLE",t[t.PRINT=5]="PRINT"})(Ct||(Ct={}));var fo=function t(e){ge(this,t);var n;this.width=(n=e==null?void 0:e.width)!==null&&n!==void 0?n:"";var r;this.height=(r=e==null?void 0:e.height)!==null&&r!==void 0?r:"";var u;this.widthConfig=(u=e==null?void 0:e.widthConfig)!==null&&u!==void 0?u:"fill";var a;this.heightConfig=(a=e==null?void 0:e.heightConfig)!==null&&a!==void 0?a:"fill"};function ho(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Bt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function po(){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 Qe(t,e,n){return po()?Qe=Reflect.construct:Qe=function(u,a,o){var s=[null];s.push.apply(s,a);var c=Function.bind.apply(u,s),l=new c;return o&&Re(l,o.prototype),l},Qe.apply(null,arguments)}function Ie(t){return Ie=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ie(t)}function go(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&&Re(t,e)}function yo(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function vo(t,e){return e&&(mo(e)==="object"||typeof e=="function")?e:ho(t)}function Re(t,e){return Re=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Re(t,e)}var mo=function(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t};function wt(t){var e=typeof Map=="function"?new Map:void 0;return wt=function(r){if(r===null||!yo(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(r))return e.get(r);e.set(r,u)}function u(){return Qe(r,arguments,Ie(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),Re(u,r)},wt(t)}function Eo(){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 bo(t){var e=Eo();return function(){var r=Ie(t),u;if(e){var a=Ie(this).constructor;u=Reflect.construct(r,arguments,a)}else u=r.apply(this,arguments);return vo(this,u)}}var wn=function t(e){Bt(this,t),this.isHide={type:"boolean"}},Sn=function(t){go(n,t);var e=bo(n);function n(r){return Bt(this,n),e.call(this)}return n}(wt(Array)),ye=function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";Bt(this,t);var r;this.isHide=(r=e==null?void 0:e.isHide)!==null&&r!==void 0?r:!1,this.style=new fo(e==null?void 0:e.style);var u;this.caption=(u=e==null?void 0:e.caption)!==null&&u!==void 0?u:n};ye.Rules=wn,ye.RuntimeRules=Sn;function ne(){return ne=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ne.apply(this,arguments)}function Ao(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function St(t){return St=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},St(t)}function Ze(t,e){return Ze=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Ze(t,e)}function Co(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function Ye(t,e,n){return Co()?Ye=Reflect.construct:Ye=function(u,a,o){var s=[null];s.push.apply(s,a);var c=Function.bind.apply(u,s),l=new c;return o&&Ze(l,o.prototype),l},Ye.apply(null,arguments)}function Bo(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Ft(t){var e=typeof Map=="function"?new Map:void 0;return Ft=function(r){if(r===null||!Bo(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(r))return e.get(r);e.set(r,u)}function u(){return Ye(r,arguments,St(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),Ze(u,r)},Ft(t)}var wo=/%[sdj%]/g,Fn=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(Fn=function(e,n){typeof console!="undefined"&&console.warn&&n.every(function(r){return typeof r=="string"})&&console.warn(e,n)});function _t(t){if(!t||!t.length)return null;var e={};return t.forEach(function(n){var r=n.field;e[r]=e[r]||[],e[r].push(n)}),e}function G(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=1,u=e[0],a=e.length;if(typeof u=="function")return u.apply(null,e.slice(1));if(typeof u=="string"){var o=String(u).replace(wo,function(s){if(s==="%%")return"%";if(r>=a)return s;switch(s){case"%s":return String(e[r++]);case"%d":return Number(e[r++]);case"%j":try{return JSON.stringify(e[r++])}catch(c){return"[Circular]"}break;default:return s}});return o}return u}function So(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function j(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||So(e)&&typeof t=="string"&&!t)}function Fo(t,e,n){var r=[],u=0,a=t.length;function o(s){r.push.apply(r,s),u++,u===a&&n(r)}t.forEach(function(s){e(s,o)})}function _n(t,e,n){var r=0,u=t.length;function a(o){if(o&&o.length){n(o);return}var s=r;r=r+1,s<u?e(t[s],a):n([])}a([])}function _o(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,t[n])}),e}var Dn=function(t){Ao(e,t);function e(n,r){var u;return u=t.call(this,"Async Validation Error")||this,u.errors=n,u.fields=r,u}return e}(Ft(Error));function Do(t,e,n,r){if(e.first){var u=new Promise(function(p,y){var v=function(w){return r(w),w.length?y(new Dn(w,_t(w))):p()},C=_o(t);_n(C,n,v)});return u.catch(function(p){return p}),u}var a=e.firstFields||[];a===!0&&(a=Object.keys(t));var o=Object.keys(t),s=o.length,c=0,l=[],d=new Promise(function(p,y){var v=function(m){if(l.push.apply(l,m),c++,c===s)return r(l),l.length?y(new Dn(l,_t(l))):p()};o.length||(r(l),p()),o.forEach(function(C){var m=t[C];a.indexOf(C)!==-1?_n(m,n,v):Fo(m,n,v)})});return d.catch(function(p){return p}),d}function In(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 Rn(t,e){if(e){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];typeof r=="object"&&typeof t[n]=="object"?t[n]=ne(ne({},t[n]),r):t[n]=r}}return t}function Mn(t,e,n,r,u,a){t.required&&(!n.hasOwnProperty(t.field)||j(e,a||t.type))&&r.push(G(u.messages.required,t.fullField))}function Io(t,e,n,r,u){(/^\s+$/.test(e)||e==="")&&r.push(G(u.messages.whitespace,t.fullField))}var Dt={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},Me={integer:function(e){return Me.number(e)&&parseInt(e,10)===e},float:function(e){return Me.number(e)&&!Me.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"&&!Me.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&!!e.match(Dt.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(Dt.url)},hex:function(e){return typeof e=="string"&&!!e.match(Dt.hex)}};function Ro(t,e,n,r,u){if(t.required&&e===void 0){Mn(t,e,n,r,u);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=t.type;a.indexOf(o)>-1?Me[o](e)||r.push(G(u.messages.types[o],t.fullField,t.type)):o&&typeof e!==t.type&&r.push(G(u.messages.types[o],t.fullField,t.type))}function Mo(t,e,n,r,u){var a=typeof t.len=="number",o=typeof t.min=="number",s=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=e,d=null,p=typeof e=="number",y=typeof e=="string",v=Array.isArray(e);if(p?d="number":y?d="string":v&&(d="array"),!d)return!1;v&&(l=e.length),y&&(l=e.replace(c,"_").length),a?l!==t.len&&r.push(G(u.messages[d].len,t.fullField,t.len)):o&&!s&&l<t.min?r.push(G(u.messages[d].min,t.fullField,t.min)):s&&!o&&l>t.max?r.push(G(u.messages[d].max,t.fullField,t.max)):o&&s&&(l<t.min||l>t.max)&&r.push(G(u.messages[d].range,t.fullField,t.min,t.max))}var be="enum";function $o(t,e,n,r,u){t[be]=Array.isArray(t[be])?t[be]:[],t[be].indexOf(e)===-1&&r.push(G(u.messages[be],t.fullField,t[be].join(", ")))}function Oo(t,e,n,r,u){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||r.push(G(u.messages.pattern.mismatch,t.fullField,e,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(e)||r.push(G(u.messages.pattern.mismatch,t.fullField,e,t.pattern))}}}var F={required:Mn,whitespace:Io,type:Ro,range:Mo,enum:$o,pattern:Oo};function Po(t,e,n,r,u){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(j(e,"string")&&!t.required)return n();F.required(t,e,r,a,u,"string"),j(e,"string")||(F.type(t,e,r,a,u),F.range(t,e,r,a,u),F.pattern(t,e,r,a,u),t.whitespace===!0&&F.whitespace(t,e,r,a,u))}n(a)}function Lo(t,e,n,r,u){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(j(e)&&!t.required)return n();F.required(t,e,r,a,u),e!==void 0&&F.type(t,e,r,a,u)}n(a)}function No(t,e,n,r,u){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(e===""&&(e=void 0),j(e)&&!t.required)return n();F.required(t,e,r,a,u),e!==void 0&&(F.type(t,e,r,a,u),F.range(t,e,r,a,u))}n(a)}function jo(t,e,n,r,u){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(j(e)&&!t.required)return n();F.required(t,e,r,a,u),e!==void 0&&F.type(t,e,r,a,u)}n(a)}function xo(t,e,n,r,u){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(j(e)&&!t.required)return n();F.required(t,e,r,a,u),j(e)||F.type(t,e,r,a,u)}n(a)}function To(t,e,n,r,u){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(j(e)&&!t.required)return n();F.required(t,e,r,a,u),e!==void 0&&(F.type(t,e,r,a,u),F.range(t,e,r,a,u))}n(a)}function Vo(t,e,n,r,u){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(j(e)&&!t.required)return n();F.required(t,e,r,a,u),e!==void 0&&(F.type(t,e,r,a,u),F.range(t,e,r,a,u))}n(a)}function qo(t,e,n,r,u){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(e==null&&!t.required)return n();F.required(t,e,r,a,u,"array"),e!=null&&(F.type(t,e,r,a,u),F.range(t,e,r,a,u))}n(a)}function Uo(t,e,n,r,u){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(j(e)&&!t.required)return n();F.required(t,e,r,a,u),e!==void 0&&F.type(t,e,r,a,u)}n(a)}var ko="enum";function Ho(t,e,n,r,u){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(j(e)&&!t.required)return n();F.required(t,e,r,a,u),e!==void 0&&F[ko](t,e,r,a,u)}n(a)}function Wo(t,e,n,r,u){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(j(e,"string")&&!t.required)return n();F.required(t,e,r,a,u),j(e,"string")||F.pattern(t,e,r,a,u)}n(a)}function zo(t,e,n,r,u){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(j(e,"date")&&!t.required)return n();if(F.required(t,e,r,a,u),!j(e,"date")){var s;e instanceof Date?s=e:s=new Date(e),F.type(t,s,r,a,u),s&&F.range(t,s.getTime(),r,a,u)}}n(a)}function Go(t,e,n,r,u){var a=[],o=Array.isArray(e)?"array":typeof e;F.required(t,e,r,a,u,o),n(a)}function It(t,e,n,r,u){var a=t.type,o=[],s=t.required||!t.required&&r.hasOwnProperty(t.field);if(s){if(j(e,a)&&!t.required)return n();F.required(t,e,r,o,u,a),j(e,a)||F.type(t,e,r,o,u)}n(o)}function Ko(t,e,n,r,u){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(j(e)&&!t.required)return n();F.required(t,e,r,a,u)}n(a)}var $e={string:Po,method:Lo,number:No,boolean:jo,regexp:xo,integer:To,float:Vo,array:qo,object:Uo,enum:Ho,pattern:Wo,date:zo,url:It,hex:It,email:It,required:Go,any:Ko};function Rt(){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 Mt=Rt();function fe(t){this.rules=null,this._messages=Mt,this.define(t)}fe.prototype={messages:function(e){return e&&(this._messages=Rn(Rt(),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,r;for(n in e)e.hasOwnProperty(n)&&(r=e[n],this.rules[n]=Array.isArray(r)?r:[r])},validate:function(e,n,r){var u=this;n===void 0&&(n={}),r===void 0&&(r=function(){});var a=e,o=n,s=r;if(typeof o=="function"&&(s=o,o={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(),Promise.resolve();function c(m){var w,f=[],A={};function O(b){if(Array.isArray(b)){var M;f=(M=f).concat.apply(M,b)}else f.push(b)}for(w=0;w<m.length;w++)O(m[w]);f.length?A=_t(f):(f=null,A=null),s(f,A)}if(o.messages){var l=this.messages();l===Mt&&(l=Rt()),Rn(l,o.messages),o.messages=l}else o.messages=this.messages();var d,p,y={},v=o.keys||Object.keys(this.rules);v.forEach(function(m){d=u.rules[m],p=a[m],d.forEach(function(w){var f=w;typeof f.transform=="function"&&(a===e&&(a=ne({},a)),p=a[m]=f.transform(p)),typeof f=="function"?f={validator:f}:f=ne({},f),f.validator=u.getValidationMethod(f),f.field=m,f.fullField=f.fullField||m,f.type=u.getType(f),f.validator&&(y[m]=y[m]||[],y[m].push({rule:f,value:p,source:a,field:m}))})});var C={};return Do(y,o,function(m,w){var f=m.rule,A=(f.type==="object"||f.type==="array")&&(typeof f.fields=="object"||typeof f.defaultField=="object");A=A&&(f.required||!f.required&&m.value),f.field=m.field;function O(q,R){return ne(ne({},R),{},{fullField:f.fullField+"."+q})}function b(q){q===void 0&&(q=[]);var R=q;if(Array.isArray(R)||(R=[R]),!o.suppressWarning&&R.length&&fe.warning("async-validator:",R),R.length&&f.message!==void 0&&(R=[].concat(f.message)),R=R.map(In(f)),o.first&&R.length)return C[f.field]=1,w(R);if(!A)w(R);else{if(f.required&&!m.value)return f.message!==void 0?R=[].concat(f.message).map(In(f)):o.error&&(R=[o.error(f,G(o.messages.required,f.field))]),w(R);var T={};if(f.defaultField)for(var je in m.value)m.value.hasOwnProperty(je)&&(T[je]=f.defaultField);T=ne(ne({},T),m.rule.fields);for(var Z in T)if(T.hasOwnProperty(Z)){var tn=Array.isArray(T[Z])?T[Z]:[T[Z]];T[Z]=tn.map(O.bind(null,Z))}var xe=new fe(T);xe.messages(o.messages),m.rule.options&&(m.rule.options.messages=o.messages,m.rule.options.error=o.error),xe.validate(m.value,m.rule.options||o,function(Te){var ue=[];R&&R.length&&ue.push.apply(ue,R),Te&&Te.length&&ue.push.apply(ue,Te),w(ue.length?ue:null)})}}var M;f.asyncValidator?M=f.asyncValidator(f,m.value,b,m.source,o):f.validator&&(M=f.validator(f,m.value,b,m.source,o),M===!0?b():M===!1?b(f.message||f.field+" fails"):M instanceof Array?b(M):M instanceof Error&&b(M.message)),M&&M.then&&M.then(function(){return b()},function(q){return b(q)})},function(m){c(m)})},getType:function(e){if(e.type===void 0&&e.pattern instanceof RegExp&&(e.type="pattern"),typeof e.validator!="function"&&e.type&&!$e.hasOwnProperty(e.type))throw new Error(G("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),r=n.indexOf("message");return r!==-1&&n.splice(r,1),n.length===1&&n[0]==="required"?$e.required:$e[this.getType(e)]||!1}},fe.register=function(e,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");$e[e]=n},fe.warning=Fn,fe.messages=Mt,fe.validators=$e;var Jo={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 Xo(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new fe(t);return n.messages(Object.assign(Jo,e)),n}var Qo=new bn;function $t(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Zo(t){if(Array.isArray(t))return t}function Yo(t){if(Array.isArray(t))return $t(t)}function $n(t,e,n,r,u,a,o){try{var s=t[a](o),c=s.value}catch(l){n(l);return}s.done?e(c):Promise.resolve(c).then(r,u)}function On(t){return function(){var e=this,n=arguments;return new Promise(function(r,u){var a=t.apply(e,n);function o(c){$n(a,r,u,o,s,"next",c)}function s(c){$n(a,r,u,o,s,"throw",c)}o(void 0)})}}function es(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Pn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ts(t,e,n){return e&&Pn(t.prototype,e),n&&Pn(t,n),t}function ns(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ln(t,e){return e!=null&&typeof Symbol!="undefined"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function Nn(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function rs(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function is(){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 jn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable}))),r.forEach(function(u){ns(t,u,n[u])})}return t}function us(t){return Zo(t)||Nn(t)||xn(t,i)||rs()}function Ot(t){return Yo(t)||Nn(t)||xn(t)||is()}function xn(t,e){if(!!t){if(typeof t=="string")return $t(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 $t(t,e)}}var re=function(){function e(r){var u=this;es(this,e),this.setting=[],this.eventKeys=[],this.customEvents=[],this.parent=null,this.updateSetting=Vn,this.removeSetting=Tn,this._callControlHooks("preInstance",r);var a=Ln(this,e)?this.constructor:void 0,o=a.controlName,s=a.controlIcon,c=a.controlType,l=a.controlFieldType,d=a.controlEventKeys,p=a.controlCustomEvents,y=a.name,v=a.setting;o&&s&&c||pn("The ".concat(y," controlName,controlIcon,controlType is not define"));var C;this.id=(C=r==null?void 0:r.id)!==null&&C!==void 0?C:dt(10),this.name=o,this.icon=s;var m;this.type=(m=r==null?void 0:r.type)!==null&&m!==void 0?m:c,this.props=new ye(r==null?void 0:r.props,(Ln(this,e)?this.constructor:void 0).controlName);var w;this.controlType=(w=r==null?void 0:r.controlType)!==null&&w!==void 0?w:"base",this.setting=L(v);var f;this.fieldType=(f=r==null?void 0:r.fieldType)!==null&&f!==void 0?f:l,this.eventKeys=L(d),this.customEvents=L(p),Promise.resolve().then(function(){u._callControlHooks("postInstance",r)})}var n=e.prototype;return n._callControlHooks=function(){for(var u=arguments.length,a=new Array(u),o=0;o<u;o++)a[o]=arguments[o];var s,c=us(a),l=c[0],d=c.slice(1);return(s=Qo).emit.apply(s,[l,this].concat(Ot(d)))},n.preUpdate=function(u,a){this._callControlHooks("preUpdateProps",u,a)},n.postUpdate=function(u,a){this._callControlHooks("postUpdateProps",u,a)},n.updateProps=function(u,a){this.preUpdate(u,a),yn(this.props,u,a),this.postUpdate(u,a)},n.preValidate=function(){var u=this;return On(Y.mark(function a(){var o,s,c;return Y.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return o=jn({},u.rules),d.next=3,u._callControlHooks("preValidate",o);case 3:return s=d.sent,c=s[s.length-1],d.abrupt("return",c===!1?void 0:c);case 6:case"end":return d.stop()}},a)}))()},n.validate=function(u,a){var o=this;return On(Y.mark(function s(){var c,l,d;return Y.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,o.preValidate();case 2:return c=y.sent,l=c!==void 0?c:jn({},o.rules),Array.isArray(a)&&a.forEach(function(v){l.hasOwnProperty(v)&&delete l[v]}),d=Xo(l,u),y.prev=6,y.next=9,d.validate(o.props);case 9:return y.abrupt("return",!0);case 12:throw y.prev=12,y.t0=y.catch(6),y.t0.control||(y.t0.control=o),y.t0;case 16:case"end":return y.stop()}},s,null,[[6,12]])}))()},n.toDataBindModel=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,a=this.fieldType,o=this.id,s=this.type,c=this.props,l=c.dataBind,d=c.datasourceBind,p=c.optionConfig,y=c.caption,v=c.required,C=c.maxLength,m=c.options,w=c.encrypted,f=c.encryptedMode;if(!(!a&&!l&&!d)){var A={parentId:u,fieldType:a,controlId:o,caption:y,type:s,props:{}};switch(l&&(A.dataBind=l),p){case"datasource":case void 0:d&&(A.datasourceBind=d);break;case"custom":A.props.options=m;break}return v!==void 0&&(A.required=v),C!==void 0&&(A.maxLength=C),w!==void 0&&(A.encrypted=w),f!==void 0&&(A.encryptedMode=f),A}},n.preToSchema=function(){this._callControlHooks("preToSchema",this)},n.toSchema=function(){return this.preToSchema(),{id:this.id,type:this.type,props:L(this.props),fieldType:this.fieldType,controlType:this.controlType}},e.updateBasicControl=function(u,a){if(u==="setting"){if(a.add){var o;(o=this.setting).push.apply(o,Ot(a.add))}a.remove&&this.removeSettingItem(a.remove),a.update}},ts(e,[{key:"rules",get:function(){var u=this.props.constructor.Rules;return u?new u(this.props):{}}}]),e}();re.controlName="\u63A7\u4EF6",re.controlIcon="icon",re.controlType="control",re.controlEventKeys=[],re.controlCustomEvents=[],re.setting=[],re.__is_control__=!0,re.removeSettingItem=Tn,re.updateSettingItem=Vn;function Tn(t){var e=this,n=Array.isArray(t)?t:[t];n.forEach(function(r){var u=typeof r!="string",a=e.setting.findIndex(function(c){return c.key===(u?r.key:r)});if(a!==-1){var o,s;u?e.setting[a].showItems=(o=e.setting[a].showItems)===null||o===void 0?void 0:o.filter(function(c){return!r.hideItems.includes(c)}):e.setting.splice(a,1),u&&!(!((s=e.setting[a].showItems)===null||s===void 0)&&s.length)&&e.setting.splice(a,1)}})}function Vn(t,e){var n=this,r=typeof t=="string"?[t]:t;r.forEach(function(u){var a=n.setting.find(function(l){return l.key===u});if(a){if(typeof e=="boolean")a.visible=e;else if(typeof e=="object"){var o,s=(o=e.type)!==null&&o!==void 0?o:"replace";if(s==="replace")a.showItems=e.showItems;else{var c;(c=a.showItems).push.apply(c,Ot(e.showItems))}}}})}function as(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function os(t,e,n){return e&&qn(t.prototype,e),n&&qn(t,n),t}function ss(t,e){return e!=null&&typeof Symbol!="undefined"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}var Ae=function(){function e(n){as(this,e),this.customEvents=[],this.parent=null;var r=ss(this,e)?this.constructor:void 0,u=r.controlType,a=r.controlFieldType,o=r.name,s=r.controlCustomEvents;u||pn("The ".concat(o," controlType is not define"));var c;this.id=(c=n==null?void 0:n.id)!==null&&c!==void 0?c:dt(10);var l;this.type=(l=n==null?void 0:n.type)!==null&&l!==void 0?l:u,this.props=new ye(n==null?void 0:n.props),this.customEvents=s;var d;this.controlType=(d=n==null?void 0:n.controlType)!==null&&d!==void 0?d:"base";var p;this.fieldType=(p=n==null?void 0:n.fieldType)!==null&&p!==void 0?p:a;var y;this.pageStatus=(y=n==null?void 0:n.pageStatus)!==null&&y!==void 0?y:Ct.UNKNOWN}return os(e,[{key:"rules",get:function(){var r=this.props.constructor.RuntimeRules;if(r){var u=new r(this.props);return Array.from(u)}return[]}}]),e}();Ae.controlType="control",Ae.__is_control__=!0,Ae.controlCustomEvents=[];function cs(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Pt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function et(t){return et=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},et(t)}function Lt(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&&Nt(t,e)}function ls(t,e){return e!=null&&typeof Symbol!="undefined"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function fs(t,e){return e&&(ds(e)==="object"||typeof e=="function")?e:cs(t)}function Nt(t,e){return Nt=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Nt(t,e)}var ds=function(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t};function hs(){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 jt(t){var e=hs();return function(){var r=et(t),u;if(e){var a=et(this).constructor;u=Reflect.construct(r,arguments,a)}else u=r.apply(this,arguments);return fs(this,u)}}var ps=function(t){Lt(n,t);var e=jt(n);function n(r){Pt(this,n);var u;u=e.call(this,r),u.dataBind={},u.caption={type:"string",required:!0,message:X.getMessage("pleaseEnterCaption")},u.isHideCaption={type:"boolean"},u.labelPosition={type:"enum",enum:["top","left"]},u.defaultState={type:"enum",enum:["default","readonly"]},u.required={type:"boolean"},u.captionTip={type:"string",required:!1,message:X.getMessage("pleaseEnterCaptionTip")};var a={fieldCode:{type:"string",required:!0,message:X.getMessage("pleaseEnterFieldCode")},dataCode:{type:"string",required:!0,message:X.getMessage("pleaseEnterFieldCode")}};if(ls(r.dataBind,De))u.dataBind={type:"object",required:!0,fields:L(a),message:X.getMessage("pleaseEnterFieldCode")};else{var o={type:"object",required:!0,fields:{},message:X.getMessage("pleaseEnterFieldCode")};Object.keys(r.dataBind).forEach(function(s){o.fields[s]={type:"object",required:!0,fields:L(a),message:X.getMessage("pleaseEnterFieldCode")}}),u.dataBind=o}return r.isShowCaptionTip&&(u.captionTip.required=!0),u}return n}(wn),gs=function(t){Lt(n,t);var e=jt(n);function n(r){Pt(this,n);var u;return u=e.call(this,r),u.push({type:"string",required:r.isHide?!1:r.required,message:r.requiredMessage!==""?r.requiredMessage:X.getMessage("runtimeRequired",{caption:r.caption})}),u}return n}(Sn),xt=function(t){Lt(n,t);var e=jt(n);function n(r){Pt(this,n);var u;u=e.call(this,r);var a;u.caption=(a=r==null?void 0:r.caption)!==null&&a!==void 0?a:"";var o;u.isHideCaption=(o=r==null?void 0:r.isHideCaption)!==null&&o!==void 0?o:!1;var s;u.isShowCaptionTip=(s=r==null?void 0:r.isShowCaptionTip)!==null&&s!==void 0?s:!1;var c;u.captionTip=(c=r==null?void 0:r.captionTip)!==null&&c!==void 0?c:"";var l;u.defaultState=(l=r==null?void 0:r.defaultState)!==null&&l!==void 0?l:"default";var d;u.labelPosition=(d=r==null?void 0:r.labelPosition)!==null&&d!==void 0?d:"top";var p;u.placeholder=(p=r==null?void 0:r.placeholder)!==null&&p!==void 0?p:"";var y;u.required=(y=r==null?void 0:r.required)!==null&&y!==void 0?y:!1;var v;u.requiredMessage=(v=r==null?void 0:r.requiredMessage)!==null&&v!==void 0?v:"",u.dataBind=new De(r==null?void 0:r.dataBind);var C;return u.defaultValue=(C=r==null?void 0:r.defaultValue)!==null&&C!==void 0?C:"",u}return n}(ye);xt.Rules=ps,xt.RuntimeRules=gs;function ys(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tt(t){return tt=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},tt(t)}function ms(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&&Tt(t,e)}function Es(t,e){return e&&(bs(e)==="object"||typeof e=="function")?e:ys(t)}function Tt(t,e){return Tt=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Tt(t,e)}var bs=function(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t};function As(){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 Cs(t){var e=As();return function(){var r=tt(t),u;if(e){var a=tt(this).constructor;u=Reflect.construct(r,arguments,a)}else u=r.apply(this,arguments);return Es(this,u)}}var ie=function(t){ms(n,t);var e=Cs(n);function n(r){vs(this,n);var u;return u=e.call(this,r),u.controlType="form",u.props=new xt(r==null?void 0:r.props),u}return n}(Ae);function Bs(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ws(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function nt(t){return nt=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},nt(t)}function Ss(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&&Vt(t,e)}function Fs(t,e){return e&&(_s(e)==="object"||typeof e=="function")?e:Bs(t)}function Vt(t,e){return Vt=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Vt(t,e)}var _s=function(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t};function Ds(){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 Is(t){var e=Ds();return function(){var r=nt(t),u;if(e){var a=nt(this).constructor;u=Reflect.construct(r,arguments,a)}else u=r.apply(this,arguments);return Fs(this,u)}}var Un=function(t){Ss(n,t);var e=Is(n);function n(r){return ws(this,n),e.call(this,r)}return n}(ye);function qt(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Rs(t){if(Array.isArray(t))return qt(t)}function Ms(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function $s(){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 kn(t){return Rs(t)||Ms(t)||Os(t)||$s()}function Os(t,e){if(!!t){if(typeof t=="string")return qt(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 qt(t,e)}}function Ps(t,e){var n;!((n=Object.getOwnPropertyDescriptors(t)[e])===null||n===void 0)&&n.enumerable&&Object.defineProperty(t,e,{enumerable:!1})}function Hn(t,e){t.parent=e,Ps(t,"parent")}function Ls(t,e){t.forEach(function(n){Hn(n,e)})}var Wn=Symbol("targetKey");function zn(t){var e;return(e=t[Wn])!==null&&e!==void 0?e:t}function Gn(t,e){return Ls(t,e),new Proxy(t,{get:function(r,u){for(var a=arguments.length,o=new Array(a>2?a-2:0),s=2;s<a;s++)o[s-2]=arguments[s];var c;return u===Wn?r:(c=Reflect).get.apply(c,[r,u].concat(kn(o)))},set:function(r,u,a){for(var o=arguments.length,s=new Array(o>3?o-3:0),c=3;c<o;c++)s[c-3]=arguments[c];var l;if(Ee(t)&&u==="length"&&a===t.length)return!0;var d=(l=Reflect).set.apply(l,[r,u,a].concat(kn(s)));return te(a)&&Hn(a,e),d}})}function rt(t,e,n,r){var u=r!=null?r:t,a=Gn(zn(n!=null?n:[]),u);Object.defineProperty(t,e,{get:function(){return a},set:function(s){a=Gn(zn(s),u)},enumerable:!0})}function Ut(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ns(t){if(Array.isArray(t))return Ut(t)}function Kn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Jn(t,e,n,r,u,a,o){try{var s=t[a](o),c=s.value}catch(l){n(l);return}s.done?e(c):Promise.resolve(c).then(r,u)}function js(t){return function(){var e=this,n=arguments;return new Promise(function(r,u){var a=t.apply(e,n);function o(c){Jn(a,r,u,o,s,"next",c)}function s(c){Jn(a,r,u,o,s,"throw",c)}o(void 0)})}}function xs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ts(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ce(t,e,n){return typeof Reflect!="undefined"&&Reflect.get?Ce=Reflect.get:Ce=function(u,a,o){var s=Ks(u,a);if(!!s){var c=Object.getOwnPropertyDescriptor(s,a);return c.get?c.get.call(o):c.value}},Ce(t,e,n||t)}function de(t){return de=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},de(t)}function Vs(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&kt(t,e)}function qs(t,e){return e!=null&&typeof Symbol!="undefined"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function Us(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ks(){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 Hs(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable}))),r.forEach(function(u){Ts(t,u,n[u])})}return t}function Ws(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),n.push.apply(n,r)}return n}function zs(t,e){return e=e!=null?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Ws(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}function Gs(t,e){return e&&(Js(e)==="object"||typeof e=="function")?e:Kn(t)}function kt(t,e){return kt=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},kt(t,e)}function Ks(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=de(t),t!==null););return t}function Xn(t){return Ns(t)||Us(t)||Xs(t)||ks()}var Js=function(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t};function Xs(t,e){if(!!t){if(typeof t=="string")return Ut(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 Ut(t,e)}}function Qs(){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 Zs(t){var e=Qs();return function(){var r=de(t),u;if(e){var a=de(this).constructor;u=Reflect.construct(r,arguments,a)}else u=r.apply(this,arguments);return Gs(this,u)}}var Ys=1e4,Qn=function(e){Vs(r,e);var n=Zs(r);function r(a){xs(this,r);var o;o=n.call(this,a),o.controlType="layout";var s=qs(this,r)?this.constructor:void 0,c=s.excludes,l=s.childrenMaxLength;return o.props=new Un(a==null?void 0:a.props),rt(Kn(o),"children",a==null?void 0:a.children),o.excludes=L(c),o.childrenMaxLength=l,o}var u=r.prototype;return u.judgeExcludesChildren=function(o){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(o)},u.judgeJoinChildren=function(o){var s=this.judgeExcludesChildren(o);return s&&this.childrenMaxLength>this.children.length},u.validate=function(o,s){var c=this,l=this,d=function(){return Ce(de(r.prototype),"validate",c)};return js(Y.mark(function p(){return Y.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,d().call(l,o,s);case 2:return v.next=4,Promise.all(l.children.map(function(C){return C.validate(o,s)}));case 4:return v.abrupt("return",!0);case 5:case"end":return v.stop()}},p)}))()},u.toDataBindModel=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,s=Ce(de(r.prototype),"toDataBindModel",this).call(this),c=s?[s]:[];return this.children.reduce(function(l,d){var p=d.toDataBindModel(o);if(Array.isArray(p)){var y=p.filter(function(v){return!!v});return Xn(l).concat(Xn(y))}return p&&l.push(p),l},c)},u.toSchema=function(){var o=Ce(de(r.prototype),"toSchema",this).call(this),s=this.children.map(function(c){var l=c.toSchema();return l});return zs(Hs({},o),{children:s})},r}(re);Qn.excludes=!1,Qn.childrenMaxLength=Ys;function Zn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ec(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function it(t){return it=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},it(t)}function tc(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&&Ht(t,e)}function nc(t,e){return e&&(rc(e)==="object"||typeof e=="function")?e:Zn(t)}function Ht(t,e){return Ht=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Ht(t,e)}var rc=function(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t};function ic(){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 uc(t){var e=ic();return function(){var r=it(t),u;if(e){var a=it(this).constructor;u=Reflect.construct(r,arguments,a)}else u=r.apply(this,arguments);return nc(this,u)}}var ac=function(t){tc(n,t);var e=uc(n);function n(r){ec(this,n);var u;return u=e.call(this,r),u.controlType="layout",u.props=new Un(r==null?void 0:r.props),rt(Zn(u),"children",r==null?void 0:r.children),u}return n}(Ae);function Yn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function oc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ut(t){return ut=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ut(t)}function sc(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&&Wt(t,e)}function cc(t,e){return e&&(lc(e)==="object"||typeof e=="function")?e:Yn(t)}function Wt(t,e){return Wt=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Wt(t,e)}var lc=function(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t};function fc(){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 dc(t){var e=fc();return function(){var r=ut(t),u;if(e){var a=ut(this).constructor;u=Reflect.construct(r,arguments,a)}else u=r.apply(this,arguments);return cc(this,u)}}var hc=function(t){sc(n,t);var e=dc(n);function n(r,u){oc(this,n);var a;return a=e.call(this,u),rt(Yn(a),"headers",u==null?void 0:u.headers,r),a}return n}(ye);_.LIST;function zt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function pc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function er(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function gc(t,e,n){return e&&er(t.prototype,e),n&&er(t,n),t}function at(t){return at=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},at(t)}function yc(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&&Gt(t,e)}function vc(t,e){return e&&(mc(e)==="object"||typeof e=="function")?e:zt(t)}function Gt(t,e){return Gt=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Gt(t,e)}var mc=function(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t};function Ec(){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 bc(t){var e=Ec();return function(){var r=at(t),u;if(e){var a=at(this).constructor;u=Reflect.construct(r,arguments,a)}else u=r.apply(this,arguments);return vc(this,u)}}var ot=function(t){yc(n,t);var e=bc(n);function n(r){pc(this,n);var u;return u=e.call(this,r),u.controlType="list",u.props=new hc(zt(u),r==null?void 0:r.props),rt(zt(u),"children",r==null?void 0:r.children),u}return gc(n,[{key:"length",get:function(){return this.children.length}}]),n}(Ae);function st(t){return t.controlType===ee.LAYOUT||t.controlType===ee.WRAP||t.controlType===ee.LIST||t.controlType===ee.SEARCH}function Oe(t,e){Array.isArray(t)&&t.map(n=>{if(n.type===I.SUBTABLE){const r=n.getChildrenFormControl();e(n,r)}else st(n)?Oe(n==null?void 0:n.children,e):n instanceof ie&&e(n)})}function Pe(t,e){Array.isArray(t)&&t.map(n=>{n.type===I.DATA_VIEW||n.type===I.SIMPLE_SEARCH?e(n):st(n)&&Pe(n==null?void 0:n.children,e)})}class Kt extends ze{constructor(e){super("Runtime"),this._flatInstances=[],this._instanceMap={};const{schema:n}=e;this._schema=n,this._instance=this.createControl(n,e.beforeCreateInstance),this.getFlatInstances()}getFlatInstances(){const e=[],n={};return tr(this._instance,r=>{e.push(r),n[r.id]||(n[r.id]=[]),n[r.id].push(r)}),this._flatInstances=e,this._instanceMap=n,this._flatInstances}get schema(){return this._schema}get instance(){return this._instance}get flatInstances(){return this._flatInstances}get instanceMap(){return this._instanceMap}get rules(){let e={};return Pe(this._instance,n=>{e[n.id]=n.rules[0],Oe(n.children,r=>{(r instanceof ie||r instanceof ot)&&Ac(e[n.id].fields,r)})}),e}get antdRules(){let e={};return Pe(this._instance,n=>{e[n.id]=n.rules[0],Oe(n.children,r=>{(r instanceof ie||r instanceof ot)&&Cc(e[n.id].fields,r)})}),e}}function tr(t,e){Array.isArray(t)?t.map(n=>{e(n),st(n)&&tr(n.children,e)}):e(t)}function Jt(t){return t.props.isHide?!0:t.parent===null?!1:Jt(t.parent)}function Ac(t,e){if(!Jt(e)){if(e instanceof ie)t[e.id]=e.rules;else if(e.type===I.SUBTABLE){t[e.id]=e.rules;const n={type:"array",fields:{}};e.children.forEach((r,u)=>{pe(r.children,a=>{n.fields&&(n.fields[u]||(n.fields[u]={type:"object",required:!0,fields:{}}),n.fields[u].fields[a.id]=a.rules)})}),t[e.id].push(n)}}}function Cc(t,e){Jt(e)||(e instanceof ie?t[e.id]=e.rules:e.type===I.SUBTABLE&&e.children.length&&(t[e.id]=[],e.children.forEach(n=>{let r={};pe(n.children,u=>{r[u.id]=u.rules}),t[e.id].push(r)})))}class Bc{constructor(e){const{state:n,emptyState:r,databindMapping:u,controlidMapping:a}=wc(e.instance);this.emptyState=r,this.state=n,this.dataBindMapping=u,this.controlIdMapping=a}setState(e,n,r){const u=this.controlIdMapping[e];u!==void 0?this.state[u.dataView][e]=n:r!==void 0?Object.keys(this.controlIdMapping).map(a=>{const o=this.controlIdMapping[a].dataView,s=this.controlIdMapping[a].children;s!==void 0&&Object.keys(s).map(c=>{c===e&&(this.state[o][a][r][e]=n)})}):this.state[e]=n}getState(e,n){if(this.state[e]!==void 0)return this.state[e];{const u=this.controlIdMapping[e];if(u!==void 0)return this.state[u.dataView][e];if(n!==void 0){let a;return Object.keys(this.controlIdMapping).map(o=>{const s=this.controlIdMapping[o].dataView,c=this.controlIdMapping[o].children;c!==void 0&&Object.keys(c).map(l=>{var d;l===e&&(a=(d=this.state[s][o][n])==null?void 0:d[e])})}),a}else{let a=[];return Object.keys(this.controlIdMapping).map(o=>{const s=this.controlIdMapping[o].dataView,c=this.controlIdMapping[o].children;c!==void 0&&Object.keys(c).map(l=>{l===e&&this.state[s][o].map(d=>{a.push(d[e])})})}),a}}}getEmptyState(e){if(this.emptyState[e]!==void 0)return this.emptyState[e];{const r=this.controlIdMapping[e];if(r!==void 0)return this.emptyState[r.dataView][e];{let u;return Object.keys(this.controlIdMapping).map(a=>{const o=this.controlIdMapping[a].dataView,s=this.controlIdMapping[a].children;s!==void 0&&Object.keys(s).map(c=>{c===e&&(u=this.emptyState[o][a][e])})}),u}}}getDataBind(e){let n=this.controlIdMapping[e];if(n)return n.dataBind;e:for(let r in this.controlIdMapping){const u=this.controlIdMapping[r];if(u.children){for(let a in u.children)if(a===e){n=u.children[a];break e}}}return n==null?void 0:n.dataBind}}function wc(t){let e={},n={},r={},u={};return Pe(t,a=>{const o=a.id,s={},c={};Oe([a],(l,d)=>{Sc(s,c,l),Fc(r,o,l),_c(u,o,l)}),e[o]=s,n[o]=c}),{state:e,emptyState:n,databindMapping:r,controlidMapping:u}}function Sc(t,e,n){var r;if(n instanceof ie)t[n.id]=L(n.props.defaultValue),e[n.id]=L(n.props.defaultValue);else{const u={};pe(n.props.headers,a=>{u[a.id]=L(a.props.defaultValue)}),t[n.id]=new Array((r=n.props.defaultRows)!=null?r:1).fill(0).map(()=>L(u)),e[n.id]=u}}function Fc(t,e,n){if(n instanceof ie)n.props.dataBind instanceof le?Object.keys(n.props.dataBind).map(r=>{const u=n.props.dataBind,a=u[r].dataCode;a!==void 0&&(t[a]===void 0&&(t[a]={controlId:n.id,fields:[],dataViewId:e}),t[a].fields.push({fieldCode:u[r].fieldCode,controlId:n.id,dataBind:u,dataViewId:[e]}))}):(t[n.props.dataBind.dataCode]===void 0&&(t[n.props.dataBind.dataCode]={controlId:e,fields:[],dataViewId:e}),t[n.props.dataBind.dataCode].fields.push({fieldCode:n.props.dataBind.fieldCode,controlId:n.id,dataBind:n.props.dataBind,dataViewId:[e]}));else{if(n.props.datasourceBind.dataCode===""){ce(`datasourceBind.dataCode is empty! maybe in preview mode, control:${n.id} type:${n.type}`);return}t[n.props.datasourceBind.dataCode]={controlId:n.id,fields:[],dataViewId:e};const r=n.id;pe(n.props.headers,u=>{u.props.dataBind instanceof le?Object.keys(u.props.dataBind).map(a=>{const o=u.props.dataBind,s=o[a].dataCode;t[s].fields.push({fieldCode:o[a].fieldCode,controlId:u.id,dataBind:o,dataViewId:[e,r]})}):t[u.props.dataBind.dataCode].fields.push({fieldCode:u.props.dataBind.fieldCode,controlId:u.id,dataBind:u.props.dataBind,dataViewId:[e,r]})})}}function _c(t,e,n){n instanceof ie?t[n.id]={dataBind:n.props.dataBind,options:[],dataView:e}:n.type===I.SUBTABLE&&(t[n.id]={dataBind:new De({dataCode:n.props.datasourceBind.dataCode,fieldCode:""}),dataView:e,children:{},options:[]},pe(n.props.headers,r=>{var u,a;Object.assign((a=(u=t[n.id])==null?void 0:u.children)!=null?a:{},{[r.id]:{dataBind:r.props.dataBind}})}))}const nr=["splice","push","shift","pop","unshift","reverse"],Xt=Symbol("__engineProxy__"),Qt=Symbol("__engineTarget__"),rr=Symbol("__engineArrayBeforeSetCallbackFlag__"),ir=Symbol("__engineProxyThisKey__"),Q={type:"",args:[],callback:ur};function ur(){}$c();function Dc(t,e,n,r,u){if(Q.type){Q.callback=u.bind(null,t,r);return}const a=Number(e);if(a>t.length){se(`Wrong array operations may cause unknown errors. It is recommended to use APIs such as ${nr.join(",")} for array operations`);return}if(!(Number.isNaN(a)&&e!=="length"))if(e==="length"){const s=n,c=t.length;if(s>t.length){se("Do not directly modify the length of the array data, please add new rows");return}return s===t.length?void 0:()=>u.call(null,t,r,"splice",[s,c-s])}else return a===t.length?()=>u.call(null,t,r,"push",[n]):()=>u.call(null,t,r,"splice",[a,1,n])}function Ic(t,e,n){return{__engineProxy__:!0,get(r,u,a){return u===Xt?!0:u===Qt?r:Array.isArray(r)&&u===rr?n:u===ir?t:Reflect.get(r,u,a)},set(r,u,a,o){var y;let s=a;const c=r[u],l=t===""?u:t+"."+u;function d(v){if(typeof v=="object"&&v!==null)return v[Xt]!==!0?ct(v,e,n,l):ct(v[Qt],e,n,l)}s=(y=d(a))!=null?y:s;let p;if(Array.isArray(r)){const v=Dc(r,u,a,t,e);p=Reflect.set(r,u,s,o),v&&v()}else{try{let v=s;if(s=n.call(null,r,l,s,c),v!==s){const C=d(s);C!==void 0&&(s=C)}}catch(v){return ke(`${l} set error ${v}`),!0}p=Reflect.set(r,u,s,o),e.call(null,r,l,a,c)}return p}}}function ct(t,e,n,r=""){if(Object.isFrozen(t))return t;for(let u in t){const a=r===""?u:r+"."+u,o=t[u];typeof o=="object"&&o!==null&&(t[u]=ct(o,e,n,a))}return new Proxy(t,Ic(r,e,n))}function ar(t){const e=[];return t.forEach(n=>{e.push(n),n.controlType==="layout"&&e.push(...ar(n.children))}),e}function Zt(t,e){if(e==="")return;const n=e.split(".");if(n.length===0)return;const r=n[0],u=n.slice(1),a=t.find(o=>o.id===r);return u.length===0?a:u.reduce((o,s)=>{var d,p;const c=Number(s);if(Number.isNaN(c)){const y=o!=null&&o.children?ar(o.children):void 0,v=y==null?void 0:y.find(C=>C.id===s);return v||(o instanceof ie?o:void 0)}else return(p=(d=o==null?void 0:o.children)==null?void 0:d[c])!=null?p:o},a)}function Rc(t,e){return["push","unshift"].includes(t)?e:t==="splice"?e.slice(2):[]}function Mc(t,e,n){if(["push","unshift"].includes(t))return n;if(t==="splice")return e.slice(0,2).concat(n)}function $c(){nr.forEach(t=>{const e=Array.prototype[t];Array.prototype[t]=function(...n){var r;if(this[Xt]){let u;const a=Rc(t,n);if(a.length){const o=(r=this[rr])==null?void 0:r.call(this,this[Qt],this[ir],a),s=Mc(t,n,o);Q.type=t,Q.args=s,u=e.apply(this,s)}else Q.type=t,Q.args=n,u=e.apply(this,n);return typeof Q.callback=="function"&&Q.callback(t,n,u),Q.type="",Q.args=[],Q.callback=ur,u}else return e.apply(this,n)}})}class Oc{constructor(){this.actionMap=new Map,this.buildinActions={},this.actionUtils={},this.sources={}}execAction(e,n,...r){return ae(this,null,function*(){const u=this.actionMap.get(e);if(!!u)try{return yield u.func.call(null,n,...r)}catch(a){ke(`${u.id} Exception during calling action: ${a}`)}})}addAction(e,n){this.actionMap.has(e)&&se("duplicated action key");const r=new Pc(e,n);this.actionMap.set(e,r)}}class Pc{constructor(e,n){this.id="",this.id=e,this.func=n}}class Lc{constructor(e){this._dataStore=new Map,this.executer=e}add(e,n){this._dataStore.set(e,n)}get(e){let n=this._dataStore.get(e);return L(n)}remove(e){this._dataStore.delete(e)}getRemoteData(e){return ae(this,null,function*(){return this.executer===void 0?(ke("\u672A\u521D\u59CB\u5316executer"),[]):this.executer(e)})}}class he{}class Le extends he{validate(e){return z(e)}transform(e){if(e==null)return"";if(!te(e)&&!vn(e))return String(e);if(Ya(e))return JSON.stringify(e);throw`${e} is not a string`}}class Yt extends he{validate(e){return He(e)||e===""}transform(e){if(e==null)return"";const n=!te(e)&&!vn(e)?Number(e):void 0;if(!Number.isNaN(n)&&n!==void 0)return n;throw`${e} is not a number`}}class Nc extends he{validate(e){return eo(e)}transform(e){if(e==null)return[];function n(r){return r.map(u=>u?String(u):"")}if(Ee(e))return n(e);if(z(e)&&mn(e))try{const r=JSON.parse(e);if(Array.isArray(r))return n(r)}catch(r){}return[String(e)]}}class jc extends he{validate(e){return to(e)}transform(e){if(e==null)return[];function n(u){return u.map(a=>!a&&a!==0?"":Number(a)).filter(a=>a===""||!Number.isNaN(a))}if(Ee(e))return n(e);if(z(e)&&mn(e))try{const u=JSON.parse(e);if(Ee(u))return n(u)}catch(u){}const r=Number(e);if(Number.isNaN(r))throw`${e} is not a number array`;return[r]}}class xc extends he{validate(e){return e instanceof Ge||te(e)&&"amount"in e&&He(e.amount)&&"currency"in e&&z(e.currency)}transform(e,n){if(e==null||e==="")return new Ge({currency:n==null?void 0:n.currency});let r;if(te(e)&&(r=new Ge(x(x({},n),e))),z(e)&&We(e))try{const u=JSON.parse(e);r=new Ge(x(x({},n),u))}catch(u){}if(r){const u=new Yt,a=new Le;return u.validate(r.amount)||(r.amount=u.transform(r.amount)),a.validate(r.currency)||(r.currency=a.transform(r.currency)),r}throw`${e} is not a { amount: number, currency: string } object`}}class Tc extends he{validate(e){return e instanceof Ke||te(e)&&"min"in e&&z(e.min)&&"max"in e&&z(e.max)}transform(e,n){if(e==null||e==="")return new Ke;let r;if(te(e)&&(r=new Ke(x(x({},n),e))),z(e)&&We(e))try{const u=JSON.parse(e);r=new Ke(x(x({},n),u))}catch(u){}if(r){const u=new Le;return u.validate(r.min)||(r.min=u.transform(r.min)),u.validate(r.max)||(r.max=u.transform(r.max)),r}throw`${e} is not a { min: string, max: string } object`}}class Vc extends he{validate(e){return e instanceof Xe||te(e)&&"result"in e&&He(e.result)&&"unit"in e&&z(e.unit)}transform(e,n){if(e==null||e==="")return new Xe({unit:n==null?void 0:n.unit});let r;if(te(e)&&(r=new Xe(x(x({},n),e))),z(e)&&We(e))try{const u=JSON.parse(e);r=new Xe(x(x({},n),u))}catch(u){}if(r){const u=new Yt,a=new Le;return u.validate(r.result)||(r.result=u.transform(r.result)),a.validate(r.unit)||(r.unit=a.transform(r.unit)),r}throw`${e} is not a { result: string, unit: string } object`}}class qc extends he{validate(e){return e instanceof Je}transform(e,n){if(e==null||e==="")return new Je;let r;if(te(e)&&(r=new Je(x(x({},n),mt.exports.camelizeKeys(e)))),z(e)&&We(e))try{const u=JSON.parse(e);r=new Je(x(x({},n),mt.exports.camelizeKeys(u)))}catch(u){}if(r){const u=new Le;return u.validate(r.city)||(r.city=u.transform(r.city)),u.validate(r.district)||(r.district=u.transform(r.district)),u.validate(r.province)||(r.province=u.transform(r.province)),r}throw`${e} is not a { city: string, district: string, province: string } object`}}class Uc{static getValueChecker(e){let n;switch(e){case _.VARCHAR:case _.TIMESTAMP:case _.TEXT:case _.RELATION:case _.AUTO_NUMBER:n=new Le;break;case _.DECIMAL:n=new Yt;break;case _.EMPLOYEES:case _.DEPARTMENTS:case _.IMAGE:case _.FILE:case _.ARRAY:n=new Nc;break;case _.MONEY:n=new xc;break;case _.TIMESCOPE:n=new Tc;break;case _.CALC:n=new Vc;break;case _.DECIMAL_RANGE:n=new jc;break;case _.ADDRESS:n=new qc;break}return n}}function kc(t){if(["min","max","currency","unit"].includes(t))return _.VARCHAR;if(["result","amount"].includes(t))return _.DECIMAL}function or(t,e,n,r){var o;let u=(o=kc(e))!=null?o:t,a=Uc.getValueChecker(u);if(!a||a.validate(n))return n;try{const s=a.transform(n,r);return s!==void 0?s:n}catch(s){throw`${e} ${s}`}}function Hc(t,e,n){return Object.entries(t).reduce((r,[u,a])=>{const o=e[u];return r[u]=or(a,u,o,n[u]),r},Object.assign({},e))}typeof window!="undefined"&&(window.engines={});let Be=null,Ne="";class en extends bn{constructor(e){super(),this.isMounted=!1,this.id=dt(8),this.__pluginsApplied=!1,this.actionManager=new Oc,this._jobTasks=[],this.createControlInstance=this.createInstance,this.$options=Object.freeze(e);const{autoMount:n=!0,schema:r,beforeCreateInstance:u,externalParams:a,language:o=on,debug:s=!1}=this.$options;X.setLocale(o),this.debug=s,this.runtime=new Kt({schema:r,beforeCreateInstance:u}),this.externalParams=a,this.store=new Bc({instance:this.runtime.instance}),this.debugLog("engine is Instantiation complete"),n&&this.mount()}debugLog(...e){this.debug&&yt(...e)}use(e){return this.__pluginsApplied||this.__plugins.push(e),this}registerControl(...e){return this.runtime.register(...e),this}static register(...e){return Kt.register(...e)}static judgeControlIsRegistered(e){return Kt.staticRegisteredTypes.has(e.Runtime.controlType)}mount(){this.debugLog("engine\u7684mount\u65B9\u6CD5\u5F00\u59CB\u8C03\u7528");const{plugins:e=[]}=this.$options;this._handlerProxyState(),this.__plugins=e,this.applyPlugins(),this.setStates(this.getState()),this.debugLog("engine\u7684mount\u65B9\u6CD5\u8C03\u7528\u7ED3\u675F"),this.debug&&typeof window!="undefined"&&(window.engines[this.id]=this)}destroy(){this.debug&&typeof window!="undefined"&&delete window.engines[this.id]}_handlerProxyState(){this.store.state=ct(this.store.state,this._proxyStateCallback.bind(this),this._proxyStateBeforeSetCallback.bind(this))}_proxyStateBeforeSetCallback(e,n,r,u){const a=Zt(this.runtime.flatInstances,n);if(!a)return r;if(this.assertInstance(a,I.SUBTABLE)){const c=a.props.headers.reduce((l,d)=>{const p=d.children[0];return p&&p instanceof ie&&(l[p.id]=p.fieldType),l},{});return r===null?[]:r.map(l=>Hc(c,l,this.getEmptyState(a.id)))}const o=n.split("."),s=o[o.length-1];try{return or(a.fieldType,s,r,u)}catch(c){throw ce(`the id=${a.id}'s instance setState error, %o ${c}.`,r),c}}_proxyStateCallback(e,n,r,u,a){Array.isArray(e)?this._handlerArrayUpdate(e,n,r,u,a):this._handlerObjectUpdate(e,n,r,u)}_handlerArrayUpdate(e,n,r,u,a){const o=Zt(this.runtime.flatInstances,n);if(!(o instanceof ot))return;const s=y=>{const v=[];for(let C=0;C<y;C++){const m=this.listControlCreateRow(o,"subtable-row");m&&v.push(m)}return v},c=Be;let l=[],d=[],p=[];if(r&&u){switch(r){case"push":case"unshift":const y=u.length;l=s(y),d=u,o.children[r](...l),this.runtime.getFlatInstances();break;case"splice":if(u.length>2){const v=u.length-2,C=u.slice(2);l=s(v),d=C;const m=u[0],w=u[1];o.children[r](m,w,...l),this.runtime.getFlatInstances()}else o.children[r](...u),this.runtime.getFlatInstances();break;default:o.children[r](...u),this.runtime.getFlatInstances();break}r==="splice"?p=a:["pop","shift"].includes(r)&&(p=[a]),this.emit("list-change",{instance:o,value:this.getState(o.id),options:Object.assign({},c,{changed:l,data:d,deleted:p!=null?p:[]})}),Be=null}}_handlerObjectUpdate(e,n,r,u){const a=Zt(this.runtime.flatInstances,n);if(!a)return;const o=this.getInstanceRowIndex(a),s=Be||{};if(a instanceof ot){a.children.length=0;const c=r;let l=[];for(let d=0;d<c.length;d++){const p=this.listControlCreateRow(a,"subtable-row");p&&l.push(p)}a.children.push(...l),this.runtime.getFlatInstances(),this.emit("list-change",{instance:a,value:r,options:an(x({},s),{changed:l,data:c,deleted:u!=null?u:[]})})}else this.emit("change",{instance:a,value:this.getState(a.id,o),rowIndex:o,options:an(x({},s),{oldValue:u})})}applyPlugins(){this.__pluginsApplied||(this.__plugins.forEach(e=>{var n;try{Ne=(n=e.pluginName)!=null?n:e.constructor.name,e.apply(this)}catch(r){se(`${Ne} Plugin apply Error
2
- ${r}`)}finally{Ne=""}}),this.__pluginsApplied=!0)}listControlCreateRow(e,n){const r=this.runtime.createControlInstance(n);if(!!r){if(r instanceof ac){const u=L(e.props.headers),a=this.createControl(u);r.children.push(...a)}return r}}listControlAddRow(e,n="subtable-row"){const r=this.listControlCreateRow(e,n);!r||e.children.push(r)}emit(e,n){return ae(this,null,function*(){if(e==="engine-mounted"){if(this.isMounted)return ce("The engine-mounted life cycle can only be triggered once"),Promise.resolve([]);if(this._jobTasks.length){console.time("engine-mounted need wait");const o=[...this._jobTasks];yield Promise.all(o),console.timeEnd("engine-mounted need wait")}this.isMounted=!0}let r,u;this.isMounted||(u=new Promise(o=>{r=o}),this._jobTasks.push(u));const a=yield dr(en.prototype,this,"emit").call(this,e,n);return r&&u&&(r(),this._jobTasks.splice(this._jobTasks.indexOf(u),1)),a})}on(e,n){return Ne&&(n.applyingPluginName=Ne),super.on(e,n)}createControl(...e){return this.runtime.createControl(...e)}createInstance(e,n){return this.runtime.createControlInstance(e,n)}schemaEvent(e,n){this.emit(e,n)}updateInstanceProps(e,n,r,u){return this.setInstance(e,n,r,u)}getRules(e){var n;return e===void 0?this.runtime.rules:(n=this.runtime.rules[e])==null?void 0:n.fields}getAntdRules(e){var n;return e===void 0?this.runtime.antdRules:(n=this.runtime.antdRules[e])==null?void 0:n.fields}getState(e,n){return e===void 0?this.store.state:this.store.getState(e,n)}getEmptyState(e){return L(e===void 0?this.store.emptyState:this.store.getEmptyState(e))}setPayloadOptions(e){Be=e}setState(e,n,r,u){Be=u,this.debugLog("[%o]: \u89E6\u53D1setState, \u4FEE\u6539\u7684\u503C\u4E3A%o, rowIndex=%o, options=%o",e,n,r,u),this.store.setState(e,n,r),this.debugLog("[%o]: setState\u5B8C\u6210, \u4FEE\u6539\u7684\u503C\u4E3A%o, rowIndex=%o",e,n,r),Be=null}setStates(e,n,r){let u=e;Object.keys(u).forEach(a=>{Object.entries(this.store.controlIdMapping).forEach(([o,s])=>{if(s.dataView===a){const c=u[a][o];c!==void 0&&this.setState(o,c,n,r)}else(o===a||s.children&&s.children[a])&&u[a]!==void 0&&this.setState(a,u[a],n,r)})})}getField(e,n,r){if(!n){const c=this.getDataBindMapping(e);if(c){const{controlId:l}=c;return this.getState(l)}return}const u=this.getDataBindMapping(e,n);if(!u)return;const{dataBind:a,controlId:o}=u,s=this.getState(o,r);return a instanceof le?Object.entries(a).reduce((c,[l,d])=>d.fieldCode===n?c[l]:c,s):s}setField(e,n,r,u,a){var l;const o=this.getDataBindMapping(e,n);if(!o)return;const{dataBind:s,controlId:c}=o;if(s instanceof le){const d=(l=L(this.getState(c,u)))!=null?l:this.getEmptyState(c),p=Object.entries(s).reduce((y,[v,C])=>(C.fieldCode===n&&(y[v]=r),y),d);this.setState(c,p,u,a)}else this.setState(c,r,u,a)}setFields(e,n,r,u){const a=this.getDataBindMapping(e);if(!a)return;let o=[];a.fields.forEach(s=>{var p;const{dataBind:c,controlId:l,fieldCode:d}=s;if(!o.includes(d)&&!!Object.hasOwnProperty.call(n,d))if(c instanceof le){const y=(p=L(this.getState(l,r)))!=null?p:this.getEmptyState(l),v=Object.entries(c).reduce((C,[m,w])=>{o.push(w.fieldCode);const f=n[w.fieldCode];return f!==void 0&&(C[m]=f),C},y);this.setState(s.controlId,v,r,u)}else this.setState(l,n[d],r,u)})}buildFields(e,n){const r=this.getDataBindMapping(e);if(!r)return;let u=[];const a={};return r.fields.forEach(o=>{const{dataBind:s,controlId:c,fieldCode:l}=o;if(!u.includes(l)&&!!Object.hasOwnProperty.call(n,l))if(s instanceof le){const d=this.getEmptyState(c);a[o.controlId]=Object.entries(s).reduce((p,[y,v])=>{u.push(v.fieldCode);const C=n[v.fieldCode];return C!==void 0&&(p[y]=C),p},d)}else a[c]=n[l]}),a}setData(e,n){this.debugLog("engine setData\u65B9\u6CD5\u6267\u884C\uFF0C\u53C2\u6570\u4E3A%o\uFF0C%o\u3002",e,n);let r={};Object.keys(e).map(u=>{const a=e[u];if(Array.isArray(a))a.map(o=>{const s=this.getDataBindMapping(u);if(!s)return;let c=L(this.store.emptyState[s.dataViewId][s.controlId]),l=[];Object.keys(o).map(d=>{var y,v,C;if(l.includes(d))return;const p=(v=(y=this.store.dataBindMapping[u])==null?void 0:y.fields)==null?void 0:v.find(m=>m.fieldCode===d);if(p){if(p.dataBind instanceof De&&o[d]!==void 0)c[p.controlId]=o[d];else if(p.dataBind instanceof le){let m=L((C=this.getEmptyState(p.controlId))!=null?C:{});Object.keys(p.dataBind).map(w=>{const f=p.dataBind[w];o[f.fieldCode]!==void 0&&(m[w]=o[f.fieldCode]),l.push(f.fieldCode)}),c[p.controlId]=m}}}),r[s.dataViewId]||(r[s.dataViewId]={}),r[s.dataViewId][s.controlId]||(r[s.dataViewId][s.controlId]=[]),r[s.dataViewId][s.controlId].push(c)});else if(a){let o=[];Object.keys(a).map(s=>{var l;if(o.includes(s))return;const c=this.getDataBindMapping(u,s);if(c){if(r[c.dataViewId[0]]||(r[c.dataViewId[0]]={}),c.dataBind instanceof De&&a[s]!==void 0)r[c.dataViewId[0]][c.controlId]=a[s];else if(c.dataBind instanceof le){let d=L((l=this.getEmptyState(c.controlId))!=null?l:{});Object.keys(c.dataBind).map(p=>{const y=c.dataBind[p];a[y.fieldCode]!==void 0&&(d[p]=a[y.fieldCode]),o.push(y.fieldCode)}),r[c.dataViewId[0]][c.controlId]=d}}})}}),this.debugLog("engine setData\u65B9\u6CD5\u6570\u636E\u7EC4\u5408\u5B8C\u6210\uFF0C\u53C2\u6570\u4E3A%o\u3002",r),this.setStates(r,void 0,n),this.debugLog("engine setData\u65B9\u6CD5\u6267\u884C\u5B8C\u6210\u3002")}getDataBind(e){return this.store.getDataBind(e)}getInstance(e,n){const r=this.getInstances(e,n===-1);if(r.length>0)return n!==void 0?n===-1?r[0]:r[n]:r[0]}getInstances(e,n=!1){var u;if(e===void 0)return this.runtime.flatInstances;const r=this.runtime.flatInstances.filter(a=>a.id===e);if(n)if(r.length){const a=r[0];if(this.getInstanceRowIndex(a)!==void 0){const o=this.getInstanceInSubtableHeader(a);o&&r.unshift(o)}}else{const a=this.getControlIdMapping(),[o]=(u=Object.entries(a).find(([s,c])=>c.children&&e in c.children))!=null?u:[];if(o){const c=this.getInstance(o).props.headers.find(l=>l.children.find(d=>d.id===e));if(c){const l=c.children.find(d=>d.id===e);l&&r.unshift(l)}}}return r}setInstance(e,n,r,u){try{let a;if(typeof e=="string"?a=this.getInstance(e,u):a=e,!a)return;this.debugLog("[%o]: \u4FEE\u6539instance: %o\u7684%o\u5C5E\u6027\uFF0C\u4FEE\u6539\u7684\u503C\u4E3A%o\u3002",a.id,a,n,r),yn(a.props,n,r),this.schemaEvent("schema-change",{instance:a,props:n,value:r})}catch(a){throw a}}getControlIdMapping(){return this.store.controlIdMapping}getDataBindMapping(e,n){if(!e&&!n)return this.store.dataBindMapping;const r=this.store.dataBindMapping[e];if(!r){ce(`No corresponding dataCode=${e} was found`);return}if(!n)return r;const u=r.fields.find(a=>a.fieldCode===n);if(!u){ce(`No corresponding fieldCode=${n} was found`);return}return u}getAction(){return this.actionManager}initDataManager(e){this.dataManager=new Lc(e)}getDataManager(){return this.dataManager}assertInstance(e,n){return z(n)?e.type===n:n.includes(e.type)}getInstanceRowIndex(e){if(!e.parent)return;let n;if(this.assertInstance(e.parent,I.SUBTABLE))if(this.assertInstance(e,I.SUBTABLE_COLUMN))n=-1;else{const r=e.parent.children.findIndex(u=>u===e);r>-1&&(n=r)}else n=this.getInstanceRowIndex(e.parent);return n}getInstanceParentControl(e,n){if(!!e.parent)return this.assertInstance(e.parent,n)?e.parent:this.getInstanceParentControl(e.parent,n)}getInstanceInSubtableHeader(e){const n=this.getInstanceRowIndex(e);if(n===void 0)return;if(n===-1)return e;const r=this.assertInstance(e,I.SUBTABLE_COLUMN)?e:this.getInstanceParentControl(e,I.SUBTABLE_COLUMN);if(!r)return;const a=this.getInstanceParentControl(e,I.SUBTABLE).props.headers.find(o=>o.id===r.id);if(!!a)return a.children.find(o=>o.id===e.id)}setControlConfig(...e){return this.runtime.registerControlConfig(...e)}getControlConfig(e){return this.runtime.getControlConfig(e)}}class Wc{}class zc{constructor(e){this.config=e}apply(e){this.engine=e;const n=this.config;if(!n)return;const r=sr(n,e);if(!r)return;const u=e.getAction();for(let[a,o]of Object.entries(r.funcMap))u.addAction(a,o)}}function sr(t,e){if(!t.module||!t.module.compiled)return;const n=t.module.compiled,r={exports:{ctx:e,utils:e.getAction().actionUtils}};try{new Function("module","exports",n).call(r,r,r.exports)}catch(o){se(o.message+". fail to parse the module"),process.env.NODE_ENV!=="production"&&se("fail to parse the module")}const u={},a={};for(const[o,s]of Object.entries(r.exports))typeof s=="function"?u[o]=s:a[o]=s;return{funcMap:u,variables:a}}const Gc={"engine-mounted":"did_mount","engine-submit":"will_submit","engine-submit-params":"do_submit","engine-submitted":"did_submit"};class Kc{constructor(e){this.config=e}apply(e){this.engine=e,Object.entries(Gc).forEach(([n,r])=>{e.on(n,u=>ae(this,null,function*(){const a=yield this.callLifecycleEvent(r,u);return a.includes(!1)?!1:a}))})}callLifecycleEvent(e,n){return ae(this,null,function*(){const r=this.config;return!r||!Array.isArray(r[e])?[]:yield Promise.all(r[e].map(a=>ae(this,null,function*(){return yield this.engine.getAction().execAction(a,n)})))})}}class Jc{constructor(e){this.config=e}apply(e){this.engine=e,An.events.forEach(n=>{n.code&&n.key&&this.engineAddEventListener(n.code,n.key)})}engineAddEventListener(e,n){this.engine.on(e,r=>ae(this,null,function*(){if(!(e==="change"&&!this.engine.isMounted)&&r.instance!==void 0)return yield this.callControlEvent(n,r)}))}callControlEvent(e,n){return ae(this,null,function*(){const r=this.config[n.instance.id];if(!r||!Array.isArray(r[e]))return[];const u=yield Promise.all(r[e].map(a=>ae(this,null,function*(){return yield this.engine.getAction().execAction(a,n)})));return u.includes(!1)?!1:u})}}class Xc{constructor(e){this.calcControls=[],this.dependenciesTriggerMap=new Map,this.hideNotRememberControlIds=[],this.dontHasPermissionControlIds=[],this.cacheComputedResult={},this.options=e,this.getDontHasPermissionControlIds(),this.getNeedHideRememberControlIds()}getNeedHideRememberControlIds(){var e;!((e=this.options)!=null&&e.displayBoList)||(this.hideNotRememberControlIds=this.options.displayBoList.reduce((n,r)=>(r.is_remember||n.push(...r.hide_controls),n),[]))}getDontHasPermissionControlIds(){var e;!((e=this.options)!=null&&e.behavior)||(this.dontHasPermissionControlIds=this.options.behavior.reduce((n,r)=>(r.ctrlBehavior===1&&n.push(r.ctrlId),n),[]))}controlNeedComputedValue(e){if(!e)return!1;const n=this.getControlIsHide(e);return!(this.dontHasPermissionControlIds.includes(e.id)&&n||this.hideNotRememberControlIds.includes(e.id)&&n)}getControlIsHide(e){return e.props.isHide?!0:e.parent===null?!1:this.getControlIsHide(e.parent)}apply(e){this.engine=e,this.resetDependencies(),this.watchControlChange(),this.watchSubtableChange(),this.watchSchemaHideChange(),this.engine.on("engine-mounted",()=>{this.allCalcControlComputed()})}resetDependencies(){this.calcControls=[],this.dependenciesTriggerMap.clear(),this.getAllCalcControl(),this.getCalcDependencies()}allCalcControlComputed(){this.calcControls.forEach(e=>this.computedCalcValue(e))}getAllCalcControl(){this.calcControls=this.engine.runtime.flatInstances.filter(e=>e.type===I.CALC)}getCalcDependencies(){this.calcControls.forEach(e=>{const{scriptEcho:n}=e.props;n.forEach(r=>{(r.type===J.VariableInMainTable||r.type===J.VariableInCurrentSubTable||r.type===J.VariableInOtherSubTable)&&this.setDependenciesTriggerMapItem(r.id,e),r.type===J.VariableInOtherSubTable&&r.subTableId&&this.setDependenciesTriggerMapItem(r.subTableId,e)})})}setDependenciesTriggerMapItem(e,n){this.dependenciesTriggerMap.has(e)||this.dependenciesTriggerMap.set(e,[]);const r=this.dependenciesTriggerMap.get(e);r.includes(n)||r.push(n)}getCalcControlsFromSubtableRows(e){return e.reduce((n,r)=>(r.children.forEach(u=>{const a=u.children[0];a&&this.engine.assertInstance(a,I.CALC)&&n.push(a)}),n),[])}watchSchemaHideChange(){this.engine.on("schema-change",e=>{var n;e.props==="isHide"&&((n=this.dependenciesTriggerMap.get(e.instance.id))!=null?n:[]).forEach(u=>{this.computedCalcValue(u)})})}watchSubtableChange(){this.engine.on("list-change",e=>{var a,o,s;this.resetDependencies();const n=(o=(a=e.options)==null?void 0:a.changed)!=null?o:[];this.getCalcControlsFromSubtableRows(n).forEach(c=>{this.computedCalcValue(c)}),((s=this.dependenciesTriggerMap.get(e.instance.id))!=null?s:[]).forEach(c=>{this.computedCalcValue(c)})})}watchControlChange(){this.engine.on("change",e=>{var u;const{instance:n}=e;if(!this.dependenciesTriggerMap.has(n.id))return;const r=(u=this.dependenciesTriggerMap.get(n.id))!=null?u:[];e.rowIndex!==void 0&&e.rowIndex>-1?r.forEach(a=>{this.controlInSubtable(a)&&this.engine.getInstanceRowIndex(a)!==e.rowIndex||this.computedCalcValue(a)}):r.forEach(a=>{this.computedCalcValue(a)})})}controlInSubtable(e){var n;return((n=e.parent)==null?void 0:n.type)===I.SUBTABLE_COLUMN}computedCalcValue(e){var c;const n=e.props.scriptEcho;if(!n||n.length===0)return;const r=n.reduce((l,d)=>{if(d.type===J.Operator||d.type===J.Number)return l+d.name;let p=0,y;switch(d.type){case J.VariableInMainTable:{const v=this.getNumberValue(this.engine.getState(d.id));y=this.engine.getInstance(d.id),p=Number(v);break}case J.VariableInCurrentSubTable:{const v=this.engine.getInstanceRowIndex(e);y=this.engine.getInstance(d.id,v);const C=this.engine.getState(d.id,v),m=this.getNumberValue(C);p=Number(m);break}case J.VariableInOtherSubTable:{const v=this.engine.getState(d.id),C=Array.isArray(v)?v.map(w=>this.getNumberValue(w)):[],m=this.getAggregateTypeValue(C,d.aggregateType);y=this.engine.getInstance(d.subTableId),p=Number(m);break}}return!Number.isNaN(p)&&this.controlNeedComputedValue(y)?l+=`(${p})`:l+=0,l},"");let u;this.cacheComputedResult[r]!==void 0?u=this.cacheComputedResult[r]:(u=new Function(`return ${r}`)(),this.cacheComputedResult[r]=u);let a;if(this.controlInSubtable(e)&&(a=this.engine.getInstanceRowIndex(e),a===void 0))return;const o=this.engine.getState(e.id,a),s=!u||u===1/0||u===-1/0?0:e.props.precision===""?u:Number(u.toFixed(e.props.precision));s!==(o==null?void 0:o.result)&&this.engine.setState(e.id,{result:s,unit:(c=o==null?void 0:o.unit)!=null?c:""},a)}getNumberValue(e){if(typeof e=="object"&&e){if("result"in e)return e.result;if("amount"in e)return e.amount}return typeof e=="number"?e:0}getAggregateTypeValue(e,n){if(!n||!e||!e.length)return 0;switch(n){case me.MAX:return Math.max(...e);case me.MIN:return Math.min(...e);case me.SUM:return e.reduce((r,u)=>r+u);case me.AVG:return e.reduce((r,u)=>r+u)/e.length}}}class Qc{constructor(e){this.config=e}apply(e){var a,o;this.engine=e;const n=(o=(a=this.config)==null?void 0:a.source)!=null?o:"";let r=document.createElement("style");r.className="edit-css",r.type="text/css",r.innerHTML=n,document.querySelector("head").appendChild(r)}}D.CalcPlugin=Xc,D.ControlsEventPlugin=Jc,D.ES6ModulePlugin=zc,D.Engine=en,D.LifecycleEventPlugin=Kc,D.Plugin=Wc,D.StylePlugin=Qc,D.hasChildrenControl=st,D.loopDataViewControl=Pe,D.loopFormControl=Oe,D.parseModule=sr,Object.defineProperty(D,"__esModule",{value:!0})});
1
+ var jc=Object.defineProperty,Nc=Object.defineProperties;var Tc=Object.getOwnPropertyDescriptors;var Kn=Object.getOwnPropertySymbols,Vc=Object.getPrototypeOf,qc=Object.prototype.hasOwnProperty,Uc=Object.prototype.propertyIsEnumerable,kc=Reflect.get;var Gn=(B,F,I)=>F in B?jc(B,F,{enumerable:!0,configurable:!0,writable:!0,value:I}):B[F]=I,M=(B,F)=>{for(var I in F||(F={}))qc.call(F,I)&&Gn(B,I,F[I]);if(Kn)for(var I of Kn(F))Uc.call(F,I)&&Gn(B,I,F[I]);return B},qt=(B,F)=>Nc(B,Tc(F));var Jn=(B,F,I)=>kc(Vc(B),I,F);var G=(B,F,I)=>new Promise((V,Fe)=>{var Je=J=>{try{pe(I.next(J))}catch(he){Fe(he)}},Xe=J=>{try{pe(I.throw(J))}catch(he){Fe(he)}},pe=J=>J.done?V(J.value):Promise.resolve(J.value).then(Je,Xe);pe((I=I.apply(B,F)).next())});(function(B,F){typeof exports=="object"&&typeof module!="undefined"?F(exports,require("regenerator-runtime")):typeof define=="function"&&define.amd?define(["exports","regenerator-runtime"],F):(B=typeof globalThis!="undefined"?globalThis:B||self,F(B.modelDrivenEngine={},B.regeneratorRuntime))})(this,function(B,F){"use strict";function I(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var V=I(F),Fe="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",Je="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",Xe="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",pe="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",J="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",he="{caption}\u5FC5\u586B",Xn="\u8BF7\u8F93\u5165\u6807\u9898",Qn="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",Zn="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",Yn="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",er="\u8BF7\u7ED1\u5B9A\u8868\u5355",tr="\u8BF7\u7ED1\u5B9A\u5217\u8868",nr="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",rr="\u8BF7\u8F93\u5165\u663E\u793A\u503C",ir="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",ur="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",ar="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",or="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",sr="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",cr="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",lr="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E{min}\u4E14\u5C0F\u4E8E{max}\u7684\u503C",fr="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",dr="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",pr="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",hr="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",gr="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",yr="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",mr="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",vr="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",Er="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",br="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",Ar="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",Cr="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Br="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",wr="\u8BF7\u7ED1\u5B9A\u670D\u52A1",Sr="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Fr="\u8BF7\u9009\u62E9\u7701",_r="\u8BF7\u9009\u62E9\u5E02",Dr="\u8BF7\u9009\u62E9\u533A",Ir="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",Rr="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",Mr="\u8BF7\u8F93\u5165\u5217\u5BBD",$r="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",Or="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",Pr="\u8BF7\u9009\u62E9\u63A7\u4EF6",Lr="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",xr="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",jr="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",Nr="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",Tr="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Vr="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",qr="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Ur="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",kr="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Hr="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Wr="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",zr="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",Kr="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Gr="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",Jr="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Xr="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",Qr="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",Zr="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Yr="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",ei={isNotNumber:Fe,isNotString:Je,isNotObject:Xe,isNotArray:pe,isNotBoolean:J,runtimeRequired:he,pleaseEnterCaption:Xn,pleaseEnterCaptionTip:Qn,pleaseEnterPlaceholder:Zn,pleaseEnterFieldCode:Yn,pleaseEnterForm:er,pleaseEnterList:tr,pleaseEnterProcess:nr,pleaseEnterLabel:rr,pleaseEnterValue:ir,bizKeyNotBindFiled:ur,pleaseEnterNumberRange:ar,pleaseEnterAValueGreaterThanMin:or,pleaseEnterAValueLessThanMax:sr,numberRangeSetError:cr,stringRangeError:lr,attachmentMaxSize:fr,pleaseEnterTotalScoreSetting:dr,theTotalScoreMustNotBeLessThan1:pr,scoreDefaultValueRange:hr,attachmentLimitError:gr,PleaseReselectTheOptionalQuantity:yr,TheMaximumLengthIsGreaterThanTheMinimumLength:mr,TheMinimumLengthIsGreaterThanTheMaximumLength:vr,PleaseSelectTheCorrectOptionSettings:Er,optionIdIsRepeat:br,optionIsRequired:Ar,pleaseEnterDataCode:Cr,pleaseEnterValueFieldCode:Br,pleaseEnterSvcCode:wr,pleaseBindAtLeastOneDisplayValue:Sr,pleaseSelectProvince:Fr,pleaseSelectCity:_r,pleaseSelectDistrict:Dr,limitRowsCannotBeLessThan0:Ir,TheNumberOfRowsCannotBeLessThanMinRows:Rr,pleaseEnterColumnWidth:Mr,pleaseSetTheLogicalRelationshipOfAllRuleConditions:$r,pleaseCompleteAllRulesAndConditions:Or,pleaseSelectControl:Pr,pleaseSelectAtLeastOneColumn:Lr,pleaseSelectFillBackMode:xr,pleaseSelectDashboard:jr,rootNodeIsRequired:Nr,theViewNameCannotBeEmpty:Tr,pleaseSelectOcrType:Vr,pleaseSelectAtLeastOneFieldToFillIn:qr,pleaseChooseAtLeastOne:Ur,pleaseEnterButtonContent:kr,pleaseEnterDataCodeInDataSetting:Hr,pleaseEnterValueFieldCodeInDataSetting:Wr,pleaseEnterSvcCodeInDataSetting:zr,pleaseBindAtLeastOneDisplayValueInDataSetting:Kr,rootNodeIsRequiredInDataSetting:Gr,pleaseEnterMaxHeight:Jr,pleaseEnter:Xr,pleaseEnterWatermark:Qr,pleaseEnterFileName:Zr,pleaseUploadAtLeastOnePrintTemplate:Yr},ti="Please enter a number",ni="Please enter a string",ri="Please enter an object",ii="Please enter an array",ui="Please enter a boolean",ai="{caption} Required",oi="Please enter the title",si="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",ci="Please enter the prompt text",li="Please bind data items",fi="Please bind the form",di="Please bind the list",pi="Please bind the process",hi="Please enter the displayed value",gi="Please enter the stored value",yi="The document number is not bound to the data item",mi="Please enter a value greater than or equal to {min} and less than or equal to {max}",vi="Please enter a value greater than or equal to {min}",Ei="Please enter a value less than or equal to {max}",bi="The value range is set incorrectly",Ai="Please enter a value longer than {min} and less than {max}",Ci="The attachment size must be between 0MB and 1000MB",Bi="Please fill in the total score setting",wi="The total score cannot be less than 1",Si="The default value must be between {min} and {max}",Fi="The number of attachments uploaded must be between {min} and {max}",_i="Please re-select the optional quantity",Di="The maximum length of the control must be greater than the minimum length",Ii="The minimum length of the control must be less than the maximum length",Ri="Please select the correct option setting",Mi="Option ID cannot be repeated",$i="Please enter at least one option",Oi="Please bind the data source",Pi="Please bind the stored value",Li="Please bind the service",xi="At least one display value must be bound",ji="Please select a province",Ni="Please select a city",Ti="Please select a district",Vi="The minimum number of lines to fill in cannot be less than 0",qi="The number of rows cannot be less than {min} rows",Ui="Please enter the column width",ki="Please set the logical relationship of all rule conditions",Hi="Please complete all rules and conditions",Wi="please select control",zi="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",Ki="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Gi="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Ji="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Xi="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Qi="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Zi="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Yi="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",eu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",tu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",nu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",ru="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",iu="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",uu="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",au="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",ou="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",su={isNotNumber:ti,isNotString:ni,isNotObject:ri,isNotArray:ii,isNotBoolean:ui,runtimeRequired:ai,pleaseEnterCaption:oi,pleaseEnterCaptionTip:si,pleaseEnterPlaceholder:ci,pleaseEnterFieldCode:li,pleaseEnterForm:fi,pleaseEnterList:di,pleaseEnterProcess:pi,pleaseEnterLabel:hi,pleaseEnterValue:gi,bizKeyNotBindFiled:yi,pleaseEnterNumberRange:mi,pleaseEnterAValueGreaterThanMin:vi,pleaseEnterAValueLessThanMax:Ei,numberRangeSetError:bi,stringRangeError:Ai,attachmentMaxSize:Ci,pleaseEnterTotalScoreSetting:Bi,theTotalScoreMustNotBeLessThan1:wi,scoreDefaultValueRange:Si,attachmentLimitError:Fi,PleaseReselectTheOptionalQuantity:_i,TheMaximumLengthIsGreaterThanTheMinimumLength:Di,TheMinimumLengthIsGreaterThanTheMaximumLength:Ii,PleaseSelectTheCorrectOptionSettings:Ri,optionIdIsRepeat:Mi,optionIsRequired:$i,pleaseEnterDataCode:Oi,pleaseEnterValueFieldCode:Pi,pleaseEnterSvcCode:Li,pleaseBindAtLeastOneDisplayValue:xi,pleaseSelectProvince:ji,pleaseSelectCity:Ni,pleaseSelectDistrict:Ti,limitRowsCannotBeLessThan0:Vi,TheNumberOfRowsCannotBeLessThanMinRows:qi,pleaseEnterColumnWidth:Ui,pleaseSetTheLogicalRelationshipOfAllRuleConditions:ki,pleaseCompleteAllRulesAndConditions:Hi,pleaseSelectControl:Wi,pleaseSelectDashboard:zi,theViewNameCannotBeEmpty:Ki,pleaseSelectOcrType:Gi,pleaseSelectAtLeastOneFieldToFillIn:Ji,pleaseChooseAtLeastOne:Xi,pleaseEnterButtonContent:Qi,pleaseEnterDataCodeInDataSetting:Zi,pleaseEnterValueFieldCodeInDataSetting:Yi,pleaseEnterSvcCodeInDataSetting:eu,pleaseBindAtLeastOneDisplayValueInDataSetting:tu,rootNodeIsRequiredInDataSetting:nu,pleaseEnterMaxHeight:ru,pleaseEnter:iu,pleaseEnterWatermark:uu,pleaseEnterFileName:au,pleaseUploadAtLeastOnePrintTemplate:ou},cu="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",lu="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",fu="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",du="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",pu="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",hu="{caption}\u5FC5\u9808",gu="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",yu="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",mu="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",vu="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Eu="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",bu="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Au="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Cu="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Bu="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",wu="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",Su="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Fu="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",_u="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Du="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",Iu="\u6587\u5B57\u6570{min}\u3088\u308A\u5927\u304D\u304F\u3001{max}\u3088\u308A\u5C0F\u3055\u3044\u6570\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ru="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Mu="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",$u="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Ou="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Pu="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Lu="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",xu="\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",ju="\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",Nu="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Tu="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",Vu="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",qu="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Uu="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ku="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Hu="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",Wu="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",zu="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Ku="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Gu="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Ju="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Xu="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Qu="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Zu="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",Yu="please select control",ea="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",ta="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",na="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",ra="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",ia="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",ua="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",aa="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",oa="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",sa="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",ca="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",la="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",fa="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",da="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",pa="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",ha="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",ga="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",ya={isNotNumber:cu,isNotString:lu,isNotObject:fu,isNotArray:du,isNotBoolean:pu,runtimeRequired:hu,pleaseEnterCaption:gu,pleaseEnterCaptionTip:yu,pleaseEnterPlaceholder:mu,pleaseEnterFieldCode:vu,pleaseEnterForm:Eu,pleaseEnterList:bu,pleaseEnterProcess:Au,pleaseEnterLabel:Cu,pleaseEnterValue:Bu,bizKeyNotBindFiled:wu,pleaseEnterNumberRange:Su,pleaseEnterAValueGreaterThanMin:Fu,pleaseEnterAValueLessThanMax:_u,numberRangeSetError:Du,stringRangeError:Iu,attachmentMaxSize:Ru,pleaseEnterTotalScoreSetting:Mu,theTotalScoreMustNotBeLessThan1:$u,scoreDefaultValueRange:Ou,attachmentLimitError:Pu,PleaseReselectTheOptionalQuantity:Lu,TheMaximumLengthIsGreaterThanTheMinimumLength:xu,TheMinimumLengthIsGreaterThanTheMaximumLength:ju,PleaseSelectTheCorrectOptionSettings:Nu,optionIdIsRepeat:Tu,optionIsRequired:Vu,pleaseEnterDataCode:qu,pleaseEnterValueFieldCode:Uu,pleaseEnterSvcCode:ku,pleaseBindAtLeastOneDisplayValue:Hu,pleaseSelectProvince:Wu,pleaseSelectCity:zu,pleaseSelectDistrict:Ku,limitRowsCannotBeLessThan0:Gu,TheNumberOfRowsCannotBeLessThanMinRows:Ju,pleaseEnterColumnWidth:Xu,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Qu,pleaseCompleteAllRulesAndConditions:Zu,pleaseSelectControl:Yu,pleaseSelectDashboard:ea,theViewNameCannotBeEmpty:ta,pleaseSelectOcrType:na,pleaseSelectAtLeastOneFieldToFillIn:ra,pleaseChooseAtLeastOne:ia,pleaseEnterButtonContent:ua,pleaseEnterDataCodeInDataSetting:aa,pleaseEnterValueFieldCodeInDataSetting:oa,pleaseEnterSvcCodeInDataSetting:sa,pleaseBindAtLeastOneDisplayValueInDataSetting:ca,rootNodeIsRequiredInDataSetting:la,pleaseEnterMaxHeight:fa,pleaseEnter:da,pleaseEnterWatermark:pa,pleaseEnterFileName:ha,pleaseUploadAtLeastOnePrintTemplate:ga},ma={zhCN:ei,enUS:su,jaJP:ya},j;(function(t){t.Number="Number",t.Operator="Operator",t.VariableInMainTable="VariableInMainTable",t.VariableInCurrentSubTable="VariableInCurrentSubTable",t.VariableInOtherSubTable="VariableInOtherSubTable",t.UndefinedVariable="UndefinedVariable"})(j||(j={}));var ue;(function(t){t.SUM="SUM",t.AVG="AVG",t.MAX="MAX",t.MIN="MIN"})(ue||(ue={}));var Ut="zh-CN";function P(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var q;(function(t){t.BASE="base",t.FORM="form",t.LAYOUT="layout",t.WRAP="wrap",t.COLUMN="column",t.LIST="list",t.SEARCH="search"})(q||(q={}));var w;(function(t){t.TITLE="title",t.LINK="link",t.BUTTON="button",t.DIVIDER="divider",t.TEXT="text",t.CREATE_FORM_LIST_BUTTON="list-page-btn-create-form",t.BATCH_SUBMISSION_LIST_BUTTON="list-page-btn-batch-submission",t.SUBMISSION_RECORD_LIST_BUTTON="list-page-btn-submission-record",t.IMPORT_RECORD_LIST_BUTTON="list-page-btn-import-record",t.EXPORT_RECORD_LIST_BUTTON="list-page-btn-export-record",t.EXPORT_LIST_BUTTON="list-page-btn-export-list",t.LIST_SELECT_BUTTON="list-select-button",t.FORM_SELECT_BUTTON="form-select-button",t.LIST_VIEW_SELECT="list-view-select",t.TEXT_OCR_BUTTON="text-ocr-button",t.INVOICE_CHECK_BUTTON="invoice-check-button",t.LIST_PAGE_BTN_BATCH_PRINT="list-page-btn-batch-print",t.LIST_PAGE_BTN_BATCH_PRINT_RECORD="list-page-btn-batch-print-record",t.VARCHAR_COLUMN="varchar-column",t.TEXT_COLUMN="text-column",t.DECIMAL_COLUMN="decimal-column",t.TIMESCOPE_COLUMN="timescope-column",t.TIMESTAMP_COLUMN="timestamp-column",t.ARRAY_COLUMN="array-column",t.DEPARTMENT_COLUMN="department-column",t.AUTO_NUMBER_COLUMN="auto-number-column",t.FILE_COLUMN="file-column",t.IMAGE_COLUMN="image-column",t.PEOPLE_COLUMN="people-column",t.LOCATION_COLUMN="location-column",t.CUSTOM_COLUMN="custom-column",t.ORDER_COLUMN="order-column",t.OPERATION_COLUMN="operation-column",t.EMPLOYEE_COLUMN="employee-column",t.ADDRESS="address",t.AMOUNT="amount",t.ATTACHMENT="attachment",t.AUTO_NUMBER="auto-number",t.CALC="calc",t.CHECKBOX="checkbox",t.DATE_PICKER="date-picker",t.DATE_RANGE="date-range",t.DEPARTMENT="department",t.EMPLOYEE="employee",t.IMAGE="image",t.INPUT="input",t.NUMBER="number",t.RADIO="radio",t.RICH_TEXT="rich-text",t.SCORE="score",t.SEARCH_DATE_RANGE="search-date-range",t.SEARCH_NUMBER_RANGE="search-number-range",t.SEARCH_INPUT="search-input",t.SELECT="select",t.SELECT_MULTIPLE="select-multiple",t.SELECT_RELATION="select-relation",t.VUE_FORM_ITEM="vue-form-item",t.TEXTAREA="textarea",t.EMAIL="email",t.FOOTER="footer",t.HEADER="header",t.ID_CARD="id-card",t.MOBILE="mobile",t.PHONE="phone",t.RADIO_IMAGE="radio-image",t.ELECTRONIC_SIGNATURE="electronic-signature",t.WPS="wps",t.CARD_GROUP="card-group",t.COL="col",t.GRID="grid",t.GRID_ROW="grid-row",t.GRID_TABLE_COLUMN="grid-table-column",t.ROW="row",t.TWO_COLUMNS="two-columns",t.SUBTABLE_COLUMN="subtable-column",t.SUBTABLE_ROW="subtable-row",t.TAB="tab",t.TAB_PANE="tab-pane",t.TOOLBOX="toolbox",t.DATA_VIEW="data-view",t.LIST_VIEW="list-view",t.SUBTABLE="subtable",t.GRID_TABLE="grid-table",t.SIMPLE_SEARCH="simple-search",t.PAGINATION="pagination",t.CHECKBOX_IMAGE="checkbox-image",t.DASHBOARD="dashboard",t.TREE="tree",t.EMPLOYEE2="employee2"})(w||(w={}));var C;(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"})(C||(C={}));var O;O={},P(O,C.ARRAY,w.ARRAY_COLUMN),P(O,C.AUTO_NUMBER,w.AUTO_NUMBER_COLUMN),P(O,C.DECIMAL,w.DECIMAL_COLUMN),P(O,C.DEPARTMENTS,w.DEPARTMENT_COLUMN),P(O,C.FILE,w.FILE_COLUMN),P(O,C.IMAGE,w.IMAGE_COLUMN),P(O,C.ADDRESS,w.LOCATION_COLUMN),P(O,C.EMPLOYEES,w.EMPLOYEE_COLUMN),P(O,C.TEXT,w.TEXT_COLUMN),P(O,C.TIMESCOPE,w.TIMESCOPE_COLUMN),P(O,C.TIMESTAMP,w.TIMESTAMP_COLUMN),P(O,C.VARCHAR,w.VARCHAR_COLUMN),P(O,C.RELATION,w.VARCHAR_COLUMN);var kt;(function(t){t.YEAR="year",t.MONTH="month",t.DATE="date",t.DATETIME="datetime"})(kt||(kt={}));var Ht="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",va=Ht+"0123456789";function Qe(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,e="",r=0;r<t;r++){var n=r===0?Ht:va,u=Math.random()*n.length;e+=n[parseInt(String(u),10)]}return e}function Ze(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ea(t){if(Array.isArray(t))return Ze(t)}function ba(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Wt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Aa(){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 _e(t,e,r){return Aa()?_e=Reflect.construct:_e=function(u,a,o){var s=[null];s.push.apply(s,a);var c=Function.bind.apply(u,s),l=new c;return o&&ye(l,o.prototype),l},_e.apply(null,arguments)}function ge(t){return ge=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},ge(t)}function zt(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&&ye(t,e)}function Ca(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Ba(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function wa(){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 Sa(t,e){return e&&(Fa(e)==="object"||typeof e=="function")?e:ba(t)}function ye(t,e){return ye=Object.setPrototypeOf||function(n,u){return n.__proto__=u,n},ye(t,e)}function Kt(t){return Ea(t)||Ba(t)||_a(t)||wa()}var Fa=function(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t};function _a(t,e){if(!!t){if(typeof t=="string")return Ze(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ze(t,e)}}function Ye(t){var e=typeof Map=="function"?new Map:void 0;return Ye=function(n){if(n===null||!Ca(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,u)}function u(){return _e(n,arguments,ge(this).constructor)}return u.prototype=Object.create(n.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),ye(u,n)},Ye(t)}function Da(){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 Gt(t){var e=Da();return function(){var n=ge(t),u;if(e){var a=ge(this).constructor;u=Reflect.construct(n,arguments,a)}else u=n.apply(this,arguments);return Sa(this,u)}}var et=console;function Q(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n,u=e.slice(1);(n=et).warn.apply(n,["\u{1F9D0} Driven Warning:"+e[0]].concat(Kt(u)))}function tt(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n,u=e.slice(1);(n=et).log.apply(n,["\u{1F680} Driven Log:"+e[0]].concat(Kt(u)))}function Ia(t){return t+" \u{1F41B}\u{1F41B}\u{1F41B}"}var nt=function(t){zt(r,t);var e=Gt(r);function r(n){Wt(this,r);var u;return u=e.call(this,n),u.name="\u{1F4A5} Driven Error",u.message=n?Ia(n):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",u}return r}(Ye(Error)),Ra=function(t){zt(r,t);var e=Gt(r);function r(n){Wt(this,r);var u;return u=e.call(this,n),u.name="\u{1F6A8} Driven Reference Error",u}return r}(nt);function X(t){throw new nt(t)}function Jt(t){throw new Ra(t)}function De(t){et.error(new nt(t))}function ne(t,e){Array.isArray(t)&&t.map(function(r){switch(r.controlType){case"layout":ne(r==null?void 0:r.children,e);break;case"search":ne(r==null?void 0:r.children,e);break;case"form":e(r)}})}var Ma=Object.prototype.toString;function Xt(t,e){return Ma.call(t)==="[object "+e+"]"}function $a(t){return Xt(t,"String")}function Oa(t){return Xt(t,"Promise")}var Pa=function(){function t(e){var r,n;this._messageCache=new Map,this.messages={},this.variableRegExp=/\{([0-9a-zA-Z_]+)\}/g,this._messages=Object.freeze((n=(r=e.messages)!==null&&r!==void 0?r:this.getPreImport(e.locale))!==null&&n!==void 0?n:{}),e.variableRegExp&&(this.variableRegExp=e.variableRegExp),this.setLocale(e.locale)}return t.prototype.setLocale=function(e){var r=this;this.locale=e,this._messageCache.clear();var n=this.getMessageData();Oa(n)?n.then(function(u){r._messageCache.clear(),r.messages[r.localeInMessageKey]=u}):this.messages[this.localeInMessageKey]=n},t.prototype.getMessageData=function(){var e=this._messages[this.localeInMessageKey];return typeof e=="function"?e():e},t.prototype.translate=function(e,r,n){var u=this.getMessage(e);return u?this.formatMessage(u,n):this.formatMessage(r,n)},t.prototype.getMessage=function(e){if(this._messageCache.has(e))return this._messageCache.get(e);var r=this.getPathArray(e),n=r.reduce(function(u,a,o,s){if(u!==void 0){var c=u[a];if(!(o===s.length-1&&!$a(c)))return c}},this.message);return this._messageCache.set(e,n),n},t.prototype.formatMessage=function(e,r){return r?e.replace(this.variableRegExp,function(n,u){var a=r[u];return a!==void 0?String(a):n}):e},t.prototype.getPreImport=function(e){var r;if(window.okI18nPreImport){var n=this.getLocaleInMessageKey(e);return window.okI18nPreImport.hasOwnProperty(n)?window.okI18nPreImport:(r={},r[n]=window.okI18nPreImport,r)}},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 La(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var N=function(){function t(){La(this,t)}return t.getMessage=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$i18n.$t(r,"",n)},t.resetI18n=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ut;return new Pa({locale:r,messages:ma})},t.setLocale=function(r){return this.$i18n.setLocale(r)},t}();N.$i18n=N.resetI18n();function Qt(t,e,r){var n=e.replace(/\[(\d)]/g,function(a,o){return"."+o}).split("."),u=!1;return n.reduce(function(a,o,s,c){var l=a;if(!!a){if(!Object.prototype.hasOwnProperty.call(a,o)){Q("Can not set ".concat(e,"'s ").concat(o," property in current %o, Because there is no ").concat(o," property on the %o"),a,a);return}return s===c.length-1&&!Object.is(l[o],r)&&(l[o]=r,u=!0),l[o]}},t),u}var xa=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},rt={exports:{}};(function(t){(function(e){var r=function(f,m,$){if(!l(m)||p(m)||h(m)||g(m)||c(m))return m;var v,D=0,z=0;if(d(m))for(v=[],z=m.length;D<z;D++)v.push(r(f,m[D],$));else{v={};for(var S in m)Object.prototype.hasOwnProperty.call(m,S)&&(v[f(S,$)]=r(f,m[S],$))}return v},n=function(f,m){m=m||{};var $=m.separator||"_",v=m.split||/(?=[A-Z])/;return f.split(v).join($)},u=function(f){return E(f)?f:(f=f.replace(/[\-_\s]+(.)?/g,function(m,$){return $?$.toUpperCase():""}),f.substr(0,1).toLowerCase()+f.substr(1))},a=function(f){var m=u(f);return m.substr(0,1).toUpperCase()+m.substr(1)},o=function(f,m){return n(f,m).toLowerCase()},s=Object.prototype.toString,c=function(f){return typeof f=="function"},l=function(f){return f===Object(f)},d=function(f){return s.call(f)=="[object Array]"},p=function(f){return s.call(f)=="[object Date]"},h=function(f){return s.call(f)=="[object RegExp]"},g=function(f){return s.call(f)=="[object Boolean]"},E=function(f){return f=f-0,f===f},y=function(f,m){var $=m&&"process"in m?m.process:m;return typeof $!="function"?f:function(v,D){return $(v,f,D)}},b={camelize:u,decamelize:o,pascalize:a,depascalize:o,camelizeKeys:function(f,m){return r(y(u,m),f)},decamelizeKeys:function(f,m){return r(y(o,m),f,m)},pascalizeKeys:function(f,m){return r(y(a,m),f)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=b:e.humps=b})(xa)})(rt);function _(t){if(t!==void 0)return typeof t=="object"?JSON.parse(JSON.stringify(t)):t}function U(t){return Object.prototype.toString.call(t)==="[object Object]"}function ja(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1}function ae(t){return Array.isArray(t)}function L(t){return typeof t=="string"}function Ie(t){return typeof t=="number"}function Zt(t){return typeof t=="function"}function Na(t){return ae(t)&&t.every(function(e){return L(e)})}function Ta(t){return ae(t)&&t.every(function(e){return Ie(e)||e===""})}function Yt(t){return/^\[.*?]$/.test(t)}function Re(t){return/^{.*?}$/.test(t)}function it(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Va(t){if(Array.isArray(t))return it(t)}function en(t,e,r,n,u,a,o){try{var s=t[a](o),c=s.value}catch(l){r(l);return}s.done?e(c):Promise.resolve(c).then(n,u)}function qa(t){return function(){var e=this,r=arguments;return new Promise(function(n,u){var a=t.apply(e,r);function o(c){en(a,n,u,o,s,"next",c)}function s(c){en(a,n,u,o,s,"throw",c)}o(void 0)})}}function Ua(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ka(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Ha(){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 ut(t){return Va(t)||ka(t)||Wa(t)||Ha()}function Wa(t,e){if(!!t){if(typeof t=="string")return it(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return it(t,e)}}var tn=function(){function t(){Ua(this,t),this._events=new Map,this.debug=!1}var e=t.prototype;return e.emit=function(n){for(var u=arguments.length,a=new Array(u>1?u-1:0),o=1;o<u;o++)a[o-1]=arguments[o];var s=this;return qa(V.default.mark(function c(){var l,d,p,h,g,E,y,b,f,m;return V.default.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(l=s._events.get(n),d=[],!l){v.next=42;break}p=l.slice(),h=!0,g=!1,E=void 0,v.prev=5,y=p[Symbol.iterator]();case 7:if(h=(b=y.next()).done){v.next=28;break}if(f=b.value,l.includes(f)){v.next=11;break}return v.abrupt("continue",25);case 11:return v.prev=11,s.debug&&tt.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(f.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+f.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(a.map(function(){return"%o"}).join(","),"\u3002")].concat(ut(a))),v.next=15,f.apply(null,ut(a));case 15:if(m=v.sent,s.debug&&tt.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(f.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+f.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(a.map(function(){return"%o"}).join(","),"; \u51FD\u6570\u7684\u8FD4\u56DE\u7ED3\u679C\u4E3A%o")].concat(ut(a),[m])),d.push(m),m!==!1){v.next=20;break}return v.abrupt("break",28);case 20:v.next=25;break;case 22:v.prev=22,v.t0=v.catch(11),De(String(v.t0));case 25:h=!0,v.next=7;break;case 28:v.next=34;break;case 30:v.prev=30,v.t1=v.catch(5),g=!0,E=v.t1;case 34:v.prev=34,v.prev=35,!h&&y.return!=null&&y.return();case 37:if(v.prev=37,!g){v.next=40;break}throw E;case 40:return v.finish(37);case 41:return v.finish(34);case 42:return v.abrupt("return",d);case 43:case"end":return v.stop()}},c,null,[[5,30,34,42],[11,22],[35,,37,41]])}))()},e.on=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])},e.off=function(n,u){if(this._events.has(n)){var a=this._events.get(n),o=a==null?void 0:a.indexOf(u);a==null||a.splice(o,1)}},e.delete=function(n){this._events.has(n)&&this._events.delete(n)},e.clear=function(){this._events=new Map},t}();function za(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Ka=[{key:"on_click",name:"\u70B9\u51FB\u65F6",code:"click"},{key:"on_click_finish",name:"\u6267\u884C\u5B8C\u6210\u65F6",code:"click-finish"},{key:"on_change",name:"\u503C\u53D1\u751F\u53D8\u5316\u65F6",code:"change"},{key:"on_search",name:"\u641C\u7D22\u65F6",code:"search"},{key:"on_list_change",name:"\u5217\u8868\u6570\u636E\u53D8\u5316\u65F6",code:"list-change"},{key:"on_list_search",name:"\u5217\u8868\u6570\u636E\u67E5\u8BE2\u6784\u5EFA\u65F6",code:"list-search"},{key:"on_list_mounted",name:"\u5217\u8868\u6570\u636E\u8FD4\u56DE\u65F6",code:"list-mounted"},{key:"on_list_delete",name:"\u5217\u8868\u6570\u636E\u5220\u9664\u65F6",code:"list-delete"},{key:"on_input",name:"\u7528\u6237\u8F93\u5165\u65F6",code:"input"},{key:"on_blur",name:"\u5931\u53BB\u7126\u70B9\u65F6",code:"blur"},{key:"on_focus",name:"\u83B7\u53D6\u7126\u70B9\u65F6",code:"focus"},{key:"on_wps_open",name:"\u6253\u5F00\u6587\u4EF6\u65F6",code:"wps-open"},{key:"on_wps_save",name:"\u4FDD\u5B58\u6587\u4EF6\u65F6",code:"wps-save"},{key:"on_wps_rename",name:"\u91CD\u547D\u540D\u65F6",code:"wps-rename"},{key:"on_list_actions",name:"\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6",code:"list-actions"},{key:"on_list_rowclick",name:"\u884C\u70B9\u51FB\u65F6",code:"list-rowclick"},{key:"on_list_before_rowdelete",name:"\u884C\u5220\u9664\u524D",code:"list-before-rowdelete"},{key:"on_list_before_import",name:"\u5217\u8868\u6570\u636E\u5BFC\u5165\u524D",code:"list-before-import"}],nn=function(){function t(){za(this,t)}var e=t.prototype;return e.getEventsFromKeys=function(n){var u=typeof n=="string"?[n]:n;return t.events.filter(function(a){return u.includes(a.key)})},t}();nn.events=Ka;function Ga(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var rn=[],Me=function(){function t(r){Ga(this,t),this.registeredControlTypes=new Set,this.controlConfigMap=new Map,this._controls=[],this._type=r,this._initControls(r)}var e=t.prototype;return e.registerControlConfig=function(n,u){return this.controlConfigMap.set(n,u),this},e.getControlConfig=function(n){return this.controlConfigMap.get(n)},e.getControls=function(){return this._controls},e.register=function(n){n.__is_control__||X("".concat(n.name," is not a Control"));var u=this._controls.findIndex(function(a){return a.controlType===n.controlType});return u>-1&&(Q("The ".concat(n.controlType," is repeat register, So it overwrites the one that was registered before.")),this._controls.splice(u,1)),this.registeredControlTypes.add(n.controlType),this._controls.push(n),this},e.isLayoutControl=function(n){return n.controlType===q.LAYOUT},e.isFormControl=function(n){return n.controlType===q.FORM},e.isListControl=function(n){return n.controlType===q.LIST},e.isColumnControl=function(n){return n.controlType===q.COLUMN},e.createControl=function(n,u){var a=this;if(Array.isArray(n))return n.map(function(d){return a.createControl(d,u)});n.children&&(n.children=n.children.map(function(d){return a.createControl(d,u)})),this.isListControl(n)&&n.props.headers&&(n.props.headers=n.props.headers.map(function(d){return a.createControl(d,u)}));var o=this.getControlFormType(n.type);if(o){var s=n;if(typeof u=="function"){var c=u(s);c&&(s=c)}var l=new o(s);return l}else X("The constructor of ".concat(n.type," could not be found, please confirm that the constructor has been registered"))},e.createControlInstance=function(n,u){var a=this.getControlFormType(n);if(a)return new a(u)},e.getControlFormType=function(n){return this._controls.find(function(u){return u.controlType===n})},e._initControls=function(n){var u=this;this.constructor.staticControls.forEach(function(a){u.register(a[n])})},t.register=function(n){var u=n.Designer,a=n.Runtime;(!u||!a||!u.__is_control__||!a.__is_control__)&&X("".concat(n," is can't register as a Control"));var o=this.staticControls.findIndex(function(s){return s.Designer.controlType===u.controlType});return o>-1&&(Q("The ".concat(u.controlType," is repeat register, So it overwrites the one that was registered before.")),this.staticControls.splice(o,1)),this.staticRegisteredTypes.add(u.controlType),this.staticControls.push(n),this},t}();Me.staticControls=rn,Me.staticRegisteredTypes=new Set(rn.map(function(t){return t.Designer.controlType})),Me.staticRegisteredConfigs=new Map;function re(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var me=function t(e){re(this,t);var r;this.dataCode=(r=e==null?void 0:e.dataCode)!==null&&r!==void 0?r:"";var n;this.fieldCode=(n=e==null?void 0:e.fieldCode)!==null&&n!==void 0?n:"";var u;this.fieldType=(u=e==null?void 0:e.fieldType)!==null&&u!==void 0?u:""},Z=function t(){re(this,t)},$e=function t(e){re(this,t);var r;this.amount=(r=e==null?void 0:e.amount)!==null&&r!==void 0?r:"";var n;this.currency=(n=e==null?void 0:e.currency)!==null&&n!==void 0?n:at.CNY},Oe=function t(e){re(this,t);var r;this.min=(r=e==null?void 0:e.min)!==null&&r!==void 0?r:"";var n;this.max=(n=e==null?void 0:e.max)!==null&&n!==void 0?n:""},Pe=function t(e){re(this,t);var r;this.city=(r=e==null?void 0:e.city)!==null&&r!==void 0?r:"";var n;this.cityDisplay=(n=e==null?void 0:e.cityDisplay)!==null&&n!==void 0?n:"";var u;this.district=(u=e==null?void 0:e.district)!==null&&u!==void 0?u:"";var a;this.districtDisplay=(a=e==null?void 0:e.districtDisplay)!==null&&a!==void 0?a:"";var o;this.province=(o=e==null?void 0:e.province)!==null&&o!==void 0?o:"";var s;this.provinceDisplay=(s=e==null?void 0:e.provinceDisplay)!==null&&s!==void 0?s:""},Le=function t(e){re(this,t);var r;this.result=(r=e==null?void 0:e.result)!==null&&r!==void 0?r:0;var n;this.unit=(n=e==null?void 0:e.unit)!==null&&n!==void 0?n:""},at;(function(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"})(at||(at={}));var un;(function(t){t.REQUIRED="required",t.IS_HIDE="isHide",t.IS_SHOW_UNIT="isShowUnit",t.IMD_SEARCH="immediatelySearch",t.MULTIPLE="multiple",t.SUBMIT_SELECT_CURRENCY="submitSelectCurrency",t.CAPTION="caption",t.IS_HIDE_CAPTION="isHideCaption",t.DEFAULT_SHOW_OPTIONS="defaultShowOptions",t.CAN_SEARCH="canSearch",t.CAN_CHECK="canCheck",t.CAN_EDIT="canEdit",t.CAN_DELETE="canDelete",t.SHOW_UPPER_CASE="showUpperCase",t.MICROMETER="micrometer",t.PRECISION="precision",t.PERCENTAGE="percentage",t.OPTIONAL_LEVEL="optionalLevel",t.CONTAINS_SUB_NODE="containsSubNode",t.DEFAULT_COLLAPSE="defaultCollapse",t.CAN_VIEW_FORM="canViewForm",t.SERVER_PAGINATION="serverPagination",t.IS_SHOW_CAPTION_TIP="isShowCaptionTip",t.ENCRYPTED="encrypted"})(un||(un={}));var ot;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.READONLY=1]="READONLY",t[t.EDITABLE=2]="EDITABLE",t[t.PRINT=5]="PRINT"})(ot||(ot={}));var Ja=function t(e){re(this,t);var r;this.width=(r=e==null?void 0:e.width)!==null&&r!==void 0?r:"";var n;this.height=(n=e==null?void 0:e.height)!==null&&n!==void 0?n:"";var u;this.widthConfig=(u=e==null?void 0:e.widthConfig)!==null&&u!==void 0?u:"fill";var a;this.heightConfig=(a=e==null?void 0:e.heightConfig)!==null&&a!==void 0?a:"fill"};function Xa(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function st(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qa(){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 xe(t,e,r){return Qa()?xe=Reflect.construct:xe=function(u,a,o){var s=[null];s.push.apply(s,a);var c=Function.bind.apply(u,s),l=new c;return o&&Ee(l,o.prototype),l},xe.apply(null,arguments)}function ve(t){return ve=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},ve(t)}function Za(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ee(t,e)}function Ya(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function eo(t,e){return e&&(to(e)==="object"||typeof e=="function")?e:Xa(t)}function Ee(t,e){return Ee=Object.setPrototypeOf||function(n,u){return n.__proto__=u,n},Ee(t,e)}var to=function(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t};function ct(t){var e=typeof Map=="function"?new Map:void 0;return ct=function(n){if(n===null||!Ya(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,u)}function u(){return xe(n,arguments,ve(this).constructor)}return u.prototype=Object.create(n.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),Ee(u,n)},ct(t)}function no(){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 ro(t){var e=no();return function(){var n=ve(t),u;if(e){var a=ve(this).constructor;u=Reflect.construct(n,arguments,a)}else u=n.apply(this,arguments);return eo(this,u)}}var an=function t(e){st(this,t),this.isHide={type:"boolean"}},on=function(t){Za(r,t);var e=ro(r);function r(n){return st(this,r),e.call(this)}return r}(ct(Array)),ie=function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";st(this,t);var n;this.isHide=(n=e==null?void 0:e.isHide)!==null&&n!==void 0?n:!1,this.style=new Ja(e==null?void 0:e.style);var u;this.caption=(u=e==null?void 0:e.caption)!==null&&u!==void 0?u:r};ie.Rules=an,ie.RuntimeRules=on;function k(){return k=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},k.apply(this,arguments)}function io(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function lt(t){return lt=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},lt(t)}function je(t,e){return je=Object.setPrototypeOf||function(n,u){return n.__proto__=u,n},je(t,e)}function uo(){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 Ne(t,e,r){return uo()?Ne=Reflect.construct:Ne=function(u,a,o){var s=[null];s.push.apply(s,a);var c=Function.bind.apply(u,s),l=new c;return o&&je(l,o.prototype),l},Ne.apply(null,arguments)}function ao(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function ft(t){var e=typeof Map=="function"?new Map:void 0;return ft=function(n){if(n===null||!ao(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,u)}function u(){return Ne(n,arguments,lt(this).constructor)}return u.prototype=Object.create(n.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),je(u,n)},ft(t)}var oo=/%[sdj%]/g,sn=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(sn=function(e,r){typeof console!="undefined"&&console.warn&&r.every(function(n){return typeof n=="string"})&&console.warn(e,r)});function dt(t){if(!t||!t.length)return null;var e={};return t.forEach(function(r){var n=r.field;e[n]=e[n]||[],e[n].push(r)}),e}function x(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=1,u=e[0],a=e.length;if(typeof u=="function")return u.apply(null,e.slice(1));if(typeof u=="string"){var o=String(u).replace(oo,function(s){if(s==="%%")return"%";if(n>=a)return s;switch(s){case"%s":return String(e[n++]);case"%d":return Number(e[n++]);case"%j":try{return JSON.stringify(e[n++])}catch(c){return"[Circular]"}break;default:return s}});return o}return u}function so(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function R(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||so(e)&&typeof t=="string"&&!t)}function co(t,e,r){var n=[],u=0,a=t.length;function o(s){n.push.apply(n,s),u++,u===a&&r(n)}t.forEach(function(s){e(s,o)})}function cn(t,e,r){var n=0,u=t.length;function a(o){if(o&&o.length){r(o);return}var s=n;n=n+1,s<u?e(t[s],a):r([])}a([])}function lo(t){var e=[];return Object.keys(t).forEach(function(r){e.push.apply(e,t[r])}),e}var ln=function(t){io(e,t);function e(r,n){var u;return u=t.call(this,"Async Validation Error")||this,u.errors=r,u.fields=n,u}return e}(ft(Error));function fo(t,e,r,n){if(e.first){var u=new Promise(function(p,h){var g=function(b){return n(b),b.length?h(new ln(b,dt(b))):p()},E=lo(t);cn(E,r,g)});return u.catch(function(p){return p}),u}var a=e.firstFields||[];a===!0&&(a=Object.keys(t));var o=Object.keys(t),s=o.length,c=0,l=[],d=new Promise(function(p,h){var g=function(y){if(l.push.apply(l,y),c++,c===s)return n(l),l.length?h(new ln(l,dt(l))):p()};o.length||(n(l),p()),o.forEach(function(E){var y=t[E];a.indexOf(E)!==-1?cn(y,r,g):co(y,r,g)})});return d.catch(function(p){return p}),d}function fn(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 dn(t,e){if(e){for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];typeof n=="object"&&typeof t[r]=="object"?t[r]=k(k({},t[r]),n):t[r]=n}}return t}function pn(t,e,r,n,u,a){t.required&&(!r.hasOwnProperty(t.field)||R(e,a||t.type))&&n.push(x(u.messages.required,t.fullField))}function po(t,e,r,n,u){(/^\s+$/.test(e)||e==="")&&n.push(x(u.messages.whitespace,t.fullField))}var pt={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},be={integer:function(e){return be.number(e)&&parseInt(e,10)===e},float:function(e){return be.number(e)&&!be.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(r){return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!be.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&!!e.match(pt.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(pt.url)},hex:function(e){return typeof e=="string"&&!!e.match(pt.hex)}};function ho(t,e,r,n,u){if(t.required&&e===void 0){pn(t,e,r,n,u);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=t.type;a.indexOf(o)>-1?be[o](e)||n.push(x(u.messages.types[o],t.fullField,t.type)):o&&typeof e!==t.type&&n.push(x(u.messages.types[o],t.fullField,t.type))}function go(t,e,r,n,u){var a=typeof t.len=="number",o=typeof t.min=="number",s=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=e,d=null,p=typeof e=="number",h=typeof e=="string",g=Array.isArray(e);if(p?d="number":h?d="string":g&&(d="array"),!d)return!1;g&&(l=e.length),h&&(l=e.replace(c,"_").length),a?l!==t.len&&n.push(x(u.messages[d].len,t.fullField,t.len)):o&&!s&&l<t.min?n.push(x(u.messages[d].min,t.fullField,t.min)):s&&!o&&l>t.max?n.push(x(u.messages[d].max,t.fullField,t.max)):o&&s&&(l<t.min||l>t.max)&&n.push(x(u.messages[d].range,t.fullField,t.min,t.max))}var oe="enum";function yo(t,e,r,n,u){t[oe]=Array.isArray(t[oe])?t[oe]:[],t[oe].indexOf(e)===-1&&n.push(x(u.messages[oe],t.fullField,t[oe].join(", ")))}function mo(t,e,r,n,u){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||n.push(x(u.messages.pattern.mismatch,t.fullField,e,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(e)||n.push(x(u.messages.pattern.mismatch,t.fullField,e,t.pattern))}}}var A={required:pn,whitespace:po,type:ho,range:go,enum:yo,pattern:mo};function vo(t,e,r,n,u){var a=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(R(e,"string")&&!t.required)return r();A.required(t,e,n,a,u,"string"),R(e,"string")||(A.type(t,e,n,a,u),A.range(t,e,n,a,u),A.pattern(t,e,n,a,u),t.whitespace===!0&&A.whitespace(t,e,n,a,u))}r(a)}function Eo(t,e,r,n,u){var a=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(R(e)&&!t.required)return r();A.required(t,e,n,a,u),e!==void 0&&A.type(t,e,n,a,u)}r(a)}function bo(t,e,r,n,u){var a=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(e===""&&(e=void 0),R(e)&&!t.required)return r();A.required(t,e,n,a,u),e!==void 0&&(A.type(t,e,n,a,u),A.range(t,e,n,a,u))}r(a)}function Ao(t,e,r,n,u){var a=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(R(e)&&!t.required)return r();A.required(t,e,n,a,u),e!==void 0&&A.type(t,e,n,a,u)}r(a)}function Co(t,e,r,n,u){var a=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(R(e)&&!t.required)return r();A.required(t,e,n,a,u),R(e)||A.type(t,e,n,a,u)}r(a)}function Bo(t,e,r,n,u){var a=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(R(e)&&!t.required)return r();A.required(t,e,n,a,u),e!==void 0&&(A.type(t,e,n,a,u),A.range(t,e,n,a,u))}r(a)}function wo(t,e,r,n,u){var a=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(R(e)&&!t.required)return r();A.required(t,e,n,a,u),e!==void 0&&(A.type(t,e,n,a,u),A.range(t,e,n,a,u))}r(a)}function So(t,e,r,n,u){var a=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(e==null&&!t.required)return r();A.required(t,e,n,a,u,"array"),e!=null&&(A.type(t,e,n,a,u),A.range(t,e,n,a,u))}r(a)}function Fo(t,e,r,n,u){var a=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(R(e)&&!t.required)return r();A.required(t,e,n,a,u),e!==void 0&&A.type(t,e,n,a,u)}r(a)}var _o="enum";function Do(t,e,r,n,u){var a=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(R(e)&&!t.required)return r();A.required(t,e,n,a,u),e!==void 0&&A[_o](t,e,n,a,u)}r(a)}function Io(t,e,r,n,u){var a=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(R(e,"string")&&!t.required)return r();A.required(t,e,n,a,u),R(e,"string")||A.pattern(t,e,n,a,u)}r(a)}function Ro(t,e,r,n,u){var a=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(R(e,"date")&&!t.required)return r();if(A.required(t,e,n,a,u),!R(e,"date")){var s;e instanceof Date?s=e:s=new Date(e),A.type(t,s,n,a,u),s&&A.range(t,s.getTime(),n,a,u)}}r(a)}function Mo(t,e,r,n,u){var a=[],o=Array.isArray(e)?"array":typeof e;A.required(t,e,n,a,u,o),r(a)}function ht(t,e,r,n,u){var a=t.type,o=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(R(e,a)&&!t.required)return r();A.required(t,e,n,o,u,a),R(e,a)||A.type(t,e,n,o,u)}r(o)}function $o(t,e,r,n,u){var a=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(R(e)&&!t.required)return r();A.required(t,e,n,a,u)}r(a)}var Ae={string:vo,method:Eo,number:bo,boolean:Ao,regexp:Co,integer:Bo,float:wo,array:So,object:Fo,enum:Do,pattern:Io,date:Ro,url:ht,hex:ht,email:ht,required:Mo,any:$o};function gt(){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 yt=gt();function Y(t){this.rules=null,this._messages=yt,this.define(t)}Y.prototype={messages:function(e){return e&&(this._messages=dn(gt(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if(typeof e!="object"||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var r,n;for(r in e)e.hasOwnProperty(r)&&(n=e[r],this.rules[r]=Array.isArray(n)?n:[n])},validate:function(e,r,n){var u=this;r===void 0&&(r={}),n===void 0&&(n=function(){});var a=e,o=r,s=n;if(typeof o=="function"&&(s=o,o={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(),Promise.resolve();function c(y){var b,f=[],m={};function $(v){if(Array.isArray(v)){var D;f=(D=f).concat.apply(D,v)}else f.push(v)}for(b=0;b<y.length;b++)$(y[b]);f.length?m=dt(f):(f=null,m=null),s(f,m)}if(o.messages){var l=this.messages();l===yt&&(l=gt()),dn(l,o.messages),o.messages=l}else o.messages=this.messages();var d,p,h={},g=o.keys||Object.keys(this.rules);g.forEach(function(y){d=u.rules[y],p=a[y],d.forEach(function(b){var f=b;typeof f.transform=="function"&&(a===e&&(a=k({},a)),p=a[y]=f.transform(p)),typeof f=="function"?f={validator:f}:f=k({},f),f.validator=u.getValidationMethod(f),f.field=y,f.fullField=f.fullField||y,f.type=u.getType(f),f.validator&&(h[y]=h[y]||[],h[y].push({rule:f,value:p,source:a,field:y}))})});var E={};return fo(h,o,function(y,b){var f=y.rule,m=(f.type==="object"||f.type==="array")&&(typeof f.fields=="object"||typeof f.defaultField=="object");m=m&&(f.required||!f.required&&y.value),f.field=y.field;function $(z,S){return k(k({},S),{},{fullField:f.fullField+"."+z})}function v(z){z===void 0&&(z=[]);var S=z;if(Array.isArray(S)||(S=[S]),!o.suppressWarning&&S.length&&Y.warning("async-validator:",S),S.length&&f.message!==void 0&&(S=[].concat(f.message)),S=S.map(fn(f)),o.first&&S.length)return E[f.field]=1,b(S);if(!m)b(S);else{if(f.required&&!y.value)return f.message!==void 0?S=[].concat(f.message).map(fn(f)):o.error&&(S=[o.error(f,x(o.messages.required,f.field))]),b(S);var K={};if(f.defaultField)for(var Wn in y.value)y.value.hasOwnProperty(Wn)&&(K[Wn]=f.defaultField);K=k(k({},K),y.rule.fields);for(var fe in K)if(K.hasOwnProperty(fe)){var xc=Array.isArray(K[fe])?K[fe]:[K[fe]];K[fe]=xc.map($.bind(null,fe))}var zn=new Y(K);zn.messages(o.messages),y.rule.options&&(y.rule.options.messages=o.messages,y.rule.options.error=o.error),zn.validate(y.value,y.rule.options||o,function(Vt){var de=[];S&&S.length&&de.push.apply(de,S),Vt&&Vt.length&&de.push.apply(de,Vt),b(de.length?de:null)})}}var D;f.asyncValidator?D=f.asyncValidator(f,y.value,v,y.source,o):f.validator&&(D=f.validator(f,y.value,v,y.source,o),D===!0?v():D===!1?v(f.message||f.field+" fails"):D instanceof Array?v(D):D instanceof Error&&v(D.message)),D&&D.then&&D.then(function(){return v()},function(z){return v(z)})},function(y){c(y)})},getType:function(e){if(e.type===void 0&&e.pattern instanceof RegExp&&(e.type="pattern"),typeof e.validator!="function"&&e.type&&!Ae.hasOwnProperty(e.type))throw new Error(x("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if(typeof e.validator=="function")return e.validator;var r=Object.keys(e),n=r.indexOf("message");return n!==-1&&r.splice(n,1),r.length===1&&r[0]==="required"?Ae.required:Ae[this.getType(e)]||!1}},Y.register=function(e,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Ae[e]=r},Y.warning=sn,Y.messages=yt,Y.validators=Ae;var Oo={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 Po(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new Y(t);return r.messages(Object.assign(Oo,e)),r}var Lo=new tn;function mt(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function xo(t){if(Array.isArray(t))return t}function jo(t){if(Array.isArray(t))return mt(t)}function hn(t,e,r,n,u,a,o){try{var s=t[a](o),c=s.value}catch(l){r(l);return}s.done?e(c):Promise.resolve(c).then(n,u)}function gn(t){return function(){var e=this,r=arguments;return new Promise(function(n,u){var a=t.apply(e,r);function o(c){hn(a,n,u,o,s,"next",c)}function s(c){hn(a,n,u,o,s,"throw",c)}o(void 0)})}}function No(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function To(t,e,r){return e&&yn(t.prototype,e),r&&yn(t,r),t}function Vo(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mn(t,e){return e!=null&&typeof Symbol!="undefined"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function vn(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function qo(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Uo(){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 En(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(u){return Object.getOwnPropertyDescriptor(r,u).enumerable}))),n.forEach(function(u){Vo(t,u,r[u])})}return t}function ko(t){return xo(t)||vn(t)||bn(t,i)||qo()}function vt(t){return jo(t)||vn(t)||bn(t)||Uo()}function bn(t,e){if(!!t){if(typeof t=="string")return mt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mt(t,e)}}var H=function(){function e(n){var u=this;No(this,e),this.setting=[],this.eventKeys=[],this.customEvents=[],this.parent=null,this.updateSetting=Cn,this.removeSetting=An,this._callControlHooks("preInstance",n);var a=mn(this,e)?this.constructor:void 0,o=a.controlName,s=a.controlIcon,c=a.controlType,l=a.controlFieldType,d=a.controlEventKeys,p=a.controlCustomEvents,h=a.name,g=a.setting;o&&s&&c||Jt("The ".concat(h," controlName,controlIcon,controlType is not define"));var E;this.id=(E=n==null?void 0:n.id)!==null&&E!==void 0?E:Qe(10),this.name=o,this.icon=s;var y;this.type=(y=n==null?void 0:n.type)!==null&&y!==void 0?y:c,this.props=new ie(n==null?void 0:n.props,(mn(this,e)?this.constructor:void 0).controlName);var b;this.controlType=(b=n==null?void 0:n.controlType)!==null&&b!==void 0?b:"base",this.setting=_(g);var f;this.fieldType=(f=n==null?void 0:n.fieldType)!==null&&f!==void 0?f:l,this.eventKeys=_(d),this.customEvents=_(p),Promise.resolve().then(function(){u._callControlHooks("postInstance",n)})}var r=e.prototype;return r._callControlHooks=function(){for(var u=arguments.length,a=new Array(u),o=0;o<u;o++)a[o]=arguments[o];var s,c=ko(a),l=c[0],d=c.slice(1);return(s=Lo).emit.apply(s,[l,this].concat(vt(d)))},r.preUpdate=function(u,a){this._callControlHooks("preUpdateProps",u,a)},r.postUpdate=function(u,a){this._callControlHooks("postUpdateProps",u,a)},r.updateProps=function(u,a){this.preUpdate(u,a),Qt(this.props,u,a),this.postUpdate(u,a)},r.preValidate=function(){var u=this;return gn(V.default.mark(function a(){var o,s,c;return V.default.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return o=En({},u.rules),d.next=3,u._callControlHooks("preValidate",o);case 3:return s=d.sent,c=s[s.length-1],d.abrupt("return",c===!1?void 0:c);case 6:case"end":return d.stop()}},a)}))()},r.validate=function(u,a){var o=this;return gn(V.default.mark(function s(){var c,l,d;return V.default.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,o.preValidate();case 2:return c=h.sent,l=c!==void 0?c:En({},o.rules),Array.isArray(a)&&a.forEach(function(g){l.hasOwnProperty(g)&&delete l[g]}),d=Po(l,u),h.prev=6,h.next=9,d.validate(o.props);case 9:return h.abrupt("return",!0);case 12:throw h.prev=12,h.t0=h.catch(6),h.t0.control||(h.t0.control=o),h.t0;case 16:case"end":return h.stop()}},s,null,[[6,12]])}))()},r.toDataBindModel=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,a=this.fieldType,o=this.id,s=this.type,c=this.props,l=c.dataBind,d=c.datasourceBind,p=c.optionConfig,h=c.caption,g=c.required,E=c.maxLength,y=c.options,b=c.encrypted,f=c.encryptedMode;if(!(!a&&!l&&!d)){var m={parentId:u,fieldType:a,controlId:o,caption:h,type:s,props:{}};switch(l&&(m.dataBind=l),p){case"datasource":case void 0:d&&(m.datasourceBind=d);break;case"custom":m.props.options=y;break}return g!==void 0&&(m.required=g),E!==void 0&&(m.maxLength=E),b!==void 0&&(m.encrypted=b),f!==void 0&&(m.encryptedMode=f),m}},r.preToSchema=function(){this._callControlHooks("preToSchema",this)},r.toSchema=function(){return this.preToSchema(),{id:this.id,type:this.type,props:_(this.props),fieldType:this.fieldType,controlType:this.controlType}},e.updateBasicControl=function(u,a){if(u==="setting"){if(a.add){var o;(o=this.setting).push.apply(o,vt(a.add))}a.remove&&this.removeSettingItem(a.remove),a.update}},To(e,[{key:"rules",get:function(){var u=this.props.constructor.Rules;return u?new u(this.props):{}}}]),e}();H.controlName="\u63A7\u4EF6",H.controlIcon="icon",H.controlType="control",H.controlEventKeys=[],H.controlCustomEvents=[],H.setting=[],H.__is_control__=!0,H.removeSettingItem=An,H.updateSettingItem=Cn;function An(t){var e=this,r=Array.isArray(t)?t:[t];r.forEach(function(n){var u=typeof n!="string",a=e.setting.findIndex(function(c){return c.key===(u?n.key:n)});if(a!==-1){var o,s;u?e.setting[a].showItems=(o=e.setting[a].showItems)===null||o===void 0?void 0:o.filter(function(c){return!n.hideItems.includes(c)}):e.setting.splice(a,1),u&&!(!((s=e.setting[a].showItems)===null||s===void 0)&&s.length)&&e.setting.splice(a,1)}})}function Cn(t,e){var r=this,n=typeof t=="string"?[t]:t;n.forEach(function(u){var a=r.setting.find(function(l){return l.key===u});if(a){if(typeof e=="boolean")a.visible=e;else if(typeof e=="object"){var o,s=(o=e.type)!==null&&o!==void 0?o:"replace";if(s==="replace")a.showItems=e.showItems;else{var c;(c=a.showItems).push.apply(c,vt(e.showItems))}}}})}function Ho(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Wo(t,e,r){return e&&Bn(t.prototype,e),r&&Bn(t,r),t}function zo(t,e){return e!=null&&typeof Symbol!="undefined"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}var se=function(){function e(r){Ho(this,e),this.customEvents=[],this.parent=null;var n=zo(this,e)?this.constructor:void 0,u=n.controlType,a=n.controlFieldType,o=n.name,s=n.controlCustomEvents;u||Jt("The ".concat(o," controlType is not define"));var c;this.id=(c=r==null?void 0:r.id)!==null&&c!==void 0?c:Qe(10);var l;this.type=(l=r==null?void 0:r.type)!==null&&l!==void 0?l:u,this.props=new ie(r==null?void 0:r.props),this.customEvents=s;var d;this.controlType=(d=r==null?void 0:r.controlType)!==null&&d!==void 0?d:"base";var p;this.fieldType=(p=r==null?void 0:r.fieldType)!==null&&p!==void 0?p:a;var h;this.pageStatus=(h=r==null?void 0:r.pageStatus)!==null&&h!==void 0?h:ot.UNKNOWN}return Wo(e,[{key:"rules",get:function(){var n=this.props.constructor.RuntimeRules;if(n){var u=new n(this.props);return Array.from(u)}return[]}}]),e}();se.controlType="control",se.__is_control__=!0,se.controlCustomEvents=[];function Ko(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Et(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Te(t){return Te=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Te(t)}function bt(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&&At(t,e)}function Go(t,e){return e!=null&&typeof Symbol!="undefined"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function Jo(t,e){return e&&(Xo(e)==="object"||typeof e=="function")?e:Ko(t)}function At(t,e){return At=Object.setPrototypeOf||function(n,u){return n.__proto__=u,n},At(t,e)}var Xo=function(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t};function Qo(){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 Ct(t){var e=Qo();return function(){var n=Te(t),u;if(e){var a=Te(this).constructor;u=Reflect.construct(n,arguments,a)}else u=n.apply(this,arguments);return Jo(this,u)}}var Zo=function(t){bt(r,t);var e=Ct(r);function r(n){Et(this,r);var u;u=e.call(this,n),u.dataBind={},u.caption={type:"string",required:!0,message:N.getMessage("pleaseEnterCaption")},u.isHideCaption={type:"boolean"},u.labelPosition={type:"enum",enum:["top","left"]},u.defaultState={type:"enum",enum:["default","readonly"]},u.required={type:"boolean"},u.captionTip={type:"string",required:!1,message:N.getMessage("pleaseEnterCaptionTip")};var a={fieldCode:{type:"string",required:!0,message:N.getMessage("pleaseEnterFieldCode")},dataCode:{type:"string",required:!0,message:N.getMessage("pleaseEnterFieldCode")}};if(Go(n.dataBind,me))u.dataBind={type:"object",required:!0,fields:_(a),message:N.getMessage("pleaseEnterFieldCode")};else{var o={type:"object",required:!0,fields:{},message:N.getMessage("pleaseEnterFieldCode")};Object.keys(n.dataBind).forEach(function(s){o.fields[s]={type:"object",required:!0,fields:_(a),message:N.getMessage("pleaseEnterFieldCode")}}),u.dataBind=o}return n.isShowCaptionTip&&(u.captionTip.required=!0),u}return r}(an),Yo=function(t){bt(r,t);var e=Ct(r);function r(n){Et(this,r);var u;return u=e.call(this,n),u.push({type:"string",required:n.isHide?!1:n.required,message:n.requiredMessage!==""?n.requiredMessage:N.getMessage("runtimeRequired",{caption:n.caption})}),u}return r}(on),Bt=function(t){bt(r,t);var e=Ct(r);function r(n){Et(this,r);var u;u=e.call(this,n);var a;u.caption=(a=n==null?void 0:n.caption)!==null&&a!==void 0?a:"";var o;u.isHideCaption=(o=n==null?void 0:n.isHideCaption)!==null&&o!==void 0?o:!1;var s;u.isShowCaptionTip=(s=n==null?void 0:n.isShowCaptionTip)!==null&&s!==void 0?s:!1;var c;u.captionTip=(c=n==null?void 0:n.captionTip)!==null&&c!==void 0?c:"";var l;u.defaultState=(l=n==null?void 0:n.defaultState)!==null&&l!==void 0?l:"default";var d;u.labelPosition=(d=n==null?void 0:n.labelPosition)!==null&&d!==void 0?d:"top";var p;u.placeholder=(p=n==null?void 0:n.placeholder)!==null&&p!==void 0?p:"";var h;u.required=(h=n==null?void 0:n.required)!==null&&h!==void 0?h:!1;var g;u.requiredMessage=(g=n==null?void 0:n.requiredMessage)!==null&&g!==void 0?g:"",u.dataBind=new me(n==null?void 0:n.dataBind);var E;return u.defaultValue=(E=n==null?void 0:n.defaultValue)!==null&&E!==void 0?E:"",u}return r}(ie);Bt.Rules=Zo,Bt.RuntimeRules=Yo;function es(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ts(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ve(t){return Ve=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ve(t)}function ns(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&&wt(t,e)}function rs(t,e){return e&&(is(e)==="object"||typeof e=="function")?e:es(t)}function wt(t,e){return wt=Object.setPrototypeOf||function(n,u){return n.__proto__=u,n},wt(t,e)}var is=function(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t};function us(){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 as(t){var e=us();return function(){var n=Ve(t),u;if(e){var a=Ve(this).constructor;u=Reflect.construct(n,arguments,a)}else u=n.apply(this,arguments);return rs(this,u)}}var W=function(t){ns(r,t);var e=as(r);function r(n){ts(this,r);var u;return u=e.call(this,n),u.controlType="form",u.props=new Bt(n==null?void 0:n.props),u}return r}(se);function os(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ss(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qe(t){return qe=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},qe(t)}function cs(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&&St(t,e)}function ls(t,e){return e&&(fs(e)==="object"||typeof e=="function")?e:os(t)}function St(t,e){return St=Object.setPrototypeOf||function(n,u){return n.__proto__=u,n},St(t,e)}var fs=function(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t};function ds(){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 ps(t){var e=ds();return function(){var n=qe(t),u;if(e){var a=qe(this).constructor;u=Reflect.construct(n,arguments,a)}else u=n.apply(this,arguments);return ls(this,u)}}var wn=function(t){cs(r,t);var e=ps(r);function r(n){return ss(this,r),e.call(this,n)}return r}(ie);function Ft(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function hs(t){if(Array.isArray(t))return Ft(t)}function gs(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ys(){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 Sn(t){return hs(t)||gs(t)||ms(t)||ys()}function ms(t,e){if(!!t){if(typeof t=="string")return Ft(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ft(t,e)}}function vs(t,e){var r;!((r=Object.getOwnPropertyDescriptors(t)[e])===null||r===void 0)&&r.enumerable&&Object.defineProperty(t,e,{enumerable:!1})}function Fn(t,e){t.parent=e,vs(t,"parent")}function Es(t,e){t.forEach(function(r){Fn(r,e)})}var _n=Symbol("targetKey");function Dn(t){var e;return(e=t[_n])!==null&&e!==void 0?e:t}function In(t,e){return Es(t,e),new Proxy(t,{get:function(n,u){for(var a=arguments.length,o=new Array(a>2?a-2:0),s=2;s<a;s++)o[s-2]=arguments[s];var c;return u===_n?n:(c=Reflect).get.apply(c,[n,u].concat(Sn(o)))},set:function(n,u,a){for(var o=arguments.length,s=new Array(o>3?o-3:0),c=3;c<o;c++)s[c-3]=arguments[c];var l;if(ae(t)&&u==="length"&&a===t.length)return!0;var d=(l=Reflect).set.apply(l,[n,u,a].concat(Sn(s)));return U(a)&&Fn(a,e),d}})}function Ue(t,e,r,n){var u=n!=null?n:t,a=In(Dn(r!=null?r:[]),u);Object.defineProperty(t,e,{get:function(){return a},set:function(s){a=In(Dn(s),u)},enumerable:!0})}function _t(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function bs(t){if(Array.isArray(t))return _t(t)}function Rn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Mn(t,e,r,n,u,a,o){try{var s=t[a](o),c=s.value}catch(l){r(l);return}s.done?e(c):Promise.resolve(c).then(n,u)}function As(t){return function(){var e=this,r=arguments;return new Promise(function(n,u){var a=t.apply(e,r);function o(c){Mn(a,n,u,o,s,"next",c)}function s(c){Mn(a,n,u,o,s,"throw",c)}o(void 0)})}}function Cs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bs(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ce(t,e,r){return typeof Reflect!="undefined"&&Reflect.get?ce=Reflect.get:ce=function(u,a,o){var s=$s(u,a);if(!!s){var c=Object.getOwnPropertyDescriptor(s,a);return c.get?c.get.call(o):c.value}},ce(t,e,r||t)}function ee(t){return ee=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},ee(t)}function ws(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&&Dt(t,e)}function Ss(t,e){return e!=null&&typeof Symbol!="undefined"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function Fs(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function _s(){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 Ds(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(u){return Object.getOwnPropertyDescriptor(r,u).enumerable}))),n.forEach(function(u){Bs(t,u,r[u])})}return t}function Is(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),r.push.apply(r,n)}return r}function Rs(t,e){return e=e!=null?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Is(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}function Ms(t,e){return e&&(Os(e)==="object"||typeof e=="function")?e:Rn(t)}function Dt(t,e){return Dt=Object.setPrototypeOf||function(n,u){return n.__proto__=u,n},Dt(t,e)}function $s(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=ee(t),t!==null););return t}function $n(t){return bs(t)||Fs(t)||Ps(t)||_s()}var Os=function(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t};function Ps(t,e){if(!!t){if(typeof t=="string")return _t(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _t(t,e)}}function Ls(){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 xs(t){var e=Ls();return function(){var n=ee(t),u;if(e){var a=ee(this).constructor;u=Reflect.construct(n,arguments,a)}else u=n.apply(this,arguments);return Ms(this,u)}}var js=1e4,On=function(e){ws(n,e);var r=xs(n);function n(a){Cs(this,n);var o;o=r.call(this,a),o.controlType="layout";var s=Ss(this,n)?this.constructor:void 0,c=s.excludes,l=s.childrenMaxLength;return o.props=new wn(a==null?void 0:a.props),Ue(Rn(o),"children",a==null?void 0:a.children),o.excludes=_(c),o.childrenMaxLength=l,o}var u=n.prototype;return u.judgeExcludesChildren=function(o){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(o)},u.judgeJoinChildren=function(o){var s=this.judgeExcludesChildren(o);return s&&this.childrenMaxLength>this.children.length},u.validate=function(o,s){var c=this,l=this,d=function(){return ce(ee(n.prototype),"validate",c)};return As(V.default.mark(function p(){return V.default.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,d().call(l,o,s);case 2:return g.next=4,Promise.all(l.children.map(function(E){return E.validate(o,s)}));case 4:return g.abrupt("return",!0);case 5:case"end":return g.stop()}},p)}))()},u.toDataBindModel=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,s=ce(ee(n.prototype),"toDataBindModel",this).call(this),c=s?[s]:[];return this.children.reduce(function(l,d){var p=d.toDataBindModel(o);if(Array.isArray(p)){var h=p.filter(function(g){return!!g});return $n(l).concat($n(h))}return p&&l.push(p),l},c)},u.toSchema=function(){var o=ce(ee(n.prototype),"toSchema",this).call(this),s=this.children.map(function(c){var l=c.toSchema();return l});return Rs(Ds({},o),{children:s})},n}(H);On.excludes=!1,On.childrenMaxLength=js;function Pn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ns(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ke(t){return ke=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},ke(t)}function Ts(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&&It(t,e)}function Vs(t,e){return e&&(qs(e)==="object"||typeof e=="function")?e:Pn(t)}function It(t,e){return It=Object.setPrototypeOf||function(n,u){return n.__proto__=u,n},It(t,e)}var qs=function(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t};function Us(){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 ks(t){var e=Us();return function(){var n=ke(t),u;if(e){var a=ke(this).constructor;u=Reflect.construct(n,arguments,a)}else u=n.apply(this,arguments);return Vs(this,u)}}var Hs=function(t){Ts(r,t);var e=ks(r);function r(n){Ns(this,r);var u;return u=e.call(this,n),u.controlType="layout",u.props=new wn(n==null?void 0:n.props),Ue(Pn(u),"children",n==null?void 0:n.children),u}return r}(se);function Ln(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ws(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function He(t){return He=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},He(t)}function zs(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&&Rt(t,e)}function Ks(t,e){return e&&(Gs(e)==="object"||typeof e=="function")?e:Ln(t)}function Rt(t,e){return Rt=Object.setPrototypeOf||function(n,u){return n.__proto__=u,n},Rt(t,e)}var Gs=function(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t};function Js(){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 Xs(t){var e=Js();return function(){var n=He(t),u;if(e){var a=He(this).constructor;u=Reflect.construct(n,arguments,a)}else u=n.apply(this,arguments);return Ks(this,u)}}var Qs=function(t){zs(r,t);var e=Xs(r);function r(n,u){Ws(this,r);var a;return a=e.call(this,u),Ue(Ln(a),"headers",u==null?void 0:u.headers,n),a}return r}(ie);C.LIST;function Mt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Zs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Ys(t,e,r){return e&&xn(t.prototype,e),r&&xn(t,r),t}function We(t){return We=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},We(t)}function ec(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&&$t(t,e)}function tc(t,e){return e&&(nc(e)==="object"||typeof e=="function")?e:Mt(t)}function $t(t,e){return $t=Object.setPrototypeOf||function(n,u){return n.__proto__=u,n},$t(t,e)}var nc=function(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t};function rc(){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 ic(t){var e=rc();return function(){var n=We(t),u;if(e){var a=We(this).constructor;u=Reflect.construct(n,arguments,a)}else u=n.apply(this,arguments);return tc(this,u)}}var ze=function(t){ec(r,t);var e=ic(r);function r(n){Zs(this,r);var u;return u=e.call(this,n),u.controlType="list",u.props=new Qs(Mt(u),n==null?void 0:n.props),Ue(Mt(u),"children",n==null?void 0:n.children),u}return Ys(r,[{key:"length",get:function(){return this.children.length}}]),r}(se);function Ke(t){return t.controlType===q.LAYOUT||t.controlType===q.WRAP||t.controlType===q.LIST||t.controlType===q.SEARCH}function Ce(t,e){Array.isArray(t)&&t.map(r=>{if(r.type===w.SUBTABLE){const n=r.getChildrenFormControl();e(r,n)}else Ke(r)?Ce(r==null?void 0:r.children,e):r instanceof W&&e(r)})}function Be(t,e){Array.isArray(t)&&t.map(r=>{r.type===w.DATA_VIEW||r.type===w.SIMPLE_SEARCH?e(r):Ke(r)&&Be(r==null?void 0:r.children,e)})}class Ot extends Me{constructor(e){super("Runtime"),this._flatInstances=[],this._instanceMap={};const{schema:r}=e;this._schema=r,this._instance=this.createControl(r,e.beforeCreateInstance),this.getFlatInstances()}getFlatInstances(){const e=[],r={};return jn(this._instance,n=>{e.push(n),r[n.id]||(r[n.id]=[]),r[n.id].push(n)}),this._flatInstances=e,this._instanceMap=r,this._flatInstances}get schema(){return this._schema}get instance(){return this._instance}get flatInstances(){return this._flatInstances}get instanceMap(){return this._instanceMap}get rules(){let e={};return Be(this._instance,r=>{e[r.id]=r.rules[0],Ce(r.children,n=>{(n instanceof W||n instanceof ze)&&uc(e[r.id].fields,n)})}),e}get antdRules(){let e={};return Be(this._instance,r=>{e[r.id]=r.rules[0],Ce(r.children,n=>{(n instanceof W||n instanceof ze)&&ac(e[r.id].fields,n)})}),e}}function jn(t,e){Array.isArray(t)?t.map(r=>{e(r),Ke(r)&&jn(r.children,e)}):e(t)}function Pt(t){return t.props.isHide?!0:t.parent===null?!1:Pt(t.parent)}function uc(t,e){if(!Pt(e)){if(e instanceof W)t[e.id]=e.rules;else if(e.type===w.SUBTABLE){t[e.id]=e.rules;const r={type:"array",fields:{}};e.children.forEach((n,u)=>{ne(n.children,a=>{r.fields&&(r.fields[u]||(r.fields[u]={type:"object",required:!0,fields:{}}),r.fields[u].fields[a.id]=a.rules)})}),t[e.id].push(r)}}}function ac(t,e){Pt(e)||(e instanceof W?t[e.id]=e.rules:e.type===w.SUBTABLE&&e.children.length&&(t[e.id]=[],e.children.forEach(r=>{let n={};ne(r.children,u=>{n[u.id]=u.rules}),t[e.id].push(n)})))}class oc{constructor(e){const{state:r,emptyState:n,databindMapping:u,controlidMapping:a}=sc(e.instance);this.emptyState=n,this.state=r,this.dataBindMapping=u,this.controlIdMapping=a}setState(e,r,n){const u=this.controlIdMapping[e];u!==void 0?this.state[u.dataView][e]=r:n!==void 0?Object.keys(this.controlIdMapping).map(a=>{const o=this.controlIdMapping[a].dataView,s=this.controlIdMapping[a].children;s!==void 0&&Object.keys(s).map(c=>{c===e&&(this.state[o][a][n][e]=r)})}):this.state[e]=r}getState(e,r){if(this.state[e]!==void 0)return this.state[e];{const u=this.controlIdMapping[e];if(u!==void 0)return this.state[u.dataView][e];if(r!==void 0){let a;return Object.keys(this.controlIdMapping).map(o=>{const s=this.controlIdMapping[o].dataView,c=this.controlIdMapping[o].children;c!==void 0&&Object.keys(c).map(l=>{var d;l===e&&(a=(d=this.state[s][o][r])==null?void 0:d[e])})}),a}else{let a=[];return Object.keys(this.controlIdMapping).map(o=>{const s=this.controlIdMapping[o].dataView,c=this.controlIdMapping[o].children;c!==void 0&&Object.keys(c).map(l=>{l===e&&this.state[s][o].map(d=>{a.push(d[e])})})}),a}}}getEmptyState(e){if(this.emptyState[e]!==void 0)return this.emptyState[e];{const n=this.controlIdMapping[e];if(n!==void 0)return this.emptyState[n.dataView][e];{let u;return Object.keys(this.controlIdMapping).map(a=>{const o=this.controlIdMapping[a].dataView,s=this.controlIdMapping[a].children;s!==void 0&&Object.keys(s).map(c=>{c===e&&(u=this.emptyState[o][a][e])})}),u}}}getDataBind(e){let r=this.controlIdMapping[e];if(r)return r.dataBind;e:for(let n in this.controlIdMapping){const u=this.controlIdMapping[n];if(u.children){for(let a in u.children)if(a===e){r=u.children[a];break e}}}return r==null?void 0:r.dataBind}}function sc(t){let e={},r={},n={},u={};return Be(t,a=>{const o=a.id,s={},c={};Ce([a],(l,d)=>{cc(s,c,l),lc(n,o,l),fc(u,o,l)}),e[o]=s,r[o]=c}),{state:e,emptyState:r,databindMapping:n,controlidMapping:u}}function cc(t,e,r){var n;if(r instanceof W)t[r.id]=_(r.props.defaultValue),e[r.id]=_(r.props.defaultValue);else{const u={};ne(r.props.headers,a=>{u[a.id]=_(a.props.defaultValue)}),t[r.id]=new Array((n=r.props.defaultRows)!=null?n:1).fill(0).map(()=>_(u)),e[r.id]=u}}function lc(t,e,r){if(r instanceof W)r.props.dataBind instanceof Z?Object.keys(r.props.dataBind).map(n=>{const u=r.props.dataBind,a=u[n].dataCode;a!==void 0&&(t[a]===void 0&&(t[a]={controlId:r.id,fields:[],dataViewId:e}),t[a].fields.push({fieldCode:u[n].fieldCode,controlId:r.id,dataBind:u,dataViewId:[e]}))}):(t[r.props.dataBind.dataCode]===void 0&&(t[r.props.dataBind.dataCode]={controlId:e,fields:[],dataViewId:e}),t[r.props.dataBind.dataCode].fields.push({fieldCode:r.props.dataBind.fieldCode,controlId:r.id,dataBind:r.props.dataBind,dataViewId:[e]}));else{if(r.props.datasourceBind.dataCode===""){Q(`datasourceBind.dataCode is empty! maybe in preview mode, control:${r.id} type:${r.type}`);return}t[r.props.datasourceBind.dataCode]={controlId:r.id,fields:[],dataViewId:e};const n=r.id;ne(r.props.headers,u=>{u.props.dataBind instanceof Z?Object.keys(u.props.dataBind).map(a=>{const o=u.props.dataBind,s=o[a].dataCode;t[s].fields.push({fieldCode:o[a].fieldCode,controlId:u.id,dataBind:o,dataViewId:[e,n]})}):t[u.props.dataBind.dataCode].fields.push({fieldCode:u.props.dataBind.fieldCode,controlId:u.id,dataBind:u.props.dataBind,dataViewId:[e,n]})})}}function fc(t,e,r){r instanceof W?t[r.id]={dataBind:r.props.dataBind,options:[],dataView:e}:r.type===w.SUBTABLE&&(t[r.id]={dataBind:new me({dataCode:r.props.datasourceBind.dataCode,fieldCode:""}),dataView:e,children:{},options:[]},ne(r.props.headers,n=>{var u,a;Object.assign((a=(u=t[r.id])==null?void 0:u.children)!=null?a:{},{[n.id]:{dataBind:n.props.dataBind}})}))}const Nn=["splice","push","shift","pop","unshift","reverse"],Lt=Symbol("__engineProxy__"),xt=Symbol("__engineTarget__"),Tn=Symbol("__engineArrayBeforeSetCallbackFlag__"),Vn=Symbol("__engineProxyThisKey__"),T={type:"",args:[],callback:qn};function qn(){}yc();function dc(t,e,r,n,u){if(T.type){T.callback=u.bind(null,t,n);return}const a=Number(e);if(a>t.length){X(`Wrong array operations may cause unknown errors. It is recommended to use APIs such as ${Nn.join(",")} for array operations`);return}if(!(Number.isNaN(a)&&e!=="length"))if(e==="length"){const s=r,c=t.length;if(s>t.length){X("Do not directly modify the length of the array data, please add new rows");return}return s===t.length?void 0:()=>u.call(null,t,n,"splice",[s,c-s])}else return a===t.length?()=>u.call(null,t,n,"push",[r]):()=>u.call(null,t,n,"splice",[a,1,r])}function pc(t,e,r){return{__engineProxy__:!0,get(n,u,a){return u===Lt?!0:u===xt?n:Array.isArray(n)&&u===Tn?r:u===Vn?t:Reflect.get(n,u,a)},set(n,u,a,o){var h;let s=a;const c=n[u],l=t===""?u:t+"."+u;function d(g){if(typeof g=="object"&&g!==null)return g[Lt]!==!0?Ge(g,e,r,l):Ge(g[xt],e,r,l)}s=(h=d(a))!=null?h:s;let p;if(Array.isArray(n)){const g=dc(n,u,a,t,e);p=Reflect.set(n,u,s,o),g&&g()}else{try{let g=s;if(s=r.call(null,n,l,s,c),g!==s){const E=d(s);E!==void 0&&(s=E)}}catch(g){return De(`${l} set error ${g}`),!0}p=Reflect.set(n,u,s,o),e.call(null,n,l,a,c)}return p}}}function Ge(t,e,r,n=""){if(Object.isFrozen(t))return t;for(let u in t){const a=n===""?u:n+"."+u,o=t[u];typeof o=="object"&&o!==null&&(t[u]=Ge(o,e,r,a))}return new Proxy(t,pc(n,e,r))}function Un(t){const e=[];return t.forEach(r=>{e.push(r),r.controlType==="layout"&&e.push(...Un(r.children))}),e}function jt(t,e){if(e==="")return;const r=e.split(".");if(r.length===0)return;const n=r[0],u=r.slice(1),a=t.find(o=>o.id===n);return u.length===0?a:u.reduce((o,s)=>{var d,p;const c=Number(s);if(Number.isNaN(c)){const h=o!=null&&o.children?Un(o.children):void 0,g=h==null?void 0:h.find(E=>E.id===s);return g||(o instanceof W?o:void 0)}else return(p=(d=o==null?void 0:o.children)==null?void 0:d[c])!=null?p:o},a)}function hc(t,e){return["push","unshift"].includes(t)?e:t==="splice"?e.slice(2):[]}function gc(t,e,r){if(["push","unshift"].includes(t))return r;if(t==="splice")return e.slice(0,2).concat(r)}function yc(){Nn.forEach(t=>{const e=Array.prototype[t];Array.prototype[t]=function(...r){var n;if(this[Lt]){let u;const a=hc(t,r);if(a.length){const o=(n=this[Tn])==null?void 0:n.call(this,this[xt],this[Vn],a),s=gc(t,r,o);T.type=t,T.args=s,u=e.apply(this,s)}else T.type=t,T.args=r,u=e.apply(this,r);return typeof T.callback=="function"&&T.callback(t,r,u),T.type="",T.args=[],T.callback=qn,u}else return e.apply(this,r)}})}class mc{constructor(){this.actionMap=new Map,this.buildinActions={},this.actionUtils={},this.sources={}}execAction(e,r,...n){return G(this,null,function*(){const u=this.actionMap.get(e);if(!!u)try{return yield u.func.call(null,r,...n)}catch(a){De(`${u.id} Exception during calling action: ${a}`)}})}addAction(e,r){this.actionMap.has(e)&&X("duplicated action key");const n=new vc(e,r);this.actionMap.set(e,n)}}class vc{constructor(e,r){this.id="",this.id=e,this.func=r}}class Ec{constructor(e){this._dataStore=new Map,this.executer=e}add(e,r){this._dataStore.set(e,r)}get(e){let r=this._dataStore.get(e);return _(r)}remove(e){this._dataStore.delete(e)}getRemoteData(e){return G(this,null,function*(){return this.executer===void 0?(De("\u672A\u521D\u59CB\u5316executer"),[]):this.executer(e)})}}class te{}class we extends te{validate(e){return L(e)}transform(e){if(e==null)return"";if(!U(e)&&!Zt(e))return String(e);if(ja(e))return JSON.stringify(e);throw`${e} is not a string`}}class Nt extends te{validate(e){return Ie(e)||e===""}transform(e){if(e==null)return"";const r=!U(e)&&!Zt(e)?Number(e):void 0;if(!Number.isNaN(r)&&r!==void 0)return r;throw`${e} is not a number`}}class bc extends te{validate(e){return Na(e)}transform(e){if(e==null)return[];function r(n){return n.map(u=>u?String(u):"")}if(ae(e))return r(e);if(L(e)&&Yt(e))try{const n=JSON.parse(e);if(Array.isArray(n))return r(n)}catch(n){}return[String(e)]}}class Ac extends te{validate(e){return Ta(e)}transform(e){if(e==null)return[];function r(u){return u.map(a=>!a&&a!==0?"":Number(a)).filter(a=>a===""||!Number.isNaN(a))}if(ae(e))return r(e);if(L(e)&&Yt(e))try{const u=JSON.parse(e);if(ae(u))return r(u)}catch(u){}const n=Number(e);if(Number.isNaN(n))throw`${e} is not a number array`;return[n]}}class Cc extends te{validate(e){return e instanceof $e||U(e)&&"amount"in e&&Ie(e.amount)&&"currency"in e&&L(e.currency)}transform(e,r){if(e==null||e==="")return new $e({currency:r==null?void 0:r.currency});let n;if(U(e)&&(n=new $e(M(M({},r),e))),L(e)&&Re(e))try{const u=JSON.parse(e);n=new $e(M(M({},r),u))}catch(u){}if(n){const u=new Nt,a=new we;return u.validate(n.amount)||(n.amount=u.transform(n.amount)),a.validate(n.currency)||(n.currency=a.transform(n.currency)),n}throw`${e} is not a { amount: number, currency: string } object`}}class Bc extends te{validate(e){return e instanceof Oe||U(e)&&"min"in e&&L(e.min)&&"max"in e&&L(e.max)}transform(e,r){if(e==null||e==="")return new Oe;let n;if(U(e)&&(n=new Oe(M(M({},r),e))),L(e)&&Re(e))try{const u=JSON.parse(e);n=new Oe(M(M({},r),u))}catch(u){}if(n){const u=new we;return u.validate(n.min)||(n.min=u.transform(n.min)),u.validate(n.max)||(n.max=u.transform(n.max)),n}throw`${e} is not a { min: string, max: string } object`}}class wc extends te{validate(e){return e instanceof Le||U(e)&&"result"in e&&Ie(e.result)&&"unit"in e&&L(e.unit)}transform(e,r){if(e==null||e==="")return new Le({unit:r==null?void 0:r.unit});let n;if(U(e)&&(n=new Le(M(M({},r),e))),L(e)&&Re(e))try{const u=JSON.parse(e);n=new Le(M(M({},r),u))}catch(u){}if(n){const u=new Nt,a=new we;return u.validate(n.result)||(n.result=u.transform(n.result)),a.validate(n.unit)||(n.unit=a.transform(n.unit)),n}throw`${e} is not a { result: string, unit: string } object`}}class Sc extends te{validate(e){return e instanceof Pe}transform(e,r){if(e==null||e==="")return new Pe;let n;if(U(e)&&(n=new Pe(M(M({},r),rt.exports.camelizeKeys(e)))),L(e)&&Re(e))try{const u=JSON.parse(e);n=new Pe(M(M({},r),rt.exports.camelizeKeys(u)))}catch(u){}if(n){const u=new we;return u.validate(n.city)||(n.city=u.transform(n.city)),u.validate(n.district)||(n.district=u.transform(n.district)),u.validate(n.province)||(n.province=u.transform(n.province)),n}throw`${e} is not a { city: string, district: string, province: string } object`}}class Fc{static getValueChecker(e){let r;switch(e){case C.VARCHAR:case C.TIMESTAMP:case C.TEXT:case C.RELATION:case C.AUTO_NUMBER:r=new we;break;case C.DECIMAL:r=new Nt;break;case C.EMPLOYEES:case C.DEPARTMENTS:case C.IMAGE:case C.FILE:case C.ARRAY:r=new bc;break;case C.MONEY:r=new Cc;break;case C.TIMESCOPE:r=new Bc;break;case C.CALC:r=new wc;break;case C.DECIMAL_RANGE:r=new Ac;break;case C.ADDRESS:r=new Sc;break}return r}}function _c(t){if(["min","max","currency","unit"].includes(t))return C.VARCHAR;if(["result","amount"].includes(t))return C.DECIMAL}function kn(t,e,r,n){var o;let u=(o=_c(e))!=null?o:t,a=Fc.getValueChecker(u);if(!a||a.validate(r))return r;try{const s=a.transform(r,n);return s!==void 0?s:r}catch(s){throw`${e} ${s}`}}function Dc(t,e,r){return Object.entries(t).reduce((n,[u,a])=>{const o=e[u];return n[u]=kn(a,u,o,r[u]),n},Object.assign({},e))}typeof window!="undefined"&&(window.engines={});let le=null,Se="";class Tt extends tn{constructor(e){super(),this.isMounted=!1,this.id=Qe(8),this.__pluginsApplied=!1,this.actionManager=new mc,this._jobTasks=[],this.createControlInstance=this.createInstance,this.$options=Object.freeze(e);const{autoMount:r=!0,schema:n,beforeCreateInstance:u,externalParams:a,language:o=Ut,debug:s=!1}=this.$options;N.setLocale(o),this.debug=s,this.runtime=new Ot({schema:n,beforeCreateInstance:u}),this.externalParams=a,this.store=new oc({instance:this.runtime.instance}),this.debugLog("engine is Instantiation complete"),r&&this.mount()}debugLog(...e){this.debug&&tt(...e)}use(e){return this.__pluginsApplied||this.__plugins.push(e),this}registerControl(...e){return this.runtime.register(...e),this}static register(...e){return Ot.register(...e)}static judgeControlIsRegistered(e){return Ot.staticRegisteredTypes.has(e.Runtime.controlType)}mount(){this.debugLog("engine\u7684mount\u65B9\u6CD5\u5F00\u59CB\u8C03\u7528");const{plugins:e=[]}=this.$options;this._handlerProxyState(),this.__plugins=e,this.applyPlugins(),this.setStates(this.getState()),this.debugLog("engine\u7684mount\u65B9\u6CD5\u8C03\u7528\u7ED3\u675F"),this.debug&&typeof window!="undefined"&&(window.engines[this.id]=this)}destroy(){this.debug&&typeof window!="undefined"&&delete window.engines[this.id]}_handlerProxyState(){this.store.state=Ge(this.store.state,this._proxyStateCallback.bind(this),this._proxyStateBeforeSetCallback.bind(this))}_proxyStateBeforeSetCallback(e,r,n,u){const a=jt(this.runtime.flatInstances,r);if(!a)return n;if(this.assertInstance(a,w.SUBTABLE)){const c=a.props.headers.reduce((l,d)=>{const p=d.children[0];return p&&p instanceof W&&(l[p.id]=p.fieldType),l},{});return n===null?[]:n.map(l=>Dc(c,l,this.getEmptyState(a.id)))}const o=r.split("."),s=o[o.length-1];try{return kn(a.fieldType,s,n,u)}catch(c){throw Q(`the id=${a.id}'s instance setState error, %o ${c}.`,n),c}}_proxyStateCallback(e,r,n,u,a){Array.isArray(e)?this._handlerArrayUpdate(e,r,n,u,a):this._handlerObjectUpdate(e,r,n,u)}_handlerArrayUpdate(e,r,n,u,a){const o=jt(this.runtime.flatInstances,r);if(!(o instanceof ze))return;const s=h=>{const g=[];for(let E=0;E<h;E++){const y=this.listControlCreateRow(o,"subtable-row");y&&g.push(y)}return g},c=le;let l=[],d=[],p=[];if(n&&u){switch(n){case"push":case"unshift":const h=u.length;l=s(h),d=u,o.children[n](...l),this.runtime.getFlatInstances();break;case"splice":if(u.length>2){const g=u.length-2,E=u.slice(2);l=s(g),d=E;const y=u[0],b=u[1];o.children[n](y,b,...l),this.runtime.getFlatInstances()}else o.children[n](...u),this.runtime.getFlatInstances();break;default:o.children[n](...u),this.runtime.getFlatInstances();break}n==="splice"?p=a:["pop","shift"].includes(n)&&(p=[a]),this.emit("list-change",{instance:o,value:this.getState(o.id),options:Object.assign({},c,{changed:l,data:d,deleted:p!=null?p:[]})}),le=null}}_handlerObjectUpdate(e,r,n,u){const a=jt(this.runtime.flatInstances,r);if(!a)return;const o=this.getInstanceRowIndex(a),s=le||{};if(a instanceof ze){a.children.length=0;const c=n;let l=[];for(let d=0;d<c.length;d++){const p=this.listControlCreateRow(a,"subtable-row");p&&l.push(p)}a.children.push(...l),this.runtime.getFlatInstances(),this.emit("list-change",{instance:a,value:n,options:qt(M({},s),{changed:l,data:c,deleted:u!=null?u:[]})})}else this.emit("change",{instance:a,value:this.getState(a.id,o),rowIndex:o,options:qt(M({},s),{oldValue:u})})}applyPlugins(){this.__pluginsApplied||(this.__plugins.forEach(e=>{var r;try{Se=(r=e.pluginName)!=null?r:e.constructor.name,e.apply(this)}catch(n){X(`${Se} Plugin apply Error
2
+ ${n}`)}finally{Se=""}}),this.__pluginsApplied=!0)}listControlCreateRow(e,r){const n=this.runtime.createControlInstance(r);if(!!n){if(n instanceof Hs){const u=_(e.props.headers),a=this.createControl(u);n.children.push(...a)}return n}}listControlAddRow(e,r="subtable-row"){const n=this.listControlCreateRow(e,r);!n||e.children.push(n)}emit(e,r){return G(this,null,function*(){if(e==="engine-mounted"){if(this.isMounted)return Q("The engine-mounted life cycle can only be triggered once"),Promise.resolve([]);if(this._jobTasks.length){console.time("engine-mounted need wait");const o=[...this._jobTasks];yield Promise.all(o),console.timeEnd("engine-mounted need wait")}this.isMounted=!0}let n,u;this.isMounted||(u=new Promise(o=>{n=o}),this._jobTasks.push(u));const a=yield Jn(Tt.prototype,this,"emit").call(this,e,r);return n&&u&&(n(),this._jobTasks.splice(this._jobTasks.indexOf(u),1)),a})}on(e,r){return Se&&(r.applyingPluginName=Se),super.on(e,r)}createControl(...e){return this.runtime.createControl(...e)}createInstance(e,r){return this.runtime.createControlInstance(e,r)}schemaEvent(e,r){this.emit(e,r)}updateInstanceProps(e,r,n,u){return this.setInstance(e,r,n,u)}getRules(e){var r;return e===void 0?this.runtime.rules:(r=this.runtime.rules[e])==null?void 0:r.fields}getAntdRules(e){var r;return e===void 0?this.runtime.antdRules:(r=this.runtime.antdRules[e])==null?void 0:r.fields}getState(e,r){return e===void 0?this.store.state:this.store.getState(e,r)}getEmptyState(e){return _(e===void 0?this.store.emptyState:this.store.getEmptyState(e))}setPayloadOptions(e){le=e}setState(e,r,n,u){le=u,this.debugLog("[%o]: \u89E6\u53D1setState, \u4FEE\u6539\u7684\u503C\u4E3A%o, rowIndex=%o, options=%o",e,r,n,u),this.store.setState(e,r,n),this.debugLog("[%o]: setState\u5B8C\u6210, \u4FEE\u6539\u7684\u503C\u4E3A%o, rowIndex=%o",e,r,n),le=null}setStates(e,r,n){let u=e;Object.keys(u).forEach(a=>{Object.entries(this.store.controlIdMapping).forEach(([o,s])=>{if(s.dataView===a){const c=u[a][o];c!==void 0&&this.setState(o,c,r,n)}else(o===a||s.children&&s.children[a])&&u[a]!==void 0&&this.setState(a,u[a],r,n)})})}getField(e,r,n){if(!r){const c=this.getDataBindMapping(e);if(c){const{controlId:l}=c;return this.getState(l)}return}const u=this.getDataBindMapping(e,r);if(!u)return;const{dataBind:a,controlId:o}=u,s=this.getState(o,n);return a instanceof Z?Object.entries(a).reduce((c,[l,d])=>d.fieldCode===r?c[l]:c,s):s}setField(e,r,n,u,a){var l;const o=this.getDataBindMapping(e,r);if(!o)return;const{dataBind:s,controlId:c}=o;if(s instanceof Z){const d=(l=_(this.getState(c,u)))!=null?l:this.getEmptyState(c),p=Object.entries(s).reduce((h,[g,E])=>(E.fieldCode===r&&(h[g]=n),h),d);this.setState(c,p,u,a)}else this.setState(c,n,u,a)}setFields(e,r,n,u){const a=this.getDataBindMapping(e);if(!a)return;let o=[];a.fields.forEach(s=>{var p;const{dataBind:c,controlId:l,fieldCode:d}=s;if(!o.includes(d)&&!!Object.hasOwnProperty.call(r,d))if(c instanceof Z){const h=(p=_(this.getState(l,n)))!=null?p:this.getEmptyState(l),g=Object.entries(c).reduce((E,[y,b])=>{o.push(b.fieldCode);const f=r[b.fieldCode];return f!==void 0&&(E[y]=f),E},h);this.setState(s.controlId,g,n,u)}else this.setState(l,r[d],n,u)})}buildFields(e,r){const n=this.getDataBindMapping(e);if(!n)return;let u=[];const a={};return n.fields.forEach(o=>{const{dataBind:s,controlId:c,fieldCode:l}=o;if(!u.includes(l)&&!!Object.hasOwnProperty.call(r,l))if(s instanceof Z){const d=this.getEmptyState(c);a[o.controlId]=Object.entries(s).reduce((p,[h,g])=>{u.push(g.fieldCode);const E=r[g.fieldCode];return E!==void 0&&(p[h]=E),p},d)}else a[c]=r[l]}),a}setData(e,r){this.debugLog("engine setData\u65B9\u6CD5\u6267\u884C\uFF0C\u53C2\u6570\u4E3A%o\uFF0C%o\u3002",e,r);let n={};Object.keys(e).map(u=>{const a=e[u];if(Array.isArray(a))a.map(o=>{const s=this.getDataBindMapping(u);if(!s)return;let c=_(this.store.emptyState[s.dataViewId][s.controlId]),l=[];Object.keys(o).map(d=>{var h,g,E;if(l.includes(d))return;const p=(g=(h=this.store.dataBindMapping[u])==null?void 0:h.fields)==null?void 0:g.find(y=>y.fieldCode===d);if(p){if(p.dataBind instanceof me&&o[d]!==void 0)c[p.controlId]=o[d];else if(p.dataBind instanceof Z){let y=_((E=this.getEmptyState(p.controlId))!=null?E:{});Object.keys(p.dataBind).map(b=>{const f=p.dataBind[b];o[f.fieldCode]!==void 0&&(y[b]=o[f.fieldCode]),l.push(f.fieldCode)}),c[p.controlId]=y}}}),n[s.dataViewId]||(n[s.dataViewId]={}),n[s.dataViewId][s.controlId]||(n[s.dataViewId][s.controlId]=[]),n[s.dataViewId][s.controlId].push(c)});else if(a){let o=[];Object.keys(a).map(s=>{var l;if(o.includes(s))return;const c=this.getDataBindMapping(u,s);if(c){if(n[c.dataViewId[0]]||(n[c.dataViewId[0]]={}),c.dataBind instanceof me&&a[s]!==void 0)n[c.dataViewId[0]][c.controlId]=a[s];else if(c.dataBind instanceof Z){let d=_((l=this.getEmptyState(c.controlId))!=null?l:{});Object.keys(c.dataBind).map(p=>{const h=c.dataBind[p];a[h.fieldCode]!==void 0&&(d[p]=a[h.fieldCode]),o.push(h.fieldCode)}),n[c.dataViewId[0]][c.controlId]=d}}})}}),this.debugLog("engine setData\u65B9\u6CD5\u6570\u636E\u7EC4\u5408\u5B8C\u6210\uFF0C\u53C2\u6570\u4E3A%o\u3002",n),this.setStates(n,void 0,r),this.debugLog("engine setData\u65B9\u6CD5\u6267\u884C\u5B8C\u6210\u3002")}getDataBind(e){return this.store.getDataBind(e)}getInstance(e,r){const n=this.getInstances(e,r===-1);if(n.length>0)return r!==void 0?r===-1?n[0]:n[r]:n[0]}getInstances(e,r=!1){var u;if(e===void 0)return this.runtime.flatInstances;const n=this.runtime.flatInstances.filter(a=>a.id===e);if(r)if(n.length){const a=n[0];if(this.getInstanceRowIndex(a)!==void 0){const o=this.getInstanceInSubtableHeader(a);o&&n.unshift(o)}}else{const a=this.getControlIdMapping(),[o]=(u=Object.entries(a).find(([s,c])=>c.children&&e in c.children))!=null?u:[];if(o){const c=this.getInstance(o).props.headers.find(l=>l.children.find(d=>d.id===e));if(c){const l=c.children.find(d=>d.id===e);l&&n.unshift(l)}}}return n}setInstance(e,r,n,u){try{let a;if(typeof e=="string"?a=this.getInstance(e,u):a=e,!a)return;this.debugLog("[%o]: \u4FEE\u6539instance: %o\u7684%o\u5C5E\u6027\uFF0C\u4FEE\u6539\u7684\u503C\u4E3A%o\u3002",a.id,a,r,n),Qt(a.props,r,n),this.schemaEvent("schema-change",{instance:a,props:r,value:n})}catch(a){throw a}}getControlIdMapping(){return this.store.controlIdMapping}getDataBindMapping(e,r){if(!e&&!r)return this.store.dataBindMapping;const n=this.store.dataBindMapping[e];if(!n){Q(`No corresponding dataCode=${e} was found`);return}if(!r)return n;const u=n.fields.find(a=>a.fieldCode===r);if(!u){Q(`No corresponding fieldCode=${r} was found`);return}return u}getAction(){return this.actionManager}initDataManager(e){this.dataManager=new Ec(e)}getDataManager(){return this.dataManager}assertInstance(e,r){return L(r)?e.type===r:r.includes(e.type)}getInstanceRowIndex(e){if(!e.parent)return;let r;if(this.assertInstance(e.parent,w.SUBTABLE))if(this.assertInstance(e,w.SUBTABLE_COLUMN))r=-1;else{const n=e.parent.children.findIndex(u=>u===e);n>-1&&(r=n)}else r=this.getInstanceRowIndex(e.parent);return r}getInstanceParentControl(e,r){if(!!e.parent)return this.assertInstance(e.parent,r)?e.parent:this.getInstanceParentControl(e.parent,r)}getInstanceInSubtableHeader(e){const r=this.getInstanceRowIndex(e);if(r===void 0)return;if(r===-1)return e;const n=this.assertInstance(e,w.SUBTABLE_COLUMN)?e:this.getInstanceParentControl(e,w.SUBTABLE_COLUMN);if(!n)return;const a=this.getInstanceParentControl(e,w.SUBTABLE).props.headers.find(o=>o.id===n.id);if(!!a)return a.children.find(o=>o.id===e.id)}setControlConfig(...e){return this.runtime.registerControlConfig(...e)}getControlConfig(e){return this.runtime.getControlConfig(e)}}class Ic{}class Rc{constructor(e){this.config=e}apply(e){this.engine=e;const r=this.config;if(!r)return;const n=Hn(r,e);if(!n)return;const u=e.getAction();for(let[a,o]of Object.entries(n.funcMap))u.addAction(a,o)}}function Hn(t,e){if(!t.module||!t.module.compiled)return;const r=t.module.compiled,n={exports:{ctx:e,utils:e.getAction().actionUtils}};try{new Function("module","exports",r).call(n,n,n.exports)}catch(o){X(o.message+". fail to parse the module"),process.env.NODE_ENV!=="production"&&X("fail to parse the module")}const u={},a={};for(const[o,s]of Object.entries(n.exports))typeof s=="function"?u[o]=s:a[o]=s;return{funcMap:u,variables:a}}const Mc={"engine-mounted":"did_mount","engine-submit":"will_submit","engine-submit-params":"do_submit","engine-submitted":"did_submit"};class $c{constructor(e){this.config=e}apply(e){this.engine=e,Object.entries(Mc).forEach(([r,n])=>{e.on(r,u=>G(this,null,function*(){const a=yield this.callLifecycleEvent(n,u);return a.includes(!1)?!1:a}))})}callLifecycleEvent(e,r){return G(this,null,function*(){const n=this.config;return!n||!Array.isArray(n[e])?[]:yield Promise.all(n[e].map(a=>G(this,null,function*(){return yield this.engine.getAction().execAction(a,r)})))})}}class Oc{constructor(e){this.config=e}apply(e){this.engine=e,nn.events.forEach(r=>{r.code&&r.key&&this.engineAddEventListener(r.code,r.key)})}engineAddEventListener(e,r){this.engine.on(e,n=>G(this,null,function*(){if(!(e==="change"&&!this.engine.isMounted)&&n.instance!==void 0)return yield this.callControlEvent(r,n)}))}callControlEvent(e,r){return G(this,null,function*(){const n=this.config[r.instance.id];if(!n||!Array.isArray(n[e]))return[];const u=yield Promise.all(n[e].map(a=>G(this,null,function*(){return yield this.engine.getAction().execAction(a,r)})));return u.includes(!1)?!1:u})}}class Pc{constructor(e){this.calcControls=[],this.dependenciesTriggerMap=new Map,this.hideNotRememberControlIds=[],this.dontHasPermissionControlIds=[],this.cacheComputedResult={},this.options=e,this.getDontHasPermissionControlIds(),this.getNeedHideRememberControlIds()}getNeedHideRememberControlIds(){var e;!((e=this.options)!=null&&e.displayBoList)||(this.hideNotRememberControlIds=this.options.displayBoList.reduce((r,n)=>(n.is_remember||r.push(...n.hide_controls),r),[]))}getDontHasPermissionControlIds(){var e;!((e=this.options)!=null&&e.behavior)||(this.dontHasPermissionControlIds=this.options.behavior.reduce((r,n)=>(n.ctrlBehavior===1&&r.push(n.ctrlId),r),[]))}controlNeedComputedValue(e){if(!e)return!1;const r=this.getControlIsHide(e);return!(this.dontHasPermissionControlIds.includes(e.id)&&r||this.hideNotRememberControlIds.includes(e.id)&&r)}getControlIsHide(e){return e.props.isHide?!0:e.parent===null?!1:this.getControlIsHide(e.parent)}apply(e){this.engine=e,this.resetDependencies(),this.watchControlChange(),this.watchSubtableChange(),this.watchSchemaHideChange(),this.engine.on("engine-mounted",()=>{this.allCalcControlComputed()})}resetDependencies(){this.calcControls=[],this.dependenciesTriggerMap.clear(),this.getAllCalcControl(),this.getCalcDependencies()}allCalcControlComputed(){this.calcControls.forEach(e=>this.computedCalcValue(e))}getAllCalcControl(){this.calcControls=this.engine.runtime.flatInstances.filter(e=>e.type===w.CALC)}getCalcDependencies(){this.calcControls.forEach(e=>{const{scriptEcho:r}=e.props;r.forEach(n=>{(n.type===j.VariableInMainTable||n.type===j.VariableInCurrentSubTable||n.type===j.VariableInOtherSubTable)&&this.setDependenciesTriggerMapItem(n.id,e),n.type===j.VariableInOtherSubTable&&n.subTableId&&this.setDependenciesTriggerMapItem(n.subTableId,e)})})}setDependenciesTriggerMapItem(e,r){this.dependenciesTriggerMap.has(e)||this.dependenciesTriggerMap.set(e,[]);const n=this.dependenciesTriggerMap.get(e);n.includes(r)||n.push(r)}getCalcControlsFromSubtableRows(e){return e.reduce((r,n)=>(n.children.forEach(u=>{const a=u.children[0];a&&this.engine.assertInstance(a,w.CALC)&&r.push(a)}),r),[])}watchSchemaHideChange(){this.engine.on("schema-change",e=>{var r;e.props==="isHide"&&((r=this.dependenciesTriggerMap.get(e.instance.id))!=null?r:[]).forEach(u=>{this.computedCalcValue(u)})})}watchSubtableChange(){this.engine.on("list-change",e=>{var a,o,s;this.resetDependencies();const r=(o=(a=e.options)==null?void 0:a.changed)!=null?o:[];this.getCalcControlsFromSubtableRows(r).forEach(c=>{this.computedCalcValue(c)}),((s=this.dependenciesTriggerMap.get(e.instance.id))!=null?s:[]).forEach(c=>{this.computedCalcValue(c)})})}watchControlChange(){this.engine.on("change",e=>{var u;const{instance:r}=e;if(!this.dependenciesTriggerMap.has(r.id))return;const n=(u=this.dependenciesTriggerMap.get(r.id))!=null?u:[];e.rowIndex!==void 0&&e.rowIndex>-1?n.forEach(a=>{this.controlInSubtable(a)&&this.engine.getInstanceRowIndex(a)!==e.rowIndex||this.computedCalcValue(a)}):n.forEach(a=>{this.computedCalcValue(a)})})}controlInSubtable(e){var r;return((r=e.parent)==null?void 0:r.type)===w.SUBTABLE_COLUMN}computedCalcValue(e){var c;const r=e.props.scriptEcho;if(!r||r.length===0)return;const n=r.reduce((l,d)=>{if(d.type===j.Operator||d.type===j.Number)return l+d.name;let p=0,h;switch(d.type){case j.VariableInMainTable:{const g=this.getNumberValue(this.engine.getState(d.id));h=this.engine.getInstance(d.id),p=Number(g);break}case j.VariableInCurrentSubTable:{const g=this.engine.getInstanceRowIndex(e);h=this.engine.getInstance(d.id,g);const E=this.engine.getState(d.id,g),y=this.getNumberValue(E);p=Number(y);break}case j.VariableInOtherSubTable:{const g=this.engine.getState(d.id),E=Array.isArray(g)?g.map(b=>this.getNumberValue(b)):[],y=this.getAggregateTypeValue(E,d.aggregateType);h=this.engine.getInstance(d.subTableId),p=Number(y);break}}return!Number.isNaN(p)&&this.controlNeedComputedValue(h)?l+=`(${p})`:l+=0,l},"");let u;this.cacheComputedResult[n]!==void 0?u=this.cacheComputedResult[n]:(u=new Function(`return ${n}`)(),this.cacheComputedResult[n]=u);let a;if(this.controlInSubtable(e)&&(a=this.engine.getInstanceRowIndex(e),a===void 0))return;const o=this.engine.getState(e.id,a),s=!u||u===1/0||u===-1/0?0:e.props.precision===""?u:Number(u.toFixed(e.props.precision));s!==(o==null?void 0:o.result)&&this.engine.setState(e.id,{result:s,unit:(c=o==null?void 0:o.unit)!=null?c:""},a)}getNumberValue(e){if(typeof e=="object"&&e){if("result"in e)return e.result;if("amount"in e)return e.amount}return typeof e=="number"?e:0}getAggregateTypeValue(e,r){if(!r||!e||!e.length)return 0;switch(r){case ue.MAX:return Math.max(...e);case ue.MIN:return Math.min(...e);case ue.SUM:return e.reduce((n,u)=>n+u);case ue.AVG:return e.reduce((n,u)=>n+u)/e.length}}}class Lc{constructor(e){this.config=e}apply(e){var a,o;this.engine=e;const r=(o=(a=this.config)==null?void 0:a.source)!=null?o:"";let n=document.createElement("style");n.className="edit-css",n.type="text/css",n.innerHTML=r,document.querySelector("head").appendChild(n)}}B.CalcPlugin=Pc,B.ControlsEventPlugin=Oc,B.ES6ModulePlugin=Rc,B.Engine=Tt,B.LifecycleEventPlugin=$c,B.Plugin=Ic,B.StylePlugin=Lc,B.hasChildrenControl=Ke,B.loopDataViewControl=Be,B.loopFormControl=Ce,B.parseModule=Hn,Object.defineProperty(B,"__esModule",{value:!0})});
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@byteluck-fe/model-driven-engine",
3
- "version": "1.3.0-beta.25",
3
+ "version": "1.5.0-beta.2",
4
4
  "description": "> TODO: description",
5
5
  "author": "郝晨光 <2293885211@qq.com>",
6
6
  "homepage": "",
7
7
  "license": "ISC",
8
- "main": "src/index.ts",
8
+ "main": "dist/esm/index.js",
9
9
  "module": "dist/esm/index.js",
10
10
  "umd": "dist/index.umd.js",
11
11
  "types": "dist/types",
@@ -22,11 +22,11 @@
22
22
  "postpublish": "node ../../scripts/postpublish.js"
23
23
  },
24
24
  "dependencies": {
25
- "@byteluck-fe/model-driven-core": "^1.3.0-beta.24",
26
- "@byteluck-fe/model-driven-shared": "^1.3.0-beta.22"
25
+ "@byteluck-fe/model-driven-core": "^1.5.0-beta.2",
26
+ "@byteluck-fe/model-driven-shared": "^1.5.0-beta.2"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/node": "~18.0.3"
30
30
  },
31
- "gitHead": "ff1ff4bb662ce059bb4a4b75ef53ef5b88247b67"
31
+ "gitHead": "49b95ee0dfd1ac7842a6ae2ec17c1de25ee38a4f"
32
32
  }
package/src/index.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from './common'
2
- export * from './plugins'
3
- export * from './utils'