agilebuilder-ui 1.2.3 → 1.2.4

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.
Files changed (70) hide show
  1. package/lib/{401-995888dd.js → 401-e186880f.js} +1 -1
  2. package/lib/{404-a8026a27.js → 404-b282a11f.js} +1 -1
  3. package/lib/{_baseUniq-BXtq6_NW-8d03c077.js → _baseUniq-BXtq6_NW-db410996.js} +2 -2
  4. package/lib/{arc-Js_tyW10-1b898539.js → arc-Js_tyW10-8b0bd166.js} +1 -1
  5. package/lib/architecture-O4VJ6CD3-ZoZ2IAk2-5bb0ed5d.js +12 -0
  6. package/lib/{architectureDiagram-SUXI7LT5-kyYGGrHN-d96b27cb.js → architectureDiagram-SUXI7LT5-kyYGGrHN-4067bdb9.js} +9 -9
  7. package/lib/{blockDiagram-6J76NXCF-IAr4zDV3-a412b612.js → blockDiagram-6J76NXCF-IAr4zDV3-e7075c34.js} +8 -8
  8. package/lib/{c4Diagram-6F6E4RAY-Dv27rXcJ-0f0dc985.js → c4Diagram-6F6E4RAY-Dv27rXcJ-6c1dfd00.js} +4 -4
  9. package/lib/{channel-BBZy6zOT-3d167fa0.js → channel-BBZy6zOT-6bbc4492.js} +1 -1
  10. package/lib/{chat-panel-3019b10a.js → chat-panel-abaf34c7.js} +2 -2
  11. package/lib/{chunk-353BL4L5-Dn_Y_Yna-c75700bb.js → chunk-353BL4L5-Dn_Y_Yna-da9f4a1f.js} +1 -1
  12. package/lib/{chunk-67H74DCK-Br5U8bfD-fdbc5b14.js → chunk-67H74DCK-Br5U8bfD-53844c92.js} +1 -1
  13. package/lib/{chunk-AACKK3MU-DH_MKxca-9f2c2a83.js → chunk-AACKK3MU-DH_MKxca-108cacf6.js} +1 -1
  14. package/lib/{chunk-BFAMUDN2-DHLCoYMN-c1c307e4.js → chunk-BFAMUDN2-DHLCoYMN-dce7a690.js} +1 -1
  15. package/lib/{chunk-E2GYISFI-DQPHyyga-b43275a7.js → chunk-E2GYISFI-DQPHyyga-2a3726d9.js} +1 -1
  16. package/lib/{chunk-OW32GOEJ-CQOSE6Bn-279ffd55.js → chunk-OW32GOEJ-CQOSE6Bn-c93ff53f.js} +3 -3
  17. package/lib/{chunk-SKB7J2MH-BlwHRDiW-2773b4c7.js → chunk-SKB7J2MH-BlwHRDiW-0b519c97.js} +1 -1
  18. package/lib/{chunk-SZ463SBG-DEp8buKJ-a438f73a.js → chunk-SZ463SBG-DEp8buKJ-665ca437.js} +4 -4
  19. package/lib/{classDiagram-v2-YAWTLIQI-D0ySDe-v-433aba10.js → classDiagram-M3E45YP4-D0ySDe-v-5a2928d3.js} +7 -7
  20. package/lib/{classDiagram-M3E45YP4-D0ySDe-v-433aba10.js → classDiagram-v2-YAWTLIQI-D0ySDe-v-5a2928d3.js} +7 -7
  21. package/lib/{clone-CEJtuQzg-39e9e222.js → clone-CEJtuQzg-588bdae0.js} +1 -1
  22. package/lib/{dagre-JOIXM2OF-5zx0JY2T-8dda1e36.js → dagre-JOIXM2OF-5zx0JY2T-36ba4df2.js} +8 -8
  23. package/lib/{diagram-5UYTHUR4-C19nyAKc-9a4d9074.js → diagram-5UYTHUR4-C19nyAKc-c4cfa7d6.js} +8 -8
  24. package/lib/{diagram-VMROVX33-DkGwo-hj-801baaf3.js → diagram-VMROVX33-DkGwo-hj-bf6a6f6f.js} +9 -9
  25. package/lib/{diagram-ZTM2IBQH-CBgHCu9L-90c619c4.js → diagram-ZTM2IBQH-CBgHCu9L-92b7cd52.js} +8 -8
  26. package/lib/{erDiagram-3M52JZNH-cttdAJXW-90508185.js → erDiagram-3M52JZNH-cttdAJXW-08a85636.js} +6 -6
  27. package/lib/{flowDiagram-KYDEHFYC-9HpsqDdB-23c95b77.js → flowDiagram-KYDEHFYC-9HpsqDdB-6538c595.js} +7 -7
  28. package/lib/{ganttDiagram-EK5VF46D-8QB3ofs6-22dbc3f8.js → ganttDiagram-EK5VF46D-8QB3ofs6-afa26a0f.js} +4 -4
  29. package/lib/gitGraph-ZV4HHKMB-BSmtVGRu-fa01f595.js +12 -0
  30. package/lib/{gitGraphDiagram-GW3U2K7C-DNzc0Vx_-a58f41f1.js → gitGraphDiagram-GW3U2K7C-DNzc0Vx_-9aa8c8b5.js} +9 -9
  31. package/lib/{graph-3zJxsO-i-10b5de6c.js → graph-3zJxsO-i-5e58391b.js} +3 -3
  32. package/lib/{iframe-page-acf581a9.js → iframe-page-b91af488.js} +1 -1
  33. package/lib/{index-1f0bc75c.js → index-b29e3293.js} +13 -4
  34. package/lib/info-63CPKGFF-C8sYWczU-9a5a4b36.js +12 -0
  35. package/lib/{infoDiagram-LHK5PUON-C-vFFPTf-086e102d.js → infoDiagram-LHK5PUON-C-vFFPTf-12b60375.js} +7 -7
  36. package/lib/{journeyDiagram-EWQZEKCU-BJrw4-AG-2d750d6c.js → journeyDiagram-EWQZEKCU-BJrw4-AG-2567c59c.js} +6 -6
  37. package/lib/{kanban-definition-ZSS6B67P-BptAnqU--a482f8d0.js → kanban-definition-ZSS6B67P-BptAnqU--f986149c.js} +4 -4
  38. package/lib/{layout-sGZIJplX-f22cc74c.js → layout-sGZIJplX-00b6e226.js} +5 -5
  39. package/lib/{linear-DqgVh5FN-4e553b80.js → linear-DqgVh5FN-abc4dba0.js} +1 -1
  40. package/lib/{mermaid-parser.core-CH9ryA1K-8ad96870.js → mermaid-parser.core-CH9ryA1K-bb9006bf.js} +12 -12
  41. package/lib/{mermaid.core-CAqkCmS1-f5b47dc2.js → mermaid.core-CAqkCmS1-ee0083a1.js} +31 -31
  42. package/lib/{min-BngCxx8g-708d781d.js → min-BngCxx8g-9de12ba5.js} +3 -3
  43. package/lib/{mindmap-definition-6CBA2TL7-Cp_EeEsh-063eddd1.js → mindmap-definition-6CBA2TL7-Cp_EeEsh-f714c38a.js} +3 -3
  44. package/lib/packet-HUATNLJX-bfFWFja0-3bbb8edb.js +12 -0
  45. package/lib/pie-WTHONI2E-QPrWs3SR-4d492d79.js +12 -0
  46. package/lib/{pieDiagram-NIOCPIFQ-C46Y_4C6-31117fd8.js → pieDiagram-NIOCPIFQ-C46Y_4C6-ac41bcbb.js} +9 -9
  47. package/lib/{quadrantDiagram-2OG54O6I-Dgf6d6F_-1056817e.js → quadrantDiagram-2OG54O6I-Dgf6d6F_-2ccd8f7d.js} +4 -4
  48. package/lib/radar-NJJJXTRR-BnUCJhQL-f49b8f0e.js +12 -0
  49. package/lib/{requirementDiagram-QOLK2EJ7-CSF6N7HA-278138ca.js → requirementDiagram-QOLK2EJ7-CSF6N7HA-284b9f24.js} +5 -5
  50. package/lib/{sankeyDiagram-4UZDY2LN-BAHB7dMS-c175516b.js → sankeyDiagram-4UZDY2LN-BAHB7dMS-9a894edf.js} +3 -3
  51. package/lib/{sequenceDiagram-SKLFT4DO-10gLJ50N-69fa84bf.js → sequenceDiagram-SKLFT4DO-10gLJ50N-bddc4f82.js} +5 -5
  52. package/lib/{stateDiagram-MI5ZYTHO-D6p6nCaj-7544a7b2.js → stateDiagram-MI5ZYTHO-D6p6nCaj-7c1bb2e0.js} +10 -10
  53. package/lib/{stateDiagram-v2-5AN5P6BG-DaN5hC-t-2194da30.js → stateDiagram-v2-5AN5P6BG-DaN5hC-t-2693e0c4.js} +6 -6
  54. package/lib/super-ui.js +1 -1
  55. package/lib/super-ui.umd.cjs +1 -1
  56. package/lib/{tab-content-iframe-index-856595b8.js → tab-content-iframe-index-7ea77097.js} +1 -1
  57. package/lib/{tab-content-index-892b63df.js → tab-content-index-679c40b9.js} +1 -1
  58. package/lib/{tache-subprocess-history-e3aea9f1.js → tache-subprocess-history-27745c53.js} +1 -1
  59. package/lib/{timeline-definition-MYPXXCX6-gLqnWxDu-085ec3d5.js → timeline-definition-MYPXXCX6-gLqnWxDu-7674e0dd.js} +4 -4
  60. package/lib/treemap-75Q7IDZK-B2atdfMH-d7404c4e.js +12 -0
  61. package/lib/{xychartDiagram-H2YORKM3-Whqa4ezL-2f57ae22.js → xychartDiagram-H2YORKM3-Whqa4ezL-bfef7af1.js} +4 -4
  62. package/package.json +1 -1
  63. package/src/utils/common-util.js +16 -9
  64. package/lib/architecture-O4VJ6CD3-ZoZ2IAk2-c3385442.js +0 -12
  65. package/lib/gitGraph-ZV4HHKMB-BSmtVGRu-b20ddf41.js +0 -12
  66. package/lib/info-63CPKGFF-C8sYWczU-6eb4e5a9.js +0 -12
  67. package/lib/packet-HUATNLJX-bfFWFja0-fb63c807.js +0 -12
  68. package/lib/pie-WTHONI2E-QPrWs3SR-7723bfdb.js +0 -12
  69. package/lib/radar-NJJJXTRR-BnUCJhQL-bb740e2a.js +0 -12
  70. package/lib/treemap-75Q7IDZK-B2atdfMH-fd0da267.js +0 -12
@@ -21,7 +21,7 @@ For more detail, please visit: ${kt}
21
21
  (?:`+Et+":){1}(?:(?::"+Et+"){0,4}:"+At+"|(?::"+Et+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
22
22
  (?::(?:(?::`+Et+"){0,5}:"+At+"|(?::"+Et+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
23
23
  )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
24
- `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),Dt=new RegExp("(?:^"+At+"$)|(?:^"+kt+"$)"),Pt=new RegExp("^"+At+"$"),Lt=new RegExp("^"+kt+"$"),jt=function(bn){return bn&&bn.exact?Dt:new RegExp("(?:"+Ve(bn)+At+Ve(bn)+")|(?:"+Ve(bn)+kt+Ve(bn)+")","g")};jt.v4=function(bn){return bn&&bn.exact?Pt:new RegExp(""+Ve(bn)+At+Ve(bn),"g")},jt.v6=function(bn){return bn&&bn.exact?Lt:new RegExp(""+Ve(bn)+kt+Ve(bn),"g")};var An=jt.v4().source,hn=jt.v6().source;return urlReg=new RegExp("(?:^"+("(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+An+"|"+hn+'|(?:(?:[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,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?')+"$)","i")},pattern$2={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},types$3={integer:function(l){return types$3.number(l)&&parseInt(l,10)===l},float:function(l){return types$3.number(l)&&!types$3.integer(l)},array:function(l){return Array.isArray(l)},regexp:function(l){if(l instanceof RegExp)return!0;try{return!!new RegExp(l)}catch{return!1}},date:function(l){return typeof l.getTime=="function"&&typeof l.getMonth=="function"&&typeof l.getYear=="function"&&!isNaN(l.getTime())},number:function(l){return!isNaN(l)&&typeof l=="number"},object:function(l){return typeof l=="object"&&!types$3.array(l)},method:function(l){return typeof l=="function"},email:function(l){return typeof l=="string"&&l.length<=320&&!!l.match(pattern$2.email)},url:function(l){return typeof l=="string"&&l.length<=2048&&!!l.match(getUrlRegex())},hex:function(l){return typeof l=="string"&&!!l.match(pattern$2.hex)}},type$1=function(l,Ve,At,Et,kt){if(l.required&&Ve===void 0)required$1(l,Ve,At,Et,kt);else{var Dt=l.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(Dt)>-1?types$3[Dt](Ve)||Et.push(format$8(kt.messages.types[Dt],l.fullField,l.type)):Dt&&typeof Ve!==l.type&&Et.push(format$8(kt.messages.types[Dt],l.fullField,l.type))}},range$2=function(l,Ve,At,Et,kt){var Dt=typeof l.len=="number",Pt=typeof l.min=="number",Lt=typeof l.max=="number",jt=Ve,An=null,hn=typeof Ve=="number",bn=typeof Ve=="string",vn=Array.isArray(Ve);if(hn?An="number":bn?An="string":vn&&(An="array"),!An)return!1;vn&&(jt=Ve.length),bn&&(jt=Ve.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),Dt?jt!==l.len&&Et.push(format$8(kt.messages[An].len,l.fullField,l.len)):Pt&&!Lt&&jt<l.min?Et.push(format$8(kt.messages[An].min,l.fullField,l.min)):Lt&&!Pt&&jt>l.max?Et.push(format$8(kt.messages[An].max,l.fullField,l.max)):Pt&&Lt&&(jt<l.min||jt>l.max)&&Et.push(format$8(kt.messages[An].range,l.fullField,l.min,l.max))},ENUM$1="enum",enumerable$1=function(l,Ve,At,Et,kt){l[ENUM$1]=Array.isArray(l[ENUM$1])?l[ENUM$1]:[],l[ENUM$1].indexOf(Ve)===-1&&Et.push(format$8(kt.messages[ENUM$1],l.fullField,l[ENUM$1].join(", ")))},pattern$1=function(l,Ve,At,Et,kt){l.pattern&&(l.pattern instanceof RegExp?(l.pattern.lastIndex=0,l.pattern.test(Ve)||Et.push(format$8(kt.messages.pattern.mismatch,l.fullField,Ve,l.pattern))):typeof l.pattern=="string"&&(new RegExp(l.pattern).test(Ve)||Et.push(format$8(kt.messages.pattern.mismatch,l.fullField,Ve,l.pattern))))},rules={required:required$1,whitespace:whitespace$2,type:type$1,range:range$2,enum:enumerable$1,pattern:pattern$1},string$3=function(l,Ve,At,Et,kt){var Dt=[];if(l.required||!l.required&&Et.hasOwnProperty(l.field)){if(isEmptyValue(Ve,"string")&&!l.required)return At();rules.required(l,Ve,Et,Dt,kt,"string"),isEmptyValue(Ve,"string")||(rules.type(l,Ve,Et,Dt,kt),rules.range(l,Ve,Et,Dt,kt),rules.pattern(l,Ve,Et,Dt,kt),l.whitespace===!0&&rules.whitespace(l,Ve,Et,Dt,kt))}At(Dt)},method=function(l,Ve,At,Et,kt){var Dt=[];if(l.required||!l.required&&Et.hasOwnProperty(l.field)){if(isEmptyValue(Ve)&&!l.required)return At();rules.required(l,Ve,Et,Dt,kt),Ve!==void 0&&rules.type(l,Ve,Et,Dt,kt)}At(Dt)},number$7=function(l,Ve,At,Et,kt){var Dt=[];if(l.required||!l.required&&Et.hasOwnProperty(l.field)){if(Ve===""&&(Ve=void 0),isEmptyValue(Ve)&&!l.required)return At();rules.required(l,Ve,Et,Dt,kt),Ve!==void 0&&(rules.type(l,Ve,Et,Dt,kt),rules.range(l,Ve,Et,Dt,kt))}At(Dt)},_boolean=function(l,Ve,At,Et,kt){var Dt=[];if(l.required||!l.required&&Et.hasOwnProperty(l.field)){if(isEmptyValue(Ve)&&!l.required)return At();rules.required(l,Ve,Et,Dt,kt),Ve!==void 0&&rules.type(l,Ve,Et,Dt,kt)}At(Dt)},regexp$2=function(l,Ve,At,Et,kt){var Dt=[];if(l.required||!l.required&&Et.hasOwnProperty(l.field)){if(isEmptyValue(Ve)&&!l.required)return At();rules.required(l,Ve,Et,Dt,kt),isEmptyValue(Ve)||rules.type(l,Ve,Et,Dt,kt)}At(Dt)},integer$2=function(l,Ve,At,Et,kt){var Dt=[];if(l.required||!l.required&&Et.hasOwnProperty(l.field)){if(isEmptyValue(Ve)&&!l.required)return At();rules.required(l,Ve,Et,Dt,kt),Ve!==void 0&&(rules.type(l,Ve,Et,Dt,kt),rules.range(l,Ve,Et,Dt,kt))}At(Dt)},floatFn=function(l,Ve,At,Et,kt){var Dt=[];if(l.required||!l.required&&Et.hasOwnProperty(l.field)){if(isEmptyValue(Ve)&&!l.required)return At();rules.required(l,Ve,Et,Dt,kt),Ve!==void 0&&(rules.type(l,Ve,Et,Dt,kt),rules.range(l,Ve,Et,Dt,kt))}At(Dt)},array$3=function(l,Ve,At,Et,kt){var Dt=[];if(l.required||!l.required&&Et.hasOwnProperty(l.field)){if(Ve==null&&!l.required)return At();rules.required(l,Ve,Et,Dt,kt,"array"),Ve!=null&&(rules.type(l,Ve,Et,Dt,kt),rules.range(l,Ve,Et,Dt,kt))}At(Dt)},object$2=function(l,Ve,At,Et,kt){var Dt=[];if(l.required||!l.required&&Et.hasOwnProperty(l.field)){if(isEmptyValue(Ve)&&!l.required)return At();rules.required(l,Ve,Et,Dt,kt),Ve!==void 0&&rules.type(l,Ve,Et,Dt,kt)}At(Dt)},ENUM="enum",enumerable=function(l,Ve,At,Et,kt){var Dt=[];if(l.required||!l.required&&Et.hasOwnProperty(l.field)){if(isEmptyValue(Ve)&&!l.required)return At();rules.required(l,Ve,Et,Dt,kt),Ve!==void 0&&rules[ENUM](l,Ve,Et,Dt,kt)}At(Dt)},pattern=function(l,Ve,At,Et,kt){var Dt=[];if(l.required||!l.required&&Et.hasOwnProperty(l.field)){if(isEmptyValue(Ve,"string")&&!l.required)return At();rules.required(l,Ve,Et,Dt,kt),isEmptyValue(Ve,"string")||rules.pattern(l,Ve,Et,Dt,kt)}At(Dt)},date$2=function(l,Ve,At,Et,kt){var Dt=[];if(l.required||!l.required&&Et.hasOwnProperty(l.field)){if(isEmptyValue(Ve,"date")&&!l.required)return At();var Pt;rules.required(l,Ve,Et,Dt,kt),!isEmptyValue(Ve,"date")&&(Pt=Ve instanceof Date?Ve:new Date(Ve),rules.type(l,Pt,Et,Dt,kt),Pt&&rules.range(l,Pt.getTime(),Et,Dt,kt))}At(Dt)},required$2=function(l,Ve,At,Et,kt){var Dt=[],Pt=Array.isArray(Ve)?"array":typeof Ve;rules.required(l,Ve,Et,Dt,kt,Pt),At(Dt)},type$2=function(l,Ve,At,Et,kt){var Dt=l.type,Pt=[];if(l.required||!l.required&&Et.hasOwnProperty(l.field)){if(isEmptyValue(Ve,Dt)&&!l.required)return At();rules.required(l,Ve,Et,Pt,kt,Dt),isEmptyValue(Ve,Dt)||rules.type(l,Ve,Et,Pt,kt)}At(Pt)},any=function(l,Ve,At,Et,kt){var Dt=[];if(l.required||!l.required&&Et.hasOwnProperty(l.field)){if(isEmptyValue(Ve)&&!l.required)return At();rules.required(l,Ve,Et,Dt,kt)}At(Dt)},validators={string:string$3,method,number:number$7,boolean:_boolean,regexp:regexp$2,integer:integer$2,float:floatFn,array:array$3,object:object$2,enum:enumerable,pattern,date:date$2,url:type$2,hex:type$2,email:type$2,required:required$2,any};function newMessages(){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 l=JSON.parse(JSON.stringify(this));return l.clone=this.clone,l}}}var messages$1=newMessages(),Schema$3=function(){function l(At){this.rules=null,this._messages=messages$1,this.define(At)}var Ve=l.prototype;return Ve.define=function(At){var Et=this;if(!At)throw new Error("Cannot configure a schema with no rules");if(typeof At!="object"||Array.isArray(At))throw new Error("Rules must be an object");this.rules={},Object.keys(At).forEach(function(kt){var Dt=At[kt];Et.rules[kt]=Array.isArray(Dt)?Dt:[Dt]})},Ve.messages=function(At){return At&&(this._messages=deepMerge(newMessages(),At)),this._messages},Ve.validate=function(At,Et,kt){var Dt=this;Et===void 0&&(Et={}),kt===void 0&&(kt=function(){});var Pt=At,Lt=Et,jt=kt;if(typeof Lt=="function"&&(jt=Lt,Lt={}),!this.rules||Object.keys(this.rules).length===0)return jt&&jt(null,Pt),Promise.resolve(Pt);if(Lt.messages){var An=this.messages();An===messages$1&&(An=newMessages()),deepMerge(An,Lt.messages),Lt.messages=An}else Lt.messages=this.messages();var hn={};(Lt.keys||Object.keys(this.rules)).forEach(function(vn){var Cn=Dt.rules[vn],wn=Pt[vn];Cn.forEach(function(En){var Bn=En;typeof Bn.transform=="function"&&(Pt===At&&(Pt=_extends$2({},Pt)),wn=Pt[vn]=Bn.transform(wn)),(Bn=typeof Bn=="function"?{validator:Bn}:_extends$2({},Bn)).validator=Dt.getValidationMethod(Bn),Bn.validator&&(Bn.field=vn,Bn.fullField=Bn.fullField||vn,Bn.type=Dt.getType(Bn),hn[vn]=hn[vn]||[],hn[vn].push({rule:Bn,value:wn,source:Pt,field:vn}))})});var bn={};return asyncMap(hn,Lt,function(vn,Cn){var wn,En=vn.rule,Bn=!(En.type!=="object"&&En.type!=="array"||typeof En.fields!="object"&&typeof En.defaultField!="object");function In(Tn,Mn){return _extends$2({},Mn,{fullField:En.fullField+"."+Tn,fullFields:En.fullFields?[].concat(En.fullFields,[Tn]):[Tn]})}function Dn(Tn){Tn===void 0&&(Tn=[]);var Mn=Array.isArray(Tn)?Tn:[Tn];!Lt.suppressWarning&&Mn.length&&l.warning("async-validator:",Mn),Mn.length&&En.message!==void 0&&(Mn=[].concat(En.message));var Fn=Mn.map(complementError(En,Pt));if(Lt.first&&Fn.length)return bn[En.field]=1,Cn(Fn);if(Bn){if(En.required&&!vn.value)return En.message!==void 0?Fn=[].concat(En.message).map(complementError(En,Pt)):Lt.error&&(Fn=[Lt.error(En,format$8(Lt.messages.required,En.field))]),Cn(Fn);var Rn={};En.defaultField&&Object.keys(vn.value).map(function(jn){Rn[jn]=En.defaultField}),Rn=_extends$2({},Rn,vn.rule.fields);var On={};Object.keys(Rn).forEach(function(jn){var Hn=Rn[jn],Gn=Array.isArray(Hn)?Hn:[Hn];On[jn]=Gn.map(In.bind(null,jn))});var Pn=new l(On);Pn.messages(Lt.messages),vn.rule.options&&(vn.rule.options.messages=Lt.messages,vn.rule.options.error=Lt.error),Pn.validate(vn.value,vn.rule.options||Lt,function(jn){var Hn=[];Fn&&Fn.length&&Hn.push.apply(Hn,Fn),jn&&jn.length&&Hn.push.apply(Hn,jn),Cn(Hn.length?Hn:null)})}else Cn(Fn)}if(Bn=Bn&&(En.required||!En.required&&vn.value),En.field=vn.field,En.asyncValidator)wn=En.asyncValidator(En,vn.value,Dn,vn.source,Lt);else if(En.validator){try{wn=En.validator(En,vn.value,Dn,vn.source,Lt)}catch(Tn){console.error==null||console.error(Tn),Lt.suppressValidatorError||setTimeout(function(){throw Tn},0),Dn(Tn.message)}wn===!0?Dn():wn===!1?Dn(typeof En.message=="function"?En.message(En.fullField||En.field):En.message||(En.fullField||En.field)+" fails"):wn instanceof Array?Dn(wn):wn instanceof Error&&Dn(wn.message)}wn&&wn.then&&wn.then(function(){return Dn()},function(Tn){return Dn(Tn)})},function(vn){(function(Cn){var wn=[],En={};function Bn(Dn){var Tn;Array.isArray(Dn)?wn=(Tn=wn).concat.apply(Tn,Dn):wn.push(Dn)}for(var In=0;In<Cn.length;In++)Bn(Cn[In]);wn.length?(En=convertFieldsError(wn),jt(wn,En)):jt(null,Pt)})(vn)},Pt)},Ve.getType=function(At){if(At.type===void 0&&At.pattern instanceof RegExp&&(At.type="pattern"),typeof At.validator!="function"&&At.type&&!validators.hasOwnProperty(At.type))throw new Error(format$8("Unknown rule type %s",At.type));return At.type||"string"},Ve.getValidationMethod=function(At){if(typeof At.validator=="function")return At.validator;var Et=Object.keys(At),kt=Et.indexOf("message");return kt!==-1&&Et.splice(kt,1),Et.length===1&&Et[0]==="required"?validators.required:validators[this.getType(At)]||void 0},l}();Schema$3.register=function(l,Ve){if(typeof Ve!="function")throw new Error("Cannot register a validator by type, validator is not a function");validators[l]=Ve},Schema$3.warning=warning,Schema$3.messages=messages$1,Schema$3.validators=validators;const imageViewerProps$1=buildProps$1({urlList:{type:definePropType$1(Array),default:()=>mutable$1([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},scale:{type:Number,default:1},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:definePropType$1(String)}}),imageViewerEmits$1={close:()=>!0,error:l=>l instanceof Event,switch:l=>isNumber$5(l),rotate:l=>isNumber$5(l)},_hoisted_1$28=["src","crossorigin"];var _sfc_main$2U=Vue.defineComponent({name:"ElImageViewer",__name:"image-viewer",props:imageViewerProps$1,emits:imageViewerEmits$1,setup(l,{expose:Ve,emit:At}){var Et;const kt={CONTAIN:{name:"contain",icon:Vue.markRaw(full_screen_default)},ORIGINAL:{name:"original",icon:Vue.markRaw(scale_to_original_default)}},Dt=l,Pt=At;let Lt;const{t:jt}=useLocale$1(),An=useNamespace$1("image-viewer"),{nextZIndex:hn}=useZIndex$1(),bn=Vue.ref(),vn=Vue.ref(),Cn=Vue.effectScope(),wn=Vue.computed(()=>{const{scale:Dr,minScale:Nr,maxScale:Er}=Dt;return clamp$1(Dr,Nr,Er)}),En=Vue.ref(!0),Bn=Vue.ref(!1),In=Vue.ref(!1),Dn=Vue.ref(Dt.initialIndex),Tn=Vue.shallowRef(kt.CONTAIN),Mn=Vue.ref({scale:wn.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),Fn=Vue.ref((Et=Dt.zIndex)!=null?Et:hn());useLockscreen$1(In,{ns:An});const Rn=Vue.computed(()=>{const{urlList:Dr}=Dt;return Dr.length<=1}),On=Vue.computed(()=>Dn.value===0),Pn=Vue.computed(()=>Dn.value===Dt.urlList.length-1),jn=Vue.computed(()=>Dt.urlList[Dn.value]),Hn=Vue.computed(()=>[An.e("btn"),An.e("prev"),An.is("disabled",!Dt.infinite&&On.value)]),Gn=Vue.computed(()=>[An.e("btn"),An.e("next"),An.is("disabled",!Dt.infinite&&Pn.value)]),qn=Vue.computed(()=>{const{scale:Dr,deg:Nr,offsetX:Er,offsetY:Lr,enableTransition:$r}=Mn.value;let Xr=Er/Dr,qr=Lr/Dr;const ma=Nr*Math.PI/180,ca=Math.cos(ma),ba=Math.sin(ma);Xr=Xr*ca+qr*ba,qr=qr*ca-Er/Dr*ba;const xo={transform:`scale(${Dr}) rotate(${Nr}deg) translate(${Xr}px, ${qr}px)`,transition:$r?"transform .3s":""};return Tn.value.name===kt.CONTAIN.name&&(xo.maxWidth=xo.maxHeight="100%"),xo}),Vn=Vue.computed(()=>`${Dn.value+1} / ${Dt.urlList.length}`);function Un(){Cn.stop(),Lt==null||Lt(),In.value=!1,Pt("close")}function Kn(){En.value=!1}function er(Dr){Bn.value=!0,En.value=!1,Pt("error",Dr),Dr.target.alt=jt("el.image.error")}function ir(Dr){if(En.value||Dr.button!==0||!bn.value)return;Mn.value.enableTransition=!1;const{offsetX:Nr,offsetY:Er}=Mn.value,Lr=Dr.pageX,$r=Dr.pageY,Xr=throttle$3(ca=>{Mn.value={...Mn.value,offsetX:Nr+ca.pageX-Lr,offsetY:Er+ca.pageY-$r}}),qr=useEventListener$1(document,"mousemove",Xr),ma=useEventListener$1(document,"mouseup",()=>{qr(),ma()});Dr.preventDefault()}function rr(Dr){if(En.value||!bn.value||Dr.touches.length!==1)return;Mn.value.enableTransition=!1;const{offsetX:Nr,offsetY:Er}=Mn.value,{pageX:Lr,pageY:$r}=Dr.touches[0],Xr=throttle$3(ca=>{const ba=ca.touches[0];Mn.value={...Mn.value,offsetX:Nr+ba.pageX-Lr,offsetY:Er+ba.pageY-$r}}),qr=useEventListener$1(document,"touchmove",Xr),ma=useEventListener$1(document,"touchend",()=>{qr(),ma()});Dr.preventDefault()}function ur(){Mn.value={scale:wn.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function or(){if(En.value||Bn.value)return;const Dr=keysOf$1(kt),Nr=Object.values(kt),Er=Tn.value.name,Lr=Nr.findIndex(Xr=>Xr.name===Er),$r=(Lr+1)%Dr.length;Tn.value=kt[Dr[$r]],ur()}function Ar(Dr){Bn.value=!1;const Nr=Dt.urlList.length;Dn.value=(Dr+Nr)%Nr}function yr(){On.value&&!Dt.infinite||Ar(Dn.value-1)}function _r(){Pn.value&&!Dt.infinite||Ar(Dn.value+1)}function kr(Dr,Nr={}){if(En.value||Bn.value)return;const{minScale:Er,maxScale:Lr}=Dt,{zoomRate:$r,rotateDeg:Xr,enableTransition:qr}={zoomRate:Dt.zoomRate,rotateDeg:90,enableTransition:!0,...Nr};switch(Dr){case"zoomOut":Mn.value.scale>Er&&(Mn.value.scale=Number.parseFloat((Mn.value.scale/$r).toFixed(3)));break;case"zoomIn":Mn.value.scale<Lr&&(Mn.value.scale=Number.parseFloat((Mn.value.scale*$r).toFixed(3)));break;case"clockwise":Mn.value.deg+=Xr,Pt("rotate",Mn.value.deg);break;case"anticlockwise":Mn.value.deg-=Xr,Pt("rotate",Mn.value.deg)}Mn.value.enableTransition=qr}function Br(Dr){var Nr;((Nr=Dr.detail)==null?void 0:Nr.focusReason)==="pointer"&&Dr.preventDefault()}function Tr(){Dt.closeOnPressEscape&&Un()}function Pr(Dr){if(Dr.ctrlKey)return Dr.deltaY<0||Dr.deltaY>0?(Dr.preventDefault(),!1):void 0}return Vue.watch(()=>wn.value,Dr=>{Mn.value.scale=Dr}),Vue.watch(jn,()=>{Vue.nextTick(()=>{const Dr=vn.value;Dr!=null&&Dr.complete||(En.value=!0)})}),Vue.watch(Dn,Dr=>{ur(),Pt("switch",Dr)}),Vue.onMounted(()=>{In.value=!0,function(){const Dr=throttle$3(Er=>{switch(getEventCode(Er)){case EVENT_CODE$1.esc:Dt.closeOnPressEscape&&Un();break;case EVENT_CODE$1.space:or();break;case EVENT_CODE$1.left:yr();break;case EVENT_CODE$1.up:kr("zoomIn");break;case EVENT_CODE$1.right:_r();break;case EVENT_CODE$1.down:kr("zoomOut")}}),Nr=throttle$3(Er=>{kr((Er.deltaY||Er.deltaX)<0?"zoomIn":"zoomOut",{zoomRate:Dt.zoomRate,enableTransition:!1})});Cn.run(()=>{useEventListener$1(document,"keydown",Dr),useEventListener$1(bn,"wheel",Nr)})}(),Lt=useEventListener$1("wheel",Pr,{passive:!1})}),Ve({setActiveItem:Ar}),(Dr,Nr)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElTeleport$1),{to:"body",disabled:!l.teleported},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.Transition,{name:"viewer-fade",appear:""},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",{ref_key:"wrapper",ref:bn,tabindex:-1,class:Vue.normalizeClass(Vue.unref(An).e("wrapper")),style:Vue.normalizeStyle({zIndex:Fn.value})},[Vue.createVNode(Vue.unref(ElFocusTrap$1),{loop:"",trapped:"","focus-trap-el":bn.value,"focus-start-el":"container",onFocusoutPrevented:Br,onReleaseRequested:Tr},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",{class:Vue.normalizeClass(Vue.unref(An).e("mask")),onClick:Nr[0]||(Nr[0]=Vue.withModifiers(Er=>l.hideOnClickModal&&Un(),["self"]))},null,2),Vue.createCommentVNode(" CLOSE "),Vue.createElementVNode("span",{class:Vue.normalizeClass([Vue.unref(An).e("btn"),Vue.unref(An).e("close")]),onClick:Un},[Vue.createVNode(Vue.unref(ElIcon$1),null,{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(close_default))]),_:1})],2),Vue.createCommentVNode(" ARROW "),Rn.value?Vue.createCommentVNode("v-if",!0):(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,{key:0},[Vue.createElementVNode("span",{class:Vue.normalizeClass(Hn.value),onClick:yr},[Vue.createVNode(Vue.unref(ElIcon$1),null,{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(arrow_left_default))]),_:1})],2),Vue.createElementVNode("span",{class:Vue.normalizeClass(Gn.value),onClick:_r},[Vue.createVNode(Vue.unref(ElIcon$1),null,{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(arrow_right_default))]),_:1})],2)],64)),Dr.$slots.progress||l.showProgress?(Vue.openBlock(),Vue.createElementBlock("div",{key:1,class:Vue.normalizeClass([Vue.unref(An).e("btn"),Vue.unref(An).e("progress")])},[Vue.renderSlot(Dr.$slots,"progress",{activeIndex:Dn.value,total:l.urlList.length},()=>[Vue.createTextVNode(Vue.toDisplayString(Vn.value),1)])],2)):Vue.createCommentVNode("v-if",!0),Vue.createCommentVNode(" ACTIONS "),Vue.createElementVNode("div",{class:Vue.normalizeClass([Vue.unref(An).e("btn"),Vue.unref(An).e("actions")])},[Vue.createElementVNode("div",{class:Vue.normalizeClass(Vue.unref(An).e("actions__inner"))},[Vue.renderSlot(Dr.$slots,"toolbar",{actions:kr,prev:yr,next:_r,reset:or,activeIndex:Dn.value,setActiveItem:Ar},()=>[Vue.createVNode(Vue.unref(ElIcon$1),{onClick:Nr[1]||(Nr[1]=Er=>kr("zoomOut"))},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(zoom_out_default))]),_:1}),Vue.createVNode(Vue.unref(ElIcon$1),{onClick:Nr[2]||(Nr[2]=Er=>kr("zoomIn"))},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(zoom_in_default))]),_:1}),Vue.createElementVNode("i",{class:Vue.normalizeClass(Vue.unref(An).e("actions__divider"))},null,2),Vue.createVNode(Vue.unref(ElIcon$1),{onClick:or},{default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(Tn.value.icon)))]),_:1}),Vue.createElementVNode("i",{class:Vue.normalizeClass(Vue.unref(An).e("actions__divider"))},null,2),Vue.createVNode(Vue.unref(ElIcon$1),{onClick:Nr[3]||(Nr[3]=Er=>kr("anticlockwise"))},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(refresh_left_default))]),_:1}),Vue.createVNode(Vue.unref(ElIcon$1),{onClick:Nr[4]||(Nr[4]=Er=>kr("clockwise"))},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(refresh_right_default))]),_:1})])],2)],2),Vue.createCommentVNode(" CANVAS "),Vue.createElementVNode("div",{class:Vue.normalizeClass(Vue.unref(An).e("canvas"))},[Bn.value&&Dr.$slots["viewer-error"]?Vue.renderSlot(Dr.$slots,"viewer-error",{key:0,activeIndex:Dn.value,src:jn.value}):(Vue.openBlock(),Vue.createElementBlock("img",{ref_key:"imgRef",ref:vn,key:jn.value,src:jn.value,style:Vue.normalizeStyle(qn.value),class:Vue.normalizeClass(Vue.unref(An).e("img")),crossorigin:l.crossorigin,onLoad:Kn,onError:er,onMousedown:ir,onTouchstart:rr},null,46,_hoisted_1$28))],2),Vue.renderSlot(Dr.$slots,"default")]),_:3},8,["focus-trap-el"])],6)]),_:3})]),_:3},8,["disabled"]))}});const ElImageViewer$1=withInstall$1(_sfc_main$2U),linkProps=buildProps$1({type:{type:String,values:["primary","success","warning","info","danger","default"],default:void 0},underline:{type:[Boolean,String],values:[!0,!1,"always","never","hover"],default:void 0},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:iconPropType$1}}),linkEmits={click:l=>l instanceof MouseEvent},_hoisted_1$27=["href","target"];var _sfc_main$2T=Vue.defineComponent({name:"ElLink",__name:"link",props:linkProps,emits:linkEmits,setup(l,{emit:Ve}){const At=l,Et=Ve,kt=useGlobalConfig$1("link");useDeprecated$1({scope:"el-link",from:"The underline option (boolean)",replacement:"'always' | 'hover' | 'never'",version:"3.0.0",ref:"https://element-plus.org/en-US/component/link.html#underline"},Vue.computed(()=>isBoolean$3(At.underline)));const Dt=useNamespace$1("link"),Pt=Vue.computed(()=>{var An,hn,bn;return[Dt.b(),Dt.m((bn=(hn=At.type)!=null?hn:(An=kt.value)==null?void 0:An.type)!=null?bn:"default"),Dt.is("disabled",At.disabled),Dt.is("underline",Lt.value==="always"),Dt.is("hover-underline",Lt.value==="hover"&&!At.disabled)]}),Lt=Vue.computed(()=>{var An,hn,bn;return isBoolean$3(At.underline)?At.underline?"hover":"never":(bn=(hn=At.underline)!=null?hn:(An=kt.value)==null?void 0:An.underline)!=null?bn:"hover"});function jt(An){At.disabled||Et("click",An)}return(An,hn)=>(Vue.openBlock(),Vue.createElementBlock("a",{class:Vue.normalizeClass(Pt.value),href:l.disabled||!l.href?void 0:l.href,target:l.disabled||!l.href?void 0:l.target,onClick:jt},[l.icon?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElIcon$1),{key:0},{default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(l.icon)))]),_:1})):Vue.createCommentVNode("v-if",!0),An.$slots.default?(Vue.openBlock(),Vue.createElementBlock("span",{key:1,class:Vue.normalizeClass(Vue.unref(Dt).e("inner"))},[Vue.renderSlot(An.$slots,"default")],2)):Vue.createCommentVNode("v-if",!0),An.$slots.icon?Vue.renderSlot(An.$slots,"icon",{key:2}):Vue.createCommentVNode("v-if",!0)],10,_hoisted_1$27))}});const ElLink=withInstall$1(_sfc_main$2T),isValidComponentSize=l=>["",...componentSizes$1].includes(l);function createLoadingComponent(l,Ve){let At;const Et=Vue.ref(!1),kt=Vue.reactive({...l,originalPosition:"",originalOverflow:"",visible:!1});function Dt(){var hn,bn;(bn=(hn=An.$el)==null?void 0:hn.parentNode)==null||bn.removeChild(An.$el)}function Pt(){if(!Et.value)return;const hn=kt.parent;Et.value=!1,hn.vLoadingAddClassList=void 0,function(){const bn=kt.parent,vn=An.ns;if(!bn.vLoadingAddClassList){let Cn=bn.getAttribute("loading-number");Cn=Number.parseInt(Cn)-1,Cn?bn.setAttribute("loading-number",Cn.toString()):(removeClass$1(bn,vn.bm("parent","relative")),bn.removeAttribute("loading-number")),removeClass$1(bn,vn.bm("parent","hidden"))}Dt(),jt.unmount()}()}const Lt=Vue.defineComponent({name:"ElLoading",setup(hn,{expose:bn}){const{ns:vn,zIndex:Cn}=useGlobalComponentSettings$1("loading");return bn({ns:vn,zIndex:Cn}),()=>{const wn=kt.spinner||kt.svg,En=Vue.h("svg",{class:"circular",viewBox:kt.svgViewBox?kt.svgViewBox:"0 0 50 50",...wn?{innerHTML:wn}:{}},[Vue.h("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),Bn=kt.text?Vue.h("p",{class:vn.b("text")},[kt.text]):void 0;return Vue.h(Vue.Transition,{name:vn.b("fade"),onAfterLeave:Pt},{default:Vue.withCtx(()=>[Vue.withDirectives(Vue.createVNode("div",{style:{backgroundColor:kt.background||""},class:[vn.b("mask"),kt.customClass,vn.is("fullscreen",kt.fullscreen)]},[Vue.h("div",{class:vn.b("spinner")},[En,Bn])]),[[Vue.vShow,kt.visible]])])})}}}),jt=Vue.createApp(Lt);Object.assign(jt._context,Ve??{});const An=jt.mount(document.createElement("div"));return{...Vue.toRefs(kt),setText:function(hn){kt.text=hn},removeElLoadingChild:Dt,close:function(){var hn;l.beforeClose&&!l.beforeClose()||(Et.value=!0,clearTimeout(At),At=setTimeout(Pt,400),kt.visible=!1,(hn=l.closed)==null||hn.call(l))},handleAfterLeave:Pt,vm:An,get $el(){return An.$el}}}let fullscreenInstance;const Loading=function(l={},Ve){if(!isClient$1)return;const At=resolveOptions(l);if(At.fullscreen&&fullscreenInstance)return fullscreenInstance;const Et=createLoadingComponent({...At,closed:()=>{var Dt;(Dt=At.closed)==null||Dt.call(At),At.fullscreen&&(fullscreenInstance=void 0)}},Ve??Loading._context);addStyle(At,At.parent,Et),addClassList(At,At.parent,Et),At.parent.vLoadingAddClassList=()=>addClassList(At,At.parent,Et);let kt=At.parent.getAttribute("loading-number");return kt=kt?`${Number.parseInt(kt)+1}`:"1",At.parent.setAttribute("loading-number",kt),At.parent.appendChild(Et.$el),Vue.nextTick(()=>Et.visible.value=At.visible),At.fullscreen&&(fullscreenInstance=Et),Et},resolveOptions=l=>{var Ve,At,Et,kt;let Dt;return Dt=isString$6(l.target)?(Ve=document.querySelector(l.target))!=null?Ve:document.body:l.target||document.body,{parent:Dt===document.body||l.body?document.body:Dt,background:l.background||"",svg:l.svg||"",svgViewBox:l.svgViewBox||"",spinner:l.spinner||!1,text:l.text||"",fullscreen:Dt===document.body&&((At=l.fullscreen)==null||At),lock:(Et=l.lock)!=null&&Et,customClass:l.customClass||"",visible:(kt=l.visible)==null||kt,beforeClose:l.beforeClose,closed:l.closed,target:Dt}},addStyle=async(l,Ve,At)=>{const{nextZIndex:Et}=At.vm.zIndex||At.vm._.exposed.zIndex,kt={};if(l.fullscreen)At.originalPosition.value=getStyle$2(document.body,"position"),At.originalOverflow.value=getStyle$2(document.body,"overflow"),kt.zIndex=Et();else if(l.parent===document.body){At.originalPosition.value=getStyle$2(document.body,"position"),await Vue.nextTick();for(const Dt of["top","left"]){const Pt=Dt==="top"?"scrollTop":"scrollLeft";kt[Dt]=l.target.getBoundingClientRect()[Dt]+document.body[Pt]+document.documentElement[Pt]-Number.parseInt(getStyle$2(document.body,`margin-${Dt}`),10)+"px"}for(const Dt of["height","width"])kt[Dt]=`${l.target.getBoundingClientRect()[Dt]}px`}else At.originalPosition.value=getStyle$2(Ve,"position");for(const[Dt,Pt]of Object.entries(kt))At.$el.style[Dt]=Pt},addClassList=(l,Ve,At)=>{const Et=At.vm.ns||At.vm._.exposed.ns;["absolute","fixed","sticky"].includes(At.originalPosition.value)?removeClass$1(Ve,Et.bm("parent","relative")):addClass$2(Ve,Et.bm("parent","relative")),l.fullscreen&&l.lock?addClass$2(Ve,Et.bm("parent","hidden")):removeClass$1(Ve,Et.bm("parent","hidden"))};Loading._context=null;const INSTANCE_KEY=Symbol("ElLoading"),getAttributeName=l=>`element-loading-${hyphenate$1(l)}`,createInstance=(l,Ve)=>{var At,Et,kt,Dt;const Pt=Ve.instance,Lt=vn=>isObject$a(Ve.value)?Ve.value[vn]:void 0,jt=vn=>(Cn=>{const wn=isString$6(Cn)&&(Pt==null?void 0:Pt[Cn])||Cn;return Vue.ref(wn)})(Lt(vn)||l.getAttribute(getAttributeName(vn))),An=(At=Lt("fullscreen"))!=null?At:Ve.modifiers.fullscreen,hn={text:jt("text"),svg:jt("svg"),svgViewBox:jt("svgViewBox"),spinner:jt("spinner"),background:jt("background"),customClass:jt("customClass"),fullscreen:An,target:(Et=Lt("target"))!=null?Et:An?void 0:l,body:(kt=Lt("body"))!=null?kt:Ve.modifiers.body,lock:(Dt=Lt("lock"))!=null?Dt:Ve.modifiers.lock},bn=Loading(hn);bn._context=vLoading._context,l[INSTANCE_KEY]={options:hn,instance:bn}},updateOptions=(l,Ve)=>{for(const At of Object.keys(l))Vue.isRef(l[At])&&(l[At].value=Ve[At])},vLoading={mounted(l,Ve){Ve.value&&createInstance(l,Ve)},updated(l,Ve){const At=l[INSTANCE_KEY];if(!Ve.value)return At==null||At.instance.close(),void(l[INSTANCE_KEY]=null);At?updateOptions(At.options,isObject$a(Ve.value)?Ve.value:{text:l.getAttribute(getAttributeName("text")),svg:l.getAttribute(getAttributeName("svg")),svgViewBox:l.getAttribute(getAttributeName("svgViewBox")),spinner:l.getAttribute(getAttributeName("spinner")),background:l.getAttribute(getAttributeName("background")),customClass:l.getAttribute(getAttributeName("customClass"))}):createInstance(l,Ve)},unmounted(l){var Ve;(Ve=l[INSTANCE_KEY])==null||Ve.instance.close(),l[INSTANCE_KEY]=null},_context:null},ElLoading={install(l){Loading._context=l._context,vLoading._context=l._context,l.directive("loading",vLoading),l.config.globalProperties.$loading=Loading},directive:vLoading,service:Loading},messageTypes$1=["primary","success","info","warning","error"],messagePlacement=["top","top-left","top-right","bottom","bottom-left","bottom-right"],MESSAGE_DEFAULT_PLACEMENT="top",messageDefaults$1=mutable$1({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:isClient$1?document.body:void 0}),messageProps$1=buildProps$1({customClass:{type:String,default:messageDefaults$1.customClass},dangerouslyUseHTMLString:{type:Boolean,default:messageDefaults$1.dangerouslyUseHTMLString},duration:{type:Number,default:messageDefaults$1.duration},icon:{type:iconPropType$1,default:messageDefaults$1.icon},id:{type:String,default:messageDefaults$1.id},message:{type:definePropType$1([String,Object,Function]),default:messageDefaults$1.message},onClose:{type:definePropType$1(Function),default:messageDefaults$1.onClose},showClose:{type:Boolean,default:messageDefaults$1.showClose},type:{type:String,values:messageTypes$1,default:messageDefaults$1.type},plain:{type:Boolean,default:messageDefaults$1.plain},offset:{type:Number,default:messageDefaults$1.offset},placement:{type:String,values:messagePlacement,default:messageDefaults$1.placement},zIndex:{type:Number,default:messageDefaults$1.zIndex},grouping:{type:Boolean,default:messageDefaults$1.grouping},repeatNum:{type:Number,default:messageDefaults$1.repeatNum}}),messageEmits$1={destroy:()=>!0},placementInstances=Vue.shallowReactive({}),getOrCreatePlacementInstances=l=>(placementInstances[l]||(placementInstances[l]=Vue.shallowReactive([])),placementInstances[l]),getInstance$1=(l,Ve)=>{const At=placementInstances[Ve]||[],Et=At.findIndex(Pt=>Pt.id===l),kt=At[Et];let Dt;return Et>0&&(Dt=At[Et-1]),{current:kt,prev:Dt}},getLastOffset$1=(l,Ve)=>{const{prev:At}=getInstance$1(l,Ve);return At?At.vm.exposed.bottom.value:0},getOffsetOrSpace$1=(l,Ve,At)=>(placementInstances[At]||[]).findIndex(Et=>Et.id===l)>0?16:Ve,_hoisted_1$26=["id"],_hoisted_2$1v=["innerHTML"];var _sfc_main$2S=Vue.defineComponent({name:"ElMessage",__name:"message",props:messageProps$1,emits:messageEmits$1,setup(l,{expose:Ve,emit:At}){const{Close:Et}=TypeComponents$1,kt=l,Dt=At,Pt=Vue.ref(!1),{ns:Lt,zIndex:jt}=useGlobalComponentSettings$1("message"),{currentZIndex:An,nextZIndex:hn}=jt,bn=Vue.ref(),vn=Vue.ref(!1),Cn=Vue.ref(0);let wn;const En=Vue.computed(()=>kt.type?kt.type==="error"?"danger":kt.type:"info"),Bn=Vue.computed(()=>{const qn=kt.type;return{[Lt.bm("icon",qn)]:qn&&TypeComponentsMap$1[qn]}}),In=Vue.computed(()=>kt.icon||TypeComponentsMap$1[kt.type]||""),Dn=Vue.computed(()=>kt.placement||MESSAGE_DEFAULT_PLACEMENT),Tn=Vue.computed(()=>getLastOffset$1(kt.id,Dn.value)),Mn=Vue.computed(()=>getOffsetOrSpace$1(kt.id,kt.offset,Dn.value)+Tn.value),Fn=Vue.computed(()=>Cn.value+Mn.value),Rn=Vue.computed(()=>Dn.value.includes("left")?Lt.is("left"):Dn.value.includes("right")?Lt.is("right"):Lt.is("center")),On=Vue.computed(()=>Dn.value.startsWith("top")?"top":"bottom"),Pn=Vue.computed(()=>({[On.value]:`${Mn.value}px`,zIndex:An.value}));function jn(){kt.duration!==0&&({stop:wn}=useTimeoutFn$1(()=>{Gn()},kt.duration))}function Hn(){wn==null||wn()}function Gn(){vn.value=!1,Vue.nextTick(()=>{var qn;Pt.value||((qn=kt.onClose)==null||qn.call(kt),Dt("destroy"))})}return Vue.onMounted(()=>{jn(),hn(),vn.value=!0}),Vue.watch(()=>kt.repeatNum,()=>{Hn(),jn()}),useEventListener$1(document,"keydown",function(qn){getEventCode(qn)===EVENT_CODE$1.esc&&Gn()}),useResizeObserver$1(bn,()=>{Cn.value=bn.value.getBoundingClientRect().height}),Ve({visible:vn,bottom:Fn,close:Gn}),(qn,Vn)=>(Vue.openBlock(),Vue.createBlock(Vue.Transition,{name:Vue.unref(Lt).b("fade"),onBeforeEnter:Vn[0]||(Vn[0]=Un=>Pt.value=!0),onBeforeLeave:l.onClose,onAfterLeave:Vn[1]||(Vn[1]=Un=>qn.$emit("destroy")),persisted:""},{default:Vue.withCtx(()=>[Vue.withDirectives(Vue.createElementVNode("div",{id:l.id,ref_key:"messageRef",ref:bn,class:Vue.normalizeClass([Vue.unref(Lt).b(),{[Vue.unref(Lt).m(l.type)]:l.type},Vue.unref(Lt).is("closable",l.showClose),Vue.unref(Lt).is("plain",l.plain),Vue.unref(Lt).is("bottom",On.value==="bottom"),Rn.value,l.customClass]),style:Vue.normalizeStyle(Pn.value),role:"alert",onMouseenter:Hn,onMouseleave:jn},[l.repeatNum>1?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElBadge$1),{key:0,value:l.repeatNum,type:En.value,class:Vue.normalizeClass(Vue.unref(Lt).e("badge"))},null,8,["value","type","class"])):Vue.createCommentVNode("v-if",!0),In.value?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElIcon$1),{key:1,class:Vue.normalizeClass([Vue.unref(Lt).e("icon"),Bn.value])},{default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(In.value)))]),_:1},8,["class"])):Vue.createCommentVNode("v-if",!0),Vue.renderSlot(qn.$slots,"default",{},()=>[l.dangerouslyUseHTMLString?(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,{key:1},[Vue.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),Vue.createElementVNode("p",{class:Vue.normalizeClass(Vue.unref(Lt).e("content")),innerHTML:l.message},null,10,_hoisted_2$1v)],2112)):(Vue.openBlock(),Vue.createElementBlock("p",{key:0,class:Vue.normalizeClass(Vue.unref(Lt).e("content"))},Vue.toDisplayString(l.message),3))]),l.showClose?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElIcon$1),{key:2,class:Vue.normalizeClass(Vue.unref(Lt).e("closeBtn")),onClick:Vue.withModifiers(Gn,["stop"])},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(Et))]),_:1},8,["class"])):Vue.createCommentVNode("v-if",!0)],46,_hoisted_1$26),[[Vue.vShow,vn.value]])]),_:3},8,["name","onBeforeLeave"]))}});let seed$1=1;const normalizeAppendTo=l=>{if(l.appendTo){if(isString$6(l.appendTo)){let Ve=document.querySelector(l.appendTo);isElement$1(Ve)||(debugWarn$1("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),Ve=document.body),l.appendTo=Ve}}else l.appendTo=document.body},normalizePlacement=l=>{!l.placement&&isString$6(messageConfig$1.placement)&&messageConfig$1.placement&&(l.placement=messageConfig$1.placement),l.placement||(l.placement=MESSAGE_DEFAULT_PLACEMENT),messagePlacement.includes(l.placement)||(debugWarn$1("ElMessage",`Invalid placement: ${l.placement}. Falling back to '${MESSAGE_DEFAULT_PLACEMENT}'.`),l.placement=MESSAGE_DEFAULT_PLACEMENT)},normalizeOptions$2=l=>{const Ve=!l||isString$6(l)||Vue.isVNode(l)||isFunction$5(l)?{message:l}:l,At={...messageDefaults$1,...Ve};return normalizeAppendTo(At),normalizePlacement(At),isBoolean$3(messageConfig$1.grouping)&&!At.grouping&&(At.grouping=messageConfig$1.grouping),isNumber$5(messageConfig$1.duration)&&At.duration===3e3&&(At.duration=messageConfig$1.duration),isNumber$5(messageConfig$1.offset)&&At.offset===16&&(At.offset=messageConfig$1.offset),isBoolean$3(messageConfig$1.showClose)&&!At.showClose&&(At.showClose=messageConfig$1.showClose),isBoolean$3(messageConfig$1.plain)&&!At.plain&&(At.plain=messageConfig$1.plain),At},closeMessage$1=l=>{const Ve=l.props.placement||MESSAGE_DEFAULT_PLACEMENT,At=placementInstances[Ve],Et=At.indexOf(l);if(Et===-1)return;At.splice(Et,1);const{handler:kt}=l;kt.close()},createMessage$1=({appendTo:l,...Ve},At)=>{const Et="message_"+seed$1++,kt=Ve.onClose,Dt=document.createElement("div"),Pt={...Ve,id:Et,onClose:()=>{kt==null||kt(),closeMessage$1(hn)},onDestroy:()=>{Vue.render(null,Dt)}},Lt=Vue.createVNode(_sfc_main$2S,Pt,isFunction$5(Pt.message)||Vue.isVNode(Pt.message)?{default:isFunction$5(Pt.message)?Pt.message:()=>Pt.message}:null);Lt.appContext=At||message$1._context,Vue.render(Lt,Dt),l.appendChild(Dt.firstElementChild);const jt=Lt.component,An={close:()=>{jt.exposed.close()}},hn={id:Et,vnode:Lt,vm:jt,handler:An,props:Lt.component.props};return hn},message$1=(l={},Ve)=>{if(!isClient$1)return{close:()=>{}};const At=normalizeOptions$2(l),Et=getOrCreatePlacementInstances(At.placement||MESSAGE_DEFAULT_PLACEMENT);if(At.grouping&&Et.length){const Dt=Et.find(({vnode:Pt})=>{var Lt;return((Lt=Pt.props)==null?void 0:Lt.message)===At.message});if(Dt)return Dt.props.repeatNum+=1,Dt.props.type=At.type,Dt.handler}if(isNumber$5(messageConfig$1.max)&&Et.length>=messageConfig$1.max)return{close:()=>{}};const kt=createMessage$1(At,Ve);return Et.push(kt),kt.handler};function closeAll$1(l){for(const Ve in placementInstances)if(hasOwn$3(placementInstances,Ve)){const At=[...placementInstances[Ve]];for(const Et of At)l&&l!==Et.props.type||Et.handler.close()}}function closeAllByPlacement(l){placementInstances[l]&&[...placementInstances[l]].forEach(Ve=>Ve.handler.close())}messageTypes$1.forEach(l=>{message$1[l]=(Ve={},At)=>{const Et=normalizeOptions$2(Ve);return message$1({...Et,type:l},At)}}),message$1.closeAll=closeAll$1,message$1.closeAllByPlacement=closeAllByPlacement,message$1._context=null;const ElMessage$2=withInstallFunction$1(message$1,"$message"),FOCUSABLE_CHILDREN="_trap-focus-children",FOCUS_STACK=[],FOCUS_HANDLER=l=>{var Ve;if(FOCUS_STACK.length===0)return;const At=getEventCode(l),Et=FOCUS_STACK[FOCUS_STACK.length-1][FOCUSABLE_CHILDREN];if(Et.length>0&&At===EVENT_CODE$1.tab){if(Et.length===1)return l.preventDefault(),void(document.activeElement!==Et[0]&&Et[0].focus());const kt=l.shiftKey,Dt=l.target===Et[0],Pt=l.target===Et[Et.length-1];if(Dt&&kt&&(l.preventDefault(),Et[Et.length-1].focus()),Pt&&!kt&&(l.preventDefault(),Et[0].focus()),process.env.NODE_ENV==="test"){const Lt=Et.indexOf(l.target);Lt!==-1&&((Ve=Et[kt?Lt-1:Lt+1])==null||Ve.focus())}}},TrapFocus={beforeMount(l){l[FOCUSABLE_CHILDREN]=obtainAllFocusableElements$2(l),FOCUS_STACK.push(l),FOCUS_STACK.length<=1&&document.addEventListener("keydown",FOCUS_HANDLER)},updated(l){Vue.nextTick(()=>{l[FOCUSABLE_CHILDREN]=obtainAllFocusableElements$2(l)})},unmounted(){FOCUS_STACK.shift(),FOCUS_STACK.length===0&&document.removeEventListener("keydown",FOCUS_HANDLER)}};var _sfc_main$2R=Vue.defineComponent({name:"ElMessageBox",directives:{TrapFocus},components:{ElButton:ElButton$1,ElFocusTrap:ElFocusTrap$1,ElInput:ElInput$1,ElOverlay:ElOverlay$1,ElIcon:ElIcon$1,...TypeComponents$1},inheritAttrs:!1,props:{buttonSize:{type:String,validator:isValidComponentSize},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:Boolean,container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(l,{emit:Ve}){const{locale:At,zIndex:Et,ns:kt,size:Dt}=useGlobalComponentSettings$1("message-box",Vue.computed(()=>l.buttonSize)),{t:Pt}=At,{nextZIndex:Lt}=Et,jt=Vue.ref(!1),An=Vue.reactive({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",cancelButtonType:"",confirmButtonType:"primary",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",closeIcon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:Vue.markRaw(loading_default),cancelButtonLoadingIcon:Vue.markRaw(loading_default),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:Lt()}),hn=Vue.computed(()=>{const Kn=An.type;return{[kt.bm("icon",Kn)]:Kn&&TypeComponentsMap$1[Kn]}}),bn=useId$1(),vn=useId$1(),Cn=Vue.computed(()=>{const Kn=An.type;return An.icon||Kn&&TypeComponentsMap$1[Kn]||""}),wn=Vue.computed(()=>!!An.message),En=Vue.ref(),Bn=Vue.ref(),In=Vue.ref(),Dn=Vue.ref(),Tn=Vue.ref(),Mn=Vue.computed(()=>An.confirmButtonClass);Vue.watch(()=>An.inputValue,async Kn=>{await Vue.nextTick(),l.boxType==="prompt"&&Kn&&qn()},{immediate:!0}),Vue.watch(()=>jt.value,Kn=>{var er,ir;Kn&&(l.boxType!=="prompt"&&(An.autofocus?In.value=(ir=(er=Tn.value)==null?void 0:er.$el)!=null?ir:En.value:In.value=En.value),An.zIndex=Lt()),l.boxType==="prompt"&&(Kn?Vue.nextTick().then(()=>{var rr;Dn.value&&Dn.value.$el&&(An.autofocus?In.value=(rr=Vn())!=null?rr:En.value:In.value=En.value)}):(An.editorErrorMessage="",An.validateError=!1))});const Fn=Vue.computed(()=>l.draggable),Rn=Vue.computed(()=>l.overflow),{isDragging:On}=useDraggable$1(En,Bn,Fn,Rn);function Pn(){jt.value&&(jt.value=!1,Vue.nextTick(()=>{An.action&&Ve("action",An.action)}))}Vue.onMounted(async()=>{await Vue.nextTick(),l.closeOnHashChange&&window.addEventListener("hashchange",Pn)}),Vue.onBeforeUnmount(()=>{l.closeOnHashChange&&window.removeEventListener("hashchange",Pn)});const jn=()=>{l.closeOnClickModal&&Gn(An.distinguishCancelAndClose?"close":"cancel")},Hn=useSameTarget$1(jn),Gn=Kn=>{var er;(l.boxType!=="prompt"||Kn!=="confirm"||qn())&&(An.action=Kn,An.beforeClose?(er=An.beforeClose)==null||er.call(An,Kn,An,Pn):Pn())},qn=()=>{if(l.boxType==="prompt"){const Kn=An.inputPattern;if(Kn&&!Kn.test(An.inputValue||""))return An.editorErrorMessage=An.inputErrorMessage||Pt("el.messagebox.error"),An.validateError=!0,!1;const er=An.inputValidator;if(isFunction$5(er)){const ir=er(An.inputValue);if(ir===!1)return An.editorErrorMessage=An.inputErrorMessage||Pt("el.messagebox.error"),An.validateError=!0,!1;if(isString$6(ir))return An.editorErrorMessage=ir,An.validateError=!0,!1}}return An.editorErrorMessage="",An.validateError=!1,!0},Vn=()=>{var Kn,er;const ir=(Kn=Dn.value)==null?void 0:Kn.$refs;return(er=ir==null?void 0:ir.input)!=null?er:ir==null?void 0:ir.textarea},Un=()=>{Gn("close")};return l.lockScroll&&useLockscreen$1(jt,{ns:kt}),{...Vue.toRefs(An),ns:kt,overlayEvent:Hn,visible:jt,hasMessage:wn,typeClass:hn,contentId:bn,inputId:vn,btnSize:Dt,iconComponent:Cn,confirmButtonClasses:Mn,rootRef:En,focusStartRef:In,headerRef:Bn,inputRef:Dn,isDragging:On,confirmRef:Tn,doClose:Pn,handleClose:Un,onCloseRequested:()=>{l.closeOnPressEscape&&Un()},handleWrapperClick:jn,handleInputEnter:Kn=>{var er;if(An.inputType!=="textarea"&&!((er=Dn.value)!=null&&er.isComposing))return Kn.preventDefault(),Gn("confirm")},handleAction:Gn,t:Pt}}});const _hoisted_1$25=["aria-label","aria-describedby"],_hoisted_2$1u=["aria-label"],_hoisted_3$19=["id"];function _sfc_render$1K(l,Ve,At,Et,kt,Dt){const Pt=Vue.resolveComponent("el-icon"),Lt=Vue.resolveComponent("el-input"),jt=Vue.resolveComponent("el-button"),An=Vue.resolveComponent("el-focus-trap"),hn=Vue.resolveComponent("el-overlay");return Vue.openBlock(),Vue.createBlock(Vue.Transition,{name:"fade-in-linear",onAfterLeave:Ve[11]||(Ve[11]=bn=>l.$emit("vanish")),persisted:""},{default:Vue.withCtx(()=>[Vue.withDirectives(Vue.createVNode(hn,{"z-index":l.zIndex,"overlay-class":[l.ns.is("message-box"),l.modalClass],mask:l.modal},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",{role:"dialog","aria-label":l.title,"aria-modal":"true","aria-describedby":l.showInput?void 0:l.contentId,class:Vue.normalizeClass(`${l.ns.namespace.value}-overlay-message-box`),onClick:Ve[8]||(Ve[8]=(...bn)=>l.overlayEvent.onClick&&l.overlayEvent.onClick(...bn)),onMousedown:Ve[9]||(Ve[9]=(...bn)=>l.overlayEvent.onMousedown&&l.overlayEvent.onMousedown(...bn)),onMouseup:Ve[10]||(Ve[10]=(...bn)=>l.overlayEvent.onMouseup&&l.overlayEvent.onMouseup(...bn))},[Vue.createVNode(An,{loop:"",trapped:l.visible,"focus-trap-el":l.rootRef,"focus-start-el":l.focusStartRef,onReleaseRequested:l.onCloseRequested},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",{ref:"rootRef",class:Vue.normalizeClass([l.ns.b(),l.customClass,l.ns.is("draggable",l.draggable),l.ns.is("dragging",l.isDragging),{[l.ns.m("center")]:l.center}]),style:Vue.normalizeStyle(l.customStyle),tabindex:"-1",onClick:Ve[7]||(Ve[7]=Vue.withModifiers(()=>{},["stop"]))},[l.title!==null&&l.title!==void 0?(Vue.openBlock(),Vue.createElementBlock("div",{key:0,ref:"headerRef",class:Vue.normalizeClass([l.ns.e("header"),{"show-close":l.showClose}])},[Vue.createElementVNode("div",{class:Vue.normalizeClass(l.ns.e("title"))},[l.iconComponent&&l.center?(Vue.openBlock(),Vue.createBlock(Pt,{key:0,class:Vue.normalizeClass([l.ns.e("status"),l.typeClass])},{default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(l.iconComponent)))]),_:1},8,["class"])):Vue.createCommentVNode("v-if",!0),Vue.createElementVNode("span",null,Vue.toDisplayString(l.title),1)],2),l.showClose?(Vue.openBlock(),Vue.createElementBlock("button",{key:0,type:"button",class:Vue.normalizeClass(l.ns.e("headerbtn")),"aria-label":l.t("el.messagebox.close"),onClick:Ve[0]||(Ve[0]=bn=>l.handleAction(l.distinguishCancelAndClose?"close":"cancel")),onKeydown:Ve[1]||(Ve[1]=Vue.withKeys(Vue.withModifiers(bn=>l.handleAction(l.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[Vue.createVNode(Pt,{class:Vue.normalizeClass(l.ns.e("close"))},{default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(l.closeIcon||"close")))]),_:1},8,["class"])],42,_hoisted_2$1u)):Vue.createCommentVNode("v-if",!0)],2)):Vue.createCommentVNode("v-if",!0),Vue.createElementVNode("div",{id:l.contentId,class:Vue.normalizeClass(l.ns.e("content"))},[Vue.createElementVNode("div",{class:Vue.normalizeClass(l.ns.e("container"))},[l.iconComponent&&!l.center&&l.hasMessage?(Vue.openBlock(),Vue.createBlock(Pt,{key:0,class:Vue.normalizeClass([l.ns.e("status"),l.typeClass])},{default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(l.iconComponent)))]),_:1},8,["class"])):Vue.createCommentVNode("v-if",!0),l.hasMessage?(Vue.openBlock(),Vue.createElementBlock("div",{key:1,class:Vue.normalizeClass(l.ns.e("message"))},[Vue.renderSlot(l.$slots,"default",{},()=>[l.dangerouslyUseHTMLString?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(l.showInput?"label":"p"),{key:1,for:l.showInput?l.inputId:void 0,innerHTML:l.message},null,8,["for","innerHTML"])):(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(l.showInput?"label":"p"),{key:0,for:l.showInput?l.inputId:void 0,textContent:Vue.toDisplayString(l.message)},null,8,["for","textContent"]))])],2)):Vue.createCommentVNode("v-if",!0)],2),Vue.withDirectives(Vue.createElementVNode("div",{class:Vue.normalizeClass(l.ns.e("input"))},[Vue.createVNode(Lt,{id:l.inputId,ref:"inputRef",modelValue:l.inputValue,"onUpdate:modelValue":Ve[2]||(Ve[2]=bn=>l.inputValue=bn),type:l.inputType,placeholder:l.inputPlaceholder,"aria-invalid":l.validateError,class:Vue.normalizeClass({invalid:l.validateError}),onKeydown:Vue.withKeys(l.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),Vue.createElementVNode("div",{class:Vue.normalizeClass(l.ns.e("errormsg")),style:Vue.normalizeStyle({visibility:l.editorErrorMessage?"visible":"hidden"})},Vue.toDisplayString(l.editorErrorMessage),7)],2),[[Vue.vShow,l.showInput]])],10,_hoisted_3$19),Vue.createElementVNode("div",{class:Vue.normalizeClass(l.ns.e("btns"))},[l.showCancelButton?(Vue.openBlock(),Vue.createBlock(jt,{key:0,type:l.cancelButtonType==="text"?"":l.cancelButtonType,text:l.cancelButtonType==="text",loading:l.cancelButtonLoading,"loading-icon":l.cancelButtonLoadingIcon,class:Vue.normalizeClass([l.cancelButtonClass]),round:l.roundButton,size:l.btnSize,onClick:Ve[3]||(Ve[3]=bn=>l.handleAction("cancel")),onKeydown:Ve[4]||(Ve[4]=Vue.withKeys(Vue.withModifiers(bn=>l.handleAction("cancel"),["prevent"]),["enter"]))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(l.cancelButtonText||l.t("el.messagebox.cancel")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","size"])):Vue.createCommentVNode("v-if",!0),Vue.withDirectives(Vue.createVNode(jt,{ref:"confirmRef",type:l.confirmButtonType==="text"?"":l.confirmButtonType,text:l.confirmButtonType==="text",loading:l.confirmButtonLoading,"loading-icon":l.confirmButtonLoadingIcon,class:Vue.normalizeClass([l.confirmButtonClasses]),round:l.roundButton,disabled:l.confirmButtonDisabled,size:l.btnSize,onClick:Ve[5]||(Ve[5]=bn=>l.handleAction("confirm")),onKeydown:Ve[6]||(Ve[6]=Vue.withKeys(Vue.withModifiers(bn=>l.handleAction("confirm"),["prevent"]),["enter"]))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(l.confirmButtonText||l.t("el.messagebox.confirm")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","disabled","size"]),[[Vue.vShow,l.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,_hoisted_1$25)]),_:3},8,["z-index","overlay-class","mask"]),[[Vue.vShow,l.visible]])]),_:3})}var MessageBoxConstructor=_export_sfc$3(_sfc_main$2R,[["render",_sfc_render$1K]]);const messageInstance=new Map,getAppendToElement=l=>{let Ve=document.body;return l.appendTo&&(isString$6(l.appendTo)&&(Ve=document.querySelector(l.appendTo)),isElement$1(l.appendTo)&&(Ve=l.appendTo),isElement$1(Ve)||(debugWarn$1("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),Ve=document.body)),Ve},initInstance=(l,Ve,At=null)=>{const Et=Vue.createVNode(MessageBoxConstructor,l,isFunction$5(l.message)||Vue.isVNode(l.message)?{default:isFunction$5(l.message)?l.message:()=>l.message}:null);return Et.appContext=At,Vue.render(Et,Ve),getAppendToElement(l).appendChild(Ve.firstElementChild),Et.component},genContainer=()=>document.createElement("div"),showMessage=(l,Ve)=>{const At=genContainer();l.onVanish=()=>{Vue.render(null,At),messageInstance.delete(kt)},l.onAction=Dt=>{const Pt=messageInstance.get(kt);let Lt;Lt=l.showInput?{value:kt.inputValue,action:Dt}:Dt,l.callback?l.callback(Lt,Et.proxy):Dt==="cancel"||Dt==="close"?l.distinguishCancelAndClose&&Dt!=="cancel"?Pt.reject("close"):Pt.reject("cancel"):Pt.resolve(Lt)};const Et=initInstance(l,At,Ve),kt=Et.proxy;for(const Dt in l)hasOwn$3(l,Dt)&&!hasOwn$3(kt.$props,Dt)&&(Dt==="closeIcon"&&isObject$a(l[Dt])?kt[Dt]=Vue.markRaw(l[Dt]):kt[Dt]=l[Dt]);return kt.visible=!0,kt};function MessageBox(l,Ve=null){if(!isClient$1)return Promise.reject();let At;return isString$6(l)||Vue.isVNode(l)?l={message:l}:At=l.callback,new Promise((Et,kt)=>{const Dt=showMessage(l,Ve??MessageBox._context);messageInstance.set(Dt,{options:l,callback:At,resolve:Et,reject:kt})})}const MESSAGE_BOX_VARIANTS=["alert","confirm","prompt"],MESSAGE_BOX_DEFAULT_OPTS={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};function messageBoxFactory(l){return(Ve,At,Et,kt)=>{let Dt="";return isObject$a(At)?(Et=At,Dt=""):Dt=isUndefined$2(At)?"":At,MessageBox(Object.assign({title:Dt,message:Ve,type:"",...MESSAGE_BOX_DEFAULT_OPTS[l]},Et,{boxType:l}),kt)}}MESSAGE_BOX_VARIANTS.forEach(l=>{MessageBox[l]=messageBoxFactory(l)}),MessageBox.close=()=>{messageInstance.forEach((l,Ve)=>{Ve.doClose()}),messageInstance.clear()},MessageBox._context=null;const _MessageBox=MessageBox;_MessageBox.install=l=>{_MessageBox._context=l._context,l.config.globalProperties.$msgbox=_MessageBox,l.config.globalProperties.$messageBox=_MessageBox,l.config.globalProperties.$alert=_MessageBox.alert,l.config.globalProperties.$confirm=_MessageBox.confirm,l.config.globalProperties.$prompt=_MessageBox.prompt};const ElMessageBox=_MessageBox;function assign$8(l){for(var Ve=1;Ve<arguments.length;Ve++){var At=arguments[Ve];for(var Et in At)l[Et]=At[Et]}return l}var defaultConverter={read:function(l){return l[0]==='"'&&(l=l.slice(1,-1)),l.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(l){return encodeURIComponent(l).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function init$4(l,Ve){function At(Et,kt,Dt){if(typeof document<"u"){typeof(Dt=assign$8({},Ve,Dt)).expires=="number"&&(Dt.expires=new Date(Date.now()+864e5*Dt.expires)),Dt.expires&&(Dt.expires=Dt.expires.toUTCString()),Et=encodeURIComponent(Et).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var Pt="";for(var Lt in Dt)Dt[Lt]&&(Pt+="; "+Lt,Dt[Lt]!==!0&&(Pt+="="+Dt[Lt].split(";")[0]));return document.cookie=Et+"="+l.write(kt,Et)+Pt}}return Object.create({set:At,get:function(Et){if(typeof document<"u"&&(!arguments.length||Et)){for(var kt=document.cookie?document.cookie.split("; "):[],Dt={},Pt=0;Pt<kt.length;Pt++){var Lt=kt[Pt].split("="),jt=Lt.slice(1).join("=");try{var An=decodeURIComponent(Lt[0]);if(Dt[An]=l.read(jt,An),Et===An)break}catch{}}return Et?Dt[Et]:Dt}},remove:function(Et,kt){At(Et,"",assign$8({},kt,{expires:-1}))},withAttributes:function(Et){return init$4(this.converter,assign$8({},this.attributes,Et))},withConverter:function(Et){return init$4(assign$8({},this.converter,Et),this.attributes)}},{attributes:{value:Object.freeze(Ve)},converter:{value:Object.freeze(l)}})}var api$1=init$4(defaultConverter,{path:"/"});const jwtKey="JWT",currentUserNameKey="USERNAME",currentTenantUserNameKey="TENANT_USERNAME",currentUserInfoKey="CURRENT_USER",currentSystemUrlKey="CURRENT_SYSTEM_URL_",langKey="CURRENT_LANGUAGE",allLangKey="AMB_LANG_INFO",versionEnv="VERSION_ENVIRONMENT",userVersion="CURRENT_USER_SYSTEM_VERSION",runDevpJwtKey="_runDevpJWT",themeKey="CURRENT_THEME",allThemeKey="AMB_THEME_INFO";function getToken$2(){let l;return isDevpSystem$1()?l=getMyToken():(l=getSessionCache$1(runDevpJwtKey),l||(l=getMyToken())),l}function isDevpSystem$1(){let l=!1;const Ve=window.$vueApp.config.globalProperties.systemCode;return Ve&&Ve==="devp"&&(l=!0),l}function getMyToken(){let l=getCookieCache$1(jwtKey);return l||(l=getSessionCache$1(jwtKey)),l}function setToken$1(l){setCookieCache(jwtKey,l),setSessionCache$1(jwtKey,l)}function removeToken$1(){removeCookieCache(jwtKey),removeSessionCache(jwtKey),removeSessionCache(runDevpJwtKey)}function getUsername$1(){let l=getRunInfoKey$1(currentUserNameKey),Ve=getCookieCache$1(l);return Ve||(Ve=getSessionCache$1(l)),Ve}function setUsername$1(l){let Ve=getRunInfoKey$1(currentUserNameKey);setSessionCache$1(Ve,l),setCookieCache(Ve,l)}function removeUsername$1(){removeSessionCache(currentUserNameKey),removeCookieCache(currentUserNameKey)}function getTenantUsername$1(){let l=getCookieCache$1(currentTenantUserNameKey);return l||(l=getSessionCache$1(currentTenantUserNameKey)),l}function setTenantUsername$1(l){setSessionCache$1(currentTenantUserNameKey,l),setCookieCache(currentTenantUserNameKey,l)}function removeTenantUsername$1(){removeSessionCache(currentTenantUserNameKey),removeCookieCache(currentTenantUserNameKey)}function getCurrentUser$1(){return getCurrentUserByKey(getRunInfoKey$1(currentUserInfoKey))}function getCurrentUserByKey(l){let Ve=getCookieCache$1(l);if(Ve||(Ve=getSessionCache$1(l)),Ve)return JSON.parse(Ve)}function setCurrentUser$1(l){const Ve=getRunInfoKey$1(currentUserInfoKey);if(l){l.password&&(l.password=null);const At=JSON.stringify(l);setSessionCache$1(Ve,At),setCookieCache(Ve,At)}}function getRunInfoKey$1(l){let Ve=l;return isDevpSystem$1()||getSessionCache$1(runDevpJwtKey)&&(Ve="_run_"+Ve),Ve}function removeCurrentUser$1(){removeSessionCache(currentUserInfoKey),removeCookieCache(currentUserInfoKey)}function getCookieCache$1(l){return api$1.get(l)}function setCookieCache(l,Ve){api$1.set(l,Ve,{path:"/"})}function removeCookieCache(l){api$1.remove(l,{path:"/"})}function getSessionCache$1(l){return window.sessionStorage.getItem(l)}function setSessionCache$1(l,Ve){return window.sessionStorage.setItem(l,Ve)}function removeSessionCache(l){window.sessionStorage.removeItem(l)}function getSystemCacheUrlByCode(l){if(l||(l=window.$vueApp.config.globalProperties.customSystem),l||(l=window.$vueApp.config.globalProperties.systemCode),l){const Ve=getSystemCacheUrl(),At=Ve?Ve[l]:null;if(At)return At.backendUrl}}function getSystemCacheFrontendUrlByCode(l){if(l||(l=window.$vueApp.config.globalProperties.customSystem),l||(l=window.$vueApp.config.globalProperties.systemCode),l){const Ve=getSystemCacheUrl(),At=Ve?Ve[l]:null;if(At)return At.frontendUrl}}function getSystemCacheUrl(){let l=localStorage.getItem(currentSystemUrlKey);if(l)return JSON.parse(l)}function setSystemCacheUrl(l){if(l){const Ve=JSON.stringify(l);localStorage.setItem(currentSystemUrlKey,Ve)}}function removeSystemCacheUrl$1(){localStorage.removeItem(currentSystemUrlKey)}function getLanguage$1(){let l=getCookieCache$1(langKey);const Ve=window.$vueApp.config.globalProperties.projectModel;return!l&&Ve&&Ve==="developing.model"&&(l=getSessionCache$1(langKey)),l}function setLanguage$1(l){l||(l="zh_CN"),setCookieCache(langKey,l),setSessionCache$1(langKey,l)}function removeLanguage$1(){removeCookieCache(langKey),removeSessionCache(langKey)}function getAllLanguages$1(){let l=getCookieCache$1(allLangKey);const Ve=window.$vueApp.config.globalProperties.projectModel;return!l&&Ve&&Ve==="developing.model"&&(l=getSessionCache$1(allLangKey)),l}function setAllLanguages(l){setCookieCache(allLangKey,l),setSessionCache$1(allLangKey,l)}function removeAllLanguages$1(){removeCookieCache(allLangKey),removeSessionCache(allLangKey)}function getTheme$1(){return localStorage.getItem(themeKey)}function setTheme$1(l){localStorage.setItem(themeKey,l)}function removeTheme$1(){localStorage.removeItem(themeKey)}function getAllThemes(){let l=getCookieCache$1(allThemeKey);const Ve=window.$vueApp.config.globalProperties.projectModel;return!l&&Ve&&Ve==="developing.model"&&(l=getSessionCache$1(allThemeKey)),l}function setAllThemes(l){setCookieCache(allThemeKey,l),setSessionCache$1(allThemeKey,l)}function removeAllThemes$1(){removeCookieCache(allThemeKey),removeSessionCache(allThemeKey)}function removePublishControl$1(){removeCookieCache(versionEnv),removeCookieCache(userVersion)}const authApi={getToken:getToken$2,setToken:setToken$1,removeToken:removeToken$1,getUsername:getUsername$1,setUsername:setUsername$1,removeUsername:removeUsername$1,getTenantUsername:getTenantUsername$1,setTenantUsername:setTenantUsername$1,removeTenantUsername:removeTenantUsername$1,getCurrentUser:getCurrentUser$1,setCurrentUser:setCurrentUser$1,removeCurrentUser:removeCurrentUser$1,getCookieCache:getCookieCache$1,setCookieCache,removeCookieCache,getSessionCache:getSessionCache$1,setSessionCache:setSessionCache$1,removeSessionCache,getSystemCacheUrlByCode,getSystemCacheFrontendUrlByCode,getSystemCacheUrl,setSystemCacheUrl,removeSystemCacheUrl:removeSystemCacheUrl$1,getLanguage:getLanguage$1,setLanguage:setLanguage$1,removeLanguage:removeLanguage$1,getAllLanguages:getAllLanguages$1,setAllLanguages,removeAllLanguages:removeAllLanguages$1,getTheme:getTheme$1,setTheme:setTheme$1,removeTheme:removeTheme$1,getAllThemes,setAllThemes,removeAllThemes:removeAllThemes$1,removePublishControl:removePublishControl$1,isDevpSystem:isDevpSystem$1,getRunInfoKey:getRunInfoKey$1};let getRandomValues;const rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&(getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!getRandomValues))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}const byteToHex=[];for(let l=0;l<256;++l)byteToHex.push((l+256).toString(16).slice(1));function unsafeStringify(l,Ve=0){return byteToHex[l[Ve+0]]+byteToHex[l[Ve+1]]+byteToHex[l[Ve+2]]+byteToHex[l[Ve+3]]+"-"+byteToHex[l[Ve+4]]+byteToHex[l[Ve+5]]+"-"+byteToHex[l[Ve+6]]+byteToHex[l[Ve+7]]+"-"+byteToHex[l[Ve+8]]+byteToHex[l[Ve+9]]+"-"+byteToHex[l[Ve+10]]+byteToHex[l[Ve+11]]+byteToHex[l[Ve+12]]+byteToHex[l[Ve+13]]+byteToHex[l[Ve+14]]+byteToHex[l[Ve+15]]}const randomUUID=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),native={randomUUID};function v4(l,Ve,At){if(native.randomUUID&&!Ve&&!l)return native.randomUUID();const Et=(l=l||{}).random||(l.rng||rng)();if(Et[6]=15&Et[6]|64,Et[8]=63&Et[8]|128,Ve){At=At||0;for(let kt=0;kt<16;++kt)Ve[At+kt]=Et[kt];return Ve}return unsafeStringify(Et)}const version$3="3.7.8",VERSION$2=version$3,_hasBuffer=typeof Buffer=="function",_TD=typeof TextDecoder=="function"?new TextDecoder:void 0,_TE=typeof TextEncoder=="function"?new TextEncoder:void 0,b64ch="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",b64chs=Array.prototype.slice.call(b64ch),b64tab=(l=>{let Ve={};return l.forEach((At,Et)=>Ve[At]=Et),Ve})(b64chs),b64re=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,_fromCC=String.fromCharCode.bind(String),_U8Afrom=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):l=>new Uint8Array(Array.prototype.slice.call(l,0)),_mkUriSafe=l=>l.replace(/=/g,"").replace(/[+\/]/g,Ve=>Ve=="+"?"-":"_"),_tidyB64=l=>l.replace(/[^A-Za-z0-9\+\/]/g,""),btoaPolyfill=l=>{let Ve,At,Et,kt,Dt="";const Pt=l.length%3;for(let Lt=0;Lt<l.length;){if((At=l.charCodeAt(Lt++))>255||(Et=l.charCodeAt(Lt++))>255||(kt=l.charCodeAt(Lt++))>255)throw new TypeError("invalid character found");Ve=At<<16|Et<<8|kt,Dt+=b64chs[Ve>>18&63]+b64chs[Ve>>12&63]+b64chs[Ve>>6&63]+b64chs[63&Ve]}return Pt?Dt.slice(0,Pt-3)+"===".substring(Pt):Dt},_btoa=typeof btoa=="function"?l=>btoa(l):_hasBuffer?l=>Buffer.from(l,"binary").toString("base64"):btoaPolyfill,_fromUint8Array=_hasBuffer?l=>Buffer.from(l).toString("base64"):l=>{let Ve=[];for(let At=0,Et=l.length;At<Et;At+=4096)Ve.push(_fromCC.apply(null,l.subarray(At,At+4096)));return _btoa(Ve.join(""))},fromUint8Array=(l,Ve=!1)=>Ve?_mkUriSafe(_fromUint8Array(l)):_fromUint8Array(l),cb_utob=l=>{if(l.length<2)return(Ve=l.charCodeAt(0))<128?l:Ve<2048?_fromCC(192|Ve>>>6)+_fromCC(128|63&Ve):_fromCC(224|Ve>>>12&15)+_fromCC(128|Ve>>>6&63)+_fromCC(128|63&Ve);var Ve=65536+1024*(l.charCodeAt(0)-55296)+(l.charCodeAt(1)-56320);return _fromCC(240|Ve>>>18&7)+_fromCC(128|Ve>>>12&63)+_fromCC(128|Ve>>>6&63)+_fromCC(128|63&Ve)},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=l=>l.replace(re_utob,cb_utob),_encode=_hasBuffer?l=>Buffer.from(l,"utf8").toString("base64"):_TE?l=>_fromUint8Array(_TE.encode(l)):l=>_btoa(utob(l)),encode$2=(l,Ve=!1)=>Ve?_mkUriSafe(_encode(l)):_encode(l),encodeURI$1=l=>encode$2(l,!0),re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=l=>{switch(l.length){case 4:var Ve=((7&l.charCodeAt(0))<<18|(63&l.charCodeAt(1))<<12|(63&l.charCodeAt(2))<<6|63&l.charCodeAt(3))-65536;return _fromCC((Ve>>>10)+55296)+_fromCC(56320+(1023&Ve));case 3:return _fromCC((15&l.charCodeAt(0))<<12|(63&l.charCodeAt(1))<<6|63&l.charCodeAt(2));default:return _fromCC((31&l.charCodeAt(0))<<6|63&l.charCodeAt(1))}},btou=l=>l.replace(re_btou,cb_btou),atobPolyfill=l=>{if(l=l.replace(/\s+/g,""),!b64re.test(l))throw new TypeError("malformed base64.");let Ve,At,Et;l+="==".slice(2-(3&l.length));let kt=[];for(let Dt=0;Dt<l.length;)Ve=b64tab[l.charAt(Dt++)]<<18|b64tab[l.charAt(Dt++)]<<12|(At=b64tab[l.charAt(Dt++)])<<6|(Et=b64tab[l.charAt(Dt++)]),At===64?kt.push(_fromCC(Ve>>16&255)):Et===64?kt.push(_fromCC(Ve>>16&255,Ve>>8&255)):kt.push(_fromCC(Ve>>16&255,Ve>>8&255,255&Ve));return kt.join("")},_atob=typeof atob=="function"?l=>atob(_tidyB64(l)):_hasBuffer?l=>Buffer.from(l,"base64").toString("binary"):atobPolyfill,_toUint8Array=_hasBuffer?l=>_U8Afrom(Buffer.from(l,"base64")):l=>_U8Afrom(_atob(l).split("").map(Ve=>Ve.charCodeAt(0))),toUint8Array=l=>_toUint8Array(_unURI(l)),_decode=_hasBuffer?l=>Buffer.from(l,"base64").toString("utf8"):_TD?l=>_TD.decode(_toUint8Array(l)):l=>btou(_atob(l)),_unURI=l=>_tidyB64(l.replace(/[-_]/g,Ve=>Ve=="-"?"+":"/")),decode$4=l=>_decode(_unURI(l)),isValid=l=>{if(typeof l!="string")return!1;const Ve=l.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(Ve)||!/[^\s0-9a-zA-Z\-_]/.test(Ve)},_noEnum=l=>({value:l,enumerable:!1,writable:!0,configurable:!0}),extendString=function(){const l=(Ve,At)=>Object.defineProperty(String.prototype,Ve,_noEnum(At));l("fromBase64",function(){return decode$4(this)}),l("toBase64",function(Ve){return encode$2(this,Ve)}),l("toBase64URI",function(){return encode$2(this,!0)}),l("toBase64URL",function(){return encode$2(this,!0)}),l("toUint8Array",function(){return toUint8Array(this)})},extendUint8Array=function(){const l=(Ve,At)=>Object.defineProperty(Uint8Array.prototype,Ve,_noEnum(At));l("toBase64",function(Ve){return fromUint8Array(this,Ve)}),l("toBase64URI",function(){return fromUint8Array(this,!0)}),l("toBase64URL",function(){return fromUint8Array(this,!0)})},extendBuiltins=()=>{extendString(),extendUint8Array()},gBase64={version:version$3,VERSION:VERSION$2,atob:_atob,atobPolyfill,btoa:_btoa,btoaPolyfill,fromBase64:decode$4,toBase64:encode$2,encode:encode$2,encodeURI:encodeURI$1,encodeURL:encodeURI$1,utob,btou,decode:decode$4,isValid,fromUint8Array,toUint8Array,extendString,extendUint8Array,extendBuiltins},watermarkSetting="AMB_WATERMARK_SETTING";function getWatermark(){return localStorage.getItem(watermarkSetting)}function cacheWatermark(l){localStorage.setItem(watermarkSetting,l)}function removeWatermark(){localStorage.removeItem(watermarkSetting)}function getWatermarkSetting(){return new Promise((l,Ve)=>{let At=getWatermark();if(At&&At!=="EMPTY_VALUE")try{At=JSON.parse(At),At.font=At.fontStyle,At.color=At.fontColor,l(At)}catch(Et){console.error("watermark content error.",Et),l()}else window.$vueApp.config.globalProperties.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/watermark").then(Et=>{Et?(At=Et,cacheWatermark(JSON.stringify(At)),At.font=At.fontStyle,At.color=At.fontColor,l(At)):(cacheWatermark("EMPTY_VALUE"),l())})})}const GLOBAL_PROP={loadState:"GLOBAL_PROP_LOAD_STATE",CAN_SHOW_ORG_TREE:"global-show-org-tree",PORTAL_CHART_LAYOUT_COL:"portal-chart-layout-col"};function removeAllGlobalPropCache(){localStorage.removeItem(GLOBAL_PROP.loadState),localStorage.removeItem(GLOBAL_PROP.CAN_SHOW_ORG_TREE),localStorage.removeItem(GLOBAL_PROP.PORTAL_CHART_LAYOUT_COL)}function getCanShowOrgTree(){return localStorage.getItem(GLOBAL_PROP.CAN_SHOW_ORG_TREE)}function cacheCanShowOrgTree(l){localStorage.setItem(GLOBAL_PROP.CAN_SHOW_ORG_TREE,l)}const GLOBAL_DEPT_USER_TREE_DISPLAY_ITEM="global-dept-user-tree-display-item",GLOBAL_SUPER_GRID_SETTING="global-super-grid-setting",GLOBAL_COMPONENT_SETTING_LOAD_STATE="global-component-setting-load-state",GLOBAL_FORM_SETTING="global-form-setting",GLOBAL_WORKFLOW_HISTORY_LIST_SETTING="global-workflow-history-list-setting",globalComponentCacheKeyMap={DEPT_USER_TREE:GLOBAL_DEPT_USER_TREE_DISPLAY_ITEM,SUPER_GRID:GLOBAL_SUPER_GRID_SETTING,FORM:GLOBAL_FORM_SETTING,WF_HISTORY_LIST:GLOBAL_WORKFLOW_HISTORY_LIST_SETTING};function getCacheKeyByType(l){return globalComponentCacheKeyMap[l]??l}function getClobalComponentSuperGridSetting(){const l=localStorage.getItem(GLOBAL_SUPER_GRID_SETTING);if(l)try{return JSON.parse(l)}catch(Ve){return console.error("Failed to parse global super grid setting from localStorage:",Ve),null}}function removeAllComponentGlobalCache(){localStorage.removeItem(GLOBAL_DEPT_USER_TREE_DISPLAY_ITEM)}function getClobalComponentSettingByType(l){const Ve=localStorage.getItem(l);if(Ve)try{return JSON.parse(Ve)}catch(At){return console.error(`Failed to parse global setting from localStorage for key ${l}:`,At),null}}function getWorkflowHistoryListSetting(){let l=getClobalComponentSettingByType(getCacheKeyByType("WF_HISTORY_LIST"));if(typeof l=="string")try{l=JSON.parse(l)}catch(Ve){return console.error("Failed to parse global workflow history list setting:",Ve),null}return l||null}function isInDingTalk(){return navigator.userAgent.toLowerCase().includes("dingtalk")}function getRelativeBaseUrl(l){if(!l)return l;if(window.$vueApp.config.globalProperties.projectModel===void 0||window.$vueApp.config.globalProperties.projectModel!=="developing.model"){let Ve=getUrlPrefix(location.href);if(window.sessionStorage.setItem("relativeUrl",Ve),Ve&&l){let At="";const Et=l.split("/");if(Et.length>=3){const kt=Et[0]+"//"+Et[2];At=l.substring(l.indexOf(kt)+kt.length)}return Ve.lastIndexOf("/")===Ve.length-1&&(Ve=Ve.substring(0,Ve.lastIndexOf("/"))),At?Ve+At:Ve}}return l}function getUrlPrefix(l){const Ve=l.split("#");if(Ve.length>0){const At=Ve[0];let Et=At;const kt=At.split("/");return kt.length>=3&&(Et=kt[0]+"//"+kt[2]+"/"),Et}}function isShowMenuRoute(){let l=window.$vueApp.config.globalProperties.showMenuRoute;return l===void 0&&(l="false"),l==="true"}function isShowSystemMenu(){let l=window.$vueApp.config.globalProperties.showSystemMenu;return l===void 0&&(l="false"),l==="true"}function getSystemFrontendUrl(l){return window.$vueApp.config.globalProperties.projectModel&&window.$vueApp.config.globalProperties.projectModel==="developing.model"&&window.$vueApp.config.globalProperties.frontUrl?window.$vueApp.config.globalProperties.frontUrl:getRelativeBaseUrl(l)}function getSystemFrontendUrlWith(l){return window.$vueApp.config.globalProperties.projectModel&&window.$vueApp.config.globalProperties.projectModel==="developing.model"?l||window.$vueApp.config.globalProperties.frontUrl:getRelativeBaseUrl(l)}function isPlateSys(l){return!(!l||l!=="agilebuilder"&&l!=="portal"&&l!=="mms"&&l!=="task"&&l!=="wf"&&l!=="dc"&&l!=="mc"&&l!=="mobile"&&l!=="acs"&&l!=="bs"&&l!=="pcm"&&l!=="hc"&&l!=="devp"&&l!=="ucr")}function isPromise$2(l){return l&&Object.prototype.toString.call(l)==="[object Promise]"}function getTimeZone(){const l=new Date+"";let Ve="";if(l.indexOf("GMT")>0){const At=l.substring(l.indexOf("GMT")+3,l.indexOf("(")).trim();Ve="UTC"+At.substring(0,At.length-2)+":"+At.substring(At.length-2)}else l.indexOf("UTC")>0&&(Ve="UTC"+l.substring(l.indexOf("UTC")+3,l.indexOf("(")).trim());return Ve}function setCustomSystemBackendUrl(l){if(!window.$vueApp.config.globalProperties.projectModel||window.$vueApp.config.globalProperties.projectModel!=="developing.model"){const Ve=authApi.getSystemCacheUrlByCode(l);Ve&&(window.$vueApp.config.globalProperties.baseURL=getRelativeBaseUrl(Ve))}}function isMobileBrowser(){return navigator.userAgent,navigator.maxTouchPoints,!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Opera Mobi|Windows CE|Symbian|Windows Phone|POLARIS|lgtelecom|nokia|SonyEricsson|LG|SAMSUNG|Samsung|Mobile/i.test(navigator.userAgent)||!!(/Macintosh/i.test(navigator.userAgent)&&navigator.maxTouchPoints!==void 0&&navigator.maxTouchPoints>=1)||navigator.maxTouchPoints!==void 0&&navigator.maxTouchPoints>=1}function getLangs(){return getAllLanguages()}function getLangByShort(l){let Ve;const At=getLangs();return At&&(Ve=JSON.parse(At)[l]),Ve||(Ve="zh_CN"),Ve}function getUuidv4(){return v4().replace(/-/g,"")}function isOpenMobileGateway(){let l=getCookieCache("IS_OPEN_MOBILE_GATEWAY");return l==null&&(l="true"),l}function getReplaceUrlDomain(l){if(isOpenMobileGateway()==="true"&&l!==void 0&&window.$vueApp.config.globalProperties.replaceUrl){const At=uswindow.$vueApp.config.globalProperties.baseAPI;if((l+"").indexOf(uswindow.$vueApp.config.globalProperties.replaceUrl+"/")<0&&(l+"").indexOf("://")>0){const Et=At.substring(0,At.indexOf("://")),kt=At.substring(At.indexOf("://")+3),Dt=Et+"://"+kt.substring(0,kt.indexOf("/")),Pt=At.substring(0,At.indexOf("://"));let Lt=l.substring(l.indexOf("://")+3);Pt+"://"+Lt.substring(0,Lt.indexOf("/"))===Dt&&(Lt=Lt.substring(Lt.indexOf("/")),l=uswindow.$vueApp.config.globalProperties.replaceUrl+Lt)}}return l}function getAuthSource(){return window.localStorage.getItem("auth_source")}function isDingTalkEnv(){const l=getAuthSource();return!!(isInDingTalk()&&l&&l==="dingtalk"&&window.top&&window.top.$dd)}function getURLSearchParamObj(l){try{const Ve=l.includes("#")?l.split("#")[1]:l,At=Ve.includes("?")?Ve.split("?")[1]:Ve,Et=new URLSearchParams(At);return Object.fromEntries(Et)}catch(Ve){console.error("error===",Ve)}}function getKkFilePreviewUrl(l){l+="&isShowWatermark=false";let Ve=getKkFileBackendUrl()+"?url="+encodeURIComponent(gBase64.encode(l));return new Promise((At,Et)=>{getWatermarkSetting().then(kt=>{kt&&kt.useRange&&kt.useRange.indexOf("annex")>=0&&(Ve=Ve+"&watermarkTxt="+kt.content+"&watermarkXSpace=60&watermarkYSpace=100&watermarkWidth=500&watermarkHeight=100"),At(Ve)}).catch(kt=>{console.error("获得水印失败",kt),At(Ve)})})}function getKkFileBackendUrl(){let l=window.$vueApp.config.globalProperties.kkFileViewUrl,Ve=l,At=window.$vueApp.config.globalProperties.baseURL;if(l&&At){let Et=At.split("/"),kt=Et[0]+"//"+Et[2],Dt=l.split("/");kt===Dt[0]+"//"+Dt[2]&&(Ve=getRelativeBaseUrl(l))}return Ve}function formatDate$1(l,Ve){/(y+)/.test(Ve)&&(Ve=Ve.replace(RegExp.$1,(l.getFullYear()+"").substr(4-RegExp.$1.length)));const At={"M+":l.getMonth()+1,"d+":l.getDate(),"H+":l.getHours(),"m+":l.getMinutes(),"s+":l.getSeconds()};for(const Et in At)if(new RegExp(`(${Et})`).test(Ve)){const kt=At[Et]+"";Ve=Ve.replace(RegExp.$1,RegExp.$1.length===1?kt:padLeftZero(kt))}return Ve}function padLeftZero(l){return("00"+l).substr(l.length)}function isValidDate(l){const Ve=new Date(l);return!isNaN(Ve.getTime())}function getLoginTimeoutUrlInfo(){const l=window.location.href,Ve=getURLSearchParamObj(l);let At;Ve&&Ve.customSystem&&(At=Ve.customSystem);let Et={loginTimeout:l};return At&&(Et.customSystem=At),Et}function cachePermissionsWhenLoginWithToken(l,Ve){return new Promise((At,Et)=>{removeAllSystemPermissions(),ssoService.getCurrentUserPermissionsBySystem(l,Ve).then(kt=>{let Dt=["index"];Dt=Dt.concat(kt),setPermissions(Dt),At()}).catch(kt=>{Et(kt)})})}function removeGlobalComponentSettings(){localStorage.removeItem(GLOBAL_COMPONENT_SETTING_LOAD_STATE);for(const l in globalComponentCacheKeyMap){const Ve=globalComponentCacheKeyMap[l];localStorage.removeItem(Ve)}}const permissionKey="PERMISSION-",permissionMenuKey="PERMISSION_MENU-",systemDefaultMenuKey="SYSTEM_DEFAULT_MENU_CODE-",customMenuKey="CUSTOM_MENU-",_RUN_PERMISSION="_RUN_PERMISSION",permissionAllSystemKey="PERMISSION_All_SYSTSEM_KEY",mobilePermissionKey="PERMISSION-MOBILE-WEB";function getSystemCode(){let l;return l=window.$vueApp.config.globalProperties.customSystem?window.$vueApp.config.globalProperties.customSystem:window.$vueApp.config.globalProperties.currentSystem?window.$vueApp.config.globalProperties.currentSystem:window.$vueApp.config.globalProperties.systemCode,l}function getPermissions(l){let Ve=null;l&&l+""!="null"||(l=getSystemCode());let At=localStorage.getItem(permissionKey+l);if(At&&(Ve||(Ve={}),Object.assign(Ve,JSON.parse(At))),isMobileBrowser()){const Et=localStorage.getItem(mobilePermissionKey);Et&&(Ve||(Ve={}),Object.assign(Ve,JSON.parse(Et)))}return Ve}function getTotalPermissions(l){let Ve;new Date().getTime();const At=getSessionCache(_RUN_PERMISSION);let Et;At&&(Ve=JSON.parse(At)),l&&l+""!="null"||(l=getSystemCode());const kt=localStorage.getItem(permissionKey+l);let Dt;if(kt&&(Et=JSON.parse(kt)),isMobileBrowser()){const Pt=localStorage.getItem(mobilePermissionKey);Pt&&(Dt=JSON.parse(Pt))}if(new Date().getTime(),Ve||Et||Dt){let Pt={};return Ve&&Object.assign(Pt,Ve),Et&&Object.assign(Pt,Et),Dt&&Object.assign(Pt,Dt),Pt}return null}function setPermissions(l,Ve){l&&l.length>0&&l[0];const At=isMobileBrowser();let Et;const kt=getPermissionObjs(l);return At?Et=mobilePermissionKey:(Ve&&Ve+""!="null"||(Ve=getSystemCode()),Et=permissionKey+Ve),localStorage.setItem(Et,JSON.stringify(kt)),setPermissionAllSystemKey(Et),kt}function getPermissionObjs(l){const Ve={};for(let At=0;At<l.length;At++)l[At]&&(Ve[l[At].replace(/\./g,"__")]=!0);return Ve}function getMenus(l){l&&l+""!="null"||(l=getSystemCode());const Ve=getRunInfoKey(permissionMenuKey),At=localStorage.getItem(Ve+l);return At?JSON.parse(At):null}function setMenus(l,Ve){if(l){Ve&&Ve+""!="null"||(Ve=getSystemCode()),removeCustomMenus(Ve);const At=getRunInfoKey(permissionMenuKey)+Ve;return localStorage.setItem(At,JSON.stringify(l)),setPermissionAllSystemKey(At),l}}function setDefaultMenuCode(l,Ve){if(l){Ve&&Ve+""!="null"||(Ve=getSystemCode());const At=systemDefaultMenuKey+Ve;return localStorage.setItem(At,l),setPermissionAllSystemKey(At),l}}function removeCustomMenus(l){const Ve=customMenuKey+l;localStorage.removeItem(Ve)}function setPermissionAllSystemKey(l){const Ve=getPermissionAllSystemKey();Ve.indexOf(l)<0&&Ve.push(l),localStorage.setItem(permissionAllSystemKey,Ve.join(","))}function getPermissionAllSystemKey(){let l=localStorage.getItem(permissionAllSystemKey);return l&&(l=l.split(",")),l||(l=[]),l}function removePermissionSystemKey(){localStorage.removeItem(permissionAllSystemKey)}function rtrim(l){return l.replace(/(\s*$)/g,"")}function removeAllSystemPermissions(){localStorage.removeItem(mobilePermissionKey);const l=getSystemCode();localStorage.removeItem(permissionKey+l);const Ve=getRunInfoKey(permissionMenuKey);localStorage.removeItem(Ve+l),localStorage.removeItem(customMenuKey+l),localStorage.removeItem(systemDefaultMenuKey+l),getPermissionAllSystemKey().forEach(At=>{At=rtrim(At),localStorage.removeItem(At)}),removePermissionSystemKey()}const DEV_ROLE_PROJECT_ADMIN_CODE="PROJECT_ADMIN",DEV_ROLE_PROJECT_DEVELOPER_CODE="PROJECT_DEVELOPER",DEV_ROLE_PROJECT_VIEWER_CODE="PROJECT_VIEWER";function isDevpAccess(){const l=getUsername();if(l&&l==="0bba9791-d4f1-47ca-b5e6-1fc840b54f3a"){const Ve=getPostManagementCodes();if(Ve&&Ve.indexOf(DEV_ROLE_PROJECT_ADMIN_CODE)>=0||Ve.indexOf(DEV_ROLE_PROJECT_VIEWER_CODE)>=0)return!0}return!1}function getPostManagementCodes(){const l=getRunCurrentRole();if(l){let Ve=[];return l.split(",").forEach(At=>{let Et=At;At!==DEV_ROLE_PROJECT_ADMIN_CODE&&At!==DEV_ROLE_PROJECT_DEVELOPER_CODE||(Et=DEV_ROLE_PROJECT_ADMIN_CODE),Ve.indexOf(Et)<0&&Ve.push(Et)}),Ve}}const voiceSetting="AMB_VOICE_SETTING",voiceLeafMenu="AMB_VOICE_LEAF_MENU";let voiceLeafMenuCache=null;function removeVoiceCache(){removeVoiceLeafMenu(),removeVoiceSetting()}function getVoiceLeafMenuCache(){return localStorage.getItem(voiceLeafMenu)}function cacheVoiceLeafMenu(l){localStorage.setItem(voiceLeafMenu,l)}function removeVoiceLeafMenu(){localStorage.removeItem(voiceLeafMenu)}function getVoiceSettingCache(){return localStorage.getItem(voiceSetting)}function cacheVoiceSetting(l){localStorage.setItem(voiceSetting,l)}function removeVoiceSetting(){localStorage.removeItem(voiceSetting)}function getVoiceSetting(){return new Promise((l,Ve)=>{let At=getVoiceSettingCache();if(At&&At!=="EMPTY_VALUE")try{At=JSON.parse(At),l(At)}catch(Et){console.error("voiceSetting content error.",Et),l()}else l()})}function parseVoiceMsg(l,Ve,At,Et,kt){return new Promise((Dt,Pt)=>{Ve||Dt({status:"fail",commandResult:"未获得命令配置信息,请联系运维人员进行维护"}),l||Dt({status:"fail",commandResult:"未获得录入的信息,请重新录入信息"});let Lt=null;if(Ve&&l){let jt=0;for(let An=0;An<Ve.length;An++){const hn=Ve[An];hn.command&&l.indexOf(hn.command)>=0&&hn.command.length>jt&&(Lt=hn)}if(Lt)if(kt={},Lt.params&&Lt.params.length>0){let An="匹配到命令【"+Lt.command+"】,该命令需要的参数有";Lt.params.forEach(bn=>{An=An+"【"+bn.title+"】"}),An=An+",请录入第一个参数【"+Lt.params[0].title+"】,如果跳过该参数,请说‘跳过’";let hn=Lt.params[0];hn.index=0,Dt({status:"ok",commandResult:An,settingItem:Lt,paramInfo:hn})}else{let An="匹配到命令【"+Lt.command+"】,跳转到该页面";Dt({status:"ok",commandResult:An,url:Lt.url,command:Lt.command})}else if(Et&&Et.name){let An=[];if(At&&At.params&&(An=At.params),l.indexOf("跳过")>=0){const hn="_jump_param";Et.value=hn,kt[Et.name]=hn;const bn=packageSuccessParamResult(An,Et,kt,At);Dt(bn)}else if(Et.options&&Object.keys(Et.options).length>0){let hn;Et.options;for(let bn in Et.options){const vn=Et.options[bn];(l.indexOf(bn)>=0||(vn+"").indexOf(bn)>=0)&&(hn=vn)}if(hn==null){const bn=packageFailParamResult(Et);Dt(bn)}else{Et.value=hn,kt[Et.name]=hn;const bn=packageSuccessParamResult(An,Et,kt,At);Dt(bn)}}else if(!Et.dataType||Et.dataType!=="date"&&Et.dataType!=="dateRange"){Et.value=l,kt[Et.name]=l;const hn=packageSuccessParamResult(An,Et,kt,At);Dt(hn)}else{let hn="yyyy-MM-dd";Et.format&&(hn=Et.format),Et.orgMsg=l;const bn=formatDate$1(new Date,"yyyy-MM-dd");Et.msg="今天是"+bn+"日,“"+l+"”,请从这句话中提取出时间或时间范围,日期格式为"+hn+",请直接给出答案,时间范围之间以~分隔,如果原句未指定时间或时间范围,请直接回答null",executeAi(Et).then(vn=>{let Cn;if(vn&&vn!="null"&&(Cn=formatAiDateResult(vn,hn,Et.props,Et.name)),Cn){Et.value=Cn,kt[Et.name]=Cn;const wn=packageSuccessParamResult(An,Et,kt,At);Dt(wn)}else{let wn="请说:最近1周、最近1个月等和时间相关的语句";Et.example&&(wn=Et.example),Et.example=wn;const En=packageFailParamResult(Et);Dt(En)}}).catch(vn=>{console.error("解析日期参数失败"),Pt(vn)})}}else{if(!voiceLeafMenuCache){const hn=getVoiceLeafMenuCache();if(hn)try{voiceLeafMenuCache=JSON.parse(hn)}catch{voiceLeafMenuCache=[]}else voiceLeafMenuCache=[]}voiceLeafMenuCache&&voiceLeafMenuCache.length!==0||Dt({status:"fail",commandResult:"未解析到有效命令,请重新录入命令"});const An=[];for(let hn=0;hn<voiceLeafMenuCache.length;hn++)l.indexOf(voiceLeafMenuCache[hn].name)>=0&&An.push(voiceLeafMenuCache[hn].id);if(An.length===0)return void Dt({status:"fail",commandResult:"未解析到有效命令,请重新录入命令"});window.$http.post(window.$vueApp.config.globalProperties.baseAPI+"/ai/ai-voice-command/command/match-menu",An).then(hn=>{if(hn&&Object.keys(hn).length>0)if(Object.keys(hn).length===1){const bn=hn[Object.keys(hn)[0]];let vn="匹配到菜单【"+bn.name+"】,跳转到该页面";Dt({status:"ok",commandResult:vn,url:bn.url,command:bn.name})}else{let bn="匹配到多个菜单,请点击下面的链接跳转到对应页面:<br/>";Object.keys(hn).forEach(vn=>{const Cn=hn[vn];bn+=`<amb-alink href="${Cn.url}" target="_blank" rel="noopener noreferrer" text="【${Cn.name}】"></amb-alink> <br/>`}),Dt({status:"ok",commandResult:bn})}else Dt({status:"fail",commandResult:"未解析到有效命令,请重新录入命令"})}).catch(hn=>{console.error("获取语音命令失败",hn),Dt({status:"fail",commandResult:"未解析到有效命令,请重新录入命令"})})}}})}function formatAiDateResult(l,Ve,At,Et){Ve||(Ve="yyyy-MM-dd");let kt=!1;if(l){if(l.indexOf("~")>=0){const Dt=l.split("~");if(kt=isValidDate(Dt[0]),kt&&(kt=isValidDate(Dt[1])),kt){const Pt=new Date(Dt[0]),Lt=new Date(Dt[1]);return At=At?At.join(","):Et,formatDate$1(Pt,Ve)+"~"+formatDate$1(Lt,Ve)+"~"+At}}else if(kt=isValidDate(l),kt)return formatDate$1(new Date(l),Ve)}return kt}function executeAi(l){return window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI+"/component/ai/analyzeParam",l)}function getNextParamInfo(l,Ve){if(Ve===void 0&&Ve===null&&(Ve=1),l){const At=Ve+1;if(l.length,l.length>At){let Et=l[At];return Et.index=At,Et}}}function packageSuccessParamResult(l,Ve,At,Et){let kt,Dt={};const Pt=Object.keys(At).length;let Lt,jt,An="",hn=!1;if(l.length===Pt)hn=!0,Lt=Et.url,An=",所有参数解析完毕,跳转到指定页面";else if(l.length>Pt)if(kt=getNextParamInfo(l,Ve.index),!kt||At[kt.name]!==void 0&&At[kt.name]!==null)hn=!0;else{hn=!1;let bn="";if(kt.options){const vn=Object.keys(kt.options);vn.length>0&&(bn=",该参数可选项有",vn.forEach(Cn=>{bn=bn+"【"+Cn+"】"}),bn+=",请选择一个选项")}An=",继续解析下一个参数【"+kt.title+"】"+bn+"。如果跳过该参数,请说‘跳过’"}if(Ve.value&&Ve.value==="_jump_param")jt="跳过";else{let bn=Ve.value;Ve.dataType&&(Ve.dataType==="dateRange"&&bn&&bn.indexOf("~")>0||Ve.dataType==="date")&&(bn=bn.substring(0,bn.lastIndexOf("~"))),jt="解析成功,解析到的值是【"+bn+"】"}return Dt.status="ok",Dt.paramResult="参数【"+Ve.title+"】"+jt+An,Dt.isEndParam=hn,Dt.paramInfo=kt,Dt.url=Lt,Dt.command=Et?Et.command:void 0,Dt}function packageFailParamResult(l){let Ve={status:"fail"},At="";return l.example&&(At=l.example),Ve.paramResult="参数【"+l.title+"】解析失败,请重新录入参数值,如果跳过该参数,请说‘跳过’。"+At,Ve.paramInfo=l,Ve}function getToken$1(){return authApi.getToken()}function setToken(l){authApi.setToken(l)}function removeToken(){authApi.removeToken()}function getUsername(){return authApi.getUsername()}function setUsername(l){authApi.setUsername(l)}function removeUsername(){authApi.removeUsername()}function getTenantUsername(){return authApi.getTenantUsername()}function setTenantUsername(l){authApi.setTenantUsername(l)}function removeTenantUsername(){authApi.removeTenantUsername()}function setCurrentUser(l){authApi.setCurrentUser(l)}function removeCurrentUser(){authApi.removeCurrentUser()}function getCookieCache(l){return authApi.getCookieCache(l)}function getSessionCache(l){return authApi.getSessionCache(l)}function setSessionCache(l,Ve){return authApi.setSessionCache(l,Ve)}function getLanguage(){return authApi.getLanguage()}function setLanguage(l){authApi.setLanguage(l)}function removeLanguage(){authApi.removeLanguage()}function getAllLanguages(){return authApi.getAllLanguages()}function removeAllLanguages(){authApi.removeAllLanguages()}function getTheme(){return authApi.getTheme()}function setTheme(l){l?authApi.setTheme(l):removeTheme()}function removeTheme(){authApi.removeTheme()}function removeAllThemes(){authApi.removeAllThemes()}function removePublishControl(){authApi.removePublishControl()}function removeDevpPermissions(){authApi.removeSessionCache("_devpJWT"),authApi.removeSessionCache("_CURRENT_ROLE")}function isDevpSystem(){return authApi.isDevpSystem()}function getRunInfoKey(l){return authApi.getRunInfoKey(l)}function removeProjectSettings(){authApi.removeCookieCache("PROJECT_SETTINGS")}function removeProjectCode(){authApi.removeCookieCache("_PROJECT_CDOE")}function removeSystemCacheUrl(){authApi.removeSystemCacheUrl()}function getRunCurrentRole(){if(!isDevpSystem())return authApi.getSessionCache("_RUN_CURRENT_ROLE")}function clearPermission(){var l,Ve;removeToken(),removeLanguage(),removeAllLanguages(),removeUsername(),removeTenantUsername(),removeCurrentUser(),removeAllSystemPermissions(),removePublishControl(),removeSystemCacheUrl(),removeAllGlobalPropCache(),removeAllComponentGlobalCache(),removeWatermark(),removeVoiceCache(),(Ve=(l=window.$vueApp)==null?void 0:l.config)!=null&&Ve.globalProperties&&(window.$vueApp.config.globalProperties.currentSystem,window.$vueApp.config.globalProperties.currentSystem=null)}function clearVoiceCache(){removeVoiceCache()}function warn$2(l,Ve){typeof console<"u"&&Ve&&Ve.stack}const hasWarned={};function warnOnce(l){hasWarned[l]||(hasWarned[l]=!0,warn$2(l))}const inBrowser=typeof window<"u";let mark$3,measure;if(process.env.NODE_ENV!=="production"){const l=inBrowser&&window.performance;l&&l.mark&&l.measure&&l.clearMarks&&l.clearMeasures&&(mark$3=Ve=>{l.mark(Ve)},measure=(Ve,At,Et)=>{l.measure(Ve,At,Et),l.clearMarks(At),l.clearMarks(Et)})}const RE_ARGS$1=/\{([0-9a-zA-Z]+)\}/g;function format$7(l,...Ve){return Ve.length===1&&isObject$8(Ve[0])&&(Ve=Ve[0]),Ve&&Ve.hasOwnProperty||(Ve={}),l.replace(RE_ARGS$1,(At,Et)=>Ve.hasOwnProperty(Et)?Ve[Et]:"")}const makeSymbol$1=(l,Ve=!1)=>Ve?Symbol.for(l):Symbol(l),generateFormatCacheKey=(l,Ve,At)=>friendlyJSONstringify({l,k:Ve,s:At}),friendlyJSONstringify=l=>JSON.stringify(l).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),isNumber$4=l=>typeof l=="number"&&isFinite(l),isDate=l=>toTypeString$1(l)==="[object Date]",isRegExp$3=l=>toTypeString$1(l)==="[object RegExp]",isEmptyObject=l=>isPlainObject$4(l)&&Object.keys(l).length===0,assign$7=Object.assign,_create=Object.create,create$7=(l=null)=>_create(l);let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:create$7());function escapeHtml$2(l){return l.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function escapeAttributeValue(l){return l.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function sanitizeTranslatedHtml(l){return l=(l=l.replace(/(\w+)\s*=\s*"([^"]*)"/g,(Ve,At,Et)=>`${At}="${escapeAttributeValue(Et)}"`)).replace(/(\w+)\s*=\s*'([^']*)'/g,(Ve,At,Et)=>`${At}='${escapeAttributeValue(Et)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(l)&&(process.env.NODE_ENV!=="production"&&warn$2("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."),l=l.replace(/(\s+)(on)(\w+\s*=)/gi,"$1&#111;n$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(Ve=>{l=l.replace(Ve,"$1javascript&#58;")}),l}const hasOwnProperty$a=Object.prototype.hasOwnProperty;function hasOwn$2(l,Ve){return hasOwnProperty$a.call(l,Ve)}const isArray$4=Array.isArray,isFunction$4=l=>typeof l=="function",isString$5=l=>typeof l=="string",isBoolean$2=l=>typeof l=="boolean",isObject$8=l=>l!==null&&typeof l=="object",isPromise$1=l=>isObject$8(l)&&isFunction$4(l.then)&&isFunction$4(l.catch),objectToString$2=Object.prototype.toString,toTypeString$1=l=>objectToString$2.call(l),isPlainObject$4=l=>{if(!isObject$8(l))return!1;const Ve=Object.getPrototypeOf(l);return Ve===null||Ve.constructor===Object},toDisplayString=l=>l==null?"":isArray$4(l)||isPlainObject$4(l)&&l.toString===objectToString$2?JSON.stringify(l,null,2):String(l);function join$2(l,Ve=""){return l.reduce((At,Et,kt)=>kt===0?At+Et:At+Ve+Et,"")}const RANGE=2;function generateCodeFrame(l,Ve=0,At=l.length){const Et=l.split(/\r?\n/);let kt=0;const Dt=[];for(let Pt=0;Pt<Et.length;Pt++)if(kt+=Et[Pt].length+1,kt>=Ve){for(let Lt=Pt-RANGE;Lt<=Pt+RANGE||At>kt;Lt++){if(Lt<0||Lt>=Et.length)continue;const jt=Lt+1;Dt.push(`${jt}${" ".repeat(3-String(jt).length)}| ${Et[Lt]}`);const An=Et[Lt].length;if(Lt===Pt){const hn=Ve-(kt-An)+1,bn=Math.max(1,At>kt?An-hn:At-Ve);Dt.push(" | "+" ".repeat(hn)+"^".repeat(bn))}else if(Lt>Pt){if(At>kt){const hn=Math.max(Math.min(At-kt,An),1);Dt.push(" | "+"^".repeat(hn))}kt+=An+1}}break}return Dt.join(`
24
+ `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),Dt=new RegExp("(?:^"+At+"$)|(?:^"+kt+"$)"),Pt=new RegExp("^"+At+"$"),Lt=new RegExp("^"+kt+"$"),jt=function(bn){return bn&&bn.exact?Dt:new RegExp("(?:"+Ve(bn)+At+Ve(bn)+")|(?:"+Ve(bn)+kt+Ve(bn)+")","g")};jt.v4=function(bn){return bn&&bn.exact?Pt:new RegExp(""+Ve(bn)+At+Ve(bn),"g")},jt.v6=function(bn){return bn&&bn.exact?Lt:new RegExp(""+Ve(bn)+kt+Ve(bn),"g")};var An=jt.v4().source,hn=jt.v6().source;return urlReg=new RegExp("(?:^"+("(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+An+"|"+hn+'|(?:(?:[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,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?')+"$)","i")},pattern$2={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},types$3={integer:function(l){return types$3.number(l)&&parseInt(l,10)===l},float:function(l){return types$3.number(l)&&!types$3.integer(l)},array:function(l){return Array.isArray(l)},regexp:function(l){if(l instanceof RegExp)return!0;try{return!!new RegExp(l)}catch{return!1}},date:function(l){return typeof l.getTime=="function"&&typeof l.getMonth=="function"&&typeof l.getYear=="function"&&!isNaN(l.getTime())},number:function(l){return!isNaN(l)&&typeof l=="number"},object:function(l){return typeof l=="object"&&!types$3.array(l)},method:function(l){return typeof l=="function"},email:function(l){return typeof l=="string"&&l.length<=320&&!!l.match(pattern$2.email)},url:function(l){return typeof l=="string"&&l.length<=2048&&!!l.match(getUrlRegex())},hex:function(l){return typeof l=="string"&&!!l.match(pattern$2.hex)}},type$1=function(l,Ve,At,Et,kt){if(l.required&&Ve===void 0)required$1(l,Ve,At,Et,kt);else{var Dt=l.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(Dt)>-1?types$3[Dt](Ve)||Et.push(format$8(kt.messages.types[Dt],l.fullField,l.type)):Dt&&typeof Ve!==l.type&&Et.push(format$8(kt.messages.types[Dt],l.fullField,l.type))}},range$2=function(l,Ve,At,Et,kt){var Dt=typeof l.len=="number",Pt=typeof l.min=="number",Lt=typeof l.max=="number",jt=Ve,An=null,hn=typeof Ve=="number",bn=typeof Ve=="string",vn=Array.isArray(Ve);if(hn?An="number":bn?An="string":vn&&(An="array"),!An)return!1;vn&&(jt=Ve.length),bn&&(jt=Ve.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),Dt?jt!==l.len&&Et.push(format$8(kt.messages[An].len,l.fullField,l.len)):Pt&&!Lt&&jt<l.min?Et.push(format$8(kt.messages[An].min,l.fullField,l.min)):Lt&&!Pt&&jt>l.max?Et.push(format$8(kt.messages[An].max,l.fullField,l.max)):Pt&&Lt&&(jt<l.min||jt>l.max)&&Et.push(format$8(kt.messages[An].range,l.fullField,l.min,l.max))},ENUM$1="enum",enumerable$1=function(l,Ve,At,Et,kt){l[ENUM$1]=Array.isArray(l[ENUM$1])?l[ENUM$1]:[],l[ENUM$1].indexOf(Ve)===-1&&Et.push(format$8(kt.messages[ENUM$1],l.fullField,l[ENUM$1].join(", ")))},pattern$1=function(l,Ve,At,Et,kt){l.pattern&&(l.pattern instanceof RegExp?(l.pattern.lastIndex=0,l.pattern.test(Ve)||Et.push(format$8(kt.messages.pattern.mismatch,l.fullField,Ve,l.pattern))):typeof l.pattern=="string"&&(new RegExp(l.pattern).test(Ve)||Et.push(format$8(kt.messages.pattern.mismatch,l.fullField,Ve,l.pattern))))},rules={required:required$1,whitespace:whitespace$2,type:type$1,range:range$2,enum:enumerable$1,pattern:pattern$1},string$3=function(l,Ve,At,Et,kt){var Dt=[];if(l.required||!l.required&&Et.hasOwnProperty(l.field)){if(isEmptyValue(Ve,"string")&&!l.required)return At();rules.required(l,Ve,Et,Dt,kt,"string"),isEmptyValue(Ve,"string")||(rules.type(l,Ve,Et,Dt,kt),rules.range(l,Ve,Et,Dt,kt),rules.pattern(l,Ve,Et,Dt,kt),l.whitespace===!0&&rules.whitespace(l,Ve,Et,Dt,kt))}At(Dt)},method=function(l,Ve,At,Et,kt){var Dt=[];if(l.required||!l.required&&Et.hasOwnProperty(l.field)){if(isEmptyValue(Ve)&&!l.required)return At();rules.required(l,Ve,Et,Dt,kt),Ve!==void 0&&rules.type(l,Ve,Et,Dt,kt)}At(Dt)},number$7=function(l,Ve,At,Et,kt){var Dt=[];if(l.required||!l.required&&Et.hasOwnProperty(l.field)){if(Ve===""&&(Ve=void 0),isEmptyValue(Ve)&&!l.required)return At();rules.required(l,Ve,Et,Dt,kt),Ve!==void 0&&(rules.type(l,Ve,Et,Dt,kt),rules.range(l,Ve,Et,Dt,kt))}At(Dt)},_boolean=function(l,Ve,At,Et,kt){var Dt=[];if(l.required||!l.required&&Et.hasOwnProperty(l.field)){if(isEmptyValue(Ve)&&!l.required)return At();rules.required(l,Ve,Et,Dt,kt),Ve!==void 0&&rules.type(l,Ve,Et,Dt,kt)}At(Dt)},regexp$2=function(l,Ve,At,Et,kt){var Dt=[];if(l.required||!l.required&&Et.hasOwnProperty(l.field)){if(isEmptyValue(Ve)&&!l.required)return At();rules.required(l,Ve,Et,Dt,kt),isEmptyValue(Ve)||rules.type(l,Ve,Et,Dt,kt)}At(Dt)},integer$2=function(l,Ve,At,Et,kt){var Dt=[];if(l.required||!l.required&&Et.hasOwnProperty(l.field)){if(isEmptyValue(Ve)&&!l.required)return At();rules.required(l,Ve,Et,Dt,kt),Ve!==void 0&&(rules.type(l,Ve,Et,Dt,kt),rules.range(l,Ve,Et,Dt,kt))}At(Dt)},floatFn=function(l,Ve,At,Et,kt){var Dt=[];if(l.required||!l.required&&Et.hasOwnProperty(l.field)){if(isEmptyValue(Ve)&&!l.required)return At();rules.required(l,Ve,Et,Dt,kt),Ve!==void 0&&(rules.type(l,Ve,Et,Dt,kt),rules.range(l,Ve,Et,Dt,kt))}At(Dt)},array$3=function(l,Ve,At,Et,kt){var Dt=[];if(l.required||!l.required&&Et.hasOwnProperty(l.field)){if(Ve==null&&!l.required)return At();rules.required(l,Ve,Et,Dt,kt,"array"),Ve!=null&&(rules.type(l,Ve,Et,Dt,kt),rules.range(l,Ve,Et,Dt,kt))}At(Dt)},object$2=function(l,Ve,At,Et,kt){var Dt=[];if(l.required||!l.required&&Et.hasOwnProperty(l.field)){if(isEmptyValue(Ve)&&!l.required)return At();rules.required(l,Ve,Et,Dt,kt),Ve!==void 0&&rules.type(l,Ve,Et,Dt,kt)}At(Dt)},ENUM="enum",enumerable=function(l,Ve,At,Et,kt){var Dt=[];if(l.required||!l.required&&Et.hasOwnProperty(l.field)){if(isEmptyValue(Ve)&&!l.required)return At();rules.required(l,Ve,Et,Dt,kt),Ve!==void 0&&rules[ENUM](l,Ve,Et,Dt,kt)}At(Dt)},pattern=function(l,Ve,At,Et,kt){var Dt=[];if(l.required||!l.required&&Et.hasOwnProperty(l.field)){if(isEmptyValue(Ve,"string")&&!l.required)return At();rules.required(l,Ve,Et,Dt,kt),isEmptyValue(Ve,"string")||rules.pattern(l,Ve,Et,Dt,kt)}At(Dt)},date$2=function(l,Ve,At,Et,kt){var Dt=[];if(l.required||!l.required&&Et.hasOwnProperty(l.field)){if(isEmptyValue(Ve,"date")&&!l.required)return At();var Pt;rules.required(l,Ve,Et,Dt,kt),!isEmptyValue(Ve,"date")&&(Pt=Ve instanceof Date?Ve:new Date(Ve),rules.type(l,Pt,Et,Dt,kt),Pt&&rules.range(l,Pt.getTime(),Et,Dt,kt))}At(Dt)},required$2=function(l,Ve,At,Et,kt){var Dt=[],Pt=Array.isArray(Ve)?"array":typeof Ve;rules.required(l,Ve,Et,Dt,kt,Pt),At(Dt)},type$2=function(l,Ve,At,Et,kt){var Dt=l.type,Pt=[];if(l.required||!l.required&&Et.hasOwnProperty(l.field)){if(isEmptyValue(Ve,Dt)&&!l.required)return At();rules.required(l,Ve,Et,Pt,kt,Dt),isEmptyValue(Ve,Dt)||rules.type(l,Ve,Et,Pt,kt)}At(Pt)},any=function(l,Ve,At,Et,kt){var Dt=[];if(l.required||!l.required&&Et.hasOwnProperty(l.field)){if(isEmptyValue(Ve)&&!l.required)return At();rules.required(l,Ve,Et,Dt,kt)}At(Dt)},validators={string:string$3,method,number:number$7,boolean:_boolean,regexp:regexp$2,integer:integer$2,float:floatFn,array:array$3,object:object$2,enum:enumerable,pattern,date:date$2,url:type$2,hex:type$2,email:type$2,required:required$2,any};function newMessages(){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 l=JSON.parse(JSON.stringify(this));return l.clone=this.clone,l}}}var messages$1=newMessages(),Schema$3=function(){function l(At){this.rules=null,this._messages=messages$1,this.define(At)}var Ve=l.prototype;return Ve.define=function(At){var Et=this;if(!At)throw new Error("Cannot configure a schema with no rules");if(typeof At!="object"||Array.isArray(At))throw new Error("Rules must be an object");this.rules={},Object.keys(At).forEach(function(kt){var Dt=At[kt];Et.rules[kt]=Array.isArray(Dt)?Dt:[Dt]})},Ve.messages=function(At){return At&&(this._messages=deepMerge(newMessages(),At)),this._messages},Ve.validate=function(At,Et,kt){var Dt=this;Et===void 0&&(Et={}),kt===void 0&&(kt=function(){});var Pt=At,Lt=Et,jt=kt;if(typeof Lt=="function"&&(jt=Lt,Lt={}),!this.rules||Object.keys(this.rules).length===0)return jt&&jt(null,Pt),Promise.resolve(Pt);if(Lt.messages){var An=this.messages();An===messages$1&&(An=newMessages()),deepMerge(An,Lt.messages),Lt.messages=An}else Lt.messages=this.messages();var hn={};(Lt.keys||Object.keys(this.rules)).forEach(function(vn){var Cn=Dt.rules[vn],wn=Pt[vn];Cn.forEach(function(En){var Bn=En;typeof Bn.transform=="function"&&(Pt===At&&(Pt=_extends$2({},Pt)),wn=Pt[vn]=Bn.transform(wn)),(Bn=typeof Bn=="function"?{validator:Bn}:_extends$2({},Bn)).validator=Dt.getValidationMethod(Bn),Bn.validator&&(Bn.field=vn,Bn.fullField=Bn.fullField||vn,Bn.type=Dt.getType(Bn),hn[vn]=hn[vn]||[],hn[vn].push({rule:Bn,value:wn,source:Pt,field:vn}))})});var bn={};return asyncMap(hn,Lt,function(vn,Cn){var wn,En=vn.rule,Bn=!(En.type!=="object"&&En.type!=="array"||typeof En.fields!="object"&&typeof En.defaultField!="object");function In(Tn,Mn){return _extends$2({},Mn,{fullField:En.fullField+"."+Tn,fullFields:En.fullFields?[].concat(En.fullFields,[Tn]):[Tn]})}function Dn(Tn){Tn===void 0&&(Tn=[]);var Mn=Array.isArray(Tn)?Tn:[Tn];!Lt.suppressWarning&&Mn.length&&l.warning("async-validator:",Mn),Mn.length&&En.message!==void 0&&(Mn=[].concat(En.message));var Fn=Mn.map(complementError(En,Pt));if(Lt.first&&Fn.length)return bn[En.field]=1,Cn(Fn);if(Bn){if(En.required&&!vn.value)return En.message!==void 0?Fn=[].concat(En.message).map(complementError(En,Pt)):Lt.error&&(Fn=[Lt.error(En,format$8(Lt.messages.required,En.field))]),Cn(Fn);var Rn={};En.defaultField&&Object.keys(vn.value).map(function(jn){Rn[jn]=En.defaultField}),Rn=_extends$2({},Rn,vn.rule.fields);var On={};Object.keys(Rn).forEach(function(jn){var Hn=Rn[jn],Gn=Array.isArray(Hn)?Hn:[Hn];On[jn]=Gn.map(In.bind(null,jn))});var Pn=new l(On);Pn.messages(Lt.messages),vn.rule.options&&(vn.rule.options.messages=Lt.messages,vn.rule.options.error=Lt.error),Pn.validate(vn.value,vn.rule.options||Lt,function(jn){var Hn=[];Fn&&Fn.length&&Hn.push.apply(Hn,Fn),jn&&jn.length&&Hn.push.apply(Hn,jn),Cn(Hn.length?Hn:null)})}else Cn(Fn)}if(Bn=Bn&&(En.required||!En.required&&vn.value),En.field=vn.field,En.asyncValidator)wn=En.asyncValidator(En,vn.value,Dn,vn.source,Lt);else if(En.validator){try{wn=En.validator(En,vn.value,Dn,vn.source,Lt)}catch(Tn){console.error==null||console.error(Tn),Lt.suppressValidatorError||setTimeout(function(){throw Tn},0),Dn(Tn.message)}wn===!0?Dn():wn===!1?Dn(typeof En.message=="function"?En.message(En.fullField||En.field):En.message||(En.fullField||En.field)+" fails"):wn instanceof Array?Dn(wn):wn instanceof Error&&Dn(wn.message)}wn&&wn.then&&wn.then(function(){return Dn()},function(Tn){return Dn(Tn)})},function(vn){(function(Cn){var wn=[],En={};function Bn(Dn){var Tn;Array.isArray(Dn)?wn=(Tn=wn).concat.apply(Tn,Dn):wn.push(Dn)}for(var In=0;In<Cn.length;In++)Bn(Cn[In]);wn.length?(En=convertFieldsError(wn),jt(wn,En)):jt(null,Pt)})(vn)},Pt)},Ve.getType=function(At){if(At.type===void 0&&At.pattern instanceof RegExp&&(At.type="pattern"),typeof At.validator!="function"&&At.type&&!validators.hasOwnProperty(At.type))throw new Error(format$8("Unknown rule type %s",At.type));return At.type||"string"},Ve.getValidationMethod=function(At){if(typeof At.validator=="function")return At.validator;var Et=Object.keys(At),kt=Et.indexOf("message");return kt!==-1&&Et.splice(kt,1),Et.length===1&&Et[0]==="required"?validators.required:validators[this.getType(At)]||void 0},l}();Schema$3.register=function(l,Ve){if(typeof Ve!="function")throw new Error("Cannot register a validator by type, validator is not a function");validators[l]=Ve},Schema$3.warning=warning,Schema$3.messages=messages$1,Schema$3.validators=validators;const imageViewerProps$1=buildProps$1({urlList:{type:definePropType$1(Array),default:()=>mutable$1([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},scale:{type:Number,default:1},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:definePropType$1(String)}}),imageViewerEmits$1={close:()=>!0,error:l=>l instanceof Event,switch:l=>isNumber$5(l),rotate:l=>isNumber$5(l)},_hoisted_1$28=["src","crossorigin"];var _sfc_main$2U=Vue.defineComponent({name:"ElImageViewer",__name:"image-viewer",props:imageViewerProps$1,emits:imageViewerEmits$1,setup(l,{expose:Ve,emit:At}){var Et;const kt={CONTAIN:{name:"contain",icon:Vue.markRaw(full_screen_default)},ORIGINAL:{name:"original",icon:Vue.markRaw(scale_to_original_default)}},Dt=l,Pt=At;let Lt;const{t:jt}=useLocale$1(),An=useNamespace$1("image-viewer"),{nextZIndex:hn}=useZIndex$1(),bn=Vue.ref(),vn=Vue.ref(),Cn=Vue.effectScope(),wn=Vue.computed(()=>{const{scale:Dr,minScale:Nr,maxScale:Er}=Dt;return clamp$1(Dr,Nr,Er)}),En=Vue.ref(!0),Bn=Vue.ref(!1),In=Vue.ref(!1),Dn=Vue.ref(Dt.initialIndex),Tn=Vue.shallowRef(kt.CONTAIN),Mn=Vue.ref({scale:wn.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),Fn=Vue.ref((Et=Dt.zIndex)!=null?Et:hn());useLockscreen$1(In,{ns:An});const Rn=Vue.computed(()=>{const{urlList:Dr}=Dt;return Dr.length<=1}),On=Vue.computed(()=>Dn.value===0),Pn=Vue.computed(()=>Dn.value===Dt.urlList.length-1),jn=Vue.computed(()=>Dt.urlList[Dn.value]),Hn=Vue.computed(()=>[An.e("btn"),An.e("prev"),An.is("disabled",!Dt.infinite&&On.value)]),Gn=Vue.computed(()=>[An.e("btn"),An.e("next"),An.is("disabled",!Dt.infinite&&Pn.value)]),qn=Vue.computed(()=>{const{scale:Dr,deg:Nr,offsetX:Er,offsetY:Lr,enableTransition:$r}=Mn.value;let Xr=Er/Dr,qr=Lr/Dr;const ma=Nr*Math.PI/180,ca=Math.cos(ma),ba=Math.sin(ma);Xr=Xr*ca+qr*ba,qr=qr*ca-Er/Dr*ba;const xo={transform:`scale(${Dr}) rotate(${Nr}deg) translate(${Xr}px, ${qr}px)`,transition:$r?"transform .3s":""};return Tn.value.name===kt.CONTAIN.name&&(xo.maxWidth=xo.maxHeight="100%"),xo}),Vn=Vue.computed(()=>`${Dn.value+1} / ${Dt.urlList.length}`);function Un(){Cn.stop(),Lt==null||Lt(),In.value=!1,Pt("close")}function Kn(){En.value=!1}function er(Dr){Bn.value=!0,En.value=!1,Pt("error",Dr),Dr.target.alt=jt("el.image.error")}function ir(Dr){if(En.value||Dr.button!==0||!bn.value)return;Mn.value.enableTransition=!1;const{offsetX:Nr,offsetY:Er}=Mn.value,Lr=Dr.pageX,$r=Dr.pageY,Xr=throttle$3(ca=>{Mn.value={...Mn.value,offsetX:Nr+ca.pageX-Lr,offsetY:Er+ca.pageY-$r}}),qr=useEventListener$1(document,"mousemove",Xr),ma=useEventListener$1(document,"mouseup",()=>{qr(),ma()});Dr.preventDefault()}function rr(Dr){if(En.value||!bn.value||Dr.touches.length!==1)return;Mn.value.enableTransition=!1;const{offsetX:Nr,offsetY:Er}=Mn.value,{pageX:Lr,pageY:$r}=Dr.touches[0],Xr=throttle$3(ca=>{const ba=ca.touches[0];Mn.value={...Mn.value,offsetX:Nr+ba.pageX-Lr,offsetY:Er+ba.pageY-$r}}),qr=useEventListener$1(document,"touchmove",Xr),ma=useEventListener$1(document,"touchend",()=>{qr(),ma()});Dr.preventDefault()}function ur(){Mn.value={scale:wn.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function or(){if(En.value||Bn.value)return;const Dr=keysOf$1(kt),Nr=Object.values(kt),Er=Tn.value.name,Lr=Nr.findIndex(Xr=>Xr.name===Er),$r=(Lr+1)%Dr.length;Tn.value=kt[Dr[$r]],ur()}function Ar(Dr){Bn.value=!1;const Nr=Dt.urlList.length;Dn.value=(Dr+Nr)%Nr}function yr(){On.value&&!Dt.infinite||Ar(Dn.value-1)}function _r(){Pn.value&&!Dt.infinite||Ar(Dn.value+1)}function kr(Dr,Nr={}){if(En.value||Bn.value)return;const{minScale:Er,maxScale:Lr}=Dt,{zoomRate:$r,rotateDeg:Xr,enableTransition:qr}={zoomRate:Dt.zoomRate,rotateDeg:90,enableTransition:!0,...Nr};switch(Dr){case"zoomOut":Mn.value.scale>Er&&(Mn.value.scale=Number.parseFloat((Mn.value.scale/$r).toFixed(3)));break;case"zoomIn":Mn.value.scale<Lr&&(Mn.value.scale=Number.parseFloat((Mn.value.scale*$r).toFixed(3)));break;case"clockwise":Mn.value.deg+=Xr,Pt("rotate",Mn.value.deg);break;case"anticlockwise":Mn.value.deg-=Xr,Pt("rotate",Mn.value.deg)}Mn.value.enableTransition=qr}function Br(Dr){var Nr;((Nr=Dr.detail)==null?void 0:Nr.focusReason)==="pointer"&&Dr.preventDefault()}function Tr(){Dt.closeOnPressEscape&&Un()}function Pr(Dr){if(Dr.ctrlKey)return Dr.deltaY<0||Dr.deltaY>0?(Dr.preventDefault(),!1):void 0}return Vue.watch(()=>wn.value,Dr=>{Mn.value.scale=Dr}),Vue.watch(jn,()=>{Vue.nextTick(()=>{const Dr=vn.value;Dr!=null&&Dr.complete||(En.value=!0)})}),Vue.watch(Dn,Dr=>{ur(),Pt("switch",Dr)}),Vue.onMounted(()=>{In.value=!0,function(){const Dr=throttle$3(Er=>{switch(getEventCode(Er)){case EVENT_CODE$1.esc:Dt.closeOnPressEscape&&Un();break;case EVENT_CODE$1.space:or();break;case EVENT_CODE$1.left:yr();break;case EVENT_CODE$1.up:kr("zoomIn");break;case EVENT_CODE$1.right:_r();break;case EVENT_CODE$1.down:kr("zoomOut")}}),Nr=throttle$3(Er=>{kr((Er.deltaY||Er.deltaX)<0?"zoomIn":"zoomOut",{zoomRate:Dt.zoomRate,enableTransition:!1})});Cn.run(()=>{useEventListener$1(document,"keydown",Dr),useEventListener$1(bn,"wheel",Nr)})}(),Lt=useEventListener$1("wheel",Pr,{passive:!1})}),Ve({setActiveItem:Ar}),(Dr,Nr)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElTeleport$1),{to:"body",disabled:!l.teleported},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.Transition,{name:"viewer-fade",appear:""},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",{ref_key:"wrapper",ref:bn,tabindex:-1,class:Vue.normalizeClass(Vue.unref(An).e("wrapper")),style:Vue.normalizeStyle({zIndex:Fn.value})},[Vue.createVNode(Vue.unref(ElFocusTrap$1),{loop:"",trapped:"","focus-trap-el":bn.value,"focus-start-el":"container",onFocusoutPrevented:Br,onReleaseRequested:Tr},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",{class:Vue.normalizeClass(Vue.unref(An).e("mask")),onClick:Nr[0]||(Nr[0]=Vue.withModifiers(Er=>l.hideOnClickModal&&Un(),["self"]))},null,2),Vue.createCommentVNode(" CLOSE "),Vue.createElementVNode("span",{class:Vue.normalizeClass([Vue.unref(An).e("btn"),Vue.unref(An).e("close")]),onClick:Un},[Vue.createVNode(Vue.unref(ElIcon$1),null,{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(close_default))]),_:1})],2),Vue.createCommentVNode(" ARROW "),Rn.value?Vue.createCommentVNode("v-if",!0):(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,{key:0},[Vue.createElementVNode("span",{class:Vue.normalizeClass(Hn.value),onClick:yr},[Vue.createVNode(Vue.unref(ElIcon$1),null,{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(arrow_left_default))]),_:1})],2),Vue.createElementVNode("span",{class:Vue.normalizeClass(Gn.value),onClick:_r},[Vue.createVNode(Vue.unref(ElIcon$1),null,{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(arrow_right_default))]),_:1})],2)],64)),Dr.$slots.progress||l.showProgress?(Vue.openBlock(),Vue.createElementBlock("div",{key:1,class:Vue.normalizeClass([Vue.unref(An).e("btn"),Vue.unref(An).e("progress")])},[Vue.renderSlot(Dr.$slots,"progress",{activeIndex:Dn.value,total:l.urlList.length},()=>[Vue.createTextVNode(Vue.toDisplayString(Vn.value),1)])],2)):Vue.createCommentVNode("v-if",!0),Vue.createCommentVNode(" ACTIONS "),Vue.createElementVNode("div",{class:Vue.normalizeClass([Vue.unref(An).e("btn"),Vue.unref(An).e("actions")])},[Vue.createElementVNode("div",{class:Vue.normalizeClass(Vue.unref(An).e("actions__inner"))},[Vue.renderSlot(Dr.$slots,"toolbar",{actions:kr,prev:yr,next:_r,reset:or,activeIndex:Dn.value,setActiveItem:Ar},()=>[Vue.createVNode(Vue.unref(ElIcon$1),{onClick:Nr[1]||(Nr[1]=Er=>kr("zoomOut"))},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(zoom_out_default))]),_:1}),Vue.createVNode(Vue.unref(ElIcon$1),{onClick:Nr[2]||(Nr[2]=Er=>kr("zoomIn"))},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(zoom_in_default))]),_:1}),Vue.createElementVNode("i",{class:Vue.normalizeClass(Vue.unref(An).e("actions__divider"))},null,2),Vue.createVNode(Vue.unref(ElIcon$1),{onClick:or},{default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(Tn.value.icon)))]),_:1}),Vue.createElementVNode("i",{class:Vue.normalizeClass(Vue.unref(An).e("actions__divider"))},null,2),Vue.createVNode(Vue.unref(ElIcon$1),{onClick:Nr[3]||(Nr[3]=Er=>kr("anticlockwise"))},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(refresh_left_default))]),_:1}),Vue.createVNode(Vue.unref(ElIcon$1),{onClick:Nr[4]||(Nr[4]=Er=>kr("clockwise"))},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(refresh_right_default))]),_:1})])],2)],2),Vue.createCommentVNode(" CANVAS "),Vue.createElementVNode("div",{class:Vue.normalizeClass(Vue.unref(An).e("canvas"))},[Bn.value&&Dr.$slots["viewer-error"]?Vue.renderSlot(Dr.$slots,"viewer-error",{key:0,activeIndex:Dn.value,src:jn.value}):(Vue.openBlock(),Vue.createElementBlock("img",{ref_key:"imgRef",ref:vn,key:jn.value,src:jn.value,style:Vue.normalizeStyle(qn.value),class:Vue.normalizeClass(Vue.unref(An).e("img")),crossorigin:l.crossorigin,onLoad:Kn,onError:er,onMousedown:ir,onTouchstart:rr},null,46,_hoisted_1$28))],2),Vue.renderSlot(Dr.$slots,"default")]),_:3},8,["focus-trap-el"])],6)]),_:3})]),_:3},8,["disabled"]))}});const ElImageViewer$1=withInstall$1(_sfc_main$2U),linkProps=buildProps$1({type:{type:String,values:["primary","success","warning","info","danger","default"],default:void 0},underline:{type:[Boolean,String],values:[!0,!1,"always","never","hover"],default:void 0},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:iconPropType$1}}),linkEmits={click:l=>l instanceof MouseEvent},_hoisted_1$27=["href","target"];var _sfc_main$2T=Vue.defineComponent({name:"ElLink",__name:"link",props:linkProps,emits:linkEmits,setup(l,{emit:Ve}){const At=l,Et=Ve,kt=useGlobalConfig$1("link");useDeprecated$1({scope:"el-link",from:"The underline option (boolean)",replacement:"'always' | 'hover' | 'never'",version:"3.0.0",ref:"https://element-plus.org/en-US/component/link.html#underline"},Vue.computed(()=>isBoolean$3(At.underline)));const Dt=useNamespace$1("link"),Pt=Vue.computed(()=>{var An,hn,bn;return[Dt.b(),Dt.m((bn=(hn=At.type)!=null?hn:(An=kt.value)==null?void 0:An.type)!=null?bn:"default"),Dt.is("disabled",At.disabled),Dt.is("underline",Lt.value==="always"),Dt.is("hover-underline",Lt.value==="hover"&&!At.disabled)]}),Lt=Vue.computed(()=>{var An,hn,bn;return isBoolean$3(At.underline)?At.underline?"hover":"never":(bn=(hn=At.underline)!=null?hn:(An=kt.value)==null?void 0:An.underline)!=null?bn:"hover"});function jt(An){At.disabled||Et("click",An)}return(An,hn)=>(Vue.openBlock(),Vue.createElementBlock("a",{class:Vue.normalizeClass(Pt.value),href:l.disabled||!l.href?void 0:l.href,target:l.disabled||!l.href?void 0:l.target,onClick:jt},[l.icon?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElIcon$1),{key:0},{default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(l.icon)))]),_:1})):Vue.createCommentVNode("v-if",!0),An.$slots.default?(Vue.openBlock(),Vue.createElementBlock("span",{key:1,class:Vue.normalizeClass(Vue.unref(Dt).e("inner"))},[Vue.renderSlot(An.$slots,"default")],2)):Vue.createCommentVNode("v-if",!0),An.$slots.icon?Vue.renderSlot(An.$slots,"icon",{key:2}):Vue.createCommentVNode("v-if",!0)],10,_hoisted_1$27))}});const ElLink=withInstall$1(_sfc_main$2T),isValidComponentSize=l=>["",...componentSizes$1].includes(l);function createLoadingComponent(l,Ve){let At;const Et=Vue.ref(!1),kt=Vue.reactive({...l,originalPosition:"",originalOverflow:"",visible:!1});function Dt(){var hn,bn;(bn=(hn=An.$el)==null?void 0:hn.parentNode)==null||bn.removeChild(An.$el)}function Pt(){if(!Et.value)return;const hn=kt.parent;Et.value=!1,hn.vLoadingAddClassList=void 0,function(){const bn=kt.parent,vn=An.ns;if(!bn.vLoadingAddClassList){let Cn=bn.getAttribute("loading-number");Cn=Number.parseInt(Cn)-1,Cn?bn.setAttribute("loading-number",Cn.toString()):(removeClass$1(bn,vn.bm("parent","relative")),bn.removeAttribute("loading-number")),removeClass$1(bn,vn.bm("parent","hidden"))}Dt(),jt.unmount()}()}const Lt=Vue.defineComponent({name:"ElLoading",setup(hn,{expose:bn}){const{ns:vn,zIndex:Cn}=useGlobalComponentSettings$1("loading");return bn({ns:vn,zIndex:Cn}),()=>{const wn=kt.spinner||kt.svg,En=Vue.h("svg",{class:"circular",viewBox:kt.svgViewBox?kt.svgViewBox:"0 0 50 50",...wn?{innerHTML:wn}:{}},[Vue.h("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),Bn=kt.text?Vue.h("p",{class:vn.b("text")},[kt.text]):void 0;return Vue.h(Vue.Transition,{name:vn.b("fade"),onAfterLeave:Pt},{default:Vue.withCtx(()=>[Vue.withDirectives(Vue.createVNode("div",{style:{backgroundColor:kt.background||""},class:[vn.b("mask"),kt.customClass,vn.is("fullscreen",kt.fullscreen)]},[Vue.h("div",{class:vn.b("spinner")},[En,Bn])]),[[Vue.vShow,kt.visible]])])})}}}),jt=Vue.createApp(Lt);Object.assign(jt._context,Ve??{});const An=jt.mount(document.createElement("div"));return{...Vue.toRefs(kt),setText:function(hn){kt.text=hn},removeElLoadingChild:Dt,close:function(){var hn;l.beforeClose&&!l.beforeClose()||(Et.value=!0,clearTimeout(At),At=setTimeout(Pt,400),kt.visible=!1,(hn=l.closed)==null||hn.call(l))},handleAfterLeave:Pt,vm:An,get $el(){return An.$el}}}let fullscreenInstance;const Loading=function(l={},Ve){if(!isClient$1)return;const At=resolveOptions(l);if(At.fullscreen&&fullscreenInstance)return fullscreenInstance;const Et=createLoadingComponent({...At,closed:()=>{var Dt;(Dt=At.closed)==null||Dt.call(At),At.fullscreen&&(fullscreenInstance=void 0)}},Ve??Loading._context);addStyle(At,At.parent,Et),addClassList(At,At.parent,Et),At.parent.vLoadingAddClassList=()=>addClassList(At,At.parent,Et);let kt=At.parent.getAttribute("loading-number");return kt=kt?`${Number.parseInt(kt)+1}`:"1",At.parent.setAttribute("loading-number",kt),At.parent.appendChild(Et.$el),Vue.nextTick(()=>Et.visible.value=At.visible),At.fullscreen&&(fullscreenInstance=Et),Et},resolveOptions=l=>{var Ve,At,Et,kt;let Dt;return Dt=isString$6(l.target)?(Ve=document.querySelector(l.target))!=null?Ve:document.body:l.target||document.body,{parent:Dt===document.body||l.body?document.body:Dt,background:l.background||"",svg:l.svg||"",svgViewBox:l.svgViewBox||"",spinner:l.spinner||!1,text:l.text||"",fullscreen:Dt===document.body&&((At=l.fullscreen)==null||At),lock:(Et=l.lock)!=null&&Et,customClass:l.customClass||"",visible:(kt=l.visible)==null||kt,beforeClose:l.beforeClose,closed:l.closed,target:Dt}},addStyle=async(l,Ve,At)=>{const{nextZIndex:Et}=At.vm.zIndex||At.vm._.exposed.zIndex,kt={};if(l.fullscreen)At.originalPosition.value=getStyle$2(document.body,"position"),At.originalOverflow.value=getStyle$2(document.body,"overflow"),kt.zIndex=Et();else if(l.parent===document.body){At.originalPosition.value=getStyle$2(document.body,"position"),await Vue.nextTick();for(const Dt of["top","left"]){const Pt=Dt==="top"?"scrollTop":"scrollLeft";kt[Dt]=l.target.getBoundingClientRect()[Dt]+document.body[Pt]+document.documentElement[Pt]-Number.parseInt(getStyle$2(document.body,`margin-${Dt}`),10)+"px"}for(const Dt of["height","width"])kt[Dt]=`${l.target.getBoundingClientRect()[Dt]}px`}else At.originalPosition.value=getStyle$2(Ve,"position");for(const[Dt,Pt]of Object.entries(kt))At.$el.style[Dt]=Pt},addClassList=(l,Ve,At)=>{const Et=At.vm.ns||At.vm._.exposed.ns;["absolute","fixed","sticky"].includes(At.originalPosition.value)?removeClass$1(Ve,Et.bm("parent","relative")):addClass$2(Ve,Et.bm("parent","relative")),l.fullscreen&&l.lock?addClass$2(Ve,Et.bm("parent","hidden")):removeClass$1(Ve,Et.bm("parent","hidden"))};Loading._context=null;const INSTANCE_KEY=Symbol("ElLoading"),getAttributeName=l=>`element-loading-${hyphenate$1(l)}`,createInstance=(l,Ve)=>{var At,Et,kt,Dt;const Pt=Ve.instance,Lt=vn=>isObject$a(Ve.value)?Ve.value[vn]:void 0,jt=vn=>(Cn=>{const wn=isString$6(Cn)&&(Pt==null?void 0:Pt[Cn])||Cn;return Vue.ref(wn)})(Lt(vn)||l.getAttribute(getAttributeName(vn))),An=(At=Lt("fullscreen"))!=null?At:Ve.modifiers.fullscreen,hn={text:jt("text"),svg:jt("svg"),svgViewBox:jt("svgViewBox"),spinner:jt("spinner"),background:jt("background"),customClass:jt("customClass"),fullscreen:An,target:(Et=Lt("target"))!=null?Et:An?void 0:l,body:(kt=Lt("body"))!=null?kt:Ve.modifiers.body,lock:(Dt=Lt("lock"))!=null?Dt:Ve.modifiers.lock},bn=Loading(hn);bn._context=vLoading._context,l[INSTANCE_KEY]={options:hn,instance:bn}},updateOptions=(l,Ve)=>{for(const At of Object.keys(l))Vue.isRef(l[At])&&(l[At].value=Ve[At])},vLoading={mounted(l,Ve){Ve.value&&createInstance(l,Ve)},updated(l,Ve){const At=l[INSTANCE_KEY];if(!Ve.value)return At==null||At.instance.close(),void(l[INSTANCE_KEY]=null);At?updateOptions(At.options,isObject$a(Ve.value)?Ve.value:{text:l.getAttribute(getAttributeName("text")),svg:l.getAttribute(getAttributeName("svg")),svgViewBox:l.getAttribute(getAttributeName("svgViewBox")),spinner:l.getAttribute(getAttributeName("spinner")),background:l.getAttribute(getAttributeName("background")),customClass:l.getAttribute(getAttributeName("customClass"))}):createInstance(l,Ve)},unmounted(l){var Ve;(Ve=l[INSTANCE_KEY])==null||Ve.instance.close(),l[INSTANCE_KEY]=null},_context:null},ElLoading={install(l){Loading._context=l._context,vLoading._context=l._context,l.directive("loading",vLoading),l.config.globalProperties.$loading=Loading},directive:vLoading,service:Loading},messageTypes$1=["primary","success","info","warning","error"],messagePlacement=["top","top-left","top-right","bottom","bottom-left","bottom-right"],MESSAGE_DEFAULT_PLACEMENT="top",messageDefaults$1=mutable$1({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:isClient$1?document.body:void 0}),messageProps$1=buildProps$1({customClass:{type:String,default:messageDefaults$1.customClass},dangerouslyUseHTMLString:{type:Boolean,default:messageDefaults$1.dangerouslyUseHTMLString},duration:{type:Number,default:messageDefaults$1.duration},icon:{type:iconPropType$1,default:messageDefaults$1.icon},id:{type:String,default:messageDefaults$1.id},message:{type:definePropType$1([String,Object,Function]),default:messageDefaults$1.message},onClose:{type:definePropType$1(Function),default:messageDefaults$1.onClose},showClose:{type:Boolean,default:messageDefaults$1.showClose},type:{type:String,values:messageTypes$1,default:messageDefaults$1.type},plain:{type:Boolean,default:messageDefaults$1.plain},offset:{type:Number,default:messageDefaults$1.offset},placement:{type:String,values:messagePlacement,default:messageDefaults$1.placement},zIndex:{type:Number,default:messageDefaults$1.zIndex},grouping:{type:Boolean,default:messageDefaults$1.grouping},repeatNum:{type:Number,default:messageDefaults$1.repeatNum}}),messageEmits$1={destroy:()=>!0},placementInstances=Vue.shallowReactive({}),getOrCreatePlacementInstances=l=>(placementInstances[l]||(placementInstances[l]=Vue.shallowReactive([])),placementInstances[l]),getInstance$1=(l,Ve)=>{const At=placementInstances[Ve]||[],Et=At.findIndex(Pt=>Pt.id===l),kt=At[Et];let Dt;return Et>0&&(Dt=At[Et-1]),{current:kt,prev:Dt}},getLastOffset$1=(l,Ve)=>{const{prev:At}=getInstance$1(l,Ve);return At?At.vm.exposed.bottom.value:0},getOffsetOrSpace$1=(l,Ve,At)=>(placementInstances[At]||[]).findIndex(Et=>Et.id===l)>0?16:Ve,_hoisted_1$26=["id"],_hoisted_2$1v=["innerHTML"];var _sfc_main$2S=Vue.defineComponent({name:"ElMessage",__name:"message",props:messageProps$1,emits:messageEmits$1,setup(l,{expose:Ve,emit:At}){const{Close:Et}=TypeComponents$1,kt=l,Dt=At,Pt=Vue.ref(!1),{ns:Lt,zIndex:jt}=useGlobalComponentSettings$1("message"),{currentZIndex:An,nextZIndex:hn}=jt,bn=Vue.ref(),vn=Vue.ref(!1),Cn=Vue.ref(0);let wn;const En=Vue.computed(()=>kt.type?kt.type==="error"?"danger":kt.type:"info"),Bn=Vue.computed(()=>{const qn=kt.type;return{[Lt.bm("icon",qn)]:qn&&TypeComponentsMap$1[qn]}}),In=Vue.computed(()=>kt.icon||TypeComponentsMap$1[kt.type]||""),Dn=Vue.computed(()=>kt.placement||MESSAGE_DEFAULT_PLACEMENT),Tn=Vue.computed(()=>getLastOffset$1(kt.id,Dn.value)),Mn=Vue.computed(()=>getOffsetOrSpace$1(kt.id,kt.offset,Dn.value)+Tn.value),Fn=Vue.computed(()=>Cn.value+Mn.value),Rn=Vue.computed(()=>Dn.value.includes("left")?Lt.is("left"):Dn.value.includes("right")?Lt.is("right"):Lt.is("center")),On=Vue.computed(()=>Dn.value.startsWith("top")?"top":"bottom"),Pn=Vue.computed(()=>({[On.value]:`${Mn.value}px`,zIndex:An.value}));function jn(){kt.duration!==0&&({stop:wn}=useTimeoutFn$1(()=>{Gn()},kt.duration))}function Hn(){wn==null||wn()}function Gn(){vn.value=!1,Vue.nextTick(()=>{var qn;Pt.value||((qn=kt.onClose)==null||qn.call(kt),Dt("destroy"))})}return Vue.onMounted(()=>{jn(),hn(),vn.value=!0}),Vue.watch(()=>kt.repeatNum,()=>{Hn(),jn()}),useEventListener$1(document,"keydown",function(qn){getEventCode(qn)===EVENT_CODE$1.esc&&Gn()}),useResizeObserver$1(bn,()=>{Cn.value=bn.value.getBoundingClientRect().height}),Ve({visible:vn,bottom:Fn,close:Gn}),(qn,Vn)=>(Vue.openBlock(),Vue.createBlock(Vue.Transition,{name:Vue.unref(Lt).b("fade"),onBeforeEnter:Vn[0]||(Vn[0]=Un=>Pt.value=!0),onBeforeLeave:l.onClose,onAfterLeave:Vn[1]||(Vn[1]=Un=>qn.$emit("destroy")),persisted:""},{default:Vue.withCtx(()=>[Vue.withDirectives(Vue.createElementVNode("div",{id:l.id,ref_key:"messageRef",ref:bn,class:Vue.normalizeClass([Vue.unref(Lt).b(),{[Vue.unref(Lt).m(l.type)]:l.type},Vue.unref(Lt).is("closable",l.showClose),Vue.unref(Lt).is("plain",l.plain),Vue.unref(Lt).is("bottom",On.value==="bottom"),Rn.value,l.customClass]),style:Vue.normalizeStyle(Pn.value),role:"alert",onMouseenter:Hn,onMouseleave:jn},[l.repeatNum>1?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElBadge$1),{key:0,value:l.repeatNum,type:En.value,class:Vue.normalizeClass(Vue.unref(Lt).e("badge"))},null,8,["value","type","class"])):Vue.createCommentVNode("v-if",!0),In.value?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElIcon$1),{key:1,class:Vue.normalizeClass([Vue.unref(Lt).e("icon"),Bn.value])},{default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(In.value)))]),_:1},8,["class"])):Vue.createCommentVNode("v-if",!0),Vue.renderSlot(qn.$slots,"default",{},()=>[l.dangerouslyUseHTMLString?(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,{key:1},[Vue.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),Vue.createElementVNode("p",{class:Vue.normalizeClass(Vue.unref(Lt).e("content")),innerHTML:l.message},null,10,_hoisted_2$1v)],2112)):(Vue.openBlock(),Vue.createElementBlock("p",{key:0,class:Vue.normalizeClass(Vue.unref(Lt).e("content"))},Vue.toDisplayString(l.message),3))]),l.showClose?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElIcon$1),{key:2,class:Vue.normalizeClass(Vue.unref(Lt).e("closeBtn")),onClick:Vue.withModifiers(Gn,["stop"])},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(Et))]),_:1},8,["class"])):Vue.createCommentVNode("v-if",!0)],46,_hoisted_1$26),[[Vue.vShow,vn.value]])]),_:3},8,["name","onBeforeLeave"]))}});let seed$1=1;const normalizeAppendTo=l=>{if(l.appendTo){if(isString$6(l.appendTo)){let Ve=document.querySelector(l.appendTo);isElement$1(Ve)||(debugWarn$1("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),Ve=document.body),l.appendTo=Ve}}else l.appendTo=document.body},normalizePlacement=l=>{!l.placement&&isString$6(messageConfig$1.placement)&&messageConfig$1.placement&&(l.placement=messageConfig$1.placement),l.placement||(l.placement=MESSAGE_DEFAULT_PLACEMENT),messagePlacement.includes(l.placement)||(debugWarn$1("ElMessage",`Invalid placement: ${l.placement}. Falling back to '${MESSAGE_DEFAULT_PLACEMENT}'.`),l.placement=MESSAGE_DEFAULT_PLACEMENT)},normalizeOptions$2=l=>{const Ve=!l||isString$6(l)||Vue.isVNode(l)||isFunction$5(l)?{message:l}:l,At={...messageDefaults$1,...Ve};return normalizeAppendTo(At),normalizePlacement(At),isBoolean$3(messageConfig$1.grouping)&&!At.grouping&&(At.grouping=messageConfig$1.grouping),isNumber$5(messageConfig$1.duration)&&At.duration===3e3&&(At.duration=messageConfig$1.duration),isNumber$5(messageConfig$1.offset)&&At.offset===16&&(At.offset=messageConfig$1.offset),isBoolean$3(messageConfig$1.showClose)&&!At.showClose&&(At.showClose=messageConfig$1.showClose),isBoolean$3(messageConfig$1.plain)&&!At.plain&&(At.plain=messageConfig$1.plain),At},closeMessage$1=l=>{const Ve=l.props.placement||MESSAGE_DEFAULT_PLACEMENT,At=placementInstances[Ve],Et=At.indexOf(l);if(Et===-1)return;At.splice(Et,1);const{handler:kt}=l;kt.close()},createMessage$1=({appendTo:l,...Ve},At)=>{const Et="message_"+seed$1++,kt=Ve.onClose,Dt=document.createElement("div"),Pt={...Ve,id:Et,onClose:()=>{kt==null||kt(),closeMessage$1(hn)},onDestroy:()=>{Vue.render(null,Dt)}},Lt=Vue.createVNode(_sfc_main$2S,Pt,isFunction$5(Pt.message)||Vue.isVNode(Pt.message)?{default:isFunction$5(Pt.message)?Pt.message:()=>Pt.message}:null);Lt.appContext=At||message$1._context,Vue.render(Lt,Dt),l.appendChild(Dt.firstElementChild);const jt=Lt.component,An={close:()=>{jt.exposed.close()}},hn={id:Et,vnode:Lt,vm:jt,handler:An,props:Lt.component.props};return hn},message$1=(l={},Ve)=>{if(!isClient$1)return{close:()=>{}};const At=normalizeOptions$2(l),Et=getOrCreatePlacementInstances(At.placement||MESSAGE_DEFAULT_PLACEMENT);if(At.grouping&&Et.length){const Dt=Et.find(({vnode:Pt})=>{var Lt;return((Lt=Pt.props)==null?void 0:Lt.message)===At.message});if(Dt)return Dt.props.repeatNum+=1,Dt.props.type=At.type,Dt.handler}if(isNumber$5(messageConfig$1.max)&&Et.length>=messageConfig$1.max)return{close:()=>{}};const kt=createMessage$1(At,Ve);return Et.push(kt),kt.handler};function closeAll$1(l){for(const Ve in placementInstances)if(hasOwn$3(placementInstances,Ve)){const At=[...placementInstances[Ve]];for(const Et of At)l&&l!==Et.props.type||Et.handler.close()}}function closeAllByPlacement(l){placementInstances[l]&&[...placementInstances[l]].forEach(Ve=>Ve.handler.close())}messageTypes$1.forEach(l=>{message$1[l]=(Ve={},At)=>{const Et=normalizeOptions$2(Ve);return message$1({...Et,type:l},At)}}),message$1.closeAll=closeAll$1,message$1.closeAllByPlacement=closeAllByPlacement,message$1._context=null;const ElMessage$2=withInstallFunction$1(message$1,"$message"),FOCUSABLE_CHILDREN="_trap-focus-children",FOCUS_STACK=[],FOCUS_HANDLER=l=>{var Ve;if(FOCUS_STACK.length===0)return;const At=getEventCode(l),Et=FOCUS_STACK[FOCUS_STACK.length-1][FOCUSABLE_CHILDREN];if(Et.length>0&&At===EVENT_CODE$1.tab){if(Et.length===1)return l.preventDefault(),void(document.activeElement!==Et[0]&&Et[0].focus());const kt=l.shiftKey,Dt=l.target===Et[0],Pt=l.target===Et[Et.length-1];if(Dt&&kt&&(l.preventDefault(),Et[Et.length-1].focus()),Pt&&!kt&&(l.preventDefault(),Et[0].focus()),process.env.NODE_ENV==="test"){const Lt=Et.indexOf(l.target);Lt!==-1&&((Ve=Et[kt?Lt-1:Lt+1])==null||Ve.focus())}}},TrapFocus={beforeMount(l){l[FOCUSABLE_CHILDREN]=obtainAllFocusableElements$2(l),FOCUS_STACK.push(l),FOCUS_STACK.length<=1&&document.addEventListener("keydown",FOCUS_HANDLER)},updated(l){Vue.nextTick(()=>{l[FOCUSABLE_CHILDREN]=obtainAllFocusableElements$2(l)})},unmounted(){FOCUS_STACK.shift(),FOCUS_STACK.length===0&&document.removeEventListener("keydown",FOCUS_HANDLER)}};var _sfc_main$2R=Vue.defineComponent({name:"ElMessageBox",directives:{TrapFocus},components:{ElButton:ElButton$1,ElFocusTrap:ElFocusTrap$1,ElInput:ElInput$1,ElOverlay:ElOverlay$1,ElIcon:ElIcon$1,...TypeComponents$1},inheritAttrs:!1,props:{buttonSize:{type:String,validator:isValidComponentSize},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:Boolean,container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(l,{emit:Ve}){const{locale:At,zIndex:Et,ns:kt,size:Dt}=useGlobalComponentSettings$1("message-box",Vue.computed(()=>l.buttonSize)),{t:Pt}=At,{nextZIndex:Lt}=Et,jt=Vue.ref(!1),An=Vue.reactive({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",cancelButtonType:"",confirmButtonType:"primary",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",closeIcon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:Vue.markRaw(loading_default),cancelButtonLoadingIcon:Vue.markRaw(loading_default),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:Lt()}),hn=Vue.computed(()=>{const Kn=An.type;return{[kt.bm("icon",Kn)]:Kn&&TypeComponentsMap$1[Kn]}}),bn=useId$1(),vn=useId$1(),Cn=Vue.computed(()=>{const Kn=An.type;return An.icon||Kn&&TypeComponentsMap$1[Kn]||""}),wn=Vue.computed(()=>!!An.message),En=Vue.ref(),Bn=Vue.ref(),In=Vue.ref(),Dn=Vue.ref(),Tn=Vue.ref(),Mn=Vue.computed(()=>An.confirmButtonClass);Vue.watch(()=>An.inputValue,async Kn=>{await Vue.nextTick(),l.boxType==="prompt"&&Kn&&qn()},{immediate:!0}),Vue.watch(()=>jt.value,Kn=>{var er,ir;Kn&&(l.boxType!=="prompt"&&(An.autofocus?In.value=(ir=(er=Tn.value)==null?void 0:er.$el)!=null?ir:En.value:In.value=En.value),An.zIndex=Lt()),l.boxType==="prompt"&&(Kn?Vue.nextTick().then(()=>{var rr;Dn.value&&Dn.value.$el&&(An.autofocus?In.value=(rr=Vn())!=null?rr:En.value:In.value=En.value)}):(An.editorErrorMessage="",An.validateError=!1))});const Fn=Vue.computed(()=>l.draggable),Rn=Vue.computed(()=>l.overflow),{isDragging:On}=useDraggable$1(En,Bn,Fn,Rn);function Pn(){jt.value&&(jt.value=!1,Vue.nextTick(()=>{An.action&&Ve("action",An.action)}))}Vue.onMounted(async()=>{await Vue.nextTick(),l.closeOnHashChange&&window.addEventListener("hashchange",Pn)}),Vue.onBeforeUnmount(()=>{l.closeOnHashChange&&window.removeEventListener("hashchange",Pn)});const jn=()=>{l.closeOnClickModal&&Gn(An.distinguishCancelAndClose?"close":"cancel")},Hn=useSameTarget$1(jn),Gn=Kn=>{var er;(l.boxType!=="prompt"||Kn!=="confirm"||qn())&&(An.action=Kn,An.beforeClose?(er=An.beforeClose)==null||er.call(An,Kn,An,Pn):Pn())},qn=()=>{if(l.boxType==="prompt"){const Kn=An.inputPattern;if(Kn&&!Kn.test(An.inputValue||""))return An.editorErrorMessage=An.inputErrorMessage||Pt("el.messagebox.error"),An.validateError=!0,!1;const er=An.inputValidator;if(isFunction$5(er)){const ir=er(An.inputValue);if(ir===!1)return An.editorErrorMessage=An.inputErrorMessage||Pt("el.messagebox.error"),An.validateError=!0,!1;if(isString$6(ir))return An.editorErrorMessage=ir,An.validateError=!0,!1}}return An.editorErrorMessage="",An.validateError=!1,!0},Vn=()=>{var Kn,er;const ir=(Kn=Dn.value)==null?void 0:Kn.$refs;return(er=ir==null?void 0:ir.input)!=null?er:ir==null?void 0:ir.textarea},Un=()=>{Gn("close")};return l.lockScroll&&useLockscreen$1(jt,{ns:kt}),{...Vue.toRefs(An),ns:kt,overlayEvent:Hn,visible:jt,hasMessage:wn,typeClass:hn,contentId:bn,inputId:vn,btnSize:Dt,iconComponent:Cn,confirmButtonClasses:Mn,rootRef:En,focusStartRef:In,headerRef:Bn,inputRef:Dn,isDragging:On,confirmRef:Tn,doClose:Pn,handleClose:Un,onCloseRequested:()=>{l.closeOnPressEscape&&Un()},handleWrapperClick:jn,handleInputEnter:Kn=>{var er;if(An.inputType!=="textarea"&&!((er=Dn.value)!=null&&er.isComposing))return Kn.preventDefault(),Gn("confirm")},handleAction:Gn,t:Pt}}});const _hoisted_1$25=["aria-label","aria-describedby"],_hoisted_2$1u=["aria-label"],_hoisted_3$19=["id"];function _sfc_render$1K(l,Ve,At,Et,kt,Dt){const Pt=Vue.resolveComponent("el-icon"),Lt=Vue.resolveComponent("el-input"),jt=Vue.resolveComponent("el-button"),An=Vue.resolveComponent("el-focus-trap"),hn=Vue.resolveComponent("el-overlay");return Vue.openBlock(),Vue.createBlock(Vue.Transition,{name:"fade-in-linear",onAfterLeave:Ve[11]||(Ve[11]=bn=>l.$emit("vanish")),persisted:""},{default:Vue.withCtx(()=>[Vue.withDirectives(Vue.createVNode(hn,{"z-index":l.zIndex,"overlay-class":[l.ns.is("message-box"),l.modalClass],mask:l.modal},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",{role:"dialog","aria-label":l.title,"aria-modal":"true","aria-describedby":l.showInput?void 0:l.contentId,class:Vue.normalizeClass(`${l.ns.namespace.value}-overlay-message-box`),onClick:Ve[8]||(Ve[8]=(...bn)=>l.overlayEvent.onClick&&l.overlayEvent.onClick(...bn)),onMousedown:Ve[9]||(Ve[9]=(...bn)=>l.overlayEvent.onMousedown&&l.overlayEvent.onMousedown(...bn)),onMouseup:Ve[10]||(Ve[10]=(...bn)=>l.overlayEvent.onMouseup&&l.overlayEvent.onMouseup(...bn))},[Vue.createVNode(An,{loop:"",trapped:l.visible,"focus-trap-el":l.rootRef,"focus-start-el":l.focusStartRef,onReleaseRequested:l.onCloseRequested},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",{ref:"rootRef",class:Vue.normalizeClass([l.ns.b(),l.customClass,l.ns.is("draggable",l.draggable),l.ns.is("dragging",l.isDragging),{[l.ns.m("center")]:l.center}]),style:Vue.normalizeStyle(l.customStyle),tabindex:"-1",onClick:Ve[7]||(Ve[7]=Vue.withModifiers(()=>{},["stop"]))},[l.title!==null&&l.title!==void 0?(Vue.openBlock(),Vue.createElementBlock("div",{key:0,ref:"headerRef",class:Vue.normalizeClass([l.ns.e("header"),{"show-close":l.showClose}])},[Vue.createElementVNode("div",{class:Vue.normalizeClass(l.ns.e("title"))},[l.iconComponent&&l.center?(Vue.openBlock(),Vue.createBlock(Pt,{key:0,class:Vue.normalizeClass([l.ns.e("status"),l.typeClass])},{default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(l.iconComponent)))]),_:1},8,["class"])):Vue.createCommentVNode("v-if",!0),Vue.createElementVNode("span",null,Vue.toDisplayString(l.title),1)],2),l.showClose?(Vue.openBlock(),Vue.createElementBlock("button",{key:0,type:"button",class:Vue.normalizeClass(l.ns.e("headerbtn")),"aria-label":l.t("el.messagebox.close"),onClick:Ve[0]||(Ve[0]=bn=>l.handleAction(l.distinguishCancelAndClose?"close":"cancel")),onKeydown:Ve[1]||(Ve[1]=Vue.withKeys(Vue.withModifiers(bn=>l.handleAction(l.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[Vue.createVNode(Pt,{class:Vue.normalizeClass(l.ns.e("close"))},{default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(l.closeIcon||"close")))]),_:1},8,["class"])],42,_hoisted_2$1u)):Vue.createCommentVNode("v-if",!0)],2)):Vue.createCommentVNode("v-if",!0),Vue.createElementVNode("div",{id:l.contentId,class:Vue.normalizeClass(l.ns.e("content"))},[Vue.createElementVNode("div",{class:Vue.normalizeClass(l.ns.e("container"))},[l.iconComponent&&!l.center&&l.hasMessage?(Vue.openBlock(),Vue.createBlock(Pt,{key:0,class:Vue.normalizeClass([l.ns.e("status"),l.typeClass])},{default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(l.iconComponent)))]),_:1},8,["class"])):Vue.createCommentVNode("v-if",!0),l.hasMessage?(Vue.openBlock(),Vue.createElementBlock("div",{key:1,class:Vue.normalizeClass(l.ns.e("message"))},[Vue.renderSlot(l.$slots,"default",{},()=>[l.dangerouslyUseHTMLString?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(l.showInput?"label":"p"),{key:1,for:l.showInput?l.inputId:void 0,innerHTML:l.message},null,8,["for","innerHTML"])):(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(l.showInput?"label":"p"),{key:0,for:l.showInput?l.inputId:void 0,textContent:Vue.toDisplayString(l.message)},null,8,["for","textContent"]))])],2)):Vue.createCommentVNode("v-if",!0)],2),Vue.withDirectives(Vue.createElementVNode("div",{class:Vue.normalizeClass(l.ns.e("input"))},[Vue.createVNode(Lt,{id:l.inputId,ref:"inputRef",modelValue:l.inputValue,"onUpdate:modelValue":Ve[2]||(Ve[2]=bn=>l.inputValue=bn),type:l.inputType,placeholder:l.inputPlaceholder,"aria-invalid":l.validateError,class:Vue.normalizeClass({invalid:l.validateError}),onKeydown:Vue.withKeys(l.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),Vue.createElementVNode("div",{class:Vue.normalizeClass(l.ns.e("errormsg")),style:Vue.normalizeStyle({visibility:l.editorErrorMessage?"visible":"hidden"})},Vue.toDisplayString(l.editorErrorMessage),7)],2),[[Vue.vShow,l.showInput]])],10,_hoisted_3$19),Vue.createElementVNode("div",{class:Vue.normalizeClass(l.ns.e("btns"))},[l.showCancelButton?(Vue.openBlock(),Vue.createBlock(jt,{key:0,type:l.cancelButtonType==="text"?"":l.cancelButtonType,text:l.cancelButtonType==="text",loading:l.cancelButtonLoading,"loading-icon":l.cancelButtonLoadingIcon,class:Vue.normalizeClass([l.cancelButtonClass]),round:l.roundButton,size:l.btnSize,onClick:Ve[3]||(Ve[3]=bn=>l.handleAction("cancel")),onKeydown:Ve[4]||(Ve[4]=Vue.withKeys(Vue.withModifiers(bn=>l.handleAction("cancel"),["prevent"]),["enter"]))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(l.cancelButtonText||l.t("el.messagebox.cancel")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","size"])):Vue.createCommentVNode("v-if",!0),Vue.withDirectives(Vue.createVNode(jt,{ref:"confirmRef",type:l.confirmButtonType==="text"?"":l.confirmButtonType,text:l.confirmButtonType==="text",loading:l.confirmButtonLoading,"loading-icon":l.confirmButtonLoadingIcon,class:Vue.normalizeClass([l.confirmButtonClasses]),round:l.roundButton,disabled:l.confirmButtonDisabled,size:l.btnSize,onClick:Ve[5]||(Ve[5]=bn=>l.handleAction("confirm")),onKeydown:Ve[6]||(Ve[6]=Vue.withKeys(Vue.withModifiers(bn=>l.handleAction("confirm"),["prevent"]),["enter"]))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(l.confirmButtonText||l.t("el.messagebox.confirm")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","disabled","size"]),[[Vue.vShow,l.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,_hoisted_1$25)]),_:3},8,["z-index","overlay-class","mask"]),[[Vue.vShow,l.visible]])]),_:3})}var MessageBoxConstructor=_export_sfc$3(_sfc_main$2R,[["render",_sfc_render$1K]]);const messageInstance=new Map,getAppendToElement=l=>{let Ve=document.body;return l.appendTo&&(isString$6(l.appendTo)&&(Ve=document.querySelector(l.appendTo)),isElement$1(l.appendTo)&&(Ve=l.appendTo),isElement$1(Ve)||(debugWarn$1("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),Ve=document.body)),Ve},initInstance=(l,Ve,At=null)=>{const Et=Vue.createVNode(MessageBoxConstructor,l,isFunction$5(l.message)||Vue.isVNode(l.message)?{default:isFunction$5(l.message)?l.message:()=>l.message}:null);return Et.appContext=At,Vue.render(Et,Ve),getAppendToElement(l).appendChild(Ve.firstElementChild),Et.component},genContainer=()=>document.createElement("div"),showMessage=(l,Ve)=>{const At=genContainer();l.onVanish=()=>{Vue.render(null,At),messageInstance.delete(kt)},l.onAction=Dt=>{const Pt=messageInstance.get(kt);let Lt;Lt=l.showInput?{value:kt.inputValue,action:Dt}:Dt,l.callback?l.callback(Lt,Et.proxy):Dt==="cancel"||Dt==="close"?l.distinguishCancelAndClose&&Dt!=="cancel"?Pt.reject("close"):Pt.reject("cancel"):Pt.resolve(Lt)};const Et=initInstance(l,At,Ve),kt=Et.proxy;for(const Dt in l)hasOwn$3(l,Dt)&&!hasOwn$3(kt.$props,Dt)&&(Dt==="closeIcon"&&isObject$a(l[Dt])?kt[Dt]=Vue.markRaw(l[Dt]):kt[Dt]=l[Dt]);return kt.visible=!0,kt};function MessageBox(l,Ve=null){if(!isClient$1)return Promise.reject();let At;return isString$6(l)||Vue.isVNode(l)?l={message:l}:At=l.callback,new Promise((Et,kt)=>{const Dt=showMessage(l,Ve??MessageBox._context);messageInstance.set(Dt,{options:l,callback:At,resolve:Et,reject:kt})})}const MESSAGE_BOX_VARIANTS=["alert","confirm","prompt"],MESSAGE_BOX_DEFAULT_OPTS={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};function messageBoxFactory(l){return(Ve,At,Et,kt)=>{let Dt="";return isObject$a(At)?(Et=At,Dt=""):Dt=isUndefined$2(At)?"":At,MessageBox(Object.assign({title:Dt,message:Ve,type:"",...MESSAGE_BOX_DEFAULT_OPTS[l]},Et,{boxType:l}),kt)}}MESSAGE_BOX_VARIANTS.forEach(l=>{MessageBox[l]=messageBoxFactory(l)}),MessageBox.close=()=>{messageInstance.forEach((l,Ve)=>{Ve.doClose()}),messageInstance.clear()},MessageBox._context=null;const _MessageBox=MessageBox;_MessageBox.install=l=>{_MessageBox._context=l._context,l.config.globalProperties.$msgbox=_MessageBox,l.config.globalProperties.$messageBox=_MessageBox,l.config.globalProperties.$alert=_MessageBox.alert,l.config.globalProperties.$confirm=_MessageBox.confirm,l.config.globalProperties.$prompt=_MessageBox.prompt};const ElMessageBox=_MessageBox;function assign$8(l){for(var Ve=1;Ve<arguments.length;Ve++){var At=arguments[Ve];for(var Et in At)l[Et]=At[Et]}return l}var defaultConverter={read:function(l){return l[0]==='"'&&(l=l.slice(1,-1)),l.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(l){return encodeURIComponent(l).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function init$4(l,Ve){function At(Et,kt,Dt){if(typeof document<"u"){typeof(Dt=assign$8({},Ve,Dt)).expires=="number"&&(Dt.expires=new Date(Date.now()+864e5*Dt.expires)),Dt.expires&&(Dt.expires=Dt.expires.toUTCString()),Et=encodeURIComponent(Et).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var Pt="";for(var Lt in Dt)Dt[Lt]&&(Pt+="; "+Lt,Dt[Lt]!==!0&&(Pt+="="+Dt[Lt].split(";")[0]));return document.cookie=Et+"="+l.write(kt,Et)+Pt}}return Object.create({set:At,get:function(Et){if(typeof document<"u"&&(!arguments.length||Et)){for(var kt=document.cookie?document.cookie.split("; "):[],Dt={},Pt=0;Pt<kt.length;Pt++){var Lt=kt[Pt].split("="),jt=Lt.slice(1).join("=");try{var An=decodeURIComponent(Lt[0]);if(Dt[An]=l.read(jt,An),Et===An)break}catch{}}return Et?Dt[Et]:Dt}},remove:function(Et,kt){At(Et,"",assign$8({},kt,{expires:-1}))},withAttributes:function(Et){return init$4(this.converter,assign$8({},this.attributes,Et))},withConverter:function(Et){return init$4(assign$8({},this.converter,Et),this.attributes)}},{attributes:{value:Object.freeze(Ve)},converter:{value:Object.freeze(l)}})}var api$1=init$4(defaultConverter,{path:"/"});const jwtKey="JWT",currentUserNameKey="USERNAME",currentTenantUserNameKey="TENANT_USERNAME",currentUserInfoKey="CURRENT_USER",currentSystemUrlKey="CURRENT_SYSTEM_URL_",langKey="CURRENT_LANGUAGE",allLangKey="AMB_LANG_INFO",versionEnv="VERSION_ENVIRONMENT",userVersion="CURRENT_USER_SYSTEM_VERSION",runDevpJwtKey="_runDevpJWT",themeKey="CURRENT_THEME",allThemeKey="AMB_THEME_INFO";function getToken$2(){let l;return isDevpSystem$1()?l=getMyToken():(l=getSessionCache$1(runDevpJwtKey),l||(l=getMyToken())),l}function isDevpSystem$1(){let l=!1;const Ve=window.$vueApp.config.globalProperties.systemCode;return Ve&&Ve==="devp"&&(l=!0),l}function getMyToken(){let l=getCookieCache$1(jwtKey);return l||(l=getSessionCache$1(jwtKey)),l}function setToken$1(l){setCookieCache(jwtKey,l),setSessionCache$1(jwtKey,l)}function removeToken$1(){removeCookieCache(jwtKey),removeSessionCache(jwtKey),removeSessionCache(runDevpJwtKey)}function getUsername$1(){let l=getRunInfoKey$1(currentUserNameKey),Ve=getCookieCache$1(l);return Ve||(Ve=getSessionCache$1(l)),Ve}function setUsername$1(l){let Ve=getRunInfoKey$1(currentUserNameKey);setSessionCache$1(Ve,l),setCookieCache(Ve,l)}function removeUsername$1(){removeSessionCache(currentUserNameKey),removeCookieCache(currentUserNameKey)}function getTenantUsername$1(){let l=getCookieCache$1(currentTenantUserNameKey);return l||(l=getSessionCache$1(currentTenantUserNameKey)),l}function setTenantUsername$1(l){setSessionCache$1(currentTenantUserNameKey,l),setCookieCache(currentTenantUserNameKey,l)}function removeTenantUsername$1(){removeSessionCache(currentTenantUserNameKey),removeCookieCache(currentTenantUserNameKey)}function getCurrentUser$1(){return getCurrentUserByKey(getRunInfoKey$1(currentUserInfoKey))}function getCurrentUserByKey(l){let Ve=getCookieCache$1(l);if(Ve||(Ve=getSessionCache$1(l)),Ve)return JSON.parse(Ve)}function setCurrentUser$1(l){const Ve=getRunInfoKey$1(currentUserInfoKey);if(l){l.password&&(l.password=null);const At=JSON.stringify(l);setSessionCache$1(Ve,At),setCookieCache(Ve,At)}}function getRunInfoKey$1(l){let Ve=l;return isDevpSystem$1()||getSessionCache$1(runDevpJwtKey)&&(Ve="_run_"+Ve),Ve}function removeCurrentUser$1(){removeSessionCache(currentUserInfoKey),removeCookieCache(currentUserInfoKey)}function getCookieCache$1(l){return api$1.get(l)}function setCookieCache(l,Ve){api$1.set(l,Ve,{path:"/"})}function removeCookieCache(l){api$1.remove(l,{path:"/"})}function getSessionCache$1(l){return window.sessionStorage.getItem(l)}function setSessionCache$1(l,Ve){return window.sessionStorage.setItem(l,Ve)}function removeSessionCache(l){window.sessionStorage.removeItem(l)}function getSystemCacheUrlByCode(l){if(l||(l=window.$vueApp.config.globalProperties.customSystem),l||(l=window.$vueApp.config.globalProperties.systemCode),l){const Ve=getSystemCacheUrl(),At=Ve?Ve[l]:null;if(At)return At.backendUrl}}function getSystemCacheFrontendUrlByCode(l){if(l||(l=window.$vueApp.config.globalProperties.customSystem),l||(l=window.$vueApp.config.globalProperties.systemCode),l){const Ve=getSystemCacheUrl(),At=Ve?Ve[l]:null;if(At)return At.frontendUrl}}function getSystemCacheUrl(){let l=localStorage.getItem(currentSystemUrlKey);if(l)return JSON.parse(l)}function setSystemCacheUrl(l){if(l){const Ve=JSON.stringify(l);localStorage.setItem(currentSystemUrlKey,Ve)}}function removeSystemCacheUrl$1(){localStorage.removeItem(currentSystemUrlKey)}function getLanguage$1(){let l=getCookieCache$1(langKey);const Ve=window.$vueApp.config.globalProperties.projectModel;return!l&&Ve&&Ve==="developing.model"&&(l=getSessionCache$1(langKey)),l}function setLanguage$1(l){l||(l="zh_CN"),setCookieCache(langKey,l),setSessionCache$1(langKey,l)}function removeLanguage$1(){removeCookieCache(langKey),removeSessionCache(langKey)}function getAllLanguages$1(){let l=getCookieCache$1(allLangKey);const Ve=window.$vueApp.config.globalProperties.projectModel;return!l&&Ve&&Ve==="developing.model"&&(l=getSessionCache$1(allLangKey)),l}function setAllLanguages(l){setCookieCache(allLangKey,l),setSessionCache$1(allLangKey,l)}function removeAllLanguages$1(){removeCookieCache(allLangKey),removeSessionCache(allLangKey)}function getTheme$1(){return localStorage.getItem(themeKey)}function setTheme$1(l){localStorage.setItem(themeKey,l)}function removeTheme$1(){localStorage.removeItem(themeKey)}function getAllThemes(){let l=getCookieCache$1(allThemeKey);const Ve=window.$vueApp.config.globalProperties.projectModel;return!l&&Ve&&Ve==="developing.model"&&(l=getSessionCache$1(allThemeKey)),l}function setAllThemes(l){setCookieCache(allThemeKey,l),setSessionCache$1(allThemeKey,l)}function removeAllThemes$1(){removeCookieCache(allThemeKey),removeSessionCache(allThemeKey)}function removePublishControl$1(){removeCookieCache(versionEnv),removeCookieCache(userVersion)}const authApi={getToken:getToken$2,setToken:setToken$1,removeToken:removeToken$1,getUsername:getUsername$1,setUsername:setUsername$1,removeUsername:removeUsername$1,getTenantUsername:getTenantUsername$1,setTenantUsername:setTenantUsername$1,removeTenantUsername:removeTenantUsername$1,getCurrentUser:getCurrentUser$1,setCurrentUser:setCurrentUser$1,removeCurrentUser:removeCurrentUser$1,getCookieCache:getCookieCache$1,setCookieCache,removeCookieCache,getSessionCache:getSessionCache$1,setSessionCache:setSessionCache$1,removeSessionCache,getSystemCacheUrlByCode,getSystemCacheFrontendUrlByCode,getSystemCacheUrl,setSystemCacheUrl,removeSystemCacheUrl:removeSystemCacheUrl$1,getLanguage:getLanguage$1,setLanguage:setLanguage$1,removeLanguage:removeLanguage$1,getAllLanguages:getAllLanguages$1,setAllLanguages,removeAllLanguages:removeAllLanguages$1,getTheme:getTheme$1,setTheme:setTheme$1,removeTheme:removeTheme$1,getAllThemes,setAllThemes,removeAllThemes:removeAllThemes$1,removePublishControl:removePublishControl$1,isDevpSystem:isDevpSystem$1,getRunInfoKey:getRunInfoKey$1};let getRandomValues;const rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&(getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!getRandomValues))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}const byteToHex=[];for(let l=0;l<256;++l)byteToHex.push((l+256).toString(16).slice(1));function unsafeStringify(l,Ve=0){return byteToHex[l[Ve+0]]+byteToHex[l[Ve+1]]+byteToHex[l[Ve+2]]+byteToHex[l[Ve+3]]+"-"+byteToHex[l[Ve+4]]+byteToHex[l[Ve+5]]+"-"+byteToHex[l[Ve+6]]+byteToHex[l[Ve+7]]+"-"+byteToHex[l[Ve+8]]+byteToHex[l[Ve+9]]+"-"+byteToHex[l[Ve+10]]+byteToHex[l[Ve+11]]+byteToHex[l[Ve+12]]+byteToHex[l[Ve+13]]+byteToHex[l[Ve+14]]+byteToHex[l[Ve+15]]}const randomUUID=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),native={randomUUID};function v4(l,Ve,At){if(native.randomUUID&&!Ve&&!l)return native.randomUUID();const Et=(l=l||{}).random||(l.rng||rng)();if(Et[6]=15&Et[6]|64,Et[8]=63&Et[8]|128,Ve){At=At||0;for(let kt=0;kt<16;++kt)Ve[At+kt]=Et[kt];return Ve}return unsafeStringify(Et)}const version$3="3.7.8",VERSION$2=version$3,_hasBuffer=typeof Buffer=="function",_TD=typeof TextDecoder=="function"?new TextDecoder:void 0,_TE=typeof TextEncoder=="function"?new TextEncoder:void 0,b64ch="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",b64chs=Array.prototype.slice.call(b64ch),b64tab=(l=>{let Ve={};return l.forEach((At,Et)=>Ve[At]=Et),Ve})(b64chs),b64re=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,_fromCC=String.fromCharCode.bind(String),_U8Afrom=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):l=>new Uint8Array(Array.prototype.slice.call(l,0)),_mkUriSafe=l=>l.replace(/=/g,"").replace(/[+\/]/g,Ve=>Ve=="+"?"-":"_"),_tidyB64=l=>l.replace(/[^A-Za-z0-9\+\/]/g,""),btoaPolyfill=l=>{let Ve,At,Et,kt,Dt="";const Pt=l.length%3;for(let Lt=0;Lt<l.length;){if((At=l.charCodeAt(Lt++))>255||(Et=l.charCodeAt(Lt++))>255||(kt=l.charCodeAt(Lt++))>255)throw new TypeError("invalid character found");Ve=At<<16|Et<<8|kt,Dt+=b64chs[Ve>>18&63]+b64chs[Ve>>12&63]+b64chs[Ve>>6&63]+b64chs[63&Ve]}return Pt?Dt.slice(0,Pt-3)+"===".substring(Pt):Dt},_btoa=typeof btoa=="function"?l=>btoa(l):_hasBuffer?l=>Buffer.from(l,"binary").toString("base64"):btoaPolyfill,_fromUint8Array=_hasBuffer?l=>Buffer.from(l).toString("base64"):l=>{let Ve=[];for(let At=0,Et=l.length;At<Et;At+=4096)Ve.push(_fromCC.apply(null,l.subarray(At,At+4096)));return _btoa(Ve.join(""))},fromUint8Array=(l,Ve=!1)=>Ve?_mkUriSafe(_fromUint8Array(l)):_fromUint8Array(l),cb_utob=l=>{if(l.length<2)return(Ve=l.charCodeAt(0))<128?l:Ve<2048?_fromCC(192|Ve>>>6)+_fromCC(128|63&Ve):_fromCC(224|Ve>>>12&15)+_fromCC(128|Ve>>>6&63)+_fromCC(128|63&Ve);var Ve=65536+1024*(l.charCodeAt(0)-55296)+(l.charCodeAt(1)-56320);return _fromCC(240|Ve>>>18&7)+_fromCC(128|Ve>>>12&63)+_fromCC(128|Ve>>>6&63)+_fromCC(128|63&Ve)},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=l=>l.replace(re_utob,cb_utob),_encode=_hasBuffer?l=>Buffer.from(l,"utf8").toString("base64"):_TE?l=>_fromUint8Array(_TE.encode(l)):l=>_btoa(utob(l)),encode$2=(l,Ve=!1)=>Ve?_mkUriSafe(_encode(l)):_encode(l),encodeURI$1=l=>encode$2(l,!0),re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=l=>{switch(l.length){case 4:var Ve=((7&l.charCodeAt(0))<<18|(63&l.charCodeAt(1))<<12|(63&l.charCodeAt(2))<<6|63&l.charCodeAt(3))-65536;return _fromCC((Ve>>>10)+55296)+_fromCC(56320+(1023&Ve));case 3:return _fromCC((15&l.charCodeAt(0))<<12|(63&l.charCodeAt(1))<<6|63&l.charCodeAt(2));default:return _fromCC((31&l.charCodeAt(0))<<6|63&l.charCodeAt(1))}},btou=l=>l.replace(re_btou,cb_btou),atobPolyfill=l=>{if(l=l.replace(/\s+/g,""),!b64re.test(l))throw new TypeError("malformed base64.");let Ve,At,Et;l+="==".slice(2-(3&l.length));let kt=[];for(let Dt=0;Dt<l.length;)Ve=b64tab[l.charAt(Dt++)]<<18|b64tab[l.charAt(Dt++)]<<12|(At=b64tab[l.charAt(Dt++)])<<6|(Et=b64tab[l.charAt(Dt++)]),At===64?kt.push(_fromCC(Ve>>16&255)):Et===64?kt.push(_fromCC(Ve>>16&255,Ve>>8&255)):kt.push(_fromCC(Ve>>16&255,Ve>>8&255,255&Ve));return kt.join("")},_atob=typeof atob=="function"?l=>atob(_tidyB64(l)):_hasBuffer?l=>Buffer.from(l,"base64").toString("binary"):atobPolyfill,_toUint8Array=_hasBuffer?l=>_U8Afrom(Buffer.from(l,"base64")):l=>_U8Afrom(_atob(l).split("").map(Ve=>Ve.charCodeAt(0))),toUint8Array=l=>_toUint8Array(_unURI(l)),_decode=_hasBuffer?l=>Buffer.from(l,"base64").toString("utf8"):_TD?l=>_TD.decode(_toUint8Array(l)):l=>btou(_atob(l)),_unURI=l=>_tidyB64(l.replace(/[-_]/g,Ve=>Ve=="-"?"+":"/")),decode$4=l=>_decode(_unURI(l)),isValid=l=>{if(typeof l!="string")return!1;const Ve=l.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(Ve)||!/[^\s0-9a-zA-Z\-_]/.test(Ve)},_noEnum=l=>({value:l,enumerable:!1,writable:!0,configurable:!0}),extendString=function(){const l=(Ve,At)=>Object.defineProperty(String.prototype,Ve,_noEnum(At));l("fromBase64",function(){return decode$4(this)}),l("toBase64",function(Ve){return encode$2(this,Ve)}),l("toBase64URI",function(){return encode$2(this,!0)}),l("toBase64URL",function(){return encode$2(this,!0)}),l("toUint8Array",function(){return toUint8Array(this)})},extendUint8Array=function(){const l=(Ve,At)=>Object.defineProperty(Uint8Array.prototype,Ve,_noEnum(At));l("toBase64",function(Ve){return fromUint8Array(this,Ve)}),l("toBase64URI",function(){return fromUint8Array(this,!0)}),l("toBase64URL",function(){return fromUint8Array(this,!0)})},extendBuiltins=()=>{extendString(),extendUint8Array()},gBase64={version:version$3,VERSION:VERSION$2,atob:_atob,atobPolyfill,btoa:_btoa,btoaPolyfill,fromBase64:decode$4,toBase64:encode$2,encode:encode$2,encodeURI:encodeURI$1,encodeURL:encodeURI$1,utob,btou,decode:decode$4,isValid,fromUint8Array,toUint8Array,extendString,extendUint8Array,extendBuiltins},watermarkSetting="AMB_WATERMARK_SETTING";function getWatermark(){return localStorage.getItem(watermarkSetting)}function cacheWatermark(l){localStorage.setItem(watermarkSetting,l)}function removeWatermark(){localStorage.removeItem(watermarkSetting)}function getWatermarkSetting(){return new Promise((l,Ve)=>{let At=getWatermark();if(At&&At!=="EMPTY_VALUE")try{At=JSON.parse(At),At.font=At.fontStyle,At.color=At.fontColor,l(At)}catch(Et){console.error("watermark content error.",Et),l()}else window.$vueApp.config.globalProperties.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/watermark").then(Et=>{Et?(At=Et,cacheWatermark(JSON.stringify(At)),At.font=At.fontStyle,At.color=At.fontColor,l(At)):(cacheWatermark("EMPTY_VALUE"),l())})})}const GLOBAL_PROP={loadState:"GLOBAL_PROP_LOAD_STATE",CAN_SHOW_ORG_TREE:"global-show-org-tree",PORTAL_CHART_LAYOUT_COL:"portal-chart-layout-col"};function removeAllGlobalPropCache(){localStorage.removeItem(GLOBAL_PROP.loadState),localStorage.removeItem(GLOBAL_PROP.CAN_SHOW_ORG_TREE),localStorage.removeItem(GLOBAL_PROP.PORTAL_CHART_LAYOUT_COL)}function getCanShowOrgTree(){return localStorage.getItem(GLOBAL_PROP.CAN_SHOW_ORG_TREE)}function cacheCanShowOrgTree(l){localStorage.setItem(GLOBAL_PROP.CAN_SHOW_ORG_TREE,l)}const GLOBAL_DEPT_USER_TREE_DISPLAY_ITEM="global-dept-user-tree-display-item",GLOBAL_SUPER_GRID_SETTING="global-super-grid-setting",GLOBAL_COMPONENT_SETTING_LOAD_STATE="global-component-setting-load-state",GLOBAL_FORM_SETTING="global-form-setting",GLOBAL_WORKFLOW_HISTORY_LIST_SETTING="global-workflow-history-list-setting",globalComponentCacheKeyMap={DEPT_USER_TREE:GLOBAL_DEPT_USER_TREE_DISPLAY_ITEM,SUPER_GRID:GLOBAL_SUPER_GRID_SETTING,FORM:GLOBAL_FORM_SETTING,WF_HISTORY_LIST:GLOBAL_WORKFLOW_HISTORY_LIST_SETTING};function getCacheKeyByType(l){return globalComponentCacheKeyMap[l]??l}function getClobalComponentSuperGridSetting(){const l=localStorage.getItem(GLOBAL_SUPER_GRID_SETTING);if(l)try{return JSON.parse(l)}catch(Ve){return console.error("Failed to parse global super grid setting from localStorage:",Ve),null}}function removeAllComponentGlobalCache(){localStorage.removeItem(GLOBAL_DEPT_USER_TREE_DISPLAY_ITEM)}function getClobalComponentSettingByType(l){const Ve=localStorage.getItem(l);if(Ve)try{return JSON.parse(Ve)}catch(At){return console.error(`Failed to parse global setting from localStorage for key ${l}:`,At),null}}function getWorkflowHistoryListSetting(){let l=getClobalComponentSettingByType(getCacheKeyByType("WF_HISTORY_LIST"));if(typeof l=="string")try{l=JSON.parse(l)}catch(Ve){return console.error("Failed to parse global workflow history list setting:",Ve),null}return l||null}function isInDingTalk(){return navigator.userAgent.toLowerCase().includes("dingtalk")}function getRelativeBaseUrl(l){if(!l)return l;if(window.$vueApp.config.globalProperties.projectModel===void 0||window.$vueApp.config.globalProperties.projectModel!=="developing.model"){let Ve=getUrlPrefix(location.href);if(window.sessionStorage.setItem("relativeUrl",Ve),Ve&&l){let At="";const Et=l.split("/");if(Et.length>=3){const kt=Et[0]+"//"+Et[2];At=l.substring(l.indexOf(kt)+kt.length)}return Ve.lastIndexOf("/")===Ve.length-1&&(Ve=Ve.substring(0,Ve.lastIndexOf("/"))),At?Ve+At:Ve}}return l}function getUrlPrefix(l){const Ve=l.split("#");if(Ve.length>0){const At=Ve[0];let Et=At;const kt=At.split("/");return kt.length>=3&&(Et=kt[0]+"//"+kt[2]+"/"),Et}}function isShowMenuRoute(){let l=window.$vueApp.config.globalProperties.showMenuRoute;return l===void 0&&(l="false"),l==="true"}function isShowSystemMenu(){let l=window.$vueApp.config.globalProperties.showSystemMenu;return l===void 0&&(l="false"),l==="true"}function getSystemFrontendUrl(l){return window.$vueApp.config.globalProperties.projectModel&&window.$vueApp.config.globalProperties.projectModel==="developing.model"&&window.$vueApp.config.globalProperties.frontUrl?window.$vueApp.config.globalProperties.frontUrl:getRelativeBaseUrl(l)}function getSystemFrontendUrlWith(l){return window.$vueApp.config.globalProperties.projectModel&&window.$vueApp.config.globalProperties.projectModel==="developing.model"?l||window.$vueApp.config.globalProperties.frontUrl:getRelativeBaseUrl(l)}function isPlateSys(l){return!(!l||l!=="agilebuilder"&&l!=="portal"&&l!=="mms"&&l!=="task"&&l!=="wf"&&l!=="dc"&&l!=="mc"&&l!=="mobile"&&l!=="acs"&&l!=="bs"&&l!=="pcm"&&l!=="hc"&&l!=="devp"&&l!=="ucr")}function isPromise$2(l){return l&&Object.prototype.toString.call(l)==="[object Promise]"}function getTimeZone(){const l=new Date+"";let Ve="";if(l.indexOf("GMT")>0){const At=l.substring(l.indexOf("GMT")+3,l.indexOf("(")).trim();Ve="UTC"+At.substring(0,At.length-2)+":"+At.substring(At.length-2)}else l.indexOf("UTC")>0&&(Ve="UTC"+l.substring(l.indexOf("UTC")+3,l.indexOf("(")).trim());return Ve}function setCustomSystemBackendUrl(l){if(!window.$vueApp.config.globalProperties.projectModel||window.$vueApp.config.globalProperties.projectModel!=="developing.model"){const Ve=authApi.getSystemCacheUrlByCode(l);Ve&&(window.$vueApp.config.globalProperties.baseURL=getRelativeBaseUrl(Ve))}}function isMobileBrowser(){navigator.userAgent,navigator.maxTouchPoints;const l=navigator.userAgent;if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Opera Mobi|Windows CE|Symbian|Windows Phone|POLARIS|lgtelecom|nokia|SonyEricsson|LG|SAMSUNG|Samsung|Mobile/i.test(l)||/Macintosh/i.test(l)&&navigator.maxTouchPoints!==void 0&&navigator.maxTouchPoints>=1||navigator.userAgentData&&navigator.userAgentData.mobile===!0)return!0;if(/Windows NT|Win64|X11|Linux x86_64|CrOS/i.test(l)){const Ve=window.matchMedia&&window.matchMedia("(any-pointer: fine)").matches;if(navigator.maxTouchPoints!==void 0&&navigator.maxTouchPoints>=1&&!Ve)return!0}return!1}function getLangs(){return getAllLanguages()}function getLangByShort(l){let Ve;const At=getLangs();return At&&(Ve=JSON.parse(At)[l]),Ve||(Ve="zh_CN"),Ve}function getUuidv4(){return v4().replace(/-/g,"")}function isOpenMobileGateway(){let l=getCookieCache("IS_OPEN_MOBILE_GATEWAY");return l==null&&(l="true"),l}function getReplaceUrlDomain(l){if(isOpenMobileGateway()==="true"&&l!==void 0&&window.$vueApp.config.globalProperties.replaceUrl){const At=uswindow.$vueApp.config.globalProperties.baseAPI;if((l+"").indexOf(uswindow.$vueApp.config.globalProperties.replaceUrl+"/")<0&&(l+"").indexOf("://")>0){const Et=At.substring(0,At.indexOf("://")),kt=At.substring(At.indexOf("://")+3),Dt=Et+"://"+kt.substring(0,kt.indexOf("/")),Pt=At.substring(0,At.indexOf("://"));let Lt=l.substring(l.indexOf("://")+3);Pt+"://"+Lt.substring(0,Lt.indexOf("/"))===Dt&&(Lt=Lt.substring(Lt.indexOf("/")),l=uswindow.$vueApp.config.globalProperties.replaceUrl+Lt)}}return l}function getAuthSource(){return window.localStorage.getItem("auth_source")}function isDingTalkEnv(){const l=getAuthSource();return!!(isInDingTalk()&&l&&l==="dingtalk"&&window.top&&window.top.$dd)}function getURLSearchParamObj(l){try{const Ve=l.includes("#")?l.split("#")[1]:l,At=Ve.includes("?")?Ve.split("?")[1]:Ve,Et=new URLSearchParams(At);return Object.fromEntries(Et)}catch(Ve){console.error("error===",Ve)}}function getKkFilePreviewUrl(l){l+="&isShowWatermark=false";let Ve=getKkFileBackendUrl()+"?url="+encodeURIComponent(gBase64.encode(l));return new Promise((At,Et)=>{getWatermarkSetting().then(kt=>{kt&&kt.useRange&&kt.useRange.indexOf("annex")>=0&&(Ve=Ve+"&watermarkTxt="+kt.content+"&watermarkXSpace=60&watermarkYSpace=100&watermarkWidth=500&watermarkHeight=100"),At(Ve)}).catch(kt=>{console.error("获得水印失败",kt),At(Ve)})})}function getKkFileBackendUrl(){let l=window.$vueApp.config.globalProperties.kkFileViewUrl,Ve=l,At=window.$vueApp.config.globalProperties.baseURL;if(l&&At){let Et=At.split("/"),kt=Et[0]+"//"+Et[2],Dt=l.split("/");kt===Dt[0]+"//"+Dt[2]&&(Ve=getRelativeBaseUrl(l))}return Ve}function formatDate$1(l,Ve){/(y+)/.test(Ve)&&(Ve=Ve.replace(RegExp.$1,(l.getFullYear()+"").substr(4-RegExp.$1.length)));const At={"M+":l.getMonth()+1,"d+":l.getDate(),"H+":l.getHours(),"m+":l.getMinutes(),"s+":l.getSeconds()};for(const Et in At)if(new RegExp(`(${Et})`).test(Ve)){const kt=At[Et]+"";Ve=Ve.replace(RegExp.$1,RegExp.$1.length===1?kt:padLeftZero(kt))}return Ve}function padLeftZero(l){return("00"+l).substr(l.length)}function isValidDate(l){const Ve=new Date(l);return!isNaN(Ve.getTime())}function getLoginTimeoutUrlInfo(){const l=window.location.href,Ve=getURLSearchParamObj(l);let At;Ve&&Ve.customSystem&&(At=Ve.customSystem);let Et={loginTimeout:l};return At&&(Et.customSystem=At),Et}function cachePermissionsWhenLoginWithToken(l,Ve){return new Promise((At,Et)=>{removeAllSystemPermissions(),ssoService.getCurrentUserPermissionsBySystem(l,Ve).then(kt=>{let Dt=["index"];Dt=Dt.concat(kt),setPermissions(Dt),At()}).catch(kt=>{Et(kt)})})}function removeGlobalComponentSettings(){localStorage.removeItem(GLOBAL_COMPONENT_SETTING_LOAD_STATE);for(const l in globalComponentCacheKeyMap){const Ve=globalComponentCacheKeyMap[l];localStorage.removeItem(Ve)}}const permissionKey="PERMISSION-",permissionMenuKey="PERMISSION_MENU-",systemDefaultMenuKey="SYSTEM_DEFAULT_MENU_CODE-",customMenuKey="CUSTOM_MENU-",_RUN_PERMISSION="_RUN_PERMISSION",permissionAllSystemKey="PERMISSION_All_SYSTSEM_KEY",mobilePermissionKey="PERMISSION-MOBILE-WEB";function getSystemCode(){let l;return l=window.$vueApp.config.globalProperties.customSystem?window.$vueApp.config.globalProperties.customSystem:window.$vueApp.config.globalProperties.currentSystem?window.$vueApp.config.globalProperties.currentSystem:window.$vueApp.config.globalProperties.systemCode,l}function getPermissions(l){let Ve=null;l&&l+""!="null"||(l=getSystemCode());let At=localStorage.getItem(permissionKey+l);if(At&&(Ve||(Ve={}),Object.assign(Ve,JSON.parse(At))),isMobileBrowser()){const Et=localStorage.getItem(mobilePermissionKey);Et&&(Ve||(Ve={}),Object.assign(Ve,JSON.parse(Et)))}return Ve}function getTotalPermissions(l){let Ve;new Date().getTime();const At=getSessionCache(_RUN_PERMISSION);let Et;At&&(Ve=JSON.parse(At)),l&&l+""!="null"||(l=getSystemCode());const kt=localStorage.getItem(permissionKey+l);let Dt;if(kt&&(Et=JSON.parse(kt)),isMobileBrowser()){const Pt=localStorage.getItem(mobilePermissionKey);Pt&&(Dt=JSON.parse(Pt))}if(new Date().getTime(),Ve||Et||Dt){let Pt={};return Ve&&Object.assign(Pt,Ve),Et&&Object.assign(Pt,Et),Dt&&Object.assign(Pt,Dt),Pt}return null}function setPermissions(l,Ve){l&&l.length>0&&l[0];const At=isMobileBrowser();let Et;const kt=getPermissionObjs(l);return At?Et=mobilePermissionKey:(Ve&&Ve+""!="null"||(Ve=getSystemCode()),Et=permissionKey+Ve),localStorage.setItem(Et,JSON.stringify(kt)),setPermissionAllSystemKey(Et),kt}function getPermissionObjs(l){const Ve={};for(let At=0;At<l.length;At++)l[At]&&(Ve[l[At].replace(/\./g,"__")]=!0);return Ve}function getMenus(l){l&&l+""!="null"||(l=getSystemCode());const Ve=getRunInfoKey(permissionMenuKey),At=localStorage.getItem(Ve+l);return At?JSON.parse(At):null}function setMenus(l,Ve){if(l){Ve&&Ve+""!="null"||(Ve=getSystemCode()),removeCustomMenus(Ve);const At=getRunInfoKey(permissionMenuKey)+Ve;return localStorage.setItem(At,JSON.stringify(l)),setPermissionAllSystemKey(At),l}}function setDefaultMenuCode(l,Ve){if(l){Ve&&Ve+""!="null"||(Ve=getSystemCode());const At=systemDefaultMenuKey+Ve;return localStorage.setItem(At,l),setPermissionAllSystemKey(At),l}}function removeCustomMenus(l){const Ve=customMenuKey+l;localStorage.removeItem(Ve)}function setPermissionAllSystemKey(l){const Ve=getPermissionAllSystemKey();Ve.indexOf(l)<0&&Ve.push(l),localStorage.setItem(permissionAllSystemKey,Ve.join(","))}function getPermissionAllSystemKey(){let l=localStorage.getItem(permissionAllSystemKey);return l&&(l=l.split(",")),l||(l=[]),l}function removePermissionSystemKey(){localStorage.removeItem(permissionAllSystemKey)}function rtrim(l){return l.replace(/(\s*$)/g,"")}function removeAllSystemPermissions(){localStorage.removeItem(mobilePermissionKey);const l=getSystemCode();localStorage.removeItem(permissionKey+l);const Ve=getRunInfoKey(permissionMenuKey);localStorage.removeItem(Ve+l),localStorage.removeItem(customMenuKey+l),localStorage.removeItem(systemDefaultMenuKey+l),getPermissionAllSystemKey().forEach(At=>{At=rtrim(At),localStorage.removeItem(At)}),removePermissionSystemKey()}const DEV_ROLE_PROJECT_ADMIN_CODE="PROJECT_ADMIN",DEV_ROLE_PROJECT_DEVELOPER_CODE="PROJECT_DEVELOPER",DEV_ROLE_PROJECT_VIEWER_CODE="PROJECT_VIEWER";function isDevpAccess(){const l=getUsername();if(l&&l==="0bba9791-d4f1-47ca-b5e6-1fc840b54f3a"){const Ve=getPostManagementCodes();if(Ve&&Ve.indexOf(DEV_ROLE_PROJECT_ADMIN_CODE)>=0||Ve.indexOf(DEV_ROLE_PROJECT_VIEWER_CODE)>=0)return!0}return!1}function getPostManagementCodes(){const l=getRunCurrentRole();if(l){let Ve=[];return l.split(",").forEach(At=>{let Et=At;At!==DEV_ROLE_PROJECT_ADMIN_CODE&&At!==DEV_ROLE_PROJECT_DEVELOPER_CODE||(Et=DEV_ROLE_PROJECT_ADMIN_CODE),Ve.indexOf(Et)<0&&Ve.push(Et)}),Ve}}const voiceSetting="AMB_VOICE_SETTING",voiceLeafMenu="AMB_VOICE_LEAF_MENU";let voiceLeafMenuCache=null;function removeVoiceCache(){removeVoiceLeafMenu(),removeVoiceSetting()}function getVoiceLeafMenuCache(){return localStorage.getItem(voiceLeafMenu)}function cacheVoiceLeafMenu(l){localStorage.setItem(voiceLeafMenu,l)}function removeVoiceLeafMenu(){localStorage.removeItem(voiceLeafMenu)}function getVoiceSettingCache(){return localStorage.getItem(voiceSetting)}function cacheVoiceSetting(l){localStorage.setItem(voiceSetting,l)}function removeVoiceSetting(){localStorage.removeItem(voiceSetting)}function getVoiceSetting(){return new Promise((l,Ve)=>{let At=getVoiceSettingCache();if(At&&At!=="EMPTY_VALUE")try{At=JSON.parse(At),l(At)}catch(Et){console.error("voiceSetting content error.",Et),l()}else l()})}function parseVoiceMsg(l,Ve,At,Et,kt){return new Promise((Dt,Pt)=>{Ve||Dt({status:"fail",commandResult:"未获得命令配置信息,请联系运维人员进行维护"}),l||Dt({status:"fail",commandResult:"未获得录入的信息,请重新录入信息"});let Lt=null;if(Ve&&l){let jt=0;for(let An=0;An<Ve.length;An++){const hn=Ve[An];hn.command&&l.indexOf(hn.command)>=0&&hn.command.length>jt&&(Lt=hn)}if(Lt)if(kt={},Lt.params&&Lt.params.length>0){let An="匹配到命令【"+Lt.command+"】,该命令需要的参数有";Lt.params.forEach(bn=>{An=An+"【"+bn.title+"】"}),An=An+",请录入第一个参数【"+Lt.params[0].title+"】,如果跳过该参数,请说‘跳过’";let hn=Lt.params[0];hn.index=0,Dt({status:"ok",commandResult:An,settingItem:Lt,paramInfo:hn})}else{let An="匹配到命令【"+Lt.command+"】,跳转到该页面";Dt({status:"ok",commandResult:An,url:Lt.url,command:Lt.command})}else if(Et&&Et.name){let An=[];if(At&&At.params&&(An=At.params),l.indexOf("跳过")>=0){const hn="_jump_param";Et.value=hn,kt[Et.name]=hn;const bn=packageSuccessParamResult(An,Et,kt,At);Dt(bn)}else if(Et.options&&Object.keys(Et.options).length>0){let hn;Et.options;for(let bn in Et.options){const vn=Et.options[bn];(l.indexOf(bn)>=0||(vn+"").indexOf(bn)>=0)&&(hn=vn)}if(hn==null){const bn=packageFailParamResult(Et);Dt(bn)}else{Et.value=hn,kt[Et.name]=hn;const bn=packageSuccessParamResult(An,Et,kt,At);Dt(bn)}}else if(!Et.dataType||Et.dataType!=="date"&&Et.dataType!=="dateRange"){Et.value=l,kt[Et.name]=l;const hn=packageSuccessParamResult(An,Et,kt,At);Dt(hn)}else{let hn="yyyy-MM-dd";Et.format&&(hn=Et.format),Et.orgMsg=l;const bn=formatDate$1(new Date,"yyyy-MM-dd");Et.msg="今天是"+bn+"日,“"+l+"”,请从这句话中提取出时间或时间范围,日期格式为"+hn+",请直接给出答案,时间范围之间以~分隔,如果原句未指定时间或时间范围,请直接回答null",executeAi(Et).then(vn=>{let Cn;if(vn&&vn!="null"&&(Cn=formatAiDateResult(vn,hn,Et.props,Et.name)),Cn){Et.value=Cn,kt[Et.name]=Cn;const wn=packageSuccessParamResult(An,Et,kt,At);Dt(wn)}else{let wn="请说:最近1周、最近1个月等和时间相关的语句";Et.example&&(wn=Et.example),Et.example=wn;const En=packageFailParamResult(Et);Dt(En)}}).catch(vn=>{console.error("解析日期参数失败"),Pt(vn)})}}else{if(!voiceLeafMenuCache){const hn=getVoiceLeafMenuCache();if(hn)try{voiceLeafMenuCache=JSON.parse(hn)}catch{voiceLeafMenuCache=[]}else voiceLeafMenuCache=[]}voiceLeafMenuCache&&voiceLeafMenuCache.length!==0||Dt({status:"fail",commandResult:"未解析到有效命令,请重新录入命令"});const An=[];for(let hn=0;hn<voiceLeafMenuCache.length;hn++)l.indexOf(voiceLeafMenuCache[hn].name)>=0&&An.push(voiceLeafMenuCache[hn].id);if(An.length===0)return void Dt({status:"fail",commandResult:"未解析到有效命令,请重新录入命令"});window.$http.post(window.$vueApp.config.globalProperties.baseAPI+"/ai/ai-voice-command/command/match-menu",An).then(hn=>{if(hn&&Object.keys(hn).length>0)if(Object.keys(hn).length===1){const bn=hn[Object.keys(hn)[0]];let vn="匹配到菜单【"+bn.name+"】,跳转到该页面";Dt({status:"ok",commandResult:vn,url:bn.url,command:bn.name})}else{let bn="匹配到多个菜单,请点击下面的链接跳转到对应页面:<br/>";Object.keys(hn).forEach(vn=>{const Cn=hn[vn];bn+=`<amb-alink href="${Cn.url}" target="_blank" rel="noopener noreferrer" text="【${Cn.name}】"></amb-alink> <br/>`}),Dt({status:"ok",commandResult:bn})}else Dt({status:"fail",commandResult:"未解析到有效命令,请重新录入命令"})}).catch(hn=>{console.error("获取语音命令失败",hn),Dt({status:"fail",commandResult:"未解析到有效命令,请重新录入命令"})})}}})}function formatAiDateResult(l,Ve,At,Et){Ve||(Ve="yyyy-MM-dd");let kt=!1;if(l){if(l.indexOf("~")>=0){const Dt=l.split("~");if(kt=isValidDate(Dt[0]),kt&&(kt=isValidDate(Dt[1])),kt){const Pt=new Date(Dt[0]),Lt=new Date(Dt[1]);return At=At?At.join(","):Et,formatDate$1(Pt,Ve)+"~"+formatDate$1(Lt,Ve)+"~"+At}}else if(kt=isValidDate(l),kt)return formatDate$1(new Date(l),Ve)}return kt}function executeAi(l){return window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI+"/component/ai/analyzeParam",l)}function getNextParamInfo(l,Ve){if(Ve===void 0&&Ve===null&&(Ve=1),l){const At=Ve+1;if(l.length,l.length>At){let Et=l[At];return Et.index=At,Et}}}function packageSuccessParamResult(l,Ve,At,Et){let kt,Dt={};const Pt=Object.keys(At).length;let Lt,jt,An="",hn=!1;if(l.length===Pt)hn=!0,Lt=Et.url,An=",所有参数解析完毕,跳转到指定页面";else if(l.length>Pt)if(kt=getNextParamInfo(l,Ve.index),!kt||At[kt.name]!==void 0&&At[kt.name]!==null)hn=!0;else{hn=!1;let bn="";if(kt.options){const vn=Object.keys(kt.options);vn.length>0&&(bn=",该参数可选项有",vn.forEach(Cn=>{bn=bn+"【"+Cn+"】"}),bn+=",请选择一个选项")}An=",继续解析下一个参数【"+kt.title+"】"+bn+"。如果跳过该参数,请说‘跳过’"}if(Ve.value&&Ve.value==="_jump_param")jt="跳过";else{let bn=Ve.value;Ve.dataType&&(Ve.dataType==="dateRange"&&bn&&bn.indexOf("~")>0||Ve.dataType==="date")&&(bn=bn.substring(0,bn.lastIndexOf("~"))),jt="解析成功,解析到的值是【"+bn+"】"}return Dt.status="ok",Dt.paramResult="参数【"+Ve.title+"】"+jt+An,Dt.isEndParam=hn,Dt.paramInfo=kt,Dt.url=Lt,Dt.command=Et?Et.command:void 0,Dt}function packageFailParamResult(l){let Ve={status:"fail"},At="";return l.example&&(At=l.example),Ve.paramResult="参数【"+l.title+"】解析失败,请重新录入参数值,如果跳过该参数,请说‘跳过’。"+At,Ve.paramInfo=l,Ve}function getToken$1(){return authApi.getToken()}function setToken(l){authApi.setToken(l)}function removeToken(){authApi.removeToken()}function getUsername(){return authApi.getUsername()}function setUsername(l){authApi.setUsername(l)}function removeUsername(){authApi.removeUsername()}function getTenantUsername(){return authApi.getTenantUsername()}function setTenantUsername(l){authApi.setTenantUsername(l)}function removeTenantUsername(){authApi.removeTenantUsername()}function setCurrentUser(l){authApi.setCurrentUser(l)}function removeCurrentUser(){authApi.removeCurrentUser()}function getCookieCache(l){return authApi.getCookieCache(l)}function getSessionCache(l){return authApi.getSessionCache(l)}function setSessionCache(l,Ve){return authApi.setSessionCache(l,Ve)}function getLanguage(){return authApi.getLanguage()}function setLanguage(l){authApi.setLanguage(l)}function removeLanguage(){authApi.removeLanguage()}function getAllLanguages(){return authApi.getAllLanguages()}function removeAllLanguages(){authApi.removeAllLanguages()}function getTheme(){return authApi.getTheme()}function setTheme(l){l?authApi.setTheme(l):removeTheme()}function removeTheme(){authApi.removeTheme()}function removeAllThemes(){authApi.removeAllThemes()}function removePublishControl(){authApi.removePublishControl()}function removeDevpPermissions(){authApi.removeSessionCache("_devpJWT"),authApi.removeSessionCache("_CURRENT_ROLE")}function isDevpSystem(){return authApi.isDevpSystem()}function getRunInfoKey(l){return authApi.getRunInfoKey(l)}function removeProjectSettings(){authApi.removeCookieCache("PROJECT_SETTINGS")}function removeProjectCode(){authApi.removeCookieCache("_PROJECT_CDOE")}function removeSystemCacheUrl(){authApi.removeSystemCacheUrl()}function getRunCurrentRole(){if(!isDevpSystem())return authApi.getSessionCache("_RUN_CURRENT_ROLE")}function clearPermission(){var l,Ve;removeToken(),removeLanguage(),removeAllLanguages(),removeUsername(),removeTenantUsername(),removeCurrentUser(),removeAllSystemPermissions(),removePublishControl(),removeSystemCacheUrl(),removeAllGlobalPropCache(),removeAllComponentGlobalCache(),removeWatermark(),removeVoiceCache(),(Ve=(l=window.$vueApp)==null?void 0:l.config)!=null&&Ve.globalProperties&&(window.$vueApp.config.globalProperties.currentSystem,window.$vueApp.config.globalProperties.currentSystem=null)}function clearVoiceCache(){removeVoiceCache()}function warn$2(l,Ve){typeof console<"u"&&Ve&&Ve.stack}const hasWarned={};function warnOnce(l){hasWarned[l]||(hasWarned[l]=!0,warn$2(l))}const inBrowser=typeof window<"u";let mark$3,measure;if(process.env.NODE_ENV!=="production"){const l=inBrowser&&window.performance;l&&l.mark&&l.measure&&l.clearMarks&&l.clearMeasures&&(mark$3=Ve=>{l.mark(Ve)},measure=(Ve,At,Et)=>{l.measure(Ve,At,Et),l.clearMarks(At),l.clearMarks(Et)})}const RE_ARGS$1=/\{([0-9a-zA-Z]+)\}/g;function format$7(l,...Ve){return Ve.length===1&&isObject$8(Ve[0])&&(Ve=Ve[0]),Ve&&Ve.hasOwnProperty||(Ve={}),l.replace(RE_ARGS$1,(At,Et)=>Ve.hasOwnProperty(Et)?Ve[Et]:"")}const makeSymbol$1=(l,Ve=!1)=>Ve?Symbol.for(l):Symbol(l),generateFormatCacheKey=(l,Ve,At)=>friendlyJSONstringify({l,k:Ve,s:At}),friendlyJSONstringify=l=>JSON.stringify(l).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),isNumber$4=l=>typeof l=="number"&&isFinite(l),isDate=l=>toTypeString$1(l)==="[object Date]",isRegExp$3=l=>toTypeString$1(l)==="[object RegExp]",isEmptyObject=l=>isPlainObject$4(l)&&Object.keys(l).length===0,assign$7=Object.assign,_create=Object.create,create$7=(l=null)=>_create(l);let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:create$7());function escapeHtml$2(l){return l.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function escapeAttributeValue(l){return l.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function sanitizeTranslatedHtml(l){return l=(l=l.replace(/(\w+)\s*=\s*"([^"]*)"/g,(Ve,At,Et)=>`${At}="${escapeAttributeValue(Et)}"`)).replace(/(\w+)\s*=\s*'([^']*)'/g,(Ve,At,Et)=>`${At}='${escapeAttributeValue(Et)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(l)&&(process.env.NODE_ENV!=="production"&&warn$2("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."),l=l.replace(/(\s+)(on)(\w+\s*=)/gi,"$1&#111;n$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(Ve=>{l=l.replace(Ve,"$1javascript&#58;")}),l}const hasOwnProperty$a=Object.prototype.hasOwnProperty;function hasOwn$2(l,Ve){return hasOwnProperty$a.call(l,Ve)}const isArray$4=Array.isArray,isFunction$4=l=>typeof l=="function",isString$5=l=>typeof l=="string",isBoolean$2=l=>typeof l=="boolean",isObject$8=l=>l!==null&&typeof l=="object",isPromise$1=l=>isObject$8(l)&&isFunction$4(l.then)&&isFunction$4(l.catch),objectToString$2=Object.prototype.toString,toTypeString$1=l=>objectToString$2.call(l),isPlainObject$4=l=>{if(!isObject$8(l))return!1;const Ve=Object.getPrototypeOf(l);return Ve===null||Ve.constructor===Object},toDisplayString=l=>l==null?"":isArray$4(l)||isPlainObject$4(l)&&l.toString===objectToString$2?JSON.stringify(l,null,2):String(l);function join$2(l,Ve=""){return l.reduce((At,Et,kt)=>kt===0?At+Et:At+Ve+Et,"")}const RANGE=2;function generateCodeFrame(l,Ve=0,At=l.length){const Et=l.split(/\r?\n/);let kt=0;const Dt=[];for(let Pt=0;Pt<Et.length;Pt++)if(kt+=Et[Pt].length+1,kt>=Ve){for(let Lt=Pt-RANGE;Lt<=Pt+RANGE||At>kt;Lt++){if(Lt<0||Lt>=Et.length)continue;const jt=Lt+1;Dt.push(`${jt}${" ".repeat(3-String(jt).length)}| ${Et[Lt]}`);const An=Et[Lt].length;if(Lt===Pt){const hn=Ve-(kt-An)+1,bn=Math.max(1,At>kt?An-hn:At-Ve);Dt.push(" | "+" ".repeat(hn)+"^".repeat(bn))}else if(Lt>Pt){if(At>kt){const hn=Math.max(Math.min(At-kt,An),1);Dt.push(" | "+"^".repeat(hn))}kt+=An+1}}break}return Dt.join(`
25
25
  `)}function incrementer(l){let Ve=l;return()=>++Ve}function createEmitter(){const l=new Map;return{events:l,on(At,Et){const kt=l.get(At);kt&&kt.push(Et)||l.set(At,[Et])},off(At,Et){const kt=l.get(At);kt&&kt.splice(kt.indexOf(Et)>>>0,1)},emit(At,Et){(l.get(At)||[]).slice().map(kt=>kt(Et)),(l.get("*")||[]).slice().map(kt=>kt(At,Et))}}}const isNotObjectOrIsArray=l=>!isObject$8(l)||isArray$4(l);function deepCopy(l,Ve){if(isNotObjectOrIsArray(l)||isNotObjectOrIsArray(Ve))throw new Error("Invalid value");const At=[{src:l,des:Ve}];for(;At.length;){const{src:Et,des:kt}=At.pop();Object.keys(Et).forEach(Dt=>{Dt!=="__proto__"&&(isObject$8(Et[Dt])&&!isObject$8(kt[Dt])&&(kt[Dt]=Array.isArray(Et[Dt])?[]:create$7()),isNotObjectOrIsArray(kt[Dt])||isNotObjectOrIsArray(Et[Dt])?kt[Dt]=Et[Dt]:At.push({src:Et[Dt],des:kt[Dt]}))})}}function createPosition(l,Ve,At){return{line:l,column:Ve,offset:At}}function createLocation$1(l,Ve,At){const Et={start:l,end:Ve};return At!=null&&(Et.source=At),Et}const RE_ARGS=/\{([0-9a-zA-Z]+)\}/g;function format$6(l,...Ve){return Ve.length===1&&isObject$7(Ve[0])&&(Ve=Ve[0]),Ve&&Ve.hasOwnProperty||(Ve={}),l.replace(RE_ARGS,(At,Et)=>Ve.hasOwnProperty(Et)?Ve[Et]:"")}const assign$6=Object.assign,isString$4=l=>typeof l=="string",isObject$7=l=>l!==null&&typeof l=="object";function join$1(l,Ve=""){return l.reduce((At,Et,kt)=>kt===0?At+Et:At+Ve+Et,"")}const CompileWarnCodes={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},warnMessages$2={[CompileWarnCodes.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function createCompileWarn(l,Ve,...At){const Et=format$6(warnMessages$2[l]||"",...At||[]),kt={message:String(Et),code:l};return Ve&&(kt.location=Ve),kt}const CompileErrorCodes={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},errorMessages$2={[CompileErrorCodes.EXPECTED_TOKEN]:"Expected token: '{0}'",[CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[CompileErrorCodes.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[CompileErrorCodes.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[CompileErrorCodes.EMPTY_PLACEHOLDER]:"Empty placeholder",[CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[CompileErrorCodes.INVALID_LINKED_FORMAT]:"Invalid linked format",[CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[CompileErrorCodes.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[CompileErrorCodes.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function createCompileError(l,Ve,At={}){const{domain:Et,messages:kt,args:Dt}=At,Pt=format$6((kt||errorMessages$2)[l]||"",...Dt||[]),Lt=new SyntaxError(String(Pt));return Lt.code=l,Ve&&(Lt.location=Ve),Lt.domain=Et,Lt}function defaultOnError$1(l){throw l}const RE_HTML_TAG=/<\/?[\w\s="/.':;#-\/]+>/,detectHtmlTag=l=>RE_HTML_TAG.test(l),CHAR_SP=" ",CHAR_CR="\r",CHAR_LF=`
26
26
  `,CHAR_LS=String.fromCharCode(8232),CHAR_PS=String.fromCharCode(8233);function createScanner(l){const Ve=l;let At=0,Et=1,kt=1,Dt=0;const Pt=vn=>Ve[vn]===CHAR_CR&&Ve[vn+1]===CHAR_LF,Lt=vn=>Ve[vn]===CHAR_PS,jt=vn=>Ve[vn]===CHAR_LS,An=vn=>Pt(vn)||(Cn=>Ve[Cn]===CHAR_LF)(vn)||Lt(vn)||jt(vn),hn=vn=>Pt(vn)||Lt(vn)||jt(vn)?CHAR_LF:Ve[vn];function bn(){return Dt=0,An(At)&&(Et++,kt=0),Pt(At)&&At++,At++,kt++,Ve[At]}return{index:()=>At,line:()=>Et,column:()=>kt,peekOffset:()=>Dt,charAt:hn,currentChar:()=>hn(At),currentPeek:()=>hn(At+Dt),next:bn,peek:function(){return Pt(At+Dt)&&Dt++,Dt++,Ve[At+Dt]},reset:function(){At=0,Et=1,kt=1,Dt=0},resetPeek:function(vn=0){Dt=vn},skipToPeek:function(){const vn=At+Dt;for(;vn!==At;)bn();Dt=0}}}const EOF$1=void 0,DOT=".",LITERAL_DELIMITER="'",ERROR_DOMAIN$3="tokenizer";function createTokenizer$1(l,Ve={}){const At=Ve.location!==!1,Et=createScanner(l),kt=()=>Et.index(),Dt=()=>createPosition(Et.line(),Et.column(),Et.index()),Pt=Dt(),Lt=kt(),jt={currentType:14,offset:Lt,startLoc:Pt,endLoc:Pt,lastType:14,lastOffset:Lt,lastStartLoc:Pt,lastEndLoc:Pt,braceNest:0,inLinked:!1,text:""},An=()=>jt,{onError:hn}=Ve;function bn(kr,Br,Tr,...Pr){const Dr=An();if(Br.column+=Tr,Br.offset+=Tr,hn){const Nr=createCompileError(kr,At?createLocation$1(Dr.startLoc,Br):null,{domain:ERROR_DOMAIN$3,args:Pr});hn(Nr)}}function vn(kr,Br,Tr){kr.endLoc=Dt(),kr.currentType=Br;const Pr={type:Br};return At&&(Pr.loc=createLocation$1(kr.startLoc,kr.endLoc)),Tr!=null&&(Pr.value=Tr),Pr}const Cn=kr=>vn(kr,14);function wn(kr,Br){return kr.currentChar()===Br?(kr.next(),Br):(bn(CompileErrorCodes.EXPECTED_TOKEN,Dt(),0,Br),"")}function En(kr){let Br="";for(;kr.currentPeek()===CHAR_SP||kr.currentPeek()===CHAR_LF;)Br+=kr.currentPeek(),kr.peek();return Br}function Bn(kr){const Br=En(kr);return kr.skipToPeek(),Br}function In(kr){if(kr===EOF$1)return!1;const Br=kr.charCodeAt(0);return Br>=97&&Br<=122||Br>=65&&Br<=90||Br===95}function Dn(kr,Br){const{currentType:Tr}=Br;if(Tr!==2)return!1;En(kr);const Pr=function(Dr){if(Dr===EOF$1)return!1;const Nr=Dr.charCodeAt(0);return Nr>=48&&Nr<=57}(kr.currentPeek()==="-"?kr.peek():kr.currentPeek());return kr.resetPeek(),Pr}function Tn(kr){En(kr);const Br=kr.currentPeek()==="|";return kr.resetPeek(),Br}function Mn(kr,Br=!0){const Tr=(Dr=!1,Nr="",Er=!1)=>{const Lr=kr.currentPeek();return Lr==="{"?Nr!=="%"&&Dr:Lr!=="@"&&Lr?Lr==="%"?(kr.peek(),Tr(Dr,"%",!0)):Lr==="|"?!(Nr!=="%"&&!Er)||!(Nr===CHAR_SP||Nr===CHAR_LF):Lr===CHAR_SP?(kr.peek(),Tr(!0,CHAR_SP,Er)):Lr!==CHAR_LF||(kr.peek(),Tr(!0,CHAR_LF,Er)):Nr==="%"||Dr},Pr=Tr();return Br&&kr.resetPeek(),Pr}function Fn(kr,Br){const Tr=kr.currentChar();return Tr===EOF$1?EOF$1:Br(Tr)?(kr.next(),Tr):null}function Rn(kr){const Br=kr.charCodeAt(0);return Br>=97&&Br<=122||Br>=65&&Br<=90||Br>=48&&Br<=57||Br===95||Br===36}function On(kr){return Fn(kr,Rn)}function Pn(kr){const Br=kr.charCodeAt(0);return Br>=97&&Br<=122||Br>=65&&Br<=90||Br>=48&&Br<=57||Br===95||Br===36||Br===45}function jn(kr){return Fn(kr,Pn)}function Hn(kr){const Br=kr.charCodeAt(0);return Br>=48&&Br<=57}function Gn(kr){return Fn(kr,Hn)}function qn(kr){const Br=kr.charCodeAt(0);return Br>=48&&Br<=57||Br>=65&&Br<=70||Br>=97&&Br<=102}function Vn(kr){return Fn(kr,qn)}function Un(kr){let Br="",Tr="";for(;Br=Gn(kr);)Tr+=Br;return Tr}function Kn(kr){let Br="";for(;;){const Tr=kr.currentChar();if(Tr==="{"||Tr==="}"||Tr==="@"||Tr==="|"||!Tr)break;if(Tr==="%"){if(!Mn(kr))break;Br+=Tr,kr.next()}else if(Tr===CHAR_SP||Tr===CHAR_LF)if(Mn(kr))Br+=Tr,kr.next();else{if(Tn(kr))break;Br+=Tr,kr.next()}else Br+=Tr,kr.next()}return Br}function er(kr){return kr!==LITERAL_DELIMITER&&kr!==CHAR_LF}function ir(kr){const Br=kr.currentChar();switch(Br){case"\\":case"'":return kr.next(),`\\${Br}`;case"u":return rr(kr,Br,4);case"U":return rr(kr,Br,6);default:return bn(CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE,Dt(),0,Br),""}}function rr(kr,Br,Tr){wn(kr,Br);let Pr="";for(let Dr=0;Dr<Tr;Dr++){const Nr=Vn(kr);if(!Nr){bn(CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE,Dt(),0,`\\${Br}${Pr}${kr.currentChar()}`);break}Pr+=Nr}return`\\${Br}${Pr}`}function ur(kr){return kr!=="{"&&kr!=="}"&&kr!==CHAR_SP&&kr!==CHAR_LF}function or(kr){Bn(kr);const Br=wn(kr,"|");return Bn(kr),Br}function Ar(kr,Br){let Tr=null;switch(kr.currentChar()){case"{":return Br.braceNest>=1&&bn(CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER,Dt(),0),kr.next(),Tr=vn(Br,2,"{"),Bn(kr),Br.braceNest++,Tr;case"}":return Br.braceNest>0&&Br.currentType===2&&bn(CompileErrorCodes.EMPTY_PLACEHOLDER,Dt(),0),kr.next(),Tr=vn(Br,3,"}"),Br.braceNest--,Br.braceNest>0&&Bn(kr),Br.inLinked&&Br.braceNest===0&&(Br.inLinked=!1),Tr;case"@":return Br.braceNest>0&&bn(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,Dt(),0),Tr=yr(kr,Br)||Cn(Br),Br.braceNest=0,Tr;default:{let Pr=!0,Dr=!0,Nr=!0;if(Tn(kr))return Br.braceNest>0&&bn(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,Dt(),0),Tr=vn(Br,1,or(kr)),Br.braceNest=0,Br.inLinked=!1,Tr;if(Br.braceNest>0&&(Br.currentType===5||Br.currentType===6||Br.currentType===7))return bn(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,Dt(),0),Br.braceNest=0,_r(kr,Br);if(Pr=function(Er,Lr){const{currentType:$r}=Lr;if($r!==2)return!1;En(Er);const Xr=In(Er.currentPeek());return Er.resetPeek(),Xr}(kr,Br))return Tr=vn(Br,5,function(Er){Bn(Er);let Lr="",$r="";for(;Lr=jn(Er);)$r+=Lr;return Er.currentChar()===EOF$1&&bn(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,Dt(),0),$r}(kr)),Bn(kr),Tr;if(Dr=Dn(kr,Br))return Tr=vn(Br,6,function(Er){Bn(Er);let Lr="";return Er.currentChar()==="-"?(Er.next(),Lr+=`-${Un(Er)}`):Lr+=Un(Er),Er.currentChar()===EOF$1&&bn(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,Dt(),0),Lr}(kr)),Bn(kr),Tr;if(Nr=function(Er,Lr){const{currentType:$r}=Lr;if($r!==2)return!1;En(Er);const Xr=Er.currentPeek()===LITERAL_DELIMITER;return Er.resetPeek(),Xr}(kr,Br))return Tr=vn(Br,7,function(Er){Bn(Er),wn(Er,"'");let Lr="",$r="";for(;Lr=Fn(Er,er);)$r+=Lr==="\\"?ir(Er):Lr;const Xr=Er.currentChar();return Xr===CHAR_LF||Xr===EOF$1?(bn(CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,Dt(),0),Xr===CHAR_LF&&(Er.next(),wn(Er,"'")),$r):(wn(Er,"'"),$r)}(kr)),Bn(kr),Tr;if(!Pr&&!Dr&&!Nr)return Tr=vn(Br,13,function(Er){Bn(Er);let Lr="",$r="";for(;Lr=Fn(Er,ur);)$r+=Lr;return $r}(kr)),bn(CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER,Dt(),0,Tr.value),Bn(kr),Tr;break}}return Tr}function yr(kr,Br){const{currentType:Tr}=Br;let Pr=null;const Dr=kr.currentChar();switch(Tr!==8&&Tr!==9&&Tr!==12&&Tr!==10||Dr!==CHAR_LF&&Dr!==CHAR_SP||bn(CompileErrorCodes.INVALID_LINKED_FORMAT,Dt(),0),Dr){case"@":return kr.next(),Pr=vn(Br,8,"@"),Br.inLinked=!0,Pr;case".":return Bn(kr),kr.next(),vn(Br,9,".");case":":return Bn(kr),kr.next(),vn(Br,10,":");default:return Tn(kr)?(Pr=vn(Br,1,or(kr)),Br.braceNest=0,Br.inLinked=!1,Pr):function(Nr,Er){const{currentType:Lr}=Er;if(Lr!==8)return!1;En(Nr);const $r=Nr.currentPeek()===".";return Nr.resetPeek(),$r}(kr,Br)||function(Nr,Er){const{currentType:Lr}=Er;if(Lr!==8&&Lr!==12)return!1;En(Nr);const $r=Nr.currentPeek()===":";return Nr.resetPeek(),$r}(kr,Br)?(Bn(kr),yr(kr,Br)):function(Nr,Er){const{currentType:Lr}=Er;if(Lr!==9)return!1;En(Nr);const $r=In(Nr.currentPeek());return Nr.resetPeek(),$r}(kr,Br)?(Bn(kr),vn(Br,12,function(Nr){let Er="",Lr="";for(;Er=On(Nr);)Lr+=Er;return Lr}(kr))):function(Nr,Er){const{currentType:Lr}=Er;if(Lr!==10)return!1;const $r=()=>{const qr=Nr.currentPeek();return qr==="{"?In(Nr.peek()):!(qr==="@"||qr==="%"||qr==="|"||qr===":"||qr==="."||qr===CHAR_SP||!qr)&&(qr===CHAR_LF?(Nr.peek(),$r()):Mn(Nr,!1))},Xr=$r();return Nr.resetPeek(),Xr}(kr,Br)?(Bn(kr),Dr==="{"?Ar(kr,Br)||Pr:vn(Br,11,function(Nr){const Er=Lr=>{const $r=Nr.currentChar();return $r!=="{"&&$r!=="%"&&$r!=="@"&&$r!=="|"&&$r!=="("&&$r!==")"&&$r?$r===CHAR_SP?Lr:(Lr+=$r,Nr.next(),Er(Lr)):Lr};return Er("")}(kr))):(Tr===8&&bn(CompileErrorCodes.INVALID_LINKED_FORMAT,Dt(),0),Br.braceNest=0,Br.inLinked=!1,_r(kr,Br))}}function _r(kr,Br){let Tr={type:14};if(Br.braceNest>0)return Ar(kr,Br)||Cn(Br);if(Br.inLinked)return yr(kr,Br)||Cn(Br);switch(kr.currentChar()){case"{":return Ar(kr,Br)||Cn(Br);case"}":return bn(CompileErrorCodes.UNBALANCED_CLOSING_BRACE,Dt(),0),kr.next(),vn(Br,3,"}");case"@":return yr(kr,Br)||Cn(Br);default:{if(Tn(kr))return Tr=vn(Br,1,or(kr)),Br.braceNest=0,Br.inLinked=!1,Tr;const{isModulo:Pr,hasSpace:Dr}=function(Nr){const Er=En(Nr),Lr=Nr.currentPeek()==="%"&&Nr.peek()==="{";return Nr.resetPeek(),{isModulo:Lr,hasSpace:Er.length>0}}(kr);if(Pr)return Dr?vn(Br,0,Kn(kr)):vn(Br,4,function(Nr){Bn(Nr);const Er=Nr.currentChar();return Er!=="%"&&bn(CompileErrorCodes.EXPECTED_TOKEN,Dt(),0,Er),Nr.next(),"%"}(kr));if(Mn(kr))return vn(Br,0,Kn(kr));break}}return Tr}return{nextToken:function(){const{currentType:kr,offset:Br,startLoc:Tr,endLoc:Pr}=jt;return jt.lastType=kr,jt.lastOffset=Br,jt.lastStartLoc=Tr,jt.lastEndLoc=Pr,jt.offset=kt(),jt.startLoc=Dt(),Et.currentChar()===EOF$1?vn(jt,14):_r(Et,jt)},currentOffset:kt,currentPosition:Dt,context:An}}const ERROR_DOMAIN$2="parser",KNOWN_ESCAPES=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function fromEscapeSequence(l,Ve,At){switch(l){case"\\\\":return"\\";case"\\'":return"'";default:{const Et=parseInt(Ve||At,16);return Et<=55295||Et>=57344?String.fromCodePoint(Et):"�"}}}function createParser$1(l={}){const Ve=l.location!==!1,{onError:At,onWarn:Et}=l;function kt(En,Bn,In,Dn,...Tn){const Mn=En.currentPosition();if(Mn.offset+=Dn,Mn.column+=Dn,At){const Fn=createCompileError(Bn,Ve?createLocation$1(In,Mn):null,{domain:ERROR_DOMAIN$2,args:Tn});At(Fn)}}function Dt(En,Bn,In,Dn,...Tn){const Mn=En.currentPosition();if(Mn.offset+=Dn,Mn.column+=Dn,Et){const Fn=Ve?createLocation$1(In,Mn):null;Et(createCompileWarn(Bn,Fn,Tn))}}function Pt(En,Bn,In){const Dn={type:En};return Ve&&(Dn.start=Bn,Dn.end=Bn,Dn.loc={start:In,end:In}),Dn}function Lt(En,Bn,In,Dn){Dn&&(En.type=Dn),Ve&&(En.end=Bn,En.loc&&(En.loc.end=In))}function jt(En,Bn){const In=En.context(),Dn=Pt(3,In.offset,In.startLoc);return Dn.value=Bn,Lt(Dn,En.currentOffset(),En.currentPosition()),Dn}function An(En,Bn){const In=En.context(),{lastOffset:Dn,lastStartLoc:Tn}=In,Mn=Pt(5,Dn,Tn);return Mn.index=parseInt(Bn,10),En.nextToken(),Lt(Mn,En.currentOffset(),En.currentPosition()),Mn}function hn(En,Bn,In){const Dn=En.context(),{lastOffset:Tn,lastStartLoc:Mn}=Dn,Fn=Pt(4,Tn,Mn);return Fn.key=Bn,In===!0&&(Fn.modulo=!0),En.nextToken(),Lt(Fn,En.currentOffset(),En.currentPosition()),Fn}function bn(En,Bn){const In=En.context(),{lastOffset:Dn,lastStartLoc:Tn}=In,Mn=Pt(9,Dn,Tn);return Mn.value=Bn.replace(KNOWN_ESCAPES,fromEscapeSequence),En.nextToken(),Lt(Mn,En.currentOffset(),En.currentPosition()),Mn}function vn(En){const Bn=En.context(),In=Pt(6,Bn.offset,Bn.startLoc);let Dn=En.nextToken();if(Dn.type===9){const Tn=function(Mn){const Fn=Mn.nextToken(),Rn=Mn.context(),{lastOffset:On,lastStartLoc:Pn}=Rn,jn=Pt(8,On,Pn);return Fn.type!==12?(kt(Mn,CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER,Rn.lastStartLoc,0),jn.value="",Lt(jn,On,Pn),{nextConsumeToken:Fn,node:jn}):(Fn.value==null&&kt(Mn,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Rn.lastStartLoc,0,getTokenCaption(Fn)),jn.value=Fn.value||"",Lt(jn,Mn.currentOffset(),Mn.currentPosition()),{node:jn})}(En);In.modifier=Tn.node,Dn=Tn.nextConsumeToken||En.nextToken()}switch(Dn.type!==10&&kt(En,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Bn.lastStartLoc,0,getTokenCaption(Dn)),Dn=En.nextToken(),Dn.type===2&&(Dn=En.nextToken()),Dn.type){case 11:Dn.value==null&&kt(En,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Bn.lastStartLoc,0,getTokenCaption(Dn)),In.key=function(Tn,Mn){const Fn=Tn.context(),Rn=Pt(7,Fn.offset,Fn.startLoc);return Rn.value=Mn,Lt(Rn,Tn.currentOffset(),Tn.currentPosition()),Rn}(En,Dn.value||"");break;case 5:Dn.value==null&&kt(En,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Bn.lastStartLoc,0,getTokenCaption(Dn)),In.key=hn(En,Dn.value||"");break;case 6:Dn.value==null&&kt(En,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Bn.lastStartLoc,0,getTokenCaption(Dn)),In.key=An(En,Dn.value||"");break;case 7:Dn.value==null&&kt(En,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Bn.lastStartLoc,0,getTokenCaption(Dn)),In.key=bn(En,Dn.value||"");break;default:{kt(En,CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY,Bn.lastStartLoc,0);const Tn=En.context(),Mn=Pt(7,Tn.offset,Tn.startLoc);return Mn.value="",Lt(Mn,Tn.offset,Tn.startLoc),In.key=Mn,Lt(In,Tn.offset,Tn.startLoc),{nextConsumeToken:Dn,node:In}}}return Lt(In,En.currentOffset(),En.currentPosition()),{node:In}}function Cn(En){const Bn=En.context(),In=Pt(2,Bn.currentType===1?En.currentOffset():Bn.offset,Bn.currentType===1?Bn.endLoc:Bn.startLoc);In.items=[];let Dn=null,Tn=null;do{const Mn=Dn||En.nextToken();switch(Dn=null,Mn.type){case 0:Mn.value==null&&kt(En,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Bn.lastStartLoc,0,getTokenCaption(Mn)),In.items.push(jt(En,Mn.value||""));break;case 6:Mn.value==null&&kt(En,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Bn.lastStartLoc,0,getTokenCaption(Mn)),In.items.push(An(En,Mn.value||""));break;case 4:Tn=!0;break;case 5:Mn.value==null&&kt(En,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Bn.lastStartLoc,0,getTokenCaption(Mn)),In.items.push(hn(En,Mn.value||"",!!Tn)),Tn&&(Dt(En,CompileWarnCodes.USE_MODULO_SYNTAX,Bn.lastStartLoc,0,getTokenCaption(Mn)),Tn=null);break;case 7:Mn.value==null&&kt(En,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Bn.lastStartLoc,0,getTokenCaption(Mn)),In.items.push(bn(En,Mn.value||""));break;case 8:{const Fn=vn(En);In.items.push(Fn.node),Dn=Fn.nextConsumeToken||null;break}}}while(Bn.currentType!==14&&Bn.currentType!==1);return Lt(In,Bn.currentType===1?Bn.lastOffset:En.currentOffset(),Bn.currentType===1?Bn.lastEndLoc:En.currentPosition()),In}function wn(En){const Bn=En.context(),{offset:In,startLoc:Dn}=Bn,Tn=Cn(En);return Bn.currentType===14?Tn:function(Mn,Fn,Rn,On){const Pn=Mn.context();let jn=On.items.length===0;const Hn=Pt(1,Fn,Rn);Hn.cases=[],Hn.cases.push(On);do{const Gn=Cn(Mn);jn||(jn=Gn.items.length===0),Hn.cases.push(Gn)}while(Pn.currentType!==14);return jn&&kt(Mn,CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL,Rn,0),Lt(Hn,Mn.currentOffset(),Mn.currentPosition()),Hn}(En,In,Dn,Tn)}return{parse:function(En){const Bn=createTokenizer$1(En,assign$6({},l)),In=Bn.context(),Dn=Pt(0,In.offset,In.startLoc);return Ve&&Dn.loc&&(Dn.loc.source=En),Dn.body=wn(Bn),l.onCacheKey&&(Dn.cacheKey=l.onCacheKey(En)),In.currentType!==14&&kt(Bn,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,In.lastStartLoc,0,En[In.offset]||""),Lt(Dn,Bn.currentOffset(),Bn.currentPosition()),Dn}}}function getTokenCaption(l){if(l.type===14)return"EOF";const Ve=(l.value||"").replace(/\r?\n/gu,"\\n");return Ve.length>10?Ve.slice(0,9)+"…":Ve}function createTransformer(l,Ve={}){const At={ast:l,helpers:new Set};return{context:()=>At,helper:Et=>(At.helpers.add(Et),Et)}}function traverseNodes(l,Ve){for(let At=0;At<l.length;At++)traverseNode(l[At],Ve)}function traverseNode(l,Ve){switch(l.type){case 1:traverseNodes(l.cases,Ve),Ve.helper("plural");break;case 2:traverseNodes(l.items,Ve);break;case 6:traverseNode(l.key,Ve),Ve.helper("linked"),Ve.helper("type");break;case 5:Ve.helper("interpolate"),Ve.helper("list");break;case 4:Ve.helper("interpolate"),Ve.helper("named")}}function transform$2(l,Ve={}){const At=createTransformer(l);At.helper("normalize"),l.body&&traverseNode(l.body,At);const Et=At.context();l.helpers=Array.from(Et.helpers)}function optimize(l){const Ve=l.body;return Ve.type===2?optimizeMessageNode(Ve):Ve.cases.forEach(At=>optimizeMessageNode(At)),l}function optimizeMessageNode(l){if(l.items.length===1){const Ve=l.items[0];Ve.type!==3&&Ve.type!==9||(l.static=Ve.value,delete Ve.value)}else{const Ve=[];for(let At=0;At<l.items.length;At++){const Et=l.items[At];if(Et.type!==3&&Et.type!==9||Et.value==null)break;Ve.push(Et.value)}if(Ve.length===l.items.length){l.static=join$1(Ve);for(let At=0;At<l.items.length;At++){const Et=l.items[At];Et.type!==3&&Et.type!==9||delete Et.value}}}}const ERROR_DOMAIN$1="minifier";function minify(l){switch(l.t=l.type,l.type){case 0:{const Ve=l;minify(Ve.body),Ve.b=Ve.body,delete Ve.body;break}case 1:{const Ve=l,At=Ve.cases;for(let Et=0;Et<At.length;Et++)minify(At[Et]);Ve.c=At,delete Ve.cases;break}case 2:{const Ve=l,At=Ve.items;for(let Et=0;Et<At.length;Et++)minify(At[Et]);Ve.i=At,delete Ve.items,Ve.static&&(Ve.s=Ve.static,delete Ve.static);break}case 3:case 9:case 8:case 7:{const Ve=l;Ve.value&&(Ve.v=Ve.value,delete Ve.value);break}case 6:{const Ve=l;minify(Ve.key),Ve.k=Ve.key,delete Ve.key,Ve.modifier&&(minify(Ve.modifier),Ve.m=Ve.modifier,delete Ve.modifier);break}case 5:{const Ve=l;Ve.i=Ve.index,delete Ve.index;break}case 4:{const Ve=l;Ve.k=Ve.key,delete Ve.key;break}default:throw createCompileError(CompileErrorCodes.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:ERROR_DOMAIN$1,args:[l.type]})}delete l.type}const ERROR_DOMAIN="parser";function createCodeGenerator(l,Ve){const{sourceMap:At,filename:Et,breakLineCode:kt,needIndent:Dt}=Ve,Pt=Ve.location!==!1,Lt={filename:Et,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:kt,needIndent:Dt,indentLevel:0};Pt&&l.loc&&(Lt.source=l.loc.source);function jt(hn,bn){Lt.code+=hn}function An(hn,bn=!0){const vn=bn?kt:"";jt(Dt?vn+" ".repeat(hn):vn)}return{context:()=>Lt,push:jt,indent:function(hn=!0){const bn=++Lt.indentLevel;hn&&An(bn)},deindent:function(hn=!0){const bn=--Lt.indentLevel;hn&&An(bn)},newline:function(){An(Lt.indentLevel)},helper:hn=>`_${hn}`,needIndent:()=>Lt.needIndent}}function generateLinkedNode(l,Ve){const{helper:At}=l;l.push(`${At("linked")}(`),generateNode(l,Ve.key),Ve.modifier?(l.push(", "),generateNode(l,Ve.modifier),l.push(", _type")):l.push(", undefined, _type"),l.push(")")}function generateMessageNode(l,Ve){const{helper:At,needIndent:Et}=l;l.push(`${At("normalize")}([`),l.indent(Et());const kt=Ve.items.length;for(let Dt=0;Dt<kt&&(generateNode(l,Ve.items[Dt]),Dt!==kt-1);Dt++)l.push(", ");l.deindent(Et()),l.push("])")}function generatePluralNode(l,Ve){const{helper:At,needIndent:Et}=l;if(Ve.cases.length>1){l.push(`${At("plural")}([`),l.indent(Et());const kt=Ve.cases.length;for(let Dt=0;Dt<kt&&(generateNode(l,Ve.cases[Dt]),Dt!==kt-1);Dt++)l.push(", ");l.deindent(Et()),l.push("])")}}function generateResource(l,Ve){Ve.body?generateNode(l,Ve.body):l.push("null")}function generateNode(l,Ve){const{helper:At}=l;switch(Ve.type){case 0:generateResource(l,Ve);break;case 1:generatePluralNode(l,Ve);break;case 2:generateMessageNode(l,Ve);break;case 6:generateLinkedNode(l,Ve);break;case 8:case 7:case 9:case 3:l.push(JSON.stringify(Ve.value),Ve);break;case 5:l.push(`${At("interpolate")}(${At("list")}(${Ve.index}))`,Ve);break;case 4:l.push(`${At("interpolate")}(${At("named")}(${JSON.stringify(Ve.key)}))`,Ve);break;default:throw createCompileError(CompileErrorCodes.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:ERROR_DOMAIN,args:[Ve.type]})}}const generate=(l,Ve={})=>{const At=isString$4(Ve.mode)?Ve.mode:"normal",Et=isString$4(Ve.filename)?Ve.filename:"message.intl",kt=!!Ve.sourceMap,Dt=Ve.breakLineCode!=null?Ve.breakLineCode:At==="arrow"?";":`
27
27
  `,Pt=Ve.needIndent?Ve.needIndent:At!=="arrow",Lt=l.helpers||[],jt=createCodeGenerator(l,{mode:At,filename:Et,sourceMap:kt,breakLineCode:Dt,needIndent:Pt});jt.push(At==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),jt.indent(Pt),Lt.length>0&&(jt.push(`const { ${join$1(Lt.map(bn=>`${bn}: _${bn}`),", ")} } = ctx`),jt.newline()),jt.push("return "),generateNode(jt,l),jt.deindent(Pt),jt.push("}"),delete l.helpers;const{code:An,map:hn}=jt.context();return{ast:l,code:An,map:hn?hn.toJSON():void 0}};function baseCompile$1(l,Ve={}){const At=assign$6({},Ve),Et=!!At.jit,kt=!!At.minify,Dt=At.optimize==null||At.optimize,Pt=createParser$1(At).parse(l);return Et?(Dt&&optimize(Pt),kt&&minify(Pt),{ast:Pt,code:""}):(transform$2(Pt,At),generate(Pt,At))}function initFeatureFlags$1(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(getGlobalThis().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(getGlobalThis().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(getGlobalThis().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function isMessageAST(l){return isObject$8(l)&&resolveType(l)===0&&(hasOwn$2(l,"b")||hasOwn$2(l,"body"))}const PROPS_BODY=["b","body"];function resolveBody(l){return resolveProps(l,PROPS_BODY)}const PROPS_CASES=["c","cases"];function resolveCases(l){return resolveProps(l,PROPS_CASES,[])}const PROPS_STATIC=["s","static"];function resolveStatic(l){return resolveProps(l,PROPS_STATIC)}const PROPS_ITEMS=["i","items"];function resolveItems(l){return resolveProps(l,PROPS_ITEMS,[])}const PROPS_TYPE=["t","type"];function resolveType(l){return resolveProps(l,PROPS_TYPE)}const PROPS_VALUE=["v","value"];function resolveValue$1(l,Ve){const At=resolveProps(l,PROPS_VALUE);if(At!=null)return At;throw createUnhandleNodeError(Ve)}const PROPS_MODIFIER=["m","modifier"];function resolveLinkedModifier(l){return resolveProps(l,PROPS_MODIFIER)}const PROPS_KEY=["k","key"];function resolveLinkedKey(l){const Ve=resolveProps(l,PROPS_KEY);if(Ve)return Ve;throw createUnhandleNodeError(6)}function resolveProps(l,Ve,At){for(let Et=0;Et<Ve.length;Et++){const kt=Ve[Et];if(hasOwn$2(l,kt)&&l[kt]!=null)return l[kt]}return At}const AST_NODE_PROPS_KEYS=[...PROPS_BODY,...PROPS_CASES,...PROPS_STATIC,...PROPS_ITEMS,...PROPS_KEY,...PROPS_MODIFIER,...PROPS_VALUE,...PROPS_TYPE];function createUnhandleNodeError(l){return new Error(`unhandled node type: ${l}`)}const pathStateMachine=[];pathStateMachine[0]={w:[0],i:[3,0],"[":[4],o:[7]},pathStateMachine[1]={w:[1],".":[2],"[":[4],o:[7]},pathStateMachine[2]={w:[2],i:[3,0],0:[3,0]},pathStateMachine[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},pathStateMachine[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},pathStateMachine[5]={"'":[4,0],o:8,l:[5,0]},pathStateMachine[6]={'"':[4,0],o:8,l:[6,0]};const literalValueRE=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function isLiteral(l){return literalValueRE.test(l)}function stripQuotes(l){const Ve=l.charCodeAt(0);return Ve!==l.charCodeAt(l.length-1)||Ve!==34&&Ve!==39?l:l.slice(1,-1)}function getPathCharType(l){if(l==null)return"o";switch(l.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return l;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 formatSubPath(l){const Ve=l.trim();return(l.charAt(0)!=="0"||!isNaN(parseInt(l)))&&(isLiteral(Ve)?stripQuotes(Ve):"*"+Ve)}function parse$8(l){const Ve=[];let At,Et,kt,Dt,Pt,Lt,jt,An=-1,hn=0,bn=0;const vn=[];function Cn(){const wn=l[An+1];if(hn===5&&wn==="'"||hn===6&&wn==='"')return An++,kt="\\"+wn,vn[0](),!0}for(vn[0]=()=>{Et===void 0?Et=kt:Et+=kt},vn[1]=()=>{Et!==void 0&&(Ve.push(Et),Et=void 0)},vn[2]=()=>{vn[0](),bn++},vn[3]=()=>{if(bn>0)bn--,hn=4,vn[0]();else{if(bn=0,Et===void 0||(Et=formatSubPath(Et),Et===!1))return!1;vn[1]()}};hn!==null;)if(An++,At=l[An],At!=="\\"||!Cn()){if(Dt=getPathCharType(At),jt=pathStateMachine[hn],Pt=jt[Dt]||jt.l||8,Pt===8||(hn=Pt[0],Pt[1]!==void 0&&(Lt=vn[Pt[1]],Lt&&(kt=At,Lt()===!1))))return;if(hn===7)return Ve}}const cache$1=new Map;function resolveWithKeyValue(l,Ve){return isObject$8(l)?l[Ve]:null}function resolveValue(l,Ve){if(!isObject$8(l))return null;let At=cache$1.get(Ve);if(At||(At=parse$8(Ve),At&&cache$1.set(Ve,At)),!At)return null;const Et=At.length;let kt=l,Dt=0;for(;Dt<Et;){const Pt=At[Dt];if(AST_NODE_PROPS_KEYS.includes(Pt)&&isMessageAST(kt))return null;const Lt=kt[Pt];if(Lt===void 0||isFunction$4(kt))return null;kt=Lt,Dt++}return kt}const DEFAULT_MODIFIER=l=>l,DEFAULT_MESSAGE=l=>"",DEFAULT_MESSAGE_DATA_TYPE="text",DEFAULT_NORMALIZE=l=>l.length===0?"":join$2(l),DEFAULT_INTERPOLATE=toDisplayString;function pluralDefault(l,Ve){return l=Math.abs(l),Ve===2?l?l>1?1:0:1:l?Math.min(l,2):0}function getPluralIndex(l){const Ve=isNumber$4(l.pluralIndex)?l.pluralIndex:-1;return l.named&&(isNumber$4(l.named.count)||isNumber$4(l.named.n))?isNumber$4(l.named.count)?l.named.count:isNumber$4(l.named.n)?l.named.n:Ve:Ve}function normalizeNamed(l,Ve){Ve.count||(Ve.count=l),Ve.n||(Ve.n=l)}function createMessageContext(l={}){const Ve=l.locale,At=getPluralIndex(l),Et=isObject$8(l.pluralRules)&&isString$5(Ve)&&isFunction$4(l.pluralRules[Ve])?l.pluralRules[Ve]:pluralDefault,kt=isObject$8(l.pluralRules)&&isString$5(Ve)&&isFunction$4(l.pluralRules[Ve])?pluralDefault:void 0,Dt=l.list||[],Pt=l.named||create$7();isNumber$4(l.pluralIndex)&&normalizeNamed(At,Pt);function Lt(bn){return(isFunction$4(l.messages)?l.messages(bn):!!isObject$8(l.messages)&&l.messages[bn])||(l.parent?l.parent.message(bn):DEFAULT_MESSAGE)}const jt=isPlainObject$4(l.processor)&&isFunction$4(l.processor.normalize)?l.processor.normalize:DEFAULT_NORMALIZE,An=isPlainObject$4(l.processor)&&isFunction$4(l.processor.interpolate)?l.processor.interpolate:DEFAULT_INTERPOLATE,hn={list:bn=>Dt[bn],named:bn=>Pt[bn],plural:bn=>bn[Et(At,bn.length,kt)],linked:(bn,...vn)=>{const[Cn,wn]=vn;let En="text",Bn="";vn.length===1?isObject$8(Cn)?(Bn=Cn.modifier||Bn,En=Cn.type||En):isString$5(Cn)&&(Bn=Cn||Bn):vn.length===2&&(isString$5(Cn)&&(Bn=Cn||Bn),isString$5(wn)&&(En=wn||En));const In=Lt(bn)(hn),Dn=En==="vnode"&&isArray$4(In)&&Bn?In[0]:In;return Bn?(Tn=>l.modifiers?l.modifiers[Tn]:DEFAULT_MODIFIER)(Bn)(Dn,En):Dn},message:Lt,type:isPlainObject$4(l.processor)&&isString$5(l.processor.type)?l.processor.type:DEFAULT_MESSAGE_DATA_TYPE,interpolate:An,normalize:jt,values:assign$7(create$7(),Dt,Pt)};return hn}let devtools=null;function setDevToolsHook(l){devtools=l}function initI18nDevTools(l,Ve,At){devtools&&devtools.emit("i18n:init",{timestamp:Date.now(),i18n:l,version:Ve,meta:At})}const translateDevTools=createDevToolsHook("function:translate");function createDevToolsHook(l){return Ve=>devtools&&devtools.emit(l,Ve)}const code$1$2=CompileWarnCodes.__EXTEND_POINT__,inc$1$1=incrementer(code$1$2),CoreWarnCodes={NOT_FOUND_KEY:code$1$2,FALLBACK_TO_TRANSLATE:inc$1$1(),CANNOT_FORMAT_NUMBER:inc$1$1(),FALLBACK_TO_NUMBER_FORMAT:inc$1$1(),CANNOT_FORMAT_DATE:inc$1$1(),FALLBACK_TO_DATE_FORMAT:inc$1$1(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:inc$1$1(),__EXTEND_POINT__:inc$1$1()},warnMessages$1={[CoreWarnCodes.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[CoreWarnCodes.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[CoreWarnCodes.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[CoreWarnCodes.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[CoreWarnCodes.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[CoreWarnCodes.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[CoreWarnCodes.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 getWarnMessage$1(l,...Ve){return format$7(warnMessages$1[l],...Ve)}const code$7=CompileErrorCodes.__EXTEND_POINT__,inc$2=incrementer(code$7),CoreErrorCodes={INVALID_ARGUMENT:code$7,INVALID_DATE_ARGUMENT:inc$2(),INVALID_ISO_DATE_ARGUMENT:inc$2(),NOT_SUPPORT_NON_STRING_MESSAGE:inc$2(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:inc$2(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:inc$2(),NOT_SUPPORT_LOCALE_TYPE:inc$2(),__EXTEND_POINT__:inc$2()};function createCoreError(l){return createCompileError(l,null,process.env.NODE_ENV!=="production"?{messages:errorMessages$1}:void 0)}const errorMessages$1={[CoreErrorCodes.INVALID_ARGUMENT]:"Invalid arguments",[CoreErrorCodes.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[CoreErrorCodes.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[CoreErrorCodes.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[CoreErrorCodes.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[CoreErrorCodes.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function getLocale(l,Ve){return Ve.locale!=null?resolveLocale(Ve.locale):resolveLocale(l.locale)}let _resolveLocale;function resolveLocale(l){if(isString$5(l))return l;if(isFunction$4(l)){if(l.resolvedOnce&&_resolveLocale!=null)return _resolveLocale;if(l.constructor.name==="Function"){const Ve=l();if(isPromise$1(Ve))throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return _resolveLocale=Ve}throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_TYPE)}function fallbackWithSimple(l,Ve,At){return[...new Set([At,...isArray$4(Ve)?Ve:isObject$8(Ve)?Object.keys(Ve):isString$5(Ve)?[Ve]:[At]])]}function fallbackWithLocaleChain(l,Ve,At){const Et=isString$5(At)?At:DEFAULT_LOCALE$1,kt=l;kt.__localeChainCache||(kt.__localeChainCache=new Map);let Dt=kt.__localeChainCache.get(Et);if(!Dt){Dt=[];let Pt=[At];for(;isArray$4(Pt);)Pt=appendBlockToChain(Dt,Pt,Ve);const Lt=isArray$4(Ve)||!isPlainObject$4(Ve)?Ve:Ve.default?Ve.default:null;Pt=isString$5(Lt)?[Lt]:Lt,isArray$4(Pt)&&appendBlockToChain(Dt,Pt,!1),kt.__localeChainCache.set(Et,Dt)}return Dt}function appendBlockToChain(l,Ve,At){let Et=!0;for(let kt=0;kt<Ve.length&&isBoolean$2(Et);kt++){const Dt=Ve[kt];isString$5(Dt)&&(Et=appendLocaleToChain(l,Ve[kt],At))}return Et}function appendLocaleToChain(l,Ve,At){let Et;const kt=Ve.split("-");do Et=appendItemToChain(l,kt.join("-"),At),kt.splice(-1,1);while(kt.length&&Et===!0);return Et}function appendItemToChain(l,Ve,At){let Et=!1;if(!l.includes(Ve)&&(Et=!0,Ve)){Et=Ve[Ve.length-1]!=="!";const kt=Ve.replace(/!/g,"");l.push(kt),(isArray$4(At)||isPlainObject$4(At))&&At[kt]&&(Et=At[kt])}return Et}const VERSION$1="9.14.5",NOT_REOSLVED=-1,DEFAULT_LOCALE$1="en-US",MISSING_RESOLVE_VALUE="",capitalize$3=l=>`${l.charAt(0).toLocaleUpperCase()}${l.substr(1)}`;function getDefaultLinkedModifiers(){return{upper:(l,Ve)=>Ve==="text"&&isString$5(l)?l.toUpperCase():Ve==="vnode"&&isObject$8(l)&&"__v_isVNode"in l?l.children.toUpperCase():l,lower:(l,Ve)=>Ve==="text"&&isString$5(l)?l.toLowerCase():Ve==="vnode"&&isObject$8(l)&&"__v_isVNode"in l?l.children.toLowerCase():l,capitalize:(l,Ve)=>Ve==="text"&&isString$5(l)?capitalize$3(l):Ve==="vnode"&&isObject$8(l)&&"__v_isVNode"in l?capitalize$3(l.children):l}}let _compiler,_resolver,_fallbacker;function registerMessageCompiler(l){_compiler=l}function registerMessageResolver(l){_resolver=l}function registerLocaleFallbacker(l){_fallbacker=l}let _additionalMeta=null;const setAdditionalMeta=l=>{_additionalMeta=l},getAdditionalMeta=()=>_additionalMeta;let _fallbackContext=null;const setFallbackContext=l=>{_fallbackContext=l},getFallbackContext=()=>_fallbackContext;let _cid=0;function createCoreContext(l={}){const Ve=isFunction$4(l.onWarn)?l.onWarn:warn$2,At=isString$5(l.version)?l.version:VERSION$1,Et=isString$5(l.locale)||isFunction$4(l.locale)?l.locale:DEFAULT_LOCALE$1,kt=isFunction$4(Et)?DEFAULT_LOCALE$1:Et,Dt=isArray$4(l.fallbackLocale)||isPlainObject$4(l.fallbackLocale)||isString$5(l.fallbackLocale)||l.fallbackLocale===!1?l.fallbackLocale:kt,Pt=isPlainObject$4(l.messages)?l.messages:createResources(kt),Lt=isPlainObject$4(l.datetimeFormats)?l.datetimeFormats:createResources(kt),jt=isPlainObject$4(l.numberFormats)?l.numberFormats:createResources(kt),An=assign$7(create$7(),l.modifiers,getDefaultLinkedModifiers()),hn=l.pluralRules||create$7(),bn=isFunction$4(l.missing)?l.missing:null,vn=!isBoolean$2(l.missingWarn)&&!isRegExp$3(l.missingWarn)||l.missingWarn,Cn=!isBoolean$2(l.fallbackWarn)&&!isRegExp$3(l.fallbackWarn)||l.fallbackWarn,wn=!!l.fallbackFormat,En=!!l.unresolving,Bn=isFunction$4(l.postTranslation)?l.postTranslation:null,In=isPlainObject$4(l.processor)?l.processor:null,Dn=!isBoolean$2(l.warnHtmlMessage)||l.warnHtmlMessage,Tn=!!l.escapeParameter,Mn=isFunction$4(l.messageCompiler)?l.messageCompiler:_compiler;process.env.NODE_ENV!=="production"&&isFunction$4(l.messageCompiler)&&warnOnce(getWarnMessage$1(CoreWarnCodes.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const Fn=isFunction$4(l.messageResolver)?l.messageResolver:_resolver||resolveWithKeyValue,Rn=isFunction$4(l.localeFallbacker)?l.localeFallbacker:_fallbacker||fallbackWithSimple,On=isObject$8(l.fallbackContext)?l.fallbackContext:void 0,Pn=l,jn=isObject$8(Pn.__datetimeFormatters)?Pn.__datetimeFormatters:new Map,Hn=isObject$8(Pn.__numberFormatters)?Pn.__numberFormatters:new Map,Gn=isObject$8(Pn.__meta)?Pn.__meta:{};_cid++;const qn={version:At,cid:_cid,locale:Et,fallbackLocale:Dt,messages:Pt,modifiers:An,pluralRules:hn,missing:bn,missingWarn:vn,fallbackWarn:Cn,fallbackFormat:wn,unresolving:En,postTranslation:Bn,processor:In,warnHtmlMessage:Dn,escapeParameter:Tn,messageCompiler:Mn,messageResolver:Fn,localeFallbacker:Rn,fallbackContext:On,onWarn:Ve,__meta:Gn};return qn.datetimeFormats=Lt,qn.numberFormats=jt,qn.__datetimeFormatters=jn,qn.__numberFormatters=Hn,process.env.NODE_ENV!=="production"&&(qn.__v_emitter=Pn.__v_emitter!=null?Pn.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&initI18nDevTools(qn,At,Gn),qn}const createResources=l=>({[l]:create$7()});function isTranslateFallbackWarn(l,Ve){return l instanceof RegExp?l.test(Ve):l}function isTranslateMissingWarn(l,Ve){return l instanceof RegExp?l.test(Ve):l}function handleMissing(l,Ve,At,Et,kt){const{missing:Dt,onWarn:Pt}=l;if(process.env.NODE_ENV!=="production"){const Lt=l.__v_emitter;Lt&&Lt.emit("missing",{locale:At,key:Ve,type:kt,groupId:`${kt}:${Ve}`})}if(Dt!==null){const Lt=Dt(l,At,Ve,kt);return isString$5(Lt)?Lt:Ve}return process.env.NODE_ENV!=="production"&&isTranslateMissingWarn(Et,Ve)&&Pt(getWarnMessage$1(CoreWarnCodes.NOT_FOUND_KEY,{key:Ve,locale:At})),Ve}function updateFallbackLocale(l,Ve,At){l.__localeChainCache=new Map,l.localeFallbacker(l,At,Ve)}function isAlmostSameLocale(l,Ve){return l!==Ve&&l.split("-")[0]===Ve.split("-")[0]}function isImplicitFallback(l,Ve){const At=Ve.indexOf(l);if(At===-1)return!1;for(let Et=At+1;Et<Ve.length;Et++)if(isAlmostSameLocale(l,Ve[Et]))return!0;return!1}function format$5(l){return Ve=>formatParts(Ve,l)}function formatParts(l,Ve){const At=resolveBody(Ve);if(At==null)throw createUnhandleNodeError(0);if(resolveType(At)===1){const Et=resolveCases(At);return l.plural(Et.reduce((kt,Dt)=>[...kt,formatMessageParts(l,Dt)],[]))}return formatMessageParts(l,At)}function formatMessageParts(l,Ve){const At=resolveStatic(Ve);if(At!=null)return l.type==="text"?At:l.normalize([At]);{const Et=resolveItems(Ve).reduce((kt,Dt)=>[...kt,formatMessagePart(l,Dt)],[]);return l.normalize(Et)}}function formatMessagePart(l,Ve){const At=resolveType(Ve);switch(At){case 3:case 9:case 7:case 8:return resolveValue$1(Ve,At);case 4:{const Et=Ve;if(hasOwn$2(Et,"k")&&Et.k)return l.interpolate(l.named(Et.k));if(hasOwn$2(Et,"key")&&Et.key)return l.interpolate(l.named(Et.key));throw createUnhandleNodeError(At)}case 5:{const Et=Ve;if(hasOwn$2(Et,"i")&&isNumber$4(Et.i))return l.interpolate(l.list(Et.i));if(hasOwn$2(Et,"index")&&isNumber$4(Et.index))return l.interpolate(l.list(Et.index));throw createUnhandleNodeError(At)}case 6:{const Et=Ve,kt=resolveLinkedModifier(Et),Dt=resolveLinkedKey(Et);return l.linked(formatMessagePart(l,Dt),kt?formatMessagePart(l,kt):void 0,l.type)}default:throw new Error(`unhandled node on format message part: ${At}`)}}const WARN_MESSAGE="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function checkHtmlMessage(l,Ve){Ve&&detectHtmlTag(l)&&warn$2(format$7(WARN_MESSAGE,{source:l}))}const defaultOnCacheKey=l=>l;let compileCache=create$7();function onCompileWarn(l){l.code===CompileWarnCodes.USE_MODULO_SYNTAX&&warn$2(`The use of named interpolation with modulo syntax is deprecated. It will be removed in v10.