@byteluck-fe/model-driven-core 2.22.1-beta.2 → 2.22.2-beta.0
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 +45 -1
- package/package.json +3 -3
package/dist/index.umd.js
CHANGED
|
@@ -1 +1,45 @@
|
|
|
1
|
-
var hs=Object.defineProperty,ms=Object.defineProperties;var gs=Object.getOwnPropertyDescriptors;var sn=Object.getOwnPropertySymbols,ys=Object.getPrototypeOf,vs=Object.prototype.hasOwnProperty,Es=Object.prototype.propertyIsEnumerable,Bs=Reflect.get;var cn=(s,b,I)=>b in s?hs(s,b,{enumerable:!0,configurable:!0,writable:!0,value:I}):s[b]=I,W=(s,b)=>{for(var I in b||(b={}))vs.call(b,I)&&cn(s,I,b[I]);if(sn)for(var I of sn(b))Es.call(b,I)&&cn(s,I,b[I]);return s},re=(s,b)=>ms(s,gs(b));var rt=(s,b,I)=>Bs(ys(s),I,b);var le=(s,b,I)=>new Promise((Ce,se)=>{var Ae=V=>{try{G(I.next(V))}catch(Z){se(Z)}},Fe=V=>{try{G(I.throw(V))}catch(Z){se(Z)}},G=V=>V.done?Ce(V.value):Promise.resolve(V.value).then(Ae,Fe);G((I=I.apply(s,b)).next())});(function(s,b){typeof exports=="object"&&typeof module!="undefined"?b(exports):typeof define=="function"&&define.amd?define(["exports"],b):(s=typeof globalThis!="undefined"?globalThis:s||self,b(s.modelDrivenCore={}))})(this,function(s){"use strict";var b="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",I="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",Ce="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",se="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",Ae="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",Fe="{caption}\u5FC5\u586B",G="\u8BF7\u8F93\u5165\u6807\u9898",V="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",Z="\u8BF7\u8F93\u5165\u884C\u6807\u9898",on="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",dn="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",fn="\u8BF7\u7ED1\u5B9A\u8868\u5355",hn="\u8BF7\u7ED1\u5B9A\u5217\u8868",mn="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",gn="\u8BF7\u8F93\u5165\u663E\u793A\u503C",yn="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",vn="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",En="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",Bn="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",Cn="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",An="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",Fn="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",bn="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",Dn="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",Sn="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",wn="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",In="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Rn="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u8D85\u8FC7\u4E86\u9650\u5236",Mn="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",_n="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",$n="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",Ln="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",qn="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",Pn="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",Vn="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",xn="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",On="\u8BF7\u7ED1\u5B9A\u670D\u52A1",jn="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Un="\u8BF7\u9009\u62E9\u7701",Nn="\u8BF7\u9009\u62E9\u5E02",kn="\u8BF7\u9009\u62E9\u533A",Hn="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",Wn="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",Kn="\u8BF7\u8F93\u5165\u5217\u5BBD",zn="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",Tn="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",Jn="\u8BF7\u9009\u62E9\u63A7\u4EF6",Xn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",Gn="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",Zn="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",Qn="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",Yn="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",pn="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",eu="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",tu="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",nu="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",uu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",au="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",iu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",ru="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",lu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",su="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",cu="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",ou="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",du="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",fu="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",hu="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",mu="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",gu="\u8BF7\u8F93\u5165\u5B50\u8868\u522B\u540D",yu="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u4E1A\u52A1\u6A21\u578B",vu="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u7ED1\u5B9A\u670D\u52A1",Eu="\u8BF7\u9009\u62E9\u5173\u8054\u5B50\u8868\u5B57\u6BB5",Bu="\u8BF7\u9009\u62E9\u5173\u8054\u4E3B\u8868\u5B57\u6BB5",Cu="\u8BF7\u9009\u62E9\u6392\u5E8F\u5B57\u6BB5",Au={isNotNumber:b,isNotString:I,isNotObject:Ce,isNotArray:se,isNotBoolean:Ae,runtimeRequired:Fe,pleaseEnterCaption:G,pleaseEnterCaptionTip:V,pleaseEnterRowCaption:Z,pleaseEnterPlaceholder:on,pleaseEnterFieldCode:dn,pleaseEnterForm:fn,pleaseEnterList:hn,pleaseEnterProcess:mn,pleaseEnterLabel:gn,pleaseEnterValue:yn,bizKeyNotBindFiled:vn,pleaseSelectOneField:En,pleaseEnterNumberRange:Bn,pleaseEnterAValueGreaterThanMin:Cn,pleaseEnterAValueLessThanMax:An,numberRangeSetError:Fn,stringRangeError:bn,attachmentMaxSize:Dn,pleaseEnterTotalScoreSetting:Sn,theTotalScoreMustNotBeLessThan1:wn,scoreDefaultValueRange:In,attachmentLimitError:Rn,PleaseReselectTheOptionalQuantity:Mn,TheMaximumLengthIsGreaterThanTheMinimumLength:_n,TheMinimumLengthIsGreaterThanTheMaximumLength:$n,PleaseSelectTheCorrectOptionSettings:Ln,optionIdIsRepeat:qn,optionIsRequired:Pn,pleaseEnterDataCode:Vn,pleaseEnterValueFieldCode:xn,pleaseEnterSvcCode:On,pleaseBindAtLeastOneDisplayValue:jn,pleaseSelectProvince:Un,pleaseSelectCity:Nn,pleaseSelectDistrict:kn,limitRowsCannotBeLessThan0:Hn,TheNumberOfRowsCannotBeLessThanMinRows:Wn,pleaseEnterColumnWidth:Kn,pleaseSetTheLogicalRelationshipOfAllRuleConditions:zn,pleaseCompleteAllRulesAndConditions:Tn,pleaseSelectControl:Jn,pleaseSelectAtLeastOneColumn:Xn,pleaseSelectFillBackMode:Gn,pleaseSelectDashboard:Zn,rootNodeIsRequired:Qn,theViewNameCannotBeEmpty:Yn,pleaseSelectOcrType:pn,pleaseSelectAtLeastOneFieldToFillIn:eu,pleaseChooseAtLeastOne:tu,pleaseEnterButtonContent:nu,pleaseEnterDataCodeInDataSetting:uu,pleaseEnterValueFieldCodeInDataSetting:au,pleaseEnterSvcCodeInDataSetting:iu,pleaseBindAtLeastOneDisplayValueInDataSetting:ru,rootNodeIsRequiredInDataSetting:lu,pleaseEnterMaxHeight:su,pleaseEnter:cu,pleaseEnterWatermark:ou,pleaseEnterFileName:du,pleaseUploadAtLeastOnePrintTemplate:fu,pleaseAssignBusiness:hu,pleaseAssignExternal:mu,pleaseEnterAliasCode:gu,pleaseSelectDataCode:yu,pleaseSelectSvcCode:vu,pleaseSelectJoinFieldCode:Eu,pleaseSelectMainFieldCode:Bu,pleaseSelectSortFieldCode:Cu},Fu="Please enter a number",bu="Please enter a string",Du="Please enter an object",Su="Please enter an array",wu="Please enter a boolean",Iu="{caption} Required",Ru="Please enter the title",Mu="Please enter the bubble prompt",_u="Please enter the row title",$u="Please enter the prompt text",Lu="Please bind data items",qu="Please bind the form",Pu="Please bind the list",Vu="Please bind the process",xu="Please enter the displayed value",Ou="Please enter the stored value",ju="The document number is not bound to the data item",Uu="Please select at least one display field",Nu="Please enter a value greater than or equal to {min} and less than or equal to {max}",ku="Please enter a value greater than or equal to {min}",Hu="Please enter a value less than or equal to {max}",Wu="The value range is set incorrectly",Ku="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",zu="The attachment size must be between 0MB and 1000MB",Tu="Please fill in the total score setting",Ju="The total score cannot be less than 1",Xu="The default value must be between {min} and {max}",Gu="The number of attachment uploads exceeds the limit",Zu="Please re-select the optional quantity",Qu="The maximum length of the control must be greater than the minimum length",Yu="The minimum length of the control must be less than the maximum length",pu="Please select the correct option setting",ea="Option ID cannot be repeated",ta="Please enter at least one option",na="Please bind the data source",ua="Please bind the stored value",aa="Please bind the service",ia="At least one display value must be bound",ra="Please select a province",la="Please select a city",sa="Please select a district",ca="The minimum number of lines to fill in cannot be less than 0",oa="The number of rows cannot be less than {min} rows",da="Please enter the column width",fa="Please set the logical relationship of all rule conditions",ha="Please complete all rules and conditions",ma="please select control",ga="Please select the dashboard",ya="View name cannot be empty",va="Please select recognition type",Ea="Please select at least one field to fill in",Ba="Please select at least one",Ca="Please enter the button title",Aa="Please bind the business model in the data settings",Fa="Please bind storage values in data settings",ba="Please bind the service in the data settings",Da="Please bind at least one display value in the data settings",Sa="Please select the root node in the data settings",wa="Please enter the maximum height",Ia="The input content cannot be empty",Ra="Watermark cannot be empty",Ma="File name cannot be empty",_a="Please upload at least one printing template!\uFF01",$a="Please select a specific business department",La="Please select a specified external organization",qa="Please enter a sub table alias",Pa="Please select the associated table to set the business model",Va="Please select the association table to set the binding service",xa="Select associated sub table fields",Oa="Please select the associated main table field",ja="Please select the sort field",Ua={isNotNumber:Fu,isNotString:bu,isNotObject:Du,isNotArray:Su,isNotBoolean:wu,runtimeRequired:Iu,pleaseEnterCaption:Ru,pleaseEnterCaptionTip:Mu,pleaseEnterRowCaption:_u,pleaseEnterPlaceholder:$u,pleaseEnterFieldCode:Lu,pleaseEnterForm:qu,pleaseEnterList:Pu,pleaseEnterProcess:Vu,pleaseEnterLabel:xu,pleaseEnterValue:Ou,bizKeyNotBindFiled:ju,pleaseSelectOneField:Uu,pleaseEnterNumberRange:Nu,pleaseEnterAValueGreaterThanMin:ku,pleaseEnterAValueLessThanMax:Hu,numberRangeSetError:Wu,stringRangeError:Ku,attachmentMaxSize:zu,pleaseEnterTotalScoreSetting:Tu,theTotalScoreMustNotBeLessThan1:Ju,scoreDefaultValueRange:Xu,attachmentLimitError:Gu,PleaseReselectTheOptionalQuantity:Zu,TheMaximumLengthIsGreaterThanTheMinimumLength:Qu,TheMinimumLengthIsGreaterThanTheMaximumLength:Yu,PleaseSelectTheCorrectOptionSettings:pu,optionIdIsRepeat:ea,optionIsRequired:ta,pleaseEnterDataCode:na,pleaseEnterValueFieldCode:ua,pleaseEnterSvcCode:aa,pleaseBindAtLeastOneDisplayValue:ia,pleaseSelectProvince:ra,pleaseSelectCity:la,pleaseSelectDistrict:sa,limitRowsCannotBeLessThan0:ca,TheNumberOfRowsCannotBeLessThanMinRows:oa,pleaseEnterColumnWidth:da,pleaseSetTheLogicalRelationshipOfAllRuleConditions:fa,pleaseCompleteAllRulesAndConditions:ha,pleaseSelectControl:ma,pleaseSelectDashboard:ga,theViewNameCannotBeEmpty:ya,pleaseSelectOcrType:va,pleaseSelectAtLeastOneFieldToFillIn:Ea,pleaseChooseAtLeastOne:Ba,pleaseEnterButtonContent:Ca,pleaseEnterDataCodeInDataSetting:Aa,pleaseEnterValueFieldCodeInDataSetting:Fa,pleaseEnterSvcCodeInDataSetting:ba,pleaseBindAtLeastOneDisplayValueInDataSetting:Da,rootNodeIsRequiredInDataSetting:Sa,pleaseEnterMaxHeight:wa,pleaseEnter:Ia,pleaseEnterWatermark:Ra,pleaseEnterFileName:Ma,pleaseUploadAtLeastOnePrintTemplate:_a,pleaseAssignBusiness:$a,pleaseAssignExternal:La,pleaseEnterAliasCode:qa,pleaseSelectDataCode:Pa,pleaseSelectSvcCode:Va,pleaseSelectJoinFieldCode:xa,pleaseSelectMainFieldCode:Oa,pleaseSelectSortFieldCode:ja},Na="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ka="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ha="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Wa="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ka="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",za="{caption}\u5FC5\u9808",Ta="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ja="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Xa="\u884C\u30D8\u30C3\u30C0\u30FC\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ga="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Za="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Qa="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ya="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",pa="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ei="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ti="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ni="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",ui="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ai="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ii="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ri="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",li="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",si="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ci="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",oi="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",di="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",fi="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",hi="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306E\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u6570\u304C\u5236\u9650\u3092\u8D85\u3048\u3066\u3044\u307E\u3059",mi="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",gi="\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u6700\u5927\u5024\u306F\u6700\u5C0F\u5024\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",yi="\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u6700\u5C0F\u5024\u306F\u6700\u5927\u5024\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",vi="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Ei="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",Bi="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",Ci="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ai="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Fi="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",bi="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",Di="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Si="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",wi="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Ii="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Ri="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Mi="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",_i="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",$i="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",Li="please select control",qi="\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Pi="\u30D3\u30E5\u30FC\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Vi="\u8B58\u5225\u30BF\u30A4\u30D7\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",xi="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Oi="\u5C11\u306A\u304F\u3068\u30821\u3064\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ji="\u30DC\u30BF\u30F3\u306E\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ui="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Ni="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u683C\u7D0D\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",ki="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30B5\u30FC\u30D3\u30B9\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Hi="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Wi="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30EB\u30FC\u30C8\u30CE\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Ki="\u6700\u5927\u9AD8\u3055\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",zi="\u5165\u529B\u5185\u5BB9\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Ti="\u900F\u304B\u3057\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Ji="\u30D5\u30A1\u30A4\u30EB\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Xi="\u5370\u5237\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u5C11\u306A\u304F\u3068\u30821\u3064\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\uFF01\uFF01",Gi="\u6307\u5B9A\u3055\u308C\u305F\u30D3\u30B8\u30CD\u30B9\u90E8\u9580\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Zi="\u5916\u90E8\u7D44\u7E54\u306E\u6307\u5B9A\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Qi="\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u5225\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Yi="\u95A2\u9023\u8868\u3092\u9078\u629E\u3057\u3066\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044",pi="\u95A2\u9023\u30C6\u30FC\u30D6\u30EB\u8A2D\u5B9A\u30D0\u30A4\u30F3\u30C9\u30B5\u30FC\u30D3\u30B9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",er="\u95A2\u9023\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u9078\u629E",tr="\u95A2\u9023\u30DE\u30B9\u30BF\u30FC\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",nr="\u30BD\u30FC\u30C8\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ur={isNotNumber:Na,isNotString:ka,isNotObject:Ha,isNotArray:Wa,isNotBoolean:Ka,runtimeRequired:za,pleaseEnterCaption:Ta,pleaseEnterCaptionTip:Ja,pleaseEnterRowCaption:Xa,pleaseEnterPlaceholder:Ga,pleaseEnterFieldCode:Za,pleaseEnterForm:Qa,pleaseEnterList:Ya,pleaseEnterProcess:pa,pleaseEnterLabel:ei,pleaseEnterValue:ti,bizKeyNotBindFiled:ni,pleaseSelectOneField:ui,pleaseEnterNumberRange:ai,pleaseEnterAValueGreaterThanMin:ii,pleaseEnterAValueLessThanMax:ri,numberRangeSetError:li,stringRangeError:si,attachmentMaxSize:ci,pleaseEnterTotalScoreSetting:oi,theTotalScoreMustNotBeLessThan1:di,scoreDefaultValueRange:fi,attachmentLimitError:hi,PleaseReselectTheOptionalQuantity:mi,TheMaximumLengthIsGreaterThanTheMinimumLength:gi,TheMinimumLengthIsGreaterThanTheMaximumLength:yi,PleaseSelectTheCorrectOptionSettings:vi,optionIdIsRepeat:Ei,optionIsRequired:Bi,pleaseEnterDataCode:Ci,pleaseEnterValueFieldCode:Ai,pleaseEnterSvcCode:Fi,pleaseBindAtLeastOneDisplayValue:bi,pleaseSelectProvince:Di,pleaseSelectCity:Si,pleaseSelectDistrict:wi,limitRowsCannotBeLessThan0:Ii,TheNumberOfRowsCannotBeLessThanMinRows:Ri,pleaseEnterColumnWidth:Mi,pleaseSetTheLogicalRelationshipOfAllRuleConditions:_i,pleaseCompleteAllRulesAndConditions:$i,pleaseSelectControl:Li,pleaseSelectDashboard:qi,theViewNameCannotBeEmpty:Pi,pleaseSelectOcrType:Vi,pleaseSelectAtLeastOneFieldToFillIn:xi,pleaseChooseAtLeastOne:Oi,pleaseEnterButtonContent:ji,pleaseEnterDataCodeInDataSetting:Ui,pleaseEnterValueFieldCodeInDataSetting:Ni,pleaseEnterSvcCodeInDataSetting:ki,pleaseBindAtLeastOneDisplayValueInDataSetting:Hi,rootNodeIsRequiredInDataSetting:Wi,pleaseEnterMaxHeight:Ki,pleaseEnter:zi,pleaseEnterWatermark:Ti,pleaseEnterFileName:Ji,pleaseUploadAtLeastOnePrintTemplate:Xi,pleaseAssignBusiness:Gi,pleaseAssignExternal:Zi,pleaseEnterAliasCode:Qi,pleaseSelectDataCode:Yi,pleaseSelectSvcCode:pi,pleaseSelectJoinFieldCode:er,pleaseSelectMainFieldCode:tr,pleaseSelectSortFieldCode:nr},ar={zhCN:Au,enUS:Ua,jaJP:ur},lt;(function(t){t.Number="Number",t.Operator="Operator",t.VariableInMainTable="VariableInMainTable",t.VariableInCurrentSubTable="VariableInCurrentSubTable",t.VariableInOtherSubTable="VariableInOtherSubTable",t.UndefinedVariable="UndefinedVariable"})(lt||(lt={}));var st;(function(t){t.SUM="SUM",t.AVG="AVG",t.MAX="MAX",t.MIN="MIN"})(st||(st={}));var ir="zh-CN",K;(function(t){t.BASE="base",t.FORM="form",t.LAYOUT="layout",t.WRAP="wrap",t.COLUMN="column",t.LIST="list",t.SEARCH="search"})(K||(K={}));var ct;(function(t){t[t.FORM=0]="FORM",t[t.LIST=1]="LIST",t[t.REPORT=2]="REPORT",t[t.DASHBOARD=3]="DASHBOARD",t[t.VUE=4]="VUE",t[t.FREE_PAGE=5]="FREE_PAGE"})(ct||(ct={}));var ot;(function(t){t.TITLE="title",t.LINK="link",t.BUTTON="button",t.DIVIDER="divider",t.TEXT="text",t.CREATE_FORM_LIST_BUTTON="list-page-btn-create-form",t.BATCH_SUBMISSION_LIST_BUTTON="list-page-btn-batch-submission",t.BATCH_DELETE_LIST_BUTTON="list-page-btn-batch-delete",t.SUBMISSION_RECORD_LIST_BUTTON="list-page-btn-submission-record",t.IMPORT_RECORD_LIST_BUTTON="list-page-btn-import-record",t.EXPORT_RECORD_LIST_BUTTON="list-page-btn-export-record",t.EXPORT_LIST_BUTTON="list-page-btn-export-list",t.LIST_SELECT_BUTTON="list-select-button",t.ORGANIZATION_SELECTION="organization-selection",t.FORM_SELECT_BUTTON="form-select-button",t.LIST_VIEW_SELECT="list-view-select",t.TEXT_OCR_BUTTON="text-ocr-button",t.INVOICE_CHECK_BUTTON="invoice-check-button",t.LIST_PAGE_BTN_BATCH_PRINT="list-page-btn-batch-print",t.LIST_PAGE_BTN_BATCH_PRINT_RECORD="list-page-btn-batch-print-record",t.VARCHAR_COLUMN="varchar-column",t.TEXT_COLUMN="text-column",t.DECIMAL_COLUMN="decimal-column",t.TIMESCOPE_COLUMN="timescope-column",t.TIMESTAMP_COLUMN="timestamp-column",t.ARRAY_COLUMN="array-column",t.DEPARTMENT_COLUMN="department-column",t.AUTO_NUMBER_COLUMN="auto-number-column",t.FILE_COLUMN="file-column",t.IMAGE_COLUMN="image-column",t.PEOPLE_COLUMN="people-column",t.LOCATION_COLUMN="location-column",t.CUSTOM_COLUMN="custom-column",t.ORDER_COLUMN="order-column",t.OPERATION_COLUMN="operation-column",t.OPERATION_BUTTON="operation-button",t.EMPLOYEE_COLUMN="employee-column",t.Approval_Status_Column="approval-status-column",t.ADDRESS="address",t.AMOUNT="amount",t.ATTACHMENT="attachment",t.AUTO_NUMBER="auto-number",t.CALC="calc",t.CHECKBOX="checkbox",t.DATE_PICKER="date-picker",t.DATE_RANGE="date-range",t.DEPARTMENT="department",t.EMPLOYEE="employee",t.IMAGE="image",t.INPUT="input",t.NUMBER="number",t.RADIO="radio",t.RICH_TEXT="rich-text",t.SCORE="score",t.SEARCH_DATE_RANGE="search-date-range",t.SEARCH_NUMBER_RANGE="search-number-range",t.SEARCH_INPUT="search-input",t.SELECT="select",t.SELECT_MULTIPLE="select-multiple",t.SELECT_RELATION="select-relation",t.VUE_FORM_ITEM="vue-form-item",t.TEXTAREA="textarea",t.EMAIL="email",t.FOOTER="footer",t.HEADER="header",t.ID_CARD="id-card",t.MOBILE="mobile",t.PHONE="phone",t.RADIO_IMAGE="radio-image",t.ELECTRONIC_SIGNATURE="electronic-signature",t.WPS="wps",t.CARD_GROUP="card-group",t.COL="col",t.GRID="grid",t.GRID_ROW="grid-row",t.GRID_TABLE_COLUMN="grid-table-column",t.GRID_LAYOUT_CONTAINER="grid-layout-container",t.ROW="row",t.TWO_COLUMNS="two-columns",t.SUBTABLE_COLUMN="subtable-column",t.SUBTABLE_ROW="subtable-row",t.TAB="tab",t.TAB_PANE="tab-pane",t.TOOLBOX="toolbox",t.DATA_VIEW="data-view",t.LIST_VIEW="list-view",t.ACTION_BAR="action-bar",t.SUBTABLE="subtable",t.GRID_TABLE="grid-table",t.SIMPLE_SEARCH="simple-search",t.PAGINATION="pagination",t.CHECKBOX_IMAGE="checkbox-image",t.DASHBOARD="dashboard",t.TREE="tree",t.EMPLOYEE2="employee2",t.DEPARTMENT2="department2",t.GRID_LAYOUT_WRAP="grid-layout-wrap",t.VUE_PAGE="vue-page"})(ot||(ot={}));var dt;(function(t){t.SAVE="save",t.DRAFT="draft",t.UNSUBMIT="unsubmit",t.AUDIT="audit",t.UNAUDIT="unaudit",t.CANCEL="cancel",t.FORM_SUBMIT="form_submit"})(dt||(dt={}));var Q;(function(t){t.VARCHAR="varchar",t.TEXT="text",t.ARRAY="array",t.ADDRESS="location",t.DECIMAL="decimal",t.DECIMAL_RANGE="decimal_range",t.TIMESTAMP="timestamp",t.EMPLOYEES="people",t.DEPARTMENTS="department",t.MONEY="money",t.TIMESCOPE="timescope",t.FILE="file",t.IMAGE="image",t.AUTO_NUMBER="auto_number",t.CALC="calc",t.LIST="list",t.JSON="json",t.ANY="ANY"})(Q||(Q={}));var ft;(function(t){t.YEAR="year",t.MONTH="month",t.DATE="date",t.DATEHOUR="datehour",t.DATEMIN="datemin",t.DATETIME="datetime"})(ft||(ft={}));var ht="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",rr=ht+"0123456789";function U(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,e="",n=0;n<t;n++){var u=n===0?ht:rr,a=Math.random()*u.length;e+=u[parseInt(String(a),10)]}return e}function be(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,u=new Array(e);n<e;n++)u[n]=t[n];return u}function lr(t){if(Array.isArray(t))return be(t)}function sr(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function mt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ce(t,e,n){return vt()?ce=Reflect.construct:ce=function(a,i,r){var l=[null];l.push.apply(l,i);var d=Function.bind.apply(a,l),o=new d;return r&&p(o,r.prototype),o},ce.apply(null,arguments)}function Y(t){return Y=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Y(t)}function gt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}function cr(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function or(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function dr(){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 fr(t,e){return e&&(hr(e)==="object"||typeof e=="function")?e:sr(t)}function p(t,e){return p=Object.setPrototypeOf||function(u,a){return u.__proto__=a,u},p(t,e)}function yt(t){return lr(t)||or(t)||mr(t)||dr()}function hr(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function mr(t,e){if(!!t){if(typeof t=="string")return be(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return be(t,e)}}function De(t){var e=typeof Map=="function"?new Map:void 0;return De=function(u){if(u===null||!cr(u))return u;if(typeof u!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(u))return e.get(u);e.set(u,a)}function a(){return ce(u,arguments,Y(this).constructor)}return a.prototype=Object.create(u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),p(a,u)},De(t)}function vt(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Et(t){var e=vt();return function(){var u=Y(t),a;if(e){var i=Y(this).constructor;a=Reflect.construct(u,arguments,i)}else a=u.apply(this,arguments);return fr(this,a)}}var Se=console;function we(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var u,a=e.slice(1);(u=Se).warn.apply(u,["\u{1F9D0} Driven Warning:"+e[0]].concat(yt(a)))}function Bt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var u,a=e.slice(1);(u=Se).log.apply(u,["\u{1F680} Driven Log:"+e[0]].concat(yt(a)))}function gr(t){return t+" \u{1F41B}\u{1F41B}\u{1F41B}"}var Ie=function(t){gt(n,t);var e=Et(n);function n(u){mt(this,n);var a;return a=e.call(this,u),a.name="\u{1F4A5} Driven Error",a.message=u?gr(u):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",a}return n}(De(Error)),yr=function(t){gt(n,t);var e=Et(n);function n(u){mt(this,n);var a;return a=e.call(this,u),a.name="\u{1F6A8} Driven Reference Error",a}return n}(Ie);function Re(t){throw new Ie(t)}function Ct(t){throw new yr(t)}function vr(t){Se.error(new Ie(t))}var Er=Object.prototype.toString;function At(t,e){return Er.call(t)==="[object "+e+"]"}function Br(t){return At(t,"String")}function Cr(t){return At(t,"Promise")}var Ar=function(){function t(e){var n,u;this._messageCache=new Map,this.messages={},this.variableRegExp=/\{([0-9a-zA-Z_]+)\}/g,this._messages=Object.freeze((u=(n=e.messages)!==null&&n!==void 0?n:this.getPreImport(e.locale))!==null&&u!==void 0?u:{}),e.variableRegExp&&(this.variableRegExp=e.variableRegExp),this.setLocale(e.locale)}return t.prototype.setLocale=function(e){var n=this;this.locale=e,this._messageCache.clear();var u=this.getMessageData();Cr(u)?u.then(function(a){n._messageCache.clear(),n.messages[n.localeInMessageKey]=a}):this.messages[this.localeInMessageKey]=u},t.prototype.getMessageData=function(){var e=this._messages[this.localeInMessageKey];return typeof e=="function"?e():e},t.prototype.translate=function(e,n,u){var a=this.getMessage(e);return a?this.formatMessage(a,u):this.formatMessage(n,u)},t.prototype.getMessage=function(e){if(this._messageCache.has(e))return this._messageCache.get(e);var n=this.getPathArray(e),u=n.reduce(function(a,i,r,l){if(a!==void 0){var d=a[i];if(!(r===l.length-1&&!Br(d)))return d}},this.message);return this._messageCache.set(e,u),u},t.prototype.formatMessage=function(e,n){return n?e.replace(this.variableRegExp,function(u,a){var i=n[a];return i!==void 0?String(i):u}):e},t.prototype.getPreImport=function(e){var n;if(window.okI18nPreImport){var u=this.getLocaleInMessageKey(e);return window.okI18nPreImport.hasOwnProperty(u)?window.okI18nPreImport:(n={},n[u]=window.okI18nPreImport,n)}},t.prototype.getPathArray=function(e){return e.split(".")},t.prototype.getLocaleInMessageKey=function(e){return e.replace(/-/g,"")},Object.defineProperty(t.prototype,"$t",{get:function(){return this.translate},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"localeInMessageKey",{get:function(){return this.getLocaleInMessageKey(this.locale)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"message",{get:function(){var e;return(e=this.messages[this.localeInMessageKey])!==null&&e!==void 0?e:{}},enumerable:!1,configurable:!0}),t}();function Fr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ft(t,e){for(var n=0;n<e.length;n++){var u=e[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function br(t,e,n){return e&&Ft(t.prototype,e),n&&Ft(t,n),t}function Dr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h=function(){function t(){Fr(this,t)}return br(t,null,[{key:"getMessage",value:function(n){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$i18n.$t(n,"",u)}},{key:"resetI18n",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ir;return new Ar({locale:n,messages:ar})}},{key:"setLocale",value:function(n){return this.$i18n.setLocale(n)}}]),t}();Dr(h,"$i18n",h.resetI18n());function Sr(t,e,n){var u=e.replace(/\[(\d)]/g,function(i,r){return"."+r}).split("."),a=!1;return u.reduce(function(i,r,l,d){var o=i;if(!!i){if(!Object.prototype.hasOwnProperty.call(i,r)){we("Can not set ".concat(e,"'s ").concat(r," property in current %o, Because there is no ").concat(r," property on the %o"),i,i);return}return l===d.length-1&&!Object.is(o[r],n)&&(o[r]=n,a=!0),o[r]}},t),a}var wr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Ir={exports:{}};(function(t){(function(e){var n=function(c,m,E){if(!o(m)||v(m)||F(m)||D(m)||d(m))return m;var S,w=0,q=0;if(g(m))for(S=[],q=m.length;w<q;w++)S.push(n(c,m[w],E));else{S={};for(var A in m)Object.prototype.hasOwnProperty.call(m,A)&&(S[c(A,E)]=n(c,m[A],E))}return S},u=function(c,m){m=m||{};var E=m.separator||"_",S=m.split||/(?=[A-Z])/;return c.split(S).join(E)},a=function(c){return B(c)?c:(c=c.replace(/[\-_\s]+(.)?/g,function(m,E){return E?E.toUpperCase():""}),c.substr(0,1).toLowerCase()+c.substr(1))},i=function(c){var m=a(c);return m.substr(0,1).toUpperCase()+m.substr(1)},r=function(c,m){return u(c,m).toLowerCase()},l=Object.prototype.toString,d=function(c){return typeof c=="function"},o=function(c){return c===Object(c)},g=function(c){return l.call(c)=="[object Array]"},v=function(c){return l.call(c)=="[object Date]"},F=function(c){return l.call(c)=="[object RegExp]"},D=function(c){return l.call(c)=="[object Boolean]"},B=function(c){return c=c-0,c===c},f=function(c,m){var E=m&&"process"in m?m.process:m;return typeof E!="function"?c:function(S,w){return E(S,c,w)}},C={camelize:a,decamelize:r,pascalize:i,depascalize:r,camelizeKeys:function(c,m){return n(f(a,m),c)},decamelizeKeys:function(c,m){return n(f(r,m),c,m)},pascalizeKeys:function(c,m){return n(f(i,m),c)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=C:e.humps=C})(wr)})(Ir);var bt={};Object.defineProperty(bt,"__esModule",{value:!0});function Me(t){if(typeof t!="object"||t===null)return t;if(Array.isArray(t))return t.map(e=>typeof e!="object"||e===null?e:Me(e));{const e={};for(const n in t){const u=t[n];e[n]=typeof u!="object"||u===null?u:Me(u)}return e}}var Rr=bt.default=Me;function Mr(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function x(t){if(t!==void 0)return(typeof t=="undefined"?"undefined":Mr(t))==="object"?Rr(t):t}function _r(t){return Object.prototype.toString.call(t)==="[object Object]"}function $r(t){return Array.isArray(t)}function Lr(t){return t.reduce(function(e,n){return e.includes(n)||e.push(n),e},[])}function _e(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,u=new Array(e);n<e;n++)u[n]=t[n];return u}function qr(t){if(Array.isArray(t))return _e(t)}function Dt(t,e,n,u,a,i,r){try{var l=t[i](r),d=l.value}catch(o){n(o);return}l.done?e(d):Promise.resolve(d).then(u,a)}function Pr(t){return function(){var e=this,n=arguments;return new Promise(function(u,a){var i=t.apply(e,n);function r(d){Dt(i,u,a,r,l,"next",d)}function l(d){Dt(i,u,a,r,l,"throw",d)}r(void 0)})}}function Vr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function St(t,e){for(var n=0;n<e.length;n++){var u=e[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function xr(t,e,n){return e&&St(t.prototype,e),n&&St(t,n),t}function wt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Or(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function jr(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $e(t){return qr(t)||Or(t)||Ur(t)||jr()}function Ur(t,e){if(!!t){if(typeof t=="string")return _e(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _e(t,e)}}function Nr(t,e){var n,u,a,i,r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function l(o){return function(g){return d([o,g])}}function d(o){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,u&&(a=o[0]&2?u.return:o[0]?u.throw||((a=u.return)&&a.call(u),0):u.next)&&!(a=a.call(u,o[1])).done)return a;switch(u=0,a&&(o=[o[0]&2,a.value]),o[0]){case 0:case 1:a=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,u=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){r.label=o[1];break}if(o[0]===6&&r.label<a[1]){r.label=a[1],a=o;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(o);break}a[2]&&r.ops.pop(),r.trys.pop();continue}o=e.call(t,r)}catch(g){o=[6,g],u=0}finally{n=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}var kr=function(){function t(){Vr(this,t),wt(this,"_events",new Map),wt(this,"debug",!1)}return xr(t,[{key:"emit",value:function(n){for(var u=arguments.length,a=new Array(u>1?u-1:0),i=1;i<u;i++)a[i-1]=arguments[i];var r=this;return Pr(function(){var l,d,o,g,v,F,D,B,f,C,c,m;return Nr(this,function(E){switch(E.label){case 0:if(l=r._events.get(n),d=[],!l)return[3,10];o=l.slice(),g=!0,v=!1,F=void 0,E.label=1;case 1:E.trys.push([1,8,9,10]),D=o[Symbol.iterator](),E.label=2;case 2:if(g=(B=D.next()).done)return[3,7];if(f=B.value,!l.includes(f))return[3,6];E.label=3;case 3:return E.trys.push([3,5,,6]),r.debug&&Bt.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(f.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+f.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(a.map(function(){return"%o"}).join(","),"\u3002")].concat($e(a))),[4,f.apply(null,$e(a))];case 4:return C=E.sent(),r.debug&&Bt.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(f.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+f.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(a.map(function(){return"%o"}).join(","),"; \u51FD\u6570\u7684\u8FD4\u56DE\u7ED3\u679C\u4E3A%o")].concat($e(a),[C])),d.push(C),C===!1?[3,7]:[3,6];case 5:return c=E.sent(),vr(String(c)+":"+String(c.stack)),[3,6];case 6:return g=!0,[3,2];case 7:return[3,10];case 8:return m=E.sent(),v=!0,F=m,[3,10];case 9:try{!g&&D.return!=null&&D.return()}finally{if(v)throw F}return[7];case 10:return[2,d]}})})()}},{key:"on",value:function(n,u){if(this._events.has(n)){var a;(a=this._events.get(n))===null||a===void 0||a.push(u)}else this._events.set(n,[u])}},{key:"off",value:function(n,u){if(this._events.has(n)){var a=this._events.get(n),i=a==null?void 0:a.indexOf(u);a==null||a.splice(i,1)}}},{key:"delete",value:function(n){this._events.has(n)&&this._events.delete(n)}},{key:"clear",value:function(){this._events=new Map}}]),t}();function Hr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function It(t,e){for(var n=0;n<e.length;n++){var u=e[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function Wr(t,e,n){return e&&It(t.prototype,e),n&&It(t,n),t}function Kr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var zr=[{key:"on_click",name:"\u70B9\u51FB\u65F6",code:"click"},{key:"on_click_finish",name:"\u6267\u884C\u5B8C\u6210\u65F6",code:"click-finish"},{key:"on_change",name:"\u503C\u53D1\u751F\u53D8\u5316\u65F6",code:"change"},{key:"on_search",name:"\u641C\u7D22\u65F6",code:"search"},{key:"on_list_change",name:"\u5217\u8868\u6570\u636E\u53D8\u5316\u65F6",code:"list-change"},{key:"on_list_search",name:"\u5217\u8868\u6570\u636E\u67E5\u8BE2\u6784\u5EFA\u65F6",code:"list-search"},{key:"on_list_mounted",name:"\u5217\u8868\u6570\u636E\u8FD4\u56DE\u65F6",code:"list-mounted"},{key:"on_list_delete",name:"\u5217\u8868\u6570\u636E\u5220\u9664\u65F6",code:"list-delete"},{key:"on_list_before_insert",name:"\u5217\u8868\u6570\u636E\u63D2\u5165\u524D",code:"list-before-insert"},{key:"on_input",name:"\u7528\u6237\u8F93\u5165\u65F6",code:"input"},{key:"on_blur",name:"\u5931\u53BB\u7126\u70B9\u65F6",code:"blur"},{key:"on_focus",name:"\u83B7\u53D6\u7126\u70B9\u65F6",code:"focus"},{key:"on_wps_open",name:"\u6253\u5F00\u6587\u4EF6\u65F6",code:"wps-open"},{key:"on_wps_save",name:"\u4FDD\u5B58\u6587\u4EF6\u65F6",code:"wps-save"},{key:"on_wps_rename",name:"\u91CD\u547D\u540D\u65F6",code:"wps-rename"},{key:"on_list_actions",name:"\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6",code:"list-actions"},{key:"on_list_render_operation",name:"\u64CD\u4F5C\u5217\u6E32\u67D3\u65F6",code:"list-render-operation"},{key:"on_list_rowclick",name:"\u884C\u70B9\u51FB\u65F6",code:"list-rowclick"},{key:"on_list_before_rowdelete",name:"\u884C\u5220\u9664\u524D",code:"list-before-rowdelete"},{key:"on_list_before_import",name:"\u5217\u8868\u6570\u636E\u5BFC\u5165\u524D",code:"list-before-import"},{key:"on_list_rows_checked",name:"\u884C\u9009\u4E2D\u65F6",code:"list-rows-checked"},{key:"on_change_tab",name:"\u6807\u7B7E\u9875\u5207\u6362\u65F6",code:"change-tab"},{key:"on_modal_ok",name:"\u5F39\u7A97\u786E\u8BA4\u65F6",code:"modal-ok"}],Tr=function(){function t(){Hr(this,t)}return Wr(t,null,[{key:"getEventsFromKeys",value:function(n){var u=typeof n=="string"?[n]:n;return t.events.filter(function(a){return u.includes(a.key)})}},{key:"getEventsFromControl",value:function(n){var u=[],a=n.eventKeys;u=u.concat(t.events.filter(function(r){return a.includes(r.key)}));var i=n.customEvents.map(function(r){var l=r.key;return r.namespace!==void 0&&r.namespace!==null&&r.namespace!==""&&(l=r.namespace+":"+r.key),{key:l,code:r.key,name:r.name}});return u=u.concat(i),u}}]),t}();Kr(Tr,"events",zr);function oe(t,e){var n;(n=Object.getOwnPropertyDescriptors(t)[e])!=null&&n.enumerable&&Object.defineProperty(t,e,{enumerable:!1})}function Le(t,e,n){n!=="Runtime"&&(t.parent=e,oe(t,"parent"))}function Rt(t,e,n){t.forEach(u=>{Le(u,e,n)})}const Mt=Symbol("targetKey");function _t(t){var e;return(e=t[Mt])!=null?e:t}function $t(t,e,n){return Rt(t,e,n),new Proxy(t,{get(u,a,...i){return a===Mt?u:Reflect.get(u,a,...i)},set(u,a,i,...r){if($r(t)&&a==="length"&&i===t.length)return!0;const l=Reflect.set(u,a,i,...r);return _r(i)&&Le(i,e,n),l}})}function N(t,e,n,u,a){const i=u!=null?u:t;let r=$t(_t(n!=null?n:[]),i,a);Object.defineProperty(t,e,{get(){return r},set(l){r=$t(_t(l),i,a)},enumerable:!0})}const Lt=[],qe=class{constructor(t){this.registeredControlTypes=new Set,this.controlConfigMap=new Map,this._controls=[],this._type=t,this._initControls(t)}static staticGetRules(t,e){const n=qe.staticControlsRuntimeRules.get(t);let u=[];if(n){const a=new n(e);u=Array.from(a)}return u}registerControlConfig(t,e){return this.controlConfigMap.set(t,e),this}getControlConfig(t){return this.controlConfigMap.get(t)}static register(t,e){const{Designer:n,Runtime:u,Property:a}=t;(!n||!u||!n.__is_control__||!u.__is_control__)&&Re(`${t} is can't register as a Control`);const i=this.staticControls.findIndex(r=>r.Designer.controlType===n.controlType);return i>-1&&(we(`The ${n.controlType} is repeat register, So it overwrites the one that was registered before.`),this.staticControls.splice(i,1)),this.staticRegisteredTypes.add(n.controlType),this.staticControls.push(t),a.mode=e,this}getControls(){return this._controls}register(t){t.__is_control__||Re(`${t.name} is not a Control`);const e=this._controls.findIndex(n=>n.controlType===t.controlType);return e>-1&&(we(`The ${t.controlType} is repeat register, So it overwrites the one that was registered before.`),this._controls.splice(e,1)),this.registeredControlTypes.add(t.controlType),this._controls.push(t),this}isLayoutControl(t){return t.controlType===K.LAYOUT}isFormControl(t){return t.controlType===K.FORM}isListControl(t){return t.controlType===K.LIST}isColumnControl(t){return t.controlType===K.COLUMN}createControl(t,e){if(Array.isArray(t))return t.map(u=>this.createControl(u,e));if(t.children&&(t.children=t.children.map(u=>this.createControl(u,e))),this.isListControl(t)){const u=t.props;u.headers&&(u.headers=u.headers.map(a=>this.createControl(a,e)))}const n=this.getControlFormType(t.type);if(n){let u=t;if(typeof e=="function"){const i=e(u);i&&(u=i)}let a;return n.mode==="Runtime"?(a=u,a.fieldType=n.controlFieldType,this._setParentPrototypeToSchema(a,this)):a=new n(u),a}else Re(`The constructor of ${t.type} could not be found, please confirm that the constructor has been registered`)}resetInstanceParent(t,e){delete t.parent,Object.defineProperty(t,"parent",{configurable:!0,get(){return e}}),oe(t,"parent")}_setParentPrototypeToSchema(t,e){e._type==="Runtime"&&(Object.defineProperty(t,"parent",{configurable:!0,get(){const n=t.id,u=e._controlParentIdMap,a=e.instanceMap;if(!u||!a)return;const i=u[n],r=a[n];if(!i&&!r)return;const l=r.findIndex(g=>g==t),d=a[i]||[];let o;return d.length!==r.length?o=d[0]:o=d[l],o}}),oe(t,"parent"))}createControlInstance(t,e){const n=this.getControlFormType(t);if(n)return new n(e)}getControlFormType(t){return this._controls.find(e=>e.controlType===t)}_initControls(t){this.constructor.staticControls.forEach(e=>{this.register(e[t]),qe.staticControlsRuntimeRules.set(e.Runtime.controlType,e.Property.RuntimeRules),e.Property.mode=t})}};let ee=qe;ee.staticControlsRuntimeRules=new Map,ee.staticControls=Lt,ee.staticRegisteredTypes=new Set(Lt.map(t=>t.Designer.controlType)),ee.staticRegisteredConfigs=new Map;class ${constructor(e){var n,u,a;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.fieldCode=(u=e==null?void 0:e.fieldCode)!=null?u:"",this.fieldType=(a=e==null?void 0:e.fieldType)!=null?a:"",this.aliasCode=e==null?void 0:e.aliasCode}}class Pe{constructor(e){var n,u;this.minWidth=(n=e==null?void 0:e.minWidth)!=null?n:150,this.maxWidth=e==null?void 0:e.maxWidth,this.flex=(u=e==null?void 0:e.flex)!=null?u:1}}class Ve{constructor(e){var n,u,a,i;this.rowHeightType=(n=e==null?void 0:e.rowHeightType)!=null?n:"fixed",this.minRows=(u=e==null?void 0:e.minRows)!=null?u:4,this.maxRows=(a=e==null?void 0:e.maxRows)!=null?a:20,this.fiexdRow=(i=e==null?void 0:e.fiexdRow)!=null?i:4}}class Jr{constructor(e){this.pc=new Ve(e==null?void 0:e.pc),this.mobile=new Ve(e==null?void 0:e.mobile)}}class de extends Pe{constructor(e){var n,u;super(e),this.width=(n=e==null?void 0:e.width)!=null?n:240,this.widthType=(u=e==null?void 0:e.widthType)!=null?u:"auto"}}class Xr{constructor(e){this.pc=new de(e==null?void 0:e.pc),this.mobile=e!=null&&e.mobile?new de(e==null?void 0:e.mobile):new de({width:130,minWidth:180})}}class Gr{constructor(e){var n,u;this.type=(n=e==null?void 0:e.type)!=null?n:"firstThree",this.customOptions=(u=e==null?void 0:e.customOptions)!=null?u:[]}}class fe{constructor(e){var n,u,a;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.formKey=(u=e==null?void 0:e.formKey)!=null?u:"",this.appId=(a=e==null?void 0:e.appId)!=null?a:""}}class Zr extends fe{constructor(e){var n;super(e),this.primaryControlId=(n=e==null?void 0:e.primaryControlId)!=null?n:""}}class qt{constructor(e){var n,u;this.fieldCode=(n=e==null?void 0:e.fieldCode)!=null?n:"",this.dataCode=(u=e==null?void 0:e.dataCode)!=null?u:""}}class Qr{constructor(e){var n,u,a,i;this.appId=(n=e==null?void 0:e.appId)!=null?n:"",this.formKey=(u=e==null?void 0:e.formKey)!=null?u:"",this.headers=(i=(a=e==null?void 0:e.headers)==null?void 0:a.map(r=>new qt(r)))!=null?i:[]}}class Pt{constructor(e){var n,u,a;this.fieldName=(n=e==null?void 0:e.fieldName)!=null?n:"",this.fieldCode=(u=e==null?void 0:e.fieldCode)!=null?u:"",this.fieldType=(a=e==null?void 0:e.fieldType)!=null?a:Q.VARCHAR}}class Vt extends fe{constructor(e){var n,u,a,i;super(e),this.title=(n=e==null?void 0:e.title)!=null?n:"",this.svcCode=(u=e==null?void 0:e.svcCode)!=null?u:"",this.isOpenFilter=(a=e==null?void 0:e.isOpenFilter)!=null?a:!1,this.filters=(i=e==null?void 0:e.filters)!=null?i:[]}}class Yr{constructor(e){var n,u,a,i;this.type="sublist-page",this.formBind=new fe(e==null?void 0:e.formBind),this.displayFields=(u=(n=e==null?void 0:e.displayFields)==null?void 0:n.map(r=>new Pt(r)))!=null?u:[],this.sublists=(i=(a=e==null?void 0:e.sublists)==null?void 0:a.map(r=>new Vt(r)))!=null?i:[]}}class xt{constructor(e){this.type=e==null?void 0:e.type,this.value=e==null?void 0:e.value,this.dataCode=e==null?void 0:e.dataCode}}class xe{constructor(e){var n,u,a;this.type=(n=e==null?void 0:e.type)!=null?n:"custom",this.value=(u=e==null?void 0:e.value)!=null?u:[],this.displayBos=(a=e==null?void 0:e.displayBos)!=null?a:[]}}class z{constructor(e){var n,u,a,i;this.type="conditions",this.id=(n=e==null?void 0:e.id)!=null?n:U(),this.ruleId=(u=e==null?void 0:e.ruleId)!=null?u:new Date().valueOf(),this.level=(a=e==null?void 0:e.level)!=null?a:0,this.value=(i=e==null?void 0:e.value)!=null?i:"and",this.children=[],Array.isArray(e==null?void 0:e.children)&&(e==null||e.children.map(r=>{var l,d;if(r.children!==void 0){const o=new z(r);(l=this.children)==null||l.push(o)}else{const o=new te(r);(d=this.children)==null||d.push(o)}}))}}class te{constructor(e){var n,u,a,i,r;this.type="condition",this.id=(n=e==null?void 0:e.id)!=null?n:U(),this.ruleId=(u=e==null?void 0:e.ruleId)!=null?u:new Date().valueOf(),this.symbol=(a=e==null?void 0:e.symbol)!=null?a:"",this.checked=(i=e==null?void 0:e.checked)!=null?i:!1,this.describe=(r=e==null?void 0:e.describe)!=null?r:"",this.leftVariableBo=new xt(e==null?void 0:e.leftVariableBo),this.rightVariableBo=new xe(e==null?void 0:e.rightVariableBo)}}class pr{constructor(e){var n,u;this.aliasCode=(n=e==null?void 0:e.aliasCode)!=null?n:"",this.datasourceBind=new he(e==null?void 0:e.datasourceBind),this.relationFields=(u=e==null?void 0:e.relationFields)!=null?u:[]}}class Ot{constructor(e){var n,u,a,i;this.controlId=(n=e==null?void 0:e.controlId)!=null?n:"",this.fieldCode=(u=e==null?void 0:e.fieldCode)!=null?u:"",this.fieldType=(a=e==null?void 0:e.fieldType)!=null?a:"",this.propName=(i=e==null?void 0:e.propName)!=null?i:""}}class Oe{constructor(e){var n,u;this.type=(n=e==null?void 0:e.type)!=null?n:"FIELD",this.value=(u=e==null?void 0:e.value)!=null?u:"",this.fieldType=e==null?void 0:e.fieldType}}class el{constructor(e){var n,u;this.title=(n=e==null?void 0:e.title)!=null?n:"",this.displayBoList=(u=e==null?void 0:e.displayBoList)!=null?u:[]}}class je{constructor(e){var n,u;this.columnName=(n=e.columnName)!=null?n:"",this.desc=(u=e.desc)!=null?u:!1}}class jt{constructor(e){var n,u,a;this.code=(n=e.code)!=null?n:"",this.value=(u=e.value)!=null?u:"",this.field_type=(a=e.field_type)!=null?a:Q.ANY}}class tl{constructor(e){var n,u,a,i,r,l,d;this.id=(n=e.id)!=null?n:"",this.limit=(u=e.limit)!=null?u:20,this.formKey=(a=e.formKey)!=null?a:"",this.orders=(r=(i=e.orders)==null?void 0:i.map(o=>new je(o)))!=null?r:[],this.dataSet=(d=(l=e.dataSet)==null?void 0:l.map(o=>new jt(o)))!=null?d:[]}}function Ue(t){var e,n,u,a,i,r;this.filters=(n=(e=t==null?void 0:t.filters)==null?void 0:e.map(l=>l.children!==void 0?new z(l):new te(l)))!=null?n:[],this.viewFilters=(a=(u=t==null?void 0:t.viewFilters)==null?void 0:u.map(l=>l.children!==void 0?new z(l):new te(l)))!=null?a:[],this.orders=(r=(i=t==null?void 0:t.orders)==null?void 0:i.map(l=>new je(l)))!=null?r:[]}class he{constructor(e){var n,u,a,i,r,l,d;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.appId=(u=e==null?void 0:e.appId)!=null?u:"",this.valueFieldCode=(a=e==null?void 0:e.valueFieldCode)!=null?a:"",this.displayBoList=[],this.isOpenViewFilters=(i=e==null?void 0:e.isOpenViewFilters)!=null?i:0,Array.isArray(e==null?void 0:e.displayBoList)&&(e==null||e.displayBoList.map(o=>{var g;(g=this.displayBoList)==null||g.push(new Oe(o))})),this.keywordMapping=(r=e==null?void 0:e.keywordMapping)!=null?r:"",this.showOrder=(l=e==null?void 0:e.showOrder)!=null?l:!0,this.svcCode=(d=e==null?void 0:e.svcCode)!=null?d:"",Ue.call(this,e)}}class nl{constructor(e){var n,u;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.displayBoList=(u=e==null?void 0:e.displayBoList)!=null?u:[]}}class ul{constructor(e){var n,u,a,i,r,l,d,o,g,v;this.code=(n=e==null?void 0:e.code)!=null?n:"view",this.color=(u=e==null?void 0:e.color)!=null?u:"primary",this.command=(a=e==null?void 0:e.command)!=null?a:"view",this.confirmMessage=(i=e==null?void 0:e.confirmMessage)!=null?i:void 0,this.defaultState=(r=e==null?void 0:e.defaultState)!=null?r:"default",this.formKey=(l=e==null?void 0:e.formKey)!=null?l:void 0,this.formType=e==null?void 0:e.formType,this.icon=(d=e==null?void 0:e.icon)!=null?d:"iconliulan1",this.needConfirm=(o=e==null?void 0:e.needConfirm)!=null?o:!1,this.openType=(g=e==null?void 0:e.openType)!=null?g:"modal",this.priorityProcess=(v=e==null?void 0:e.priorityProcess)!=null?v:!0}}class Ne{constructor(e){var n,u,a,i;this.name=(n=e==null?void 0:e.name)!=null?n:"",this.key=(u=e==null?void 0:e.key)!=null?u:"",this.value=(i=(a=e==null?void 0:e.value)==null?void 0:a.map(r=>new Oe(r)))!=null?i:[]}}class Ut extends he{constructor(e){var n,u;super(e),this.attributes=(u=(n=e==null?void 0:e.attributes)==null?void 0:n.map(a=>new Ne(a)))!=null?u:[]}}class al extends he{constructor(e){var n,u,a;super(e),this.attributes=(u=(n=e==null?void 0:e.attributes)==null?void 0:n.map(i=>new Ne(i)))!=null?u:[],this.formCode=(a=e==null?void 0:e.formCode)!=null?a:""}}class il extends Ut{constructor(e){var n;super(e),this.rootNode=new xe(e==null?void 0:e.rootNode),this.filterCode=(n=e==null?void 0:e.filterCode)!=null?n:""}}class Nt{constructor(e){var n,u,a,i;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.appId=(u=e==null?void 0:e.appId)!=null?u:"",this.fillList=(i=(a=e==null?void 0:e.fillList)==null?void 0:a.map(r=>new Ot(r)))!=null?i:[]}}class rl extends Nt{constructor(e){super(e),Ue.call(this,e)}}class ll extends Nt{constructor(e){var n,u;super(e),this.mode=(n=e==null?void 0:e.mode)!=null?n:"current",this.multiple=(u=e==null?void 0:e.multiple)!=null?u:!1}}class sl{constructor(e){var n,u,a;this.zh=(n=e==null?void 0:e.zh)!=null?n:"",this.en=(u=e==null?void 0:e.en)!=null?u:"",this.ja=(a=e==null?void 0:e.ja)!=null?a:""}}class cl{constructor(e){var n,u,a;this.stencilName=(n=e==null?void 0:e.stencilName)!=null?n:"",this.expression=(u=e==null?void 0:e.expression)!=null?u:"",this.errMessage=(a=e==null?void 0:e.errMessage)!=null?a:""}}class ke{constructor(e){var n,u,a;this.id=(n=e==null?void 0:e.id)!=null?n:U(8),this.label=(u=e==null?void 0:e.label)!=null?u:"",this.value=(a=e==null?void 0:e.value)!=null?a:this.label}}class kt extends ke{constructor(e){var n,u;super(e),this.image=(n=e==null?void 0:e.image)!=null?n:"",this.type=(u=e==null?void 0:e.type)!=null?u:"src"}}function ol(t){var e;return(e=t==null?void 0:t.map(n=>new ke(n)))!=null?e:[]}function dl(t){var e;return(e=t==null?void 0:t.map(n=>new kt(n)))!=null?e:[]}class me{}class fl extends me{constructor(e){super(),this.amount=new $(e==null?void 0:e.amount),this.currency=new $(e==null?void 0:e.currency)}}class hl{constructor(e){var n,u;this.amount=(n=e==null?void 0:e.amount)!=null?n:"",this.currency=(u=e==null?void 0:e.currency)!=null?u:He.CNY}}class ml extends me{constructor(e){super(),this.min=new $(e==null?void 0:e.min),this.max=new $(e==null?void 0:e.max)}}class gl{constructor(e){var n,u;this.min=(n=e==null?void 0:e.min)!=null?n:"",this.max=(u=e==null?void 0:e.max)!=null?u:""}}class yl{constructor(e){var n,u,a,i,r,l;this.city=(n=e==null?void 0:e.city)!=null?n:"",this.cityDisplay=(u=e==null?void 0:e.cityDisplay)!=null?u:"",this.district=(a=e==null?void 0:e.district)!=null?a:"",this.districtDisplay=(i=e==null?void 0:e.districtDisplay)!=null?i:"",this.province=(r=e==null?void 0:e.province)!=null?r:"",this.provinceDisplay=(l=e==null?void 0:e.provinceDisplay)!=null?l:""}}class vl extends me{constructor(e){super(),this.result=new $(e==null?void 0:e.result),this.unit=new $(e==null?void 0:e.unit)}}class El{constructor(e){var n,u;this.result=(n=e==null?void 0:e.result)!=null?n:0,this.unit=(u=e==null?void 0:e.unit)!=null?u:""}}var He=(t=>(t.CNY="CNY",t.USD="USD",t.JPY="JPY",t.EUR="EUR",t.INR="INR",t.IDR="IDR",t.BRL="BRL",t.AED="AED",t.AUD="AUD",t.CAD="CAD",t.EGP="EGP",t.GBP="GBP",t.ZAR="ZAR",t.KRW="KRW",t.MAD="MAD",t.MXN="MXN",t.MYR="MYR",t.PHP="PHP",t.PLN="PLN",t.RUB="RUB",t.SGD="SGD",t.THB="THB",t.TRY="TRY",t.TWD="TWD",t.VND="VND",t.HKD="HKD",t.IEP="IEP",t))(He||{}),Ht=(t=>(t.DEFAULT_DISPLAY="defaultDisplay",t.REQUIRED="required",t.IS_HIDE="isHide",t.IS_SHOW_UNIT="isShowUnit",t.IMD_SEARCH="immediatelySearch",t.MULTIPLE="multiple",t.SUBMIT_SELECT_CURRENCY="submitSelectCurrency",t.CAPTION="caption",t.IS_HIDE_CAPTION="isHideCaption",t.DEFAULT_SHOW_OPTIONS="defaultShowOptions",t.CAN_SEARCH="canSearch",t.CAN_CHECK="canCheck",t.CAN_EDIT="canEdit",t.CAN_DELETE="canDelete",t.SHOW_UPPER_CASE="showUpperCase",t.MICROMETER="micrometer",t.PRECISION="precision",t.PERCENTAGE="percentage",t.OPTIONAL_LEVEL="optionalLevel",t.CONTAINS_SUB_NODE="containsSubNode",t.DEFAULT_COLLAPSE="defaultCollapse",t.CAN_VIEW_FORM="canViewForm",t.VIEW_FORM_MODEL_TYPE="viewFormModelType",t.SERVER_PAGINATION="serverPagination",t.IS_SHOW_CAPTION_TIP="isShowCaptionTip",t.IS_SHOW_WATERMARK="isShowWatermark",t.ENCRYPTED="encrypted",t.IS_INLINE_EDIT="isInlineEdit",t.REVISIONS_MODE="revisionsMode",t.ALLOW_COPY_OPTIONS="allowCopyOptions",t.IS_PASTE="isPaste",t.SORTABLE="sortable",t))(Ht||{}),We=(t=>(t[t.UNKNOWN=0]="UNKNOWN",t[t.READONLY=1]="READONLY",t[t.EDITABLE=2]="EDITABLE",t[t.PRINT=5]="PRINT",t))(We||{});class Bl{constructor(e){var n,u,a,i,r,l;this.isShow=(n=e==null?void 0:e.isShow)!=null?n:!0,this.content=(u=e==null?void 0:e.content)!=null?u:"",this.formKey=(a=e==null?void 0:e.formKey)!=null?a:"",this.openType=(i=e==null?void 0:e.openType)!=null?i:"modal",this.type=(r=e==null?void 0:e.type)!=null?r:"",this.priorityProcess=(l=e==null?void 0:e.priorityProcess)!=null?l:!1}}class Cl{constructor(e){var n,u,a,i;this.id=(n=e==null?void 0:e.id)!=null?n:U(8),this.title=(u=e==null?void 0:e.title)!=null?u:"",this.headers=(i=(a=e==null?void 0:e.headers)==null?void 0:a.map(r=>new qt(r)))!=null?i:[],Ue.call(this,e)}}class Al{constructor(e){var n,u;this.key=(n=e.key)!=null?n:U(8),this.caption=(u=e.caption)!=null?u:""}}class Wt{constructor(e){var n,u,a,i;this.width=(n=e==null?void 0:e.width)!=null?n:"",this.height=(u=e==null?void 0:e.height)!=null?u:"",this.widthConfig=(a=e==null?void 0:e.widthConfig)!=null?a:"fill",this.heightConfig=(i=e==null?void 0:e.heightConfig)!=null?i:"fill"}}class Fl{constructor(e){var n,u;this.optCode=(n=e==null?void 0:e.optCode)!=null?n:"",this.optType=(u=e==null?void 0:e.optType)!=null?u:""}}class Kt{constructor(e){var n,u,a,i,r,l;this.id=(n=e==null?void 0:e.id)!=null?n:U(),this.name=(u=e==null?void 0:e.name)!=null?u:"",this.filters=(i=(a=e==null?void 0:e.filters)==null?void 0:a.map(d=>d.children!==void 0?new z(d):new te(d)))!=null?i:[],this.settings=(e==null?void 0:e.settings)&&Array.isArray(e==null?void 0:e.settings)?(l=(r=e==null?void 0:e.settings)==null?void 0:r.map(d=>new zt(d)))!=null?l:[]:[],this.script=e==null?void 0:e.script}}class zt{constructor(e){var n,u,a,i;this.type=(n=e.type)!=null?n:"background",this.fieldCodes=(u=e.fieldCodes)!=null?u:[],this.color=(a=e.color)!=null?a:"theme",this.scope=(i=e.scope)!=null?i:"row"}}class bl{constructor(e){var n,u,a,i;this.type=(n=e==null?void 0:e.type)!=null?n:"none",this.interval=(u=e==null?void 0:e.interval)!=null?u:{color:""},this.rules=(e==null?void 0:e.rules)&&Array.isArray(e==null?void 0:e.rules)?(i=(a=e==null?void 0:e.rules)==null?void 0:a.map(r=>new Kt(r)))!=null?i:[]:[]}}class ge{constructor(e){this.isHide={type:"boolean"}}}class Ke extends Array{constructor(e){super()}}class O{constructor(e,n=""){var u,a;this.isHide=(u=e==null?void 0:e.isHide)!=null?u:!1,this.style=new Wt(e==null?void 0:e.style),this.caption=(a=e==null?void 0:e.caption)!=null?a:n}}O.Rules=ge,O.RuntimeRules=Ke;function L(){return L=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(t[u]=n[u])}return t},L.apply(this,arguments)}function Dl(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function ze(t){return ze=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ze(t)}function ye(t,e){return ye=Object.setPrototypeOf||function(u,a){return u.__proto__=a,u},ye(t,e)}function Sl(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function ve(t,e,n){return Sl()?ve=Reflect.construct:ve=function(a,i,r){var l=[null];l.push.apply(l,i);var d=Function.bind.apply(a,l),o=new d;return r&&ye(o,r.prototype),o},ve.apply(null,arguments)}function wl(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Te(t){var e=typeof Map=="function"?new Map:void 0;return Te=function(u){if(u===null||!wl(u))return u;if(typeof u!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(u))return e.get(u);e.set(u,a)}function a(){return ve(u,arguments,ze(this).constructor)}return a.prototype=Object.create(u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),ye(a,u)},Te(t)}var Il=/%[sdj%]/g,Tt=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(Tt=function(e,n){typeof console!="undefined"&&console.warn&&n.every(function(u){return typeof u=="string"})&&console.warn(e,n)});function Je(t){if(!t||!t.length)return null;var e={};return t.forEach(function(n){var u=n.field;e[u]=e[u]||[],e[u].push(n)}),e}function _(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var u=1,a=e[0],i=e.length;if(typeof a=="function")return a.apply(null,e.slice(1));if(typeof a=="string"){var r=String(a).replace(Il,function(l){if(l==="%%")return"%";if(u>=i)return l;switch(l){case"%s":return String(e[u++]);case"%d":return Number(e[u++]);case"%j":try{return JSON.stringify(e[u++])}catch(d){return"[Circular]"}break;default:return l}});return r}return a}function Rl(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function R(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||Rl(e)&&typeof t=="string"&&!t)}function Ml(t,e,n){var u=[],a=0,i=t.length;function r(l){u.push.apply(u,l),a++,a===i&&n(u)}t.forEach(function(l){e(l,r)})}function Jt(t,e,n){var u=0,a=t.length;function i(r){if(r&&r.length){n(r);return}var l=u;u=u+1,l<a?e(t[l],i):n([])}i([])}function _l(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,t[n])}),e}var Xt=function(t){Dl(e,t);function e(n,u){var a;return a=t.call(this,"Async Validation Error")||this,a.errors=n,a.fields=u,a}return e}(Te(Error));function $l(t,e,n,u){if(e.first){var a=new Promise(function(v,F){var D=function(C){return u(C),C.length?F(new Xt(C,Je(C))):v()},B=_l(t);Jt(B,n,D)});return a.catch(function(v){return v}),a}var i=e.firstFields||[];i===!0&&(i=Object.keys(t));var r=Object.keys(t),l=r.length,d=0,o=[],g=new Promise(function(v,F){var D=function(f){if(o.push.apply(o,f),d++,d===l)return u(o),o.length?F(new Xt(o,Je(o))):v()};r.length||(u(o),v()),r.forEach(function(B){var f=t[B];i.indexOf(B)!==-1?Jt(f,n,D):Ml(f,n,D)})});return g.catch(function(v){return v}),g}function Gt(t){return function(e){return e&&e.message?(e.field=e.field||t.fullField,e):{message:typeof e=="function"?e():e,field:e.field||t.fullField}}}function Zt(t,e){if(e){for(var n in e)if(e.hasOwnProperty(n)){var u=e[n];typeof u=="object"&&typeof t[n]=="object"?t[n]=L(L({},t[n]),u):t[n]=u}}return t}function Qt(t,e,n,u,a,i){t.required&&(!n.hasOwnProperty(t.field)||R(e,i||t.type))&&u.push(_(a.messages.required,t.fullField))}function Ll(t,e,n,u,a){(/^\s+$/.test(e)||e==="")&&u.push(_(a.messages.whitespace,t.fullField))}var Xe={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ne={integer:function(e){return ne.number(e)&&parseInt(e,10)===e},float:function(e){return ne.number(e)&&!ne.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(n){return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!ne.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&!!e.match(Xe.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(Xe.url)},hex:function(e){return typeof e=="string"&&!!e.match(Xe.hex)}};function ql(t,e,n,u,a){if(t.required&&e===void 0){Qt(t,e,n,u,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],r=t.type;i.indexOf(r)>-1?ne[r](e)||u.push(_(a.messages.types[r],t.fullField,t.type)):r&&typeof e!==t.type&&u.push(_(a.messages.types[r],t.fullField,t.type))}function Pl(t,e,n,u,a){var i=typeof t.len=="number",r=typeof t.min=="number",l=typeof t.max=="number",d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,o=e,g=null,v=typeof e=="number",F=typeof e=="string",D=Array.isArray(e);if(v?g="number":F?g="string":D&&(g="array"),!g)return!1;D&&(o=e.length),F&&(o=e.replace(d,"_").length),i?o!==t.len&&u.push(_(a.messages[g].len,t.fullField,t.len)):r&&!l&&o<t.min?u.push(_(a.messages[g].min,t.fullField,t.min)):l&&!r&&o>t.max?u.push(_(a.messages[g].max,t.fullField,t.max)):r&&l&&(o<t.min||o>t.max)&&u.push(_(a.messages[g].range,t.fullField,t.min,t.max))}var T="enum";function Vl(t,e,n,u,a){t[T]=Array.isArray(t[T])?t[T]:[],t[T].indexOf(e)===-1&&u.push(_(a.messages[T],t.fullField,t[T].join(", ")))}function xl(t,e,n,u,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||u.push(_(a.messages.pattern.mismatch,t.fullField,e,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(e)||u.push(_(a.messages.pattern.mismatch,t.fullField,e,t.pattern))}}}var y={required:Qt,whitespace:Ll,type:ql,range:Pl,enum:Vl,pattern:xl};function Ol(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e,"string")&&!t.required)return n();y.required(t,e,u,i,a,"string"),R(e,"string")||(y.type(t,e,u,i,a),y.range(t,e,u,i,a),y.pattern(t,e,u,i,a),t.whitespace===!0&&y.whitespace(t,e,u,i,a))}n(i)}function jl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&y.type(t,e,u,i,a)}n(i)}function Ul(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(e===""&&(e=void 0),R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&(y.type(t,e,u,i,a),y.range(t,e,u,i,a))}n(i)}function Nl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&y.type(t,e,u,i,a)}n(i)}function kl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),R(e)||y.type(t,e,u,i,a)}n(i)}function Hl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&(y.type(t,e,u,i,a),y.range(t,e,u,i,a))}n(i)}function Wl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&(y.type(t,e,u,i,a),y.range(t,e,u,i,a))}n(i)}function Kl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(e==null&&!t.required)return n();y.required(t,e,u,i,a,"array"),e!=null&&(y.type(t,e,u,i,a),y.range(t,e,u,i,a))}n(i)}function zl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&y.type(t,e,u,i,a)}n(i)}var Tl="enum";function Jl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&y[Tl](t,e,u,i,a)}n(i)}function Xl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e,"string")&&!t.required)return n();y.required(t,e,u,i,a),R(e,"string")||y.pattern(t,e,u,i,a)}n(i)}function Gl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e,"date")&&!t.required)return n();if(y.required(t,e,u,i,a),!R(e,"date")){var l;e instanceof Date?l=e:l=new Date(e),y.type(t,l,u,i,a),l&&y.range(t,l.getTime(),u,i,a)}}n(i)}function Zl(t,e,n,u,a){var i=[],r=Array.isArray(e)?"array":typeof e;y.required(t,e,u,i,a,r),n(i)}function Ge(t,e,n,u,a){var i=t.type,r=[],l=t.required||!t.required&&u.hasOwnProperty(t.field);if(l){if(R(e,i)&&!t.required)return n();y.required(t,e,u,r,a,i),R(e,i)||y.type(t,e,u,r,a)}n(r)}function Ql(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a)}n(i)}var ue={string:Ol,method:jl,number:Ul,boolean:Nl,regexp:kl,integer:Hl,float:Wl,array:Kl,object:zl,enum:Jl,pattern:Xl,date:Gl,url:Ge,hex:Ge,email:Ge,required:Zl,any:Ql};function Ze(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Qe=Ze();function k(t){this.rules=null,this._messages=Qe,this.define(t)}k.prototype={messages:function(e){return e&&(this._messages=Zt(Ze(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if(typeof e!="object"||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var n,u;for(n in e)e.hasOwnProperty(n)&&(u=e[n],this.rules[n]=Array.isArray(u)?u:[u])},validate:function(e,n,u){var a=this;n===void 0&&(n={}),u===void 0&&(u=function(){});var i=e,r=n,l=u;if(typeof r=="function"&&(l=r,r={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(),Promise.resolve();function d(f){var C,c=[],m={};function E(S){if(Array.isArray(S)){var w;c=(w=c).concat.apply(w,S)}else c.push(S)}for(C=0;C<f.length;C++)E(f[C]);c.length?m=Je(c):(c=null,m=null),l(c,m)}if(r.messages){var o=this.messages();o===Qe&&(o=Ze()),Zt(o,r.messages),r.messages=o}else r.messages=this.messages();var g,v,F={},D=r.keys||Object.keys(this.rules);D.forEach(function(f){g=a.rules[f],v=i[f],g.forEach(function(C){var c=C;typeof c.transform=="function"&&(i===e&&(i=L({},i)),v=i[f]=c.transform(v)),typeof c=="function"?c={validator:c}:c=L({},c),c.validator=a.getValidationMethod(c),c.field=f,c.fullField=c.fullField||f,c.type=a.getType(c),c.validator&&(F[f]=F[f]||[],F[f].push({rule:c,value:v,source:i,field:f}))})});var B={};return $l(F,r,function(f,C){var c=f.rule,m=(c.type==="object"||c.type==="array")&&(typeof c.fields=="object"||typeof c.defaultField=="object");m=m&&(c.required||!c.required&&f.value),c.field=f.field;function E(q,A){return L(L({},A),{},{fullField:c.fullField+"."+q})}function S(q){q===void 0&&(q=[]);var A=q;if(Array.isArray(A)||(A=[A]),!r.suppressWarning&&A.length&&k.warning("async-validator:",A),A.length&&c.message!==void 0&&(A=[].concat(c.message)),A=A.map(Gt(c)),r.first&&A.length)return B[c.field]=1,C(A);if(!m)C(A);else{if(c.required&&!f.value)return c.message!==void 0?A=[].concat(c.message).map(Gt(c)):r.error&&(A=[r.error(c,_(r.messages.required,c.field))]),C(A);var P={};if(c.defaultField)for(var rn in f.value)f.value.hasOwnProperty(rn)&&(P[rn]=c.defaultField);P=L(L({},P),f.rule.fields);for(var J in P)if(P.hasOwnProperty(J)){var fs=Array.isArray(P[J])?P[J]:[P[J]];P[J]=fs.map(E.bind(null,J))}var ln=new k(P);ln.messages(r.messages),f.rule.options&&(f.rule.options.messages=r.messages,f.rule.options.error=r.error),ln.validate(f.value,f.rule.options||r,function(it){var X=[];A&&A.length&&X.push.apply(X,A),it&&it.length&&X.push.apply(X,it),C(X.length?X:null)})}}var w;c.asyncValidator?w=c.asyncValidator(c,f.value,S,f.source,r):c.validator&&(w=c.validator(c,f.value,S,f.source,r),w===!0?S():w===!1?S(c.message||c.field+" fails"):w instanceof Array?S(w):w instanceof Error&&S(w.message)),w&&w.then&&w.then(function(){return S()},function(q){return S(q)})},function(f){d(f)})},getType:function(e){if(e.type===void 0&&e.pattern instanceof RegExp&&(e.type="pattern"),typeof e.validator!="function"&&e.type&&!ue.hasOwnProperty(e.type))throw new Error(_("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if(typeof e.validator=="function")return e.validator;var n=Object.keys(e),u=n.indexOf("message");return u!==-1&&n.splice(u,1),n.length===1&&n[0]==="required"?ue.required:ue[this.getType(e)]||!1}},k.register=function(e,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");ue[e]=n},k.warning=Tt,k.messages=Qe,k.validators=ue;const Yl={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 Yt(t,e={}){const n=new k(t);return n.messages(Object.assign(Yl,e)),n}const pt=new kr;class M{constructor(e){var F,D,B,f;this.setting=[],this.eventKeys=[],this.customEvents=[],this.parent=null,this.updateSetting=tn,this.removeSetting=en,this._callControlHooks("preInstance",e);const{controlName:n,controlIcon:u,controlType:a,controlFieldType:i,controlEventKeys:r,controlCustomEvents:l,name:d,setting:o,slots:g,slotPosition:v}=new.target;n&&u&&a||Ct(`The ${d} controlName,controlIcon,controlType is not define`),this.id=(F=e==null?void 0:e.id)!=null?F:U(10),this.name=n,this.icon=u,this.type=(D=e==null?void 0:e.type)!=null?D:a,this.props=new O(e==null?void 0:e.props,new.target.controlName),this.controlType=(B=e==null?void 0:e.controlType)!=null?B:"base",this.setting=x(o),this.fieldType=(f=e==null?void 0:e.fieldType)!=null?f:i,this.eventKeys=x(r),this.customEvents=x(l),this.slots=x(g),this.slotPosition=x(v),Promise.resolve().then(()=>{this._callControlHooks("postInstance",e)})}get rules(){const e=this.props.constructor.Rules;return e?new e(this.props):{}}_callControlHooks(...e){const[n,...u]=e;return pt.emit(n,this,...u)}preUpdate(e,n){this._callControlHooks("preUpdateProps",e,n)}postUpdate(e,n){this._callControlHooks("postUpdateProps",e,n)}updateProps(e,n){this.preUpdate(e,n),Sr(this.props,e,n),this.postUpdate(e,n)}preValidate(){return le(this,null,function*(){const e=W({},this.rules),n=yield this._callControlHooks("preValidate",e),u=n[n.length-1];return u===!1?void 0:u})}validate(e,n){return le(this,null,function*(){const u=yield this.preValidate(),a=u!==void 0?u:W({},this.rules);Array.isArray(n)&&n.forEach(r=>{a.hasOwnProperty(r)&&delete a[r]});const i=Yt(a,e);try{return yield i.validate(this.props),!0}catch(r){throw r.control||(r.control=this),r}})}toDataBindModel(e=null){const n=this.fieldType,u=this.id,a=this.type,{dataBind:i,datasourceBind:r,optionConfig:l,caption:d,required:o,maxLength:g,options:v,encrypted:F,encryptedMode:D}=this.props;if(!n&&!i&&!r)return;const B={parentId:e,fieldType:n,controlId:u,caption:d,type:a,props:{}};switch(i&&(B.dataBind=i),l){case"datasource":case void 0:r&&(B.datasourceBind=r);break;case"custom":B.props.options=v;break}return o!==void 0&&(B.required=o),g!==void 0&&(B.maxLength=g),F!==void 0&&(B.encrypted=F),D!==void 0&&(B.encryptedMode=D),B}preToSchema(){this._callControlHooks("preToSchema",this)}toSchema(){return this.preToSchema(),{id:this.id,type:this.type,props:x(this.props),fieldType:this.fieldType,controlType:this.controlType}}static updateBasicControl(e,n){e==="setting"&&(n.add&&this.setting.push(...n.add),n.remove&&this.removeSettingItem(n.remove),n.update)}}M.mode="Designer",M.controlName="\u63A7\u4EF6",M.controlIcon="icon",M.controlType="control",M.controlEventKeys=[],M.controlCustomEvents=[],M.setting=[],M.__is_control__=!0,M.removeSettingItem=en,M.updateSettingItem=tn;function en(t){(Array.isArray(t)?t:[t]).forEach(n=>{var i,r,l;const u=typeof n!="string",a=(i=this.setting)==null?void 0:i.findIndex(d=>d.key===(u?n.key:n));a!==-1&&(u?this.setting[a].showItems=(r=this.setting[a].showItems)==null?void 0:r.filter(d=>!n.hideItems.includes(d)):this.setting.splice(a,1),u&&!((l=this.setting[a].showItems)!=null&&l.length)&&this.setting.splice(a,1))})}function tn(t,e){(typeof t=="string"?[t]:t).forEach(u=>{var i;const a=this.setting.find(r=>r.key===u);a&&(typeof e=="boolean"?a.visible=e:typeof e=="object"&&(((i=e.type)!=null?i:"replace")==="replace"?a.showItems=e.showItems:a.showItems.push(...e.showItems)))})}class j{constructor(e){var r,l,d,o,g;this.customEvents=[],this.parent=null;const{controlType:n,controlFieldType:u,name:a,controlCustomEvents:i}=new.target;n||Ct(`The ${a} controlType is not define`),this.id=(r=e==null?void 0:e.id)!=null?r:U(10),this.type=(l=e==null?void 0:e.type)!=null?l:n,this.props=new O(e==null?void 0:e.props),this.customEvents=i,this.controlType=(d=e==null?void 0:e.controlType)!=null?d:"base",this.fieldType=(o=e==null?void 0:e.fieldType)!=null?o:u,this.pageStatus=(g=e==null?void 0:e.pageStatus)!=null?g:We.UNKNOWN}get rules(){const e=this.props.constructor.RuntimeRules;if(e){const n=new e(this.props);return Array.from(n)}return[]}}j.mode="Runtime",j.controlType="control",j.__is_control__=!0,j.controlCustomEvents=[];function Ye(t){t.hasOwnProperty("optionConfig")||(this.optionConfig={type:"any"}),t.hasOwnProperty("options")||(this.options={type:"any"}),t.hasOwnProperty("datasourceBind")||(this.datasourceBind={type:"any"}),t.hasOwnProperty("options")&&(!t.hasOwnProperty("optionConfig")||t.hasOwnProperty("optionConfig")&&t.optionConfig==="custom")?this.options=[{type:"array",message:h.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{label:{type:"string",required:!0,message:h.getMessage("pleaseEnterLabel")},value:{type:"string",required:!0,message:h.getMessage("pleaseEnterValue")}}}},{type:"array",validator(e,n,u){n.length===0&&u(h.getMessage("optionIsRequired")),u()}},{type:"array",validator(e,n,u){const a=n.map(r=>r.value),i=Lr(a);a.length!==i.length?u(h.getMessage("optionIdIsRepeat")):u()},message:h.getMessage("optionIdIsRepeat")}]:t.hasOwnProperty("datasourceBind")&&(!t.hasOwnProperty("optionConfig")||t.hasOwnProperty("optionConfig")&&t.optionConfig==="datasource")&&(this.datasourceBind=[{type:"object",message:h.getMessage("isNotObject")},{type:"object",fields:{dataCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterDataCode")},valueFieldCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterValueFieldCode")},svcCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterSvcCode")},displayBoList:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",validator(e,n,u){n.length===0&&u(h.getMessage("pleaseBindAtLeastOneDisplayValue")),u()},message:h.getMessage("pleaseBindAtLeastOneDisplayValue")}],orders:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{columnName:{type:"string",required:!0,message:h.getMessage("pleaseEnterFieldCode")},desc:{type:"boolean",message:h.getMessage("isNotBoolean")}}}}]}}])}function pl(t,e,n=!1){this.datasourceBind=[{type:"object",message:h.getMessage("isNotObject")},{type:"object",fields:{dataCode:{type:"string",required:!0,message:h.getMessage(n?"pleaseEnterDataCodeInDataSetting":"pleaseEnterDataCode")},valueFieldCode:{type:"string",required:!0,message:h.getMessage(n?"pleaseEnterValueFieldCodeInDataSetting":"pleaseEnterValueFieldCode")},svcCode:{type:"string",required:!0,message:h.getMessage(n?"pleaseEnterSvcCodeInDataSetting":"pleaseEnterSvcCode")},attributes:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{name:{type:"string",required:!0,message:h.getMessage("isNotString")},key:{type:"string",required:!0,message:h.getMessage("isNotString")},value:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",validator(u,a,i){a.length===0&&i(h.getMessage(n?"pleaseBindAtLeastOneDisplayValueInDataSetting":"pleaseBindAtLeastOneDisplayValue")),i()},message:h.getMessage(n?"pleaseBindAtLeastOneDisplayValueInDataSetting":"pleaseBindAtLeastOneDisplayValue")}]}}}],orders:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{columnName:{type:"string",required:!0,message:h.getMessage("pleaseEnterFieldCode")},desc:{type:"boolean",message:h.getMessage("isNotBoolean")}}}}]}}]}function nn(t){return(t==null?void 0:t.dataCode)!==void 0&&(t==null?void 0:t.fieldCode)!==void 0}class pe extends ge{constructor(e){super(e),this.dataBind={},this.caption={type:"string",required:!0,message:h.getMessage("pleaseEnterCaption")},this.isHideCaption={type:"boolean"},this.labelPosition={type:"enum",enum:["top","left"]},this.defaultState={type:"enum",enum:["default","readonly"]},this.required={type:"boolean"},this.captionTip={type:"string",required:!1,message:h.getMessage("pleaseEnterCaptionTip")};const n={fieldCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterFieldCode")},dataCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterFieldCode")}};if(nn(e.dataBind))this.dataBind={type:"object",required:!0,fields:x(n),message:h.getMessage("pleaseEnterFieldCode")};else{let u={type:"object",required:!0,fields:{},message:h.getMessage("pleaseEnterFieldCode")};Object.keys(e.dataBind).forEach(a=>{u.fields[a]={type:"object",required:!0,fields:x(n),message:h.getMessage("pleaseEnterFieldCode")}}),this.dataBind=u}e.isShowCaptionTip&&(this.captionTip.required=!0)}}class un extends Ke{constructor(e){super(e);const n=e.isHide?!1:e.required;n&&this.push({type:"string",required:n,message:e.requiredMessage!==""?e.requiredMessage:h.getMessage("runtimeRequired",{caption:e.caption})})}}class ae extends O{constructor(e){var n,u,a,i,r,l,d,o,g,v;super(e),this.caption=(n=e==null?void 0:e.caption)!=null?n:"",this.isHideCaption=(u=e==null?void 0:e.isHideCaption)!=null?u:!1,this.isShowCaptionTip=(a=e==null?void 0:e.isShowCaptionTip)!=null?a:!1,this.captionTip=(i=e==null?void 0:e.captionTip)!=null?i:"",this.defaultState=(r=e==null?void 0:e.defaultState)!=null?r:"default",this.labelPosition=(l=e==null?void 0:e.labelPosition)!=null?l:"top",this.placeholder=(d=e==null?void 0:e.placeholder)!=null?d:"",this.required=(o=e==null?void 0:e.required)!=null?o:!1,this.requiredMessage=(g=e==null?void 0:e.requiredMessage)!=null?g:"",this.dataBind=new $(e==null?void 0:e.dataBind),this.defaultValue=(v=e==null?void 0:e.defaultValue)!=null?v:""}}ae.Rules=pe,ae.RuntimeRules=un;class es extends pe{constructor(e){super(e),this.optionConfig={type:"enum",enum:["custom","datasource"],message:h.getMessage("PleaseSelectTheCorrectOptionSettings")},this.options=[{type:"array",message:h.getMessage("isNotArray")}],this.datasourceBind=[{type:"object",message:h.getMessage("isNotObject")}],Ye.call(this,e)}}class an extends M{constructor(e){super(e),this.controlType="form",this.props=new ae(e==null?void 0:e.props)}}an.controlEventKeys=["on_change","on_focus","on_blur"];class ts extends j{constructor(e){super(e),this.controlType="form",this.props=new ae(e==null?void 0:e.props)}}class ie extends O{constructor(e){super(e)}}const ns=1e4;class H extends M{constructor(e){super(e),this.controlType="layout";const{excludes:n,childrenMaxLength:u}=new.target;this.props=new ie(e==null?void 0:e.props),N(this,"children",e==null?void 0:e.children,void 0,"Designer"),this.excludes=x(n),this.childrenMaxLength=u}judgeExcludesChildren(e){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(e)}judgeJoinChildren(e){const n=this.judgeExcludesChildren(e);return n&&this.childrenMaxLength>this.children.length}validate(e,n){return le(this,null,function*(){return yield rt(H.prototype,this,"validate").call(this,e,n),yield Promise.all(this.children.map(u=>u.validate(e,n))),!0})}toDataBindModel(e=null){const n=super.toDataBindModel(),u=n?[n]:[];return this.children.reduce((a,i)=>{const r=i.toDataBindModel(e);if(Array.isArray(r)){const l=r.filter(d=>!!d);return[...a,...l]}return r&&a.push(r),a},u)}toSchema(){const e=super.toSchema(),n=this.children.map(u=>u.toSchema());return re(W({},e),{children:n})}}H.excludes=!1,H.childrenMaxLength=ns;class et extends j{constructor(e){super(e),this.controlType="layout",this.props=new ie(e==null?void 0:e.props),N(this,"children",e==null?void 0:e.children,void 0,"Runtime")}}class tt extends O{constructor(e,n,u){var a,i,r,l;super(n),N(this,"headers",n==null?void 0:n.headers,e,u),N(this,"footers",n==null?void 0:n.footers,e),this.pageIndex=(a=n==null?void 0:n.pageIndex)!=null?a:1,this.pageSize=(i=n==null?void 0:n.pageSize)!=null?i:20,this.pageSizeOptions=(r=n==null?void 0:n.pageSizeOptions)!=null?r:[20],this.totalCount=(l=n==null?void 0:n.totalCount)!=null?l:0}}class Ee extends M{constructor(e){super(e),this.controlType="list",this.props=new tt(this,e==null?void 0:e.props,"Designer")}validate(e,n){return le(this,null,function*(){return yield rt(Ee.prototype,this,"validate").call(this,e),yield Promise.all(this.props.headers.map(u=>u.validate(e,n))),!0})}toDataBindModel(){const e=super.toDataBindModel(),n=e?[e]:[],u=this.id;return this.props.headers.reduce((a,i)=>{const r=i.toDataBindModel(u);if(Array.isArray(r)){const l=r.filter(d=>!!d);return[...a,...l]}return r&&a.push(r),a},n)}toSchema(){const e=super.toSchema(),n=this.props.headers.map(u=>u.toSchema());return re(W({},e),{props:re(W({},this.props),{headers:n})})}}Ee.controlFieldType=Q.LIST;class us extends j{constructor(e){super(e),this.controlType="list",this.props=new tt(this,e==null?void 0:e.props,"Runtime"),N(this,"children",e==null?void 0:e.children,void 0,"Runtime")}get length(){return this.children.length}}class nt extends ge{constructor(e){super(e),this.caption={type:"string",required:!0,message:h.getMessage("pleaseEnterCaption")},this.width={type:"number",required:!1,message:h.getMessage("pleaseEnterColumnWidth")},this.width.required=e.widthType==="px"}}class Be extends O{constructor(e){var n,u,a,i,r;super(e),this.width=(n=e==null?void 0:e.width)!=null?n:150,this.widthType=(e==null?void 0:e.widthType)||"auto",this.caption=(u=e==null?void 0:e.caption)!=null?u:"",this.fixed=(a=e==null?void 0:e.fixed)!=null?a:"none",this.autoWidth=new Pe(e==null?void 0:e.autoWidth),this.dataBind=new $(e==null?void 0:e.dataBind),this.sort=(i=e==null?void 0:e.sort)!=null?i:!0,this.align=e==null?void 0:e.align,this.colSpan=e==null?void 0:e.colSpan,this.autoHeight=(r=e==null?void 0:e.autoHeight)!=null?r:!1}}Be.Rules=nt;class as extends nt{constructor(e){super(e),this.optionConfig={type:"enum",enum:["custom","datasource","none"],message:h.getMessage("PleaseSelectTheCorrectOptionSettings")},this.options=[{type:"array",message:h.getMessage("isNotArray")}],this.datasourceBind=[{type:"object",message:h.getMessage("isNotObject")}],Ye.call(this,e)}}class is extends M{constructor(e){super(e),this.controlType="column",this.props=new Be(e==null?void 0:e.props),N(this,"children",e==null?void 0:e.children,void 0,"Designer")}toSchema(){const e=super.toSchema();return re(W({},e),{children:this.children?this.children.map(n=>n.toSchema()):[]})}}class rs extends j{constructor(e){super(e),this.controlType="column",this.props=new Be(e==null?void 0:e.props),N(this,"children",e==null?void 0:e.children,void 0,"Runtime")}}class ut extends ie{constructor(e){super(e),this.dataBind=new $(e==null?void 0:e.dataBind)}}class ls extends H{constructor(e){super(e),this.controlType="search",this.props=new ut(e==null?void 0:e.props)}}class ss extends et{constructor(e){super(e),this.controlType="search",this.props=new ut(e==null?void 0:e.props)}}class at extends ie{constructor(e){super(e)}}class cs extends H{constructor(e){super(e),this.controlType="wrap",this.props=new at(e==null?void 0:e.props)}}class os extends et{constructor(e){super(e),this.controlType="wrap",this.props=new at(e==null?void 0:e.props)}}function ds(t){t.hasOwnProperty("linkOperationOption")&&t.hasOwnProperty("showLinkOperation")&&t.showLinkOperation&&(this.linkOperationOption=[{type:"object",fields:{formKey:{type:"string",required:!0,message:h.getMessage("pleaseEnterForm")}}}])}s.AMOUNT_TYPE=He,s.AddressValue=yl,s.AmountDataBind=fl,s.AmountValue=hl,s.AutoWidth=Pe,s.BaseControlProperty=ae,s.BaseControlPropertyRules=pe,s.BaseControlPropertyRuntimeRules=un,s.BaseStyle=Wt,s.COMMON_SETTING_TYPE=Ht,s.CalcDataBind=vl,s.CalcValue=El,s.ColumnControlProperty=Be,s.ColumnControlPropertyRules=nt,s.ColumnOptionAndDataSourcePropertyRules=as,s.CustomAttributeItem=Ne,s.CustomPermissionItem=Al,s.DataBind=$,s.DataSourceBind=he,s.DataSourceDataSetValue=jt,s.DataSourceOrderItem=je,s.DataSourceParamItem=tl,s.DataStorageDoc=Gr,s.DesignerColumnControl=is,s.DesignerControl=M,s.DesignerFormControl=an,s.DesignerLayoutControl=H,s.DesignerListControl=Ee,s.DesignerSearchControl=ls,s.DesignerWrapControl=cs,s.DisplayBoListItem=Oe,s.FieldBindItem=Pt,s.FieldFilterCondition=te,s.FieldFilterConditions=z,s.FillBackBind=ll,s.FillPayloadBind=rl,s.FormBind=fe,s.FormSelectBind=Zr,s.ImageOptionSetting=kt,s.JoinRelation=pr,s.Language=sl,s.LayoutControlProperty=ie,s.LeftVariable=xt,s.LinkOperationOption=ul,s.ListBind=Qr,s.ListControlProperty=tt,s.MetaAutoWidth=Xr,s.MetaRowHeight=Jr,s.MetaWidth=de,s.MultistageFillingItem=Ot,s.ObjectDataBind=me,s.OperationItem=Bl,s.OptObject=Fl,s.OptionAndDataSourcePropertyRules=es,s.OptionDisplayConfigItem=el,s.OptionSetting=ke,s.OrganizationDataSourceBind=al,s.PAGE_STATUS=We,s.Property=O,s.PropertyRules=ge,s.PropertyRuntimeRules=Ke,s.RangeDataBind=ml,s.RangeDateValue=gl,s.RegisterControls=ee,s.RegularRules=cl,s.RightVariable=xe,s.RowHeight=Ve,s.RowStyle=bl,s.RowStyleRule=Kt,s.RowStyleSettings=zt,s.RuntimeColumnControl=rs,s.RuntimeControl=j,s.RuntimeFormControl=ts,s.RuntimeLayoutControl=et,s.RuntimeListControl=us,s.RuntimeSearchControl=ss,s.RuntimeWrapControl=os,s.SearchControlProperty=ut,s.SelectedContentConfig=nl,s.SubListItem=Vt,s.SubListPageConfig=Yr,s.SuperDataSourceBind=Ut,s.TreeDataSourceBind=il,s.ViewOperationItem=Cl,s.WrapControlProperty=at,s.controlHooksEmitter=pt,s.createValidator=Yt,s.defineArrayParent=Rt,s.defineControlArrayToProperty=N,s.defineParent=Le,s.initImageOptions=dl,s.initLinkOperationRules=ds,s.initOptionAndDataSourceRules=Ye,s.initOptions=ol,s.initSuperDataSourceRules=pl,s.isDataBind=nn,s.setPropertyDontEnum=oe,Object.defineProperty(s,"__esModule",{value:!0})});
|
|
1
|
+
var $_=Object.defineProperty,x_=Object.defineProperties;var W_=Object.getOwnPropertyDescriptors;var Al=Object.getOwnPropertySymbols,B_=Object.getPrototypeOf,H_=Object.prototype.hasOwnProperty,p_=Object.prototype.propertyIsEnumerable,j_=Reflect.get;var Dl=(I,te,re)=>te in I?$_(I,te,{enumerable:!0,configurable:!0,writable:!0,value:re}):I[te]=re,Ze=(I,te)=>{for(var re in te||(te={}))H_.call(te,re)&&Dl(I,re,te[re]);if(Al)for(var re of Al(te))p_.call(te,re)&&Dl(I,re,te[re]);return I},Tt=(I,te)=>x_(I,W_(te));var ma=(I,te,re)=>j_(B_(I),re,te);var Ye=(I,te,re)=>new Promise((Cr,pe)=>{var $n=Oe=>{try{Pt(re.next(Oe))}catch(Mt){pe(Mt)}},xn=Oe=>{try{Pt(re.throw(Oe))}catch(Mt){pe(Mt)}},Pt=Oe=>Oe.done?Cr(Oe.value):Promise.resolve(Oe.value).then($n,xn);Pt((re=re.apply(I,te)).next())});(function(I,te){typeof exports=="object"&&typeof module!="undefined"?te(exports):typeof define=="function"&&define.amd?define(["exports"],te):(I=typeof globalThis!="undefined"?globalThis:I||self,te(I.modelDrivenCore={}))})(this,function(I){"use strict";var te;(function(e){e.Number="Number",e.Operator="Operator",e.VariableInMainTable="VariableInMainTable",e.VariableInCurrentSubTable="VariableInCurrentSubTable",e.VariableInOtherSubTable="VariableInOtherSubTable",e.UndefinedVariable="UndefinedVariable"})(te||(te={}));var re;(function(e){e.SUM="SUM",e.AVG="AVG",e.MAX="MAX",e.MIN="MIN"})(re||(re={}));var Cr="zh-CN",pe;(function(e){e.BASE="base",e.FORM="form",e.LAYOUT="layout",e.WRAP="wrap",e.COLUMN="column",e.LIST="list",e.SEARCH="search"})(pe||(pe={}));var $n;(function(e){e[e.FORM=0]="FORM",e[e.LIST=1]="LIST",e[e.REPORT=2]="REPORT",e[e.DASHBOARD=3]="DASHBOARD",e[e.VUE=4]="VUE",e[e.FREE_PAGE=5]="FREE_PAGE"})($n||($n={}));var xn;(function(e){e.TITLE="title",e.LINK="link",e.BUTTON="button",e.DIVIDER="divider",e.TEXT="text",e.CREATE_FORM_LIST_BUTTON="list-page-btn-create-form",e.BATCH_SUBMISSION_LIST_BUTTON="list-page-btn-batch-submission",e.BATCH_DELETE_LIST_BUTTON="list-page-btn-batch-delete",e.SUBMISSION_RECORD_LIST_BUTTON="list-page-btn-submission-record",e.IMPORT_RECORD_LIST_BUTTON="list-page-btn-import-record",e.EXPORT_RECORD_LIST_BUTTON="list-page-btn-export-record",e.EXPORT_LIST_BUTTON="list-page-btn-export-list",e.LIST_SELECT_BUTTON="list-select-button",e.ORGANIZATION_SELECTION="organization-selection",e.FORM_SELECT_BUTTON="form-select-button",e.LIST_VIEW_SELECT="list-view-select",e.TEXT_OCR_BUTTON="text-ocr-button",e.INVOICE_CHECK_BUTTON="invoice-check-button",e.LIST_PAGE_BTN_BATCH_PRINT="list-page-btn-batch-print",e.LIST_PAGE_BTN_BATCH_PRINT_RECORD="list-page-btn-batch-print-record",e.VARCHAR_COLUMN="varchar-column",e.TEXT_COLUMN="text-column",e.DECIMAL_COLUMN="decimal-column",e.TIMESCOPE_COLUMN="timescope-column",e.TIMESTAMP_COLUMN="timestamp-column",e.ARRAY_COLUMN="array-column",e.DEPARTMENT_COLUMN="department-column",e.AUTO_NUMBER_COLUMN="auto-number-column",e.FILE_COLUMN="file-column",e.IMAGE_COLUMN="image-column",e.PEOPLE_COLUMN="people-column",e.LOCATION_COLUMN="location-column",e.CUSTOM_COLUMN="custom-column",e.ORDER_COLUMN="order-column",e.OPERATION_COLUMN="operation-column",e.OPERATION_BUTTON="operation-button",e.EMPLOYEE_COLUMN="employee-column",e.Approval_Status_Column="approval-status-column",e.ADDRESS="address",e.AMOUNT="amount",e.ATTACHMENT="attachment",e.AUTO_NUMBER="auto-number",e.CALC="calc",e.CHECKBOX="checkbox",e.DATE_PICKER="date-picker",e.DATE_RANGE="date-range",e.DEPARTMENT="department",e.EMPLOYEE="employee",e.IMAGE="image",e.INPUT="input",e.NUMBER="number",e.RADIO="radio",e.RICH_TEXT="rich-text",e.SCORE="score",e.SEARCH_DATE_RANGE="search-date-range",e.SEARCH_NUMBER_RANGE="search-number-range",e.SEARCH_INPUT="search-input",e.SELECT="select",e.SELECT_MULTIPLE="select-multiple",e.SELECT_RELATION="select-relation",e.VUE_FORM_ITEM="vue-form-item",e.TEXTAREA="textarea",e.EMAIL="email",e.FOOTER="footer",e.HEADER="header",e.ID_CARD="id-card",e.MOBILE="mobile",e.PHONE="phone",e.RADIO_IMAGE="radio-image",e.ELECTRONIC_SIGNATURE="electronic-signature",e.WPS="wps",e.CARD_GROUP="card-group",e.COL="col",e.GRID="grid",e.GRID_ROW="grid-row",e.GRID_TABLE_COLUMN="grid-table-column",e.GRID_LAYOUT_CONTAINER="grid-layout-container",e.ROW="row",e.TWO_COLUMNS="two-columns",e.SUBTABLE_COLUMN="subtable-column",e.SUBTABLE_ROW="subtable-row",e.TAB="tab",e.TAB_PANE="tab-pane",e.TOOLBOX="toolbox",e.DATA_VIEW="data-view",e.LIST_VIEW="list-view",e.ACTION_BAR="action-bar",e.SUBTABLE="subtable",e.GRID_TABLE="grid-table",e.SIMPLE_SEARCH="simple-search",e.PAGINATION="pagination",e.CHECKBOX_IMAGE="checkbox-image",e.DASHBOARD="dashboard",e.TREE="tree",e.EMPLOYEE2="employee2",e.DEPARTMENT2="department2",e.GRID_LAYOUT_WRAP="grid-layout-wrap",e.VUE_PAGE="vue-page"})(xn||(xn={}));var Pt;(function(e){e.SAVE="save",e.DRAFT="draft",e.UNSUBMIT="unsubmit",e.AUDIT="audit",e.UNAUDIT="unaudit",e.CANCEL="cancel",e.FORM_SUBMIT="form_submit"})(Pt||(Pt={}));var Oe;(function(e){e.VARCHAR="varchar",e.TEXT="text",e.ARRAY="array",e.ADDRESS="location",e.DECIMAL="decimal",e.DECIMAL_RANGE="decimal_range",e.TIMESTAMP="timestamp",e.EMPLOYEES="people",e.DEPARTMENTS="department",e.MONEY="money",e.TIMESCOPE="timescope",e.FILE="file",e.IMAGE="image",e.AUTO_NUMBER="auto_number",e.CALC="calc",e.LIST="list",e.JSON="json",e.ANY="ANY"})(Oe||(Oe={}));var Mt;(function(e){e.YEAR="year",e.MONTH="month",e.DATE="date",e.DATEHOUR="datehour",e.DATEMIN="datemin",e.DATETIME="datetime"})(Mt||(Mt={}));var _a="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",Cl=_a+"0123456789";function et(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,t="",n=0;n<e;n++){var r=n===0?_a:Cl,i=Math.random()*r.length;t+=r[parseInt(String(i),10)]}return t}function Rr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Rl(e){if(Array.isArray(e))return Rr(e)}function Tl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ha(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wn(e,t,n){return ya()?Wn=Reflect.construct:Wn=function(i,a,s){var o=[null];o.push.apply(o,a);var l=Function.bind.apply(i,o),c=new l;return s&&tn(c,s.prototype),c},Wn.apply(null,arguments)}function en(e){return en=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},en(e)}function ga(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&&tn(e,t)}function Pl(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Ml(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Fl(){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 Vl(e,t){return t&&(kl(t)==="object"||typeof t=="function")?t:Tl(e)}function tn(e,t){return tn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},tn(e,t)}function Ea(e){return Rl(e)||Ml(e)||Ul(e)||Fl()}function kl(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Ul(e,t){if(!!e){if(typeof e=="string")return Rr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rr(e,t)}}function Tr(e){var t=typeof Map=="function"?new Map:void 0;return Tr=function(r){if(r===null||!Pl(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,i)}function i(){return Wn(r,arguments,en(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),tn(i,r)},Tr(e)}function ya(){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 va(e){var t=ya();return function(){var r=en(e),i;if(t){var a=en(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Vl(this,i)}}var Pr=console;function Mr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=t.slice(1);(r=Pr).warn.apply(r,["\u{1F9D0} Driven Warning:"+t[0]].concat(Ea(i)))}function ba(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=t.slice(1);(r=Pr).log.apply(r,["\u{1F680} Driven Log:"+t[0]].concat(Ea(i)))}function $l(e){return e+" \u{1F41B}\u{1F41B}\u{1F41B}"}var Fr=function(e){ga(n,e);var t=va(n);function n(r){ha(this,n);var i;return i=t.call(this,r),i.name="\u{1F4A5} Driven Error",i.message=r?$l(r):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",i}return n}(Tr(Error)),xl=function(e){ga(n,e);var t=va(n);function n(r){ha(this,n);var i;return i=t.call(this,r),i.name="\u{1F6A8} Driven Reference Error",i}return n}(Fr);function Vr(e){throw new Fr(e)}function Na(e){throw new xl(e)}function Wl(e){Pr.error(new Fr(e))}/*!
|
|
2
|
+
* shared v9.13.1
|
|
3
|
+
* (c) 2024 kazuya kawaguchi
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/const Re=typeof window!="undefined";let Se,gt;if(process.env.NODE_ENV!=="production"){const e=Re&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(Se=t=>{e.mark(t)},gt=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}const Bl=/\{([0-9a-zA-Z]+)\}/g;function nn(e,...t){return t.length===1&&p(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Bl,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const Te=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Hl=(e,t,n)=>pl({l:e,k:t,s:n}),pl=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),oe=e=>typeof e=="number"&&isFinite(e),jl=e=>wa(e)==="[object Date]",tt=e=>wa(e)==="[object RegExp]",Bn=e=>U(e)&&Object.keys(e).length===0,le=Object.assign;let Ia;const je=()=>Ia||(Ia=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function Oa(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const ql=Object.prototype.hasOwnProperty;function Hn(e,t){return ql.call(e,t)}const Q=Array.isArray,X=e=>typeof e=="function",M=e=>typeof e=="string",$=e=>typeof e=="boolean",p=e=>e!==null&&typeof e=="object",Kl=e=>p(e)&&X(e.then)&&X(e.catch),Sa=Object.prototype.toString,wa=e=>Sa.call(e),U=e=>{if(!p(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},Gl=e=>e==null?"":Q(e)||U(e)&&e.toString===Sa?JSON.stringify(e,null,2):String(e);function kr(e,t=""){return e.reduce((n,r,i)=>i===0?n+r:n+t+r,"")}const La=2;function Xl(e,t=0,n=e.length){const r=e.split(/\r?\n/);let i=0;const a=[];for(let s=0;s<r.length;s++)if(i+=r[s].length+1,i>=t){for(let o=s-La;o<=s+La||n>i;o++){if(o<0||o>=r.length)continue;const l=o+1;a.push(`${l}${" ".repeat(3-String(l).length)}| ${r[o]}`);const c=r[o].length;if(o===s){const _=t-(i-c)+1,f=Math.max(1,n>i?c-_:n-t);a.push(" | "+" ".repeat(_)+"^".repeat(f))}else if(o>s){if(n>i){const _=Math.max(Math.min(n-i,c),1);a.push(" | "+"^".repeat(_))}i+=c+1}}break}return a.join(`
|
|
6
|
+
`)}function pn(e){let t=e;return()=>++t}function ce(e,t){typeof console!="undefined"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Aa={};function Da(e){Aa[e]||(Aa[e]=!0,ce(e))}function Ur(){const e=new Map;return{events:e,on(n,r){const i=e.get(n);i&&i.push(r)||e.set(n,[r])},off(n,r){const i=e.get(n);i&&i.splice(i.indexOf(r)>>>0,1)},emit(n,r){(e.get(n)||[]).slice().map(i=>i(r)),(e.get("*")||[]).slice().map(i=>i(n,r))}}}const jn=e=>!p(e)||Q(e);function qn(e,t){if(jn(e)||jn(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:i}=n.pop();Object.keys(r).forEach(a=>{jn(r[a])||jn(i[a])?i[a]=r[a]:n.push({src:r[a],des:i[a]})})}}/*!
|
|
7
|
+
* message-compiler v9.13.1
|
|
8
|
+
* (c) 2024 kazuya kawaguchi
|
|
9
|
+
* Released under the MIT License.
|
|
10
|
+
*/function Jl(e,t,n){return{line:e,column:t,offset:n}}function Kn(e,t,n){const r={start:e,end:t};return n!=null&&(r.source=n),r}const Gn={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},Ql={[Gn.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function zl(e,t,...n){const r=process.env.NODE_ENV!=="production"?nn(Ql[e]||"",...n||[]):e,i={message:String(r),code:e};return t&&(i.location=t),i}const V={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},Zl={[V.EXPECTED_TOKEN]:"Expected token: '{0}'",[V.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[V.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[V.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[V.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[V.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[V.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[V.EMPTY_PLACEHOLDER]:"Empty placeholder",[V.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[V.INVALID_LINKED_FORMAT]:"Invalid linked format",[V.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[V.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[V.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[V.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[V.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[V.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Ft(e,t,n={}){const{domain:r,messages:i,args:a}=n,s=process.env.NODE_ENV!=="production"?nn((i||Zl)[e]||"",...a||[]):e,o=new SyntaxError(String(s));return o.code=e,t&&(o.location=t),o.domain=r,o}function Yl(e){throw e}const ec=/<\/?[\w\s="/.':;#-\/]+>/,tc=e=>ec.test(e),qe=" ",nc="\r",_e=`
|
|
11
|
+
`,rc=String.fromCharCode(8232),ic=String.fromCharCode(8233);function ac(e){const t=e;let n=0,r=1,i=1,a=0;const s=y=>t[y]===nc&&t[y+1]===_e,o=y=>t[y]===_e,l=y=>t[y]===ic,c=y=>t[y]===rc,_=y=>s(y)||o(y)||l(y)||c(y),f=()=>n,m=()=>r,S=()=>i,L=()=>a,v=y=>s(y)||l(y)||c(y)?_e:t[y],D=()=>v(n),g=()=>v(n+a);function O(){return a=0,_(n)&&(r++,i=0),s(n)&&n++,n++,i++,t[n]}function h(){return s(n+a)&&a++,a++,t[n+a]}function E(){n=0,r=1,i=1,a=0}function w(y=0){a=y}function N(){const y=n+a;for(;y!==n;)O();a=0}return{index:f,line:m,column:S,peekOffset:L,charAt:v,currentChar:D,currentPeek:g,next:O,peek:h,reset:E,resetPeek:w,skipToPeek:N}}const nt=void 0,sc=".",Ca="'",oc="tokenizer";function lc(e,t={}){const n=t.location!==!1,r=ac(e),i=()=>r.index(),a=()=>Jl(r.line(),r.column(),r.index()),s=a(),o=i(),l={currentType:14,offset:o,startLoc:s,endLoc:s,lastType:14,lastOffset:o,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:_}=t;function f(u,d,A,...F){const ee=c();if(d.column+=A,d.offset+=A,_){const J=n?Kn(ee.startLoc,d):null,G=Ft(u,J,{domain:oc,args:F});_(G)}}function m(u,d,A){u.endLoc=a(),u.currentType=d;const F={type:d};return n&&(F.loc=Kn(u.startLoc,u.endLoc)),A!=null&&(F.value=A),F}const S=u=>m(u,14);function L(u,d){return u.currentChar()===d?(u.next(),d):(f(V.EXPECTED_TOKEN,a(),0,d),"")}function v(u){let d="";for(;u.currentPeek()===qe||u.currentPeek()===_e;)d+=u.currentPeek(),u.peek();return d}function D(u){const d=v(u);return u.skipToPeek(),d}function g(u){if(u===nt)return!1;const d=u.charCodeAt(0);return d>=97&&d<=122||d>=65&&d<=90||d===95}function O(u){if(u===nt)return!1;const d=u.charCodeAt(0);return d>=48&&d<=57}function h(u,d){const{currentType:A}=d;if(A!==2)return!1;v(u);const F=g(u.currentPeek());return u.resetPeek(),F}function E(u,d){const{currentType:A}=d;if(A!==2)return!1;v(u);const F=u.currentPeek()==="-"?u.peek():u.currentPeek(),ee=O(F);return u.resetPeek(),ee}function w(u,d){const{currentType:A}=d;if(A!==2)return!1;v(u);const F=u.currentPeek()===Ca;return u.resetPeek(),F}function N(u,d){const{currentType:A}=d;if(A!==8)return!1;v(u);const F=u.currentPeek()===".";return u.resetPeek(),F}function y(u,d){const{currentType:A}=d;if(A!==9)return!1;v(u);const F=g(u.currentPeek());return u.resetPeek(),F}function C(u,d){const{currentType:A}=d;if(!(A===8||A===12))return!1;v(u);const F=u.currentPeek()===":";return u.resetPeek(),F}function T(u,d){const{currentType:A}=d;if(A!==10)return!1;const F=()=>{const J=u.currentPeek();return J==="{"?g(u.peek()):J==="@"||J==="%"||J==="|"||J===":"||J==="."||J===qe||!J?!1:J===_e?(u.peek(),F()):x(u,!1)},ee=F();return u.resetPeek(),ee}function j(u){v(u);const d=u.currentPeek()==="|";return u.resetPeek(),d}function ve(u){const d=v(u),A=u.currentPeek()==="%"&&u.peek()==="{";return u.resetPeek(),{isModulo:A,hasSpace:d.length>0}}function x(u,d=!0){const A=(ee=!1,J="",G=!1)=>{const b=u.currentPeek();return b==="{"?J==="%"?!1:ee:b==="@"||!b?J==="%"?!0:ee:b==="%"?(u.peek(),A(ee,"%",!0)):b==="|"?J==="%"||G?!0:!(J===qe||J===_e):b===qe?(u.peek(),A(!0,qe,G)):b===_e?(u.peek(),A(!0,_e,G)):!0},F=A();return d&&u.resetPeek(),F}function se(u,d){const A=u.currentChar();return A===nt?nt:d(A)?(u.next(),A):null}function De(u){const d=u.charCodeAt(0);return d>=97&&d<=122||d>=65&&d<=90||d>=48&&d<=57||d===95||d===36}function On(u){return se(u,De)}function He(u){const d=u.charCodeAt(0);return d>=97&&d<=122||d>=65&&d<=90||d>=48&&d<=57||d===95||d===36||d===45}function Sn(u){return se(u,He)}function wn(u){const d=u.charCodeAt(0);return d>=48&&d<=57}function Ln(u){return se(u,wn)}function An(u){const d=u.charCodeAt(0);return d>=48&&d<=57||d>=65&&d<=70||d>=97&&d<=102}function Dn(u){return se(u,An)}function Ce(u){let d="",A="";for(;d=Ln(u);)A+=d;return A}function Qt(u){D(u);const d=u.currentChar();return d!=="%"&&f(V.EXPECTED_TOKEN,a(),0,d),u.next(),"%"}function zt(u){let d="";for(;;){const A=u.currentChar();if(A==="{"||A==="}"||A==="@"||A==="|"||!A)break;if(A==="%")if(x(u))d+=A,u.next();else break;else if(A===qe||A===_e)if(x(u))d+=A,u.next();else{if(j(u))break;d+=A,u.next()}else d+=A,u.next()}return d}function Cn(u){D(u);let d="",A="";for(;d=Sn(u);)A+=d;return u.currentChar()===nt&&f(V.UNTERMINATED_CLOSING_BRACE,a(),0),A}function Rn(u){D(u);let d="";return u.currentChar()==="-"?(u.next(),d+=`-${Ce(u)}`):d+=Ce(u),u.currentChar()===nt&&f(V.UNTERMINATED_CLOSING_BRACE,a(),0),d}function Tn(u){return u!==Ca&&u!==_e}function Ar(u){D(u),L(u,"'");let d="",A="";for(;d=se(u,Tn);)d==="\\"?A+=Pn(u):A+=d;const F=u.currentChar();return F===_e||F===nt?(f(V.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),F===_e&&(u.next(),L(u,"'")),A):(L(u,"'"),A)}function Pn(u){const d=u.currentChar();switch(d){case"\\":case"'":return u.next(),`\\${d}`;case"u":return Zt(u,d,4);case"U":return Zt(u,d,6);default:return f(V.UNKNOWN_ESCAPE_SEQUENCE,a(),0,d),""}}function Zt(u,d,A){L(u,d);let F="";for(let ee=0;ee<A;ee++){const J=Dn(u);if(!J){f(V.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${d}${F}${u.currentChar()}`);break}F+=J}return`\\${d}${F}`}function Mn(u){return u!=="{"&&u!=="}"&&u!==qe&&u!==_e}function Fn(u){D(u);let d="",A="";for(;d=se(u,Mn);)A+=d;return A}function Vn(u){let d="",A="";for(;d=On(u);)A+=d;return A}function P(u){const d=A=>{const F=u.currentChar();return F==="{"||F==="%"||F==="@"||F==="|"||F==="("||F===")"||!F||F===qe?A:(A+=F,u.next(),d(A))};return d("")}function q(u){D(u);const d=L(u,"|");return D(u),d}function kn(u,d){let A=null;switch(u.currentChar()){case"{":return d.braceNest>=1&&f(V.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),u.next(),A=m(d,2,"{"),D(u),d.braceNest++,A;case"}":return d.braceNest>0&&d.currentType===2&&f(V.EMPTY_PLACEHOLDER,a(),0),u.next(),A=m(d,3,"}"),d.braceNest--,d.braceNest>0&&D(u),d.inLinked&&d.braceNest===0&&(d.inLinked=!1),A;case"@":return d.braceNest>0&&f(V.UNTERMINATED_CLOSING_BRACE,a(),0),A=Ct(u,d)||S(d),d.braceNest=0,A;default:{let ee=!0,J=!0,G=!0;if(j(u))return d.braceNest>0&&f(V.UNTERMINATED_CLOSING_BRACE,a(),0),A=m(d,1,q(u)),d.braceNest=0,d.inLinked=!1,A;if(d.braceNest>0&&(d.currentType===5||d.currentType===6||d.currentType===7))return f(V.UNTERMINATED_CLOSING_BRACE,a(),0),d.braceNest=0,Un(u,d);if(ee=h(u,d))return A=m(d,5,Cn(u)),D(u),A;if(J=E(u,d))return A=m(d,6,Rn(u)),D(u),A;if(G=w(u,d))return A=m(d,7,Ar(u)),D(u),A;if(!ee&&!J&&!G)return A=m(d,13,Fn(u)),f(V.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,A.value),D(u),A;break}}return A}function Ct(u,d){const{currentType:A}=d;let F=null;const ee=u.currentChar();switch((A===8||A===9||A===12||A===10)&&(ee===_e||ee===qe)&&f(V.INVALID_LINKED_FORMAT,a(),0),ee){case"@":return u.next(),F=m(d,8,"@"),d.inLinked=!0,F;case".":return D(u),u.next(),m(d,9,".");case":":return D(u),u.next(),m(d,10,":");default:return j(u)?(F=m(d,1,q(u)),d.braceNest=0,d.inLinked=!1,F):N(u,d)||C(u,d)?(D(u),Ct(u,d)):y(u,d)?(D(u),m(d,12,Vn(u))):T(u,d)?(D(u),ee==="{"?kn(u,d)||F:m(d,11,P(u))):(A===8&&f(V.INVALID_LINKED_FORMAT,a(),0),d.braceNest=0,d.inLinked=!1,Un(u,d))}}function Un(u,d){let A={type:14};if(d.braceNest>0)return kn(u,d)||S(d);if(d.inLinked)return Ct(u,d)||S(d);switch(u.currentChar()){case"{":return kn(u,d)||S(d);case"}":return f(V.UNBALANCED_CLOSING_BRACE,a(),0),u.next(),m(d,3,"}");case"@":return Ct(u,d)||S(d);default:{if(j(u))return A=m(d,1,q(u)),d.braceNest=0,d.inLinked=!1,A;const{isModulo:ee,hasSpace:J}=ve(u);if(ee)return J?m(d,0,zt(u)):m(d,4,Qt(u));if(x(u))return m(d,0,zt(u));break}}return A}function da(){const{currentType:u,offset:d,startLoc:A,endLoc:F}=l;return l.lastType=u,l.lastOffset=d,l.lastStartLoc=A,l.lastEndLoc=F,l.offset=i(),l.startLoc=a(),r.currentChar()===nt?m(l,14):Un(r,l)}return{nextToken:da,currentOffset:i,currentPosition:a,context:c}}const cc="parser",uc=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function fc(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"\uFFFD"}}}function dc(e={}){const t=e.location!==!1,{onError:n,onWarn:r}=e;function i(h,E,w,N,...y){const C=h.currentPosition();if(C.offset+=N,C.column+=N,n){const T=t?Kn(w,C):null,j=Ft(E,T,{domain:cc,args:y});n(j)}}function a(h,E,w,N,...y){const C=h.currentPosition();if(C.offset+=N,C.column+=N,r){const T=t?Kn(w,C):null;r(zl(E,T,y))}}function s(h,E,w){const N={type:h};return t&&(N.start=E,N.end=E,N.loc={start:w,end:w}),N}function o(h,E,w,N){N&&(h.type=N),t&&(h.end=E,h.loc&&(h.loc.end=w))}function l(h,E){const w=h.context(),N=s(3,w.offset,w.startLoc);return N.value=E,o(N,h.currentOffset(),h.currentPosition()),N}function c(h,E){const w=h.context(),{lastOffset:N,lastStartLoc:y}=w,C=s(5,N,y);return C.index=parseInt(E,10),h.nextToken(),o(C,h.currentOffset(),h.currentPosition()),C}function _(h,E,w){const N=h.context(),{lastOffset:y,lastStartLoc:C}=N,T=s(4,y,C);return T.key=E,w===!0&&(T.modulo=!0),h.nextToken(),o(T,h.currentOffset(),h.currentPosition()),T}function f(h,E){const w=h.context(),{lastOffset:N,lastStartLoc:y}=w,C=s(9,N,y);return C.value=E.replace(uc,fc),h.nextToken(),o(C,h.currentOffset(),h.currentPosition()),C}function m(h){const E=h.nextToken(),w=h.context(),{lastOffset:N,lastStartLoc:y}=w,C=s(8,N,y);return E.type!==12?(i(h,V.UNEXPECTED_EMPTY_LINKED_MODIFIER,w.lastStartLoc,0),C.value="",o(C,N,y),{nextConsumeToken:E,node:C}):(E.value==null&&i(h,V.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Pe(E)),C.value=E.value||"",o(C,h.currentOffset(),h.currentPosition()),{node:C})}function S(h,E){const w=h.context(),N=s(7,w.offset,w.startLoc);return N.value=E,o(N,h.currentOffset(),h.currentPosition()),N}function L(h){const E=h.context(),w=s(6,E.offset,E.startLoc);let N=h.nextToken();if(N.type===9){const y=m(h);w.modifier=y.node,N=y.nextConsumeToken||h.nextToken()}switch(N.type!==10&&i(h,V.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Pe(N)),N=h.nextToken(),N.type===2&&(N=h.nextToken()),N.type){case 11:N.value==null&&i(h,V.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Pe(N)),w.key=S(h,N.value||"");break;case 5:N.value==null&&i(h,V.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Pe(N)),w.key=_(h,N.value||"");break;case 6:N.value==null&&i(h,V.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Pe(N)),w.key=c(h,N.value||"");break;case 7:N.value==null&&i(h,V.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Pe(N)),w.key=f(h,N.value||"");break;default:{i(h,V.UNEXPECTED_EMPTY_LINKED_KEY,E.lastStartLoc,0);const y=h.context(),C=s(7,y.offset,y.startLoc);return C.value="",o(C,y.offset,y.startLoc),w.key=C,o(w,y.offset,y.startLoc),{nextConsumeToken:N,node:w}}}return o(w,h.currentOffset(),h.currentPosition()),{node:w}}function v(h){const E=h.context(),w=E.currentType===1?h.currentOffset():E.offset,N=E.currentType===1?E.endLoc:E.startLoc,y=s(2,w,N);y.items=[];let C=null,T=null;do{const x=C||h.nextToken();switch(C=null,x.type){case 0:x.value==null&&i(h,V.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Pe(x)),y.items.push(l(h,x.value||""));break;case 6:x.value==null&&i(h,V.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Pe(x)),y.items.push(c(h,x.value||""));break;case 4:T=!0;break;case 5:x.value==null&&i(h,V.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Pe(x)),y.items.push(_(h,x.value||"",!!T)),T&&(a(h,Gn.USE_MODULO_SYNTAX,E.lastStartLoc,0,Pe(x)),T=null);break;case 7:x.value==null&&i(h,V.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Pe(x)),y.items.push(f(h,x.value||""));break;case 8:{const se=L(h);y.items.push(se.node),C=se.nextConsumeToken||null;break}}}while(E.currentType!==14&&E.currentType!==1);const j=E.currentType===1?E.lastOffset:h.currentOffset(),ve=E.currentType===1?E.lastEndLoc:h.currentPosition();return o(y,j,ve),y}function D(h,E,w,N){const y=h.context();let C=N.items.length===0;const T=s(1,E,w);T.cases=[],T.cases.push(N);do{const j=v(h);C||(C=j.items.length===0),T.cases.push(j)}while(y.currentType!==14);return C&&i(h,V.MUST_HAVE_MESSAGES_IN_PLURAL,w,0),o(T,h.currentOffset(),h.currentPosition()),T}function g(h){const E=h.context(),{offset:w,startLoc:N}=E,y=v(h);return E.currentType===14?y:D(h,w,N,y)}function O(h){const E=lc(h,le({},e)),w=E.context(),N=s(0,w.offset,w.startLoc);return t&&N.loc&&(N.loc.source=h),N.body=g(E),e.onCacheKey&&(N.cacheKey=e.onCacheKey(h)),w.currentType!==14&&i(E,V.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,h[w.offset]||""),o(N,E.currentOffset(),E.currentPosition()),N}return{parse:O}}function Pe(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"\u2026":t}function mc(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:a=>(n.helpers.add(a),a)}}function Ra(e,t){for(let n=0;n<e.length;n++)$r(e[n],t)}function $r(e,t){switch(e.type){case 1:Ra(e.cases,t),t.helper("plural");break;case 2:Ra(e.items,t);break;case 6:{$r(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function _c(e,t={}){const n=mc(e);n.helper("normalize"),e.body&&$r(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function hc(e){const t=e.body;return t.type===2?Ta(t):t.cases.forEach(n=>Ta(n)),e}function Ta(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=kr(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const gc="minifier";function Vt(e){switch(e.t=e.type,e.type){case 0:{const t=e;Vt(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)Vt(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)Vt(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Vt(t.key),t.k=t.key,delete t.key,t.modifier&&(Vt(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:if(process.env.NODE_ENV!=="production")throw Ft(V.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:gc,args:[e.type]})}delete e.type}const Ec="parser";function yc(e,t){const{sourceMap:n,filename:r,breakLineCode:i,needIndent:a}=t,s=t.location!==!1,o={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:a,indentLevel:0};s&&e.loc&&(o.source=e.loc.source);const l=()=>o;function c(D,g){o.code+=D}function _(D,g=!0){const O=g?i:"";c(a?O+" ".repeat(D):O)}function f(D=!0){const g=++o.indentLevel;D&&_(g)}function m(D=!0){const g=--o.indentLevel;D&&_(g)}function S(){_(o.indentLevel)}return{context:l,push:c,indent:f,deindent:m,newline:S,helper:D=>`_${D}`,needIndent:()=>o.needIndent}}function vc(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),kt(e,t.key),t.modifier?(e.push(", "),kt(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function bc(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const i=t.items.length;for(let a=0;a<i&&(kt(e,t.items[a]),a!==i-1);a++)e.push(", ");e.deindent(r()),e.push("])")}function Nc(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const i=t.cases.length;for(let a=0;a<i&&(kt(e,t.cases[a]),a!==i-1);a++)e.push(", ");e.deindent(r()),e.push("])")}}function Ic(e,t){t.body?kt(e,t.body):e.push("null")}function kt(e,t){const{helper:n}=e;switch(t.type){case 0:Ic(e,t);break;case 1:Nc(e,t);break;case 2:bc(e,t);break;case 6:vc(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:if(process.env.NODE_ENV!=="production")throw Ft(V.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Ec,args:[t.type]})}}const Oc=(e,t={})=>{const n=M(t.mode)?t.mode:"normal",r=M(t.filename)?t.filename:"message.intl",i=!!t.sourceMap,a=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
12
|
+
`,s=t.needIndent?t.needIndent:n!=="arrow",o=e.helpers||[],l=yc(e,{mode:n,filename:r,sourceMap:i,breakLineCode:a,needIndent:s});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(s),o.length>0&&(l.push(`const { ${kr(o.map(f=>`${f}: _${f}`),", ")} } = ctx`),l.newline()),l.push("return "),kt(l,e),l.deindent(s),l.push("}"),delete e.helpers;const{code:c,map:_}=l.context();return{ast:e,code:c,map:_?_.toJSON():void 0}};function Sc(e,t={}){const n=le({},t),r=!!n.jit,i=!!n.minify,a=n.optimize==null?!0:n.optimize,o=dc(n).parse(e);return r?(a&&hc(o),i&&Vt(o),{ast:o,code:""}):(_c(o,n),Oc(o,n))}/*!
|
|
13
|
+
* core-base v9.13.1
|
|
14
|
+
* (c) 2024 kazuya kawaguchi
|
|
15
|
+
* Released under the MIT License.
|
|
16
|
+
*/function wc(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(je().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(je().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(je().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const rt=[];rt[0]={w:[0],i:[3,0],["["]:[4],o:[7]},rt[1]={w:[1],["."]:[2],["["]:[4],o:[7]},rt[2]={w:[2],i:[3,0],[0]:[3,0]},rt[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]},rt[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]},rt[5]={["'"]:[4,0],o:8,l:[5,0]},rt[6]={['"']:[4,0],o:8,l:[6,0]};const Lc=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Ac(e){return Lc.test(e)}function Dc(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Cc(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Rc(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Ac(t)?Dc(t):"*"+t}function Tc(e){const t=[];let n=-1,r=0,i=0,a,s,o,l,c,_,f;const m=[];m[0]=()=>{s===void 0?s=o:s+=o},m[1]=()=>{s!==void 0&&(t.push(s),s=void 0)},m[2]=()=>{m[0](),i++},m[3]=()=>{if(i>0)i--,r=4,m[0]();else{if(i=0,s===void 0||(s=Rc(s),s===!1))return!1;m[1]()}};function S(){const L=e[n+1];if(r===5&&L==="'"||r===6&&L==='"')return n++,o="\\"+L,m[0](),!0}for(;r!==null;)if(n++,a=e[n],!(a==="\\"&&S())){if(l=Cc(a),f=rt[r],c=f[l]||f.l||8,c===8||(r=c[0],c[1]!==void 0&&(_=m[c[1]],_&&(o=a,_()===!1))))return;if(r===7)return t}}const Pa=new Map;function Pc(e,t){return p(e)?e[t]:null}function Mc(e,t){if(!p(e))return null;let n=Pa.get(t);if(n||(n=Tc(t),n&&Pa.set(t,n)),!n)return null;const r=n.length;let i=e,a=0;for(;a<r;){const s=i[n[a]];if(s===void 0||X(i))return null;i=s,a++}return i}const Fc=e=>e,Vc=e=>"",kc="text",Uc=e=>e.length===0?"":kr(e),$c=Gl;function Ma(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function xc(e){const t=oe(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(oe(e.named.count)||oe(e.named.n))?oe(e.named.count)?e.named.count:oe(e.named.n)?e.named.n:t:t}function Wc(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Bc(e={}){const t=e.locale,n=xc(e),r=p(e.pluralRules)&&M(t)&&X(e.pluralRules[t])?e.pluralRules[t]:Ma,i=p(e.pluralRules)&&M(t)&&X(e.pluralRules[t])?Ma:void 0,a=g=>g[r(n,g.length,i)],s=e.list||[],o=g=>s[g],l=e.named||{};oe(e.pluralIndex)&&Wc(n,l);const c=g=>l[g];function _(g){const O=X(e.messages)?e.messages(g):p(e.messages)?e.messages[g]:!1;return O||(e.parent?e.parent.message(g):Vc)}const f=g=>e.modifiers?e.modifiers[g]:Fc,m=U(e.processor)&&X(e.processor.normalize)?e.processor.normalize:Uc,S=U(e.processor)&&X(e.processor.interpolate)?e.processor.interpolate:$c,L=U(e.processor)&&M(e.processor.type)?e.processor.type:kc,D={list:o,named:c,plural:a,linked:(g,...O)=>{const[h,E]=O;let w="text",N="";O.length===1?p(h)?(N=h.modifier||N,w=h.type||w):M(h)&&(N=h||N):O.length===2&&(M(h)&&(N=h||N),M(E)&&(w=E||w));const y=_(g)(D),C=w==="vnode"&&Q(y)&&N?y[0]:y;return N?f(N)(C,w):C},message:_,type:L,interpolate:S,normalize:m,values:le({},s,l)};return D}let rn=null;function Hc(e){rn=e}function pc(e,t,n){rn&&rn.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const jc=qc("function:translate");function qc(e){return t=>rn&&rn.emit(e,t)}const Fa=Gn.__EXTEND_POINT__,Et=pn(Fa),he={NOT_FOUND_KEY:Fa,FALLBACK_TO_TRANSLATE:Et(),CANNOT_FORMAT_NUMBER:Et(),FALLBACK_TO_NUMBER_FORMAT:Et(),CANNOT_FORMAT_DATE:Et(),FALLBACK_TO_DATE_FORMAT:Et(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:Et(),__EXTEND_POINT__:Et()},Kc={[he.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[he.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[he.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[he.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[he.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[he.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[he.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function yt(e,...t){return nn(Kc[e],...t)}const Va=V.__EXTEND_POINT__,vt=pn(Va),de={INVALID_ARGUMENT:Va,INVALID_DATE_ARGUMENT:vt(),INVALID_ISO_DATE_ARGUMENT:vt(),NOT_SUPPORT_NON_STRING_MESSAGE:vt(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:vt(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:vt(),NOT_SUPPORT_LOCALE_TYPE:vt(),__EXTEND_POINT__:vt()};function ke(e){return Ft(e,null,process.env.NODE_ENV!=="production"?{messages:Gc}:void 0)}const Gc={[de.INVALID_ARGUMENT]:"Invalid arguments",[de.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[de.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[de.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[de.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[de.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[de.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function xr(e,t){return t.locale!=null?ka(t.locale):ka(e.locale)}let Wr;function ka(e){if(M(e))return e;if(X(e)){if(e.resolvedOnce&&Wr!=null)return Wr;if(e.constructor.name==="Function"){const t=e();if(Kl(t))throw ke(de.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Wr=t}else throw ke(de.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw ke(de.NOT_SUPPORT_LOCALE_TYPE)}function Xc(e,t,n){return[...new Set([n,...Q(t)?t:p(t)?Object.keys(t):M(t)?[t]:[n]])]}function Ua(e,t,n){const r=M(n)?n:Ut,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let a=i.__localeChainCache.get(r);if(!a){a=[];let s=[n];for(;Q(s);)s=$a(a,s,t);const o=Q(t)||!U(t)?t:t.default?t.default:null;s=M(o)?[o]:o,Q(s)&&$a(a,s,!1),i.__localeChainCache.set(r,a)}return a}function $a(e,t,n){let r=!0;for(let i=0;i<t.length&&$(r);i++){const a=t[i];M(a)&&(r=Jc(e,t[i],n))}return r}function Jc(e,t,n){let r;const i=t.split("-");do{const a=i.join("-");r=Qc(e,a,n),i.splice(-1,1)}while(i.length&&r===!0);return r}function Qc(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const i=t.replace(/!/g,"");e.push(i),(Q(n)||U(n))&&n[i]&&(r=n[i])}return r}const zc="9.13.1",Xn=-1,Ut="en-US",Jn="",xa=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Zc(){return{upper:(e,t)=>t==="text"&&M(e)?e.toUpperCase():t==="vnode"&&p(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&M(e)?e.toLowerCase():t==="vnode"&&p(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&M(e)?xa(e):t==="vnode"&&p(e)&&"__v_isVNode"in e?xa(e.children):e}}let Wa;function Ba(e){Wa=e}let Ha;function Yc(e){Ha=e}let pa;function eu(e){pa=e}let ja=null;const qa=e=>{ja=e},tu=()=>ja;let Ka=null;const Ga=e=>{Ka=e},nu=()=>Ka;let Xa=0;function ru(e={}){const t=X(e.onWarn)?e.onWarn:ce,n=M(e.version)?e.version:zc,r=M(e.locale)||X(e.locale)?e.locale:Ut,i=X(r)?Ut:r,a=Q(e.fallbackLocale)||U(e.fallbackLocale)||M(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,s=U(e.messages)?e.messages:{[i]:{}},o=U(e.datetimeFormats)?e.datetimeFormats:{[i]:{}},l=U(e.numberFormats)?e.numberFormats:{[i]:{}},c=le({},e.modifiers||{},Zc()),_=e.pluralRules||{},f=X(e.missing)?e.missing:null,m=$(e.missingWarn)||tt(e.missingWarn)?e.missingWarn:!0,S=$(e.fallbackWarn)||tt(e.fallbackWarn)?e.fallbackWarn:!0,L=!!e.fallbackFormat,v=!!e.unresolving,D=X(e.postTranslation)?e.postTranslation:null,g=U(e.processor)?e.processor:null,O=$(e.warnHtmlMessage)?e.warnHtmlMessage:!0,h=!!e.escapeParameter,E=X(e.messageCompiler)?e.messageCompiler:Wa;process.env.NODE_ENV!=="production"&&!0&&!0&&X(e.messageCompiler)&&Da(yt(he.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const w=X(e.messageResolver)?e.messageResolver:Ha||Pc,N=X(e.localeFallbacker)?e.localeFallbacker:pa||Xc,y=p(e.fallbackContext)?e.fallbackContext:void 0,C=e,T=p(C.__datetimeFormatters)?C.__datetimeFormatters:new Map,j=p(C.__numberFormatters)?C.__numberFormatters:new Map,ve=p(C.__meta)?C.__meta:{};Xa++;const x={version:n,cid:Xa,locale:r,fallbackLocale:a,messages:s,modifiers:c,pluralRules:_,missing:f,missingWarn:m,fallbackWarn:S,fallbackFormat:L,unresolving:v,postTranslation:D,processor:g,warnHtmlMessage:O,escapeParameter:h,messageCompiler:E,messageResolver:w,localeFallbacker:N,fallbackContext:y,onWarn:t,__meta:ve};return x.datetimeFormats=o,x.numberFormats=l,x.__datetimeFormatters=T,x.__numberFormatters=j,process.env.NODE_ENV!=="production"&&(x.__v_emitter=C.__v_emitter!=null?C.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&pc(x,n,ve),x}function Qn(e,t){return e instanceof RegExp?e.test(t):e}function Ja(e,t){return e instanceof RegExp?e.test(t):e}function Br(e,t,n,r,i){const{missing:a,onWarn:s}=e;if(process.env.NODE_ENV!=="production"){const o=e.__v_emitter;o&&o.emit("missing",{locale:n,key:t,type:i,groupId:`${i}:${t}`})}if(a!==null){const o=a(e,n,t,i);return M(o)?o:t}else return process.env.NODE_ENV!=="production"&&Ja(r,t)&&s(yt(he.NOT_FOUND_KEY,{key:t,locale:n})),t}function an(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Qa(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function iu(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(Qa(e,t[r]))return!0;return!1}function Hr(e){return n=>au(n,e)}function au(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const r=n,i=r.c||r.cases;return e.plural(i.reduce((a,s)=>[...a,za(e,s)],[]))}else return za(e,n)}function za(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const r=(t.i||t.items).reduce((i,a)=>[...i,pr(e,a)],[]);return e.normalize(r)}}function pr(e,t){const n=t.t||t.type;switch(n){case 3:{const r=t;return r.v||r.value}case 9:{const r=t;return r.v||r.value}case 4:{const r=t;return e.interpolate(e.named(r.k||r.key))}case 5:{const r=t;return e.interpolate(e.list(r.i!=null?r.i:r.index))}case 6:{const r=t,i=r.m||r.modifier;return e.linked(pr(e,r.k||r.key),i?pr(e,i):void 0,e.type)}case 7:{const r=t;return r.v||r.value}case 8:{const r=t;return r.v||r.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const su="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function Za(e,t){t&&tc(e)&&ce(nn(su,{source:e}))}const Ya=e=>e;let $t=Object.create(null);function es(e){e.code===Gn.USE_MODULO_SYNTAX&&ce(`The use of named interpolation with modulo syntax is deprecated. It will be removed in v10.
|
|
17
|
+
reference: https://vue-i18n.intlify.dev/guide/essentials/syntax#rails-i18n-format
|
|
18
|
+
(message compiler warning message: ${e.message})`)}const it=e=>p(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function ts(e,t={}){let n=!1;const r=t.onError||Yl;return t.onError=i=>{n=!0,r(i)},Tt(Ze({},Sc(e,t)),{detectError:n})}const ou=(e,t)=>{if(!M(e))throw ke(de.NOT_SUPPORT_NON_STRING_MESSAGE);process.env.NODE_ENV!=="production"&&(t.onWarn=es);{const n=$(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Za(e,n);const i=(t.onCacheKey||Ya)(e),a=$t[i];if(a)return a;const{code:s,detectError:o}=ts(e,t),l=new Function(`return ${s}`)();return o?l:$t[i]=l}};function lu(e,t){if(process.env.NODE_ENV!=="production"&&(t.onWarn=es),__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&M(e)){const n=$(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Za(e,n);const i=(t.onCacheKey||Ya)(e),a=$t[i];if(a)return a;const{ast:s,detectError:o}=ts(e,Tt(Ze({},t),{location:process.env.NODE_ENV!=="production",jit:!0})),l=Hr(s);return o?l:$t[i]=l}else{if(process.env.NODE_ENV!=="production"&&!it(e))return ce(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),()=>e;const n=e.cacheKey;if(n){const r=$t[n];return r||($t[n]=Hr(e))}else return Hr(e)}}const ns=()=>"",Le=e=>X(e);function rs(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:a,fallbackLocale:s,messages:o}=e,[l,c]=jr(...t),_=$(c.missingWarn)?c.missingWarn:e.missingWarn,f=$(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,m=$(c.escapeParameter)?c.escapeParameter:e.escapeParameter,S=!!c.resolvedMessage,L=M(c.default)||$(c.default)?$(c.default)?a?l:()=>l:c.default:n?a?l:()=>l:"",v=n||L!=="",D=xr(e,c);m&&cu(c);let[g,O,h]=S?[l,D,o[D]||{}]:is(e,l,D,s,f,_),E=g,w=l;if(!S&&!(M(E)||it(E)||Le(E))&&v&&(E=L,w=E),!S&&(!(M(E)||it(E)||Le(E))||!M(O)))return i?Xn:l;if(process.env.NODE_ENV!=="production"&&M(E)&&e.messageCompiler==null)return ce(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${l}'.`),l;let N=!1;const y=()=>{N=!0},C=Le(E)?E:as(e,l,O,E,w,y);if(N)return E;const T=mu(e,O,h,c),j=Bc(T),ve=uu(e,C,j),x=r?r(ve,l):ve;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const se={timestamp:Date.now(),key:M(l)?l:Le(E)?E.key:"",locale:O||(Le(E)?E.locale:""),format:M(E)?E:Le(E)?E.source:"",message:x};se.meta=le({},e.__meta,tu()||{}),jc(se)}return x}function cu(e){Q(e.list)?e.list=e.list.map(t=>M(t)?Oa(t):t):p(e.named)&&Object.keys(e.named).forEach(t=>{M(e.named[t])&&(e.named[t]=Oa(e.named[t]))})}function is(e,t,n,r,i,a){const{messages:s,onWarn:o,messageResolver:l,localeFallbacker:c}=e,_=c(e,r,n);let f={},m,S=null,L=n,v=null;const D="translate";for(let g=0;g<_.length;g++){if(m=v=_[g],process.env.NODE_ENV!=="production"&&n!==m&&!Qa(n,m)&&Qn(i,t)&&o(yt(he.FALLBACK_TO_TRANSLATE,{key:t,target:m})),process.env.NODE_ENV!=="production"&&n!==m){const w=e.__v_emitter;w&&w.emit("fallback",{type:D,key:t,from:L,to:v,groupId:`${D}:${t}`})}f=s[m]||{};let O=null,h,E;if(process.env.NODE_ENV!=="production"&&Re&&(O=window.performance.now(),h="intlify-message-resolve-start",E="intlify-message-resolve-end",Se&&Se(h)),(S=l(f,t))===null&&(S=f[t]),process.env.NODE_ENV!=="production"&&Re){const w=window.performance.now(),N=e.__v_emitter;N&&O&&S&&N.emit("message-resolve",{type:"message-resolve",key:t,message:S,time:w-O,groupId:`${D}:${t}`}),h&&E&&Se&>&&(Se(E),gt("intlify message resolve",h,E))}if(M(S)||it(S)||Le(S))break;if(!iu(m,_)){const w=Br(e,t,m,a,D);w!==t&&(S=w)}L=v}return[S,m,f]}function as(e,t,n,r,i,a){const{messageCompiler:s,warnHtmlMessage:o}=e;if(Le(r)){const m=r;return m.locale=m.locale||n,m.key=m.key||t,m}if(s==null){const m=()=>r;return m.locale=n,m.key=t,m}let l=null,c,_;process.env.NODE_ENV!=="production"&&Re&&(l=window.performance.now(),c="intlify-message-compilation-start",_="intlify-message-compilation-end",Se&&Se(c));const f=s(r,fu(e,n,i,r,o,a));if(process.env.NODE_ENV!=="production"&&Re){const m=window.performance.now(),S=e.__v_emitter;S&&l&&S.emit("message-compilation",{type:"message-compilation",message:r,time:m-l,groupId:`translate:${t}`}),c&&_&&Se&>&&(Se(_),gt("intlify message compilation",c,_))}return f.locale=n,f.key=t,f.source=r,f}function uu(e,t,n){let r=null,i,a;process.env.NODE_ENV!=="production"&&Re&&(r=window.performance.now(),i="intlify-message-evaluation-start",a="intlify-message-evaluation-end",Se&&Se(i));const s=t(n);if(process.env.NODE_ENV!=="production"&&Re){const o=window.performance.now(),l=e.__v_emitter;l&&r&&l.emit("message-evaluation",{type:"message-evaluation",value:s,time:o-r,groupId:`translate:${t.key}`}),i&&a&&Se&>&&(Se(a),gt("intlify message evaluation",i,a))}return s}function jr(...e){const[t,n,r]=e,i={};if(!M(t)&&!oe(t)&&!Le(t)&&!it(t))throw ke(de.INVALID_ARGUMENT);const a=oe(t)?String(t):(Le(t),t);return oe(n)?i.plural=n:M(n)?i.default=n:U(n)&&!Bn(n)?i.named=n:Q(n)&&(i.list=n),oe(r)?i.plural=r:M(r)?i.default=r:U(r)&&le(i,r),[a,i]}function fu(e,t,n,r,i,a){return{locale:t,key:n,warnHtmlMessage:i,onError:s=>{if(a&&a(s),process.env.NODE_ENV!=="production"){const o=du(r),l=`Message compilation error: ${s.message}`,c=s.location&&o&&Xl(o,s.location.start.offset,s.location.end.offset),_=e.__v_emitter;_&&o&&_.emit("compile-error",{message:o,error:s.message,start:s.location&&s.location.start.offset,end:s.location&&s.location.end.offset,groupId:`translate:${n}`}),console.error(c?`${l}
|
|
19
|
+
${c}`:l)}else throw s},onCacheKey:s=>Hl(t,n,s)}}function du(e){if(M(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function mu(e,t,n,r){const{modifiers:i,pluralRules:a,messageResolver:s,fallbackLocale:o,fallbackWarn:l,missingWarn:c,fallbackContext:_}=e,m={locale:t,modifiers:i,pluralRules:a,messages:S=>{let L=s(n,S);if(L==null&&_){const[,,v]=is(_,S,t,o,l,c);L=s(v,S)}if(M(L)||it(L)){let v=!1;const g=as(e,S,t,L,S,()=>{v=!0});return v?ns:g}else return Le(L)?L:ns}};return e.processor&&(m.processor=e.processor),r.list&&(m.list=r.list),r.named&&(m.named=r.named),oe(r.plural)&&(m.pluralIndex=r.plural),m}const ss=typeof Intl!="undefined",os={dateTimeFormat:ss&&typeof Intl.DateTimeFormat!="undefined",numberFormat:ss&&typeof Intl.NumberFormat!="undefined"};function ls(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:i,onWarn:a,localeFallbacker:s}=e,{__datetimeFormatters:o}=e;if(process.env.NODE_ENV!=="production"&&!os.dateTimeFormat)return a(yt(he.CANNOT_FORMAT_DATE)),Jn;const[l,c,_,f]=qr(...t),m=$(_.missingWarn)?_.missingWarn:e.missingWarn,S=$(_.fallbackWarn)?_.fallbackWarn:e.fallbackWarn,L=!!_.part,v=xr(e,_),D=s(e,i,v);if(!M(l)||l==="")return new Intl.DateTimeFormat(v,f).format(c);let g={},O,h=null,E=v,w=null;const N="datetime format";for(let T=0;T<D.length;T++){if(O=w=D[T],process.env.NODE_ENV!=="production"&&v!==O&&Qn(S,l)&&a(yt(he.FALLBACK_TO_DATE_FORMAT,{key:l,target:O})),process.env.NODE_ENV!=="production"&&v!==O){const j=e.__v_emitter;j&&j.emit("fallback",{type:N,key:l,from:E,to:w,groupId:`${N}:${l}`})}if(g=n[O]||{},h=g[l],U(h))break;Br(e,l,O,m,N),E=w}if(!U(h)||!M(O))return r?Xn:l;let y=`${O}__${l}`;Bn(f)||(y=`${y}__${JSON.stringify(f)}`);let C=o.get(y);return C||(C=new Intl.DateTimeFormat(O,le({},h,f)),o.set(y,C)),L?C.formatToParts(c):C.format(c)}const cs=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function qr(...e){const[t,n,r,i]=e,a={};let s={},o;if(M(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw ke(de.INVALID_ISO_DATE_ARGUMENT);const c=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();o=new Date(c);try{o.toISOString()}catch(_){throw ke(de.INVALID_ISO_DATE_ARGUMENT)}}else if(jl(t)){if(isNaN(t.getTime()))throw ke(de.INVALID_DATE_ARGUMENT);o=t}else if(oe(t))o=t;else throw ke(de.INVALID_ARGUMENT);return M(n)?a.key=n:U(n)&&Object.keys(n).forEach(l=>{cs.includes(l)?s[l]=n[l]:a[l]=n[l]}),M(r)?a.locale=r:U(r)&&(s=r),U(i)&&(s=i),[a.key||"",o,a,s]}function us(e,t,n){const r=e;for(const i in n){const a=`${t}__${i}`;!r.__datetimeFormatters.has(a)||r.__datetimeFormatters.delete(a)}}function fs(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:a,localeFallbacker:s}=e,{__numberFormatters:o}=e;if(process.env.NODE_ENV!=="production"&&!os.numberFormat)return a(yt(he.CANNOT_FORMAT_NUMBER)),Jn;const[l,c,_,f]=Kr(...t),m=$(_.missingWarn)?_.missingWarn:e.missingWarn,S=$(_.fallbackWarn)?_.fallbackWarn:e.fallbackWarn,L=!!_.part,v=xr(e,_),D=s(e,i,v);if(!M(l)||l==="")return new Intl.NumberFormat(v,f).format(c);let g={},O,h=null,E=v,w=null;const N="number format";for(let T=0;T<D.length;T++){if(O=w=D[T],process.env.NODE_ENV!=="production"&&v!==O&&Qn(S,l)&&a(yt(he.FALLBACK_TO_NUMBER_FORMAT,{key:l,target:O})),process.env.NODE_ENV!=="production"&&v!==O){const j=e.__v_emitter;j&&j.emit("fallback",{type:N,key:l,from:E,to:w,groupId:`${N}:${l}`})}if(g=n[O]||{},h=g[l],U(h))break;Br(e,l,O,m,N),E=w}if(!U(h)||!M(O))return r?Xn:l;let y=`${O}__${l}`;Bn(f)||(y=`${y}__${JSON.stringify(f)}`);let C=o.get(y);return C||(C=new Intl.NumberFormat(O,le({},h,f)),o.set(y,C)),L?C.formatToParts(c):C.format(c)}const ds=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Kr(...e){const[t,n,r,i]=e,a={};let s={};if(!oe(t))throw ke(de.INVALID_ARGUMENT);const o=t;return M(n)?a.key=n:U(n)&&Object.keys(n).forEach(l=>{ds.includes(l)?s[l]=n[l]:a[l]=n[l]}),M(r)?a.locale=r:U(r)&&(s=r),U(i)&&(s=i),[a.key||"",o,a,s]}function ms(e,t,n){const r=e;for(const i in n){const a=`${t}__${i}`;!r.__numberFormatters.has(a)||r.__numberFormatters.delete(a)}}wc();/**
|
|
20
|
+
* @vue/shared v3.4.35
|
|
21
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
22
|
+
* @license MIT
|
|
23
|
+
**//*! #__NO_SIDE_EFFECTS__ */function _u(e,t){const n=new Set(e.split(","));return t?r=>n.has(r.toLowerCase()):r=>n.has(r)}const Ue=process.env.NODE_ENV!=="production"?Object.freeze({}):{};process.env.NODE_ENV!=="production"&&Object.freeze([]);const at=()=>{},hu=()=>!1,gu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ae=Object.assign,Eu=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},yu=Object.prototype.hasOwnProperty,ie=(e,t)=>yu.call(e,t),z=Array.isArray,xt=e=>zn(e)==="[object Map]",vu=e=>zn(e)==="[object Set]",ae=e=>typeof e=="function",Me=e=>typeof e=="string",sn=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",bu=e=>(ge(e)||ae(e))&&ae(e.then)&&ae(e.catch),Nu=Object.prototype.toString,zn=e=>Nu.call(e),_s=e=>zn(e).slice(8,-1),Iu=e=>zn(e)==="[object Object]",Gr=e=>Me(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,hs=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},gs=hs(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ou=hs(e=>e?`on${gs(e)}`:""),st=(e,t)=>!Object.is(e,t),Su=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})};let Es;const ys=()=>Es||(Es=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function Xr(e){if(z(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=Me(r)?Du(r):Xr(r);if(i)for(const a in i)t[a]=i[a]}return t}else if(Me(e)||ge(e))return e}const wu=/;(?![^(]*\))/g,Lu=/:([^]+)/,Au=/\/\*[^]*?\*\//g;function Du(e){const t={};return e.replace(Au,"").split(wu).forEach(n=>{if(n){const r=n.split(Lu);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Jr(e){let t="";if(Me(e))t=e;else if(z(e))for(let n=0;n<e.length;n++){const r=Jr(e[n]);r&&(t+=r+" ")}else if(ge(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}/**
|
|
24
|
+
* @vue/reactivity v3.4.35
|
|
25
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
26
|
+
* @license MIT
|
|
27
|
+
**/function ot(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let Fe;class Cu{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Fe,!t&&Fe&&(this.index=(Fe.scopes||(Fe.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Fe;try{return Fe=this,t()}finally{Fe=n}}else process.env.NODE_ENV!=="production"&&ot("cannot run an inactive effect scope.")}on(){Fe=this}off(){Fe=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function Ru(e){return new Cu(e)}function Tu(e,t=Fe){t&&t.active&&t.effects.push(e)}function Pu(){return Fe}let bt;class vs{constructor(t,n,r,i){this.fn=t,this.trigger=n,this.scheduler=r,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Tu(this,i)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,on();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Mu(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),ln()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=lt,n=bt;try{return lt=!0,bt=this,this._runnings++,bs(this),this.fn()}finally{Ns(this),this._runnings--,bt=n,lt=t}}stop(){this.active&&(bs(this),Ns(this),this.onStop&&this.onStop(),this.active=!1)}}function Mu(e){return e.value}function bs(e){e._trackId++,e._depsLength=0}function Ns(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Is(e.deps[t],e);e.deps.length=e._depsLength}}function Is(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let lt=!0,Qr=0;const Os=[];function on(){Os.push(lt),lt=!1}function ln(){const e=Os.pop();lt=e===void 0?!0:e}function zr(){Qr++}function Zr(){for(Qr--;!Qr&&Yr.length;)Yr.shift()()}function Ss(e,t,n){var r;if(t.get(e)!==e._trackId){t.set(e,e._trackId);const i=e.deps[e._depsLength];i!==t?(i&&Is(i,e),e.deps[e._depsLength++]=t):e._depsLength++,process.env.NODE_ENV!=="production"&&((r=e.onTrack)==null||r.call(e,Ae({effect:e},n)))}}const Yr=[];function ws(e,t,n){var r;zr();for(const i of e.keys()){let a;i._dirtyLevel<t&&(a!=null?a:a=e.get(i)===i._trackId)&&(i._shouldSchedule||(i._shouldSchedule=i._dirtyLevel===0),i._dirtyLevel=t),i._shouldSchedule&&(a!=null?a:a=e.get(i)===i._trackId)&&(process.env.NODE_ENV!=="production"&&((r=i.onTrigger)==null||r.call(i,Ae({effect:i},n))),i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&Yr.push(i.scheduler)))}Zr()}const Ls=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},ei=new WeakMap,Nt=Symbol(process.env.NODE_ENV!=="production"?"iterate":""),ti=Symbol(process.env.NODE_ENV!=="production"?"Map key iterate":"");function me(e,t,n){if(lt&&bt){let r=ei.get(e);r||ei.set(e,r=new Map);let i=r.get(n);i||r.set(n,i=Ls(()=>r.delete(n))),Ss(bt,i,process.env.NODE_ENV!=="production"?{target:e,type:t,key:n}:void 0)}}function ct(e,t,n,r,i,a){const s=ei.get(e);if(!s)return;let o=[];if(t==="clear")o=[...s.values()];else if(n==="length"&&z(e)){const l=Number(r);s.forEach((c,_)=>{(_==="length"||!sn(_)&&_>=l)&&o.push(c)})}else switch(n!==void 0&&o.push(s.get(n)),t){case"add":z(e)?Gr(n)&&o.push(s.get("length")):(o.push(s.get(Nt)),xt(e)&&o.push(s.get(ti)));break;case"delete":z(e)||(o.push(s.get(Nt)),xt(e)&&o.push(s.get(ti)));break;case"set":xt(e)&&o.push(s.get(Nt));break}zr();for(const l of o)l&&ws(l,4,process.env.NODE_ENV!=="production"?{target:e,type:t,key:n,newValue:r,oldValue:i,oldTarget:a}:void 0);Zr()}const Fu=_u("__proto__,__v_isRef,__isVue"),As=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(sn)),Ds=Vu();function Vu(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=W(this);for(let a=0,s=this.length;a<s;a++)me(r,"get",a+"");const i=r[t](...n);return i===-1||i===!1?r[t](...n.map(W)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){on(),zr();const r=W(this)[t].apply(this,n);return Zr(),ln(),r}}),e}function ku(e){sn(e)||(e=String(e));const t=W(this);return me(t,"has",e),t.hasOwnProperty(e)}class Cs{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const i=this._isReadonly,a=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return a;if(n==="__v_raw")return r===(i?a?$s:Us:a?Ju:ks).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const s=z(t);if(!i){if(s&&ie(Ds,n))return Reflect.get(Ds,n,r);if(n==="hasOwnProperty")return ku}const o=Reflect.get(t,n,r);return(sn(n)?As.has(n):Fu(n))||(i||me(t,"get",n),a)?o:be(o)?s&&Gr(n)?o:o.value:ge(o)?i?Ws(o):xs(o):o}}class Uu extends Cs{constructor(t=!1){super(!1,t)}set(t,n,r,i){let a=t[n];if(!this._isShallow){const l=Ke(a);if(!Ge(r)&&!Ke(r)&&(a=W(a),r=W(r)),!z(t)&&be(a)&&!be(r))return l?!1:(a.value=r,!0)}const s=z(t)&&Gr(n)?Number(n)<t.length:ie(t,n),o=Reflect.set(t,n,r,i);return t===W(i)&&(s?st(r,a)&&ct(t,"set",n,r,a):ct(t,"add",n,r)),o}deleteProperty(t,n){const r=ie(t,n),i=t[n],a=Reflect.deleteProperty(t,n);return a&&r&&ct(t,"delete",n,void 0,i),a}has(t,n){const r=Reflect.has(t,n);return(!sn(n)||!As.has(n))&&me(t,"has",n),r}ownKeys(t){return me(t,"iterate",z(t)?"length":Nt),Reflect.ownKeys(t)}}class Rs extends Cs{constructor(t=!1){super(!0,t)}set(t,n){return process.env.NODE_ENV!=="production"&&ot(`Set operation on key "${String(n)}" failed: target is readonly.`,t),!0}deleteProperty(t,n){return process.env.NODE_ENV!=="production"&&ot(`Delete operation on key "${String(n)}" failed: target is readonly.`,t),!0}}const $u=new Uu,xu=new Rs,Wu=new Rs(!0),ni=e=>e,Zn=e=>Reflect.getPrototypeOf(e);function Yn(e,t,n=!1,r=!1){e=e.__v_raw;const i=W(e),a=W(t);n||(st(t,a)&&me(i,"get",t),me(i,"get",a));const{has:s}=Zn(i),o=r?ni:n?si:cn;if(s.call(i,t))return o(e.get(t));if(s.call(i,a))return o(e.get(a));e!==i&&e.get(t)}function er(e,t=!1){const n=this.__v_raw,r=W(n),i=W(e);return t||(st(e,i)&&me(r,"has",e),me(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function tr(e,t=!1){return e=e.__v_raw,!t&&me(W(e),"iterate",Nt),Reflect.get(e,"size",e)}function Ts(e,t=!1){!t&&!Ge(e)&&!Ke(e)&&(e=W(e));const n=W(this);return Zn(n).has.call(n,e)||(n.add(e),ct(n,"add",e,e)),this}function Ps(e,t,n=!1){!n&&!Ge(t)&&!Ke(t)&&(t=W(t));const r=W(this),{has:i,get:a}=Zn(r);let s=i.call(r,e);s?process.env.NODE_ENV!=="production"&&Vs(r,i,e):(e=W(e),s=i.call(r,e));const o=a.call(r,e);return r.set(e,t),s?st(t,o)&&ct(r,"set",e,t,o):ct(r,"add",e,t),this}function Ms(e){const t=W(this),{has:n,get:r}=Zn(t);let i=n.call(t,e);i?process.env.NODE_ENV!=="production"&&Vs(t,n,e):(e=W(e),i=n.call(t,e));const a=r?r.call(t,e):void 0,s=t.delete(e);return i&&ct(t,"delete",e,void 0,a),s}function Fs(){const e=W(this),t=e.size!==0,n=process.env.NODE_ENV!=="production"?xt(e)?new Map(e):new Set(e):void 0,r=e.clear();return t&&ct(e,"clear",void 0,void 0,n),r}function nr(e,t){return function(r,i){const a=this,s=a.__v_raw,o=W(s),l=t?ni:e?si:cn;return!e&&me(o,"iterate",Nt),s.forEach((c,_)=>r.call(i,l(c),l(_),a))}}function rr(e,t,n){return function(...r){const i=this.__v_raw,a=W(i),s=xt(a),o=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,c=i[e](...r),_=n?ni:t?si:cn;return!t&&me(a,"iterate",l?ti:Nt),{next(){const{value:f,done:m}=c.next();return m?{value:f,done:m}:{value:o?[_(f[0]),_(f[1])]:_(f),done:m}},[Symbol.iterator](){return this}}}}function ut(e){return function(...t){if(process.env.NODE_ENV!=="production"){const n=t[0]?`on key "${t[0]}" `:"";ot(`${gs(e)} operation ${n}failed: target is readonly.`,W(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function Bu(){const e={get(a){return Yn(this,a)},get size(){return tr(this)},has:er,add:Ts,set:Ps,delete:Ms,clear:Fs,forEach:nr(!1,!1)},t={get(a){return Yn(this,a,!1,!0)},get size(){return tr(this)},has:er,add(a){return Ts.call(this,a,!0)},set(a,s){return Ps.call(this,a,s,!0)},delete:Ms,clear:Fs,forEach:nr(!1,!0)},n={get(a){return Yn(this,a,!0)},get size(){return tr(this,!0)},has(a){return er.call(this,a,!0)},add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear"),forEach:nr(!0,!1)},r={get(a){return Yn(this,a,!0,!0)},get size(){return tr(this,!0)},has(a){return er.call(this,a,!0)},add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear"),forEach:nr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=rr(a,!1,!1),n[a]=rr(a,!0,!1),t[a]=rr(a,!1,!0),r[a]=rr(a,!0,!0)}),[e,n,t,r]}const[Hu,pu,ju,qu]=Bu();function ri(e,t){const n=t?e?qu:ju:e?pu:Hu;return(r,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(ie(n,i)&&i in r?n:r,i,a)}const Ku={get:ri(!1,!1)},Gu={get:ri(!0,!1)},Xu={get:ri(!0,!0)};function Vs(e,t,n){const r=W(n);if(r!==n&&t.call(e,r)){const i=_s(e);ot(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const ks=new WeakMap,Ju=new WeakMap,Us=new WeakMap,$s=new WeakMap;function Qu(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function zu(e){return e.__v_skip||!Object.isExtensible(e)?0:Qu(_s(e))}function xs(e){return Ke(e)?e:ii(e,!1,$u,Ku,ks)}function Ws(e){return ii(e,!0,xu,Gu,Us)}function ir(e){return ii(e,!0,Wu,Xu,$s)}function ii(e,t,n,r,i){if(!ge(e))return process.env.NODE_ENV!=="production"&&ot(`value cannot be made ${t?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const s=zu(e);if(s===0)return e;const o=new Proxy(e,s===2?r:n);return i.set(e,o),o}function Wt(e){return Ke(e)?Wt(e.__v_raw):!!(e&&e.__v_isReactive)}function Ke(e){return!!(e&&e.__v_isReadonly)}function Ge(e){return!!(e&&e.__v_isShallow)}function ai(e){return e?!!e.__v_raw:!1}function W(e){const t=e&&e.__v_raw;return t?W(t):e}function Zu(e){return Object.isExtensible(e)&&Su(e,"__v_skip",!0),e}const cn=e=>ge(e)?xs(e):e,si=e=>ge(e)?Ws(e):e,Yu="Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free";class Bs{constructor(t,n,r,i){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new vs(()=>t(this._value),()=>ar(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const t=W(this);return(!t._cacheable||t.effect.dirty)&&st(t._value,t._value=t.effect.run())&&ar(t,4),Hs(t),t.effect._dirtyLevel>=2&&(process.env.NODE_ENV!=="production"&&this._warnRecursive&&ot(Yu,`
|
|
28
|
+
|
|
29
|
+
getter: `,this.getter),ar(t,2)),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function ef(e,t,n=!1){let r,i;const a=ae(e);a?(r=e,i=process.env.NODE_ENV!=="production"?()=>{ot("Write operation failed: computed value is readonly")}:at):(r=e.get,i=e.set);const s=new Bs(r,i,a||!i,n);return process.env.NODE_ENV!=="production"&&t&&!n&&(s.effect.onTrack=t.onTrack,s.effect.onTrigger=t.onTrigger),s}function Hs(e){var t;lt&&bt&&(e=W(e),Ss(bt,(t=e.dep)!=null?t:e.dep=Ls(()=>e.dep=void 0,e instanceof Bs?e:void 0),process.env.NODE_ENV!=="production"?{target:e,type:"get",key:"value"}:void 0))}function ar(e,t=4,n,r){e=W(e);const i=e.dep;i&&ws(i,t,process.env.NODE_ENV!=="production"?{target:e,type:"set",key:"value",newValue:n,oldValue:r}:void 0)}function be(e){return!!(e&&e.__v_isRef===!0)}function Bt(e){return js(e,!1)}function ps(e){return js(e,!0)}function js(e,t){return be(e)?e:new tf(e,t)}class tf{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:W(t),this._value=n?t:cn(t)}get value(){return Hs(this),this._value}set value(t){const n=this.__v_isShallow||Ge(t)||Ke(t);if(t=n?t:W(t),st(t,this._rawValue)){const r=this._rawValue;this._rawValue=t,this._value=n?t:cn(t),ar(this,4,t,r)}}}function nf(e){return be(e)?e.value:e}const rf={get:(e,t,n)=>nf(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return be(i)&&!be(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function af(e){return Wt(e)?e:new Proxy(e,rf)}/**
|
|
30
|
+
* @vue/runtime-core v3.4.35
|
|
31
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
32
|
+
* @license MIT
|
|
33
|
+
**/const It=[];function sf(e){It.push(e)}function of(){It.pop()}let oi=!1;function Z(e,...t){if(oi)return;oi=!0,on();const n=It.length?It[It.length-1].component:null,r=n&&n.appContext.config.warnHandler,i=lf();if(r)Ot(r,n,11,[e+t.map(a=>{var s,o;return(o=(s=a.toString)==null?void 0:s.call(a))!=null?o:JSON.stringify(a)}).join(""),n&&n.proxy,i.map(({vnode:a})=>`at <${go(n,a.type)}>`).join(`
|
|
34
|
+
`),i]);else{const a=[`[Vue warn]: ${e}`,...t];i.length&&a.push(`
|
|
35
|
+
`,...cf(i)),console.warn(...a)}ln(),oi=!1}function lf(){let e=It[It.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function cf(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
|
|
36
|
+
`],...uf(n))}),t}function uf({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,i=` at <${go(e.component,e.type,r)}`,a=">"+n;return e.props?[i,...ff(e.props),a]:[i+a]}function ff(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...qs(r,e[r]))}),n.length>3&&t.push(" ..."),t}function qs(e,t,n){return Me(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:be(t)?(t=qs(e,W(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):ae(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=W(t),n?t:[`${e}=`,t])}const li={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",[0]:"setup function",[1]:"render function",[2]:"watcher getter",[3]:"watcher callback",[4]:"watcher cleanup function",[5]:"native event handler",[6]:"component event handler",[7]:"vnode hook",[8]:"directive hook",[9]:"transition hook",[10]:"app errorHandler",[11]:"app warnHandler",[12]:"ref function",[13]:"async component loader",[14]:"scheduler flush",[15]:"component update"};function Ot(e,t,n,r){try{return r?e(...r):e()}catch(i){ci(i,t,n)}}function un(e,t,n,r){if(ae(e)){const i=Ot(e,t,n,r);return i&&bu(i)&&i.catch(a=>{ci(a,t,n)}),i}if(z(e)){const i=[];for(let a=0;a<e.length;a++)i.push(un(e[a],t,n,r));return i}else process.env.NODE_ENV!=="production"&&Z(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function ci(e,t,n,r=!0){const i=t?t.vnode:null;if(t){let a=t.parent;const s=t.proxy,o=process.env.NODE_ENV!=="production"?li[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let _=0;_<c.length;_++)if(c[_](e,s,o)===!1)return}a=a.parent}const l=t.appContext.config.errorHandler;if(l){on(),Ot(l,null,10,[e,s,o]),ln();return}}df(e,n,i,r)}function df(e,t,n,r=!0){if(process.env.NODE_ENV!=="production"){const i=li[t];if(n&&sf(n),Z(`Unhandled error${i?` during execution of ${i}`:""}`),n&&of(),r)throw e;console.error(e)}else console.error(e)}let sr=!1,ui=!1;const Ve=[];let ft=0;const Ht=[];let dt=null,St=0;const Ks=Promise.resolve();let fi=null;const mf=100;function _f(e){const t=fi||Ks;return e?t.then(this?e.bind(this):e):t}function hf(e){let t=ft+1,n=Ve.length;for(;t<n;){const r=t+n>>>1,i=Ve[r],a=fn(i);a<e||a===e&&i.pre?t=r+1:n=r}return t}function di(e){(!Ve.length||!Ve.includes(e,sr&&e.allowRecurse?ft+1:ft))&&(e.id==null?Ve.push(e):Ve.splice(hf(e.id),0,e),Gs())}function Gs(){!sr&&!ui&&(ui=!0,fi=Ks.then(Js))}function Xs(e){z(e)?Ht.push(...e):(!dt||!dt.includes(e,e.allowRecurse?St+1:St))&&Ht.push(e),Gs()}function gf(e){if(Ht.length){const t=[...new Set(Ht)].sort((n,r)=>fn(n)-fn(r));if(Ht.length=0,dt){dt.push(...t);return}for(dt=t,process.env.NODE_ENV!=="production"&&(e=e||new Map),St=0;St<dt.length;St++){const n=dt[St];process.env.NODE_ENV!=="production"&&Qs(e,n)||n.active!==!1&&n()}dt=null,St=0}}const fn=e=>e.id==null?1/0:e.id,Ef=(e,t)=>{const n=fn(e)-fn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Js(e){ui=!1,sr=!0,process.env.NODE_ENV!=="production"&&(e=e||new Map),Ve.sort(Ef);const t=process.env.NODE_ENV!=="production"?n=>Qs(e,n):at;try{for(ft=0;ft<Ve.length;ft++){const n=Ve[ft];if(n&&n.active!==!1){if(process.env.NODE_ENV!=="production"&&t(n))continue;Ot(n,n.i,n.i?15:14)}}}finally{ft=0,Ve.length=0,gf(e),sr=!1,fi=null,(Ve.length||Ht.length)&&Js(e)}}function Qs(e,t){if(!e.has(t))e.set(t,1);else{const n=e.get(t);if(n>mf){const r=t.i,i=r&&ho(r.type);return ci(`Maximum recursive updates exceeded${i?` in component <${i}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}else e.set(t,n+1)}}const mi=new Map;process.env.NODE_ENV!=="production"&&(ys().__VUE_HMR_RUNTIME__={createRecord:_i(yf),rerender:_i(vf),reload:_i(bf)});const or=new Map;function yf(e,t){return or.has(e)?!1:(or.set(e,{initialDef:lr(t),instances:new Set}),!0)}function lr(e){return Eo(e)?e.__vccOpts:e}function vf(e,t){const n=or.get(e);!n||(n.initialDef.render=t,[...n.instances].forEach(r=>{t&&(r.render=t,lr(r.type).render=t),r.renderCache=[],r.effect.dirty=!0,r.update()}))}function bf(e,t){const n=or.get(e);if(!n)return;t=lr(t),zs(n.initialDef,t);const r=[...n.instances];for(let i=0;i<r.length;i++){const a=r[i],s=lr(a.type);let o=mi.get(s);o||(s!==n.initialDef&&zs(s,t),mi.set(s,o=new Set)),o.add(a),a.appContext.propsCache.delete(a.type),a.appContext.emitsCache.delete(a.type),a.appContext.optionsCache.delete(a.type),a.ceReload?(o.add(a),a.ceReload(t.styles),o.delete(a)):a.parent?(a.parent.effect.dirty=!0,di(()=>{a.parent.update(),o.delete(a)})):a.appContext.reload?a.appContext.reload():typeof window!="undefined"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}Xs(()=>{mi.clear()})}function zs(e,t){Ae(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function _i(e){return(t,n)=>{try{return e(t,n)}catch(r){console.error(r),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let pt,cr=[];function Zs(e,t){var n,r;pt=e,pt?(pt.enabled=!0,cr.forEach(({event:i,args:a})=>pt.emit(i,...a)),cr=[]):typeof window!="undefined"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(a=>{Zs(a,t)}),setTimeout(()=>{pt||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,cr=[])},3e3)):cr=[]}let $e=null,Nf=null;function Ys(e,t){e.shapeFlag&6&&e.component?Ys(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function hi(e,t){return ae(e)?(()=>Ae({name:e.name},t,{setup:e}))():e}function If(e,t,n=Lt,r=!1){if(n){const i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...s)=>{on();const o=_o(n),l=un(t,n,e,s);return o(),ln(),l});return r?i.unshift(a):i.push(a),a}else if(process.env.NODE_ENV!=="production"){const i=Ou(li[e].replace(/ hook$/,""));Z(`${i} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const gi=e=>(t,n=Lt)=>{(!hr||e==="sp")&&If(e,(...r)=>t(...r),n)},Of=gi("bm"),Sf=gi("m"),wf=gi("um"),Lf=Symbol.for("v-ndc"),Ei=e=>e?Jf(e)?Qf(e):Ei(e.parent):null,dn=Ae(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>process.env.NODE_ENV!=="production"?ir(e.props):e.props,$attrs:e=>process.env.NODE_ENV!=="production"?ir(e.attrs):e.attrs,$slots:e=>process.env.NODE_ENV!=="production"?ir(e.slots):e.slots,$refs:e=>process.env.NODE_ENV!=="production"?ir(e.refs):e.refs,$parent:e=>Ei(e.parent),$root:e=>Ei(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?Rf(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,di(e.update)}),$nextTick:e=>e.n||(e.n=_f.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?xf.bind(e):at}),Af=e=>e==="_"||e==="$",yi=(e,t)=>e!==Ue&&!e.__isScriptSetup&&ie(e,t),Df={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:a,accessCache:s,type:o,appContext:l}=e;if(process.env.NODE_ENV!=="production"&&t==="__isVue")return!0;let c;if(t[0]!=="$"){const S=s[t];if(S!==void 0)switch(S){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else{if(yi(r,t))return s[t]=1,r[t];if(i!==Ue&&ie(i,t))return s[t]=2,i[t];if((c=e.propsOptions[0])&&ie(c,t))return s[t]=3,a[t];if(n!==Ue&&ie(n,t))return s[t]=4,n[t];(!__VUE_OPTIONS_API__||Cf)&&(s[t]=0)}}const _=dn[t];let f,m;if(_)return t==="$attrs"?(me(e.attrs,"get",""),process.env.NODE_ENV!=="production"&&void 0):process.env.NODE_ENV!=="production"&&t==="$slots"&&me(e,"get",t),_(e);if((f=o.__cssModules)&&(f=f[t]))return f;if(n!==Ue&&ie(n,t))return s[t]=4,n[t];if(m=l.config.globalProperties,ie(m,t))return m[t];process.env.NODE_ENV!=="production"&&$e&&(!Me(t)||t.indexOf("__v")!==0)&&(i!==Ue&&Af(t[0])&&ie(i,t)?Z(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===$e&&Z(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:r,setupState:i,ctx:a}=e;return yi(i,t)?(i[t]=n,!0):process.env.NODE_ENV!=="production"&&i.__isScriptSetup&&ie(i,t)?(Z(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):r!==Ue&&ie(r,t)?(r[t]=n,!0):ie(e.props,t)?(process.env.NODE_ENV!=="production"&&Z(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(process.env.NODE_ENV!=="production"&&Z(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(process.env.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(a,t,{enumerable:!0,configurable:!0,value:n}):a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:a}},s){let o;return!!n[s]||e!==Ue&&ie(e,s)||yi(t,s)||(o=a[0])&&ie(o,s)||ie(r,s)||ie(dn,s)||ie(i.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ie(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};process.env.NODE_ENV!=="production"&&(Df.ownKeys=e=>(Z("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));function eo(e){return z(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Cf=!0;function Rf(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:s}}=e.appContext,o=a.get(t);let l;return o?l=o:!i.length&&!n&&!r?l=t:(l={},i.length&&i.forEach(c=>ur(l,c,s,!0)),ur(l,t,s)),ge(t)&&a.set(t,l),l}function ur(e,t,n,r=!1){const{mixins:i,extends:a}=t;a&&ur(e,a,n,!0),i&&i.forEach(s=>ur(e,s,n,!0));for(const s in t)if(r&&s==="expose")process.env.NODE_ENV!=="production"&&Z('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const o=Tf[s]||n&&n[s];e[s]=o?o(e[s],t[s]):t[s]}return e}const Tf={data:to,props:ro,emits:ro,methods:mn,computed:mn,beforeCreate:Ee,created:Ee,beforeMount:Ee,mounted:Ee,beforeUpdate:Ee,updated:Ee,beforeDestroy:Ee,beforeUnmount:Ee,destroyed:Ee,unmounted:Ee,activated:Ee,deactivated:Ee,errorCaptured:Ee,serverPrefetch:Ee,components:mn,directives:mn,watch:Mf,provide:to,inject:Pf};function to(e,t){return t?e?function(){return Ae(ae(e)?e.call(this,this):e,ae(t)?t.call(this,this):t)}:t:e}function Pf(e,t){return mn(no(e),no(t))}function no(e){if(z(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ee(e,t){return e?[...new Set([].concat(e,t))]:t}function mn(e,t){return e?Ae(Object.create(null),e,t):t}function ro(e,t){return e?z(e)&&z(t)?[...new Set([...e,...t])]:Ae(Object.create(null),eo(e),eo(t!=null?t:{})):t}function Mf(e,t){if(!e)return t;if(!t)return e;const n=Ae(Object.create(null),e);for(const r in t)n[r]=Ee(e[r],t[r]);return n}function Ff(){return{app:null,config:{isNativeTag:hu,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let io=null;function ao(e,t,n=!1){const r=Lt||$e;if(r||io){const i=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:io._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&ae(t)?t.call(r&&r.proxy):t;process.env.NODE_ENV!=="production"&&Z(`injection "${String(e)}" not found.`)}else process.env.NODE_ENV!=="production"&&Z("inject() can only be used inside setup() or functional components.")}const Vf={},so=e=>Object.getPrototypeOf(e)===Vf,kf=e=>e.__isTeleport,oo=Hf,Uf=Symbol.for("v-scx"),$f=()=>{{const e=ao(Uf);return e||process.env.NODE_ENV!=="production"&&Z("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}},fr={};function vi(e,t,n){return process.env.NODE_ENV!=="production"&&!ae(t)&&Z("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),lo(e,t,n)}function lo(e,t,{immediate:n,deep:r,flush:i,once:a,onTrack:s,onTrigger:o}=Ue){if(t&&a){const y=t;t=(...C)=>{y(...C),N()}}process.env.NODE_ENV!=="production"&&r!==void 0&&typeof r=="number"&&Z('watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.'),process.env.NODE_ENV!=="production"&&!t&&(n!==void 0&&Z('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&Z('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),a!==void 0&&Z('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=y=>{Z("Invalid watch source: ",y,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=Lt,_=y=>r===!0?y:wt(y,r===!1?1:void 0);let f,m=!1,S=!1;if(be(e)?(f=()=>e.value,m=Ge(e)):Wt(e)?(f=()=>_(e),m=!0):z(e)?(S=!0,m=e.some(y=>Wt(y)||Ge(y)),f=()=>e.map(y=>{if(be(y))return y.value;if(Wt(y))return _(y);if(ae(y))return Ot(y,c,2);process.env.NODE_ENV!=="production"&&l(y)})):ae(e)?t?f=()=>Ot(e,c,2):f=()=>(L&&L(),un(e,c,3,[v])):(f=at,process.env.NODE_ENV!=="production"&&l(e)),t&&r){const y=f;f=()=>wt(y())}let L,v=y=>{L=E.onStop=()=>{Ot(y,c,4),L=E.onStop=void 0}},D;if(hr)if(v=at,t?n&&un(t,c,3,[f(),S?[]:void 0,v]):f(),i==="sync"){const y=$f();D=y.__watcherHandles||(y.__watcherHandles=[])}else return at;let g=S?new Array(e.length).fill(fr):fr;const O=()=>{if(!(!E.active||!E.dirty))if(t){const y=E.run();(r||m||(S?y.some((C,T)=>st(C,g[T])):st(y,g)))&&(L&&L(),un(t,c,3,[y,g===fr?void 0:S&&g[0]===fr?[]:g,v]),g=y)}else E.run()};O.allowRecurse=!!t;let h;i==="sync"?h=O:i==="post"?h=()=>oo(O,c&&c.suspense):(O.pre=!0,c&&(O.id=c.uid),h=()=>di(O));const E=new vs(f,at,h),w=Pu(),N=()=>{E.stop(),w&&Eu(w.effects,E)};return process.env.NODE_ENV!=="production"&&(E.onTrack=s,E.onTrigger=o),t?n?O():g=E.run():i==="post"?oo(E.run.bind(E),c&&c.suspense):E.run(),D&&D.push(N),N}function xf(e,t,n){const r=this.proxy,i=Me(e)?e.includes(".")?Wf(r,e):()=>r[e]:e.bind(r,r);let a;ae(t)?a=t:(a=t.handler,n=t);const s=_o(this),o=lo(i,a.bind(r),n);return s(),o}function Wf(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}function wt(e,t=1/0,n){if(t<=0||!ge(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,be(e))wt(e.value,t,n);else if(z(e))for(let r=0;r<e.length;r++)wt(e[r],t,n);else if(vu(e)||xt(e))e.forEach(r=>{wt(r,t,n)});else if(Iu(e)){for(const r in e)wt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&wt(e[r],t,n)}return e}function q_(){}const Bf=e=>e.__isSuspense;function Hf(e,t){t&&t.pendingBranch?z(e)?t.effects.push(...e):t.effects.push(e):Xs(e)}const dr=Symbol.for("v-fgt"),co=Symbol.for("v-txt"),pf=Symbol.for("v-cmt");let jt=null;function bi(e){return e?e.__v_isVNode===!0:!1}const jf=(...e)=>fo(...e),uo=({key:e})=>e!=null?e:null,mr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Me(e)||be(e)||ae(e)?{i:$e,r:e,k:t,f:!!n}:e:null);function qf(e,t=null,n=null,r=0,i=null,a=e===dr?0:1,s=!1,o=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&uo(t),ref:t&&mr(t),scopeId:Nf,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:$e};return o?(Ni(l,n),a&128&&e.normalize(l)):n&&(l.shapeFlag|=Me(n)?8:16),process.env.NODE_ENV!=="production"&&l.key!==l.key&&Z("VNode created with invalid key (NaN). VNode type:",l.type),!s&&jt&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&jt.push(l),l}const qt=process.env.NODE_ENV!=="production"?jf:fo;function fo(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===Lf)&&(process.env.NODE_ENV!=="production"&&!e&&Z(`Invalid vnode type when creating vnode: ${e}.`),e=pf),bi(e)){const o=_r(e,t,!0);return n&&Ni(o,n),!a&&jt&&(o.shapeFlag&6?jt[jt.indexOf(e)]=o:jt.push(o)),o.patchFlag=-2,o}if(Eo(e)&&(e=e.__vccOpts),t){t=Kf(t);let{class:o,style:l}=t;o&&!Me(o)&&(t.class=Jr(o)),ge(l)&&(ai(l)&&!z(l)&&(l=Ae({},l)),t.style=Xr(l))}const s=Me(e)?1:Bf(e)?128:kf(e)?64:ge(e)?4:ae(e)?2:0;return process.env.NODE_ENV!=="production"&&s&4&&ai(e)&&(e=W(e),Z("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
|
|
37
|
+
Component that was made reactive: `,e)),qf(e,t,n,r,i,s,a,!0)}function Kf(e){return e?ai(e)||so(e)?Ae({},e):e:null}function _r(e,t,n=!1,r=!1){const{props:i,ref:a,patchFlag:s,children:o,transition:l}=e,c=t?Xf(i||{},t):i,_={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&uo(c),ref:t&&t.ref?n&&a?z(a)?a.concat(mr(t)):[a,mr(t)]:mr(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:process.env.NODE_ENV!=="production"&&s===-1&&z(o)?o.map(mo):o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==dr?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&_r(e.ssContent),ssFallback:e.ssFallback&&_r(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Ys(_,l.clone(_)),_}function mo(e){const t=_r(e);return z(e.children)&&(t.children=e.children.map(mo)),t}function Gf(e=" ",t=0){return qt(co,null,e,t)}function Ni(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(z(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),Ni(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!so(t)?t._ctx=$e:i===3&&$e&&($e.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ae(t)?(t={default:t,_ctx:$e},n=32):(t=String(t),r&64?(n=16,t=[Gf(t)]):n=8);e.children=t,e.shapeFlag|=n}function Xf(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=Jr([t.class,r.class]));else if(i==="style")t.style=Xr([t.style,r.style]);else if(gu(i)){const a=t[i],s=r[i];s&&a!==s&&!(z(a)&&a.includes(s))&&(t[i]=a?[].concat(a,s):s)}else i!==""&&(t[i]=r[i])}return t}Ff();let Lt=null;const Kt=()=>Lt||$e;let Ii;{const e=ys(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),a=>{i.length>1?i.forEach(s=>s(a)):i[0](a)}};Ii=t("__VUE_INSTANCE_SETTERS__",n=>Lt=n),t("__VUE_SSR_SETTERS__",n=>hr=n)}const _o=e=>{const t=Lt;return Ii(e),e.scope.on(),()=>{e.scope.off(),Ii(t)}};function Jf(e){return e.vnode.shapeFlag&4}let hr=!1;process.env.NODE_ENV;function Qf(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(af(Zu(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in dn)return dn[n](e)},has(t,n){return n in t||n in dn}})):e.proxy}const zf=/(?:^|[-_])(\w)/g,Zf=e=>e.replace(zf,t=>t.toUpperCase()).replace(/[-_]/g,"");function ho(e,t=!0){return ae(e)?e.displayName||e.name:e.name||t&&e.__name}function go(e,t,n=!1){let r=ho(t);if(!r&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(r=i[1])}if(!r&&e&&e.parent){const i=a=>{for(const s in a)if(a[s]===t)return s};r=i(e.components||e.parent.type.components)||i(e.appContext.components)}return r?Zf(r):n?"App":"Anonymous"}function Eo(e){return ae(e)&&"__vccOpts"in e}const xe=(e,t)=>{const n=ef(e,t,hr);if(process.env.NODE_ENV!=="production"){const r=Kt();r&&r.appContext.config.warnRecursiveComputed&&(n._warnRecursive=!0)}return n};function yo(e,t,n){const r=arguments.length;return r===2?ge(t)&&!z(t)?bi(t)?qt(e,null,[t]):qt(e,t):qt(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&bi(n)&&(n=[n]),qt(e,t,n))}function Yf(){if(process.env.NODE_ENV==="production"||typeof window=="undefined")return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},n={style:"color:#f5222d"},r={style:"color:#eb2f96"},i={__vue_custom_formatter:!0,header(f){return ge(f)?f.__isVue?["div",e,"VueInstance"]:be(f)?["div",{},["span",e,_(f)],"<",o(f.value),">"]:Wt(f)?["div",{},["span",e,Ge(f)?"ShallowReactive":"Reactive"],"<",o(f),`>${Ke(f)?" (readonly)":""}`]:Ke(f)?["div",{},["span",e,Ge(f)?"ShallowReadonly":"Readonly"],"<",o(f),">"]:null:null},hasBody(f){return f&&f.__isVue},body(f){if(f&&f.__isVue)return["div",{},...a(f.$)]}};function a(f){const m=[];f.type.props&&f.props&&m.push(s("props",W(f.props))),f.setupState!==Ue&&m.push(s("setup",f.setupState)),f.data!==Ue&&m.push(s("data",W(f.data)));const S=l(f,"computed");S&&m.push(s("computed",S));const L=l(f,"inject");return L&&m.push(s("injected",L)),m.push(["div",{},["span",{style:r.style+";opacity:0.66"},"$ (internal): "],["object",{object:f}]]),m}function s(f,m){return m=Ae({},m),Object.keys(m).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},f],["div",{style:"padding-left:1.25em"},...Object.keys(m).map(S=>["div",{},["span",r,S+": "],o(m[S],!1)])]]:["span",{}]}function o(f,m=!0){return typeof f=="number"?["span",t,f]:typeof f=="string"?["span",n,JSON.stringify(f)]:typeof f=="boolean"?["span",r,f]:ge(f)?["object",{object:m?W(f):f}]:["span",n,String(f)]}function l(f,m){const S=f.type;if(ae(S))return;const L={};for(const v in f.ctx)c(S,v,m)&&(L[v]=f.ctx[v]);return L}function c(f,m,S){const L=f[S];if(z(L)&&L.includes(m)||ge(L)&&m in L||f.extends&&c(f.extends,m,S)||f.mixins&&f.mixins.some(v=>c(v,m,S)))return!0}function _(f){return Ge(f)?"ShallowRef":f.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(i):window.devtoolsFormatters=[i]}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;/**
|
|
38
|
+
* vue v3.4.35
|
|
39
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
40
|
+
* @license MIT
|
|
41
|
+
**/function ed(){Yf()}process.env.NODE_ENV!=="production"&&ed();function td(){return vo().__VUE_DEVTOOLS_GLOBAL_HOOK__}function vo(){return typeof navigator!="undefined"&&typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:{}}const nd=typeof Proxy=="function",rd="devtools-plugin:setup",id="plugin:settings:set";let Gt,Oi;function ad(){var e;return Gt!==void 0||(typeof window!="undefined"&&window.performance?(Gt=!0,Oi=window.performance):typeof globalThis!="undefined"&&((e=globalThis.perf_hooks)===null||e===void 0?void 0:e.performance)?(Gt=!0,Oi=globalThis.perf_hooks.performance):Gt=!1),Gt}function sd(){return ad()?Oi.now():Date.now()}class od{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const s in t.settings){const o=t.settings[s];r[s]=o.defaultValue}const i=`__vue-devtools-plugin-settings__${t.id}`;let a=Object.assign({},r);try{const s=localStorage.getItem(i),o=JSON.parse(s);Object.assign(a,o)}catch(s){}this.fallbacks={getSettings(){return a},setSettings(s){try{localStorage.setItem(i,JSON.stringify(s))}catch(o){}a=s},now(){return sd()}},n&&n.on(id,(s,o)=>{s===this.plugin.id&&this.fallbacks.setSettings(o)}),this.proxiedOn=new Proxy({},{get:(s,o)=>this.target?this.target.on[o]:(...l)=>{this.onQueue.push({method:o,args:l})}}),this.proxiedTarget=new Proxy({},{get:(s,o)=>this.target?this.target[o]:o==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(o)?(...l)=>(this.targetQueue.push({method:o,args:l,resolve:()=>{}}),this.fallbacks[o](...l)):(...l)=>new Promise(c=>{this.targetQueue.push({method:o,args:l,resolve:c})})})}setRealTarget(t){return Ye(this,null,function*(){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(yield this.target[n.method](...n.args))})}}function ld(e,t){const n=e,r=vo(),i=td(),a=nd&&n.enableEarlyProxy;if(i&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))i.emit(rd,e,t);else{const s=a?new od(n,i):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:s}),s&&t(s.proxiedTarget)}}/*!
|
|
42
|
+
* vue-i18n v9.13.1
|
|
43
|
+
* (c) 2024 kazuya kawaguchi
|
|
44
|
+
* Released under the MIT License.
|
|
45
|
+
*/const cd="9.13.1";function ud(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(je().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(je().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(je().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(je().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(je().__INTLIFY_PROD_DEVTOOLS__=!1)}const bo=he.__EXTEND_POINT__,Xe=pn(bo),Y={FALLBACK_TO_ROOT:bo,NOT_SUPPORTED_PRESERVE:Xe(),NOT_SUPPORTED_FORMATTER:Xe(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Xe(),NOT_SUPPORTED_GET_CHOICE_INDEX:Xe(),COMPONENT_NAME_LEGACY_COMPATIBLE:Xe(),NOT_FOUND_PARENT_SCOPE:Xe(),IGNORE_OBJ_FLATTEN:Xe(),NOTICE_DROP_ALLOW_COMPOSITION:Xe(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:Xe()},fd={[Y.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Y.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Y.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Y.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Y.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Y.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Y.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Y.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Y.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",[Y.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function Ne(e,...t){return nn(fd[e],...t)}const No=de.__EXTEND_POINT__,Ie=pn(No),H={UNEXPECTED_RETURN_TYPE:No,INVALID_ARGUMENT:Ie(),MUST_BE_CALL_SETUP_TOP:Ie(),NOT_INSTALLED:Ie(),NOT_AVAILABLE_IN_LEGACY_MODE:Ie(),REQUIRED_VALUE:Ie(),INVALID_VALUE:Ie(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Ie(),NOT_INSTALLED_WITH_PROVIDE:Ie(),UNEXPECTED_ERROR:Ie(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Ie(),BRIDGE_SUPPORT_VUE_2_ONLY:Ie(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Ie(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Ie(),__EXTEND_POINT__:Ie()};function ue(e,...t){return Ft(e,null,process.env.NODE_ENV!=="production"?{messages:dd,args:t}:void 0)}const dd={[H.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[H.INVALID_ARGUMENT]:"Invalid argument",[H.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[H.NOT_INSTALLED]:"Need to install with `app.use` function",[H.UNEXPECTED_ERROR]:"Unexpected error",[H.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[H.REQUIRED_VALUE]:"Required in value: {0}",[H.INVALID_VALUE]:"Invalid value",[H.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[H.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[H.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[H.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[H.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",[H.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Si=Te("__translateVNode"),wi=Te("__datetimeParts"),Li=Te("__numberParts"),At=Te("__enableEmitter"),_n=Te("__disableEmitter"),Io=Te("__setPluralRules");Te("__intlifyMeta");const Oo=Te("__injectWithOption"),Ai=Te("__dispose");function hn(e){if(!p(e))return e;for(const t in e)if(!!Hn(e,t))if(!t.includes("."))p(e[t])&&hn(e[t]);else{const n=t.split("."),r=n.length-1;let i=e,a=!1;for(let s=0;s<r;s++){if(n[s]in i||(i[n[s]]={}),!p(i[n[s]])){process.env.NODE_ENV!=="production"&&ce(Ne(Y.IGNORE_OBJ_FLATTEN,{key:n[s]})),a=!0;break}i=i[n[s]]}a||(i[n[r]]=e[t],delete e[t]),p(i[n[r]])&&hn(i[n[r]])}return e}function gr(e,t){const{messages:n,__i18n:r,messageResolver:i,flatJson:a}=t,s=U(n)?n:Q(r)?{}:{[e]:{}};if(Q(r)&&r.forEach(o=>{if("locale"in o&&"resource"in o){const{locale:l,resource:c}=o;l?(s[l]=s[l]||{},qn(c,s[l])):qn(c,s)}else M(o)&&qn(JSON.parse(o),s)}),i==null&&a)for(const o in s)Hn(s,o)&&hn(s[o]);return s}function So(e){return e.type}function wo(e,t,n){let r=p(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=gr(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(a=>{e.mergeLocaleMessage(a,r[a])});{if(p(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach(s=>{e.mergeDateTimeFormat(s,t.datetimeFormats[s])})}if(p(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach(s=>{e.mergeNumberFormat(s,t.numberFormats[s])})}}}function Lo(e){return qt(co,null,e,0)}const Ao="__INTLIFY_META__",Do=()=>[],md=()=>!1;let Co=0;function Ro(e){return(t,n,r,i)=>e(n,r,Kt()||void 0,i)}const _d=()=>{const e=Kt();let t=null;return e&&(t=So(e)[Ao])?{[Ao]:t}:null};function Di(e={},t){const{__root:n,__injectWithOption:r}=e,i=n===void 0,a=e.flatJson,s=Re?Bt:ps,o=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&o&&Da(Ne(Y.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let l=$(e.inheritLocale)?e.inheritLocale:!0;const c=s(n&&l?n.locale.value:M(e.locale)?e.locale:Ut),_=s(n&&l?n.fallbackLocale.value:M(e.fallbackLocale)||Q(e.fallbackLocale)||U(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),f=s(gr(c.value,e)),m=s(U(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),S=s(U(e.numberFormats)?e.numberFormats:{[c.value]:{}});let L=n?n.missingWarn:$(e.missingWarn)||tt(e.missingWarn)?e.missingWarn:!0,v=n?n.fallbackWarn:$(e.fallbackWarn)||tt(e.fallbackWarn)?e.fallbackWarn:!0,D=n?n.fallbackRoot:$(e.fallbackRoot)?e.fallbackRoot:!0,g=!!e.fallbackFormat,O=X(e.missing)?e.missing:null,h=X(e.missing)?Ro(e.missing):null,E=X(e.postTranslation)?e.postTranslation:null,w=n?n.warnHtmlMessage:$(e.warnHtmlMessage)?e.warnHtmlMessage:!0,N=!!e.escapeParameter;const y=n?n.modifiers:U(e.modifiers)?e.modifiers:{};let C=e.pluralRules||n&&n.pluralRules,T;T=(()=>{i&&Ga(null);const b={version:cd,locale:c.value,fallbackLocale:_.value,messages:f.value,modifiers:y,pluralRules:C,missing:h===null?void 0:h,missingWarn:L,fallbackWarn:v,fallbackFormat:g,unresolving:!0,postTranslation:E===null?void 0:E,warnHtmlMessage:w,escapeParameter:N,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};b.datetimeFormats=m.value,b.numberFormats=S.value,b.__datetimeFormatters=U(T)?T.__datetimeFormatters:void 0,b.__numberFormatters=U(T)?T.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(b.__v_emitter=U(T)?T.__v_emitter:void 0);const R=ru(b);return i&&Ga(R),R})(),an(T,c.value,_.value);function ve(){return[c.value,_.value,f.value,m.value,S.value]}const x=xe({get:()=>c.value,set:b=>{c.value=b,T.locale=c.value}}),se=xe({get:()=>_.value,set:b=>{_.value=b,T.fallbackLocale=_.value,an(T,c.value,b)}}),De=xe(()=>f.value),On=xe(()=>m.value),He=xe(()=>S.value);function Sn(){return X(E)?E:null}function wn(b){E=b,T.postTranslation=b}function Ln(){return O}function An(b){b!==null&&(h=Ro(b)),O=b,T.missing=h}function Dn(b,R){return b!=="translate"||!R.resolvedMessage}const Ce=(b,R,K,ne,ht,Dr)=>{ve();let Yt;try{(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&qa(_d()),i||(T.fallbackContext=n?nu():void 0),Yt=b(T)}finally{(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&qa(null),i||(T.fallbackContext=void 0)}if(K!=="translate exists"&&oe(Yt)&&Yt===Xn||K==="translate exists"&&!Yt){const[Rt,U_]=R();if(process.env.NODE_ENV!=="production"&&n&&M(Rt)&&Dn(K,U_)&&(D&&(Qn(v,Rt)||Ja(L,Rt))&&ce(Ne(Y.FALLBACK_TO_ROOT,{key:Rt,type:K})),process.env.NODE_ENV!=="production")){const{__v_emitter:Ll}=T;Ll&&D&&Ll.emit("fallback",{type:K,key:Rt,to:"global",groupId:`${K}:${Rt}`})}return n&&D?ne(n):ht(Rt)}else{if(Dr(Yt))return Yt;throw ue(H.UNEXPECTED_RETURN_TYPE)}};function Qt(...b){return Ce(R=>Reflect.apply(rs,null,[R,...b]),()=>jr(...b),"translate",R=>Reflect.apply(R.t,R,[...b]),R=>R,R=>M(R))}function zt(...b){const[R,K,ne]=b;if(ne&&!p(ne))throw ue(H.INVALID_ARGUMENT);return Qt(R,K,le({resolvedMessage:!0},ne||{}))}function Cn(...b){return Ce(R=>Reflect.apply(ls,null,[R,...b]),()=>qr(...b),"datetime format",R=>Reflect.apply(R.d,R,[...b]),()=>Jn,R=>M(R))}function Rn(...b){return Ce(R=>Reflect.apply(fs,null,[R,...b]),()=>Kr(...b),"number format",R=>Reflect.apply(R.n,R,[...b]),()=>Jn,R=>M(R))}function Tn(b){return b.map(R=>M(R)||oe(R)||$(R)?Lo(String(R)):R)}const Pn={normalize:Tn,interpolate:b=>b,type:"vnode"};function Zt(...b){return Ce(R=>{let K;const ne=R;try{ne.processor=Pn,K=Reflect.apply(rs,null,[ne,...b])}finally{ne.processor=null}return K},()=>jr(...b),"translate",R=>R[Si](...b),R=>[Lo(R)],R=>Q(R))}function Mn(...b){return Ce(R=>Reflect.apply(fs,null,[R,...b]),()=>Kr(...b),"number format",R=>R[Li](...b),Do,R=>M(R)||Q(R))}function Fn(...b){return Ce(R=>Reflect.apply(ls,null,[R,...b]),()=>qr(...b),"datetime format",R=>R[wi](...b),Do,R=>M(R)||Q(R))}function Vn(b){C=b,T.pluralRules=C}function P(b,R){return Ce(()=>{if(!b)return!1;const K=M(R)?R:c.value,ne=Ct(K),ht=T.messageResolver(ne,b);return o?ht!=null:it(ht)||Le(ht)||M(ht)},()=>[b],"translate exists",K=>Reflect.apply(K.te,K,[b,R]),md,K=>$(K))}function q(b){let R=null;const K=Ua(T,_.value,c.value);for(let ne=0;ne<K.length;ne++){const ht=f.value[K[ne]]||{},Dr=T.messageResolver(ht,b);if(Dr!=null){R=Dr;break}}return R}function kn(b){const R=q(b);return R!=null?R:n?n.tm(b)||{}:{}}function Ct(b){return f.value[b]||{}}function Un(b,R){if(a){const K={[b]:R};for(const ne in K)Hn(K,ne)&&hn(K[ne]);R=K[b]}f.value[b]=R,T.messages=f.value}function da(b,R){f.value[b]=f.value[b]||{};const K={[b]:R};if(a)for(const ne in K)Hn(K,ne)&&hn(K[ne]);R=K[b],qn(R,f.value[b]),T.messages=f.value}function u(b){return m.value[b]||{}}function d(b,R){m.value[b]=R,T.datetimeFormats=m.value,us(T,b,R)}function A(b,R){m.value[b]=le(m.value[b]||{},R),T.datetimeFormats=m.value,us(T,b,R)}function F(b){return S.value[b]||{}}function ee(b,R){S.value[b]=R,T.numberFormats=S.value,ms(T,b,R)}function J(b,R){S.value[b]=le(S.value[b]||{},R),T.numberFormats=S.value,ms(T,b,R)}Co++,n&&Re&&(vi(n.locale,b=>{l&&(c.value=b,T.locale=b,an(T,c.value,_.value))}),vi(n.fallbackLocale,b=>{l&&(_.value=b,T.fallbackLocale=b,an(T,c.value,_.value))}));const G={id:Co,locale:x,fallbackLocale:se,get inheritLocale(){return l},set inheritLocale(b){l=b,b&&n&&(c.value=n.locale.value,_.value=n.fallbackLocale.value,an(T,c.value,_.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:De,get modifiers(){return y},get pluralRules(){return C||{}},get isGlobal(){return i},get missingWarn(){return L},set missingWarn(b){L=b,T.missingWarn=L},get fallbackWarn(){return v},set fallbackWarn(b){v=b,T.fallbackWarn=v},get fallbackRoot(){return D},set fallbackRoot(b){D=b},get fallbackFormat(){return g},set fallbackFormat(b){g=b,T.fallbackFormat=g},get warnHtmlMessage(){return w},set warnHtmlMessage(b){w=b,T.warnHtmlMessage=b},get escapeParameter(){return N},set escapeParameter(b){N=b,T.escapeParameter=b},t:Qt,getLocaleMessage:Ct,setLocaleMessage:Un,mergeLocaleMessage:da,getPostTranslationHandler:Sn,setPostTranslationHandler:wn,getMissingHandler:Ln,setMissingHandler:An,[Io]:Vn};return G.datetimeFormats=On,G.numberFormats=He,G.rt=zt,G.te=P,G.tm=kn,G.d=Cn,G.n=Rn,G.getDateTimeFormat=u,G.setDateTimeFormat=d,G.mergeDateTimeFormat=A,G.getNumberFormat=F,G.setNumberFormat=ee,G.mergeNumberFormat=J,G[Oo]=r,G[Si]=Zt,G[wi]=Fn,G[Li]=Mn,process.env.NODE_ENV!=="production"&&(G[At]=b=>{T.__v_emitter=b},G[_n]=()=>{T.__v_emitter=void 0}),G}function hd(e){const t=M(e.locale)?e.locale:Ut,n=M(e.fallbackLocale)||Q(e.fallbackLocale)||U(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=X(e.missing)?e.missing:void 0,i=$(e.silentTranslationWarn)||tt(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,a=$(e.silentFallbackWarn)||tt(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,s=$(e.fallbackRoot)?e.fallbackRoot:!0,o=!!e.formatFallbackMessages,l=U(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,_=X(e.postTranslation)?e.postTranslation:void 0,f=M(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,m=!!e.escapeParameterHtml,S=$(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&ce(Ne(Y.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&ce(Ne(Y.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let L=e.messages;if(U(e.sharedMessages)){const N=e.sharedMessages;L=Object.keys(N).reduce((C,T)=>{const j=C[T]||(C[T]={});return le(j,N[T]),C},L||{})}const{__i18n:v,__root:D,__injectWithOption:g}=e,O=e.datetimeFormats,h=e.numberFormats,E=e.flatJson,w=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:L,flatJson:E,datetimeFormats:O,numberFormats:h,missing:r,missingWarn:i,fallbackWarn:a,fallbackRoot:s,fallbackFormat:o,modifiers:l,pluralRules:c,postTranslation:_,warnHtmlMessage:f,escapeParameter:m,messageResolver:e.messageResolver,inheritLocale:S,translateExistCompatible:w,__i18n:v,__root:D,__injectWithOption:g}}function Ci(e={},t){{const n=Di(hd(e)),{__extender:r}=e,i={id:n.id,get locale(){return n.locale.value},set locale(a){n.locale.value=a},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(a){n.fallbackLocale.value=a},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"&&ce(Ne(Y.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(a){process.env.NODE_ENV!=="production"&&ce(Ne(Y.NOT_SUPPORTED_FORMATTER))},get missing(){return n.getMissingHandler()},set missing(a){n.setMissingHandler(a)},get silentTranslationWarn(){return $(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(a){n.missingWarn=$(a)?!a:a},get silentFallbackWarn(){return $(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(a){n.fallbackWarn=$(a)?!a:a},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(a){n.fallbackFormat=a},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(a){n.setPostTranslationHandler(a)},get sync(){return n.inheritLocale},set sync(a){n.inheritLocale=a},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){n.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(a){n.escapeParameter=a},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&ce(Ne(Y.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(a){process.env.NODE_ENV!=="production"&&ce(Ne(Y.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...a){const[s,o,l]=a,c={};let _=null,f=null;if(!M(s))throw ue(H.INVALID_ARGUMENT);const m=s;return M(o)?c.locale=o:Q(o)?_=o:U(o)&&(f=o),Q(l)?_=l:U(l)&&(f=l),Reflect.apply(n.t,n,[m,_||f||{},c])},rt(...a){return Reflect.apply(n.rt,n,[...a])},tc(...a){const[s,o,l]=a,c={plural:1};let _=null,f=null;if(!M(s))throw ue(H.INVALID_ARGUMENT);const m=s;return M(o)?c.locale=o:oe(o)?c.plural=o:Q(o)?_=o:U(o)&&(f=o),M(l)?c.locale=l:Q(l)?_=l:U(l)&&(f=l),Reflect.apply(n.t,n,[m,_||f||{},c])},te(a,s){return n.te(a,s)},tm(a){return n.tm(a)},getLocaleMessage(a){return n.getLocaleMessage(a)},setLocaleMessage(a,s){n.setLocaleMessage(a,s)},mergeLocaleMessage(a,s){n.mergeLocaleMessage(a,s)},d(...a){return Reflect.apply(n.d,n,[...a])},getDateTimeFormat(a){return n.getDateTimeFormat(a)},setDateTimeFormat(a,s){n.setDateTimeFormat(a,s)},mergeDateTimeFormat(a,s){n.mergeDateTimeFormat(a,s)},n(...a){return Reflect.apply(n.n,n,[...a])},getNumberFormat(a){return n.getNumberFormat(a)},setNumberFormat(a,s){n.setNumberFormat(a,s)},mergeNumberFormat(a,s){n.mergeNumberFormat(a,s)},getChoiceIndex(a,s){return process.env.NODE_ENV!=="production"&&ce(Ne(Y.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return i.__extender=r,process.env.NODE_ENV!=="production"&&(i.__enableEmitter=a=>{const s=n;s[At]&&s[At](a)},i.__disableEmitter=()=>{const a=n;a[_n]&&a[_n]()}),i}}const Ri={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function gd({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,i)=>[...r,...i.type===dr?i.children:[i]],[]):t.reduce((n,r)=>{const i=e[r];return i&&(n[r]=i()),n},{})}function To(e){return dr}const Ti=hi({name:"i18n-t",props:le({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>oe(e)||!isNaN(e)}},Ri),setup(e,t){const{slots:n,attrs:r}=t,i=e.i18n||Vi({useScope:e.scope,__useComponent:!0});return()=>{const a=Object.keys(n).filter(f=>f!=="_"),s={};e.locale&&(s.locale=e.locale),e.plural!==void 0&&(s.plural=M(e.plural)?+e.plural:e.plural);const o=gd(t,a),l=i[Si](e.keypath,o,s),c=le({},r),_=M(e.tag)||p(e.tag)?e.tag:To();return yo(_,c,l)}}});function Ed(e){return Q(e)&&!M(e[0])}function Po(e,t,n,r){const{slots:i,attrs:a}=t;return()=>{const s={part:!0};let o={};e.locale&&(s.locale=e.locale),M(e.format)?s.key=e.format:p(e.format)&&(M(e.format.key)&&(s.key=e.format.key),o=Object.keys(e.format).reduce((m,S)=>n.includes(S)?le({},m,{[S]:e.format[S]}):m,{}));const l=r(e.value,s,o);let c=[s.key];Q(l)?c=l.map((m,S)=>{const L=i[m.type],v=L?L({[m.type]:m.value,index:S,parts:l}):[m.value];return Ed(v)&&(v[0].key=`${m.type}-${S}`),v}):M(l)&&(c=[l]);const _=le({},a),f=M(e.tag)||p(e.tag)?e.tag:To();return yo(f,_,c)}}const Mo=hi({name:"i18n-n",props:le({value:{type:Number,required:!0},format:{type:[String,Object]}},Ri),setup(e,t){const n=e.i18n||Vi({useScope:e.scope,__useComponent:!0});return Po(e,t,ds,(...r)=>n[Li](...r))}}),Fo=hi({name:"i18n-d",props:le({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ri),setup(e,t){const n=e.i18n||Vi({useScope:e.scope,__useComponent:!0});return Po(e,t,cs,(...r)=>n[wi](...r))}});function yd(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 vd(e){const t=s=>{const{instance:o,modifiers:l,value:c}=s;if(!o||!o.$)throw ue(H.UNEXPECTED_ERROR);const _=yd(e,o.$);process.env.NODE_ENV!=="production"&&l.preserve&&ce(Ne(Y.NOT_SUPPORTED_PRESERVE));const f=Vo(c);return[Reflect.apply(_.t,_,[...ko(f)]),_]};return{created:(s,o)=>{const[l,c]=t(o);Re&&e.global===c&&(s.__i18nWatcher=vi(c.locale,()=>{o.instance&&o.instance.$forceUpdate()})),s.__composer=c,s.textContent=l},unmounted:s=>{Re&&s.__i18nWatcher&&(s.__i18nWatcher(),s.__i18nWatcher=void 0,delete s.__i18nWatcher),s.__composer&&(s.__composer=void 0,delete s.__composer)},beforeUpdate:(s,{value:o})=>{if(s.__composer){const l=s.__composer,c=Vo(o);s.textContent=Reflect.apply(l.t,l,[...ko(c)])}},getSSRProps:s=>{const[o]=t(s);return{textContent:o}}}}function Vo(e){if(M(e))return{path:e};if(U(e)){if(!("path"in e))throw ue(H.REQUIRED_VALUE,"path");return e}else throw ue(H.INVALID_VALUE)}function ko(e){const{path:t,locale:n,args:r,choice:i,plural:a}=e,s={},o=r||{};return M(n)&&(s.locale=n),oe(i)&&(s.plural=i),oe(a)&&(s.plural=a),[t,o,s]}function bd(e,t,...n){const r=U(n[0])?n[0]:{},i=!!r.useI18nComponentName,a=$(r.globalInstall)?r.globalInstall:!0;process.env.NODE_ENV!=="production"&&a&&i&&ce(Ne(Y.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:Ti.name})),a&&([i?"i18n":Ti.name,"I18nT"].forEach(s=>e.component(s,Ti)),[Mo.name,"I18nN"].forEach(s=>e.component(s,Mo)),[Fo.name,"I18nD"].forEach(s=>e.component(s,Fo))),e.directive("t",vd(t))}const Pi={["vue-devtools-plugin-vue-i18n"]:"Vue I18n devtools",["vue-i18n-resource-inspector"]:"I18n Resources",["vue-i18n-timeline"]:"Vue I18n"},Nd={["vue-i18n-resource-inspector"]:"Search for scopes ..."},Id={["vue-i18n-timeline"]:16764185},Uo="vue-i18n: composer properties";let Mi;function Od(e,t){return Ye(this,null,function*(){return new Promise((n,r)=>{try{ld({id:"vue-devtools-plugin-vue-i18n",label:Pi["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:[Uo],app:e},i=>{Mi=i,i.on.visitComponentTree(({componentInstance:s,treeNode:o})=>{Sd(s,o,t)}),i.on.inspectComponent(({componentInstance:s,instanceData:o})=>{s.vnode.el&&s.vnode.el.__VUE_I18N__&&o&&(t.mode==="legacy"?s.vnode.el.__VUE_I18N__!==t.global.__composer&&xo(o,s.vnode.el.__VUE_I18N__):xo(o,s.vnode.el.__VUE_I18N__))}),i.addInspector({id:"vue-i18n-resource-inspector",label:Pi["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Nd["vue-i18n-resource-inspector"]}),i.on.getInspectorTree(s=>{s.app===e&&s.inspectorId==="vue-i18n-resource-inspector"&&Cd(s,t)});const a=new Map;i.on.getInspectorState(s=>Ye(this,null,function*(){if(s.app===e&&s.inspectorId==="vue-i18n-resource-inspector")if(i.unhighlightElement(),Td(s,t),s.nodeId==="global"){if(!a.has(s.app)){const[o]=yield i.getComponentInstances(s.app);a.set(s.app,o)}i.highlightElement(a.get(s.app))}else{const o=Rd(s.nodeId,t);o&&i.highlightElement(o)}})),i.on.editInspectorState(s=>{s.app===e&&s.inspectorId==="vue-i18n-resource-inspector"&&Md(s,t)}),i.addTimelineLayer({id:"vue-i18n-timeline",label:Pi["vue-i18n-timeline"],color:Id["vue-i18n-timeline"]}),n(!0)})}catch(i){console.error(i),r(!1)}})})}function $o(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function Sd(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 i={label:`i18n (${$o(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(i)}}function xo(e,t){const n=Uo;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:Fi(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 Fi(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];X(r)&&"source"in r?t[n]=Dd(r):it(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:p(r)?t[n]=Fi(r):t[n]=r}),t}const wd={"<":"<",">":">",'"':""","&":"&"};function Ld(e){return e.replace(/[<>"&]/g,Ad)}function Ad(e){return wd[e]||e}function Dd(e){const t=e.source?`("${Ld(e.source)}")`:"(?)";return{_custom:{type:"function",display:`<span>\u0192</span> ${t}`}}}function Cd(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[r,i]of t.__instances){const a=t.mode==="composition"?i:i.__composer;n!==a&&e.rootNodes.push({id:a.id.toString(),label:`${$o(r)} Scope`})}}function Rd(e,t){let n=null;if(e!=="global"){for(const[r,i]of t.__instances.entries())if(i.id.toString()===e){n=r;break}}return n}function Wo(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 Td(e,t){const n=Wo(e.nodeId,t);return n&&(e.state=Pd(n)),null}function Pd(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 i="Locale messages info",a=[{type:i,key:"messages",editable:!1,value:Fi(e.messages.value)}];t[i]=a;{const s="Datetime formats info",o=[{type:s,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[s]=o;const l="Datetime formats info",c=[{type:l,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[l]=c}return t}function gn(e,t){if(Mi){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),Mi.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 Md(e,t){const n=Wo(e.nodeId,t);if(n){const[r]=e.path;r==="locale"&&M(e.state.value)?n.locale.value=e.state.value:r==="fallbackLocale"&&(M(e.state.value)||Q(e.state.value)||p(e.state.value))?n.fallbackLocale.value=e.state.value:r==="inheritLocale"&&$(e.state.value)&&(n.inheritLocale=e.state.value)}}function Fd(e,t,n){return{beforeCreate(){const r=Kt();if(!r)throw ue(H.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const a=i.i18n;if(i.__i18n&&(a.__i18n=i.__i18n),a.__root=t,this===this.$root)this.$i18n=Bo(e,a);else{a.__injectWithOption=!0,a.__extender=n.__vueI18nExtend,this.$i18n=Ci(a);const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=Bo(e,i);else{this.$i18n=Ci({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&wo(t,i,i),this.$t=(...a)=>this.$i18n.t(...a),this.$rt=(...a)=>this.$i18n.rt(...a),this.$tc=(...a)=>this.$i18n.tc(...a),this.$te=(a,s)=>this.$i18n.te(a,s),this.$d=(...a)=>this.$i18n.d(...a),this.$n=(...a)=>this.$i18n.n(...a),this.$tm=a=>this.$i18n.tm(a),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 i=this.__v_emitter=Ur();r.__enableEmitter&&r.__enableEmitter(i),i.on("*",gn)}},unmounted(){const r=Kt();if(!r)throw ue(H.UNEXPECTED_ERROR);const i=this.$i18n;(process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&!0&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",gn),delete this.__v_emitter),this.$i18n&&(i.__disableEmitter&&i.__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,i.__disposer&&(i.__disposer(),delete i.__disposer,delete i.__extender),n.__deleteInstance(r),delete this.$i18n}}}function Bo(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[Io](t.pluralizationRules||e.pluralizationRules);const n=gr(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 Vd=Te("global-vue-i18n");function kd(e={},t){const n=__VUE_I18N_LEGACY_API__&&$(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=$(e.globalInjection)?e.globalInjection:!0,i=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,a=new Map,[s,o]=Ud(e,n),l=Te(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&n&&i&&ce(Ne(Y.NOTICE_DROP_ALLOW_COMPOSITION));function c(m){return a.get(m)||null}function _(m,S){a.set(m,S)}function f(m){a.delete(m)}{let S;const m={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return i},install(L,...v){return Ye(this,null,function*(){if((process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&(L.__VUE_I18N__=m),L.__VUE_I18N_SYMBOL__=l,L.provide(L.__VUE_I18N_SYMBOL__,m),U(v[0])){const O=v[0];m.__composerExtend=O.__composerExtend,m.__vueI18nExtend=O.__vueI18nExtend}let D=null;!n&&r&&(D=Kd(L,m.global)),__VUE_I18N_FULL_INSTALL__&&bd(L,m,...v),__VUE_I18N_LEGACY_API__&&n&&L.mixin(Fd(o,o.__composer,m));const g=L.unmount;if(L.unmount=()=>{D&&D(),m.dispose(),g()},process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__){if(!(yield Od(L,m)))throw ue(H.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const h=Ur();if(n){const E=o;E.__enableEmitter&&E.__enableEmitter(h)}else{const E=o;E[At]&&E[At](h)}h.on("*",gn)}})},get global(){return o},dispose(){s.stop()},__instances:a,__getInstance:c,__setInstance:_,__deleteInstance:f};return m}}function Vi(e={}){const t=Kt();if(t==null)throw ue(H.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw ue(H.NOT_INSTALLED);const n=$d(t),r=Wd(n),i=So(t),a=xd(e,i);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw ue(H.NOT_AVAILABLE_IN_LEGACY_MODE);return jd(t,a,r,e)}if(a==="global")return wo(r,e,i),r;if(a==="parent"){let l=Bd(n,t,e.__useComponent);return l==null&&(process.env.NODE_ENV!=="production"&&ce(Ne(Y.NOT_FOUND_PARENT_SCOPE)),l=r),l}const s=n;let o=s.__getInstance(t);if(o==null){const l=le({},e);"__i18n"in i&&(l.__i18n=i.__i18n),r&&(l.__root=r),o=Di(l),s.__composerExtend&&(o[Ai]=s.__composerExtend(o)),pd(s,t,o),s.__setInstance(t,o)}return o}function Ud(e,t,n){const r=Ru();{const i=__VUE_I18N_LEGACY_API__&&t?r.run(()=>Ci(e)):r.run(()=>Di(e));if(i==null)throw ue(H.UNEXPECTED_ERROR);return[r,i]}}function $d(e){{const t=ao(e.isCE?Vd:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw ue(e.isCE?H.NOT_INSTALLED_WITH_PROVIDE:H.UNEXPECTED_ERROR);return t}}function xd(e,t){return Bn(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Wd(e){return e.mode==="composition"?e.global:e.global.__composer}function Bd(e,t,n=!1){let r=null;const i=t.root;let a=Hd(t,n);for(;a!=null;){const s=e;if(e.mode==="composition")r=s.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){const o=s.__getInstance(a);o!=null&&(r=o.__composer,n&&r&&!r[Oo]&&(r=null))}if(r!=null||i===a)break;a=a.parent}return r}function Hd(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function pd(e,t,n){let r=null;Sf(()=>{if((process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&!0&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=Ur();const i=n;i[At]&&i[At](r),r.on("*",gn)}},t),wf(()=>{const i=n;(process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&!0&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(r&&r.off("*",gn),i[_n]&&i[_n](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const a=i[Ai];a&&(a(),delete i[Ai])},t)}function jd(e,t,n,r={}){const i=t==="local",a=ps(null);if(i&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw ue(H.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=$(r.inheritLocale)?r.inheritLocale:!M(r.locale),o=Bt(!i||s?n.locale.value:M(r.locale)?r.locale:Ut),l=Bt(!i||s?n.fallbackLocale.value:M(r.fallbackLocale)||Q(r.fallbackLocale)||U(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:o.value),c=Bt(gr(o.value,r)),_=Bt(U(r.datetimeFormats)?r.datetimeFormats:{[o.value]:{}}),f=Bt(U(r.numberFormats)?r.numberFormats:{[o.value]:{}}),m=i?n.missingWarn:$(r.missingWarn)||tt(r.missingWarn)?r.missingWarn:!0,S=i?n.fallbackWarn:$(r.fallbackWarn)||tt(r.fallbackWarn)?r.fallbackWarn:!0,L=i?n.fallbackRoot:$(r.fallbackRoot)?r.fallbackRoot:!0,v=!!r.fallbackFormat,D=X(r.missing)?r.missing:null,g=X(r.postTranslation)?r.postTranslation:null,O=i?n.warnHtmlMessage:$(r.warnHtmlMessage)?r.warnHtmlMessage:!0,h=!!r.escapeParameter,E=i?n.modifiers:U(r.modifiers)?r.modifiers:{},w=r.pluralRules||i&&n.pluralRules;function N(){return[o.value,l.value,c.value,_.value,f.value]}const y=xe({get:()=>a.value?a.value.locale.value:o.value,set:P=>{a.value&&(a.value.locale.value=P),o.value=P}}),C=xe({get:()=>a.value?a.value.fallbackLocale.value:l.value,set:P=>{a.value&&(a.value.fallbackLocale.value=P),l.value=P}}),T=xe(()=>a.value?a.value.messages.value:c.value),j=xe(()=>_.value),ve=xe(()=>f.value);function x(){return a.value?a.value.getPostTranslationHandler():g}function se(P){a.value&&a.value.setPostTranslationHandler(P)}function De(){return a.value?a.value.getMissingHandler():D}function On(P){a.value&&a.value.setMissingHandler(P)}function He(P){return N(),P()}function Sn(...P){return a.value?He(()=>Reflect.apply(a.value.t,null,[...P])):He(()=>"")}function wn(...P){return a.value?Reflect.apply(a.value.rt,null,[...P]):""}function Ln(...P){return a.value?He(()=>Reflect.apply(a.value.d,null,[...P])):He(()=>"")}function An(...P){return a.value?He(()=>Reflect.apply(a.value.n,null,[...P])):He(()=>"")}function Dn(P){return a.value?a.value.tm(P):{}}function Ce(P,q){return a.value?a.value.te(P,q):!1}function Qt(P){return a.value?a.value.getLocaleMessage(P):{}}function zt(P,q){a.value&&(a.value.setLocaleMessage(P,q),c.value[P]=q)}function Cn(P,q){a.value&&a.value.mergeLocaleMessage(P,q)}function Rn(P){return a.value?a.value.getDateTimeFormat(P):{}}function Tn(P,q){a.value&&(a.value.setDateTimeFormat(P,q),_.value[P]=q)}function Ar(P,q){a.value&&a.value.mergeDateTimeFormat(P,q)}function Pn(P){return a.value?a.value.getNumberFormat(P):{}}function Zt(P,q){a.value&&(a.value.setNumberFormat(P,q),f.value[P]=q)}function Mn(P,q){a.value&&a.value.mergeNumberFormat(P,q)}const Fn={get id(){return a.value?a.value.id:-1},locale:y,fallbackLocale:C,messages:T,datetimeFormats:j,numberFormats:ve,get inheritLocale(){return a.value?a.value.inheritLocale:s},set inheritLocale(P){a.value&&(a.value.inheritLocale=P)},get availableLocales(){return a.value?a.value.availableLocales:Object.keys(c.value)},get modifiers(){return a.value?a.value.modifiers:E},get pluralRules(){return a.value?a.value.pluralRules:w},get isGlobal(){return a.value?a.value.isGlobal:!1},get missingWarn(){return a.value?a.value.missingWarn:m},set missingWarn(P){a.value&&(a.value.missingWarn=P)},get fallbackWarn(){return a.value?a.value.fallbackWarn:S},set fallbackWarn(P){a.value&&(a.value.missingWarn=P)},get fallbackRoot(){return a.value?a.value.fallbackRoot:L},set fallbackRoot(P){a.value&&(a.value.fallbackRoot=P)},get fallbackFormat(){return a.value?a.value.fallbackFormat:v},set fallbackFormat(P){a.value&&(a.value.fallbackFormat=P)},get warnHtmlMessage(){return a.value?a.value.warnHtmlMessage:O},set warnHtmlMessage(P){a.value&&(a.value.warnHtmlMessage=P)},get escapeParameter(){return a.value?a.value.escapeParameter:h},set escapeParameter(P){a.value&&(a.value.escapeParameter=P)},t:Sn,getPostTranslationHandler:x,setPostTranslationHandler:se,getMissingHandler:De,setMissingHandler:On,rt:wn,d:Ln,n:An,tm:Dn,te:Ce,getLocaleMessage:Qt,setLocaleMessage:zt,mergeLocaleMessage:Cn,getDateTimeFormat:Rn,setDateTimeFormat:Tn,mergeDateTimeFormat:Ar,getNumberFormat:Pn,setNumberFormat:Zt,mergeNumberFormat:Mn};function Vn(P){P.locale.value=o.value,P.fallbackLocale.value=l.value,Object.keys(c.value).forEach(q=>{P.mergeLocaleMessage(q,c.value[q])}),Object.keys(_.value).forEach(q=>{P.mergeDateTimeFormat(q,_.value[q])}),Object.keys(f.value).forEach(q=>{P.mergeNumberFormat(q,f.value[q])}),P.escapeParameter=h,P.fallbackFormat=v,P.fallbackRoot=L,P.fallbackWarn=S,P.missingWarn=m,P.warnHtmlMessage=O}return Of(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw ue(H.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const P=a.value=e.proxy.$i18n.__composer;t==="global"?(o.value=P.locale.value,l.value=P.fallbackLocale.value,c.value=P.messages.value,_.value=P.datetimeFormats.value,f.value=P.numberFormats.value):i&&Vn(P)}),Fn}const qd=["locale","fallbackLocale","availableLocales"],Ho=["t","rt","d","n","tm","te"];function Kd(e,t){const n=Object.create(null);return qd.forEach(i=>{const a=Object.getOwnPropertyDescriptor(t,i);if(!a)throw ue(H.UNEXPECTED_ERROR);const s=be(a.value)?{get(){return a.value.value},set(o){a.value.value=o}}:{get(){return a.get&&a.get()}};Object.defineProperty(n,i,s)}),e.config.globalProperties.$i18n=n,Ho.forEach(i=>{const a=Object.getOwnPropertyDescriptor(t,i);if(!a||!a.value)throw ue(H.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,a)}),()=>{delete e.config.globalProperties.$i18n,Ho.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}if(ud(),__INTLIFY_JIT_COMPILATION__?Ba(lu):Ba(ou),Yc(Mc),eu(Ua),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=je();e.__INTLIFY__=!0,Hc(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;function Gd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function po(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 Xd(e,t,n){return t&&po(e.prototype,t),n&&po(e,n),e}function Jd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k=function(){function e(){Gd(this,e)}return Xd(e,null,[{key:"getMessage",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$i18n.global.t(n,r)}},{key:"resetI18n",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Cr;return kd({locale:n,globalInjection:!0,silentFallbackWarn:!0,missingWarn:!1,fallbackWarn:!1,silentTranslationWarn:!0})}},{key:"setLocale",value:function(n,r){this.$i18n.global.setLocaleMessage(n,r)}}]),e}();Jd(k,"$i18n",k.resetI18n());function Qd(e,t,n){var r=t.replace(/\[(\d)]/g,function(a,s){return"."+s}).split("."),i=!1;return r.reduce(function(a,s,o,l){var c=a;if(!!a){if(!Object.prototype.hasOwnProperty.call(a,s)){Mr("Can not set ".concat(t,"'s ").concat(s," property in current %o, Because there is no ").concat(s," property on the %o"),a,a);return}return o===l.length-1&&!Object.is(c[s],n)&&(c[s]=n,i=!0),c[s]}},e),i}var zd=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Zd={exports:{}};(function(e){(function(t){var n=function(g,O,h){if(!c(O)||f(O)||m(O)||S(O)||l(O))return O;var E,w=0,N=0;if(_(O))for(E=[],N=O.length;w<N;w++)E.push(n(g,O[w],h));else{E={};for(var y in O)Object.prototype.hasOwnProperty.call(O,y)&&(E[g(y,h)]=n(g,O[y],h))}return E},r=function(g,O){O=O||{};var h=O.separator||"_",E=O.split||/(?=[A-Z])/;return g.split(E).join(h)},i=function(g){return L(g)?g:(g=g.replace(/[\-_\s]+(.)?/g,function(O,h){return h?h.toUpperCase():""}),g.substr(0,1).toLowerCase()+g.substr(1))},a=function(g){var O=i(g);return O.substr(0,1).toUpperCase()+O.substr(1)},s=function(g,O){return r(g,O).toLowerCase()},o=Object.prototype.toString,l=function(g){return typeof g=="function"},c=function(g){return g===Object(g)},_=function(g){return o.call(g)=="[object Array]"},f=function(g){return o.call(g)=="[object Date]"},m=function(g){return o.call(g)=="[object RegExp]"},S=function(g){return o.call(g)=="[object Boolean]"},L=function(g){return g=g-0,g===g},v=function(g,O){var h=O&&"process"in O?O.process:O;return typeof h!="function"?g:function(E,w){return h(E,g,w)}},D={camelize:i,decamelize:s,pascalize:a,depascalize:s,camelizeKeys:function(g,O){return n(v(i,O),g)},decamelizeKeys:function(g,O){return n(v(s,O),g,O)},pascalizeKeys:function(g,O){return n(v(a,O),g)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=D:t.humps=D})(zd)})(Zd);var jo={};Object.defineProperty(jo,"__esModule",{value:!0});function ki(e){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map(t=>typeof t!="object"||t===null?t:ki(t));{const t={};for(const n in e){const r=e[n];t[n]=typeof r!="object"||r===null?r:ki(r)}return t}}var Yd=jo.default=ki;function em(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Je(e){if(e!==void 0)return(typeof e=="undefined"?"undefined":em(e))==="object"?Yd(e):e}function tm(e){return Object.prototype.toString.call(e)==="[object Object]"}function nm(e){return Array.isArray(e)}function rm(e){return e.reduce(function(t,n){return t.includes(n)||t.push(n),t},[])}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 im(e){if(Array.isArray(e))return Ui(e)}function qo(e,t,n,r,i,a,s){try{var o=e[a](s),l=o.value}catch(c){n(c);return}o.done?t(l):Promise.resolve(l).then(r,i)}function am(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function s(l){qo(a,r,i,s,o,"next",l)}function o(l){qo(a,r,i,s,o,"throw",l)}s(void 0)})}}function sm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ko(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 om(e,t,n){return t&&Ko(e.prototype,t),n&&Ko(e,n),e}function Go(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lm(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cm(){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 $i(e){return im(e)||lm(e)||um(e)||cm()}function um(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 fm(e,t){var n,r,i,a,s={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(c){return function(_){return l([c,_])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=c[0]&2?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,r=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){s=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){s.label=c[1];break}if(c[0]===6&&s.label<i[1]){s.label=i[1],i=c;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(c);break}i[2]&&s.ops.pop(),s.trys.pop();continue}c=t.call(e,s)}catch(_){c=[6,_],r=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var dm=function(){function e(){sm(this,e),Go(this,"_events",new Map),Go(this,"debug",!1)}return om(e,[{key:"emit",value:function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];var s=this;return am(function(){var o,l,c,_,f,m,S,L,v,D,g,O;return fm(this,function(h){switch(h.label){case 0:if(o=s._events.get(n),l=[],!o)return[3,10];c=o.slice(),_=!0,f=!1,m=void 0,h.label=1;case 1:h.trys.push([1,8,9,10]),S=c[Symbol.iterator](),h.label=2;case 2:if(_=(L=S.next()).done)return[3,7];if(v=L.value,!o.includes(v))return[3,6];h.label=3;case 3:return h.trys.push([3,5,,6]),s.debug&&ba.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(v.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+v.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(i.map(function(){return"%o"}).join(","),"\u3002")].concat($i(i))),[4,v.apply(null,$i(i))];case 4:return D=h.sent(),s.debug&&ba.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(v.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+v.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(i.map(function(){return"%o"}).join(","),"; \u51FD\u6570\u7684\u8FD4\u56DE\u7ED3\u679C\u4E3A%o")].concat($i(i),[D])),l.push(D),D===!1?[3,7]:[3,6];case 5:return g=h.sent(),Wl(String(g)+":"+String(g.stack)),[3,6];case 6:return _=!0,[3,2];case 7:return[3,10];case 8:return O=h.sent(),f=!0,m=O,[3,10];case 9:try{!_&&S.return!=null&&S.return()}finally{if(f)throw m}return[7];case 10:return[2,l]}})})()}},{key:"on",value:function(n,r){if(this._events.has(n)){var i;(i=this._events.get(n))===null||i===void 0||i.push(r)}else this._events.set(n,[r])}},{key:"off",value:function(n,r){if(this._events.has(n)){var i=this._events.get(n),a=i==null?void 0:i.indexOf(r);i==null||i.splice(a,1)}}},{key:"delete",value:function(n){this._events.has(n)&&this._events.delete(n)}},{key:"clear",value:function(){this._events=new Map}}]),e}();function mm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xo(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 _m(e,t,n){return t&&Xo(e.prototype,t),n&&Xo(e,n),e}function hm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gm=[{key:"on_click",name:"\u70B9\u51FB\u65F6",code:"click"},{key:"on_click_finish",name:"\u6267\u884C\u5B8C\u6210\u65F6",code:"click-finish"},{key:"on_change",name:"\u503C\u53D1\u751F\u53D8\u5316\u65F6",code:"change"},{key:"on_search",name:"\u641C\u7D22\u65F6",code:"search"},{key:"on_list_change",name:"\u5217\u8868\u6570\u636E\u53D8\u5316\u65F6",code:"list-change"},{key:"on_list_search",name:"\u5217\u8868\u6570\u636E\u67E5\u8BE2\u6784\u5EFA\u65F6",code:"list-search"},{key:"on_list_mounted",name:"\u5217\u8868\u6570\u636E\u8FD4\u56DE\u65F6",code:"list-mounted"},{key:"on_list_delete",name:"\u5217\u8868\u6570\u636E\u5220\u9664\u65F6",code:"list-delete"},{key:"on_list_before_insert",name:"\u5217\u8868\u6570\u636E\u63D2\u5165\u524D",code:"list-before-insert"},{key:"on_input",name:"\u7528\u6237\u8F93\u5165\u65F6",code:"input"},{key:"on_blur",name:"\u5931\u53BB\u7126\u70B9\u65F6",code:"blur"},{key:"on_focus",name:"\u83B7\u53D6\u7126\u70B9\u65F6",code:"focus"},{key:"on_wps_open",name:"\u6253\u5F00\u6587\u4EF6\u65F6",code:"wps-open"},{key:"on_wps_save",name:"\u4FDD\u5B58\u6587\u4EF6\u65F6",code:"wps-save"},{key:"on_wps_rename",name:"\u91CD\u547D\u540D\u65F6",code:"wps-rename"},{key:"on_list_actions",name:"\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6",code:"list-actions"},{key:"on_list_render_operation",name:"\u64CD\u4F5C\u5217\u6E32\u67D3\u65F6",code:"list-render-operation"},{key:"on_list_rowclick",name:"\u884C\u70B9\u51FB\u65F6",code:"list-rowclick"},{key:"on_list_before_rowdelete",name:"\u884C\u5220\u9664\u524D",code:"list-before-rowdelete"},{key:"on_list_before_import",name:"\u5217\u8868\u6570\u636E\u5BFC\u5165\u524D",code:"list-before-import"},{key:"on_list_rows_checked",name:"\u884C\u9009\u4E2D\u65F6",code:"list-rows-checked"},{key:"on_change_tab",name:"\u6807\u7B7E\u9875\u5207\u6362\u65F6",code:"change-tab"},{key:"on_modal_ok",name:"\u5F39\u7A97\u786E\u8BA4\u65F6",code:"modal-ok"}],Em=function(){function e(){mm(this,e)}return _m(e,null,[{key:"getEventsFromKeys",value:function(n){var r=typeof n=="string"?[n]:n;return e.events.filter(function(i){return r.includes(i.key)})}},{key:"getEventsFromControl",value:function(n){var r=[],i=n.eventKeys;r=r.concat(e.events.filter(function(s){return i.includes(s.key)}));var a=n.customEvents.map(function(s){var o=s.key;return s.namespace!==void 0&&s.namespace!==null&&s.namespace!==""&&(o=s.namespace+":"+s.key),{key:o,code:s.key,name:s.name}});return r=r.concat(a),r}}]),e}();hm(Em,"events",gm);function Er(e,t){var n;(n=Object.getOwnPropertyDescriptors(e)[t])!=null&&n.enumerable&&Object.defineProperty(e,t,{enumerable:!1})}function xi(e,t,n){n!=="Runtime"&&(e.parent=t,Er(e,"parent"))}function Jo(e,t,n){e.forEach(r=>{xi(r,t,n)})}const Qo=Symbol("targetKey");function zo(e){var t;return(t=e[Qo])!=null?t:e}function Zo(e,t,n){return Jo(e,t,n),new Proxy(e,{get(r,i,...a){return i===Qo?r:Reflect.get(r,i,...a)},set(r,i,a,...s){if(nm(e)&&i==="length"&&a===e.length)return!0;const o=Reflect.set(r,i,a,...s);return tm(a)&&xi(a,t,n),o}})}function mt(e,t,n,r,i){const a=r!=null?r:e;let s=Zo(zo(n!=null?n:[]),a,i);Object.defineProperty(e,t,{get(){return s},set(o){s=Zo(zo(o),a,i)},enumerable:!0})}const Yo=[],Wi=class{constructor(e){this.registeredControlTypes=new Set,this.controlConfigMap=new Map,this._controls=[],this._type=e,this._initControls(e)}static staticGetRules(e,t){const n=Wi.staticControlsRuntimeRules.get(e);let r=[];if(n){const i=new n(t);r=Array.from(i)}return r}registerControlConfig(e,t){return this.controlConfigMap.set(e,t),this}getControlConfig(e){return this.controlConfigMap.get(e)}static register(e,t){const{Designer:n,Runtime:r,Property:i}=e;(!n||!r||!n.__is_control__||!r.__is_control__)&&Vr(`${e} is can't register as a Control`);const a=this.staticControls.findIndex(s=>s.Designer.controlType===n.controlType);return a>-1&&(Mr(`The ${n.controlType} is repeat register, So it overwrites the one that was registered before.`),this.staticControls.splice(a,1)),this.staticRegisteredTypes.add(n.controlType),this.staticControls.push(e),i.mode=t,this}getControls(){return this._controls}register(e){e.__is_control__||Vr(`${e.name} is not a Control`);const t=this._controls.findIndex(n=>n.controlType===e.controlType);return t>-1&&(Mr(`The ${e.controlType} is repeat register, So it overwrites the one that was registered before.`),this._controls.splice(t,1)),this.registeredControlTypes.add(e.controlType),this._controls.push(e),this}isLayoutControl(e){return e.controlType===pe.LAYOUT}isFormControl(e){return e.controlType===pe.FORM}isListControl(e){return e.controlType===pe.LIST}isColumnControl(e){return e.controlType===pe.COLUMN}createControl(e,t){if(Array.isArray(e))return e.map(r=>this.createControl(r,t));if(e.children&&(e.children=e.children.map(r=>this.createControl(r,t))),this.isListControl(e)){const r=e.props;r.headers&&(r.headers=r.headers.map(i=>this.createControl(i,t)))}const n=this.getControlFormType(e.type);if(n){let r=e;if(typeof t=="function"){const a=t(r);a&&(r=a)}let i;return n.mode==="Runtime"?(i=r,i.fieldType=n.controlFieldType,this._setParentPrototypeToSchema(i,this)):i=new n(r),i}else Vr(`The constructor of ${e.type} could not be found, please confirm that the constructor has been registered`)}resetInstanceParent(e,t){delete e.parent,Object.defineProperty(e,"parent",{configurable:!0,get(){return t}}),Er(e,"parent")}_setParentPrototypeToSchema(e,t){t._type==="Runtime"&&(Object.defineProperty(e,"parent",{configurable:!0,get(){const n=e.id,r=t._controlParentIdMap,i=t.instanceMap;if(!r||!i)return;const a=r[n],s=i[n];if(!a&&!s)return;const o=s.findIndex(_=>_==e),l=i[a]||[];let c;return l.length!==s.length?c=l[0]:c=l[o],c}}),Er(e,"parent"))}createControlInstance(e,t){const n=this.getControlFormType(e);if(n)return new n(t)}getControlFormType(e){return this._controls.find(t=>t.controlType===e)}_initControls(e){this.constructor.staticControls.forEach(t=>{this.register(t[e]),Wi.staticControlsRuntimeRules.set(t.Runtime.controlType,t.Property.RuntimeRules),t.Property.mode=e})}};let En=Wi;En.staticControlsRuntimeRules=new Map,En.staticControls=Yo,En.staticRegisteredTypes=new Set(Yo.map(e=>e.Designer.controlType)),En.staticRegisteredConfigs=new Map;class We{constructor(t){var n,r,i;this.dataCode=(n=t==null?void 0:t.dataCode)!=null?n:"",this.fieldCode=(r=t==null?void 0:t.fieldCode)!=null?r:"",this.fieldType=(i=t==null?void 0:t.fieldType)!=null?i:"",this.aliasCode=t==null?void 0:t.aliasCode}}class Bi{constructor(t){var n,r;this.minWidth=(n=t==null?void 0:t.minWidth)!=null?n:150,this.maxWidth=t==null?void 0:t.maxWidth,this.flex=(r=t==null?void 0:t.flex)!=null?r:1}}class Hi{constructor(t){var n,r,i,a;this.rowHeightType=(n=t==null?void 0:t.rowHeightType)!=null?n:"fixed",this.minRows=(r=t==null?void 0:t.minRows)!=null?r:4,this.maxRows=(i=t==null?void 0:t.maxRows)!=null?i:20,this.fiexdRow=(a=t==null?void 0:t.fiexdRow)!=null?a:4}}class ym{constructor(t){this.pc=new Hi(t==null?void 0:t.pc),this.mobile=new Hi(t==null?void 0:t.mobile)}}class yr extends Bi{constructor(t){var n,r;super(t),this.width=(n=t==null?void 0:t.width)!=null?n:240,this.widthType=(r=t==null?void 0:t.widthType)!=null?r:"auto"}}class vm{constructor(t){this.pc=new yr(t==null?void 0:t.pc),this.mobile=t!=null&&t.mobile?new yr(t==null?void 0:t.mobile):new yr({width:130,minWidth:180})}}class bm{constructor(t){var n,r;this.type=(n=t==null?void 0:t.type)!=null?n:"firstThree",this.customOptions=(r=t==null?void 0:t.customOptions)!=null?r:[]}}class vr{constructor(t){var n,r,i;this.dataCode=(n=t==null?void 0:t.dataCode)!=null?n:"",this.formKey=(r=t==null?void 0:t.formKey)!=null?r:"",this.appId=(i=t==null?void 0:t.appId)!=null?i:""}}class Nm extends vr{constructor(t){var n;super(t),this.primaryControlId=(n=t==null?void 0:t.primaryControlId)!=null?n:""}}class el{constructor(t){var n,r;this.fieldCode=(n=t==null?void 0:t.fieldCode)!=null?n:"",this.dataCode=(r=t==null?void 0:t.dataCode)!=null?r:""}}class Im{constructor(t){var n,r,i,a;this.appId=(n=t==null?void 0:t.appId)!=null?n:"",this.formKey=(r=t==null?void 0:t.formKey)!=null?r:"",this.headers=(a=(i=t==null?void 0:t.headers)==null?void 0:i.map(s=>new el(s)))!=null?a:[]}}class tl{constructor(t){var n,r,i;this.fieldName=(n=t==null?void 0:t.fieldName)!=null?n:"",this.fieldCode=(r=t==null?void 0:t.fieldCode)!=null?r:"",this.fieldType=(i=t==null?void 0:t.fieldType)!=null?i:Oe.VARCHAR}}class nl extends vr{constructor(t){var n,r,i,a;super(t),this.title=(n=t==null?void 0:t.title)!=null?n:"",this.svcCode=(r=t==null?void 0:t.svcCode)!=null?r:"",this.isOpenFilter=(i=t==null?void 0:t.isOpenFilter)!=null?i:!1,this.filters=(a=t==null?void 0:t.filters)!=null?a:[]}}class Om{constructor(t){var n,r,i,a;this.type="sublist-page",this.formBind=new vr(t==null?void 0:t.formBind),this.displayFields=(r=(n=t==null?void 0:t.displayFields)==null?void 0:n.map(s=>new tl(s)))!=null?r:[],this.sublists=(a=(i=t==null?void 0:t.sublists)==null?void 0:i.map(s=>new nl(s)))!=null?a:[]}}class rl{constructor(t){this.type=t==null?void 0:t.type,this.value=t==null?void 0:t.value,this.dataCode=t==null?void 0:t.dataCode}}class pi{constructor(t){var n,r,i;this.type=(n=t==null?void 0:t.type)!=null?n:"custom",this.value=(r=t==null?void 0:t.value)!=null?r:[],this.displayBos=(i=t==null?void 0:t.displayBos)!=null?i:[]}}class Xt{constructor(t){var n,r,i,a;this.type="conditions",this.id=(n=t==null?void 0:t.id)!=null?n:et(),this.ruleId=(r=t==null?void 0:t.ruleId)!=null?r:new Date().valueOf(),this.level=(i=t==null?void 0:t.level)!=null?i:0,this.value=(a=t==null?void 0:t.value)!=null?a:"and",this.children=[],Array.isArray(t==null?void 0:t.children)&&(t==null||t.children.map(s=>{var o,l;if(s.children!==void 0){const c=new Xt(s);(o=this.children)==null||o.push(c)}else{const c=new yn(s);(l=this.children)==null||l.push(c)}}))}}class yn{constructor(t){var n,r,i,a,s;this.type="condition",this.id=(n=t==null?void 0:t.id)!=null?n:et(),this.ruleId=(r=t==null?void 0:t.ruleId)!=null?r:new Date().valueOf(),this.symbol=(i=t==null?void 0:t.symbol)!=null?i:"",this.checked=(a=t==null?void 0:t.checked)!=null?a:!1,this.describe=(s=t==null?void 0:t.describe)!=null?s:"",this.leftVariableBo=new rl(t==null?void 0:t.leftVariableBo),this.rightVariableBo=new pi(t==null?void 0:t.rightVariableBo)}}class Sm{constructor(t){var n,r;this.aliasCode=(n=t==null?void 0:t.aliasCode)!=null?n:"",this.datasourceBind=new br(t==null?void 0:t.datasourceBind),this.relationFields=(r=t==null?void 0:t.relationFields)!=null?r:[]}}class il{constructor(t){var n,r,i,a;this.controlId=(n=t==null?void 0:t.controlId)!=null?n:"",this.fieldCode=(r=t==null?void 0:t.fieldCode)!=null?r:"",this.fieldType=(i=t==null?void 0:t.fieldType)!=null?i:"",this.propName=(a=t==null?void 0:t.propName)!=null?a:""}}class ji{constructor(t){var n,r;this.type=(n=t==null?void 0:t.type)!=null?n:"FIELD",this.value=(r=t==null?void 0:t.value)!=null?r:"",this.fieldType=t==null?void 0:t.fieldType}}class wm{constructor(t){var n,r;this.title=(n=t==null?void 0:t.title)!=null?n:"",this.displayBoList=(r=t==null?void 0:t.displayBoList)!=null?r:[]}}class qi{constructor(t){var n,r;this.columnName=(n=t.columnName)!=null?n:"",this.desc=(r=t.desc)!=null?r:!1}}class al{constructor(t){var n,r,i;this.code=(n=t.code)!=null?n:"",this.value=(r=t.value)!=null?r:"",this.field_type=(i=t.field_type)!=null?i:Oe.ANY}}class Lm{constructor(t){var n,r,i,a,s,o,l;this.id=(n=t.id)!=null?n:"",this.limit=(r=t.limit)!=null?r:20,this.formKey=(i=t.formKey)!=null?i:"",this.orders=(s=(a=t.orders)==null?void 0:a.map(c=>new qi(c)))!=null?s:[],this.dataSet=(l=(o=t.dataSet)==null?void 0:o.map(c=>new al(c)))!=null?l:[]}}function Ki(e){var t,n,r,i,a,s;this.filters=(n=(t=e==null?void 0:e.filters)==null?void 0:t.map(o=>o.children!==void 0?new Xt(o):new yn(o)))!=null?n:[],this.viewFilters=(i=(r=e==null?void 0:e.viewFilters)==null?void 0:r.map(o=>o.children!==void 0?new Xt(o):new yn(o)))!=null?i:[],this.orders=(s=(a=e==null?void 0:e.orders)==null?void 0:a.map(o=>new qi(o)))!=null?s:[]}class br{constructor(t){var n,r,i,a,s,o,l;this.dataCode=(n=t==null?void 0:t.dataCode)!=null?n:"",this.appId=(r=t==null?void 0:t.appId)!=null?r:"",this.valueFieldCode=(i=t==null?void 0:t.valueFieldCode)!=null?i:"",this.displayBoList=[],this.isOpenViewFilters=(a=t==null?void 0:t.isOpenViewFilters)!=null?a:0,Array.isArray(t==null?void 0:t.displayBoList)&&(t==null||t.displayBoList.map(c=>{var _;(_=this.displayBoList)==null||_.push(new ji(c))})),this.keywordMapping=(s=t==null?void 0:t.keywordMapping)!=null?s:"",this.showOrder=(o=t==null?void 0:t.showOrder)!=null?o:!0,this.svcCode=(l=t==null?void 0:t.svcCode)!=null?l:"",Ki.call(this,t)}}class Am{constructor(t){var n,r;this.dataCode=(n=t==null?void 0:t.dataCode)!=null?n:"",this.displayBoList=(r=t==null?void 0:t.displayBoList)!=null?r:[]}}class Dm{constructor(t){var n,r,i,a,s,o,l,c,_,f;this.code=(n=t==null?void 0:t.code)!=null?n:"view",this.color=(r=t==null?void 0:t.color)!=null?r:"primary",this.command=(i=t==null?void 0:t.command)!=null?i:"view",this.confirmMessage=(a=t==null?void 0:t.confirmMessage)!=null?a:void 0,this.defaultState=(s=t==null?void 0:t.defaultState)!=null?s:"default",this.formKey=(o=t==null?void 0:t.formKey)!=null?o:void 0,this.formType=t==null?void 0:t.formType,this.icon=(l=t==null?void 0:t.icon)!=null?l:"iconliulan1",this.needConfirm=(c=t==null?void 0:t.needConfirm)!=null?c:!1,this.openType=(_=t==null?void 0:t.openType)!=null?_:"modal",this.priorityProcess=(f=t==null?void 0:t.priorityProcess)!=null?f:!0}}class Gi{constructor(t){var n,r,i,a;this.name=(n=t==null?void 0:t.name)!=null?n:"",this.key=(r=t==null?void 0:t.key)!=null?r:"",this.value=(a=(i=t==null?void 0:t.value)==null?void 0:i.map(s=>new ji(s)))!=null?a:[]}}class sl extends br{constructor(t){var n,r;super(t),this.attributes=(r=(n=t==null?void 0:t.attributes)==null?void 0:n.map(i=>new Gi(i)))!=null?r:[]}}class Cm extends br{constructor(t){var n,r,i;super(t),this.attributes=(r=(n=t==null?void 0:t.attributes)==null?void 0:n.map(a=>new Gi(a)))!=null?r:[],this.formCode=(i=t==null?void 0:t.formCode)!=null?i:""}}class Rm extends sl{constructor(t){var n;super(t),this.rootNode=new pi(t==null?void 0:t.rootNode),this.filterCode=(n=t==null?void 0:t.filterCode)!=null?n:""}}class ol{constructor(t){var n,r,i,a;this.dataCode=(n=t==null?void 0:t.dataCode)!=null?n:"",this.appId=(r=t==null?void 0:t.appId)!=null?r:"",this.fillList=(a=(i=t==null?void 0:t.fillList)==null?void 0:i.map(s=>new il(s)))!=null?a:[]}}class Tm extends ol{constructor(t){super(t),Ki.call(this,t)}}class Pm extends ol{constructor(t){var n,r;super(t),this.mode=(n=t==null?void 0:t.mode)!=null?n:"current",this.multiple=(r=t==null?void 0:t.multiple)!=null?r:!1}}class Mm{constructor(t){var n,r,i;this.zh=(n=t==null?void 0:t.zh)!=null?n:"",this.en=(r=t==null?void 0:t.en)!=null?r:"",this.ja=(i=t==null?void 0:t.ja)!=null?i:""}}class Fm{constructor(t){var n,r,i;this.stencilName=(n=t==null?void 0:t.stencilName)!=null?n:"",this.expression=(r=t==null?void 0:t.expression)!=null?r:"",this.errMessage=(i=t==null?void 0:t.errMessage)!=null?i:""}}class Xi{constructor(t){var n,r,i;this.id=(n=t==null?void 0:t.id)!=null?n:et(8),this.label=(r=t==null?void 0:t.label)!=null?r:"",this.value=(i=t==null?void 0:t.value)!=null?i:this.label}}class ll extends Xi{constructor(t){var n,r;super(t),this.image=(n=t==null?void 0:t.image)!=null?n:"",this.type=(r=t==null?void 0:t.type)!=null?r:"src"}}function Vm(e){var t;return(t=e==null?void 0:e.map(n=>new Xi(n)))!=null?t:[]}function km(e){var t;return(t=e==null?void 0:e.map(n=>new ll(n)))!=null?t:[]}class Nr{}class Um extends Nr{constructor(t){super(),this.amount=new We(t==null?void 0:t.amount),this.currency=new We(t==null?void 0:t.currency)}}class $m{constructor(t){var n,r;this.amount=(n=t==null?void 0:t.amount)!=null?n:"",this.currency=(r=t==null?void 0:t.currency)!=null?r:Ji.CNY}}class xm extends Nr{constructor(t){super(),this.min=new We(t==null?void 0:t.min),this.max=new We(t==null?void 0:t.max)}}class Wm{constructor(t){var n,r;this.min=(n=t==null?void 0:t.min)!=null?n:"",this.max=(r=t==null?void 0:t.max)!=null?r:""}}class Bm{constructor(t){var n,r,i,a,s,o;this.city=(n=t==null?void 0:t.city)!=null?n:"",this.cityDisplay=(r=t==null?void 0:t.cityDisplay)!=null?r:"",this.district=(i=t==null?void 0:t.district)!=null?i:"",this.districtDisplay=(a=t==null?void 0:t.districtDisplay)!=null?a:"",this.province=(s=t==null?void 0:t.province)!=null?s:"",this.provinceDisplay=(o=t==null?void 0:t.provinceDisplay)!=null?o:""}}class Hm extends Nr{constructor(t){super(),this.result=new We(t==null?void 0:t.result),this.unit=new We(t==null?void 0:t.unit)}}class pm{constructor(t){var n,r;this.result=(n=t==null?void 0:t.result)!=null?n:0,this.unit=(r=t==null?void 0:t.unit)!=null?r:""}}var Ji=(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",e))(Ji||{}),cl=(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",e))(cl||{}),Qi=(e=>(e[e.UNKNOWN=0]="UNKNOWN",e[e.READONLY=1]="READONLY",e[e.EDITABLE=2]="EDITABLE",e[e.PRINT=5]="PRINT",e))(Qi||{});class jm{constructor(t){var n,r,i,a,s,o;this.isShow=(n=t==null?void 0:t.isShow)!=null?n:!0,this.content=(r=t==null?void 0:t.content)!=null?r:"",this.formKey=(i=t==null?void 0:t.formKey)!=null?i:"",this.openType=(a=t==null?void 0:t.openType)!=null?a:"modal",this.type=(s=t==null?void 0:t.type)!=null?s:"",this.priorityProcess=(o=t==null?void 0:t.priorityProcess)!=null?o:!1}}class qm{constructor(t){var n,r,i,a;this.id=(n=t==null?void 0:t.id)!=null?n:et(8),this.title=(r=t==null?void 0:t.title)!=null?r:"",this.headers=(a=(i=t==null?void 0:t.headers)==null?void 0:i.map(s=>new el(s)))!=null?a:[],Ki.call(this,t)}}class Km{constructor(t){var n,r;this.key=(n=t.key)!=null?n:et(8),this.caption=(r=t.caption)!=null?r:""}}class ul{constructor(t){var n,r,i,a;this.width=(n=t==null?void 0:t.width)!=null?n:"",this.height=(r=t==null?void 0:t.height)!=null?r:"",this.widthConfig=(i=t==null?void 0:t.widthConfig)!=null?i:"fill",this.heightConfig=(a=t==null?void 0:t.heightConfig)!=null?a:"fill"}}class Gm{constructor(t){var n,r;this.optCode=(n=t==null?void 0:t.optCode)!=null?n:"",this.optType=(r=t==null?void 0:t.optType)!=null?r:""}}class fl{constructor(t){var n,r,i,a,s,o;this.id=(n=t==null?void 0:t.id)!=null?n:et(),this.name=(r=t==null?void 0:t.name)!=null?r:"",this.filters=(a=(i=t==null?void 0:t.filters)==null?void 0:i.map(l=>l.children!==void 0?new Xt(l):new yn(l)))!=null?a:[],this.settings=(t==null?void 0:t.settings)&&Array.isArray(t==null?void 0:t.settings)?(o=(s=t==null?void 0:t.settings)==null?void 0:s.map(l=>new dl(l)))!=null?o:[]:[],this.script=t==null?void 0:t.script}}class dl{constructor(t){var n,r,i,a;this.type=(n=t.type)!=null?n:"background",this.fieldCodes=(r=t.fieldCodes)!=null?r:[],this.color=(i=t.color)!=null?i:"theme",this.scope=(a=t.scope)!=null?a:"row"}}class Xm{constructor(t){var n,r,i,a;this.type=(n=t==null?void 0:t.type)!=null?n:"none",this.interval=(r=t==null?void 0:t.interval)!=null?r:{color:""},this.rules=(t==null?void 0:t.rules)&&Array.isArray(t==null?void 0:t.rules)?(a=(i=t==null?void 0:t.rules)==null?void 0:i.map(s=>new fl(s)))!=null?a:[]:[]}}class Ir{constructor(t){this.isHide={type:"boolean"}}}class zi extends Array{constructor(t){super()}}class Qe{constructor(t,n=""){var r,i;this.isHide=(r=t==null?void 0:t.isHide)!=null?r:!1,this.style=new ul(t==null?void 0:t.style),this.caption=(i=t==null?void 0:t.caption)!=null?i:n}}Qe.Rules=Ir,Qe.RuntimeRules=zi;function Be(){return Be=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},Be.apply(this,arguments)}function Jm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Zi(e){return Zi=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Zi(e)}function Or(e,t){return Or=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Or(e,t)}function Qm(){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 Sr(e,t,n){return Qm()?Sr=Reflect.construct:Sr=function(i,a,s){var o=[null];o.push.apply(o,a);var l=Function.bind.apply(i,o),c=new l;return s&&Or(c,s.prototype),c},Sr.apply(null,arguments)}function zm(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Yi(e){var t=typeof Map=="function"?new Map:void 0;return Yi=function(r){if(r===null||!zm(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,i)}function i(){return Sr(r,arguments,Zi(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Or(i,r)},Yi(e)}var Zm=/%[sdj%]/g,ml=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(ml=function(t,n){typeof console!="undefined"&&console.warn&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function ea(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 we(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,i=t[0],a=t.length;if(typeof i=="function")return i.apply(null,t.slice(1));if(typeof i=="string"){var s=String(i).replace(Zm,function(o){if(o==="%%")return"%";if(r>=a)return o;switch(o){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 o}});return s}return i}function Ym(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function fe(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Ym(t)&&typeof e=="string"&&!e)}function e_(e,t,n){var r=[],i=0,a=e.length;function s(o){r.push.apply(r,o),i++,i===a&&n(r)}e.forEach(function(o){t(o,s)})}function _l(e,t,n){var r=0,i=e.length;function a(s){if(s&&s.length){n(s);return}var o=r;r=r+1,o<i?t(e[o],a):n([])}a([])}function t_(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n])}),t}var hl=function(e){Jm(t,e);function t(n,r){var i;return i=e.call(this,"Async Validation Error")||this,i.errors=n,i.fields=r,i}return t}(Yi(Error));function n_(e,t,n,r){if(t.first){var i=new Promise(function(f,m){var S=function(D){return r(D),D.length?m(new hl(D,ea(D))):f()},L=t_(e);_l(L,n,S)});return i.catch(function(f){return f}),i}var a=t.firstFields||[];a===!0&&(a=Object.keys(e));var s=Object.keys(e),o=s.length,l=0,c=[],_=new Promise(function(f,m){var S=function(v){if(c.push.apply(c,v),l++,l===o)return r(c),c.length?m(new hl(c,ea(c))):f()};s.length||(r(c),f()),s.forEach(function(L){var v=e[L];a.indexOf(L)!==-1?_l(v,n,S):e_(v,n,S)})});return _.catch(function(f){return f}),_}function gl(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 El(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]=Be(Be({},e[n]),r):e[n]=r}}return e}function yl(e,t,n,r,i,a){e.required&&(!n.hasOwnProperty(e.field)||fe(t,a||e.type))&&r.push(we(i.messages.required,e.fullField))}function r_(e,t,n,r,i){(/^\s+$/.test(t)||t==="")&&r.push(we(i.messages.whitespace,e.fullField))}var ta={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},vn={integer:function(t){return vn.number(t)&&parseInt(t,10)===t},float:function(t){return vn.number(t)&&!vn.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"&&!vn.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&!!t.match(ta.email)&&t.length<255},url:function(t){return typeof t=="string"&&!!t.match(ta.url)},hex:function(t){return typeof t=="string"&&!!t.match(ta.hex)}};function i_(e,t,n,r,i){if(e.required&&t===void 0){yl(e,t,n,r,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=e.type;a.indexOf(s)>-1?vn[s](t)||r.push(we(i.messages.types[s],e.fullField,e.type)):s&&typeof t!==e.type&&r.push(we(i.messages.types[s],e.fullField,e.type))}function a_(e,t,n,r,i){var a=typeof e.len=="number",s=typeof e.min=="number",o=typeof e.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=t,_=null,f=typeof t=="number",m=typeof t=="string",S=Array.isArray(t);if(f?_="number":m?_="string":S&&(_="array"),!_)return!1;S&&(c=t.length),m&&(c=t.replace(l,"_").length),a?c!==e.len&&r.push(we(i.messages[_].len,e.fullField,e.len)):s&&!o&&c<e.min?r.push(we(i.messages[_].min,e.fullField,e.min)):o&&!s&&c>e.max?r.push(we(i.messages[_].max,e.fullField,e.max)):s&&o&&(c<e.min||c>e.max)&&r.push(we(i.messages[_].range,e.fullField,e.min,e.max))}var Jt="enum";function s_(e,t,n,r,i){e[Jt]=Array.isArray(e[Jt])?e[Jt]:[],e[Jt].indexOf(t)===-1&&r.push(we(i.messages[Jt],e.fullField,e[Jt].join(", ")))}function o_(e,t,n,r,i){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(we(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var a=new RegExp(e.pattern);a.test(t)||r.push(we(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}}var B={required:yl,whitespace:r_,type:i_,range:a_,enum:s_,pattern:o_};function l_(e,t,n,r,i){var a=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(fe(t,"string")&&!e.required)return n();B.required(e,t,r,a,i,"string"),fe(t,"string")||(B.type(e,t,r,a,i),B.range(e,t,r,a,i),B.pattern(e,t,r,a,i),e.whitespace===!0&&B.whitespace(e,t,r,a,i))}n(a)}function c_(e,t,n,r,i){var a=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(fe(t)&&!e.required)return n();B.required(e,t,r,a,i),t!==void 0&&B.type(e,t,r,a,i)}n(a)}function u_(e,t,n,r,i){var a=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(t===""&&(t=void 0),fe(t)&&!e.required)return n();B.required(e,t,r,a,i),t!==void 0&&(B.type(e,t,r,a,i),B.range(e,t,r,a,i))}n(a)}function f_(e,t,n,r,i){var a=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(fe(t)&&!e.required)return n();B.required(e,t,r,a,i),t!==void 0&&B.type(e,t,r,a,i)}n(a)}function d_(e,t,n,r,i){var a=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(fe(t)&&!e.required)return n();B.required(e,t,r,a,i),fe(t)||B.type(e,t,r,a,i)}n(a)}function m_(e,t,n,r,i){var a=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(fe(t)&&!e.required)return n();B.required(e,t,r,a,i),t!==void 0&&(B.type(e,t,r,a,i),B.range(e,t,r,a,i))}n(a)}function __(e,t,n,r,i){var a=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(fe(t)&&!e.required)return n();B.required(e,t,r,a,i),t!==void 0&&(B.type(e,t,r,a,i),B.range(e,t,r,a,i))}n(a)}function h_(e,t,n,r,i){var a=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(t==null&&!e.required)return n();B.required(e,t,r,a,i,"array"),t!=null&&(B.type(e,t,r,a,i),B.range(e,t,r,a,i))}n(a)}function g_(e,t,n,r,i){var a=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(fe(t)&&!e.required)return n();B.required(e,t,r,a,i),t!==void 0&&B.type(e,t,r,a,i)}n(a)}var E_="enum";function y_(e,t,n,r,i){var a=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(fe(t)&&!e.required)return n();B.required(e,t,r,a,i),t!==void 0&&B[E_](e,t,r,a,i)}n(a)}function v_(e,t,n,r,i){var a=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(fe(t,"string")&&!e.required)return n();B.required(e,t,r,a,i),fe(t,"string")||B.pattern(e,t,r,a,i)}n(a)}function b_(e,t,n,r,i){var a=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(fe(t,"date")&&!e.required)return n();if(B.required(e,t,r,a,i),!fe(t,"date")){var o;t instanceof Date?o=t:o=new Date(t),B.type(e,o,r,a,i),o&&B.range(e,o.getTime(),r,a,i)}}n(a)}function N_(e,t,n,r,i){var a=[],s=Array.isArray(t)?"array":typeof t;B.required(e,t,r,a,i,s),n(a)}function na(e,t,n,r,i){var a=e.type,s=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(fe(t,a)&&!e.required)return n();B.required(e,t,r,s,i,a),fe(t,a)||B.type(e,t,r,s,i)}n(s)}function I_(e,t,n,r,i){var a=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(fe(t)&&!e.required)return n();B.required(e,t,r,a,i)}n(a)}var bn={string:l_,method:c_,number:u_,boolean:f_,regexp:d_,integer:m_,float:__,array:h_,object:g_,enum:y_,pattern:v_,date:b_,url:na,hex:na,email:na,required:N_,any:I_};function ra(){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 ia=ra();function _t(e){this.rules=null,this._messages=ia,this.define(e)}_t.prototype={messages:function(t){return t&&(this._messages=El(ra(),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 i=this;n===void 0&&(n={}),r===void 0&&(r=function(){});var a=t,s=n,o=r;if(typeof s=="function"&&(o=s,s={}),!this.rules||Object.keys(this.rules).length===0)return o&&o(),Promise.resolve();function l(v){var D,g=[],O={};function h(E){if(Array.isArray(E)){var w;g=(w=g).concat.apply(w,E)}else g.push(E)}for(D=0;D<v.length;D++)h(v[D]);g.length?O=ea(g):(g=null,O=null),o(g,O)}if(s.messages){var c=this.messages();c===ia&&(c=ra()),El(c,s.messages),s.messages=c}else s.messages=this.messages();var _,f,m={},S=s.keys||Object.keys(this.rules);S.forEach(function(v){_=i.rules[v],f=a[v],_.forEach(function(D){var g=D;typeof g.transform=="function"&&(a===t&&(a=Be({},a)),f=a[v]=g.transform(f)),typeof g=="function"?g={validator:g}:g=Be({},g),g.validator=i.getValidationMethod(g),g.field=v,g.fullField=g.fullField||v,g.type=i.getType(g),g.validator&&(m[v]=m[v]||[],m[v].push({rule:g,value:f,source:a,field:v}))})});var L={};return n_(m,s,function(v,D){var g=v.rule,O=(g.type==="object"||g.type==="array")&&(typeof g.fields=="object"||typeof g.defaultField=="object");O=O&&(g.required||!g.required&&v.value),g.field=v.field;function h(N,y){return Be(Be({},y),{},{fullField:g.fullField+"."+N})}function E(N){N===void 0&&(N=[]);var y=N;if(Array.isArray(y)||(y=[y]),!s.suppressWarning&&y.length&&_t.warning("async-validator:",y),y.length&&g.message!==void 0&&(y=[].concat(g.message)),y=y.map(gl(g)),s.first&&y.length)return L[g.field]=1,D(y);if(!O)D(y);else{if(g.required&&!v.value)return g.message!==void 0?y=[].concat(g.message).map(gl(g)):s.error&&(y=[s.error(g,we(s.messages.required,g.field))]),D(y);var C={};if(g.defaultField)for(var T in v.value)v.value.hasOwnProperty(T)&&(C[T]=g.defaultField);C=Be(Be({},C),v.rule.fields);for(var j in C)if(C.hasOwnProperty(j)){var ve=Array.isArray(C[j])?C[j]:[C[j]];C[j]=ve.map(h.bind(null,j))}var x=new _t(C);x.messages(s.messages),v.rule.options&&(v.rule.options.messages=s.messages,v.rule.options.error=s.error),x.validate(v.value,v.rule.options||s,function(se){var De=[];y&&y.length&&De.push.apply(De,y),se&&se.length&&De.push.apply(De,se),D(De.length?De:null)})}}var w;g.asyncValidator?w=g.asyncValidator(g,v.value,E,v.source,s):g.validator&&(w=g.validator(g,v.value,E,v.source,s),w===!0?E():w===!1?E(g.message||g.field+" fails"):w instanceof Array?E(w):w instanceof Error&&E(w.message)),w&&w.then&&w.then(function(){return E()},function(N){return E(N)})},function(v){l(v)})},getType:function(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!bn.hasOwnProperty(t.type))throw new Error(we("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"?bn.required:bn[this.getType(t)]||!1}},_t.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");bn[t]=n},_t.warning=ml,_t.messages=ia,_t.validators=bn;const O_={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 vl(e,t={}){const n=new _t(e);return n.messages(Object.assign(O_,t)),n}const bl=new dm;class ye{constructor(t){var m,S,L,v;this.setting=[],this.eventKeys=[],this.customEvents=[],this.parent=null,this.updateSetting=Il,this.removeSetting=Nl,this._callControlHooks("preInstance",t);const{controlName:n,controlIcon:r,controlType:i,controlFieldType:a,controlEventKeys:s,controlCustomEvents:o,name:l,setting:c,slots:_,slotPosition:f}=new.target;n&&r&&i||Na(`The ${l} controlName,controlIcon,controlType is not define`),this.id=(m=t==null?void 0:t.id)!=null?m:et(10),this.name=n,this.icon=r,this.type=(S=t==null?void 0:t.type)!=null?S:i,this.props=new Qe(t==null?void 0:t.props,new.target.controlName),this.controlType=(L=t==null?void 0:t.controlType)!=null?L:"base",this.setting=Je(c),this.fieldType=(v=t==null?void 0:t.fieldType)!=null?v:a,this.eventKeys=Je(s),this.customEvents=Je(o),this.slots=Je(_),this.slotPosition=Je(f),Promise.resolve().then(()=>{this._callControlHooks("postInstance",t)})}get rules(){const t=this.props.constructor.Rules;return t?new t(this.props):{}}_callControlHooks(...t){const[n,...r]=t;return bl.emit(n,this,...r)}preUpdate(t,n){this._callControlHooks("preUpdateProps",t,n)}postUpdate(t,n){this._callControlHooks("postUpdateProps",t,n)}updateProps(t,n){this.preUpdate(t,n),Qd(this.props,t,n),this.postUpdate(t,n)}preValidate(){return Ye(this,null,function*(){const t=Ze({},this.rules),n=yield this._callControlHooks("preValidate",t),r=n[n.length-1];return r===!1?void 0:r})}validate(t,n){return Ye(this,null,function*(){const r=yield this.preValidate(),i=r!==void 0?r:Ze({},this.rules);Array.isArray(n)&&n.forEach(s=>{i.hasOwnProperty(s)&&delete i[s]});const a=vl(i,t);try{return yield a.validate(this.props),!0}catch(s){throw s.control||(s.control=this),s}})}toDataBindModel(t=null){const n=this.fieldType,r=this.id,i=this.type,{dataBind:a,datasourceBind:s,optionConfig:o,caption:l,required:c,maxLength:_,options:f,encrypted:m,encryptedMode:S}=this.props;if(!n&&!a&&!s)return;const L={parentId:t,fieldType:n,controlId:r,caption:l,type:i,props:{}};switch(a&&(L.dataBind=a),o){case"datasource":case void 0:s&&(L.datasourceBind=s);break;case"custom":L.props.options=f;break}return c!==void 0&&(L.required=c),_!==void 0&&(L.maxLength=_),m!==void 0&&(L.encrypted=m),S!==void 0&&(L.encryptedMode=S),L}preToSchema(){this._callControlHooks("preToSchema",this)}toSchema(){return this.preToSchema(),{id:this.id,type:this.type,props:Je(this.props),fieldType:this.fieldType,controlType:this.controlType}}static updateBasicControl(t,n){t==="setting"&&(n.add&&this.setting.push(...n.add),n.remove&&this.removeSettingItem(n.remove),n.update)}}ye.mode="Designer",ye.controlName="\u63A7\u4EF6",ye.controlIcon="icon",ye.controlType="control",ye.controlEventKeys=[],ye.controlCustomEvents=[],ye.setting=[],ye.__is_control__=!0,ye.removeSettingItem=Nl,ye.updateSettingItem=Il;function Nl(e){(Array.isArray(e)?e:[e]).forEach(n=>{var a,s,o;const r=typeof n!="string",i=(a=this.setting)==null?void 0:a.findIndex(l=>l.key===(r?n.key:n));i!==-1&&(r?this.setting[i].showItems=(s=this.setting[i].showItems)==null?void 0:s.filter(l=>!n.hideItems.includes(l)):this.setting.splice(i,1),r&&!((o=this.setting[i].showItems)!=null&&o.length)&&this.setting.splice(i,1))})}function Il(e,t){(typeof e=="string"?[e]:e).forEach(r=>{var a;const i=this.setting.find(s=>s.key===r);i&&(typeof t=="boolean"?i.visible=t:typeof t=="object"&&(((a=t.type)!=null?a:"replace")==="replace"?i.showItems=t.showItems:i.showItems.push(...t.showItems)))})}class ze{constructor(t){var s,o,l,c,_;this.customEvents=[],this.parent=null;const{controlType:n,controlFieldType:r,name:i,controlCustomEvents:a}=new.target;n||Na(`The ${i} controlType is not define`),this.id=(s=t==null?void 0:t.id)!=null?s:et(10),this.type=(o=t==null?void 0:t.type)!=null?o:n,this.props=new Qe(t==null?void 0:t.props),this.customEvents=a,this.controlType=(l=t==null?void 0:t.controlType)!=null?l:"base",this.fieldType=(c=t==null?void 0:t.fieldType)!=null?c:r,this.pageStatus=(_=t==null?void 0:t.pageStatus)!=null?_:Qi.UNKNOWN}get rules(){const t=this.props.constructor.RuntimeRules;if(t){const n=new t(this.props);return Array.from(n)}return[]}}ze.mode="Runtime",ze.controlType="control",ze.__is_control__=!0,ze.controlCustomEvents=[];function aa(e){e.hasOwnProperty("optionConfig")||(this.optionConfig={type:"any"}),e.hasOwnProperty("options")||(this.options={type:"any"}),e.hasOwnProperty("datasourceBind")||(this.datasourceBind={type:"any"}),e.hasOwnProperty("options")&&(!e.hasOwnProperty("optionConfig")||e.hasOwnProperty("optionConfig")&&e.optionConfig==="custom")?this.options=[{type:"array",message:k.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{label:{type:"string",required:!0,message:k.getMessage("pleaseEnterLabel")},value:{type:"string",required:!0,message:k.getMessage("pleaseEnterValue")}}}},{type:"array",validator(t,n,r){n.length===0&&r(k.getMessage("optionIsRequired")),r()}},{type:"array",validator(t,n,r){const i=n.map(s=>s.value),a=rm(i);i.length!==a.length?r(k.getMessage("optionIdIsRepeat")):r()},message:k.getMessage("optionIdIsRepeat")}]:e.hasOwnProperty("datasourceBind")&&(!e.hasOwnProperty("optionConfig")||e.hasOwnProperty("optionConfig")&&e.optionConfig==="datasource")&&(this.datasourceBind=[{type:"object",message:k.getMessage("isNotObject")},{type:"object",fields:{dataCode:{type:"string",required:!0,message:k.getMessage("pleaseEnterDataCode")},valueFieldCode:{type:"string",required:!0,message:k.getMessage("pleaseEnterValueFieldCode")},svcCode:{type:"string",required:!0,message:k.getMessage("pleaseEnterSvcCode")},displayBoList:[{type:"array",message:k.getMessage("isNotArray")},{type:"array",validator(t,n,r){n.length===0&&r(k.getMessage("pleaseBindAtLeastOneDisplayValue")),r()},message:k.getMessage("pleaseBindAtLeastOneDisplayValue")}],orders:[{type:"array",message:k.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{columnName:{type:"string",required:!0,message:k.getMessage("pleaseEnterFieldCode")},desc:{type:"boolean",message:k.getMessage("isNotBoolean")}}}}]}}])}function S_(e,t,n=!1){this.datasourceBind=[{type:"object",message:k.getMessage("isNotObject")},{type:"object",fields:{dataCode:{type:"string",required:!0,message:k.getMessage(n?"pleaseEnterDataCodeInDataSetting":"pleaseEnterDataCode")},valueFieldCode:{type:"string",required:!0,message:k.getMessage(n?"pleaseEnterValueFieldCodeInDataSetting":"pleaseEnterValueFieldCode")},svcCode:{type:"string",required:!0,message:k.getMessage(n?"pleaseEnterSvcCodeInDataSetting":"pleaseEnterSvcCode")},attributes:[{type:"array",message:k.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{name:{type:"string",required:!0,message:k.getMessage("isNotString")},key:{type:"string",required:!0,message:k.getMessage("isNotString")},value:[{type:"array",message:k.getMessage("isNotArray")},{type:"array",validator(r,i,a){i.length===0&&a(k.getMessage(n?"pleaseBindAtLeastOneDisplayValueInDataSetting":"pleaseBindAtLeastOneDisplayValue")),a()},message:k.getMessage(n?"pleaseBindAtLeastOneDisplayValueInDataSetting":"pleaseBindAtLeastOneDisplayValue")}]}}}],orders:[{type:"array",message:k.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{columnName:{type:"string",required:!0,message:k.getMessage("pleaseEnterFieldCode")},desc:{type:"boolean",message:k.getMessage("isNotBoolean")}}}}]}}]}function Ol(e){return(e==null?void 0:e.dataCode)!==void 0&&(e==null?void 0:e.fieldCode)!==void 0}class sa extends Ir{constructor(t){super(t),this.dataBind={},this.caption={type:"string",required:!0,message:k.getMessage("pleaseEnterCaption")},this.isHideCaption={type:"boolean"},this.labelPosition={type:"enum",enum:["top","left"]},this.defaultState={type:"enum",enum:["default","readonly"]},this.required={type:"boolean"},this.captionTip={type:"string",required:!1,message:k.getMessage("pleaseEnterCaptionTip")};const n={fieldCode:{type:"string",required:!0,message:k.getMessage("pleaseEnterFieldCode")},dataCode:{type:"string",required:!0,message:k.getMessage("pleaseEnterFieldCode")}};if(Ol(t.dataBind))this.dataBind={type:"object",required:!0,fields:Je(n),message:k.getMessage("pleaseEnterFieldCode")};else{let r={type:"object",required:!0,fields:{},message:k.getMessage("pleaseEnterFieldCode")};Object.keys(t.dataBind).forEach(i=>{r.fields[i]={type:"object",required:!0,fields:Je(n),message:k.getMessage("pleaseEnterFieldCode")}}),this.dataBind=r}t.isShowCaptionTip&&(this.captionTip.required=!0)}}class Sl extends zi{constructor(t){super(t);const n=t.isHide?!1:t.required;n&&this.push({type:"string",required:n,message:t.requiredMessage!==""?t.requiredMessage:k.getMessage("runtimeRequired",{caption:t.caption})})}}class Nn extends Qe{constructor(t){var n,r,i,a,s,o,l,c,_,f;super(t),this.caption=(n=t==null?void 0:t.caption)!=null?n:"",this.isHideCaption=(r=t==null?void 0:t.isHideCaption)!=null?r:!1,this.isShowCaptionTip=(i=t==null?void 0:t.isShowCaptionTip)!=null?i:!1,this.captionTip=(a=t==null?void 0:t.captionTip)!=null?a:"",this.defaultState=(s=t==null?void 0:t.defaultState)!=null?s:"default",this.labelPosition=(o=t==null?void 0:t.labelPosition)!=null?o:"top",this.placeholder=(l=t==null?void 0:t.placeholder)!=null?l:"",this.required=(c=t==null?void 0:t.required)!=null?c:!1,this.requiredMessage=(_=t==null?void 0:t.requiredMessage)!=null?_:"",this.dataBind=new We(t==null?void 0:t.dataBind),this.defaultValue=(f=t==null?void 0:t.defaultValue)!=null?f:""}}Nn.Rules=sa,Nn.RuntimeRules=Sl;class w_ extends sa{constructor(t){super(t),this.optionConfig={type:"enum",enum:["custom","datasource"],message:k.getMessage("PleaseSelectTheCorrectOptionSettings")},this.options=[{type:"array",message:k.getMessage("isNotArray")}],this.datasourceBind=[{type:"object",message:k.getMessage("isNotObject")}],aa.call(this,t)}}class wl extends ye{constructor(t){super(t),this.controlType="form",this.props=new Nn(t==null?void 0:t.props)}}wl.controlEventKeys=["on_change","on_focus","on_blur"];class L_ extends ze{constructor(t){super(t),this.controlType="form",this.props=new Nn(t==null?void 0:t.props)}}class In extends Qe{constructor(t){super(t)}}const A_=1e4;class Dt extends ye{constructor(t){super(t),this.controlType="layout";const{excludes:n,childrenMaxLength:r}=new.target;this.props=new In(t==null?void 0:t.props),mt(this,"children",t==null?void 0:t.children,void 0,"Designer"),this.excludes=Je(n),this.childrenMaxLength=r}judgeExcludesChildren(t){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(t)}judgeJoinChildren(t){const n=this.judgeExcludesChildren(t);return n&&this.childrenMaxLength>this.children.length}validate(t,n){return Ye(this,null,function*(){return yield ma(Dt.prototype,this,"validate").call(this,t,n),yield Promise.all(this.children.map(r=>r.validate(t,n))),!0})}toDataBindModel(t=null){const n=super.toDataBindModel(),r=n?[n]:[];return this.children.reduce((i,a)=>{const s=a.toDataBindModel(t);if(Array.isArray(s)){const o=s.filter(l=>!!l);return[...i,...o]}return s&&i.push(s),i},r)}toSchema(){const t=super.toSchema(),n=this.children.map(r=>r.toSchema());return Tt(Ze({},t),{children:n})}}Dt.excludes=!1,Dt.childrenMaxLength=A_;class oa extends ze{constructor(t){super(t),this.controlType="layout",this.props=new In(t==null?void 0:t.props),mt(this,"children",t==null?void 0:t.children,void 0,"Runtime")}}class la extends Qe{constructor(t,n,r){var i,a,s,o;super(n),mt(this,"headers",n==null?void 0:n.headers,t,r),mt(this,"footers",n==null?void 0:n.footers,t),this.pageIndex=(i=n==null?void 0:n.pageIndex)!=null?i:1,this.pageSize=(a=n==null?void 0:n.pageSize)!=null?a:20,this.pageSizeOptions=(s=n==null?void 0:n.pageSizeOptions)!=null?s:[20],this.totalCount=(o=n==null?void 0:n.totalCount)!=null?o:0}}class wr extends ye{constructor(t){super(t),this.controlType="list",this.props=new la(this,t==null?void 0:t.props,"Designer")}validate(t,n){return Ye(this,null,function*(){return yield ma(wr.prototype,this,"validate").call(this,t),yield Promise.all(this.props.headers.map(r=>r.validate(t,n))),!0})}toDataBindModel(){const t=super.toDataBindModel(),n=t?[t]:[],r=this.id;return this.props.headers.reduce((i,a)=>{const s=a.toDataBindModel(r);if(Array.isArray(s)){const o=s.filter(l=>!!l);return[...i,...o]}return s&&i.push(s),i},n)}toSchema(){const t=super.toSchema(),n=this.props.headers.map(r=>r.toSchema());return Tt(Ze({},t),{props:Tt(Ze({},this.props),{headers:n})})}}wr.controlFieldType=Oe.LIST;class D_ extends ze{constructor(t){super(t),this.controlType="list",this.props=new la(this,t==null?void 0:t.props,"Runtime"),mt(this,"children",t==null?void 0:t.children,void 0,"Runtime")}get length(){return this.children.length}}class ca extends Ir{constructor(t){super(t),this.caption={type:"string",required:!0,message:k.getMessage("pleaseEnterCaption")},this.width={type:"number",required:!1,message:k.getMessage("pleaseEnterColumnWidth")},this.width.required=t.widthType==="px"}}class Lr extends Qe{constructor(t){var n,r,i,a,s;super(t),this.width=(n=t==null?void 0:t.width)!=null?n:150,this.widthType=(t==null?void 0:t.widthType)||"auto",this.caption=(r=t==null?void 0:t.caption)!=null?r:"",this.fixed=(i=t==null?void 0:t.fixed)!=null?i:"none",this.autoWidth=new Bi(t==null?void 0:t.autoWidth),this.dataBind=new We(t==null?void 0:t.dataBind),this.sort=(a=t==null?void 0:t.sort)!=null?a:!0,this.align=t==null?void 0:t.align,this.colSpan=t==null?void 0:t.colSpan,this.autoHeight=(s=t==null?void 0:t.autoHeight)!=null?s:!1}}Lr.Rules=ca;class C_ extends ca{constructor(t){super(t),this.optionConfig={type:"enum",enum:["custom","datasource","none"],message:k.getMessage("PleaseSelectTheCorrectOptionSettings")},this.options=[{type:"array",message:k.getMessage("isNotArray")}],this.datasourceBind=[{type:"object",message:k.getMessage("isNotObject")}],aa.call(this,t)}}class R_ extends ye{constructor(t){super(t),this.controlType="column",this.props=new Lr(t==null?void 0:t.props),mt(this,"children",t==null?void 0:t.children,void 0,"Designer")}toSchema(){const t=super.toSchema();return Tt(Ze({},t),{children:this.children?this.children.map(n=>n.toSchema()):[]})}}class T_ extends ze{constructor(t){super(t),this.controlType="column",this.props=new Lr(t==null?void 0:t.props),mt(this,"children",t==null?void 0:t.children,void 0,"Runtime")}}class ua extends In{constructor(t){super(t),this.dataBind=new We(t==null?void 0:t.dataBind)}}class P_ extends Dt{constructor(t){super(t),this.controlType="search",this.props=new ua(t==null?void 0:t.props)}}class M_ extends oa{constructor(t){super(t),this.controlType="search",this.props=new ua(t==null?void 0:t.props)}}class fa extends In{constructor(t){super(t)}}class F_ extends Dt{constructor(t){super(t),this.controlType="wrap",this.props=new fa(t==null?void 0:t.props)}}class V_ extends oa{constructor(t){super(t),this.controlType="wrap",this.props=new fa(t==null?void 0:t.props)}}function k_(e){e.hasOwnProperty("linkOperationOption")&&e.hasOwnProperty("showLinkOperation")&&e.showLinkOperation&&(this.linkOperationOption=[{type:"object",fields:{formKey:{type:"string",required:!0,message:k.getMessage("pleaseEnterForm")}}}])}I.AMOUNT_TYPE=Ji,I.AddressValue=Bm,I.AmountDataBind=Um,I.AmountValue=$m,I.AutoWidth=Bi,I.BaseControlProperty=Nn,I.BaseControlPropertyRules=sa,I.BaseControlPropertyRuntimeRules=Sl,I.BaseStyle=ul,I.COMMON_SETTING_TYPE=cl,I.CalcDataBind=Hm,I.CalcValue=pm,I.ColumnControlProperty=Lr,I.ColumnControlPropertyRules=ca,I.ColumnOptionAndDataSourcePropertyRules=C_,I.CustomAttributeItem=Gi,I.CustomPermissionItem=Km,I.DataBind=We,I.DataSourceBind=br,I.DataSourceDataSetValue=al,I.DataSourceOrderItem=qi,I.DataSourceParamItem=Lm,I.DataStorageDoc=bm,I.DesignerColumnControl=R_,I.DesignerControl=ye,I.DesignerFormControl=wl,I.DesignerLayoutControl=Dt,I.DesignerListControl=wr,I.DesignerSearchControl=P_,I.DesignerWrapControl=F_,I.DisplayBoListItem=ji,I.FieldBindItem=tl,I.FieldFilterCondition=yn,I.FieldFilterConditions=Xt,I.FillBackBind=Pm,I.FillPayloadBind=Tm,I.FormBind=vr,I.FormSelectBind=Nm,I.ImageOptionSetting=ll,I.JoinRelation=Sm,I.Language=Mm,I.LayoutControlProperty=In,I.LeftVariable=rl,I.LinkOperationOption=Dm,I.ListBind=Im,I.ListControlProperty=la,I.MetaAutoWidth=vm,I.MetaRowHeight=ym,I.MetaWidth=yr,I.MultistageFillingItem=il,I.ObjectDataBind=Nr,I.OperationItem=jm,I.OptObject=Gm,I.OptionAndDataSourcePropertyRules=w_,I.OptionDisplayConfigItem=wm,I.OptionSetting=Xi,I.OrganizationDataSourceBind=Cm,I.PAGE_STATUS=Qi,I.Property=Qe,I.PropertyRules=Ir,I.PropertyRuntimeRules=zi,I.RangeDataBind=xm,I.RangeDateValue=Wm,I.RegisterControls=En,I.RegularRules=Fm,I.RightVariable=pi,I.RowHeight=Hi,I.RowStyle=Xm,I.RowStyleRule=fl,I.RowStyleSettings=dl,I.RuntimeColumnControl=T_,I.RuntimeControl=ze,I.RuntimeFormControl=L_,I.RuntimeLayoutControl=oa,I.RuntimeListControl=D_,I.RuntimeSearchControl=M_,I.RuntimeWrapControl=V_,I.SearchControlProperty=ua,I.SelectedContentConfig=Am,I.SubListItem=nl,I.SubListPageConfig=Om,I.SuperDataSourceBind=sl,I.TreeDataSourceBind=Rm,I.ViewOperationItem=qm,I.WrapControlProperty=fa,I.controlHooksEmitter=bl,I.createValidator=vl,I.defineArrayParent=Jo,I.defineControlArrayToProperty=mt,I.defineParent=xi,I.initImageOptions=km,I.initLinkOperationRules=k_,I.initOptionAndDataSourceRules=aa,I.initOptions=Vm,I.initSuperDataSourceRules=S_,I.isDataBind=Ol,I.setPropertyDontEnum=Er,Object.defineProperty(I,"__esModule",{value:!0})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/model-driven-core",
|
|
3
|
-
"version": "2.22.
|
|
3
|
+
"version": "2.22.2-beta.0",
|
|
4
4
|
"description": "model engine core",
|
|
5
5
|
"author": "郝晨光 <2293885211@qq.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"postpublish": "node ../../scripts/postpublish.js"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@byteluck-fe/model-driven-shared": "2.22.
|
|
29
|
+
"@byteluck-fe/model-driven-shared": "2.22.2-beta.0",
|
|
30
30
|
"async-validator": "3.5.1",
|
|
31
31
|
"tslib": "^2.1.0"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "97ce2cffccb2f438352f8f1eb9e1d2ad29bd8d60"
|
|
34
34
|
}
|