@byteluck-fe/model-driven-driven 2.22.2-beta.10 → 2.22.2-beta.12

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
@@ -42,6 +42,6 @@ Component that was made reactive: `,e)),O5(e,t,n,r,u,i,o,!0)}function A5(e){retu
42
42
  * vue-i18n v9.14.0
43
43
  * (c) 2024 kazuya kawaguchi
44
44
  * Released under the MIT License.
45
- */const j5="9.14.0";function W5(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Ye().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Ye().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Ye().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ye().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ye().__INTLIFY_PROD_DEVTOOLS__=!1)}const Us=be.__EXTEND_POINT__,rt=hr(Us),te={FALLBACK_TO_ROOT:Us,NOT_SUPPORTED_PRESERVE:rt(),NOT_SUPPORTED_FORMATTER:rt(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:rt(),NOT_SUPPORTED_GET_CHOICE_INDEX:rt(),COMPONENT_NAME_LEGACY_COMPATIBLE:rt(),NOT_FOUND_PARENT_SCOPE:rt(),IGNORE_OBJ_FLATTEN:rt(),NOTICE_DROP_ALLOW_COMPOSITION:rt(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:rt()},H5={[te.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[te.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[te.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[te.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[te.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[te.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[te.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[te.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[te.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see \u{1F449} https://tinyurl.com/2p97mcze",[te.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function Ie(e,...t){return Cn(H5[e],...t)}const js=he.__EXTEND_POINT__,Fe=hr(js),W={UNEXPECTED_RETURN_TYPE:js,INVALID_ARGUMENT:Fe(),MUST_BE_CALL_SETUP_TOP:Fe(),NOT_INSTALLED:Fe(),NOT_AVAILABLE_IN_LEGACY_MODE:Fe(),REQUIRED_VALUE:Fe(),INVALID_VALUE:Fe(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Fe(),NOT_INSTALLED_WITH_PROVIDE:Fe(),UNEXPECTED_ERROR:Fe(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Fe(),BRIDGE_SUPPORT_VUE_2_ONLY:Fe(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Fe(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Fe(),__EXTEND_POINT__:Fe()};function de(e,...t){return qt(e,null,process.env.NODE_ENV!=="production"?{messages:G5,args:t}:void 0)}const G5={[W.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[W.INVALID_ARGUMENT]:"Invalid argument",[W.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[W.NOT_INSTALLED]:"Need to install with `app.use` function",[W.UNEXPECTED_ERROR]:"Unexpected error",[W.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[W.REQUIRED_VALUE]:"Required in value: {0}",[W.INVALID_VALUE]:"Invalid value",[W.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[W.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[W.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[W.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[W.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define \u2018i18n\u2019 option or custom block in Composition API with using local scope in Legacy API mode",[W.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},po=xe("__translateVNode"),_o=xe("__datetimeParts"),ho=xe("__numberParts"),Vt=xe("__enableEmitter"),Rn=xe("__disableEmitter"),Ws=xe("__setPluralRules");xe("__intlifyMeta");const Hs=xe("__injectWithOption"),mo=xe("__dispose");function Ln(e){if(!H(e))return e;for(const t in e)if(!!_r(e,t))if(!t.includes("."))H(e[t])&&Ln(e[t]);else{const n=t.split("."),r=n.length-1;let u=e,o=!1;for(let i=0;i<r;i++){if(n[i]in u||(u[n[i]]={}),!H(u[n[i]])){process.env.NODE_ENV!=="production"&&fe(Ie(te.IGNORE_OBJ_FLATTEN,{key:n[i]})),o=!0;break}u=u[n[i]]}o||(u[n[r]]=e[t],delete e[t]),H(u[n[r]])&&Ln(u[n[r]])}return e}function jr(e,t){const{messages:n,__i18n:r,messageResolver:u,flatJson:o}=t,i=M(n)?n:Z(r)?{}:{[e]:{}};if(Z(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:s}=a;l?(i[l]=i[l]||{},vr(s,i[l])):vr(s,i)}else T(a)&&vr(JSON.parse(a),i)}),u==null&&o)for(const a in i)_r(i,a)&&Ln(i[a]);return i}function Gs(e){return e.type}function qs(e,t,n){let r=H(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=jr(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const u=Object.keys(r);u.length&&u.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(H(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(H(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function Ks(e){return rn(Bs,null,e,0)}const Xs="__INTLIFY_META__",Js=()=>[],q5=()=>!1;let zs=0;function Qs(e){return(t,n,r,u)=>e(n,r,un()||void 0,u)}const K5=()=>{const e=un();let t=null;return e&&(t=Gs(e)[Xs])?{[Xs]:t}:null};function vo(e={},t){const{__root:n,__injectWithOption:r}=e,u=n===void 0,o=e.flatJson,i=Me?Yt:ds,a=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&a&&Qi(Ie(te.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let l=x(e.inheritLocale)?e.inheritLocale:!0;const s=i(n&&l?n.locale.value:T(e.locale)?e.locale:Jt),f=i(n&&l?n.fallbackLocale.value:T(e.fallbackLocale)||Z(e.fallbackLocale)||M(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),c=i(jr(s.value,e)),p=i(M(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),y=i(M(e.numberFormats)?e.numberFormats:{[s.value]:{}});let I=n?n.missingWarn:x(e.missingWarn)||lt(e.missingWarn)?e.missingWarn:!0,g=n?n.fallbackWarn:x(e.fallbackWarn)||lt(e.fallbackWarn)?e.fallbackWarn:!0,O=n?n.fallbackRoot:x(e.fallbackRoot)?e.fallbackRoot:!0,_=!!e.fallbackFormat,C=z(e.missing)?e.missing:null,m=z(e.missing)?Qs(e.missing):null,v=z(e.postTranslation)?e.postTranslation:null,A=n?n.warnHtmlMessage:x(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter;const E=n?n.modifiers:M(e.modifiers)?e.modifiers:{};let w=e.pluralRules||n&&n.pluralRules,N;N=(()=>{u&&ma(null);const b={version:j5,locale:s.value,fallbackLocale:f.value,messages:c.value,modifiers:E,pluralRules:w,missing:m===null?void 0:m,missingWarn:I,fallbackWarn:g,fallbackFormat:_,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:A,escapeParameter:S,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};b.datetimeFormats=p.value,b.numberFormats=y.value,b.__datetimeFormatters=M(N)?N.__datetimeFormatters:void 0,b.__numberFormatters=M(N)?N.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(b.__v_emitter=M(N)?N.__v_emitter:void 0);const D=My(b);return u&&ma(D),D})(),On(N,s.value,f.value);function Oe(){return[s.value,f.value,c.value,p.value,y.value]}const V=Xe({get:()=>s.value,set:b=>{s.value=b,N.locale=s.value}}),se=Xe({get:()=>f.value,set:b=>{f.value=b,N.fallbackLocale=f.value,On(N,s.value,b)}}),Pe=Xe(()=>c.value),Jn=Xe(()=>p.value),Qe=Xe(()=>y.value);function zn(){return z(v)?v:null}function Qn(b){v=b,N.postTranslation=b}function Zn(){return C}function Yn(b){b!==null&&(m=Qs(b)),C=b,N.missing=m}function er(b,D){return b!=="translate"||!D.resolvedMessage}const $e=(b,D,K,re,It,pu)=>{Oe();let mn;try{(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&_a(K5()),u||(N.fallbackContext=n?$y():void 0),mn=b(N)}finally{(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&_a(null),u||(N.fallbackContext=void 0)}if(K!=="translate exists"&&le(mn)&&mn===yr||K==="translate exists"&&!mn){const[Ht,$6]=D();if(process.env.NODE_ENV!=="production"&&n&&T(Ht)&&er(K,$6)&&(O&&(Cr(g,Ht)||ga(I,Ht))&&fe(Ie(te.FALLBACK_TO_ROOT,{key:Ht,type:K})),process.env.NODE_ENV!=="production")){const{__v_emitter:Sc}=N;Sc&&O&&Sc.emit("fallback",{type:K,key:Ht,to:"global",groupId:`${K}:${Ht}`})}return n&&O?re(n):It(Ht)}else{if(pu(mn))return mn;throw de(W.UNEXPECTED_RETURN_TYPE)}};function pn(...b){return $e(D=>Reflect.apply(Ia,null,[D,...b]),()=>Bu(...b),"translate",D=>Reflect.apply(D.t,D,[...b]),D=>D,D=>T(D))}function _n(...b){const[D,K,re]=b;if(re&&!H(re))throw de(W.INVALID_ARGUMENT);return pn(D,K,ce({resolvedMessage:!0},re||{}))}function tr(...b){return $e(D=>Reflect.apply(Ba,null,[D,...b]),()=>Tu(...b),"datetime format",D=>Reflect.apply(D.d,D,[...b]),()=>br,D=>T(D))}function nr(...b){return $e(D=>Reflect.apply(La,null,[D,...b]),()=>Ru(...b),"number format",D=>Reflect.apply(D.n,D,[...b]),()=>br,D=>T(D))}function rr(b){return b.map(D=>T(D)||le(D)||x(D)?Ks(String(D)):D)}const ur={normalize:rr,interpolate:b=>b,type:"vnode"};function hn(...b){return $e(D=>{let K;const re=D;try{re.processor=ur,K=Reflect.apply(Ia,null,[re,...b])}finally{re.processor=null}return K},()=>Bu(...b),"translate",D=>D[po](...b),D=>[Ks(D)],D=>Z(D))}function or(...b){return $e(D=>Reflect.apply(La,null,[D,...b]),()=>Ru(...b),"number format",D=>D[ho](...b),Js,D=>T(D)||Z(D))}function ir(...b){return $e(D=>Reflect.apply(Ba,null,[D,...b]),()=>Tu(...b),"datetime format",D=>D[_o](...b),Js,D=>T(D)||Z(D))}function ar(b){w=b,N.pluralRules=w}function B(b,D){return $e(()=>{if(!b)return!1;const K=T(D)?D:s.value,re=Wt(K),It=N.messageResolver(re,b);return a?It!=null:dt(It)||Re(It)||T(It)},()=>[b],"translate exists",K=>Reflect.apply(K.te,K,[b,D]),q5,K=>x(K))}function q(b){let D=null;const K=ia(N,f.value,s.value);for(let re=0;re<K.length;re++){const It=c.value[K[re]]||{},pu=N.messageResolver(It,b);if(pu!=null){D=pu;break}}return D}function sr(b){const D=q(b);return D!=null?D:n?n.tm(b)||{}:{}}function Wt(b){return c.value[b]||{}}function lr(b,D){if(o){const K={[b]:D};for(const re in K)_r(K,re)&&Ln(K[re]);D=K[b]}c.value[b]=D,N.messages=c.value}function Di(b,D){c.value[b]=c.value[b]||{};const K={[b]:D};if(o)for(const re in K)_r(K,re)&&Ln(K[re]);D=K[b],vr(D,c.value[b]),N.messages=c.value}function d(b){return p.value[b]||{}}function h(b,D){p.value[b]=D,N.datetimeFormats=p.value,Ra(N,b,D)}function F(b,D){p.value[b]=ce(p.value[b]||{},D),N.datetimeFormats=p.value,Ra(N,b,D)}function R(b){return y.value[b]||{}}function ne(b,D){y.value[b]=D,N.numberFormats=y.value,$a(N,b,D)}function Q(b,D){y.value[b]=ce(y.value[b]||{},D),N.numberFormats=y.value,$a(N,b,D)}zs++,n&&Me&&(ao(n.locale,b=>{l&&(s.value=b,N.locale=b,On(N,s.value,f.value))}),ao(n.fallbackLocale,b=>{l&&(f.value=b,N.fallbackLocale=b,On(N,s.value,f.value))}));const J={id:zs,locale:V,fallbackLocale:se,get inheritLocale(){return l},set inheritLocale(b){l=b,b&&n&&(s.value=n.locale.value,f.value=n.fallbackLocale.value,On(N,s.value,f.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:Pe,get modifiers(){return E},get pluralRules(){return w||{}},get isGlobal(){return u},get missingWarn(){return I},set missingWarn(b){I=b,N.missingWarn=I},get fallbackWarn(){return g},set fallbackWarn(b){g=b,N.fallbackWarn=g},get fallbackRoot(){return O},set fallbackRoot(b){O=b},get fallbackFormat(){return _},set fallbackFormat(b){_=b,N.fallbackFormat=_},get warnHtmlMessage(){return A},set warnHtmlMessage(b){A=b,N.warnHtmlMessage=b},get escapeParameter(){return S},set escapeParameter(b){S=b,N.escapeParameter=b},t:pn,getLocaleMessage:Wt,setLocaleMessage:lr,mergeLocaleMessage:Di,getPostTranslationHandler:zn,setPostTranslationHandler:Qn,getMissingHandler:Zn,setMissingHandler:Yn,[Ws]:ar};return J.datetimeFormats=Jn,J.numberFormats=Qe,J.rt=_n,J.te=B,J.tm=sr,J.d=tr,J.n=nr,J.getDateTimeFormat=d,J.setDateTimeFormat=h,J.mergeDateTimeFormat=F,J.getNumberFormat=R,J.setNumberFormat=ne,J.mergeNumberFormat=Q,J[Hs]=r,J[po]=hn,J[_o]=ir,J[ho]=or,process.env.NODE_ENV!=="production"&&(J[Vt]=b=>{N.__v_emitter=b},J[Rn]=()=>{N.__v_emitter=void 0}),J}function X5(e){const t=T(e.locale)?e.locale:Jt,n=T(e.fallbackLocale)||Z(e.fallbackLocale)||M(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=z(e.missing)?e.missing:void 0,u=x(e.silentTranslationWarn)||lt(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=x(e.silentFallbackWarn)||lt(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=x(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=M(e.modifiers)?e.modifiers:{},s=e.pluralizationRules,f=z(e.postTranslation)?e.postTranslation:void 0,c=T(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,p=!!e.escapeParameterHtml,y=x(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&fe(Ie(te.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&fe(Ie(te.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let I=e.messages;if(M(e.sharedMessages)){const S=e.sharedMessages;I=Object.keys(S).reduce((w,N)=>{const G=w[N]||(w[N]={});return ce(G,S[N]),w},I||{})}const{__i18n:g,__root:O,__injectWithOption:_}=e,C=e.datetimeFormats,m=e.numberFormats,v=e.flatJson,A=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:I,flatJson:v,datetimeFormats:C,numberFormats:m,missing:r,missingWarn:u,fallbackWarn:o,fallbackRoot:i,fallbackFormat:a,modifiers:l,pluralRules:s,postTranslation:f,warnHtmlMessage:c,escapeParameter:p,messageResolver:e.messageResolver,inheritLocale:y,translateExistCompatible:A,__i18n:g,__root:O,__injectWithOption:_}}function go(e={},t){{const n=vo(X5(e)),{__extender:r}=e,u={id:n.id,get locale(){return n.locale.value},set locale(o){n.locale.value=o},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(o){n.fallbackLocale.value=o},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&fe(Ie(te.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(o){process.env.NODE_ENV!=="production"&&fe(Ie(te.NOT_SUPPORTED_FORMATTER))},get missing(){return n.getMissingHandler()},set missing(o){n.setMissingHandler(o)},get silentTranslationWarn(){return x(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(o){n.missingWarn=x(o)?!o:o},get silentFallbackWarn(){return x(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(o){n.fallbackWarn=x(o)?!o:o},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(o){n.fallbackFormat=o},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(o){n.setPostTranslationHandler(o)},get sync(){return n.inheritLocale},set sync(o){n.inheritLocale=o},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(o){n.warnHtmlMessage=o!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(o){n.escapeParameter=o},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&fe(Ie(te.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(o){process.env.NODE_ENV!=="production"&&fe(Ie(te.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...o){const[i,a,l]=o,s={};let f=null,c=null;if(!T(i))throw de(W.INVALID_ARGUMENT);const p=i;return T(a)?s.locale=a:Z(a)?f=a:M(a)&&(c=a),Z(l)?f=l:M(l)&&(c=l),Reflect.apply(n.t,n,[p,f||c||{},s])},rt(...o){return Reflect.apply(n.rt,n,[...o])},tc(...o){const[i,a,l]=o,s={plural:1};let f=null,c=null;if(!T(i))throw de(W.INVALID_ARGUMENT);const p=i;return T(a)?s.locale=a:le(a)?s.plural=a:Z(a)?f=a:M(a)&&(c=a),T(l)?s.locale=l:Z(l)?f=l:M(l)&&(c=l),Reflect.apply(n.t,n,[p,f||c||{},s])},te(o,i){return n.te(o,i)},tm(o){return n.tm(o)},getLocaleMessage(o){return n.getLocaleMessage(o)},setLocaleMessage(o,i){n.setLocaleMessage(o,i)},mergeLocaleMessage(o,i){n.mergeLocaleMessage(o,i)},d(...o){return Reflect.apply(n.d,n,[...o])},getDateTimeFormat(o){return n.getDateTimeFormat(o)},setDateTimeFormat(o,i){n.setDateTimeFormat(o,i)},mergeDateTimeFormat(o,i){n.mergeDateTimeFormat(o,i)},n(...o){return Reflect.apply(n.n,n,[...o])},getNumberFormat(o){return n.getNumberFormat(o)},setNumberFormat(o,i){n.setNumberFormat(o,i)},mergeNumberFormat(o,i){n.mergeNumberFormat(o,i)},getChoiceIndex(o,i){return process.env.NODE_ENV!=="production"&&fe(Ie(te.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return u.__extender=r,process.env.NODE_ENV!=="production"&&(u.__enableEmitter=o=>{const i=n;i[Vt]&&i[Vt](o)},u.__disableEmitter=()=>{const o=n;o[Rn]&&o[Rn]()}),u}}const Eo={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function J5({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,u)=>[...r,...u.type===xr?u.children:[u]],[]):t.reduce((n,r)=>{const u=e[r];return u&&(n[r]=u()),n},{})}function Zs(e){return xr}const yo=no({name:"i18n-t",props:ce({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>le(e)||!isNaN(e)}},Eo),setup(e,t){const{slots:n,attrs:r}=t,u=e.i18n||Oo({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(c=>c!=="_"),i={};e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=T(e.plural)?+e.plural:e.plural);const a=J5(t,o),l=u[po](e.keypath,a,i),s=ce({},r),f=T(e.tag)||H(e.tag)?e.tag:Zs();return Vs(f,s,l)}}});function z5(e){return Z(e)&&!T(e[0])}function Ys(e,t,n,r){const{slots:u,attrs:o}=t;return()=>{const i={part:!0};let a={};e.locale&&(i.locale=e.locale),T(e.format)?i.key=e.format:H(e.format)&&(T(e.format.key)&&(i.key=e.format.key),a=Object.keys(e.format).reduce((p,y)=>n.includes(y)?ce({},p,{[y]:e.format[y]}):p,{}));const l=r(e.value,i,a);let s=[i.key];Z(l)?s=l.map((p,y)=>{const I=u[p.type],g=I?I({[p.type]:p.value,index:y,parts:l}):[p.value];return z5(g)&&(g[0].key=`${p.type}-${y}`),g}):T(l)&&(s=[l]);const f=ce({},o),c=T(e.tag)||H(e.tag)?e.tag:Zs();return Vs(c,f,s)}}const el=no({name:"i18n-n",props:ce({value:{type:Number,required:!0},format:{type:[String,Object]}},Eo),setup(e,t){const n=e.i18n||Oo({useScope:e.scope,__useComponent:!0});return Ys(e,t,Pa,(...r)=>n[ho](...r))}}),tl=no({name:"i18n-d",props:ce({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Eo),setup(e,t){const n=e.i18n||Oo({useScope:e.scope,__useComponent:!0});return Ys(e,t,Ta,(...r)=>n[_o](...r))}});function Q5(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function Z5(e){const t=i=>{const{instance:a,modifiers:l,value:s}=i;if(!a||!a.$)throw de(W.UNEXPECTED_ERROR);const f=Q5(e,a.$);process.env.NODE_ENV!=="production"&&l.preserve&&fe(Ie(te.NOT_SUPPORTED_PRESERVE));const c=nl(s);return[Reflect.apply(f.t,f,[...rl(c)]),f]};return{created:(i,a)=>{const[l,s]=t(a);Me&&e.global===s&&(i.__i18nWatcher=ao(s.locale,()=>{a.instance&&a.instance.$forceUpdate()})),i.__composer=s,i.textContent=l},unmounted:i=>{Me&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:a})=>{if(i.__composer){const l=i.__composer,s=nl(a);i.textContent=Reflect.apply(l.t,l,[...rl(s)])}},getSSRProps:i=>{const[a]=t(i);return{textContent:a}}}}function nl(e){if(T(e))return{path:e};if(M(e)){if(!("path"in e))throw de(W.REQUIRED_VALUE,"path");return e}else throw de(W.INVALID_VALUE)}function rl(e){const{path:t,locale:n,args:r,choice:u,plural:o}=e,i={},a=r||{};return T(n)&&(i.locale=n),le(u)&&(i.plural=u),le(o)&&(i.plural=o),[t,a,i]}function Y5(e,t,...n){const r=M(n[0])?n[0]:{},u=!!r.useI18nComponentName,o=x(r.globalInstall)?r.globalInstall:!0;process.env.NODE_ENV!=="production"&&o&&u&&fe(Ie(te.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:yo.name})),o&&([u?"i18n":yo.name,"I18nT"].forEach(i=>e.component(i,yo)),[el.name,"I18nN"].forEach(i=>e.component(i,el)),[tl.name,"I18nD"].forEach(i=>e.component(i,tl))),e.directive("t",Z5(t))}const bo={["vue-devtools-plugin-vue-i18n"]:"Vue I18n devtools",["vue-i18n-resource-inspector"]:"I18n Resources",["vue-i18n-timeline"]:"Vue I18n"},e3={["vue-i18n-resource-inspector"]:"Search for scopes ..."},t3={["vue-i18n-timeline"]:16764185},ul="vue-i18n: composer properties";let Co;function n3(e,t){return Gt(this,null,function*(){return new Promise((n,r)=>{try{U5({id:"vue-devtools-plugin-vue-i18n",label:bo["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[ul],app:e},u=>{Co=u,u.on.visitComponentTree(({componentInstance:i,treeNode:a})=>{r3(i,a,t)}),u.on.inspectComponent(({componentInstance:i,instanceData:a})=>{i.vnode.el&&i.vnode.el.__VUE_I18N__&&a&&(t.mode==="legacy"?i.vnode.el.__VUE_I18N__!==t.global.__composer&&il(a,i.vnode.el.__VUE_I18N__):il(a,i.vnode.el.__VUE_I18N__))}),u.addInspector({id:"vue-i18n-resource-inspector",label:bo["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:e3["vue-i18n-resource-inspector"]}),u.on.getInspectorTree(i=>{i.app===e&&i.inspectorId==="vue-i18n-resource-inspector"&&s3(i,t)});const o=new Map;u.on.getInspectorState(i=>Gt(this,null,function*(){if(i.app===e&&i.inspectorId==="vue-i18n-resource-inspector")if(u.unhighlightElement(),c3(i,t),i.nodeId==="global"){if(!o.has(i.app)){const[a]=yield u.getComponentInstances(i.app);o.set(i.app,a)}u.highlightElement(o.get(i.app))}else{const a=l3(i.nodeId,t);a&&u.highlightElement(a)}})),u.on.editInspectorState(i=>{i.app===e&&i.inspectorId==="vue-i18n-resource-inspector"&&d3(i,t)}),u.addTimelineLayer({id:"vue-i18n-timeline",label:bo["vue-i18n-timeline"],color:t3["vue-i18n-timeline"]}),n(!0)})}catch(u){console.error(u),r(!1)}})})}function ol(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function r3(e,t,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==r){const u={label:`i18n (${ol(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(u)}}function il(e,t){const n=ul;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:So(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function So(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];z(r)&&"source"in r?t[n]=a3(r):dt(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:H(r)?t[n]=So(r):t[n]=r}),t}const u3={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function o3(e){return e.replace(/[<>"&]/g,i3)}function i3(e){return u3[e]||e}function a3(e){const t=e.source?`("${o3(e.source)}")`:"(?)";return{_custom:{type:"function",display:`<span>\u0192</span> ${t}`}}}function s3(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[r,u]of t.__instances){const o=t.mode==="composition"?u:u.__composer;n!==o&&e.rootNodes.push({id:o.id.toString(),label:`${ol(r)} Scope`})}}function l3(e,t){let n=null;if(e!=="global"){for(const[r,u]of t.__instances.entries())if(u.id.toString()===e){n=r;break}}return n}function al(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(r=>r.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function c3(e,t){const n=al(e.nodeId,t);return n&&(e.state=f3(n)),null}function f3(e){const t={},n="Locale related info",r=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=r;const u="Locale messages info",o=[{type:u,key:"messages",editable:!1,value:So(e.messages.value)}];t[u]=o;{const i="Datetime formats info",a=[{type:i,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[i]=a;const l="Datetime formats info",s=[{type:l,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[l]=s}return t}function Pn(e,t){if(Co){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),Co.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function d3(e,t){const n=al(e.nodeId,t);if(n){const[r]=e.path;r==="locale"&&T(e.state.value)?n.locale.value=e.state.value:r==="fallbackLocale"&&(T(e.state.value)||Z(e.state.value)||H(e.state.value))?n.fallbackLocale.value=e.state.value:r==="inheritLocale"&&x(e.state.value)&&(n.inheritLocale=e.state.value)}}function p3(e,t,n){return{beforeCreate(){const r=un();if(!r)throw de(W.UNEXPECTED_ERROR);const u=this.$options;if(u.i18n){const o=u.i18n;if(u.__i18n&&(o.__i18n=u.__i18n),o.__root=t,this===this.$root)this.$i18n=sl(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=go(o);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(u.__i18n)if(this===this.$root)this.$i18n=sl(e,u);else{this.$i18n=go({__i18n:u.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}else this.$i18n=e;u.__i18nGlobal&&qs(t,u,u),this.$t=(...o)=>this.$i18n.t(...o),this.$rt=(...o)=>this.$i18n.rt(...o),this.$tc=(...o)=>this.$i18n.tc(...o),this.$te=(o,i)=>this.$i18n.te(o,i),this.$d=(...o)=>this.$i18n.d(...o),this.$n=(...o)=>this.$i18n.n(...o),this.$tm=o=>this.$i18n.tm(o),n.__setInstance(r,this.$i18n)},mounted(){if((process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&!0&&this.$el&&this.$i18n){const r=this.$i18n;this.$el.__VUE_I18N__=r.__composer;const u=this.__v_emitter=Ou();r.__enableEmitter&&r.__enableEmitter(u),u.on("*",Pn)}},unmounted(){const r=un();if(!r)throw de(W.UNEXPECTED_ERROR);const u=this.$i18n;(process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&!0&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",Pn),delete this.__v_emitter),this.$i18n&&(u.__disableEmitter&&u.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,u.__disposer&&(u.__disposer(),delete u.__disposer,delete u.__extender),n.__deleteInstance(r),delete this.$i18n}}}function sl(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Ws](t.pluralizationRules||e.pluralizationRules);const n=jr(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const _3=xe("global-vue-i18n");function h3(e={},t){const n=__VUE_I18N_LEGACY_API__&&x(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=x(e.globalInjection)?e.globalInjection:!0,u=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,o=new Map,[i,a]=m3(e,n),l=xe(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&n&&u&&fe(Ie(te.NOTICE_DROP_ALLOW_COMPOSITION));function s(p){return o.get(p)||null}function f(p,y){o.set(p,y)}function c(p){o.delete(p)}{let y;const p={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return u},install(I,...g){return Gt(this,null,function*(){if((process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&(I.__VUE_I18N__=p),I.__VUE_I18N_SYMBOL__=l,I.provide(I.__VUE_I18N_SYMBOL__,p),M(g[0])){const C=g[0];p.__composerExtend=C.__composerExtend,p.__vueI18nExtend=C.__vueI18nExtend}let O=null;!n&&r&&(O=A3(I,p.global)),__VUE_I18N_FULL_INSTALL__&&Y5(I,p,...g),__VUE_I18N_LEGACY_API__&&n&&I.mixin(p3(a,a.__composer,p));const _=I.unmount;if(I.unmount=()=>{O&&O(),p.dispose(),_()},process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__){if(!(yield n3(I,p)))throw de(W.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const m=Ou();if(n){const v=a;v.__enableEmitter&&v.__enableEmitter(m)}else{const v=a;v[Vt]&&v[Vt](m)}m.on("*",Pn)}})},get global(){return a},dispose(){i.stop()},__instances:o,__getInstance:s,__setInstance:f,__deleteInstance:c};return p}}function Oo(e={}){const t=un();if(t==null)throw de(W.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw de(W.NOT_INSTALLED);const n=v3(t),r=E3(n),u=Gs(t),o=g3(e,u);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw de(W.NOT_AVAILABLE_IN_LEGACY_MODE);return S3(t,o,r,e)}if(o==="global")return qs(r,e,u),r;if(o==="parent"){let l=y3(n,t,e.__useComponent);return l==null&&(process.env.NODE_ENV!=="production"&&fe(Ie(te.NOT_FOUND_PARENT_SCOPE)),l=r),l}const i=n;let a=i.__getInstance(t);if(a==null){const l=ce({},e);"__i18n"in u&&(l.__i18n=u.__i18n),r&&(l.__root=r),a=vo(l),i.__composerExtend&&(a[mo]=i.__composerExtend(a)),C3(i,t,a),i.__setInstance(t,a)}return a}function m3(e,t,n){const r=cb();{const u=__VUE_I18N_LEGACY_API__&&t?r.run(()=>go(e)):r.run(()=>vo(e));if(u==null)throw de(W.UNEXPECTED_ERROR);return[r,u]}}function v3(e){{const t=Fs(e.isCE?_3:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw de(e.isCE?W.NOT_INSTALLED_WITH_PROVIDE:W.UNEXPECTED_ERROR);return t}}function g3(e,t){return pr(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function E3(e){return e.mode==="composition"?e.global:e.global.__composer}function y3(e,t,n=!1){let r=null;const u=t.root;let o=b3(t,n);for(;o!=null;){const i=e;if(e.mode==="composition")r=i.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const a=i.__getInstance(o);a!=null&&(r=a.__composer,n&&r&&!r[Hs]&&(r=null))}if(r!=null||u===o)break;o=o.parent}return r}function b3(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function C3(e,t,n){let r=null;r5(()=>{if((process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&!0&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=Ou();const u=n;u[Vt]&&u[Vt](r),r.on("*",Pn)}},t),u5(()=>{const u=n;(process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&!0&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(r&&r.off("*",Pn),u[Rn]&&u[Rn](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const o=u[mo];o&&(o(),delete u[mo])},t)}function S3(e,t,n,r={}){const u=t==="local",o=ds(null);if(u&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw de(W.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=x(r.inheritLocale)?r.inheritLocale:!T(r.locale),a=Yt(!u||i?n.locale.value:T(r.locale)?r.locale:Jt),l=Yt(!u||i?n.fallbackLocale.value:T(r.fallbackLocale)||Z(r.fallbackLocale)||M(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:a.value),s=Yt(jr(a.value,r)),f=Yt(M(r.datetimeFormats)?r.datetimeFormats:{[a.value]:{}}),c=Yt(M(r.numberFormats)?r.numberFormats:{[a.value]:{}}),p=u?n.missingWarn:x(r.missingWarn)||lt(r.missingWarn)?r.missingWarn:!0,y=u?n.fallbackWarn:x(r.fallbackWarn)||lt(r.fallbackWarn)?r.fallbackWarn:!0,I=u?n.fallbackRoot:x(r.fallbackRoot)?r.fallbackRoot:!0,g=!!r.fallbackFormat,O=z(r.missing)?r.missing:null,_=z(r.postTranslation)?r.postTranslation:null,C=u?n.warnHtmlMessage:x(r.warnHtmlMessage)?r.warnHtmlMessage:!0,m=!!r.escapeParameter,v=u?n.modifiers:M(r.modifiers)?r.modifiers:{},A=r.pluralRules||u&&n.pluralRules;function S(){return[a.value,l.value,s.value,f.value,c.value]}const E=Xe({get:()=>o.value?o.value.locale.value:a.value,set:B=>{o.value&&(o.value.locale.value=B),a.value=B}}),w=Xe({get:()=>o.value?o.value.fallbackLocale.value:l.value,set:B=>{o.value&&(o.value.fallbackLocale.value=B),l.value=B}}),N=Xe(()=>o.value?o.value.messages.value:s.value),G=Xe(()=>f.value),Oe=Xe(()=>c.value);function V(){return o.value?o.value.getPostTranslationHandler():_}function se(B){o.value&&o.value.setPostTranslationHandler(B)}function Pe(){return o.value?o.value.getMissingHandler():O}function Jn(B){o.value&&o.value.setMissingHandler(B)}function Qe(B){return S(),B()}function zn(...B){return o.value?Qe(()=>Reflect.apply(o.value.t,null,[...B])):Qe(()=>"")}function Qn(...B){return o.value?Reflect.apply(o.value.rt,null,[...B]):""}function Zn(...B){return o.value?Qe(()=>Reflect.apply(o.value.d,null,[...B])):Qe(()=>"")}function Yn(...B){return o.value?Qe(()=>Reflect.apply(o.value.n,null,[...B])):Qe(()=>"")}function er(B){return o.value?o.value.tm(B):{}}function $e(B,q){return o.value?o.value.te(B,q):!1}function pn(B){return o.value?o.value.getLocaleMessage(B):{}}function _n(B,q){o.value&&(o.value.setLocaleMessage(B,q),s.value[B]=q)}function tr(B,q){o.value&&o.value.mergeLocaleMessage(B,q)}function nr(B){return o.value?o.value.getDateTimeFormat(B):{}}function rr(B,q){o.value&&(o.value.setDateTimeFormat(B,q),f.value[B]=q)}function du(B,q){o.value&&o.value.mergeDateTimeFormat(B,q)}function ur(B){return o.value?o.value.getNumberFormat(B):{}}function hn(B,q){o.value&&(o.value.setNumberFormat(B,q),c.value[B]=q)}function or(B,q){o.value&&o.value.mergeNumberFormat(B,q)}const ir={get id(){return o.value?o.value.id:-1},locale:E,fallbackLocale:w,messages:N,datetimeFormats:G,numberFormats:Oe,get inheritLocale(){return o.value?o.value.inheritLocale:i},set inheritLocale(B){o.value&&(o.value.inheritLocale=B)},get availableLocales(){return o.value?o.value.availableLocales:Object.keys(s.value)},get modifiers(){return o.value?o.value.modifiers:v},get pluralRules(){return o.value?o.value.pluralRules:A},get isGlobal(){return o.value?o.value.isGlobal:!1},get missingWarn(){return o.value?o.value.missingWarn:p},set missingWarn(B){o.value&&(o.value.missingWarn=B)},get fallbackWarn(){return o.value?o.value.fallbackWarn:y},set fallbackWarn(B){o.value&&(o.value.missingWarn=B)},get fallbackRoot(){return o.value?o.value.fallbackRoot:I},set fallbackRoot(B){o.value&&(o.value.fallbackRoot=B)},get fallbackFormat(){return o.value?o.value.fallbackFormat:g},set fallbackFormat(B){o.value&&(o.value.fallbackFormat=B)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:C},set warnHtmlMessage(B){o.value&&(o.value.warnHtmlMessage=B)},get escapeParameter(){return o.value?o.value.escapeParameter:m},set escapeParameter(B){o.value&&(o.value.escapeParameter=B)},t:zn,getPostTranslationHandler:V,setPostTranslationHandler:se,getMissingHandler:Pe,setMissingHandler:Jn,rt:Qn,d:Zn,n:Yn,tm:er,te:$e,getLocaleMessage:pn,setLocaleMessage:_n,mergeLocaleMessage:tr,getDateTimeFormat:nr,setDateTimeFormat:rr,mergeDateTimeFormat:du,getNumberFormat:ur,setNumberFormat:hn,mergeNumberFormat:or};function ar(B){B.locale.value=a.value,B.fallbackLocale.value=l.value,Object.keys(s.value).forEach(q=>{B.mergeLocaleMessage(q,s.value[q])}),Object.keys(f.value).forEach(q=>{B.mergeDateTimeFormat(q,f.value[q])}),Object.keys(c.value).forEach(q=>{B.mergeNumberFormat(q,c.value[q])}),B.escapeParameter=m,B.fallbackFormat=g,B.fallbackRoot=I,B.fallbackWarn=y,B.missingWarn=p,B.warnHtmlMessage=C}return n5(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw de(W.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const B=o.value=e.proxy.$i18n.__composer;t==="global"?(a.value=B.locale.value,l.value=B.fallbackLocale.value,s.value=B.messages.value,f.value=B.datetimeFormats.value,c.value=B.numberFormats.value):u&&ar(B)}),ir}const O3=["locale","fallbackLocale","availableLocales"],ll=["t","rt","d","n","tm","te"];function A3(e,t){const n=Object.create(null);return O3.forEach(u=>{const o=Object.getOwnPropertyDescriptor(t,u);if(!o)throw de(W.UNEXPECTED_ERROR);const i=Ae(o.value)?{get(){return o.value.value},set(a){o.value.value=a}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,u,i)}),e.config.globalProperties.$i18n=n,ll.forEach(u=>{const o=Object.getOwnPropertyDescriptor(t,u);if(!o||!o.value)throw de(W.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${u}`,o)}),()=>{delete e.config.globalProperties.$i18n,ll.forEach(u=>{delete e.config.globalProperties[`$${u}`]})}}if(W5(),__INTLIFY_JIT_COMPILATION__?ca(jy):ca(Uy),Ry(py),Ly(ia),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Ye();e.__INTLIFY__=!0,Cy(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const I3=(e,t)=>{var i;const n=e.split(".");let r;const u=((i=window.baitedaWorkers)==null?void 0:i.languageMessages)||{};n.forEach((a,l)=>{l===0?r=u[a]:r&&(r=r[a])});let o="";return r&&(o=r),t&&Object.keys(t).forEach(a=>{const l=t[a];o=o.replace(new RegExp(`\\{\\s*${a}\\s*\\}`),l)}),o||(o=e),o};function F3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w3(e,t,n){return t&&cl(e.prototype,t),n&&cl(e,n),e}function D3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $=function(){function e(){F3(this,e)}return w3(e,null,[{key:"getMessage",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u;return(u=this.$i18n.global.t(n,r))!==null&&u!==void 0?u:I3("engine."+n)}},{key:"resetI18n",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ri;return h3({locale:n,globalInjection:!0,silentFallbackWarn:!0,missingWarn:!1,fallbackWarn:!1,silentTranslationWarn:!0})}},{key:"setLocale",value:function(n,r){var u=r;r||(u=aE.zhCN),this.$i18n.global.setLocaleMessage(n,u)}}]),e}();D3($,"$i18n",$.resetI18n());function fl(e,t,n){var r=t.replace(/\[(\d)]/g,function(o,i){return"."+i}).split("."),u=!1;return r.reduce(function(o,i,a,l){var s=o;if(!!o){if(!Object.prototype.hasOwnProperty.call(o,i)){dr("Can not set ".concat(t,"'s ").concat(i," property in current %o, Because there is no ").concat(i," property on the %o"),o,o);return}return a===l.length-1&&!Object.is(s[i],n)&&(s[i]=n,u=!0),s[i]}},e),u}var N3=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},B3={exports:{}};(function(e){(function(t){var n=function(_,C,m){if(!s(C)||c(C)||p(C)||y(C)||l(C))return C;var v,A=0,S=0;if(f(C))for(v=[],S=C.length;A<S;A++)v.push(n(_,C[A],m));else{v={};for(var E in C)Object.prototype.hasOwnProperty.call(C,E)&&(v[_(E,m)]=n(_,C[E],m))}return v},r=function(_,C){C=C||{};var m=C.separator||"_",v=C.split||/(?=[A-Z])/;return _.split(v).join(m)},u=function(_){return I(_)?_:(_=_.replace(/[\-_\s]+(.)?/g,function(C,m){return m?m.toUpperCase():""}),_.substr(0,1).toLowerCase()+_.substr(1))},o=function(_){var C=u(_);return C.substr(0,1).toUpperCase()+C.substr(1)},i=function(_,C){return r(_,C).toLowerCase()},a=Object.prototype.toString,l=function(_){return typeof _=="function"},s=function(_){return _===Object(_)},f=function(_){return a.call(_)=="[object Array]"},c=function(_){return a.call(_)=="[object Date]"},p=function(_){return a.call(_)=="[object RegExp]"},y=function(_){return a.call(_)=="[object Boolean]"},I=function(_){return _=_-0,_===_},g=function(_,C){var m=C&&"process"in C?C.process:C;return typeof m!="function"?_:function(v,A){return m(v,_,A)}},O={camelize:u,decamelize:i,pascalize:o,depascalize:i,camelizeKeys:function(_,C){return n(g(u,C),_)},decamelizeKeys:function(_,C){return n(g(i,C),_,C)},pascalizeKeys:function(_,C){return n(g(o,C),_)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=O:t.humps=O})(N3)})(B3);var dl={};Object.defineProperty(dl,"__esModule",{value:!0});function Ao(e){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map(t=>typeof t!="object"||t===null?t:Ao(t));{const t={};for(const n in e){const r=e[n];t[n]=typeof r!="object"||r===null?r:Ao(r)}return t}}var T3=dl.default=Ao;function pl(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function ut(e){if(e!==void 0)return(typeof e=="undefined"?"undefined":pl(e))==="object"?T3(e):e}function Io(e){return Object.prototype.toString.call(e)==="[object Object]"}function R3(e){return e!=null&&(typeof e=="undefined"?"undefined":pl(e))==="object"&&Array.isArray(e)===!1}function $n(e){return Array.isArray(e)}function Fo(e){return typeof e=="string"}function L3(e){return Object.values(L).includes(e)}function wo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function P3(e){if(Array.isArray(e))return wo(e)}function _l(e,t,n,r,u,o,i){try{var a=e[o](i),l=a.value}catch(s){n(s);return}a.done?t(l):Promise.resolve(l).then(r,u)}function $3(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var o=e.apply(t,n);function i(l){_l(o,r,u,i,a,"next",l)}function a(l){_l(o,r,u,i,a,"throw",l)}i(void 0)})}}function M3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x3(e,t,n){return t&&hl(e.prototype,t),n&&hl(e,n),e}function ml(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V3(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function k3(){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 Do(e){return P3(e)||V3(e)||U3(e)||k3()}function U3(e,t){if(!!e){if(typeof e=="string")return wo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wo(e,t)}}function j3(e,t){var n,r,u,o,i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(s){return function(f){return l([s,f])}}function l(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(u=s[0]&2?r.return:s[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,s[1])).done)return u;switch(r=0,u&&(s=[s[0]&2,u.value]),s[0]){case 0:case 1:u=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]<u[3])){i.label=s[1];break}if(s[0]===6&&i.label<u[1]){i.label=u[1],u=s;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(s);break}u[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(f){s=[6,f],r=0}finally{n=u=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}var vl=function(){function e(){M3(this,e),ml(this,"_events",new Map),ml(this,"debug",!1)}return x3(e,[{key:"emit",value:function(n){for(var r=arguments.length,u=new Array(r>1?r-1:0),o=1;o<r;o++)u[o-1]=arguments[o];var i=this;return $3(function(){var a,l,s,f,c,p,y,I,g,O,_,C;return j3(this,function(m){switch(m.label){case 0:if(a=i._events.get(n),l=[],!a)return[3,10];s=a.slice(),f=!0,c=!1,p=void 0,m.label=1;case 1:m.trys.push([1,8,9,10]),y=s[Symbol.iterator](),m.label=2;case 2:if(f=(I=y.next()).done)return[3,7];if(g=I.value,!a.includes(g))return[3,6];m.label=3;case 3:return m.trys.push([3,5,,6]),i.debug&&Wi.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(g.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+g.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(u.map(function(){return"%o"}).join(","),"\u3002")].concat(Do(u))),[4,g.apply(null,Do(u))];case 4:return O=m.sent(),i.debug&&Wi.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(g.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+g.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(u.map(function(){return"%o"}).join(","),"; \u51FD\u6570\u7684\u8FD4\u56DE\u7ED3\u679C\u4E3A%o")].concat(Do(u),[O])),l.push(O),O===!1?[3,7]:[3,6];case 5:return _=m.sent(),yE(String(_)+":"+String(_.stack)),[3,6];case 6:return f=!0,[3,2];case 7:return[3,10];case 8:return C=m.sent(),c=!0,p=C,[3,10];case 9:try{!f&&y.return!=null&&y.return()}finally{if(c)throw p}return[7];case 10:return[2,l]}})})()}},{key:"on",value:function(n,r){if(this._events.has(n)){var u;(u=this._events.get(n))===null||u===void 0||u.push(r)}else this._events.set(n,[r])}},{key:"off",value:function(n,r){if(this._events.has(n)){var u=this._events.get(n),o=u==null?void 0:u.indexOf(r);u==null||u.splice(o,1)}}},{key:"delete",value:function(n){this._events.has(n)&&this._events.delete(n)}},{key:"clear",value:function(){this._events=new Map}}]),e}();function W3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function H3(e,t,n){return t&&gl(e.prototype,t),n&&gl(e,n),e}function G3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var q3=[{key:"on_click",name:$.getMessage("click"),code:"click"},{key:"on_click_finish",name:$.getMessage("finished"),code:"click-finish"},{key:"on_change",name:$.getMessage("valueChange"),code:"change"},{key:"on_search",name:$.getMessage("search"),code:"search"},{key:"on_list_change",name:$.getMessage("listDataChange"),code:"list-change"},{key:"on_list_search",name:$.getMessage("listDataCreate"),code:"list-search"},{key:"on_list_mounted",name:$.getMessage("listDataBack"),code:"list-mounted"},{key:"on_list_delete",name:$.getMessage("listDataDelete"),code:"list-delete"},{key:"on_list_before_insert",name:$.getMessage("listDataAdd"),code:"list-before-insert"},{key:"on_input",name:$.getMessage("onInput"),code:"input"},{key:"on_blur",name:$.getMessage("onBlur"),code:"blur"},{key:"on_focus",name:$.getMessage("onFocus"),code:"focus"},{key:"on_wps_open",name:$.getMessage("onOpenFile"),code:"wps-open"},{key:"on_wps_save",name:$.getMessage("onSaveFile"),code:"wps-save"},{key:"on_wps_rename",name:$.getMessage("rename"),code:"wps-rename"},{key:"on_list_actions",name:$.getMessage("onClickBtn"),code:"list-actions"},{key:"on_list_render_operation",name:$.getMessage("cellRender"),code:"list-render-operation"},{key:"on_list_rowclick",name:$.getMessage("rowClick"),code:"list-rowclick"},{key:"on_list_before_rowdelete",name:$.getMessage("rowDelete"),code:"list-before-rowdelete"},{key:"on_list_before_import",name:$.getMessage("listDataImport"),code:"list-before-import"},{key:"on_list_rows_checked",name:$.getMessage("rowSelected"),code:"list-rows-checked"},{key:"on_change_tab",name:$.getMessage("tabChange"),code:"change-tab"},{key:"on_modal_ok",name:$.getMessage("modalConfirm"),code:"modal-ok"}],Mn=function(){function e(){W3(this,e)}return H3(e,null,[{key:"getEventsFromKeys",value:function(n){var r=typeof n=="string"?[n]:n;return e.events.filter(function(u){return r.includes(u.key)})}},{key:"getEventsFromControl",value:function(n){var r=[],u=n.eventKeys;r=r.concat(e.events.filter(function(i){return u.includes(i.key)}));var o=n.customEvents.map(function(i){var a=i.key;return i.namespace!==void 0&&i.namespace!==null&&i.namespace!==""&&(a=i.namespace+":"+i.key),{key:a,code:i.key,name:i.name}});return r=r.concat(o),r}}]),e}();G3(Mn,"events",q3);function No(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function K3(e){if(Array.isArray(e))return No(e)}function X3(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function J3(){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 El(e){return K3(e)||X3(e)||z3(e)||J3()}function z3(e,t){if(!!e){if(typeof e=="string")return No(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return No(e,t)}}function Bo(e,t){var n;!((n=Object.getOwnPropertyDescriptors(e)[t])===null||n===void 0)&&n.enumerable&&Object.defineProperty(e,t,{enumerable:!1})}function yl(e,t,n){n!=="Runtime"&&(e.parent=t,Bo(e,"parent"))}function Q3(e,t,n){e.forEach(function(r){yl(r,t,n)})}var bl=Symbol("targetKey");function Cl(e){var t;return(t=e[bl])!==null&&t!==void 0?t:e}function Sl(e,t,n){return Q3(e,t,n),new Proxy(e,{get:function(u,o){for(var i=arguments.length,a=new Array(i>2?i-2:0),l=2;l<i;l++)a[l-2]=arguments[l];var s;return o===bl?u:(s=Reflect).get.apply(s,[u,o].concat(El(a)))},set:function(u,o,i){for(var a=arguments.length,l=new Array(a>3?a-3:0),s=3;s<a;s++)l[s-3]=arguments[s];var f;if($n(e)&&o==="length"&&i===e.length)return!0;var c=(f=Reflect).set.apply(f,[u,o,i].concat(El(l)));return Io(i)&&yl(i,t,n),c}})}function To(e,t,n,r,u){var o=r!=null?r:e,i=Sl(Cl(n!=null?n:[]),o,u);Object.defineProperty(e,t,{get:function(){return i},set:function(l){i=Sl(Cl(l),o,u)},enumerable:!0})}function Z3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ol(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Y3(e,t,n){return t&&Ol(e.prototype,t),n&&Ol(e,n),e}function bt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Al=[],xn=function(){function e(t){Z3(this,e),bt(this,"registeredControlTypes",new Set),bt(this,"controlConfigMap",new Map),bt(this,"_controls",[]),bt(this,"_type",void 0),this._type=t,this._initControls(t)}return Y3(e,[{key:"registerControlConfig",value:function(n,r){return this.controlConfigMap.set(n,r),this}},{key:"getControlConfig",value:function(n){return this.controlConfigMap.get(n)}},{key:"getControls",value:function(){return this._controls}},{key:"register",value:function(n){n.__is_control__||bn("".concat(n.name," is not a Control"));var r=this._controls.findIndex(function(u){return u.controlType===n.controlType});return r>-1&&(dr("The ".concat(n.controlType," is repeat register, So it overwrites the one that was registered before.")),this._controls.splice(r,1)),this.registeredControlTypes.add(n.controlType),this._controls.push(n),this}},{key:"isLayoutControl",value:function(n){return n.controlType===ve.LAYOUT}},{key:"isFormControl",value:function(n){return n.controlType===ve.FORM}},{key:"isListControl",value:function(n){return n.controlType===ve.LIST}},{key:"isColumnControl",value:function(n){return n.controlType===ve.COLUMN}},{key:"createControl",value:function(n,r){var u=this;if(Array.isArray(n))return n.map(function(f){return u.createControl(f,r)});if(n.children&&(n.children=n.children.map(function(f){return u.createControl(f,r)})),this.isListControl(n)){var o=n.props;o.headers&&(o.headers=o.headers.map(function(f){return u.createControl(f,r)}))}var i=this.getControlFormType(n.type);if(i){var a=n;if(typeof r=="function"){var l=r(a);l&&(a=l)}var s;return i.mode==="Runtime"?(s=a,s.fieldType=i.controlFieldType,this._setParentPrototypeToSchema(s,this)):s=new i(a),s}else bn("The constructor of ".concat(n.type," could not be found, please confirm that the constructor has been registered"))}},{key:"resetInstanceParent",value:function(n,r){delete n.parent,Object.defineProperty(n,"parent",{configurable:!0,get:function(){return r}}),Bo(n,"parent")}},{key:"_setParentPrototypeToSchema",value:function(n,r){r._type==="Runtime"&&(Object.defineProperty(n,"parent",{configurable:!0,get:function(){var o=n.id,i=r._controlParentIdMap,a=r.instanceMap;if(!(!i||!a)){var l=i[o],s=a[o];if(!(!l&&!s)){var f=s.findIndex(function(y){return y==n}),c=a[l]||[],p;return c.length!==s.length?p=c[0]:p=c[f],p}}}}),Bo(n,"parent"))}},{key:"createControlInstance",value:function(n,r){var u=this.getControlFormType(n);if(u)return new u(r)}},{key:"getControlFormType",value:function(n){return this._controls.find(function(r){return r.controlType===n})}},{key:"_initControls",value:function(n){var r=this;this.constructor.staticControls.forEach(function(u){r.register(u[n]),e.staticControlsRuntimeRules.set(u.Runtime.controlType,u.Property.RuntimeRules),u.Property.mode=n})}}],[{key:"staticGetRules",value:function(n,r){var u=e.staticControlsRuntimeRules.get(n),o=[];if(u){var i=new u(r);o=Array.from(i)}return o}},{key:"register",value:function(n,r){var u=n.Designer,o=n.Runtime,i=n.Property;(!u||!o||!u.__is_control__||!o.__is_control__)&&bn("".concat(n," is can't register as a Control"));var a=this.staticControls.findIndex(function(l){return l.Designer.controlType===u.controlType});return a>-1&&(dr("The ".concat(u.controlType," is repeat register, So it overwrites the one that was registered before.")),this.staticControls.splice(a,1)),this.staticRegisteredTypes.add(u.controlType),this.staticControls.push(n),i.mode=r,this}}]),e}();bt(xn,"staticControlsRuntimeRules",new Map),bt(xn,"staticControls",Al),bt(xn,"staticRegisteredTypes",new Set(Al.map(function(e){return e.Designer.controlType}))),bt(xn,"staticRegisteredConfigs",new Map);function Ro(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function We(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Il=function e(t){Ro(this,e),We(this,"dataCode",void 0),We(this,"fieldCode",void 0),We(this,"fieldType",void 0),We(this,"aliasCode",void 0);var n;this.dataCode=(n=t==null?void 0:t.dataCode)!==null&&n!==void 0?n:"";var r;this.fieldCode=(r=t==null?void 0:t.fieldCode)!==null&&r!==void 0?r:"";var u;this.fieldType=(u=t==null?void 0:t.fieldType)!==null&&u!==void 0?u:"",this.aliasCode=t==null?void 0:t.aliasCode},eC=function e(t){Ro(this,e),We(this,"minWidth",void 0),We(this,"maxWidth",void 0),We(this,"flex",void 0);var n;this.minWidth=(n=t==null?void 0:t.minWidth)!==null&&n!==void 0?n:150,this.maxWidth=t==null?void 0:t.maxWidth;var r;this.flex=(r=t==null?void 0:t.flex)!==null&&r!==void 0?r:1},Fl;(function(e){e.CNY="CNY",e.USD="USD",e.JPY="JPY",e.EUR="EUR",e.INR="INR",e.IDR="IDR",e.BRL="BRL",e.AED="AED",e.AUD="AUD",e.CAD="CAD",e.EGP="EGP",e.GBP="GBP",e.ZAR="ZAR",e.KRW="KRW",e.MAD="MAD",e.MXN="MXN",e.MYR="MYR",e.PHP="PHP",e.PLN="PLN",e.RUB="RUB",e.SGD="SGD",e.THB="THB",e.TRY="TRY",e.TWD="TWD",e.VND="VND",e.HKD="HKD",e.IEP="IEP"})(Fl||(Fl={}));var wl;(function(e){e.DEFAULT_DISPLAY="defaultDisplay",e.REQUIRED="required",e.IS_HIDE="isHide",e.IS_SHOW_UNIT="isShowUnit",e.IMD_SEARCH="immediatelySearch",e.MULTIPLE="multiple",e.SUBMIT_SELECT_CURRENCY="submitSelectCurrency",e.CAPTION="caption",e.IS_HIDE_CAPTION="isHideCaption",e.DEFAULT_SHOW_OPTIONS="defaultShowOptions",e.CAN_SEARCH="canSearch",e.CAN_CHECK="canCheck",e.CAN_EDIT="canEdit",e.CAN_DELETE="canDelete",e.SHOW_UPPER_CASE="showUpperCase",e.MICROMETER="micrometer",e.PRECISION="precision",e.PERCENTAGE="percentage",e.OPTIONAL_LEVEL="optionalLevel",e.CONTAINS_SUB_NODE="containsSubNode",e.DEFAULT_COLLAPSE="defaultCollapse",e.CAN_VIEW_FORM="canViewForm",e.VIEW_FORM_MODEL_TYPE="viewFormModelType",e.SERVER_PAGINATION="serverPagination",e.IS_SHOW_CAPTION_TIP="isShowCaptionTip",e.IS_SHOW_WATERMARK="isShowWatermark",e.ENCRYPTED="encrypted",e.IS_INLINE_EDIT="isInlineEdit",e.REVISIONS_MODE="revisionsMode",e.ALLOW_COPY_OPTIONS="allowCopyOptions",e.IS_PASTE="isPaste",e.SORTABLE="sortable"})(wl||(wl={}));var Lo;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.READONLY=1]="READONLY",e[e.EDITABLE=2]="EDITABLE",e[e.PRINT=5]="PRINT"})(Lo||(Lo={}));var tC=function e(t){Ro(this,e),We(this,"width",void 0),We(this,"height",void 0),We(this,"widthConfig",void 0),We(this,"heightConfig",void 0);var n;this.width=(n=t==null?void 0:t.width)!==null&&n!==void 0?n:"";var r;this.height=(r=t==null?void 0:t.height)!==null&&r!==void 0?r:"";var u;this.widthConfig=(u=t==null?void 0:t.widthConfig)!==null&&u!==void 0?u:"fill";var o;this.heightConfig=(o=t==null?void 0:t.heightConfig)!==null&&o!==void 0?o:"fill"};function nC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Po(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wr(e,t,n){return Dl()?Wr=Reflect.construct:Wr=function(u,o,i){var a=[null];a.push.apply(a,o);var l=Function.bind.apply(u,a),s=new l;return i&&kn(s,i.prototype),s},Wr.apply(null,arguments)}function ot(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vn(e){return Vn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Vn(e)}function rC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&kn(e,t)}function uC(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function oC(e,t){return t&&(iC(t)==="object"||typeof t=="function")?t:nC(e)}function kn(e,t){return kn=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},kn(e,t)}function iC(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function $o(e){var t=typeof Map=="function"?new Map:void 0;return $o=function(r){if(r===null||!uC(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,u)}function u(){return Wr(r,arguments,Vn(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),kn(u,r)},$o(e)}function Dl(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function aC(e){var t=Dl();return function(){var r=Vn(e),u;if(t){var o=Vn(this).constructor;u=Reflect.construct(r,arguments,o)}else u=r.apply(this,arguments);return oC(this,u)}}var Mo=function e(t){Po(this,e),ot(this,"isHide",{type:"boolean"})},Nl=function(e){rC(n,e);var t=aC(n);function n(r){return Po(this,n),t.call(this)}return n}($o(Array)),it=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";Po(this,e),ot(this,"isHide",void 0),ot(this,"className",void 0),ot(this,"style",void 0),ot(this,"caption",void 0),ot(this,"defaultState",void 0);var r;this.isHide=(r=t==null?void 0:t.isHide)!==null&&r!==void 0?r:!1,this.style=new tC(t==null?void 0:t.style);var u;this.caption=(u=t==null?void 0:t.caption)!==null&&u!==void 0?u:n};ot(it,"mode",void 0),ot(it,"Rules",Mo),ot(it,"RuntimeRules",Nl);function Je(){return Je=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Je.apply(this,arguments)}function sC(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function xo(e){return xo=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},xo(e)}function Hr(e,t){return Hr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Hr(e,t)}function lC(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function Gr(e,t,n){return lC()?Gr=Reflect.construct:Gr=function(u,o,i){var a=[null];a.push.apply(a,o);var l=Function.bind.apply(u,a),s=new l;return i&&Hr(s,i.prototype),s},Gr.apply(null,arguments)}function cC(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Vo(e){var t=typeof Map=="function"?new Map:void 0;return Vo=function(r){if(r===null||!cC(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,u)}function u(){return Gr(r,arguments,xo(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),Hr(u,r)},Vo(e)}var fC=/%[sdj%]/g,Bl=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(Bl=function(t,n){typeof console!="undefined"&&console.warn&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function ko(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Be(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,u=t[0],o=t.length;if(typeof u=="function")return u.apply(null,t.slice(1));if(typeof u=="string"){var i=String(u).replace(fC,function(a){if(a==="%%")return"%";if(r>=o)return a;switch(a){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(l){return"[Circular]"}break;default:return a}});return i}return u}function dC(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function pe(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||dC(t)&&typeof e=="string"&&!e)}function pC(e,t,n){var r=[],u=0,o=e.length;function i(a){r.push.apply(r,a),u++,u===o&&n(r)}e.forEach(function(a){t(a,i)})}function Tl(e,t,n){var r=0,u=e.length;function o(i){if(i&&i.length){n(i);return}var a=r;r=r+1,a<u?t(e[a],o):n([])}o([])}function _C(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n])}),t}var Rl=function(e){sC(t,e);function t(n,r){var u;return u=e.call(this,"Async Validation Error")||this,u.errors=n,u.fields=r,u}return t}(Vo(Error));function hC(e,t,n,r){if(t.first){var u=new Promise(function(c,p){var y=function(O){return r(O),O.length?p(new Rl(O,ko(O))):c()},I=_C(e);Tl(I,n,y)});return u.catch(function(c){return c}),u}var o=t.firstFields||[];o===!0&&(o=Object.keys(e));var i=Object.keys(e),a=i.length,l=0,s=[],f=new Promise(function(c,p){var y=function(g){if(s.push.apply(s,g),l++,l===a)return r(s),s.length?p(new Rl(s,ko(s))):c()};i.length||(r(s),c()),i.forEach(function(I){var g=e[I];o.indexOf(I)!==-1?Tl(g,n,y):pC(g,n,y)})});return f.catch(function(c){return c}),f}function Ll(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:typeof t=="function"?t():t,field:t.field||e.fullField}}}function Pl(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=Je(Je({},e[n]),r):e[n]=r}}return e}function $l(e,t,n,r,u,o){e.required&&(!n.hasOwnProperty(e.field)||pe(t,o||e.type))&&r.push(Be(u.messages.required,e.fullField))}function mC(e,t,n,r,u){(/^\s+$/.test(t)||t==="")&&r.push(Be(u.messages.whitespace,e.fullField))}var Uo={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},Un={integer:function(t){return Un.number(t)&&parseInt(t,10)===t},float:function(t){return Un.number(t)&&!Un.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(n){return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Un.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&!!t.match(Uo.email)&&t.length<255},url:function(t){return typeof t=="string"&&!!t.match(Uo.url)},hex:function(t){return typeof t=="string"&&!!t.match(Uo.hex)}};function vC(e,t,n,r,u){if(e.required&&t===void 0){$l(e,t,n,r,u);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],i=e.type;o.indexOf(i)>-1?Un[i](t)||r.push(Be(u.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&r.push(Be(u.messages.types[i],e.fullField,e.type))}function gC(e,t,n,r,u){var o=typeof e.len=="number",i=typeof e.min=="number",a=typeof e.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,s=t,f=null,c=typeof t=="number",p=typeof t=="string",y=Array.isArray(t);if(c?f="number":p?f="string":y&&(f="array"),!f)return!1;y&&(s=t.length),p&&(s=t.replace(l,"_").length),o?s!==e.len&&r.push(Be(u.messages[f].len,e.fullField,e.len)):i&&!a&&s<e.min?r.push(Be(u.messages[f].min,e.fullField,e.min)):a&&!i&&s>e.max?r.push(Be(u.messages[f].max,e.fullField,e.max)):i&&a&&(s<e.min||s>e.max)&&r.push(Be(u.messages[f].range,e.fullField,e.min,e.max))}var an="enum";function EC(e,t,n,r,u){e[an]=Array.isArray(e[an])?e[an]:[],e[an].indexOf(t)===-1&&r.push(Be(u.messages[an],e.fullField,e[an].join(", ")))}function yC(e,t,n,r,u){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Be(u.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var o=new RegExp(e.pattern);o.test(t)||r.push(Be(u.messages.pattern.mismatch,e.fullField,t,e.pattern))}}}var U={required:$l,whitespace:mC,type:vC,range:gC,enum:EC,pattern:yC};function bC(e,t,n,r,u){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(pe(t,"string")&&!e.required)return n();U.required(e,t,r,o,u,"string"),pe(t,"string")||(U.type(e,t,r,o,u),U.range(e,t,r,o,u),U.pattern(e,t,r,o,u),e.whitespace===!0&&U.whitespace(e,t,r,o,u))}n(o)}function CC(e,t,n,r,u){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(pe(t)&&!e.required)return n();U.required(e,t,r,o,u),t!==void 0&&U.type(e,t,r,o,u)}n(o)}function SC(e,t,n,r,u){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(t===""&&(t=void 0),pe(t)&&!e.required)return n();U.required(e,t,r,o,u),t!==void 0&&(U.type(e,t,r,o,u),U.range(e,t,r,o,u))}n(o)}function OC(e,t,n,r,u){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(pe(t)&&!e.required)return n();U.required(e,t,r,o,u),t!==void 0&&U.type(e,t,r,o,u)}n(o)}function AC(e,t,n,r,u){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(pe(t)&&!e.required)return n();U.required(e,t,r,o,u),pe(t)||U.type(e,t,r,o,u)}n(o)}function IC(e,t,n,r,u){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(pe(t)&&!e.required)return n();U.required(e,t,r,o,u),t!==void 0&&(U.type(e,t,r,o,u),U.range(e,t,r,o,u))}n(o)}function FC(e,t,n,r,u){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(pe(t)&&!e.required)return n();U.required(e,t,r,o,u),t!==void 0&&(U.type(e,t,r,o,u),U.range(e,t,r,o,u))}n(o)}function wC(e,t,n,r,u){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(t==null&&!e.required)return n();U.required(e,t,r,o,u,"array"),t!=null&&(U.type(e,t,r,o,u),U.range(e,t,r,o,u))}n(o)}function DC(e,t,n,r,u){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(pe(t)&&!e.required)return n();U.required(e,t,r,o,u),t!==void 0&&U.type(e,t,r,o,u)}n(o)}var NC="enum";function BC(e,t,n,r,u){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(pe(t)&&!e.required)return n();U.required(e,t,r,o,u),t!==void 0&&U[NC](e,t,r,o,u)}n(o)}function TC(e,t,n,r,u){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(pe(t,"string")&&!e.required)return n();U.required(e,t,r,o,u),pe(t,"string")||U.pattern(e,t,r,o,u)}n(o)}function RC(e,t,n,r,u){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(pe(t,"date")&&!e.required)return n();if(U.required(e,t,r,o,u),!pe(t,"date")){var a;t instanceof Date?a=t:a=new Date(t),U.type(e,a,r,o,u),a&&U.range(e,a.getTime(),r,o,u)}}n(o)}function LC(e,t,n,r,u){var o=[],i=Array.isArray(t)?"array":typeof t;U.required(e,t,r,o,u,i),n(o)}function jo(e,t,n,r,u){var o=e.type,i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(pe(t,o)&&!e.required)return n();U.required(e,t,r,i,u,o),pe(t,o)||U.type(e,t,r,i,u)}n(i)}function PC(e,t,n,r,u){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(pe(t)&&!e.required)return n();U.required(e,t,r,o,u)}n(o)}var jn={string:bC,method:CC,number:SC,boolean:OC,regexp:AC,integer:IC,float:FC,array:wC,object:DC,enum:BC,pattern:TC,date:RC,url:jo,hex:jo,email:jo,required:LC,any:PC};function Wo(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Ho=Wo();function Ct(e){this.rules=null,this._messages=Ho,this.define(e)}Ct.prototype={messages:function(t){return t&&(this._messages=Pl(Wo(),t)),this._messages},define:function(t){if(!t)throw new Error("Cannot configure a schema with no rules");if(typeof t!="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={};var n,r;for(n in t)t.hasOwnProperty(n)&&(r=t[n],this.rules[n]=Array.isArray(r)?r:[r])},validate:function(t,n,r){var u=this;n===void 0&&(n={}),r===void 0&&(r=function(){});var o=t,i=n,a=r;if(typeof i=="function"&&(a=i,i={}),!this.rules||Object.keys(this.rules).length===0)return a&&a(),Promise.resolve();function l(g){var O,_=[],C={};function m(v){if(Array.isArray(v)){var A;_=(A=_).concat.apply(A,v)}else _.push(v)}for(O=0;O<g.length;O++)m(g[O]);_.length?C=ko(_):(_=null,C=null),a(_,C)}if(i.messages){var s=this.messages();s===Ho&&(s=Wo()),Pl(s,i.messages),i.messages=s}else i.messages=this.messages();var f,c,p={},y=i.keys||Object.keys(this.rules);y.forEach(function(g){f=u.rules[g],c=o[g],f.forEach(function(O){var _=O;typeof _.transform=="function"&&(o===t&&(o=Je({},o)),c=o[g]=_.transform(c)),typeof _=="function"?_={validator:_}:_=Je({},_),_.validator=u.getValidationMethod(_),_.field=g,_.fullField=_.fullField||g,_.type=u.getType(_),_.validator&&(p[g]=p[g]||[],p[g].push({rule:_,value:c,source:o,field:g}))})});var I={};return hC(p,i,function(g,O){var _=g.rule,C=(_.type==="object"||_.type==="array")&&(typeof _.fields=="object"||typeof _.defaultField=="object");C=C&&(_.required||!_.required&&g.value),_.field=g.field;function m(S,E){return Je(Je({},E),{},{fullField:_.fullField+"."+S})}function v(S){S===void 0&&(S=[]);var E=S;if(Array.isArray(E)||(E=[E]),!i.suppressWarning&&E.length&&Ct.warning("async-validator:",E),E.length&&_.message!==void 0&&(E=[].concat(_.message)),E=E.map(Ll(_)),i.first&&E.length)return I[_.field]=1,O(E);if(!C)O(E);else{if(_.required&&!g.value)return _.message!==void 0?E=[].concat(_.message).map(Ll(_)):i.error&&(E=[i.error(_,Be(i.messages.required,_.field))]),O(E);var w={};if(_.defaultField)for(var N in g.value)g.value.hasOwnProperty(N)&&(w[N]=_.defaultField);w=Je(Je({},w),g.rule.fields);for(var G in w)if(w.hasOwnProperty(G)){var Oe=Array.isArray(w[G])?w[G]:[w[G]];w[G]=Oe.map(m.bind(null,G))}var V=new Ct(w);V.messages(i.messages),g.rule.options&&(g.rule.options.messages=i.messages,g.rule.options.error=i.error),V.validate(g.value,g.rule.options||i,function(se){var Pe=[];E&&E.length&&Pe.push.apply(Pe,E),se&&se.length&&Pe.push.apply(Pe,se),O(Pe.length?Pe:null)})}}var A;_.asyncValidator?A=_.asyncValidator(_,g.value,v,g.source,i):_.validator&&(A=_.validator(_,g.value,v,g.source,i),A===!0?v():A===!1?v(_.message||_.field+" fails"):A instanceof Array?v(A):A instanceof Error&&v(A.message)),A&&A.then&&A.then(function(){return v()},function(S){return v(S)})},function(g){l(g)})},getType:function(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!jn.hasOwnProperty(t.type))throw new Error(Be("Unknown rule type %s",t.type));return t.type||"string"},getValidationMethod:function(t){if(typeof t.validator=="function")return t.validator;var n=Object.keys(t),r=n.indexOf("message");return r!==-1&&n.splice(r,1),n.length===1&&n[0]==="required"?jn.required:jn[this.getType(t)]||!1}},Ct.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");jn[t]=n},Ct.warning=Bl,Ct.messages=Ho,Ct.validators=jn;var $C={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 MC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new Ct(e);return n.messages(Object.assign($C,t)),n}var Ml=new vl;function Go(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xC(e){if(Array.isArray(e))return e}function VC(e){if(Array.isArray(e))return Go(e)}function xl(e,t,n,r,u,o,i){try{var a=e[o](i),l=a.value}catch(s){n(s);return}a.done?t(l):Promise.resolve(l).then(r,u)}function Vl(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var o=e.apply(t,n);function i(l){xl(o,r,u,i,a,"next",l)}function a(l){xl(o,r,u,i,a,"throw",l)}i(void 0)})}}function kC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function UC(e,t,n){return t&&kl(e.prototype,t),n&&kl(e,n),e}function X(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ul(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function jl(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jC(){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 WC(){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 Wl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable}))),r.forEach(function(u){X(e,u,n[u])})}return e}function HC(e){return xC(e)||jl(e)||Hl(e)||jC()}function qo(e){return VC(e)||jl(e)||Hl(e)||WC()}function GC(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Hl(e,t){if(!!e){if(typeof e=="string")return Go(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Go(e,t)}}function Gl(e,t){var n,r,u,o,i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(s){return function(f){return l([s,f])}}function l(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(u=s[0]&2?r.return:s[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,s[1])).done)return u;switch(r=0,u&&(s=[s[0]&2,u.value]),s[0]){case 0:case 1:u=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]<u[3])){i.label=s[1];break}if(s[0]===6&&i.label<u[1]){i.label=u[1],u=s;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(s);break}u[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(f){s=[6,f],r=0}finally{n=u=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}var Ee=function(){function t(n){var r=this;kC(this,t),X(this,"id",void 0),X(this,"name",void 0),X(this,"icon",void 0),X(this,"type",void 0),X(this,"controlType",void 0),X(this,"props",void 0),X(this,"setting",[]),X(this,"fieldType",void 0),X(this,"eventKeys",[]),X(this,"customEvents",[]),X(this,"parent",null),X(this,"slots",void 0),X(this,"slotPosition",void 0),X(this,"updateSetting",Kl),X(this,"removeSetting",ql),this._callControlHooks("preInstance",n);var u=Ul(this,t)?this.constructor:void 0,o=u.controlName,i=u.controlIcon,a=u.controlType,l=u.controlFieldType,s=u.controlEventKeys,f=u.controlCustomEvents,c=u.name,p=u.setting,y=u.slots,I=u.slotPosition;o&&i&&a||Hi("The ".concat(c," controlName,controlIcon,controlType is not define"));var g;this.id=(g=n==null?void 0:n.id)!==null&&g!==void 0?g:gu(10),this.name=o,this.icon=i;var O;this.type=(O=n==null?void 0:n.type)!==null&&O!==void 0?O:a,this.props=new it(n==null?void 0:n.props,(Ul(this,t)?this.constructor:void 0).controlName);var _;this.controlType=(_=n==null?void 0:n.controlType)!==null&&_!==void 0?_:"base",this.setting=ut(p);var C;this.fieldType=(C=n==null?void 0:n.fieldType)!==null&&C!==void 0?C:l,this.eventKeys=ut(s),this.customEvents=ut(f),this.slots=ut(y),this.slotPosition=ut(I),Promise.resolve().then(function(){r._callControlHooks("postInstance",n)})}return UC(t,[{key:"rules",get:function(){var r=this.props.constructor.Rules;return r?new r(this.props):{}}},{key:"_callControlHooks",value:function(){for(var r=arguments.length,u=new Array(r),o=0;o<r;o++)u[o]=arguments[o];var i,a=HC(u),l=a[0],s=a.slice(1);return(i=Ml).emit.apply(i,[l,this].concat(qo(s)))}},{key:"preUpdate",value:function(r,u){this._callControlHooks("preUpdateProps",r,u)}},{key:"postUpdate",value:function(r,u){this._callControlHooks("postUpdateProps",r,u)}},{key:"updateProps",value:function(r,u){this.preUpdate(r,u),fl(this.props,r,u),this.postUpdate(r,u)}},{key:"preValidate",value:function(){var r=this;return Vl(function(){var u,o,i;return Gl(this,function(a){switch(a.label){case 0:return u=Wl({},r.rules),[4,r._callControlHooks("preValidate",u)];case 1:return o=a.sent(),i=o[o.length-1],[2,i===!1?void 0:i]}})})()}},{key:"validate",value:function(r,u){var o=this;return Vl(function(){var i,a,l,s;return Gl(this,function(f){switch(f.label){case 0:return[4,o.preValidate()];case 1:i=f.sent(),a=i!==void 0?i:Wl({},o.rules),Array.isArray(u)&&u.forEach(function(c){a.hasOwnProperty(c)&&delete a[c]}),l=MC(a,r),f.label=2;case 2:return f.trys.push([2,4,,5]),[4,l.validate(o.props)];case 3:return f.sent(),[2,!0];case 4:throw s=f.sent(),s.control||(s.control=o),s;case 5:return[2]}})})()}},{key:"toDataBindModel",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,u=this.fieldType,o=this.id,i=this.type,a=this.props,l=a.dataBind,s=a.datasourceBind,f=a.optionConfig,c=a.caption,p=a.required,y=a.maxLength,I=a.options,g=a.encrypted,O=a.encryptedMode;if(!(!u&&!l&&!s)){var _={parentId:r,fieldType:u,controlId:o,caption:c,type:i,props:{}};switch(l&&(_.dataBind=l),f){case"datasource":case void 0:s&&(_.datasourceBind=s);break;case"custom":_.props.options=I;break}return p!==void 0&&(_.required=p),y!==void 0&&(_.maxLength=y),g!==void 0&&(_.encrypted=g),O!==void 0&&(_.encryptedMode=O),_}}},{key:"preToSchema",value:function(){this._callControlHooks("preToSchema",this)}},{key:"toSchema",value:function(){return this.preToSchema(),{id:this.id,type:this.type,props:ut(this.props),fieldType:this.fieldType,controlType:this.controlType}}}],[{key:"updateBasicControl",value:function(r,u){if(r==="setting"){if(u.add){var o;(o=this.setting).push.apply(o,qo(u.add))}u.remove&&this.removeSettingItem(u.remove),u.update}}}]),t}();X(Ee,"mode","Designer"),X(Ee,"slots",void 0),X(Ee,"slotPosition",void 0),X(Ee,"controlName","\u63A7\u4EF6"),X(Ee,"controlIcon","icon"),X(Ee,"controlType","control"),X(Ee,"controlFieldType",void 0),X(Ee,"controlEventKeys",[]),X(Ee,"controlCustomEvents",[]),X(Ee,"setting",[]),X(Ee,"__is_control__",!0),X(Ee,"removeSettingItem",ql),X(Ee,"updateSettingItem",Kl);function ql(e){var t=this,n=Array.isArray(e)?e:[e];n.forEach(function(r){var u,o=typeof r!="string",i=(u=t.setting)===null||u===void 0?void 0:u.findIndex(function(s){return s.key===(o?r.key:r)});if(i!==-1){var a,l;o?t.setting[i].showItems=(a=t.setting[i].showItems)===null||a===void 0?void 0:a.filter(function(s){return!r.hideItems.includes(s)}):t.setting.splice(i,1),o&&!(!((l=t.setting[i].showItems)===null||l===void 0)&&l.length)&&t.setting.splice(i,1)}})}function Kl(e,t){var n=this,r=typeof e=="string"?[e]:e;r.forEach(function(u){var o=n.setting.find(function(s){return s.key===u});if(o){if(typeof t=="boolean")o.visible=t;else if((typeof t=="undefined"?"undefined":GC(t))==="object"){var i,a=(i=t.type)!==null&&i!==void 0?i:"replace";if(a==="replace")o.showItems=t.showItems;else{var l;(l=o.showItems).push.apply(l,qo(t.showItems))}}}})}function qC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function KC(e,t,n){return t&&Xl(e.prototype,t),n&&Xl(e,n),e}function Te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XC(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var Wn=function(){function t(n){qC(this,t),Te(this,"id",void 0),Te(this,"type",void 0),Te(this,"controlType",void 0),Te(this,"props",void 0),Te(this,"fieldType",void 0),Te(this,"customEvents",[]),Te(this,"pageStatus",void 0),Te(this,"parent",null);var r=XC(this,t)?this.constructor:void 0,u=r.controlType,o=r.controlFieldType,i=r.name,a=r.controlCustomEvents;u||Hi("The ".concat(i," controlType is not define"));var l;this.id=(l=n==null?void 0:n.id)!==null&&l!==void 0?l:gu(10);var s;this.type=(s=n==null?void 0:n.type)!==null&&s!==void 0?s:u,this.props=new it(n==null?void 0:n.props),this.customEvents=a;var f;this.controlType=(f=n==null?void 0:n.controlType)!==null&&f!==void 0?f:"base";var c;this.fieldType=(c=n==null?void 0:n.fieldType)!==null&&c!==void 0?c:o;var p;this.pageStatus=(p=n==null?void 0:n.pageStatus)!==null&&p!==void 0?p:Lo.UNKNOWN}return KC(t,[{key:"rules",get:function(){var r=this.props.constructor.RuntimeRules;if(r){var u=new r(this.props);return Array.from(u)}return[]}}]),t}();Te(Wn,"mode","Runtime"),Te(Wn,"controlType","control"),Te(Wn,"controlFieldType",void 0),Te(Wn,"__is_control__",!0),Te(Wn,"controlCustomEvents",[]);function Jl(e){return(e==null?void 0:e.dataCode)!==void 0&&(e==null?void 0:e.fieldCode)!==void 0}function _e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ko(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qr(e){return qr=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},qr(e)}function Xo(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Jo(e,t)}function JC(e,t){return t&&(zC(t)==="object"||typeof t=="function")?t:_e(e)}function Jo(e,t){return Jo=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Jo(e,t)}function zC(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function QC(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function zo(e){var t=QC();return function(){var r=qr(e),u;if(t){var o=qr(this).constructor;u=Reflect.construct(r,arguments,o)}else u=r.apply(this,arguments);return JC(this,u)}}var ZC=function(e){Xo(n,e);var t=zo(n);function n(r){Ko(this,n);var u;u=t.call(this,r),ae(_e(u),"dataBind",{}),ae(_e(u),"caption",{type:"string",required:!0,message:$.getMessage("pleaseEnterCaption")}),ae(_e(u),"isHideCaption",{type:"boolean"}),ae(_e(u),"labelPosition",{type:"enum",enum:["top","left"]}),ae(_e(u),"defaultState",{type:"enum",enum:["default","readonly"]}),ae(_e(u),"required",{type:"boolean"}),ae(_e(u),"captionTip",{type:"string",required:!1,message:$.getMessage("pleaseEnterCaptionTip")});var o={fieldCode:{type:"string",required:!0,message:$.getMessage("pleaseEnterFieldCode")},dataCode:{type:"string",required:!0,message:$.getMessage("pleaseEnterFieldCode")}};if(Jl(r.dataBind))u.dataBind={type:"object",required:!0,fields:ut(o),message:$.getMessage("pleaseEnterFieldCode")};else{var i={type:"object",required:!0,fields:{},message:$.getMessage("pleaseEnterFieldCode")};Object.keys(r.dataBind).forEach(function(a){i.fields[a]={type:"object",required:!0,fields:ut(o),message:$.getMessage("pleaseEnterFieldCode")}}),u.dataBind=i}return r.isShowCaptionTip&&(u.captionTip.required=!0),u}return n}(Mo),YC=function(e){Xo(n,e);var t=zo(n);function n(r){Ko(this,n);var u;u=t.call(this,r);var o=r.isHide?!1:r.required;return o&&u.push({type:"string",required:o,message:r.requiredMessage!==""?r.requiredMessage:$.getMessage("runtimeRequired",{caption:r.caption})}),u}return n}(Nl),Qo=function(e){Xo(n,e);var t=zo(n);function n(r){Ko(this,n);var u;u=t.call(this,r),ae(_e(u),"caption",void 0),ae(_e(u),"isHideCaption",void 0),ae(_e(u),"isShowCaptionTip",void 0),ae(_e(u),"captionTip",void 0),ae(_e(u),"labelPosition",void 0),ae(_e(u),"dataBind",void 0),ae(_e(u),"defaultValue",void 0),ae(_e(u),"placeholder",void 0),ae(_e(u),"defaultState",void 0),ae(_e(u),"required",void 0),ae(_e(u),"requiredMessage",void 0);var o;u.caption=(o=r==null?void 0:r.caption)!==null&&o!==void 0?o:"";var i;u.isHideCaption=(i=r==null?void 0:r.isHideCaption)!==null&&i!==void 0?i:!1;var a;u.isShowCaptionTip=(a=r==null?void 0:r.isShowCaptionTip)!==null&&a!==void 0?a:!1;var l;u.captionTip=(l=r==null?void 0:r.captionTip)!==null&&l!==void 0?l:"";var s;u.defaultState=(s=r==null?void 0:r.defaultState)!==null&&s!==void 0?s:"default";var f;u.labelPosition=(f=r==null?void 0:r.labelPosition)!==null&&f!==void 0?f:"top";var c;u.placeholder=(c=r==null?void 0:r.placeholder)!==null&&c!==void 0?c:"";var p;u.required=(p=r==null?void 0:r.required)!==null&&p!==void 0?p:!1;var y;u.requiredMessage=(y=r==null?void 0:r.requiredMessage)!==null&&y!==void 0?y:"",u.dataBind=new Il(r==null?void 0:r.dataBind);var I;return u.defaultValue=(I=r==null?void 0:r.defaultValue)!==null&&I!==void 0?I:"",u}return n}(it);ae(Qo,"Rules",ZC),ae(Qo,"RuntimeRules",YC);function Zo(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xr(e){return Xr=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Xr(e)}function tS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Yo(e,t)}function nS(e,t){return t&&(rS(t)==="object"||typeof t=="function")?t:Zo(e)}function Yo(e,t){return Yo=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Yo(e,t)}function rS(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}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(e){return!1}}function oS(e){var t=uS();return function(){var r=Xr(e),u;if(t){var o=Xr(this).constructor;u=Reflect.construct(r,arguments,o)}else u=r.apply(this,arguments);return nS(this,u)}}var zl=function(e){tS(n,e);var t=oS(n);function n(r){eS(this,n);var u;return u=t.call(this,r),Kr(Zo(u),"controlType","form"),Kr(Zo(u),"props",void 0),u.props=new Qo(r==null?void 0:r.props),u}return n}(Ee);Kr(zl,"controlEventKeys",["on_change","on_focus","on_blur"]),Kr(zl,"controlCustomAttributes",void 0);function iS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jr(e){return Jr=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Jr(e)}function sS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ei(e,t)}function lS(e,t){return t&&(cS(t)==="object"||typeof t=="function")?t:iS(e)}function ei(e,t){return ei=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},ei(e,t)}function cS(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function fS(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function dS(e){var t=fS();return function(){var r=Jr(e),u;if(t){var o=Jr(this).constructor;u=Reflect.construct(r,arguments,o)}else u=r.apply(this,arguments);return lS(this,u)}}var pS=function(e){sS(n,e);var t=dS(n);function n(r){return aS(this,n),t.call(this,r)}return n}(it);function ti(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _S(e){if(Array.isArray(e))return ti(e)}function kt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ql(e,t,n,r,u,o,i){try{var a=e[o](i),l=a.value}catch(s){n(s);return}a.done?t(l):Promise.resolve(l).then(r,u)}function hS(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var o=e.apply(t,n);function i(l){Ql(o,r,u,i,a,"next",l)}function a(l){Ql(o,r,u,i,a,"throw",l)}i(void 0)})}}function mS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vS(e,t,n){return t&&Zl(e.prototype,t),n&&Zl(e,n),e}function St(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sn(e,t,n){return typeof Reflect!="undefined"&&Reflect.get?sn=Reflect.get:sn=function(u,o,i){var a=IS(u,o);if(!!a){var l=Object.getOwnPropertyDescriptor(a,o);return l.get?l.get.call(i||u):l.value}},sn(e,t,n||e)}function Ot(e){return Ot=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ot(e)}function gS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ni(e,t)}function ES(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function yS(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bS(){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 CS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable}))),r.forEach(function(u){St(e,u,n[u])})}return e}function SS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function OS(e,t){return t=t!=null?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):SS(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function AS(e,t){return t&&(FS(t)==="object"||typeof t=="function")?t:kt(e)}function ni(e,t){return ni=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},ni(e,t)}function IS(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=Ot(e),e!==null););return e}function Yl(e){return _S(e)||yS(e)||wS(e)||bS()}function FS(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function wS(e,t){if(!!e){if(typeof e=="string")return ti(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ti(e,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(e){return!1}}function NS(e){var t=DS();return function(){var r=Ot(e),u;if(t){var o=Ot(this).constructor;u=Reflect.construct(r,arguments,o)}else u=r.apply(this,arguments);return AS(this,u)}}function BS(e,t){var n,r,u,o,i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(s){return function(f){return l([s,f])}}function l(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(u=s[0]&2?r.return:s[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,s[1])).done)return u;switch(r=0,u&&(s=[s[0]&2,u.value]),s[0]){case 0:case 1:u=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]<u[3])){i.label=s[1];break}if(s[0]===6&&i.label<u[1]){i.label=u[1],u=s;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(s);break}u[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(f){s=[6,f],r=0}finally{n=u=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}var TS=1e4,ec=function(t){gS(r,t);var n=NS(r);function r(u){mS(this,r);var o;o=n.call(this,u),St(kt(o),"controlType","layout"),St(kt(o),"children",void 0),St(kt(o),"excludes",void 0),St(kt(o),"childrenMaxLength",void 0),St(kt(o),"props",void 0);var i=ES(this,r)?this.constructor:void 0,a=i.excludes,l=i.childrenMaxLength;return o.props=new pS(u==null?void 0:u.props),To(kt(o),"children",u==null?void 0:u.children,void 0,"Designer"),o.excludes=ut(a),o.childrenMaxLength=l,o}return vS(r,[{key:"judgeExcludesChildren",value:function(o){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(o)}},{key:"judgeJoinChildren",value:function(o){var i=this.judgeExcludesChildren(o);return i&&this.childrenMaxLength>this.children.length}},{key:"validate",value:function(o,i){var a=this,l=this,s=function(){return sn(Ot(r.prototype),"validate",a)};return hS(function(){return BS(this,function(f){switch(f.label){case 0:return[4,s().call(l,o,i)];case 1:return f.sent(),[4,Promise.all(l.children.map(function(c){return c.validate(o,i)}))];case 2:return f.sent(),[2,!0]}})})()}},{key:"toDataBindModel",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=sn(Ot(r.prototype),"toDataBindModel",this).call(this),a=i?[i]:[];return this.children.reduce(function(l,s){var f=s.toDataBindModel(o);if(Array.isArray(f)){var c=f.filter(function(p){return!!p});return Yl(l).concat(Yl(c))}return f&&l.push(f),l},a)}},{key:"toSchema",value:function(){var o=sn(Ot(r.prototype),"toSchema",this).call(this),i=this.children.map(function(a){var l=a.toSchema();return l});return OS(CS({},o),{children:i})}}]),r}(Ee);St(ec,"excludes",!1),St(ec,"childrenMaxLength",TS);function at(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ln(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zr(e){return zr=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},zr(e)}function LS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ri(e,t)}function PS(e,t){return t&&($S(t)==="object"||typeof t=="function")?t:at(e)}function ri(e,t){return ri=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},ri(e,t)}function $S(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function MS(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function xS(e){var t=MS();return function(){var r=zr(e),u;if(t){var o=zr(this).constructor;u=Reflect.construct(r,arguments,o)}else u=r.apply(this,arguments);return PS(this,u)}}var VS=function(e){LS(n,e);var t=xS(n);function n(r,u,o){RS(this,n);var i;i=t.call(this,u),ln(at(i),"headers",void 0),ln(at(i),"footers",void 0),ln(at(i),"pageIndex",void 0),ln(at(i),"pageSize",void 0),ln(at(i),"pageSizeOptions",void 0),ln(at(i),"totalCount",void 0),To(at(i),"headers",u==null?void 0:u.headers,r,o),To(at(i),"footers",u==null?void 0:u.footers,r);var a;i.pageIndex=(a=u==null?void 0:u.pageIndex)!==null&&a!==void 0?a:1;var l;i.pageSize=(l=u==null?void 0:u.pageSize)!==null&&l!==void 0?l:20;var s;i.pageSizeOptions=(s=u==null?void 0:u.pageSizeOptions)!==null&&s!==void 0?s:[20];var f;return i.totalCount=(f=u==null?void 0:u.totalCount)!==null&&f!==void 0?f:0,i}return n}(it);function ui(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kS(e){if(Array.isArray(e))return ui(e)}function Qr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tc(e,t,n,r,u,o,i){try{var a=e[o](i),l=a.value}catch(s){n(s);return}a.done?t(l):Promise.resolve(l).then(r,u)}function US(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var o=e.apply(t,n);function i(l){tc(o,r,u,i,a,"next",l)}function a(l){tc(o,r,u,i,a,"throw",l)}i(void 0)})}}function jS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function WS(e,t,n){return t&&nc(e.prototype,t),n&&nc(e,n),e}function Zr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cn(e,t,n){return typeof Reflect!="undefined"&&Reflect.get?cn=Reflect.get:cn=function(u,o,i){var a=JS(u,o);if(!!a){var l=Object.getOwnPropertyDescriptor(a,o);return l.get?l.get.call(i||u):l.value}},cn(e,t,n||e)}function At(e){return At=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},At(e)}function HS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&oi(e,t)}function GS(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qS(){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 rc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable}))),r.forEach(function(u){Zr(e,u,n[u])})}return e}function KS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function uc(e,t){return t=t!=null?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):KS(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function XS(e,t){return t&&(zS(t)==="object"||typeof t=="function")?t:Qr(e)}function oi(e,t){return oi=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},oi(e,t)}function JS(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=At(e),e!==null););return e}function oc(e){return kS(e)||GS(e)||QS(e)||qS()}function zS(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function QS(e,t){if(!!e){if(typeof e=="string")return ui(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ui(e,t)}}function ZS(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function YS(e){var t=ZS();return function(){var r=At(e),u;if(t){var o=At(this).constructor;u=Reflect.construct(r,arguments,o)}else u=r.apply(this,arguments);return XS(this,u)}}function eO(e,t){var n,r,u,o,i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(s){return function(f){return l([s,f])}}function l(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(u=s[0]&2?r.return:s[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,s[1])).done)return u;switch(r=0,u&&(s=[s[0]&2,u.value]),s[0]){case 0:case 1:u=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]<u[3])){i.label=s[1];break}if(s[0]===6&&i.label<u[1]){i.label=u[1],u=s;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(s);break}u[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(f){s=[6,f],r=0}finally{n=u=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}var tO=function(e){HS(n,e);var t=YS(n);function n(r){jS(this,n);var u;return u=t.call(this,r),Zr(Qr(u),"controlType","list"),Zr(Qr(u),"props",void 0),u.props=new VS(Qr(u),r==null?void 0:r.props,"Designer"),u}return WS(n,[{key:"validate",value:function(u,o){var i=this,a=this,l=function(){return cn(At(n.prototype),"validate",i)};return US(function(){return eO(this,function(s){switch(s.label){case 0:return[4,l().call(a,u)];case 1:return s.sent(),[4,Promise.all(a.props.headers.map(function(f){return f.validate(u,o)}))];case 2:return s.sent(),[2,!0]}})})()}},{key:"toDataBindModel",value:function(){var u=cn(At(n.prototype),"toDataBindModel",this).call(this),o=u?[u]:[],i=this.id;return this.props.headers.reduce(function(a,l){var s=l.toDataBindModel(i);if(Array.isArray(s)){var f=s.filter(function(c){return!!c});return oc(a).concat(oc(f))}return s&&a.push(s),a},o)}},{key:"toSchema",value:function(){var u=cn(At(n.prototype),"toSchema",this).call(this),o=this.props.headers.map(function(i){return i.toSchema()});return uc(rc({},u),{props:uc(rc({},this.props),{headers:o})})}}]),n}(Ee);Zr(tO,"controlFieldType",He.LIST);function we(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ic(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function De(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yr(e){return Yr=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Yr(e)}function ac(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ii(e,t)}function nO(e,t){return t&&(rO(t)==="object"||typeof t=="function")?t:we(e)}function ii(e,t){return ii=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},ii(e,t)}function rO(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function uO(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function sc(e){var t=uO();return function(){var r=Yr(e),u;if(t){var o=Yr(this).constructor;u=Reflect.construct(r,arguments,o)}else u=r.apply(this,arguments);return nO(this,u)}}var oO=function(e){ac(n,e);var t=sc(n);function n(r){ic(this,n);var u;return u=t.call(this,r),De(we(u),"caption",{type:"string",required:!0,message:$.getMessage("pleaseEnterCaption")}),De(we(u),"width",{type:"number",required:!1,message:$.getMessage("pleaseEnterColumnWidth")}),u.width.required=r.widthType==="px",u}return n}(Mo),iO=function(e){ac(n,e);var t=sc(n);function n(r){ic(this,n);var u;u=t.call(this,r),De(we(u),"widthType",void 0),De(we(u),"width",void 0),De(we(u),"caption",void 0),De(we(u),"dataBind",void 0),De(we(u),"autoWidth",void 0),De(we(u),"fixed",void 0),De(we(u),"sort",void 0),De(we(u),"align",void 0),De(we(u),"colSpan",void 0),De(we(u),"autoHeight",void 0),De(we(u),"children",void 0);var o;u.width=(o=r==null?void 0:r.width)!==null&&o!==void 0?o:150,u.widthType=(r==null?void 0:r.widthType)||"auto";var i;u.caption=(i=r==null?void 0:r.caption)!==null&&i!==void 0?i:"";var a;u.fixed=(a=r==null?void 0:r.fixed)!==null&&a!==void 0?a:"none",u.autoWidth=new eC(r==null?void 0:r.autoWidth),u.dataBind=new Il(r==null?void 0:r.dataBind);var l;u.sort=(l=r==null?void 0:r.sort)!==null&&l!==void 0?l:!0,u.align=r==null?void 0:r.align,u.colSpan=r==null?void 0:r.colSpan;var s;return u.autoHeight=(s=r==null?void 0:r.autoHeight)!==null&&s!==void 0?s:!1,u}return n}(it);De(iO,"Rules",oO);function ai(e){return"children"in e&&$n(e.children)}function lc(e){return"headers"in e.props&&$n(e.props.headers)}function eu(e,t){Array.isArray(e)&&e.map(n=>{n.type===L.SUBTABLE?eu(n.props.headers,t):ai(n)?eu(n==null?void 0:n.children,t):n.controlType===ve.FORM&&t(n)})}const aO=[L.AMOUNT,L.CALC,L.DATE_RANGE];$.getMessage("amount"),He.DECIMAL,$.getMessage("currency"),He.VARCHAR,$.getMessage("result"),He.DECIMAL,$.getMessage("unit"),He.VARCHAR,$.getMessage("startTime"),He.TIMESTAMP,$.getMessage("endTime"),He.TIMESTAMP;function sO(e){let t=[];return eu(e,n=>{n.controlType===ve.FORM?t.push(n):(n.type,L.SUBTABLE)}),t}function lO(e,t=""){return!e||!Array.isArray(e)?[]:e.map(n=>{if(!n.dataBind||n.type===L.TITLE)return n;if(aO.includes(n.type)){const r=n.dataBind;Object.keys(r).forEach(u=>{const o=r[u],i=n.controlId+"_"+u;o.fieldCode=cc(i),o.dataCode=t})}else n.dataBind.fieldCode=cc(n.controlId),n.dataBind.dataCode=t;return n})}function cc(e){const t="field_";return e.startsWith(t)?e:t+e}function si(e){return Array.isArray(e)?e.map(t=>t.toSchema()):e.toSchema()}function li(e){return Array.isArray(e)?e.map(t=>t.toDataBindModel()).filter(t=>!!t).flat():e.toDataBindModel()}function ci(e,t,n){return Gt(this,null,function*(){return Array.isArray(e)?(yield Promise.all(e.map(u=>u.validate(t,n)))).every(u=>u):yield e.validate(t,n)})}const cO=[L.TITLE,L.GRID_TABLE_COLUMN,L.SUBTABLE_COLUMN,L.OPERATION_COLUMN,L.DATA_VIEW,L.LIST_VIEW,L.HEADER,L.FOOTER,L.SIMPLE_SEARCH,L.ROW,L.GRID_ROW,L.COL,L.GRID,L.DIVIDER,L.TAB_PANE,L.TAB,L.CARD_GROUP,L.ACTION_BAR,L.GRID_LAYOUT_CONTAINER,L.GRID_LAYOUT_WRAP],fO=[L.CALC],dO={check:{id:"listPageCheckBtnId",caption:$.getMessage("view")},edit:{id:"listPageEditBtnId",caption:$.getMessage("edit")},delete:{id:"listPageDeleteBtnId",caption:$.getMessage("delete")}};function Hn(e,t){var r,u,o,i,a,l,s,f,c;const n=[];if($n(e))n.push(...e.map(p=>Hn(p,t)).flat());else{const p=e.type,{caption:y,content:I}=e.props;let g;if(cO.includes(p))p===L.OPERATION_COLUMN&&Object.entries(dO).reduce((O,[_,{caption:C,id:m}])=>{var A;const v=e.props[_];return v&&v.isShow&&O.push({controlId:m,caption:C,type:e.type,controlType:e.controlType,parentId:(A=t==null?void 0:t.controlId)!=null?A:null,canEdit:!1,canRead:!1,canHide:!0,group:"element"}),O},n);else if(g={controlId:e.id,caption:y||I||e.name,type:e.type,controlType:e.controlType,parentId:(r=t==null?void 0:t.controlId)!=null?r:null,canEdit:!fO.includes(p),canRead:!0,canHide:!0,group:"element"},t&&t.type===L.SUBTABLE&&(g.caption=t.caption+"_"+g.caption),p===L.VUE_FORM_ITEM&&(g.caption=e.props.controlExportName||e.name),(e.controlType===ve.FORM||e.controlType===ve.COLUMN)&&((o=(u=e.props)==null?void 0:u.dataBind)==null?void 0:o.fieldCode)!==void 0&&((a=(i=e.props)==null?void 0:i.dataBind)==null?void 0:a.fieldCode)!==""&&(g.group="field"),n.push(g),p===L.VUE_FORM_ITEM){let O="element";((s=(l=e.props)==null?void 0:l.dataBind)==null?void 0:s.fieldCode)!==void 0&&((c=(f=e.props)==null?void 0:f.dataBind)==null?void 0:c.fieldCode)!==""&&(O="field");const _=e.props.permissions;_==null||_.map(C=>{var m;g={controlId:C.key,caption:C.caption,type:e.type,controlType:e.controlType,parentId:(m=e.id)!=null?m:null,canEdit:!0,canRead:!0,canHide:!0,group:O},n.push(g)})}e.children&&n.push(...e.children.map(O=>Hn(O,t)).flat()),e.controlType===ve.LIST&&n.push(...e.props.headers.map(O=>Hn(O,g)).flat())}return n}class fn extends xn{constructor(){super("Designer"),this.toolbox=[],this.services={},this.eventLogic=new Mn,this.fieldTypes=He,this.controlSettingMap=new Map,new.target.staticControls.forEach(t=>{const{Designer:n,Setting:r}=t;this.controlSettingMap.set(n.controlType,r)})}registerControl(t){this.constructor.register(t,"Designer");const{Designer:n,Setting:r}=t;this.register(n),this.registeredControlTypes.add(n.controlType),this.controlSettingMap.set(n.controlType,r)}getControlSetting(t){const n=this.controlSettingMap.get(t);return n||null}setInstance(t,n,r){try{if(!t)return;t.updateProps(n,r)}catch(u){throw u}}eachControls(t){this.getControls().forEach(t)}getInitControl(){return[this.createControlInstance("grid")]}checkSchema(...t){return Gt(this,null,function*(){return ci(...t)})}getModelBindInfoList(...t){return li(...t)}getSchema(...t){return si(...t)}listenControlHook(...t){return Ml.on(...t)}}fn.EventLogic=Mn;class pO{constructor(){this.designer=new fn}ListPageBuilder(){const t=this.designer.createControlInstance(L.LIST_VIEW),n=this.designer.createControlInstance(L.SIMPLE_SEARCH),r=this.designer.createControlInstance(L.GRID_TABLE),u=this.designer.createControlInstance(L.CREATE_FORM_LIST_BUTTON),o=this.designer.createControlInstance(L.IMPORT_RECORD_LIST_BUTTON),i=this.designer.createControlInstance(L.EXPORT_LIST_BUTTON),a=this.designer.createControlInstance(L.EXPORT_RECORD_LIST_BUTTON);return r.children.push(u),r.children.push(o),r.children.push(i),r.children.push(a),t.children.push(n),t.children.push(r),t}ProListPageBuilder(){const t=this.designer.createControlInstance(L.LIST_VIEW);t.props.countType="async";const n=this.designer.createControlInstance(L.SIMPLE_SEARCH),r=this.designer.createControlInstance(L.GRID_TABLE),u=this.designer.createControlInstance(L.EXPORT_LIST_BUTTON),o=this.designer.createControlInstance(L.EXPORT_RECORD_LIST_BUTTON);return r.children.push(u),r.children.push(o),t.children.push(n),t.children.push(r),t.props.rowStyle={type:"rules",interval:{color:""},rules:[{id:"default",name:$.getMessage("approvedDocuments"),color:"theme",filters:[{ruleId:1,symbol:"op_equal",leftVariableBo:{type:"varchar",value:"process_status",name:$.getMessage("processStatus")},checked:!1,describe:"ruleLine",type:"condition",rightVariableBo:{type:"custom",value:["COMPLETE"],displayBos:[]},isLowPerformance:!1,isMoreRelation:!1}],settings:[{color:"theme",field_codes:["process_status"],type:"fontColor",scope:"col"}],script:"(SpecialMatch(data,sys,'process_status','varchar','op_equal','COMPLETE'))"}]},t}FormPageBuilder(){const t=this.designer.createControlInstance(L.DATA_VIEW),n=this.designer.createControlInstance(L.TITLE),r=this.designer.createControlInstance(L.GRID);return t.children.push(n),t.children.push(r),t}VuePageBuilder(){const t=this.designer.createControlInstance(L.GRID),n=this.designer.createControlInstance(L.VUE_PAGE);return n.props.isHideCaption=!0,n.props.controlExportName="VuePage",t.children.push(n),t}}class fc{constructor(t){var n;this.selected=null,this.selectedInstanceDataScopeParent=null,this.selectedDataScopeFlatInstances=[],this.selectedInstanceSetting=[],this.selectedInstanceSettingItems=[],this.selectedFieldItem=null,this.external={},this.movingInstance=null,this.movingInstanceOldParent=null,this.movingInstanceOldDataScopeParent=null,this.getParentBeforeInstanceMove=(n=t.getParentBeforeInstanceMove)!=null?n:r=>r.parent,this.instance=t.instance,this.getFlatInstances()}get selectedRules(){return this.selected?this.selected.rules:null}get selectedAntdRules(){const t=this.selectedRules;return t||null}setInstances(t){this.instance=t,this.getFlatInstances()}setSelectInstance(t){this.selected=t,this.selectedInstanceDataScopeParent=t?qn(t):null,this.selectedDataScopeFlatInstances=this.selectedInstanceDataScopeParent?_c(this.selectedInstanceDataScopeParent):[]}setSelectInstanceSettings(t){this.selectedInstanceSetting=t,this.selectedInstanceSettingItems=[],this.selectedInstanceSetting.forEach(n=>{this.selectedInstanceSettingItems.push(...this.getSettingItems(n))})}getSettingItems(t){return t.type==="group"?t.items:t.items.reduce((n,r)=>(n.push(...r.items),n),[])}setSelectedFieldItem(t){this.selectedFieldItem=t}setMovingInstance(t){this.movingInstance=t,this.movingInstanceOldParent=t?this.getParentBeforeInstanceMove(t):null,this.movingInstanceOldDataScopeParent=qn(t)}updateDataFieldCodeMap(t){const n=qn(t);if(!n)return;const r=this.dataFieldCodeMap.get(n.props.datasourceBind.dataCode);if(!!r){for(const[u,o]of r.entries())if(o.id===t.id){r.delete(u);break}pc(t,this.dataFieldCodeMap)}}getFlatInstances(){const t=[],n=new Map,r=new Map;Gn(this.instance,u=>{t.push(u),n.set(u.id,u),pc(u,r)}),this.flatInstances=t,this.instanceIdMap=n,this.dataFieldCodeMap=r}}function dc(e,t,n){const{dataCode:r,fieldCode:u}=t;r&&u&&(e.has(r)||e.set(r,new Map),e.get(r).set(u,n))}function pc(e,t){if(e.controlType===ve.FORM){const n=e.props.dataBind;Jl(n)?dc(t,n,e):Object.values(n).forEach(r=>{dc(t,r,e)})}}function Gn(e,t){(Array.isArray(e)?e:[e]).forEach(r=>{t(r),ai(r)&&Gn(r.children,t),lc(r)&&Gn(r.props.headers,t)})}function fi(e){return[L.SUBTABLE,L.DATA_VIEW,L.LIST_VIEW].includes(e.type)}function qn(e){let t=e?e.parent:null;if(!t)return null;for(;t&&!fi(t);)t=t.parent;return t}function _c(e){const t=[e];return Gn(e,n=>{n!==e&&t.includes(n.parent)&&!fi(n)&&t.push(n)}),t}function _O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hO(e,t,n){return t&&hc(e.prototype,t),n&&hc(e,n),e}function di(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var st=function(){function e(t){_O(this,e),di(this,"visible",void 0),di(this,"expression",void 0),di(this,"updateParent",void 0);var n;this.visible=(n=t==null?void 0:t.visible)!==null&&n!==void 0?n:!0;var r;this.expression=(r=t==null?void 0:t.expression)!==null&&r!==void 0?r:!1;var u;this.updateParent=(u=t==null?void 0:t.updateParent)!==null&&u!==void 0?u:!1}return hO(e,[{key:"isAtomicComponent",get:function(){return!0}}]),e}();function mO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vO(e,t,n){return t&&mc(e.prototype,t),n&&mc(e,n),e}function ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gO=function(){function e(t){mO(this,e),ze(this,"type",void 0),ze(this,"label",void 0),ze(this,"key",void 0),ze(this,"component",void 0),ze(this,"effect",void 0),ze(this,"scopeEffect",void 0),ze(this,"defaultValue",void 0),ze(this,"validator",void 0),ze(this,"props",void 0),ze(this,"effectKeys",void 0),this.type=t.type,this.label=t.label,this.key=t.key,this.component=t.component;var n;this.effect=(n=t.effect)!==null&&n!==void 0?n:{};var r;this.scopeEffect=(r=t.scopeEffect)!==null&&r!==void 0?r:sE,this.defaultValue=t.defaultValue,this.validator=t.validator;var u;this.props=(u=t.props)!==null&&u!==void 0?u:new st,this.effectKeys=Object.keys(this.effect)}return vO(e,[{key:"filterEffects",value:function(n){var r=this;return n===""?Object.values(this.effect):this.effectKeys.filter(function(u){var o=new RegExp("^".concat(u,"(\\.\\w+)*$"));return o.test(n)}).map(function(u){return r.effect[u]})}},{key:"callEffectFn",value:function(n,r){try{var u=n.apply(null,r);Io(u)&&Object.assign(this.props,u)}catch(o){bn(`effect error
45
+ */const j5="9.14.0";function W5(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Ye().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Ye().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Ye().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ye().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ye().__INTLIFY_PROD_DEVTOOLS__=!1)}const Us=be.__EXTEND_POINT__,rt=hr(Us),te={FALLBACK_TO_ROOT:Us,NOT_SUPPORTED_PRESERVE:rt(),NOT_SUPPORTED_FORMATTER:rt(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:rt(),NOT_SUPPORTED_GET_CHOICE_INDEX:rt(),COMPONENT_NAME_LEGACY_COMPATIBLE:rt(),NOT_FOUND_PARENT_SCOPE:rt(),IGNORE_OBJ_FLATTEN:rt(),NOTICE_DROP_ALLOW_COMPOSITION:rt(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:rt()},H5={[te.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[te.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[te.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[te.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[te.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[te.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[te.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[te.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[te.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see \u{1F449} https://tinyurl.com/2p97mcze",[te.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function Ie(e,...t){return Cn(H5[e],...t)}const js=he.__EXTEND_POINT__,Fe=hr(js),W={UNEXPECTED_RETURN_TYPE:js,INVALID_ARGUMENT:Fe(),MUST_BE_CALL_SETUP_TOP:Fe(),NOT_INSTALLED:Fe(),NOT_AVAILABLE_IN_LEGACY_MODE:Fe(),REQUIRED_VALUE:Fe(),INVALID_VALUE:Fe(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Fe(),NOT_INSTALLED_WITH_PROVIDE:Fe(),UNEXPECTED_ERROR:Fe(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Fe(),BRIDGE_SUPPORT_VUE_2_ONLY:Fe(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Fe(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Fe(),__EXTEND_POINT__:Fe()};function de(e,...t){return qt(e,null,process.env.NODE_ENV!=="production"?{messages:G5,args:t}:void 0)}const G5={[W.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[W.INVALID_ARGUMENT]:"Invalid argument",[W.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[W.NOT_INSTALLED]:"Need to install with `app.use` function",[W.UNEXPECTED_ERROR]:"Unexpected error",[W.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[W.REQUIRED_VALUE]:"Required in value: {0}",[W.INVALID_VALUE]:"Invalid value",[W.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[W.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[W.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[W.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[W.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define \u2018i18n\u2019 option or custom block in Composition API with using local scope in Legacy API mode",[W.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},po=xe("__translateVNode"),_o=xe("__datetimeParts"),ho=xe("__numberParts"),Vt=xe("__enableEmitter"),Rn=xe("__disableEmitter"),Ws=xe("__setPluralRules");xe("__intlifyMeta");const Hs=xe("__injectWithOption"),mo=xe("__dispose");function Ln(e){if(!H(e))return e;for(const t in e)if(!!_r(e,t))if(!t.includes("."))H(e[t])&&Ln(e[t]);else{const n=t.split("."),r=n.length-1;let u=e,o=!1;for(let i=0;i<r;i++){if(n[i]in u||(u[n[i]]={}),!H(u[n[i]])){process.env.NODE_ENV!=="production"&&fe(Ie(te.IGNORE_OBJ_FLATTEN,{key:n[i]})),o=!0;break}u=u[n[i]]}o||(u[n[r]]=e[t],delete e[t]),H(u[n[r]])&&Ln(u[n[r]])}return e}function jr(e,t){const{messages:n,__i18n:r,messageResolver:u,flatJson:o}=t,i=M(n)?n:Z(r)?{}:{[e]:{}};if(Z(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:s}=a;l?(i[l]=i[l]||{},vr(s,i[l])):vr(s,i)}else T(a)&&vr(JSON.parse(a),i)}),u==null&&o)for(const a in i)_r(i,a)&&Ln(i[a]);return i}function Gs(e){return e.type}function qs(e,t,n){let r=H(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=jr(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const u=Object.keys(r);u.length&&u.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(H(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(H(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function Ks(e){return rn(Bs,null,e,0)}const Xs="__INTLIFY_META__",Js=()=>[],q5=()=>!1;let zs=0;function Qs(e){return(t,n,r,u)=>e(n,r,un()||void 0,u)}const K5=()=>{const e=un();let t=null;return e&&(t=Gs(e)[Xs])?{[Xs]:t}:null};function vo(e={},t){const{__root:n,__injectWithOption:r}=e,u=n===void 0,o=e.flatJson,i=Me?Yt:ds,a=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&a&&Qi(Ie(te.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let l=x(e.inheritLocale)?e.inheritLocale:!0;const s=i(n&&l?n.locale.value:T(e.locale)?e.locale:Jt),f=i(n&&l?n.fallbackLocale.value:T(e.fallbackLocale)||Z(e.fallbackLocale)||M(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),c=i(jr(s.value,e)),p=i(M(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),y=i(M(e.numberFormats)?e.numberFormats:{[s.value]:{}});let I=n?n.missingWarn:x(e.missingWarn)||lt(e.missingWarn)?e.missingWarn:!0,g=n?n.fallbackWarn:x(e.fallbackWarn)||lt(e.fallbackWarn)?e.fallbackWarn:!0,O=n?n.fallbackRoot:x(e.fallbackRoot)?e.fallbackRoot:!0,_=!!e.fallbackFormat,C=z(e.missing)?e.missing:null,m=z(e.missing)?Qs(e.missing):null,v=z(e.postTranslation)?e.postTranslation:null,A=n?n.warnHtmlMessage:x(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter;const E=n?n.modifiers:M(e.modifiers)?e.modifiers:{};let w=e.pluralRules||n&&n.pluralRules,N;N=(()=>{u&&ma(null);const b={version:j5,locale:s.value,fallbackLocale:f.value,messages:c.value,modifiers:E,pluralRules:w,missing:m===null?void 0:m,missingWarn:I,fallbackWarn:g,fallbackFormat:_,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:A,escapeParameter:S,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};b.datetimeFormats=p.value,b.numberFormats=y.value,b.__datetimeFormatters=M(N)?N.__datetimeFormatters:void 0,b.__numberFormatters=M(N)?N.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(b.__v_emitter=M(N)?N.__v_emitter:void 0);const D=My(b);return u&&ma(D),D})(),On(N,s.value,f.value);function Oe(){return[s.value,f.value,c.value,p.value,y.value]}const V=Xe({get:()=>s.value,set:b=>{s.value=b,N.locale=s.value}}),se=Xe({get:()=>f.value,set:b=>{f.value=b,N.fallbackLocale=f.value,On(N,s.value,b)}}),Pe=Xe(()=>c.value),Jn=Xe(()=>p.value),Qe=Xe(()=>y.value);function zn(){return z(v)?v:null}function Qn(b){v=b,N.postTranslation=b}function Zn(){return C}function Yn(b){b!==null&&(m=Qs(b)),C=b,N.missing=m}function er(b,D){return b!=="translate"||!D.resolvedMessage}const $e=(b,D,K,re,It,pu)=>{Oe();let mn;try{(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&_a(K5()),u||(N.fallbackContext=n?$y():void 0),mn=b(N)}finally{(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&_a(null),u||(N.fallbackContext=void 0)}if(K!=="translate exists"&&le(mn)&&mn===yr||K==="translate exists"&&!mn){const[Ht,$6]=D();if(process.env.NODE_ENV!=="production"&&n&&T(Ht)&&er(K,$6)&&(O&&(Cr(g,Ht)||ga(I,Ht))&&fe(Ie(te.FALLBACK_TO_ROOT,{key:Ht,type:K})),process.env.NODE_ENV!=="production")){const{__v_emitter:Sc}=N;Sc&&O&&Sc.emit("fallback",{type:K,key:Ht,to:"global",groupId:`${K}:${Ht}`})}return n&&O?re(n):It(Ht)}else{if(pu(mn))return mn;throw de(W.UNEXPECTED_RETURN_TYPE)}};function pn(...b){return $e(D=>Reflect.apply(Ia,null,[D,...b]),()=>Bu(...b),"translate",D=>Reflect.apply(D.t,D,[...b]),D=>D,D=>T(D))}function _n(...b){const[D,K,re]=b;if(re&&!H(re))throw de(W.INVALID_ARGUMENT);return pn(D,K,ce({resolvedMessage:!0},re||{}))}function tr(...b){return $e(D=>Reflect.apply(Ba,null,[D,...b]),()=>Tu(...b),"datetime format",D=>Reflect.apply(D.d,D,[...b]),()=>br,D=>T(D))}function nr(...b){return $e(D=>Reflect.apply(La,null,[D,...b]),()=>Ru(...b),"number format",D=>Reflect.apply(D.n,D,[...b]),()=>br,D=>T(D))}function rr(b){return b.map(D=>T(D)||le(D)||x(D)?Ks(String(D)):D)}const ur={normalize:rr,interpolate:b=>b,type:"vnode"};function hn(...b){return $e(D=>{let K;const re=D;try{re.processor=ur,K=Reflect.apply(Ia,null,[re,...b])}finally{re.processor=null}return K},()=>Bu(...b),"translate",D=>D[po](...b),D=>[Ks(D)],D=>Z(D))}function or(...b){return $e(D=>Reflect.apply(La,null,[D,...b]),()=>Ru(...b),"number format",D=>D[ho](...b),Js,D=>T(D)||Z(D))}function ir(...b){return $e(D=>Reflect.apply(Ba,null,[D,...b]),()=>Tu(...b),"datetime format",D=>D[_o](...b),Js,D=>T(D)||Z(D))}function ar(b){w=b,N.pluralRules=w}function B(b,D){return $e(()=>{if(!b)return!1;const K=T(D)?D:s.value,re=Wt(K),It=N.messageResolver(re,b);return a?It!=null:dt(It)||Re(It)||T(It)},()=>[b],"translate exists",K=>Reflect.apply(K.te,K,[b,D]),q5,K=>x(K))}function q(b){let D=null;const K=ia(N,f.value,s.value);for(let re=0;re<K.length;re++){const It=c.value[K[re]]||{},pu=N.messageResolver(It,b);if(pu!=null){D=pu;break}}return D}function sr(b){const D=q(b);return D!=null?D:n?n.tm(b)||{}:{}}function Wt(b){return c.value[b]||{}}function lr(b,D){if(o){const K={[b]:D};for(const re in K)_r(K,re)&&Ln(K[re]);D=K[b]}c.value[b]=D,N.messages=c.value}function Di(b,D){c.value[b]=c.value[b]||{};const K={[b]:D};if(o)for(const re in K)_r(K,re)&&Ln(K[re]);D=K[b],vr(D,c.value[b]),N.messages=c.value}function d(b){return p.value[b]||{}}function h(b,D){p.value[b]=D,N.datetimeFormats=p.value,Ra(N,b,D)}function F(b,D){p.value[b]=ce(p.value[b]||{},D),N.datetimeFormats=p.value,Ra(N,b,D)}function R(b){return y.value[b]||{}}function ne(b,D){y.value[b]=D,N.numberFormats=y.value,$a(N,b,D)}function Q(b,D){y.value[b]=ce(y.value[b]||{},D),N.numberFormats=y.value,$a(N,b,D)}zs++,n&&Me&&(ao(n.locale,b=>{l&&(s.value=b,N.locale=b,On(N,s.value,f.value))}),ao(n.fallbackLocale,b=>{l&&(f.value=b,N.fallbackLocale=b,On(N,s.value,f.value))}));const J={id:zs,locale:V,fallbackLocale:se,get inheritLocale(){return l},set inheritLocale(b){l=b,b&&n&&(s.value=n.locale.value,f.value=n.fallbackLocale.value,On(N,s.value,f.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:Pe,get modifiers(){return E},get pluralRules(){return w||{}},get isGlobal(){return u},get missingWarn(){return I},set missingWarn(b){I=b,N.missingWarn=I},get fallbackWarn(){return g},set fallbackWarn(b){g=b,N.fallbackWarn=g},get fallbackRoot(){return O},set fallbackRoot(b){O=b},get fallbackFormat(){return _},set fallbackFormat(b){_=b,N.fallbackFormat=_},get warnHtmlMessage(){return A},set warnHtmlMessage(b){A=b,N.warnHtmlMessage=b},get escapeParameter(){return S},set escapeParameter(b){S=b,N.escapeParameter=b},t:pn,getLocaleMessage:Wt,setLocaleMessage:lr,mergeLocaleMessage:Di,getPostTranslationHandler:zn,setPostTranslationHandler:Qn,getMissingHandler:Zn,setMissingHandler:Yn,[Ws]:ar};return J.datetimeFormats=Jn,J.numberFormats=Qe,J.rt=_n,J.te=B,J.tm=sr,J.d=tr,J.n=nr,J.getDateTimeFormat=d,J.setDateTimeFormat=h,J.mergeDateTimeFormat=F,J.getNumberFormat=R,J.setNumberFormat=ne,J.mergeNumberFormat=Q,J[Hs]=r,J[po]=hn,J[_o]=ir,J[ho]=or,process.env.NODE_ENV!=="production"&&(J[Vt]=b=>{N.__v_emitter=b},J[Rn]=()=>{N.__v_emitter=void 0}),J}function X5(e){const t=T(e.locale)?e.locale:Jt,n=T(e.fallbackLocale)||Z(e.fallbackLocale)||M(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=z(e.missing)?e.missing:void 0,u=x(e.silentTranslationWarn)||lt(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=x(e.silentFallbackWarn)||lt(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=x(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=M(e.modifiers)?e.modifiers:{},s=e.pluralizationRules,f=z(e.postTranslation)?e.postTranslation:void 0,c=T(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,p=!!e.escapeParameterHtml,y=x(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&fe(Ie(te.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&fe(Ie(te.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let I=e.messages;if(M(e.sharedMessages)){const S=e.sharedMessages;I=Object.keys(S).reduce((w,N)=>{const G=w[N]||(w[N]={});return ce(G,S[N]),w},I||{})}const{__i18n:g,__root:O,__injectWithOption:_}=e,C=e.datetimeFormats,m=e.numberFormats,v=e.flatJson,A=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:I,flatJson:v,datetimeFormats:C,numberFormats:m,missing:r,missingWarn:u,fallbackWarn:o,fallbackRoot:i,fallbackFormat:a,modifiers:l,pluralRules:s,postTranslation:f,warnHtmlMessage:c,escapeParameter:p,messageResolver:e.messageResolver,inheritLocale:y,translateExistCompatible:A,__i18n:g,__root:O,__injectWithOption:_}}function go(e={},t){{const n=vo(X5(e)),{__extender:r}=e,u={id:n.id,get locale(){return n.locale.value},set locale(o){n.locale.value=o},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(o){n.fallbackLocale.value=o},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&fe(Ie(te.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(o){process.env.NODE_ENV!=="production"&&fe(Ie(te.NOT_SUPPORTED_FORMATTER))},get missing(){return n.getMissingHandler()},set missing(o){n.setMissingHandler(o)},get silentTranslationWarn(){return x(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(o){n.missingWarn=x(o)?!o:o},get silentFallbackWarn(){return x(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(o){n.fallbackWarn=x(o)?!o:o},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(o){n.fallbackFormat=o},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(o){n.setPostTranslationHandler(o)},get sync(){return n.inheritLocale},set sync(o){n.inheritLocale=o},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(o){n.warnHtmlMessage=o!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(o){n.escapeParameter=o},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&fe(Ie(te.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(o){process.env.NODE_ENV!=="production"&&fe(Ie(te.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...o){const[i,a,l]=o,s={};let f=null,c=null;if(!T(i))throw de(W.INVALID_ARGUMENT);const p=i;return T(a)?s.locale=a:Z(a)?f=a:M(a)&&(c=a),Z(l)?f=l:M(l)&&(c=l),Reflect.apply(n.t,n,[p,f||c||{},s])},rt(...o){return Reflect.apply(n.rt,n,[...o])},tc(...o){const[i,a,l]=o,s={plural:1};let f=null,c=null;if(!T(i))throw de(W.INVALID_ARGUMENT);const p=i;return T(a)?s.locale=a:le(a)?s.plural=a:Z(a)?f=a:M(a)&&(c=a),T(l)?s.locale=l:Z(l)?f=l:M(l)&&(c=l),Reflect.apply(n.t,n,[p,f||c||{},s])},te(o,i){return n.te(o,i)},tm(o){return n.tm(o)},getLocaleMessage(o){return n.getLocaleMessage(o)},setLocaleMessage(o,i){n.setLocaleMessage(o,i)},mergeLocaleMessage(o,i){n.mergeLocaleMessage(o,i)},d(...o){return Reflect.apply(n.d,n,[...o])},getDateTimeFormat(o){return n.getDateTimeFormat(o)},setDateTimeFormat(o,i){n.setDateTimeFormat(o,i)},mergeDateTimeFormat(o,i){n.mergeDateTimeFormat(o,i)},n(...o){return Reflect.apply(n.n,n,[...o])},getNumberFormat(o){return n.getNumberFormat(o)},setNumberFormat(o,i){n.setNumberFormat(o,i)},mergeNumberFormat(o,i){n.mergeNumberFormat(o,i)},getChoiceIndex(o,i){return process.env.NODE_ENV!=="production"&&fe(Ie(te.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return u.__extender=r,process.env.NODE_ENV!=="production"&&(u.__enableEmitter=o=>{const i=n;i[Vt]&&i[Vt](o)},u.__disableEmitter=()=>{const o=n;o[Rn]&&o[Rn]()}),u}}const Eo={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function J5({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,u)=>[...r,...u.type===xr?u.children:[u]],[]):t.reduce((n,r)=>{const u=e[r];return u&&(n[r]=u()),n},{})}function Zs(e){return xr}const yo=no({name:"i18n-t",props:ce({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>le(e)||!isNaN(e)}},Eo),setup(e,t){const{slots:n,attrs:r}=t,u=e.i18n||Oo({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(c=>c!=="_"),i={};e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=T(e.plural)?+e.plural:e.plural);const a=J5(t,o),l=u[po](e.keypath,a,i),s=ce({},r),f=T(e.tag)||H(e.tag)?e.tag:Zs();return Vs(f,s,l)}}});function z5(e){return Z(e)&&!T(e[0])}function Ys(e,t,n,r){const{slots:u,attrs:o}=t;return()=>{const i={part:!0};let a={};e.locale&&(i.locale=e.locale),T(e.format)?i.key=e.format:H(e.format)&&(T(e.format.key)&&(i.key=e.format.key),a=Object.keys(e.format).reduce((p,y)=>n.includes(y)?ce({},p,{[y]:e.format[y]}):p,{}));const l=r(e.value,i,a);let s=[i.key];Z(l)?s=l.map((p,y)=>{const I=u[p.type],g=I?I({[p.type]:p.value,index:y,parts:l}):[p.value];return z5(g)&&(g[0].key=`${p.type}-${y}`),g}):T(l)&&(s=[l]);const f=ce({},o),c=T(e.tag)||H(e.tag)?e.tag:Zs();return Vs(c,f,s)}}const el=no({name:"i18n-n",props:ce({value:{type:Number,required:!0},format:{type:[String,Object]}},Eo),setup(e,t){const n=e.i18n||Oo({useScope:e.scope,__useComponent:!0});return Ys(e,t,Pa,(...r)=>n[ho](...r))}}),tl=no({name:"i18n-d",props:ce({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Eo),setup(e,t){const n=e.i18n||Oo({useScope:e.scope,__useComponent:!0});return Ys(e,t,Ta,(...r)=>n[_o](...r))}});function Q5(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function Z5(e){const t=i=>{const{instance:a,modifiers:l,value:s}=i;if(!a||!a.$)throw de(W.UNEXPECTED_ERROR);const f=Q5(e,a.$);process.env.NODE_ENV!=="production"&&l.preserve&&fe(Ie(te.NOT_SUPPORTED_PRESERVE));const c=nl(s);return[Reflect.apply(f.t,f,[...rl(c)]),f]};return{created:(i,a)=>{const[l,s]=t(a);Me&&e.global===s&&(i.__i18nWatcher=ao(s.locale,()=>{a.instance&&a.instance.$forceUpdate()})),i.__composer=s,i.textContent=l},unmounted:i=>{Me&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:a})=>{if(i.__composer){const l=i.__composer,s=nl(a);i.textContent=Reflect.apply(l.t,l,[...rl(s)])}},getSSRProps:i=>{const[a]=t(i);return{textContent:a}}}}function nl(e){if(T(e))return{path:e};if(M(e)){if(!("path"in e))throw de(W.REQUIRED_VALUE,"path");return e}else throw de(W.INVALID_VALUE)}function rl(e){const{path:t,locale:n,args:r,choice:u,plural:o}=e,i={},a=r||{};return T(n)&&(i.locale=n),le(u)&&(i.plural=u),le(o)&&(i.plural=o),[t,a,i]}function Y5(e,t,...n){const r=M(n[0])?n[0]:{},u=!!r.useI18nComponentName,o=x(r.globalInstall)?r.globalInstall:!0;process.env.NODE_ENV!=="production"&&o&&u&&fe(Ie(te.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:yo.name})),o&&([u?"i18n":yo.name,"I18nT"].forEach(i=>e.component(i,yo)),[el.name,"I18nN"].forEach(i=>e.component(i,el)),[tl.name,"I18nD"].forEach(i=>e.component(i,tl))),e.directive("t",Z5(t))}const bo={["vue-devtools-plugin-vue-i18n"]:"Vue I18n devtools",["vue-i18n-resource-inspector"]:"I18n Resources",["vue-i18n-timeline"]:"Vue I18n"},e3={["vue-i18n-resource-inspector"]:"Search for scopes ..."},t3={["vue-i18n-timeline"]:16764185},ul="vue-i18n: composer properties";let Co;function n3(e,t){return Gt(this,null,function*(){return new Promise((n,r)=>{try{U5({id:"vue-devtools-plugin-vue-i18n",label:bo["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[ul],app:e},u=>{Co=u,u.on.visitComponentTree(({componentInstance:i,treeNode:a})=>{r3(i,a,t)}),u.on.inspectComponent(({componentInstance:i,instanceData:a})=>{i.vnode.el&&i.vnode.el.__VUE_I18N__&&a&&(t.mode==="legacy"?i.vnode.el.__VUE_I18N__!==t.global.__composer&&il(a,i.vnode.el.__VUE_I18N__):il(a,i.vnode.el.__VUE_I18N__))}),u.addInspector({id:"vue-i18n-resource-inspector",label:bo["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:e3["vue-i18n-resource-inspector"]}),u.on.getInspectorTree(i=>{i.app===e&&i.inspectorId==="vue-i18n-resource-inspector"&&s3(i,t)});const o=new Map;u.on.getInspectorState(i=>Gt(this,null,function*(){if(i.app===e&&i.inspectorId==="vue-i18n-resource-inspector")if(u.unhighlightElement(),c3(i,t),i.nodeId==="global"){if(!o.has(i.app)){const[a]=yield u.getComponentInstances(i.app);o.set(i.app,a)}u.highlightElement(o.get(i.app))}else{const a=l3(i.nodeId,t);a&&u.highlightElement(a)}})),u.on.editInspectorState(i=>{i.app===e&&i.inspectorId==="vue-i18n-resource-inspector"&&d3(i,t)}),u.addTimelineLayer({id:"vue-i18n-timeline",label:bo["vue-i18n-timeline"],color:t3["vue-i18n-timeline"]}),n(!0)})}catch(u){console.error(u),r(!1)}})})}function ol(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function r3(e,t,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==r){const u={label:`i18n (${ol(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(u)}}function il(e,t){const n=ul;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:So(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function So(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];z(r)&&"source"in r?t[n]=a3(r):dt(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:H(r)?t[n]=So(r):t[n]=r}),t}const u3={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function o3(e){return e.replace(/[<>"&]/g,i3)}function i3(e){return u3[e]||e}function a3(e){const t=e.source?`("${o3(e.source)}")`:"(?)";return{_custom:{type:"function",display:`<span>\u0192</span> ${t}`}}}function s3(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[r,u]of t.__instances){const o=t.mode==="composition"?u:u.__composer;n!==o&&e.rootNodes.push({id:o.id.toString(),label:`${ol(r)} Scope`})}}function l3(e,t){let n=null;if(e!=="global"){for(const[r,u]of t.__instances.entries())if(u.id.toString()===e){n=r;break}}return n}function al(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(r=>r.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function c3(e,t){const n=al(e.nodeId,t);return n&&(e.state=f3(n)),null}function f3(e){const t={},n="Locale related info",r=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=r;const u="Locale messages info",o=[{type:u,key:"messages",editable:!1,value:So(e.messages.value)}];t[u]=o;{const i="Datetime formats info",a=[{type:i,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[i]=a;const l="Datetime formats info",s=[{type:l,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[l]=s}return t}function Pn(e,t){if(Co){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),Co.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function d3(e,t){const n=al(e.nodeId,t);if(n){const[r]=e.path;r==="locale"&&T(e.state.value)?n.locale.value=e.state.value:r==="fallbackLocale"&&(T(e.state.value)||Z(e.state.value)||H(e.state.value))?n.fallbackLocale.value=e.state.value:r==="inheritLocale"&&x(e.state.value)&&(n.inheritLocale=e.state.value)}}function p3(e,t,n){return{beforeCreate(){const r=un();if(!r)throw de(W.UNEXPECTED_ERROR);const u=this.$options;if(u.i18n){const o=u.i18n;if(u.__i18n&&(o.__i18n=u.__i18n),o.__root=t,this===this.$root)this.$i18n=sl(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=go(o);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(u.__i18n)if(this===this.$root)this.$i18n=sl(e,u);else{this.$i18n=go({__i18n:u.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}else this.$i18n=e;u.__i18nGlobal&&qs(t,u,u),this.$t=(...o)=>this.$i18n.t(...o),this.$rt=(...o)=>this.$i18n.rt(...o),this.$tc=(...o)=>this.$i18n.tc(...o),this.$te=(o,i)=>this.$i18n.te(o,i),this.$d=(...o)=>this.$i18n.d(...o),this.$n=(...o)=>this.$i18n.n(...o),this.$tm=o=>this.$i18n.tm(o),n.__setInstance(r,this.$i18n)},mounted(){if((process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&!0&&this.$el&&this.$i18n){const r=this.$i18n;this.$el.__VUE_I18N__=r.__composer;const u=this.__v_emitter=Ou();r.__enableEmitter&&r.__enableEmitter(u),u.on("*",Pn)}},unmounted(){const r=un();if(!r)throw de(W.UNEXPECTED_ERROR);const u=this.$i18n;(process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&!0&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",Pn),delete this.__v_emitter),this.$i18n&&(u.__disableEmitter&&u.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,u.__disposer&&(u.__disposer(),delete u.__disposer,delete u.__extender),n.__deleteInstance(r),delete this.$i18n}}}function sl(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Ws](t.pluralizationRules||e.pluralizationRules);const n=jr(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const _3=xe("global-vue-i18n");function h3(e={},t){const n=__VUE_I18N_LEGACY_API__&&x(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=x(e.globalInjection)?e.globalInjection:!0,u=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,o=new Map,[i,a]=m3(e,n),l=xe(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&n&&u&&fe(Ie(te.NOTICE_DROP_ALLOW_COMPOSITION));function s(p){return o.get(p)||null}function f(p,y){o.set(p,y)}function c(p){o.delete(p)}{let y;const p={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return u},install(I,...g){return Gt(this,null,function*(){if((process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&(I.__VUE_I18N__=p),I.__VUE_I18N_SYMBOL__=l,I.provide(I.__VUE_I18N_SYMBOL__,p),M(g[0])){const C=g[0];p.__composerExtend=C.__composerExtend,p.__vueI18nExtend=C.__vueI18nExtend}let O=null;!n&&r&&(O=A3(I,p.global)),__VUE_I18N_FULL_INSTALL__&&Y5(I,p,...g),__VUE_I18N_LEGACY_API__&&n&&I.mixin(p3(a,a.__composer,p));const _=I.unmount;if(I.unmount=()=>{O&&O(),p.dispose(),_()},process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__){if(!(yield n3(I,p)))throw de(W.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const m=Ou();if(n){const v=a;v.__enableEmitter&&v.__enableEmitter(m)}else{const v=a;v[Vt]&&v[Vt](m)}m.on("*",Pn)}})},get global(){return a},dispose(){i.stop()},__instances:o,__getInstance:s,__setInstance:f,__deleteInstance:c};return p}}function Oo(e={}){const t=un();if(t==null)throw de(W.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw de(W.NOT_INSTALLED);const n=v3(t),r=E3(n),u=Gs(t),o=g3(e,u);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw de(W.NOT_AVAILABLE_IN_LEGACY_MODE);return S3(t,o,r,e)}if(o==="global")return qs(r,e,u),r;if(o==="parent"){let l=y3(n,t,e.__useComponent);return l==null&&(process.env.NODE_ENV!=="production"&&fe(Ie(te.NOT_FOUND_PARENT_SCOPE)),l=r),l}const i=n;let a=i.__getInstance(t);if(a==null){const l=ce({},e);"__i18n"in u&&(l.__i18n=u.__i18n),r&&(l.__root=r),a=vo(l),i.__composerExtend&&(a[mo]=i.__composerExtend(a)),C3(i,t,a),i.__setInstance(t,a)}return a}function m3(e,t,n){const r=cb();{const u=__VUE_I18N_LEGACY_API__&&t?r.run(()=>go(e)):r.run(()=>vo(e));if(u==null)throw de(W.UNEXPECTED_ERROR);return[r,u]}}function v3(e){{const t=Fs(e.isCE?_3:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw de(e.isCE?W.NOT_INSTALLED_WITH_PROVIDE:W.UNEXPECTED_ERROR);return t}}function g3(e,t){return pr(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function E3(e){return e.mode==="composition"?e.global:e.global.__composer}function y3(e,t,n=!1){let r=null;const u=t.root;let o=b3(t,n);for(;o!=null;){const i=e;if(e.mode==="composition")r=i.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const a=i.__getInstance(o);a!=null&&(r=a.__composer,n&&r&&!r[Hs]&&(r=null))}if(r!=null||u===o)break;o=o.parent}return r}function b3(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function C3(e,t,n){let r=null;r5(()=>{if((process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&!0&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=Ou();const u=n;u[Vt]&&u[Vt](r),r.on("*",Pn)}},t),u5(()=>{const u=n;(process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&!0&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(r&&r.off("*",Pn),u[Rn]&&u[Rn](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const o=u[mo];o&&(o(),delete u[mo])},t)}function S3(e,t,n,r={}){const u=t==="local",o=ds(null);if(u&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw de(W.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=x(r.inheritLocale)?r.inheritLocale:!T(r.locale),a=Yt(!u||i?n.locale.value:T(r.locale)?r.locale:Jt),l=Yt(!u||i?n.fallbackLocale.value:T(r.fallbackLocale)||Z(r.fallbackLocale)||M(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:a.value),s=Yt(jr(a.value,r)),f=Yt(M(r.datetimeFormats)?r.datetimeFormats:{[a.value]:{}}),c=Yt(M(r.numberFormats)?r.numberFormats:{[a.value]:{}}),p=u?n.missingWarn:x(r.missingWarn)||lt(r.missingWarn)?r.missingWarn:!0,y=u?n.fallbackWarn:x(r.fallbackWarn)||lt(r.fallbackWarn)?r.fallbackWarn:!0,I=u?n.fallbackRoot:x(r.fallbackRoot)?r.fallbackRoot:!0,g=!!r.fallbackFormat,O=z(r.missing)?r.missing:null,_=z(r.postTranslation)?r.postTranslation:null,C=u?n.warnHtmlMessage:x(r.warnHtmlMessage)?r.warnHtmlMessage:!0,m=!!r.escapeParameter,v=u?n.modifiers:M(r.modifiers)?r.modifiers:{},A=r.pluralRules||u&&n.pluralRules;function S(){return[a.value,l.value,s.value,f.value,c.value]}const E=Xe({get:()=>o.value?o.value.locale.value:a.value,set:B=>{o.value&&(o.value.locale.value=B),a.value=B}}),w=Xe({get:()=>o.value?o.value.fallbackLocale.value:l.value,set:B=>{o.value&&(o.value.fallbackLocale.value=B),l.value=B}}),N=Xe(()=>o.value?o.value.messages.value:s.value),G=Xe(()=>f.value),Oe=Xe(()=>c.value);function V(){return o.value?o.value.getPostTranslationHandler():_}function se(B){o.value&&o.value.setPostTranslationHandler(B)}function Pe(){return o.value?o.value.getMissingHandler():O}function Jn(B){o.value&&o.value.setMissingHandler(B)}function Qe(B){return S(),B()}function zn(...B){return o.value?Qe(()=>Reflect.apply(o.value.t,null,[...B])):Qe(()=>"")}function Qn(...B){return o.value?Reflect.apply(o.value.rt,null,[...B]):""}function Zn(...B){return o.value?Qe(()=>Reflect.apply(o.value.d,null,[...B])):Qe(()=>"")}function Yn(...B){return o.value?Qe(()=>Reflect.apply(o.value.n,null,[...B])):Qe(()=>"")}function er(B){return o.value?o.value.tm(B):{}}function $e(B,q){return o.value?o.value.te(B,q):!1}function pn(B){return o.value?o.value.getLocaleMessage(B):{}}function _n(B,q){o.value&&(o.value.setLocaleMessage(B,q),s.value[B]=q)}function tr(B,q){o.value&&o.value.mergeLocaleMessage(B,q)}function nr(B){return o.value?o.value.getDateTimeFormat(B):{}}function rr(B,q){o.value&&(o.value.setDateTimeFormat(B,q),f.value[B]=q)}function du(B,q){o.value&&o.value.mergeDateTimeFormat(B,q)}function ur(B){return o.value?o.value.getNumberFormat(B):{}}function hn(B,q){o.value&&(o.value.setNumberFormat(B,q),c.value[B]=q)}function or(B,q){o.value&&o.value.mergeNumberFormat(B,q)}const ir={get id(){return o.value?o.value.id:-1},locale:E,fallbackLocale:w,messages:N,datetimeFormats:G,numberFormats:Oe,get inheritLocale(){return o.value?o.value.inheritLocale:i},set inheritLocale(B){o.value&&(o.value.inheritLocale=B)},get availableLocales(){return o.value?o.value.availableLocales:Object.keys(s.value)},get modifiers(){return o.value?o.value.modifiers:v},get pluralRules(){return o.value?o.value.pluralRules:A},get isGlobal(){return o.value?o.value.isGlobal:!1},get missingWarn(){return o.value?o.value.missingWarn:p},set missingWarn(B){o.value&&(o.value.missingWarn=B)},get fallbackWarn(){return o.value?o.value.fallbackWarn:y},set fallbackWarn(B){o.value&&(o.value.missingWarn=B)},get fallbackRoot(){return o.value?o.value.fallbackRoot:I},set fallbackRoot(B){o.value&&(o.value.fallbackRoot=B)},get fallbackFormat(){return o.value?o.value.fallbackFormat:g},set fallbackFormat(B){o.value&&(o.value.fallbackFormat=B)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:C},set warnHtmlMessage(B){o.value&&(o.value.warnHtmlMessage=B)},get escapeParameter(){return o.value?o.value.escapeParameter:m},set escapeParameter(B){o.value&&(o.value.escapeParameter=B)},t:zn,getPostTranslationHandler:V,setPostTranslationHandler:se,getMissingHandler:Pe,setMissingHandler:Jn,rt:Qn,d:Zn,n:Yn,tm:er,te:$e,getLocaleMessage:pn,setLocaleMessage:_n,mergeLocaleMessage:tr,getDateTimeFormat:nr,setDateTimeFormat:rr,mergeDateTimeFormat:du,getNumberFormat:ur,setNumberFormat:hn,mergeNumberFormat:or};function ar(B){B.locale.value=a.value,B.fallbackLocale.value=l.value,Object.keys(s.value).forEach(q=>{B.mergeLocaleMessage(q,s.value[q])}),Object.keys(f.value).forEach(q=>{B.mergeDateTimeFormat(q,f.value[q])}),Object.keys(c.value).forEach(q=>{B.mergeNumberFormat(q,c.value[q])}),B.escapeParameter=m,B.fallbackFormat=g,B.fallbackRoot=I,B.fallbackWarn=y,B.missingWarn=p,B.warnHtmlMessage=C}return n5(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw de(W.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const B=o.value=e.proxy.$i18n.__composer;t==="global"?(a.value=B.locale.value,l.value=B.fallbackLocale.value,s.value=B.messages.value,f.value=B.datetimeFormats.value,c.value=B.numberFormats.value):u&&ar(B)}),ir}const O3=["locale","fallbackLocale","availableLocales"],ll=["t","rt","d","n","tm","te"];function A3(e,t){const n=Object.create(null);return O3.forEach(u=>{const o=Object.getOwnPropertyDescriptor(t,u);if(!o)throw de(W.UNEXPECTED_ERROR);const i=Ae(o.value)?{get(){return o.value.value},set(a){o.value.value=a}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,u,i)}),e.config.globalProperties.$i18n=n,ll.forEach(u=>{const o=Object.getOwnPropertyDescriptor(t,u);if(!o||!o.value)throw de(W.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${u}`,o)}),()=>{delete e.config.globalProperties.$i18n,ll.forEach(u=>{delete e.config.globalProperties[`$${u}`]})}}if(W5(),__INTLIFY_JIT_COMPILATION__?ca(jy):ca(Uy),Ry(py),Ly(ia),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Ye();e.__INTLIFY__=!0,Cy(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const I3=(e,t)=>{var i;const n=e.split(".");let r;const u=((i=window.baitedaWorkers)==null?void 0:i.languageMessages)||{};n.forEach((a,l)=>{l===0?r=u[a]:r&&(r=r[a])});let o="";return r&&(o=r),t&&Object.keys(t).forEach(a=>{const l=t[a];o=o.replace(new RegExp(`\\{\\s*${a}\\s*\\}`),l)}),o||(o=e),o};function F3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w3(e,t,n){return t&&cl(e.prototype,t),n&&cl(e,n),e}function D3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $=function(){function e(){F3(this,e)}return w3(e,null,[{key:"getMessage",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u;return(u=I3("engine."+n))!==null&&u!==void 0?u:this.$i18n.global.t(n,r)}},{key:"resetI18n",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ri;return h3({locale:n,globalInjection:!0,silentFallbackWarn:!0,missingWarn:!1,fallbackWarn:!1,silentTranslationWarn:!0})}},{key:"setLocale",value:function(n,r){var u=r;r||(u=aE.zhCN),this.$i18n.global.setLocaleMessage(n,u)}}]),e}();D3($,"$i18n",$.resetI18n());function fl(e,t,n){var r=t.replace(/\[(\d)]/g,function(o,i){return"."+i}).split("."),u=!1;return r.reduce(function(o,i,a,l){var s=o;if(!!o){if(!Object.prototype.hasOwnProperty.call(o,i)){dr("Can not set ".concat(t,"'s ").concat(i," property in current %o, Because there is no ").concat(i," property on the %o"),o,o);return}return a===l.length-1&&!Object.is(s[i],n)&&(s[i]=n,u=!0),s[i]}},e),u}var N3=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},B3={exports:{}};(function(e){(function(t){var n=function(_,C,m){if(!s(C)||c(C)||p(C)||y(C)||l(C))return C;var v,A=0,S=0;if(f(C))for(v=[],S=C.length;A<S;A++)v.push(n(_,C[A],m));else{v={};for(var E in C)Object.prototype.hasOwnProperty.call(C,E)&&(v[_(E,m)]=n(_,C[E],m))}return v},r=function(_,C){C=C||{};var m=C.separator||"_",v=C.split||/(?=[A-Z])/;return _.split(v).join(m)},u=function(_){return I(_)?_:(_=_.replace(/[\-_\s]+(.)?/g,function(C,m){return m?m.toUpperCase():""}),_.substr(0,1).toLowerCase()+_.substr(1))},o=function(_){var C=u(_);return C.substr(0,1).toUpperCase()+C.substr(1)},i=function(_,C){return r(_,C).toLowerCase()},a=Object.prototype.toString,l=function(_){return typeof _=="function"},s=function(_){return _===Object(_)},f=function(_){return a.call(_)=="[object Array]"},c=function(_){return a.call(_)=="[object Date]"},p=function(_){return a.call(_)=="[object RegExp]"},y=function(_){return a.call(_)=="[object Boolean]"},I=function(_){return _=_-0,_===_},g=function(_,C){var m=C&&"process"in C?C.process:C;return typeof m!="function"?_:function(v,A){return m(v,_,A)}},O={camelize:u,decamelize:i,pascalize:o,depascalize:i,camelizeKeys:function(_,C){return n(g(u,C),_)},decamelizeKeys:function(_,C){return n(g(i,C),_,C)},pascalizeKeys:function(_,C){return n(g(o,C),_)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=O:t.humps=O})(N3)})(B3);var dl={};Object.defineProperty(dl,"__esModule",{value:!0});function Ao(e){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map(t=>typeof t!="object"||t===null?t:Ao(t));{const t={};for(const n in e){const r=e[n];t[n]=typeof r!="object"||r===null?r:Ao(r)}return t}}var T3=dl.default=Ao;function pl(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function ut(e){if(e!==void 0)return(typeof e=="undefined"?"undefined":pl(e))==="object"?T3(e):e}function Io(e){return Object.prototype.toString.call(e)==="[object Object]"}function R3(e){return e!=null&&(typeof e=="undefined"?"undefined":pl(e))==="object"&&Array.isArray(e)===!1}function $n(e){return Array.isArray(e)}function Fo(e){return typeof e=="string"}function L3(e){return Object.values(L).includes(e)}function wo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function P3(e){if(Array.isArray(e))return wo(e)}function _l(e,t,n,r,u,o,i){try{var a=e[o](i),l=a.value}catch(s){n(s);return}a.done?t(l):Promise.resolve(l).then(r,u)}function $3(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var o=e.apply(t,n);function i(l){_l(o,r,u,i,a,"next",l)}function a(l){_l(o,r,u,i,a,"throw",l)}i(void 0)})}}function M3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x3(e,t,n){return t&&hl(e.prototype,t),n&&hl(e,n),e}function ml(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V3(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function k3(){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 Do(e){return P3(e)||V3(e)||U3(e)||k3()}function U3(e,t){if(!!e){if(typeof e=="string")return wo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wo(e,t)}}function j3(e,t){var n,r,u,o,i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(s){return function(f){return l([s,f])}}function l(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(u=s[0]&2?r.return:s[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,s[1])).done)return u;switch(r=0,u&&(s=[s[0]&2,u.value]),s[0]){case 0:case 1:u=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]<u[3])){i.label=s[1];break}if(s[0]===6&&i.label<u[1]){i.label=u[1],u=s;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(s);break}u[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(f){s=[6,f],r=0}finally{n=u=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}var vl=function(){function e(){M3(this,e),ml(this,"_events",new Map),ml(this,"debug",!1)}return x3(e,[{key:"emit",value:function(n){for(var r=arguments.length,u=new Array(r>1?r-1:0),o=1;o<r;o++)u[o-1]=arguments[o];var i=this;return $3(function(){var a,l,s,f,c,p,y,I,g,O,_,C;return j3(this,function(m){switch(m.label){case 0:if(a=i._events.get(n),l=[],!a)return[3,10];s=a.slice(),f=!0,c=!1,p=void 0,m.label=1;case 1:m.trys.push([1,8,9,10]),y=s[Symbol.iterator](),m.label=2;case 2:if(f=(I=y.next()).done)return[3,7];if(g=I.value,!a.includes(g))return[3,6];m.label=3;case 3:return m.trys.push([3,5,,6]),i.debug&&Wi.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(g.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+g.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(u.map(function(){return"%o"}).join(","),"\u3002")].concat(Do(u))),[4,g.apply(null,Do(u))];case 4:return O=m.sent(),i.debug&&Wi.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(g.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+g.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(u.map(function(){return"%o"}).join(","),"; \u51FD\u6570\u7684\u8FD4\u56DE\u7ED3\u679C\u4E3A%o")].concat(Do(u),[O])),l.push(O),O===!1?[3,7]:[3,6];case 5:return _=m.sent(),yE(String(_)+":"+String(_.stack)),[3,6];case 6:return f=!0,[3,2];case 7:return[3,10];case 8:return C=m.sent(),c=!0,p=C,[3,10];case 9:try{!f&&y.return!=null&&y.return()}finally{if(c)throw p}return[7];case 10:return[2,l]}})})()}},{key:"on",value:function(n,r){if(this._events.has(n)){var u;(u=this._events.get(n))===null||u===void 0||u.push(r)}else this._events.set(n,[r])}},{key:"off",value:function(n,r){if(this._events.has(n)){var u=this._events.get(n),o=u==null?void 0:u.indexOf(r);u==null||u.splice(o,1)}}},{key:"delete",value:function(n){this._events.has(n)&&this._events.delete(n)}},{key:"clear",value:function(){this._events=new Map}}]),e}();function W3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function H3(e,t,n){return t&&gl(e.prototype,t),n&&gl(e,n),e}function G3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var q3=[{key:"on_click",name:$.getMessage("click"),code:"click"},{key:"on_click_finish",name:$.getMessage("finished"),code:"click-finish"},{key:"on_change",name:$.getMessage("valueChange"),code:"change"},{key:"on_search",name:$.getMessage("search"),code:"search"},{key:"on_list_change",name:$.getMessage("listDataChange"),code:"list-change"},{key:"on_list_search",name:$.getMessage("listDataCreate"),code:"list-search"},{key:"on_list_mounted",name:$.getMessage("listDataBack"),code:"list-mounted"},{key:"on_list_delete",name:$.getMessage("listDataDelete"),code:"list-delete"},{key:"on_list_before_insert",name:$.getMessage("listDataAdd"),code:"list-before-insert"},{key:"on_input",name:$.getMessage("onInput"),code:"input"},{key:"on_blur",name:$.getMessage("onBlur"),code:"blur"},{key:"on_focus",name:$.getMessage("onFocus"),code:"focus"},{key:"on_wps_open",name:$.getMessage("onOpenFile"),code:"wps-open"},{key:"on_wps_save",name:$.getMessage("onSaveFile"),code:"wps-save"},{key:"on_wps_rename",name:$.getMessage("rename"),code:"wps-rename"},{key:"on_list_actions",name:$.getMessage("onClickBtn"),code:"list-actions"},{key:"on_list_render_operation",name:$.getMessage("cellRender"),code:"list-render-operation"},{key:"on_list_rowclick",name:$.getMessage("rowClick"),code:"list-rowclick"},{key:"on_list_before_rowdelete",name:$.getMessage("rowDelete"),code:"list-before-rowdelete"},{key:"on_list_before_import",name:$.getMessage("listDataImport"),code:"list-before-import"},{key:"on_list_rows_checked",name:$.getMessage("rowSelected"),code:"list-rows-checked"},{key:"on_change_tab",name:$.getMessage("tabChange"),code:"change-tab"},{key:"on_modal_ok",name:$.getMessage("modalConfirm"),code:"modal-ok"}],Mn=function(){function e(){W3(this,e)}return H3(e,null,[{key:"getEventsFromKeys",value:function(n){var r=typeof n=="string"?[n]:n;return e.events.filter(function(u){return r.includes(u.key)})}},{key:"getEventsFromControl",value:function(n){var r=[],u=n.eventKeys;r=r.concat(e.events.filter(function(i){return u.includes(i.key)}));var o=n.customEvents.map(function(i){var a=i.key;return i.namespace!==void 0&&i.namespace!==null&&i.namespace!==""&&(a=i.namespace+":"+i.key),{key:a,code:i.key,name:i.name}});return r=r.concat(o),r}}]),e}();G3(Mn,"events",q3);function No(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function K3(e){if(Array.isArray(e))return No(e)}function X3(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function J3(){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 El(e){return K3(e)||X3(e)||z3(e)||J3()}function z3(e,t){if(!!e){if(typeof e=="string")return No(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return No(e,t)}}function Bo(e,t){var n;!((n=Object.getOwnPropertyDescriptors(e)[t])===null||n===void 0)&&n.enumerable&&Object.defineProperty(e,t,{enumerable:!1})}function yl(e,t,n){n!=="Runtime"&&(e.parent=t,Bo(e,"parent"))}function Q3(e,t,n){e.forEach(function(r){yl(r,t,n)})}var bl=Symbol("targetKey");function Cl(e){var t;return(t=e[bl])!==null&&t!==void 0?t:e}function Sl(e,t,n){return Q3(e,t,n),new Proxy(e,{get:function(u,o){for(var i=arguments.length,a=new Array(i>2?i-2:0),l=2;l<i;l++)a[l-2]=arguments[l];var s;return o===bl?u:(s=Reflect).get.apply(s,[u,o].concat(El(a)))},set:function(u,o,i){for(var a=arguments.length,l=new Array(a>3?a-3:0),s=3;s<a;s++)l[s-3]=arguments[s];var f;if($n(e)&&o==="length"&&i===e.length)return!0;var c=(f=Reflect).set.apply(f,[u,o,i].concat(El(l)));return Io(i)&&yl(i,t,n),c}})}function To(e,t,n,r,u){var o=r!=null?r:e,i=Sl(Cl(n!=null?n:[]),o,u);Object.defineProperty(e,t,{get:function(){return i},set:function(l){i=Sl(Cl(l),o,u)},enumerable:!0})}function Z3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ol(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Y3(e,t,n){return t&&Ol(e.prototype,t),n&&Ol(e,n),e}function bt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Al=[],xn=function(){function e(t){Z3(this,e),bt(this,"registeredControlTypes",new Set),bt(this,"controlConfigMap",new Map),bt(this,"_controls",[]),bt(this,"_type",void 0),this._type=t,this._initControls(t)}return Y3(e,[{key:"registerControlConfig",value:function(n,r){return this.controlConfigMap.set(n,r),this}},{key:"getControlConfig",value:function(n){return this.controlConfigMap.get(n)}},{key:"getControls",value:function(){return this._controls}},{key:"register",value:function(n){n.__is_control__||bn("".concat(n.name," is not a Control"));var r=this._controls.findIndex(function(u){return u.controlType===n.controlType});return r>-1&&(dr("The ".concat(n.controlType," is repeat register, So it overwrites the one that was registered before.")),this._controls.splice(r,1)),this.registeredControlTypes.add(n.controlType),this._controls.push(n),this}},{key:"isLayoutControl",value:function(n){return n.controlType===ve.LAYOUT}},{key:"isFormControl",value:function(n){return n.controlType===ve.FORM}},{key:"isListControl",value:function(n){return n.controlType===ve.LIST}},{key:"isColumnControl",value:function(n){return n.controlType===ve.COLUMN}},{key:"createControl",value:function(n,r){var u=this;if(Array.isArray(n))return n.map(function(f){return u.createControl(f,r)});if(n.children&&(n.children=n.children.map(function(f){return u.createControl(f,r)})),this.isListControl(n)){var o=n.props;o.headers&&(o.headers=o.headers.map(function(f){return u.createControl(f,r)}))}var i=this.getControlFormType(n.type);if(i){var a=n;if(typeof r=="function"){var l=r(a);l&&(a=l)}var s;return i.mode==="Runtime"?(s=a,s.fieldType=i.controlFieldType,this._setParentPrototypeToSchema(s,this)):s=new i(a),s}else bn("The constructor of ".concat(n.type," could not be found, please confirm that the constructor has been registered"))}},{key:"resetInstanceParent",value:function(n,r){delete n.parent,Object.defineProperty(n,"parent",{configurable:!0,get:function(){return r}}),Bo(n,"parent")}},{key:"_setParentPrototypeToSchema",value:function(n,r){r._type==="Runtime"&&(Object.defineProperty(n,"parent",{configurable:!0,get:function(){var o=n.id,i=r._controlParentIdMap,a=r.instanceMap;if(!(!i||!a)){var l=i[o],s=a[o];if(!(!l&&!s)){var f=s.findIndex(function(y){return y==n}),c=a[l]||[],p;return c.length!==s.length?p=c[0]:p=c[f],p}}}}),Bo(n,"parent"))}},{key:"createControlInstance",value:function(n,r){var u=this.getControlFormType(n);if(u)return new u(r)}},{key:"getControlFormType",value:function(n){return this._controls.find(function(r){return r.controlType===n})}},{key:"_initControls",value:function(n){var r=this;this.constructor.staticControls.forEach(function(u){r.register(u[n]),e.staticControlsRuntimeRules.set(u.Runtime.controlType,u.Property.RuntimeRules),u.Property.mode=n})}}],[{key:"staticGetRules",value:function(n,r){var u=e.staticControlsRuntimeRules.get(n),o=[];if(u){var i=new u(r);o=Array.from(i)}return o}},{key:"register",value:function(n,r){var u=n.Designer,o=n.Runtime,i=n.Property;(!u||!o||!u.__is_control__||!o.__is_control__)&&bn("".concat(n," is can't register as a Control"));var a=this.staticControls.findIndex(function(l){return l.Designer.controlType===u.controlType});return a>-1&&(dr("The ".concat(u.controlType," is repeat register, So it overwrites the one that was registered before.")),this.staticControls.splice(a,1)),this.staticRegisteredTypes.add(u.controlType),this.staticControls.push(n),i.mode=r,this}}]),e}();bt(xn,"staticControlsRuntimeRules",new Map),bt(xn,"staticControls",Al),bt(xn,"staticRegisteredTypes",new Set(Al.map(function(e){return e.Designer.controlType}))),bt(xn,"staticRegisteredConfigs",new Map);function Ro(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function We(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Il=function e(t){Ro(this,e),We(this,"dataCode",void 0),We(this,"fieldCode",void 0),We(this,"fieldType",void 0),We(this,"aliasCode",void 0);var n;this.dataCode=(n=t==null?void 0:t.dataCode)!==null&&n!==void 0?n:"";var r;this.fieldCode=(r=t==null?void 0:t.fieldCode)!==null&&r!==void 0?r:"";var u;this.fieldType=(u=t==null?void 0:t.fieldType)!==null&&u!==void 0?u:"",this.aliasCode=t==null?void 0:t.aliasCode},eC=function e(t){Ro(this,e),We(this,"minWidth",void 0),We(this,"maxWidth",void 0),We(this,"flex",void 0);var n;this.minWidth=(n=t==null?void 0:t.minWidth)!==null&&n!==void 0?n:150,this.maxWidth=t==null?void 0:t.maxWidth;var r;this.flex=(r=t==null?void 0:t.flex)!==null&&r!==void 0?r:1},Fl;(function(e){e.CNY="CNY",e.USD="USD",e.JPY="JPY",e.EUR="EUR",e.INR="INR",e.IDR="IDR",e.BRL="BRL",e.AED="AED",e.AUD="AUD",e.CAD="CAD",e.EGP="EGP",e.GBP="GBP",e.ZAR="ZAR",e.KRW="KRW",e.MAD="MAD",e.MXN="MXN",e.MYR="MYR",e.PHP="PHP",e.PLN="PLN",e.RUB="RUB",e.SGD="SGD",e.THB="THB",e.TRY="TRY",e.TWD="TWD",e.VND="VND",e.HKD="HKD",e.IEP="IEP"})(Fl||(Fl={}));var wl;(function(e){e.DEFAULT_DISPLAY="defaultDisplay",e.REQUIRED="required",e.IS_HIDE="isHide",e.IS_SHOW_UNIT="isShowUnit",e.IMD_SEARCH="immediatelySearch",e.MULTIPLE="multiple",e.SUBMIT_SELECT_CURRENCY="submitSelectCurrency",e.CAPTION="caption",e.IS_HIDE_CAPTION="isHideCaption",e.DEFAULT_SHOW_OPTIONS="defaultShowOptions",e.CAN_SEARCH="canSearch",e.CAN_CHECK="canCheck",e.CAN_EDIT="canEdit",e.CAN_DELETE="canDelete",e.SHOW_UPPER_CASE="showUpperCase",e.MICROMETER="micrometer",e.PRECISION="precision",e.PERCENTAGE="percentage",e.OPTIONAL_LEVEL="optionalLevel",e.CONTAINS_SUB_NODE="containsSubNode",e.DEFAULT_COLLAPSE="defaultCollapse",e.CAN_VIEW_FORM="canViewForm",e.VIEW_FORM_MODEL_TYPE="viewFormModelType",e.SERVER_PAGINATION="serverPagination",e.IS_SHOW_CAPTION_TIP="isShowCaptionTip",e.IS_SHOW_WATERMARK="isShowWatermark",e.ENCRYPTED="encrypted",e.IS_INLINE_EDIT="isInlineEdit",e.REVISIONS_MODE="revisionsMode",e.ALLOW_COPY_OPTIONS="allowCopyOptions",e.IS_PASTE="isPaste",e.SORTABLE="sortable"})(wl||(wl={}));var Lo;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.READONLY=1]="READONLY",e[e.EDITABLE=2]="EDITABLE",e[e.PRINT=5]="PRINT"})(Lo||(Lo={}));var tC=function e(t){Ro(this,e),We(this,"width",void 0),We(this,"height",void 0),We(this,"widthConfig",void 0),We(this,"heightConfig",void 0);var n;this.width=(n=t==null?void 0:t.width)!==null&&n!==void 0?n:"";var r;this.height=(r=t==null?void 0:t.height)!==null&&r!==void 0?r:"";var u;this.widthConfig=(u=t==null?void 0:t.widthConfig)!==null&&u!==void 0?u:"fill";var o;this.heightConfig=(o=t==null?void 0:t.heightConfig)!==null&&o!==void 0?o:"fill"};function nC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Po(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wr(e,t,n){return Dl()?Wr=Reflect.construct:Wr=function(u,o,i){var a=[null];a.push.apply(a,o);var l=Function.bind.apply(u,a),s=new l;return i&&kn(s,i.prototype),s},Wr.apply(null,arguments)}function ot(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vn(e){return Vn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Vn(e)}function rC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&kn(e,t)}function uC(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function oC(e,t){return t&&(iC(t)==="object"||typeof t=="function")?t:nC(e)}function kn(e,t){return kn=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},kn(e,t)}function iC(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function $o(e){var t=typeof Map=="function"?new Map:void 0;return $o=function(r){if(r===null||!uC(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,u)}function u(){return Wr(r,arguments,Vn(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),kn(u,r)},$o(e)}function Dl(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function aC(e){var t=Dl();return function(){var r=Vn(e),u;if(t){var o=Vn(this).constructor;u=Reflect.construct(r,arguments,o)}else u=r.apply(this,arguments);return oC(this,u)}}var Mo=function e(t){Po(this,e),ot(this,"isHide",{type:"boolean"})},Nl=function(e){rC(n,e);var t=aC(n);function n(r){return Po(this,n),t.call(this)}return n}($o(Array)),it=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";Po(this,e),ot(this,"isHide",void 0),ot(this,"className",void 0),ot(this,"style",void 0),ot(this,"caption",void 0),ot(this,"defaultState",void 0);var r;this.isHide=(r=t==null?void 0:t.isHide)!==null&&r!==void 0?r:!1,this.style=new tC(t==null?void 0:t.style);var u;this.caption=(u=t==null?void 0:t.caption)!==null&&u!==void 0?u:n};ot(it,"mode",void 0),ot(it,"Rules",Mo),ot(it,"RuntimeRules",Nl);function Je(){return Je=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Je.apply(this,arguments)}function sC(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function xo(e){return xo=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},xo(e)}function Hr(e,t){return Hr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Hr(e,t)}function lC(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function Gr(e,t,n){return lC()?Gr=Reflect.construct:Gr=function(u,o,i){var a=[null];a.push.apply(a,o);var l=Function.bind.apply(u,a),s=new l;return i&&Hr(s,i.prototype),s},Gr.apply(null,arguments)}function cC(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Vo(e){var t=typeof Map=="function"?new Map:void 0;return Vo=function(r){if(r===null||!cC(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,u)}function u(){return Gr(r,arguments,xo(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),Hr(u,r)},Vo(e)}var fC=/%[sdj%]/g,Bl=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(Bl=function(t,n){typeof console!="undefined"&&console.warn&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function ko(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Be(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,u=t[0],o=t.length;if(typeof u=="function")return u.apply(null,t.slice(1));if(typeof u=="string"){var i=String(u).replace(fC,function(a){if(a==="%%")return"%";if(r>=o)return a;switch(a){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(l){return"[Circular]"}break;default:return a}});return i}return u}function dC(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function pe(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||dC(t)&&typeof e=="string"&&!e)}function pC(e,t,n){var r=[],u=0,o=e.length;function i(a){r.push.apply(r,a),u++,u===o&&n(r)}e.forEach(function(a){t(a,i)})}function Tl(e,t,n){var r=0,u=e.length;function o(i){if(i&&i.length){n(i);return}var a=r;r=r+1,a<u?t(e[a],o):n([])}o([])}function _C(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n])}),t}var Rl=function(e){sC(t,e);function t(n,r){var u;return u=e.call(this,"Async Validation Error")||this,u.errors=n,u.fields=r,u}return t}(Vo(Error));function hC(e,t,n,r){if(t.first){var u=new Promise(function(c,p){var y=function(O){return r(O),O.length?p(new Rl(O,ko(O))):c()},I=_C(e);Tl(I,n,y)});return u.catch(function(c){return c}),u}var o=t.firstFields||[];o===!0&&(o=Object.keys(e));var i=Object.keys(e),a=i.length,l=0,s=[],f=new Promise(function(c,p){var y=function(g){if(s.push.apply(s,g),l++,l===a)return r(s),s.length?p(new Rl(s,ko(s))):c()};i.length||(r(s),c()),i.forEach(function(I){var g=e[I];o.indexOf(I)!==-1?Tl(g,n,y):pC(g,n,y)})});return f.catch(function(c){return c}),f}function Ll(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:typeof t=="function"?t():t,field:t.field||e.fullField}}}function Pl(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=Je(Je({},e[n]),r):e[n]=r}}return e}function $l(e,t,n,r,u,o){e.required&&(!n.hasOwnProperty(e.field)||pe(t,o||e.type))&&r.push(Be(u.messages.required,e.fullField))}function mC(e,t,n,r,u){(/^\s+$/.test(t)||t==="")&&r.push(Be(u.messages.whitespace,e.fullField))}var Uo={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},Un={integer:function(t){return Un.number(t)&&parseInt(t,10)===t},float:function(t){return Un.number(t)&&!Un.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(n){return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Un.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&!!t.match(Uo.email)&&t.length<255},url:function(t){return typeof t=="string"&&!!t.match(Uo.url)},hex:function(t){return typeof t=="string"&&!!t.match(Uo.hex)}};function vC(e,t,n,r,u){if(e.required&&t===void 0){$l(e,t,n,r,u);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],i=e.type;o.indexOf(i)>-1?Un[i](t)||r.push(Be(u.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&r.push(Be(u.messages.types[i],e.fullField,e.type))}function gC(e,t,n,r,u){var o=typeof e.len=="number",i=typeof e.min=="number",a=typeof e.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,s=t,f=null,c=typeof t=="number",p=typeof t=="string",y=Array.isArray(t);if(c?f="number":p?f="string":y&&(f="array"),!f)return!1;y&&(s=t.length),p&&(s=t.replace(l,"_").length),o?s!==e.len&&r.push(Be(u.messages[f].len,e.fullField,e.len)):i&&!a&&s<e.min?r.push(Be(u.messages[f].min,e.fullField,e.min)):a&&!i&&s>e.max?r.push(Be(u.messages[f].max,e.fullField,e.max)):i&&a&&(s<e.min||s>e.max)&&r.push(Be(u.messages[f].range,e.fullField,e.min,e.max))}var an="enum";function EC(e,t,n,r,u){e[an]=Array.isArray(e[an])?e[an]:[],e[an].indexOf(t)===-1&&r.push(Be(u.messages[an],e.fullField,e[an].join(", ")))}function yC(e,t,n,r,u){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Be(u.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var o=new RegExp(e.pattern);o.test(t)||r.push(Be(u.messages.pattern.mismatch,e.fullField,t,e.pattern))}}}var U={required:$l,whitespace:mC,type:vC,range:gC,enum:EC,pattern:yC};function bC(e,t,n,r,u){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(pe(t,"string")&&!e.required)return n();U.required(e,t,r,o,u,"string"),pe(t,"string")||(U.type(e,t,r,o,u),U.range(e,t,r,o,u),U.pattern(e,t,r,o,u),e.whitespace===!0&&U.whitespace(e,t,r,o,u))}n(o)}function CC(e,t,n,r,u){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(pe(t)&&!e.required)return n();U.required(e,t,r,o,u),t!==void 0&&U.type(e,t,r,o,u)}n(o)}function SC(e,t,n,r,u){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(t===""&&(t=void 0),pe(t)&&!e.required)return n();U.required(e,t,r,o,u),t!==void 0&&(U.type(e,t,r,o,u),U.range(e,t,r,o,u))}n(o)}function OC(e,t,n,r,u){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(pe(t)&&!e.required)return n();U.required(e,t,r,o,u),t!==void 0&&U.type(e,t,r,o,u)}n(o)}function AC(e,t,n,r,u){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(pe(t)&&!e.required)return n();U.required(e,t,r,o,u),pe(t)||U.type(e,t,r,o,u)}n(o)}function IC(e,t,n,r,u){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(pe(t)&&!e.required)return n();U.required(e,t,r,o,u),t!==void 0&&(U.type(e,t,r,o,u),U.range(e,t,r,o,u))}n(o)}function FC(e,t,n,r,u){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(pe(t)&&!e.required)return n();U.required(e,t,r,o,u),t!==void 0&&(U.type(e,t,r,o,u),U.range(e,t,r,o,u))}n(o)}function wC(e,t,n,r,u){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(t==null&&!e.required)return n();U.required(e,t,r,o,u,"array"),t!=null&&(U.type(e,t,r,o,u),U.range(e,t,r,o,u))}n(o)}function DC(e,t,n,r,u){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(pe(t)&&!e.required)return n();U.required(e,t,r,o,u),t!==void 0&&U.type(e,t,r,o,u)}n(o)}var NC="enum";function BC(e,t,n,r,u){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(pe(t)&&!e.required)return n();U.required(e,t,r,o,u),t!==void 0&&U[NC](e,t,r,o,u)}n(o)}function TC(e,t,n,r,u){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(pe(t,"string")&&!e.required)return n();U.required(e,t,r,o,u),pe(t,"string")||U.pattern(e,t,r,o,u)}n(o)}function RC(e,t,n,r,u){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(pe(t,"date")&&!e.required)return n();if(U.required(e,t,r,o,u),!pe(t,"date")){var a;t instanceof Date?a=t:a=new Date(t),U.type(e,a,r,o,u),a&&U.range(e,a.getTime(),r,o,u)}}n(o)}function LC(e,t,n,r,u){var o=[],i=Array.isArray(t)?"array":typeof t;U.required(e,t,r,o,u,i),n(o)}function jo(e,t,n,r,u){var o=e.type,i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(pe(t,o)&&!e.required)return n();U.required(e,t,r,i,u,o),pe(t,o)||U.type(e,t,r,i,u)}n(i)}function PC(e,t,n,r,u){var o=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(pe(t)&&!e.required)return n();U.required(e,t,r,o,u)}n(o)}var jn={string:bC,method:CC,number:SC,boolean:OC,regexp:AC,integer:IC,float:FC,array:wC,object:DC,enum:BC,pattern:TC,date:RC,url:jo,hex:jo,email:jo,required:LC,any:PC};function Wo(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Ho=Wo();function Ct(e){this.rules=null,this._messages=Ho,this.define(e)}Ct.prototype={messages:function(t){return t&&(this._messages=Pl(Wo(),t)),this._messages},define:function(t){if(!t)throw new Error("Cannot configure a schema with no rules");if(typeof t!="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={};var n,r;for(n in t)t.hasOwnProperty(n)&&(r=t[n],this.rules[n]=Array.isArray(r)?r:[r])},validate:function(t,n,r){var u=this;n===void 0&&(n={}),r===void 0&&(r=function(){});var o=t,i=n,a=r;if(typeof i=="function"&&(a=i,i={}),!this.rules||Object.keys(this.rules).length===0)return a&&a(),Promise.resolve();function l(g){var O,_=[],C={};function m(v){if(Array.isArray(v)){var A;_=(A=_).concat.apply(A,v)}else _.push(v)}for(O=0;O<g.length;O++)m(g[O]);_.length?C=ko(_):(_=null,C=null),a(_,C)}if(i.messages){var s=this.messages();s===Ho&&(s=Wo()),Pl(s,i.messages),i.messages=s}else i.messages=this.messages();var f,c,p={},y=i.keys||Object.keys(this.rules);y.forEach(function(g){f=u.rules[g],c=o[g],f.forEach(function(O){var _=O;typeof _.transform=="function"&&(o===t&&(o=Je({},o)),c=o[g]=_.transform(c)),typeof _=="function"?_={validator:_}:_=Je({},_),_.validator=u.getValidationMethod(_),_.field=g,_.fullField=_.fullField||g,_.type=u.getType(_),_.validator&&(p[g]=p[g]||[],p[g].push({rule:_,value:c,source:o,field:g}))})});var I={};return hC(p,i,function(g,O){var _=g.rule,C=(_.type==="object"||_.type==="array")&&(typeof _.fields=="object"||typeof _.defaultField=="object");C=C&&(_.required||!_.required&&g.value),_.field=g.field;function m(S,E){return Je(Je({},E),{},{fullField:_.fullField+"."+S})}function v(S){S===void 0&&(S=[]);var E=S;if(Array.isArray(E)||(E=[E]),!i.suppressWarning&&E.length&&Ct.warning("async-validator:",E),E.length&&_.message!==void 0&&(E=[].concat(_.message)),E=E.map(Ll(_)),i.first&&E.length)return I[_.field]=1,O(E);if(!C)O(E);else{if(_.required&&!g.value)return _.message!==void 0?E=[].concat(_.message).map(Ll(_)):i.error&&(E=[i.error(_,Be(i.messages.required,_.field))]),O(E);var w={};if(_.defaultField)for(var N in g.value)g.value.hasOwnProperty(N)&&(w[N]=_.defaultField);w=Je(Je({},w),g.rule.fields);for(var G in w)if(w.hasOwnProperty(G)){var Oe=Array.isArray(w[G])?w[G]:[w[G]];w[G]=Oe.map(m.bind(null,G))}var V=new Ct(w);V.messages(i.messages),g.rule.options&&(g.rule.options.messages=i.messages,g.rule.options.error=i.error),V.validate(g.value,g.rule.options||i,function(se){var Pe=[];E&&E.length&&Pe.push.apply(Pe,E),se&&se.length&&Pe.push.apply(Pe,se),O(Pe.length?Pe:null)})}}var A;_.asyncValidator?A=_.asyncValidator(_,g.value,v,g.source,i):_.validator&&(A=_.validator(_,g.value,v,g.source,i),A===!0?v():A===!1?v(_.message||_.field+" fails"):A instanceof Array?v(A):A instanceof Error&&v(A.message)),A&&A.then&&A.then(function(){return v()},function(S){return v(S)})},function(g){l(g)})},getType:function(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!jn.hasOwnProperty(t.type))throw new Error(Be("Unknown rule type %s",t.type));return t.type||"string"},getValidationMethod:function(t){if(typeof t.validator=="function")return t.validator;var n=Object.keys(t),r=n.indexOf("message");return r!==-1&&n.splice(r,1),n.length===1&&n[0]==="required"?jn.required:jn[this.getType(t)]||!1}},Ct.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");jn[t]=n},Ct.warning=Bl,Ct.messages=Ho,Ct.validators=jn;var $C={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 MC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new Ct(e);return n.messages(Object.assign($C,t)),n}var Ml=new vl;function Go(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xC(e){if(Array.isArray(e))return e}function VC(e){if(Array.isArray(e))return Go(e)}function xl(e,t,n,r,u,o,i){try{var a=e[o](i),l=a.value}catch(s){n(s);return}a.done?t(l):Promise.resolve(l).then(r,u)}function Vl(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var o=e.apply(t,n);function i(l){xl(o,r,u,i,a,"next",l)}function a(l){xl(o,r,u,i,a,"throw",l)}i(void 0)})}}function kC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function UC(e,t,n){return t&&kl(e.prototype,t),n&&kl(e,n),e}function X(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ul(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function jl(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jC(){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 WC(){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 Wl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable}))),r.forEach(function(u){X(e,u,n[u])})}return e}function HC(e){return xC(e)||jl(e)||Hl(e)||jC()}function qo(e){return VC(e)||jl(e)||Hl(e)||WC()}function GC(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Hl(e,t){if(!!e){if(typeof e=="string")return Go(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Go(e,t)}}function Gl(e,t){var n,r,u,o,i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(s){return function(f){return l([s,f])}}function l(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(u=s[0]&2?r.return:s[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,s[1])).done)return u;switch(r=0,u&&(s=[s[0]&2,u.value]),s[0]){case 0:case 1:u=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]<u[3])){i.label=s[1];break}if(s[0]===6&&i.label<u[1]){i.label=u[1],u=s;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(s);break}u[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(f){s=[6,f],r=0}finally{n=u=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}var Ee=function(){function t(n){var r=this;kC(this,t),X(this,"id",void 0),X(this,"name",void 0),X(this,"icon",void 0),X(this,"type",void 0),X(this,"controlType",void 0),X(this,"props",void 0),X(this,"setting",[]),X(this,"fieldType",void 0),X(this,"eventKeys",[]),X(this,"customEvents",[]),X(this,"parent",null),X(this,"slots",void 0),X(this,"slotPosition",void 0),X(this,"updateSetting",Kl),X(this,"removeSetting",ql),this._callControlHooks("preInstance",n);var u=Ul(this,t)?this.constructor:void 0,o=u.controlName,i=u.controlIcon,a=u.controlType,l=u.controlFieldType,s=u.controlEventKeys,f=u.controlCustomEvents,c=u.name,p=u.setting,y=u.slots,I=u.slotPosition;o&&i&&a||Hi("The ".concat(c," controlName,controlIcon,controlType is not define"));var g;this.id=(g=n==null?void 0:n.id)!==null&&g!==void 0?g:gu(10),this.name=o,this.icon=i;var O;this.type=(O=n==null?void 0:n.type)!==null&&O!==void 0?O:a,this.props=new it(n==null?void 0:n.props,(Ul(this,t)?this.constructor:void 0).controlName);var _;this.controlType=(_=n==null?void 0:n.controlType)!==null&&_!==void 0?_:"base",this.setting=ut(p);var C;this.fieldType=(C=n==null?void 0:n.fieldType)!==null&&C!==void 0?C:l,this.eventKeys=ut(s),this.customEvents=ut(f),this.slots=ut(y),this.slotPosition=ut(I),Promise.resolve().then(function(){r._callControlHooks("postInstance",n)})}return UC(t,[{key:"rules",get:function(){var r=this.props.constructor.Rules;return r?new r(this.props):{}}},{key:"_callControlHooks",value:function(){for(var r=arguments.length,u=new Array(r),o=0;o<r;o++)u[o]=arguments[o];var i,a=HC(u),l=a[0],s=a.slice(1);return(i=Ml).emit.apply(i,[l,this].concat(qo(s)))}},{key:"preUpdate",value:function(r,u){this._callControlHooks("preUpdateProps",r,u)}},{key:"postUpdate",value:function(r,u){this._callControlHooks("postUpdateProps",r,u)}},{key:"updateProps",value:function(r,u){this.preUpdate(r,u),fl(this.props,r,u),this.postUpdate(r,u)}},{key:"preValidate",value:function(){var r=this;return Vl(function(){var u,o,i;return Gl(this,function(a){switch(a.label){case 0:return u=Wl({},r.rules),[4,r._callControlHooks("preValidate",u)];case 1:return o=a.sent(),i=o[o.length-1],[2,i===!1?void 0:i]}})})()}},{key:"validate",value:function(r,u){var o=this;return Vl(function(){var i,a,l,s;return Gl(this,function(f){switch(f.label){case 0:return[4,o.preValidate()];case 1:i=f.sent(),a=i!==void 0?i:Wl({},o.rules),Array.isArray(u)&&u.forEach(function(c){a.hasOwnProperty(c)&&delete a[c]}),l=MC(a,r),f.label=2;case 2:return f.trys.push([2,4,,5]),[4,l.validate(o.props)];case 3:return f.sent(),[2,!0];case 4:throw s=f.sent(),s.control||(s.control=o),s;case 5:return[2]}})})()}},{key:"toDataBindModel",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,u=this.fieldType,o=this.id,i=this.type,a=this.props,l=a.dataBind,s=a.datasourceBind,f=a.optionConfig,c=a.caption,p=a.required,y=a.maxLength,I=a.options,g=a.encrypted,O=a.encryptedMode;if(!(!u&&!l&&!s)){var _={parentId:r,fieldType:u,controlId:o,caption:c,type:i,props:{}};switch(l&&(_.dataBind=l),f){case"datasource":case void 0:s&&(_.datasourceBind=s);break;case"custom":_.props.options=I;break}return p!==void 0&&(_.required=p),y!==void 0&&(_.maxLength=y),g!==void 0&&(_.encrypted=g),O!==void 0&&(_.encryptedMode=O),_}}},{key:"preToSchema",value:function(){this._callControlHooks("preToSchema",this)}},{key:"toSchema",value:function(){return this.preToSchema(),{id:this.id,type:this.type,props:ut(this.props),fieldType:this.fieldType,controlType:this.controlType}}}],[{key:"updateBasicControl",value:function(r,u){if(r==="setting"){if(u.add){var o;(o=this.setting).push.apply(o,qo(u.add))}u.remove&&this.removeSettingItem(u.remove),u.update}}}]),t}();X(Ee,"mode","Designer"),X(Ee,"slots",void 0),X(Ee,"slotPosition",void 0),X(Ee,"controlName","\u63A7\u4EF6"),X(Ee,"controlIcon","icon"),X(Ee,"controlType","control"),X(Ee,"controlFieldType",void 0),X(Ee,"controlEventKeys",[]),X(Ee,"controlCustomEvents",[]),X(Ee,"setting",[]),X(Ee,"__is_control__",!0),X(Ee,"removeSettingItem",ql),X(Ee,"updateSettingItem",Kl);function ql(e){var t=this,n=Array.isArray(e)?e:[e];n.forEach(function(r){var u,o=typeof r!="string",i=(u=t.setting)===null||u===void 0?void 0:u.findIndex(function(s){return s.key===(o?r.key:r)});if(i!==-1){var a,l;o?t.setting[i].showItems=(a=t.setting[i].showItems)===null||a===void 0?void 0:a.filter(function(s){return!r.hideItems.includes(s)}):t.setting.splice(i,1),o&&!(!((l=t.setting[i].showItems)===null||l===void 0)&&l.length)&&t.setting.splice(i,1)}})}function Kl(e,t){var n=this,r=typeof e=="string"?[e]:e;r.forEach(function(u){var o=n.setting.find(function(s){return s.key===u});if(o){if(typeof t=="boolean")o.visible=t;else if((typeof t=="undefined"?"undefined":GC(t))==="object"){var i,a=(i=t.type)!==null&&i!==void 0?i:"replace";if(a==="replace")o.showItems=t.showItems;else{var l;(l=o.showItems).push.apply(l,qo(t.showItems))}}}})}function qC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function KC(e,t,n){return t&&Xl(e.prototype,t),n&&Xl(e,n),e}function Te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XC(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var Wn=function(){function t(n){qC(this,t),Te(this,"id",void 0),Te(this,"type",void 0),Te(this,"controlType",void 0),Te(this,"props",void 0),Te(this,"fieldType",void 0),Te(this,"customEvents",[]),Te(this,"pageStatus",void 0),Te(this,"parent",null);var r=XC(this,t)?this.constructor:void 0,u=r.controlType,o=r.controlFieldType,i=r.name,a=r.controlCustomEvents;u||Hi("The ".concat(i," controlType is not define"));var l;this.id=(l=n==null?void 0:n.id)!==null&&l!==void 0?l:gu(10);var s;this.type=(s=n==null?void 0:n.type)!==null&&s!==void 0?s:u,this.props=new it(n==null?void 0:n.props),this.customEvents=a;var f;this.controlType=(f=n==null?void 0:n.controlType)!==null&&f!==void 0?f:"base";var c;this.fieldType=(c=n==null?void 0:n.fieldType)!==null&&c!==void 0?c:o;var p;this.pageStatus=(p=n==null?void 0:n.pageStatus)!==null&&p!==void 0?p:Lo.UNKNOWN}return KC(t,[{key:"rules",get:function(){var r=this.props.constructor.RuntimeRules;if(r){var u=new r(this.props);return Array.from(u)}return[]}}]),t}();Te(Wn,"mode","Runtime"),Te(Wn,"controlType","control"),Te(Wn,"controlFieldType",void 0),Te(Wn,"__is_control__",!0),Te(Wn,"controlCustomEvents",[]);function Jl(e){return(e==null?void 0:e.dataCode)!==void 0&&(e==null?void 0:e.fieldCode)!==void 0}function _e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ko(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qr(e){return qr=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},qr(e)}function Xo(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Jo(e,t)}function JC(e,t){return t&&(zC(t)==="object"||typeof t=="function")?t:_e(e)}function Jo(e,t){return Jo=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Jo(e,t)}function zC(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function QC(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function zo(e){var t=QC();return function(){var r=qr(e),u;if(t){var o=qr(this).constructor;u=Reflect.construct(r,arguments,o)}else u=r.apply(this,arguments);return JC(this,u)}}var ZC=function(e){Xo(n,e);var t=zo(n);function n(r){Ko(this,n);var u;u=t.call(this,r),ae(_e(u),"dataBind",{}),ae(_e(u),"caption",{type:"string",required:!0,message:$.getMessage("pleaseEnterCaption")}),ae(_e(u),"isHideCaption",{type:"boolean"}),ae(_e(u),"labelPosition",{type:"enum",enum:["top","left"]}),ae(_e(u),"defaultState",{type:"enum",enum:["default","readonly"]}),ae(_e(u),"required",{type:"boolean"}),ae(_e(u),"captionTip",{type:"string",required:!1,message:$.getMessage("pleaseEnterCaptionTip")});var o={fieldCode:{type:"string",required:!0,message:$.getMessage("pleaseEnterFieldCode")},dataCode:{type:"string",required:!0,message:$.getMessage("pleaseEnterFieldCode")}};if(Jl(r.dataBind))u.dataBind={type:"object",required:!0,fields:ut(o),message:$.getMessage("pleaseEnterFieldCode")};else{var i={type:"object",required:!0,fields:{},message:$.getMessage("pleaseEnterFieldCode")};Object.keys(r.dataBind).forEach(function(a){i.fields[a]={type:"object",required:!0,fields:ut(o),message:$.getMessage("pleaseEnterFieldCode")}}),u.dataBind=i}return r.isShowCaptionTip&&(u.captionTip.required=!0),u}return n}(Mo),YC=function(e){Xo(n,e);var t=zo(n);function n(r){Ko(this,n);var u;u=t.call(this,r);var o=r.isHide?!1:r.required;return o&&u.push({type:"string",required:o,message:r.requiredMessage!==""?r.requiredMessage:$.getMessage("runtimeRequired",{caption:r.caption})}),u}return n}(Nl),Qo=function(e){Xo(n,e);var t=zo(n);function n(r){Ko(this,n);var u;u=t.call(this,r),ae(_e(u),"caption",void 0),ae(_e(u),"isHideCaption",void 0),ae(_e(u),"isShowCaptionTip",void 0),ae(_e(u),"captionTip",void 0),ae(_e(u),"labelPosition",void 0),ae(_e(u),"dataBind",void 0),ae(_e(u),"defaultValue",void 0),ae(_e(u),"placeholder",void 0),ae(_e(u),"defaultState",void 0),ae(_e(u),"required",void 0),ae(_e(u),"requiredMessage",void 0);var o;u.caption=(o=r==null?void 0:r.caption)!==null&&o!==void 0?o:"";var i;u.isHideCaption=(i=r==null?void 0:r.isHideCaption)!==null&&i!==void 0?i:!1;var a;u.isShowCaptionTip=(a=r==null?void 0:r.isShowCaptionTip)!==null&&a!==void 0?a:!1;var l;u.captionTip=(l=r==null?void 0:r.captionTip)!==null&&l!==void 0?l:"";var s;u.defaultState=(s=r==null?void 0:r.defaultState)!==null&&s!==void 0?s:"default";var f;u.labelPosition=(f=r==null?void 0:r.labelPosition)!==null&&f!==void 0?f:"top";var c;u.placeholder=(c=r==null?void 0:r.placeholder)!==null&&c!==void 0?c:"";var p;u.required=(p=r==null?void 0:r.required)!==null&&p!==void 0?p:!1;var y;u.requiredMessage=(y=r==null?void 0:r.requiredMessage)!==null&&y!==void 0?y:"",u.dataBind=new Il(r==null?void 0:r.dataBind);var I;return u.defaultValue=(I=r==null?void 0:r.defaultValue)!==null&&I!==void 0?I:"",u}return n}(it);ae(Qo,"Rules",ZC),ae(Qo,"RuntimeRules",YC);function Zo(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xr(e){return Xr=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Xr(e)}function tS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Yo(e,t)}function nS(e,t){return t&&(rS(t)==="object"||typeof t=="function")?t:Zo(e)}function Yo(e,t){return Yo=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Yo(e,t)}function rS(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}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(e){return!1}}function oS(e){var t=uS();return function(){var r=Xr(e),u;if(t){var o=Xr(this).constructor;u=Reflect.construct(r,arguments,o)}else u=r.apply(this,arguments);return nS(this,u)}}var zl=function(e){tS(n,e);var t=oS(n);function n(r){eS(this,n);var u;return u=t.call(this,r),Kr(Zo(u),"controlType","form"),Kr(Zo(u),"props",void 0),u.props=new Qo(r==null?void 0:r.props),u}return n}(Ee);Kr(zl,"controlEventKeys",["on_change","on_focus","on_blur"]),Kr(zl,"controlCustomAttributes",void 0);function iS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jr(e){return Jr=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Jr(e)}function sS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ei(e,t)}function lS(e,t){return t&&(cS(t)==="object"||typeof t=="function")?t:iS(e)}function ei(e,t){return ei=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},ei(e,t)}function cS(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function fS(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function dS(e){var t=fS();return function(){var r=Jr(e),u;if(t){var o=Jr(this).constructor;u=Reflect.construct(r,arguments,o)}else u=r.apply(this,arguments);return lS(this,u)}}var pS=function(e){sS(n,e);var t=dS(n);function n(r){return aS(this,n),t.call(this,r)}return n}(it);function ti(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _S(e){if(Array.isArray(e))return ti(e)}function kt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ql(e,t,n,r,u,o,i){try{var a=e[o](i),l=a.value}catch(s){n(s);return}a.done?t(l):Promise.resolve(l).then(r,u)}function hS(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var o=e.apply(t,n);function i(l){Ql(o,r,u,i,a,"next",l)}function a(l){Ql(o,r,u,i,a,"throw",l)}i(void 0)})}}function mS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vS(e,t,n){return t&&Zl(e.prototype,t),n&&Zl(e,n),e}function St(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sn(e,t,n){return typeof Reflect!="undefined"&&Reflect.get?sn=Reflect.get:sn=function(u,o,i){var a=IS(u,o);if(!!a){var l=Object.getOwnPropertyDescriptor(a,o);return l.get?l.get.call(i||u):l.value}},sn(e,t,n||e)}function Ot(e){return Ot=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ot(e)}function gS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ni(e,t)}function ES(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function yS(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bS(){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 CS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable}))),r.forEach(function(u){St(e,u,n[u])})}return e}function SS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function OS(e,t){return t=t!=null?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):SS(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function AS(e,t){return t&&(FS(t)==="object"||typeof t=="function")?t:kt(e)}function ni(e,t){return ni=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},ni(e,t)}function IS(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=Ot(e),e!==null););return e}function Yl(e){return _S(e)||yS(e)||wS(e)||bS()}function FS(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function wS(e,t){if(!!e){if(typeof e=="string")return ti(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ti(e,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(e){return!1}}function NS(e){var t=DS();return function(){var r=Ot(e),u;if(t){var o=Ot(this).constructor;u=Reflect.construct(r,arguments,o)}else u=r.apply(this,arguments);return AS(this,u)}}function BS(e,t){var n,r,u,o,i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(s){return function(f){return l([s,f])}}function l(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(u=s[0]&2?r.return:s[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,s[1])).done)return u;switch(r=0,u&&(s=[s[0]&2,u.value]),s[0]){case 0:case 1:u=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]<u[3])){i.label=s[1];break}if(s[0]===6&&i.label<u[1]){i.label=u[1],u=s;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(s);break}u[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(f){s=[6,f],r=0}finally{n=u=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}var TS=1e4,ec=function(t){gS(r,t);var n=NS(r);function r(u){mS(this,r);var o;o=n.call(this,u),St(kt(o),"controlType","layout"),St(kt(o),"children",void 0),St(kt(o),"excludes",void 0),St(kt(o),"childrenMaxLength",void 0),St(kt(o),"props",void 0);var i=ES(this,r)?this.constructor:void 0,a=i.excludes,l=i.childrenMaxLength;return o.props=new pS(u==null?void 0:u.props),To(kt(o),"children",u==null?void 0:u.children,void 0,"Designer"),o.excludes=ut(a),o.childrenMaxLength=l,o}return vS(r,[{key:"judgeExcludesChildren",value:function(o){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(o)}},{key:"judgeJoinChildren",value:function(o){var i=this.judgeExcludesChildren(o);return i&&this.childrenMaxLength>this.children.length}},{key:"validate",value:function(o,i){var a=this,l=this,s=function(){return sn(Ot(r.prototype),"validate",a)};return hS(function(){return BS(this,function(f){switch(f.label){case 0:return[4,s().call(l,o,i)];case 1:return f.sent(),[4,Promise.all(l.children.map(function(c){return c.validate(o,i)}))];case 2:return f.sent(),[2,!0]}})})()}},{key:"toDataBindModel",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=sn(Ot(r.prototype),"toDataBindModel",this).call(this),a=i?[i]:[];return this.children.reduce(function(l,s){var f=s.toDataBindModel(o);if(Array.isArray(f)){var c=f.filter(function(p){return!!p});return Yl(l).concat(Yl(c))}return f&&l.push(f),l},a)}},{key:"toSchema",value:function(){var o=sn(Ot(r.prototype),"toSchema",this).call(this),i=this.children.map(function(a){var l=a.toSchema();return l});return OS(CS({},o),{children:i})}}]),r}(Ee);St(ec,"excludes",!1),St(ec,"childrenMaxLength",TS);function at(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ln(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zr(e){return zr=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},zr(e)}function LS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ri(e,t)}function PS(e,t){return t&&($S(t)==="object"||typeof t=="function")?t:at(e)}function ri(e,t){return ri=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},ri(e,t)}function $S(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function MS(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function xS(e){var t=MS();return function(){var r=zr(e),u;if(t){var o=zr(this).constructor;u=Reflect.construct(r,arguments,o)}else u=r.apply(this,arguments);return PS(this,u)}}var VS=function(e){LS(n,e);var t=xS(n);function n(r,u,o){RS(this,n);var i;i=t.call(this,u),ln(at(i),"headers",void 0),ln(at(i),"footers",void 0),ln(at(i),"pageIndex",void 0),ln(at(i),"pageSize",void 0),ln(at(i),"pageSizeOptions",void 0),ln(at(i),"totalCount",void 0),To(at(i),"headers",u==null?void 0:u.headers,r,o),To(at(i),"footers",u==null?void 0:u.footers,r);var a;i.pageIndex=(a=u==null?void 0:u.pageIndex)!==null&&a!==void 0?a:1;var l;i.pageSize=(l=u==null?void 0:u.pageSize)!==null&&l!==void 0?l:20;var s;i.pageSizeOptions=(s=u==null?void 0:u.pageSizeOptions)!==null&&s!==void 0?s:[20];var f;return i.totalCount=(f=u==null?void 0:u.totalCount)!==null&&f!==void 0?f:0,i}return n}(it);function ui(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kS(e){if(Array.isArray(e))return ui(e)}function Qr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tc(e,t,n,r,u,o,i){try{var a=e[o](i),l=a.value}catch(s){n(s);return}a.done?t(l):Promise.resolve(l).then(r,u)}function US(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var o=e.apply(t,n);function i(l){tc(o,r,u,i,a,"next",l)}function a(l){tc(o,r,u,i,a,"throw",l)}i(void 0)})}}function jS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function WS(e,t,n){return t&&nc(e.prototype,t),n&&nc(e,n),e}function Zr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cn(e,t,n){return typeof Reflect!="undefined"&&Reflect.get?cn=Reflect.get:cn=function(u,o,i){var a=JS(u,o);if(!!a){var l=Object.getOwnPropertyDescriptor(a,o);return l.get?l.get.call(i||u):l.value}},cn(e,t,n||e)}function At(e){return At=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},At(e)}function HS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&oi(e,t)}function GS(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qS(){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 rc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable}))),r.forEach(function(u){Zr(e,u,n[u])})}return e}function KS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function uc(e,t){return t=t!=null?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):KS(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function XS(e,t){return t&&(zS(t)==="object"||typeof t=="function")?t:Qr(e)}function oi(e,t){return oi=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},oi(e,t)}function JS(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=At(e),e!==null););return e}function oc(e){return kS(e)||GS(e)||QS(e)||qS()}function zS(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function QS(e,t){if(!!e){if(typeof e=="string")return ui(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ui(e,t)}}function ZS(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function YS(e){var t=ZS();return function(){var r=At(e),u;if(t){var o=At(this).constructor;u=Reflect.construct(r,arguments,o)}else u=r.apply(this,arguments);return XS(this,u)}}function eO(e,t){var n,r,u,o,i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(s){return function(f){return l([s,f])}}function l(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(u=s[0]&2?r.return:s[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,s[1])).done)return u;switch(r=0,u&&(s=[s[0]&2,u.value]),s[0]){case 0:case 1:u=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]<u[3])){i.label=s[1];break}if(s[0]===6&&i.label<u[1]){i.label=u[1],u=s;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(s);break}u[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(f){s=[6,f],r=0}finally{n=u=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}var tO=function(e){HS(n,e);var t=YS(n);function n(r){jS(this,n);var u;return u=t.call(this,r),Zr(Qr(u),"controlType","list"),Zr(Qr(u),"props",void 0),u.props=new VS(Qr(u),r==null?void 0:r.props,"Designer"),u}return WS(n,[{key:"validate",value:function(u,o){var i=this,a=this,l=function(){return cn(At(n.prototype),"validate",i)};return US(function(){return eO(this,function(s){switch(s.label){case 0:return[4,l().call(a,u)];case 1:return s.sent(),[4,Promise.all(a.props.headers.map(function(f){return f.validate(u,o)}))];case 2:return s.sent(),[2,!0]}})})()}},{key:"toDataBindModel",value:function(){var u=cn(At(n.prototype),"toDataBindModel",this).call(this),o=u?[u]:[],i=this.id;return this.props.headers.reduce(function(a,l){var s=l.toDataBindModel(i);if(Array.isArray(s)){var f=s.filter(function(c){return!!c});return oc(a).concat(oc(f))}return s&&a.push(s),a},o)}},{key:"toSchema",value:function(){var u=cn(At(n.prototype),"toSchema",this).call(this),o=this.props.headers.map(function(i){return i.toSchema()});return uc(rc({},u),{props:uc(rc({},this.props),{headers:o})})}}]),n}(Ee);Zr(tO,"controlFieldType",He.LIST);function we(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ic(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function De(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yr(e){return Yr=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Yr(e)}function ac(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ii(e,t)}function nO(e,t){return t&&(rO(t)==="object"||typeof t=="function")?t:we(e)}function ii(e,t){return ii=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},ii(e,t)}function rO(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function uO(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function sc(e){var t=uO();return function(){var r=Yr(e),u;if(t){var o=Yr(this).constructor;u=Reflect.construct(r,arguments,o)}else u=r.apply(this,arguments);return nO(this,u)}}var oO=function(e){ac(n,e);var t=sc(n);function n(r){ic(this,n);var u;return u=t.call(this,r),De(we(u),"caption",{type:"string",required:!0,message:$.getMessage("pleaseEnterCaption")}),De(we(u),"width",{type:"number",required:!1,message:$.getMessage("pleaseEnterColumnWidth")}),u.width.required=r.widthType==="px",u}return n}(Mo),iO=function(e){ac(n,e);var t=sc(n);function n(r){ic(this,n);var u;u=t.call(this,r),De(we(u),"widthType",void 0),De(we(u),"width",void 0),De(we(u),"caption",void 0),De(we(u),"dataBind",void 0),De(we(u),"autoWidth",void 0),De(we(u),"fixed",void 0),De(we(u),"sort",void 0),De(we(u),"align",void 0),De(we(u),"colSpan",void 0),De(we(u),"autoHeight",void 0),De(we(u),"children",void 0);var o;u.width=(o=r==null?void 0:r.width)!==null&&o!==void 0?o:150,u.widthType=(r==null?void 0:r.widthType)||"auto";var i;u.caption=(i=r==null?void 0:r.caption)!==null&&i!==void 0?i:"";var a;u.fixed=(a=r==null?void 0:r.fixed)!==null&&a!==void 0?a:"none",u.autoWidth=new eC(r==null?void 0:r.autoWidth),u.dataBind=new Il(r==null?void 0:r.dataBind);var l;u.sort=(l=r==null?void 0:r.sort)!==null&&l!==void 0?l:!0,u.align=r==null?void 0:r.align,u.colSpan=r==null?void 0:r.colSpan;var s;return u.autoHeight=(s=r==null?void 0:r.autoHeight)!==null&&s!==void 0?s:!1,u}return n}(it);De(iO,"Rules",oO);function ai(e){return"children"in e&&$n(e.children)}function lc(e){return"headers"in e.props&&$n(e.props.headers)}function eu(e,t){Array.isArray(e)&&e.map(n=>{n.type===L.SUBTABLE?eu(n.props.headers,t):ai(n)?eu(n==null?void 0:n.children,t):n.controlType===ve.FORM&&t(n)})}const aO=[L.AMOUNT,L.CALC,L.DATE_RANGE];$.getMessage("amount"),He.DECIMAL,$.getMessage("currency"),He.VARCHAR,$.getMessage("result"),He.DECIMAL,$.getMessage("unit"),He.VARCHAR,$.getMessage("startTime"),He.TIMESTAMP,$.getMessage("endTime"),He.TIMESTAMP;function sO(e){let t=[];return eu(e,n=>{n.controlType===ve.FORM?t.push(n):(n.type,L.SUBTABLE)}),t}function lO(e,t=""){return!e||!Array.isArray(e)?[]:e.map(n=>{if(!n.dataBind||n.type===L.TITLE)return n;if(aO.includes(n.type)){const r=n.dataBind;Object.keys(r).forEach(u=>{const o=r[u],i=n.controlId+"_"+u;o.fieldCode=cc(i),o.dataCode=t})}else n.dataBind.fieldCode=cc(n.controlId),n.dataBind.dataCode=t;return n})}function cc(e){const t="field_";return e.startsWith(t)?e:t+e}function si(e){return Array.isArray(e)?e.map(t=>t.toSchema()):e.toSchema()}function li(e){return Array.isArray(e)?e.map(t=>t.toDataBindModel()).filter(t=>!!t).flat():e.toDataBindModel()}function ci(e,t,n){return Gt(this,null,function*(){return Array.isArray(e)?(yield Promise.all(e.map(u=>u.validate(t,n)))).every(u=>u):yield e.validate(t,n)})}const cO=[L.TITLE,L.GRID_TABLE_COLUMN,L.SUBTABLE_COLUMN,L.OPERATION_COLUMN,L.DATA_VIEW,L.LIST_VIEW,L.HEADER,L.FOOTER,L.SIMPLE_SEARCH,L.ROW,L.GRID_ROW,L.COL,L.GRID,L.DIVIDER,L.TAB_PANE,L.TAB,L.CARD_GROUP,L.ACTION_BAR,L.GRID_LAYOUT_CONTAINER,L.GRID_LAYOUT_WRAP],fO=[L.CALC],dO={check:{id:"listPageCheckBtnId",caption:$.getMessage("view")},edit:{id:"listPageEditBtnId",caption:$.getMessage("edit")},delete:{id:"listPageDeleteBtnId",caption:$.getMessage("delete")}};function Hn(e,t){var r,u,o,i,a,l,s,f,c;const n=[];if($n(e))n.push(...e.map(p=>Hn(p,t)).flat());else{const p=e.type,{caption:y,content:I}=e.props;let g;if(cO.includes(p))p===L.OPERATION_COLUMN&&Object.entries(dO).reduce((O,[_,{caption:C,id:m}])=>{var A;const v=e.props[_];return v&&v.isShow&&O.push({controlId:m,caption:C,type:e.type,controlType:e.controlType,parentId:(A=t==null?void 0:t.controlId)!=null?A:null,canEdit:!1,canRead:!1,canHide:!0,group:"element"}),O},n);else if(g={controlId:e.id,caption:y||I||e.name,type:e.type,controlType:e.controlType,parentId:(r=t==null?void 0:t.controlId)!=null?r:null,canEdit:!fO.includes(p),canRead:!0,canHide:!0,group:"element"},t&&t.type===L.SUBTABLE&&(g.caption=t.caption+"_"+g.caption),p===L.VUE_FORM_ITEM&&(g.caption=e.props.controlExportName||e.name),(e.controlType===ve.FORM||e.controlType===ve.COLUMN)&&((o=(u=e.props)==null?void 0:u.dataBind)==null?void 0:o.fieldCode)!==void 0&&((a=(i=e.props)==null?void 0:i.dataBind)==null?void 0:a.fieldCode)!==""&&(g.group="field"),n.push(g),p===L.VUE_FORM_ITEM){let O="element";((s=(l=e.props)==null?void 0:l.dataBind)==null?void 0:s.fieldCode)!==void 0&&((c=(f=e.props)==null?void 0:f.dataBind)==null?void 0:c.fieldCode)!==""&&(O="field");const _=e.props.permissions;_==null||_.map(C=>{var m;g={controlId:C.key,caption:C.caption,type:e.type,controlType:e.controlType,parentId:(m=e.id)!=null?m:null,canEdit:!0,canRead:!0,canHide:!0,group:O},n.push(g)})}e.children&&n.push(...e.children.map(O=>Hn(O,t)).flat()),e.controlType===ve.LIST&&n.push(...e.props.headers.map(O=>Hn(O,g)).flat())}return n}class fn extends xn{constructor(){super("Designer"),this.toolbox=[],this.services={},this.eventLogic=new Mn,this.fieldTypes=He,this.controlSettingMap=new Map,new.target.staticControls.forEach(t=>{const{Designer:n,Setting:r}=t;this.controlSettingMap.set(n.controlType,r)})}registerControl(t){this.constructor.register(t,"Designer");const{Designer:n,Setting:r}=t;this.register(n),this.registeredControlTypes.add(n.controlType),this.controlSettingMap.set(n.controlType,r)}getControlSetting(t){const n=this.controlSettingMap.get(t);return n||null}setInstance(t,n,r){try{if(!t)return;t.updateProps(n,r)}catch(u){throw u}}eachControls(t){this.getControls().forEach(t)}getInitControl(){return[this.createControlInstance("grid")]}checkSchema(...t){return Gt(this,null,function*(){return ci(...t)})}getModelBindInfoList(...t){return li(...t)}getSchema(...t){return si(...t)}listenControlHook(...t){return Ml.on(...t)}}fn.EventLogic=Mn;class pO{constructor(){this.designer=new fn}ListPageBuilder(){const t=this.designer.createControlInstance(L.LIST_VIEW),n=this.designer.createControlInstance(L.SIMPLE_SEARCH),r=this.designer.createControlInstance(L.GRID_TABLE),u=this.designer.createControlInstance(L.CREATE_FORM_LIST_BUTTON),o=this.designer.createControlInstance(L.IMPORT_RECORD_LIST_BUTTON),i=this.designer.createControlInstance(L.EXPORT_LIST_BUTTON),a=this.designer.createControlInstance(L.EXPORT_RECORD_LIST_BUTTON);return r.children.push(u),r.children.push(o),r.children.push(i),r.children.push(a),t.children.push(n),t.children.push(r),t}ProListPageBuilder(){const t=this.designer.createControlInstance(L.LIST_VIEW);t.props.countType="async";const n=this.designer.createControlInstance(L.SIMPLE_SEARCH),r=this.designer.createControlInstance(L.GRID_TABLE),u=this.designer.createControlInstance(L.EXPORT_LIST_BUTTON),o=this.designer.createControlInstance(L.EXPORT_RECORD_LIST_BUTTON);return r.children.push(u),r.children.push(o),t.children.push(n),t.children.push(r),t.props.rowStyle={type:"rules",interval:{color:""},rules:[{id:"default",name:$.getMessage("approvedDocuments"),color:"theme",filters:[{ruleId:1,symbol:"op_equal",leftVariableBo:{type:"varchar",value:"process_status",name:$.getMessage("processStatus")},checked:!1,describe:"ruleLine",type:"condition",rightVariableBo:{type:"custom",value:["COMPLETE"],displayBos:[]},isLowPerformance:!1,isMoreRelation:!1}],settings:[{color:"theme",field_codes:["process_status"],type:"fontColor",scope:"col"}],script:"(SpecialMatch(data,sys,'process_status','varchar','op_equal','COMPLETE'))"}]},t}FormPageBuilder(){const t=this.designer.createControlInstance(L.DATA_VIEW),n=this.designer.createControlInstance(L.TITLE),r=this.designer.createControlInstance(L.GRID);return t.children.push(n),t.children.push(r),t}VuePageBuilder(){const t=this.designer.createControlInstance(L.GRID),n=this.designer.createControlInstance(L.VUE_PAGE);return n.props.isHideCaption=!0,n.props.controlExportName="VuePage",t.children.push(n),t}}class fc{constructor(t){var n;this.selected=null,this.selectedInstanceDataScopeParent=null,this.selectedDataScopeFlatInstances=[],this.selectedInstanceSetting=[],this.selectedInstanceSettingItems=[],this.selectedFieldItem=null,this.external={},this.movingInstance=null,this.movingInstanceOldParent=null,this.movingInstanceOldDataScopeParent=null,this.getParentBeforeInstanceMove=(n=t.getParentBeforeInstanceMove)!=null?n:r=>r.parent,this.instance=t.instance,this.getFlatInstances()}get selectedRules(){return this.selected?this.selected.rules:null}get selectedAntdRules(){const t=this.selectedRules;return t||null}setInstances(t){this.instance=t,this.getFlatInstances()}setSelectInstance(t){this.selected=t,this.selectedInstanceDataScopeParent=t?qn(t):null,this.selectedDataScopeFlatInstances=this.selectedInstanceDataScopeParent?_c(this.selectedInstanceDataScopeParent):[]}setSelectInstanceSettings(t){this.selectedInstanceSetting=t,this.selectedInstanceSettingItems=[],this.selectedInstanceSetting.forEach(n=>{this.selectedInstanceSettingItems.push(...this.getSettingItems(n))})}getSettingItems(t){return t.type==="group"?t.items:t.items.reduce((n,r)=>(n.push(...r.items),n),[])}setSelectedFieldItem(t){this.selectedFieldItem=t}setMovingInstance(t){this.movingInstance=t,this.movingInstanceOldParent=t?this.getParentBeforeInstanceMove(t):null,this.movingInstanceOldDataScopeParent=qn(t)}updateDataFieldCodeMap(t){const n=qn(t);if(!n)return;const r=this.dataFieldCodeMap.get(n.props.datasourceBind.dataCode);if(!!r){for(const[u,o]of r.entries())if(o.id===t.id){r.delete(u);break}pc(t,this.dataFieldCodeMap)}}getFlatInstances(){const t=[],n=new Map,r=new Map;Gn(this.instance,u=>{t.push(u),n.set(u.id,u),pc(u,r)}),this.flatInstances=t,this.instanceIdMap=n,this.dataFieldCodeMap=r}}function dc(e,t,n){const{dataCode:r,fieldCode:u}=t;r&&u&&(e.has(r)||e.set(r,new Map),e.get(r).set(u,n))}function pc(e,t){if(e.controlType===ve.FORM){const n=e.props.dataBind;Jl(n)?dc(t,n,e):Object.values(n).forEach(r=>{dc(t,r,e)})}}function Gn(e,t){(Array.isArray(e)?e:[e]).forEach(r=>{t(r),ai(r)&&Gn(r.children,t),lc(r)&&Gn(r.props.headers,t)})}function fi(e){return[L.SUBTABLE,L.DATA_VIEW,L.LIST_VIEW].includes(e.type)}function qn(e){let t=e?e.parent:null;if(!t)return null;for(;t&&!fi(t);)t=t.parent;return t}function _c(e){const t=[e];return Gn(e,n=>{n!==e&&t.includes(n.parent)&&!fi(n)&&t.push(n)}),t}function _O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hO(e,t,n){return t&&hc(e.prototype,t),n&&hc(e,n),e}function di(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var st=function(){function e(t){_O(this,e),di(this,"visible",void 0),di(this,"expression",void 0),di(this,"updateParent",void 0);var n;this.visible=(n=t==null?void 0:t.visible)!==null&&n!==void 0?n:!0;var r;this.expression=(r=t==null?void 0:t.expression)!==null&&r!==void 0?r:!1;var u;this.updateParent=(u=t==null?void 0:t.updateParent)!==null&&u!==void 0?u:!1}return hO(e,[{key:"isAtomicComponent",get:function(){return!0}}]),e}();function mO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vO(e,t,n){return t&&mc(e.prototype,t),n&&mc(e,n),e}function ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gO=function(){function e(t){mO(this,e),ze(this,"type",void 0),ze(this,"label",void 0),ze(this,"key",void 0),ze(this,"component",void 0),ze(this,"effect",void 0),ze(this,"scopeEffect",void 0),ze(this,"defaultValue",void 0),ze(this,"validator",void 0),ze(this,"props",void 0),ze(this,"effectKeys",void 0),this.type=t.type,this.label=t.label,this.key=t.key,this.component=t.component;var n;this.effect=(n=t.effect)!==null&&n!==void 0?n:{};var r;this.scopeEffect=(r=t.scopeEffect)!==null&&r!==void 0?r:sE,this.defaultValue=t.defaultValue,this.validator=t.validator;var u;this.props=(u=t.props)!==null&&u!==void 0?u:new st,this.effectKeys=Object.keys(this.effect)}return vO(e,[{key:"filterEffects",value:function(n){var r=this;return n===""?Object.values(this.effect):this.effectKeys.filter(function(u){var o=new RegExp("^".concat(u,"(\\.\\w+)*$"));return o.test(n)}).map(function(u){return r.effect[u]})}},{key:"callEffectFn",value:function(n,r){try{var u=n.apply(null,r);Io(u)&&Object.assign(this.props,u)}catch(o){bn(`effect error
46
46
  `.concat(o))}}},{key:"callEffect",value:function(n){for(var r=this,u=arguments.length,o=new Array(u>1?u-1:0),i=1;i<u;i++)o[i-1]=arguments[i];this.filterEffects(n).forEach(function(a){return r.callEffectFn(a,o)})}},{key:"callScopeEffect",value:function(){for(var n=arguments.length,r=new Array(n),u=0;u<n;u++)r[u]=arguments[u];this.callEffectFn(this.scopeEffect,r)}}]),e}();function EO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ut(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vc=function e(t){EO(this,e),Ut(this,"type","group"),Ut(this,"title",void 0),Ut(this,"required",void 0),Ut(this,"items",void 0),Ut(this,"tips",void 0),Ut(this,"fromId",void 0),Ut(this,"visible",void 0);var n;this.title=(n=t.title)!==null&&n!==void 0?n:"";var r;this.required=(r=t.required)!==null&&r!==void 0?r:!1,this.items=t.items,this.tips=t.tips,this.visible=t.items.some(function(u){var o;return(o=u.props)===null||o===void 0?void 0:o.visible})};function yO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bO(e){return"type"in e&&e.type==="tab"}var Kn=function e(t){yO(this,e),pi(this,"type","tab"),pi(this,"title",void 0),pi(this,"items",void 0),this.title=t.title,this.items=t.items};function gc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function CO(e){if(Array.isArray(e))return e}function SO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tu(e){return tu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},tu(e)}function AO(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_i(e,t)}function IO(e,t){var n=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],u=!0,o=!1,i,a;try{for(n=n.call(e);!(u=(i=n.next()).done)&&(r.push(i.value),!(t&&r.length===t));u=!0);}catch(l){o=!0,a=l}finally{try{!u&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function FO(){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 wO(e,t){return t&&(NO(t)==="object"||typeof t=="function")?t:SO(e)}function _i(e,t){return _i=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},_i(e,t)}function DO(e,t){return CO(e)||IO(e,t)||BO(e,t)||FO()}function NO(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function BO(e,t){if(!!e){if(typeof e=="string")return gc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gc(e,t)}}function TO(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function RO(e){var t=TO();return function(){var r=tu(e),u;if(t){var o=tu(this).constructor;u=Reflect.construct(r,arguments,o)}else u=r.apply(this,arguments);return wO(this,u)}}var LO=function(e){AO(n,e);var t=RO(n);function n(r){OO(this,n);var u;return u=t.call(this,r),Io(r)&&Object.entries(r).forEach(function(o){var i=DO(o,2),a=i[0],l=i[1];u[a]=l}),u}return n}(st);function Xn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ru(e){return ru=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ru(e)}function $O(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hi(e,t)}function MO(e,t){return t&&(xO(t)==="object"||typeof t=="function")?t:Xn(e)}function hi(e,t){return hi=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},hi(e,t)}function xO(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function VO(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function kO(e){var t=VO();return function(){var r=ru(e),u;if(t){var o=ru(this).constructor;u=Reflect.construct(r,arguments,o)}else u=r.apply(this,arguments);return MO(this,u)}}var UO=function(e){$O(n,e);var t=kO(n);function n(r){PO(this,n);var u;u=t.call(this,r),nu(Xn(u),"maxLength",void 0),nu(Xn(u),"minLength",void 0),nu(Xn(u),"placeholder",void 0),nu(Xn(u),"i18n",void 0);var o;u.maxLength=(o=r==null?void 0:r.maxLength)!==null&&o!==void 0?o:"";var i;u.minLength=(i=r==null?void 0:r.minLength)!==null&&i!==void 0?i:"";var a;u.placeholder=(a=r==null?void 0:r.placeholder)!==null&&a!==void 0?a:"";var l;return u.i18n=(l=r==null?void 0:r.i18n)!==null&&l!==void 0?l:!1,u}return n}(st);function uu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ou(e){return ou=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ou(e)}function WO(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vi(e,t)}function HO(e,t){return t&&(GO(t)==="object"||typeof t=="function")?t:uu(e)}function vi(e,t){return vi=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},vi(e,t)}function GO(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}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(e){return!1}}function KO(e){var t=qO();return function(){var r=ou(e),u;if(t){var o=ou(this).constructor;u=Reflect.construct(r,arguments,o)}else u=r.apply(this,arguments);return HO(this,u)}}var XO=function(e){WO(n,e);var t=KO(n);function n(r){jO(this,n);var u;u=t.call(this,r),mi(uu(u),"max",void 0),mi(uu(u),"min",void 0),mi(uu(u),"placeholder",void 0);var o;u.max=(o=r==null?void 0:r.max)!==null&&o!==void 0?o:"";var i;u.min=(i=r==null?void 0:r.min)!==null&&i!==void 0?i:"";var a;return u.placeholder=(a=r==null?void 0:r.placeholder)!==null&&a!==void 0?a:"",u}return n}(st);function iu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function au(e){return au=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},au(e)}function zO(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ei(e,t)}function QO(e,t){return t&&(ZO(t)==="object"||typeof t=="function")?t:iu(e)}function Ei(e,t){return Ei=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Ei(e,t)}function ZO(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function YO(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function e6(e){var t=YO();return function(){var r=au(e),u;if(t){var o=au(this).constructor;u=Reflect.construct(r,arguments,o)}else u=r.apply(this,arguments);return QO(this,u)}}var t6=function(e){zO(n,e);var t=e6(n);function n(r){JO(this,n);var u;u=t.call(this,r),gi(iu(u),"showType",void 0),gi(iu(u),"tips",void 0),gi(iu(u),"disabled",void 0);var o;u.showType=(o=r==null?void 0:r.showType)!==null&&o!==void 0?o:"switch";var i;u.tips=(i=r==null?void 0:r.tips)!==null&&i!==void 0?i:"";var a;return u.disabled=(a=r==null?void 0:r.disabled)!==null&&a!==void 0?a:!1,u}return n}(st);function Ec(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function n6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r6(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function su(e){return su=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},su(e)}function u6(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yi(e,t)}function o6(e,t){return t&&(i6(t)==="object"||typeof t=="function")?t:Ec(e)}function yi(e,t){return yi=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},yi(e,t)}function i6(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function a6(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function s6(e){var t=a6();return function(){var r=su(e),u;if(t){var o=su(this).constructor;u=Reflect.construct(r,arguments,o)}else u=r.apply(this,arguments);return o6(this,u)}}var l6=function(e){u6(n,e);var t=s6(n);function n(r){n6(this,n);var u;u=t.call(this,r),r6(Ec(u),"options",void 0);var o;return u.options=(o=r==null?void 0:r.options)!==null&&o!==void 0?o:[],u}return n}(st);function bi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lu(e){return lu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},lu(e)}function f6(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ci(e,t)}function d6(e,t){return t&&(p6(t)==="object"||typeof t=="function")?t:bi(e)}function Ci(e,t){return Ci=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Ci(e,t)}function p6(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function _6(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function h6(e){var t=_6();return function(){var r=lu(e),u;if(t){var o=lu(this).constructor;u=Reflect.construct(r,arguments,o)}else u=r.apply(this,arguments);return d6(this,u)}}var m6=function(e){f6(n,e);var t=h6(n);function n(r){c6(this,n);var u;u=t.call(this,r),yc(bi(u),"placeholder",void 0),yc(bi(u),"options",void 0);var o;u.placeholder=(o=r==null?void 0:r.placeholder)!==null&&o!==void 0?o:"";var i;return u.options=(i=r==null?void 0:r.options)!==null&&i!==void 0?i:[],u}return n}(st);function Si(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cu(e){return cu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},cu(e)}function g6(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Oi(e,t)}function E6(e,t){return t&&(y6(t)==="object"||typeof t=="function")?t:Si(e)}function Oi(e,t){return Oi=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Oi(e,t)}function y6(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function b6(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function C6(e){var t=b6();return function(){var r=cu(e),u;if(t){var o=cu(this).constructor;u=Reflect.construct(r,arguments,o)}else u=r.apply(this,arguments);return E6(this,u)}}var S6=function(e){g6(n,e);var t=C6(n);function n(r){v6(this,n);var u;u=t.call(this,r),bc(Si(u),"options",void 0),bc(Si(u),"showType",void 0);var o;u.options=(o=r==null?void 0:r.options)!==null&&o!==void 0?o:[];var i;return u.showType=(i=r==null?void 0:r.showType)!==null&&i!==void 0?i:"outline",u}return n}(st);function jt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fu(e){return fu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},fu(e)}function A6(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ai(e,t)}function I6(e,t){return t&&(F6(t)==="object"||typeof t=="function")?t:jt(e)}function Ai(e,t){return Ai=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Ai(e,t)}function F6(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function w6(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function D6(e){var t=w6();return function(){var r=fu(e),u;if(t){var o=fu(this).constructor;u=Reflect.construct(r,arguments,o)}else u=r.apply(this,arguments);return I6(this,u)}}var N6=function(e){A6(n,e);var t=D6(n);function n(r){O6(this,n);var u;u=t.call(this,r),dn(jt(u),"maxLength",void 0),dn(jt(u),"minLength",void 0),dn(jt(u),"placeholder",void 0),dn(jt(u),"i18n",void 0),dn(jt(u),"maxRows",void 0),dn(jt(u),"minRows",void 0);var o;u.maxLength=(o=r==null?void 0:r.maxLength)!==null&&o!==void 0?o:"";var i;u.minLength=(i=r==null?void 0:r.minLength)!==null&&i!==void 0?i:"";var a;u.placeholder=(a=r==null?void 0:r.placeholder)!==null&&a!==void 0?a:"";var l;u.maxRows=(l=r==null?void 0:r.maxRows)!==null&&l!==void 0?l:"";var s;u.minRows=(s=r==null?void 0:r.minRows)!==null&&s!==void 0?s:"";var f;return u.i18n=(f=r==null?void 0:r.i18n)!==null&&f!==void 0?f:!1,u}return n}(st);function B6(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ii(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable}))),r.forEach(function(u){B6(e,u,n[u])})}return e}function T6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function Fi(e,t){return t=t!=null?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):T6(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function R6(e,t){switch(e){case"input":return new UO(t);case"textarea":return new N6(t);case"input-number":return new XO(t);case"switch":return new t6(t);case"radio":return new S6(t);case"checkbox":return new l6(t);case"select":return new m6(t);default:return new LO(t)}}function L6(e){return function(t){var n=e.get(t);if(!!n)return new gO(Fi(Ii({},n),{props:R6(n.component,"props"in n?n.props:void 0)}))}}function P6(e){var t=e.fields.reduce(function(u,o){return u.set(o.key,o),u},new Map);function n(u){return new vc(Fi(Ii({},u),{items:u.items.map(L6(t)).filter(Boolean)}))}function r(u){return u.map(n)}return e.groups.map(function(u){return bO(u)?new Kn(Fi(Ii({},u),{items:r(u.items)})):n(u)})}let wi="";class Cc extends vl{constructor(t){super(),this.isMounted=!1,this.id=gu(8),this.__pluginsApplied=!1,this.getSchema=si,this.getModelBindInfoList=li,this.generatePermissions=Hn,this.$options=Object.freeze(t);const{autoMount:n=!1,Designer:r=fn,schema:u,mode:o="form",store:i={},messagesI18n:a,language:l=Ri}=this.$options;$.setLocale(l,a),this.eventLogic=new Mn,this.designer=new r,this.store=new fc(Ft({instance:this.designer.createControl(Array.isArray(u)?u:[u])},i)),this.mode=o,n&&this.mount()}mount(){const{plugins:t=[]}=this.$options;this.__plugins=t,this.applyPlugins(),this.isMounted=!0}use(t){return this.__pluginsApplied||this.__plugins.push(t),this}applyPlugins(){this.__pluginsApplied||(this.__plugins.forEach(t=>{var n;try{wi=(n=t.pluginName)!=null?n:t.constructor.name,t.apply(this),wi=""}catch(r){bn(`${wi||t.constructor.name} Plugin apply Error
47
47
  ${r}`)}}),this.__pluginsApplied=!0)}emit(t,...n){return super.emit(t,n)}on(t,n){return super.on(t,n)}setInstances(t,n){this.store.setInstances(this.designer.createControl(Array.isArray(t)?t:[t],n))}beforeSelectInstance(){this.store.setSelectInstance(null),this.setSelectedFieldItem(null),this.store.setSelectInstanceSettings([])}afterSelectInstance(){const t=this.store.selected;!t||(this.setSelectedInstanceSetting(),this.emit("select",{instance:t}))}setSelectedInstanceSetting(){var u,o;const t=this.store.selected;if(!t)return;let n=this.getControlSetting(t.type);if(((u=t.parent)==null?void 0:u.controlType)===ve.WRAP){const i=this.getControlSetting((o=t.parent)==null?void 0:o.type);n=this.concatSetting(n,i,t.parent.id)}this.store.setSelectInstanceSettings(n),this.callSelectedEffect("");const r={from:null,current:this.store.selectedInstanceDataScopeParent,oldParent:null,newParent:t.parent};this.callSelectedScopeEffect(r)}concatSetting(t,n,r){var o,i,a,l,s,f,c,p;let u=t;if(((o=t[0])==null?void 0:o.type)==="tab"&&((i=n[0])==null?void 0:i.type)==="tab"){const y=t,I=n.slice(0);u=y.map((g,O)=>{const _=new Kn(g),C=I.findIndex(v=>v.title===g.title);if(C===-1)return _;const m=I.splice(C,1)[0];return m&&(_.items=[...this.formatGroupSetting(m.items,r),..._.items]),_}),I.length&&(u=[...u,...I.map(g=>this.formatGroupSetting(g,r))])}else if(((a=t[0])==null?void 0:a.type)==="group"&&((l=n[0])==null?void 0:l.type)==="group"){const y=t,I=n;u=[...this.formatGroupSetting(I,r),...y]}else if(((s=t[0])==null?void 0:s.type)==="tab"&&((f=n[0])==null?void 0:f.type)==="group"){const y=t,I=n;u=y.map((g,O)=>{const _=new Kn(g);return O===0&&(_.items=[...this.formatGroupSetting(I,r),..._.items]),_})}else if(((c=t[0])==null?void 0:c.type)==="group"&&((p=n[0])==null?void 0:p.type)==="tab"){const y=t;u=n.map((g,O)=>{const _=new Kn(g);return O===0&&(_.items=[..._.items,...this.formatGroupSetting(y,r)]),_})}return u}formatGroupSetting(t,n){if($n(t))return t.map(r=>{const u=new vc(r);return u.fromId=n,u});{const r=new Kn(t);return r.items=this.formatGroupSetting(r.items,n),r}}setControlConfig(...t){return this.designer.registerControlConfig(...t)}getControlConfig(t){return this.designer.getControlConfig(t)}getControlSetting(t){const n=this.designer.getControlSetting(t);return n?P6(n):[]}selectInstance(t){this.beforeSelectInstance(),this.store.setSelectInstance(t),this.afterSelectInstance()}setSelectedFieldItem(t){this.store.setSelectedFieldItem(t),this.callSelectedEffect("dataBind",{fieldItem:t})}moveStart(t){const n=this.getInstance(t);n&&this.store.setMovingInstance(n)}moveEnd(t=this.store.movingInstance){var l;if(t===null)return;const n=this.getInstance(t);if(!n)return;const r=this.store.movingInstanceOldDataScopeParent,u=qn(n),o=this.store.movingInstanceOldParent,i=n.parent;this.store.setMovingInstance(null),n.id!==((l=this.store.selected)==null?void 0:l.id)?this.selectInstance(n):this.store.setSelectInstance(n),this.store.getFlatInstances();const a={from:r,current:u,oldParent:o,newParent:i};this.callSelectedScopeEffect(a),o?this.emit("moved",Ft({},a)):this.emit("joined",Ft({},a))}createInstance(t,n){return this.designer.createControlInstance(t,n)}getInstance(t){return typeof t=="string"?this.store.instanceIdMap.get(t):t}getInstances(){return this.store.flatInstances}getInstancesFromType(t){return this.getInstances().filter(n=>n.type===t)}getDataScopeInstances(){return this.store.selectedDataScopeFlatInstances}getDataScopeInstancesFromType(t){return this.getDataScopeInstances().filter(n=>n.type===t)}updateInstancePropValue(t,n,r,u){var i;!fl(t.props,n,r)||(n.startsWith("dataBind")&&this.store.updateDataFieldCodeMap(t),t.id===((i=this.store.selected)==null?void 0:i.id)&&this.callSelectedEffect(n,u),this.emit("updated",{instance:t,propName:n,value:r}))}updateInstanceProps(t,n,r,u=""){Object.entries(n).forEach(([o,i])=>{const a=`${u?u+".":""}${o}`;R3(i)?this.updateInstanceProps(t,i,r,a):this.updateInstancePropValue(t,a,i,r)})}setInstance(t,n,r,u){Fo(n)?this.updateInstancePropValue(t,String(n),r,u):this.updateInstanceProps(t,n,r)}removeInstance(t){const n=t.parent;if(!n)return;const r=n.controlType===ve.LIST&&n.props.headers.includes(t)?n.props.headers:n.children,u=r.findIndex(o=>o===t);u>-1&&r.splice(u,1),this.store.getFlatInstances(),this.emit("removed",{instance:t,index:u,parent:n})}replaceInstance(t,n){const r=t.parent;if(!r)return;const u=r.controlType===ve.LIST&&r.props.headers.includes(t)?r.props.headers:r.children,o=u.findIndex(i=>i===t);o>-1&&u.splice(o,1,n),this.store.getFlatInstances()}updateInstanceType(t,n){const r=t.toSchema(),u=this.createInstance(n,{id:r.id,props:r.props});if(!u){dr(`can\u2018t update instance type to ${n}`);return}return u}validate(t,n){return ci(this.store.instance,t,n)}getCustomControlsInUse(){return this.getInstances().filter(this.assertInstanceIsCustomControl).reduce((t,n)=>(t.includes(n.type)||t.push(n.type),t),[])}assertInstanceIsCustomControl(t){return!L3(Fo(t)?t:t.type)}static register(...t){return fn.register(...t),this}static judgeControlIsRegistered(t){return fn.staticRegisteredTypes.has(t.Designer.controlType)}judgeControlIsRegistered(t){return this.designer.registeredControlTypes.has(t.Designer.controlType)}register(...t){return this.designer.registerControl(t[0]),this}assertInstance(t,n){return Fo(n)?t.type===n:n.includes(t.type)}getInstanceInListControl(t){let n=t;for(;n;){if(n.controlType===ve.LIST)return!0;n=n.parent}return!1}getInstanceParentControl(t,n){if(!!t.parent)return this.assertInstance(t.parent,n)?t.parent:this.getInstanceParentControl(t.parent,n)}callSelectedEffect(t,n={}){this.store.selectedInstanceSettingItems.forEach(r=>{r.callEffect(t,this,Ft({control:this.store.selected},n))})}callSelectedScopeEffect(t={}){this.store.selectedInstanceSettingItems.forEach(n=>{n.callScopeEffect(this,Ft({control:this.store.selected},t))})}}Cc.EventLogic=Mn,j.Builder=pO,j.Designer=fn,j.Driven=Cc,j.Store=fc,j.checkSchema=ci,j.fillModelBindInfoListFieldCode=lO,j.findInstanceDataScopeParent=qn,j.generatePermissions=Hn,j.getDataScopeFlatInstances=_c,j.getMasterFormControls=sO,j.getModelBindInfoList=li,j.hasChildrenControl=ai,j.hasHeaderControl=lc,j.isDataScopeInstance=fi,j.loop=Gn,j.loopFormControl=eu,j.toSchema=si,Object.defineProperty(j,"__esModule",{value:!0})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/model-driven-driven",
3
- "version": "2.22.2-beta.10",
3
+ "version": "2.22.2-beta.12",
4
4
  "description": "> TODO: description",
5
5
  "author": "郝晨光 <2293885211@qq.com>",
6
6
  "homepage": "",
@@ -26,10 +26,10 @@
26
26
  "postpublish": "node ../../scripts/postpublish.js"
27
27
  },
28
28
  "dependencies": {
29
- "@byteluck-fe/model-driven-controls": "2.22.2-beta.10",
30
- "@byteluck-fe/model-driven-core": "2.22.2-beta.10",
31
- "@byteluck-fe/model-driven-settings": "2.22.2-beta.10",
32
- "@byteluck-fe/model-driven-shared": "2.22.2-beta.10"
29
+ "@byteluck-fe/model-driven-controls": "2.22.2-beta.12",
30
+ "@byteluck-fe/model-driven-core": "2.22.2-beta.12",
31
+ "@byteluck-fe/model-driven-settings": "2.22.2-beta.12",
32
+ "@byteluck-fe/model-driven-shared": "2.22.2-beta.12"
33
33
  },
34
- "gitHead": "66840bdea7ebab2e70e7de96a50228586f9c3b12"
34
+ "gitHead": "a1bf5abff2fe0668cc076b755c33be80ea61b5cd"
35
35
  }