imatrix-ui 0.2.4-up → 0.2.6-up

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.
@@ -1,30 +1,24 @@
1
- (function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e["super-ui"]={},e.Vue))})(this,function(exports,Vue){"use strict";function _interopNamespaceDefault(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}function _mergeNamespaces(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Vue__namespace=_interopNamespaceDefault(Vue);function lexer(e){for(var t=[],n=0;n<e.length;){var r=e[n];if(r==="*"||r==="+"||r==="?"){t.push({type:"MODIFIER",index:n,value:e[n++]});continue}if(r==="\\"){t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});continue}if(r==="{"){t.push({type:"OPEN",index:n,value:e[n++]});continue}if(r==="}"){t.push({type:"CLOSE",index:n,value:e[n++]});continue}if(r===":"){for(var i="",o=n+1;o<e.length;){var a=e.charCodeAt(o);if(a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a===95){i+=e[o++];continue}break}if(!i)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:i}),n=o;continue}if(r==="("){var s=1,l="",o=n+1;if(e[o]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(o));for(;o<e.length;){if(e[o]==="\\"){l+=e[o++]+e[o++];continue}if(e[o]===")"){if(s--,s===0){o++;break}}else if(e[o]==="("&&(s++,e[o+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(o));l+=e[o++]}if(s)throw new TypeError("Unbalanced pattern at ".concat(n));if(!l)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:l}),n=o;continue}t.push({type:"CHAR",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}function parse$1(e,t){t===void 0&&(t={});for(var n=lexer(e),r=t.prefixes,i=r===void 0?"./":r,o="[^".concat(escapeString(t.delimiter||"/#?"),"]+?"),a=[],s=0,l=0,u="",c=function(w){if(l<n.length&&n[l].type===w)return n[l++].value},d=function(w){var y=c(w);if(y!==void 0)return y;var N=n[l],V=N.type,D=N.index;throw new TypeError("Unexpected ".concat(V," at ").concat(D,", expected ").concat(w))},f=function(){for(var w="",y;y=c("CHAR")||c("ESCAPED_CHAR");)w+=y;return w};l<n.length;){var h=c("CHAR"),p=c("NAME"),g=c("PATTERN");if(p||g){var C=h||"";i.indexOf(C)===-1&&(u+=C,C=""),u&&(a.push(u),u=""),a.push({name:p||s++,prefix:C,suffix:"",pattern:g||o,modifier:c("MODIFIER")||""});continue}var v=h||c("ESCAPED_CHAR");if(v){u+=v;continue}u&&(a.push(u),u="");var m=c("OPEN");if(m){var C=f(),_=c("NAME")||"",E=c("PATTERN")||"",x=f();d("CLOSE"),a.push({name:_||(E?s++:""),pattern:_&&!E?o:E,prefix:C,suffix:x,modifier:c("MODIFIER")||""});continue}d("END")}return a}function compile$1(e,t){return tokensToFunction(parse$1(e,t),t)}function tokensToFunction(e,t){t===void 0&&(t={});var n=flags(t),r=t.encode,i=r===void 0?function(l){return l}:r,o=t.validate,a=o===void 0?!0:o,s=e.map(function(l){if(typeof l=="object")return new RegExp("^(?:".concat(l.pattern,")$"),n)});return function(l){for(var u="",c=0;c<e.length;c++){var d=e[c];if(typeof d=="string"){u+=d;continue}var f=l?l[d.name]:void 0,h=d.modifier==="?"||d.modifier==="*",p=d.modifier==="*"||d.modifier==="+";if(Array.isArray(f)){if(!p)throw new TypeError('Expected "'.concat(d.name,'" to not repeat, but got an array'));if(f.length===0){if(h)continue;throw new TypeError('Expected "'.concat(d.name,'" to not be empty'))}for(var g=0;g<f.length;g++){var C=i(f[g],d);if(a&&!s[c].test(C))throw new TypeError('Expected all "'.concat(d.name,'" to match "').concat(d.pattern,'", but got "').concat(C,'"'));u+=d.prefix+C+d.suffix}continue}if(typeof f=="string"||typeof f=="number"){var C=i(String(f),d);if(a&&!s[c].test(C))throw new TypeError('Expected "'.concat(d.name,'" to match "').concat(d.pattern,'", but got "').concat(C,'"'));u+=d.prefix+C+d.suffix;continue}if(!h){var v=p?"an array":"a string";throw new TypeError('Expected "'.concat(d.name,'" to be ').concat(v))}}return u}}function escapeString(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function flags(e){return e&&e.sensitive?"":"i"}const breadcrumb_vue_vue_type_style_index_0_scoped_fd24aa0b_rel_stylesheet_2Fscss_lang="",_export_sfc=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},_sfc_main$12={name:"Breadcrumb",data(){return{levelList:null}},computed:{levelListWithTitle(){return this.levelList.filter(e=>e.meta.title!==void 0&&e.meta.title!==null)}},watch:{$route(){this.getBreadcrumb()}},created(){this.getBreadcrumb()},methods:{getBreadcrumb(){const{params:e}=this.$route;let t=this.$route.matched.filter(r=>{if(r.name){var i=compile$1(r.path);return r.path=i(e),!0}});const n=t[0];n&&n.name!=="Dashboard"&&(t=[{path:"/dashboard",meta:{title:"Dashboard"}}].concat(t)),this.levelList=t}}},_hoisted_1$O={key:0,class:"no-redirect"};function _sfc_render$12(e,t,n,r,i,o){const a=Vue.resolveComponent("router-link"),s=Vue.resolveComponent("el-breadcrumb-item"),l=Vue.resolveComponent("el-breadcrumb");return Vue.openBlock(),Vue.createBlock(l,{class:"app-breadcrumb",separator:"/"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.TransitionGroup,{tag:"span",name:"breadcrumb"},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(o.levelListWithTitle,(u,c)=>(Vue.openBlock(),Vue.createBlock(s,{key:u.path},{default:Vue.withCtx(()=>[u.redirect==="noredirect"||c==i.levelList.length-1?(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_1$O,Vue.toDisplayString(u.meta.title),1)):(Vue.openBlock(),Vue.createBlock(a,{key:1,to:u.redirect||u.path},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(u.meta.title),1)]),_:2},1032,["to"]))]),_:2},1024))),128))]),_:1})]),_:1})}const Breadcrumb=_export_sfc(_sfc_main$12,[["render",_sfc_render$12],["__scopeId","data-v-fd24aa0b"]]);Breadcrumb.install=function(e){e.component(Breadcrumb.name,Breadcrumb)};const eventRegistryMap=new WeakMap;function getRegistry(e){let t=eventRegistryMap.get(e);return t||eventRegistryMap.set(e,t=Object.create(null)),t}function $on(e,t,n){if(Array.isArray(t))t.forEach(r=>$on(e,r,n));else{const r=getRegistry(e);(r[t]||(r[t]=[])).push(n)}return e}function $off(e,t,n){const r=e;if(!t)return eventRegistryMap.set(e,Object.create(null)),r;if(Array.isArray(t))return t.forEach(a=>$off(e,a,n)),r;const i=getRegistry(e),o=i[t];return o?n?(i[t]=o.filter(a=>!(a===n||a.fn===n)),r):(i[t]=void 0,r):r}function $emit(e,t,...n){e&&e.$emit&&e.$emit(t,...n);const r=getRegistry(e)[t];return r&&r.map(i=>i.apply(e,n)),e}/*! Element Plus Icons Vue v2.3.1 */var circle_plus_vue_vue_type_script_setup_true_lang_default=Vue.defineComponent({name:"CirclePlus",__name:"circle-plus",setup(e){return(t,n)=>(Vue.openBlock(),Vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Vue.createElementVNode("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),Vue.createElementVNode("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"}),Vue.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),circle_plus_default=circle_plus_vue_vue_type_script_setup_true_lang_default,close_vue_vue_type_script_setup_true_lang_default=Vue.defineComponent({name:"Close",__name:"close",setup(e){return(t,n)=>(Vue.openBlock(),Vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Vue.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),close_default=close_vue_vue_type_script_setup_true_lang_default,delete_vue_vue_type_script_setup_true_lang_default=Vue.defineComponent({name:"Delete",__name:"delete",setup(e){return(t,n)=>(Vue.openBlock(),Vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Vue.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),delete_default=delete_vue_vue_type_script_setup_true_lang_default,download_vue_vue_type_script_setup_true_lang_default=Vue.defineComponent({name:"Download",__name:"download",setup(e){return(t,n)=>(Vue.openBlock(),Vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Vue.createElementVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),download_default=download_vue_vue_type_script_setup_true_lang_default,full_screen_vue_vue_type_script_setup_true_lang_default=Vue.defineComponent({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(Vue.openBlock(),Vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Vue.createElementVNode("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),full_screen_default=full_screen_vue_vue_type_script_setup_true_lang_default,paperclip_vue_vue_type_script_setup_true_lang_default=Vue.defineComponent({name:"Paperclip",__name:"paperclip",setup(e){return(t,n)=>(Vue.openBlock(),Vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Vue.createElementVNode("path",{fill:"currentColor",d:"M602.496 240.448A192 192 0 1 1 874.048 512l-316.8 316.8A256 256 0 0 1 195.2 466.752L602.496 59.456l45.248 45.248L240.448 512A192 192 0 0 0 512 783.552l316.8-316.8a128 128 0 1 0-181.056-181.056L353.6 579.904a32 32 0 1 0 45.248 45.248l294.144-294.144 45.312 45.248L444.096 670.4a96 96 0 1 1-135.744-135.744l294.144-294.208z"})]))}}),paperclip_default=paperclip_vue_vue_type_script_setup_true_lang_default,plus_vue_vue_type_script_setup_true_lang_default=Vue.defineComponent({name:"Plus",__name:"plus",setup(e){return(t,n)=>(Vue.openBlock(),Vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Vue.createElementVNode("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),plus_default=plus_vue_vue_type_script_setup_true_lang_default,refresh_vue_vue_type_script_setup_true_lang_default=Vue.defineComponent({name:"Refresh",__name:"refresh",setup(e){return(t,n)=>(Vue.openBlock(),Vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Vue.createElementVNode("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),refresh_default=refresh_vue_vue_type_script_setup_true_lang_default,search_vue_vue_type_script_setup_true_lang_default=Vue.defineComponent({name:"Search",__name:"search",setup(e){return(t,n)=>(Vue.openBlock(),Vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Vue.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),search_default=search_vue_vue_type_script_setup_true_lang_default,setting_vue_vue_type_script_setup_true_lang_default=Vue.defineComponent({name:"Setting",__name:"setting",setup(e){return(t,n)=>(Vue.openBlock(),Vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Vue.createElementVNode("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"})]))}}),setting_default=setting_vue_vue_type_script_setup_true_lang_default,upload_vue_vue_type_script_setup_true_lang_default=Vue.defineComponent({name:"Upload",__name:"upload",setup(e){return(t,n)=>(Vue.openBlock(),Vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Vue.createElementVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}}),upload_default=upload_vue_vue_type_script_setup_true_lang_default,view_vue_vue_type_script_setup_true_lang_default=Vue.defineComponent({name:"View",__name:"view",setup(e){return(t,n)=>(Vue.openBlock(),Vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Vue.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),view_default=view_vue_vue_type_script_setup_true_lang_default,zoom_in_vue_vue_type_script_setup_true_lang_default=Vue.defineComponent({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(Vue.openBlock(),Vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Vue.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),zoom_in_default=zoom_in_vue_vue_type_script_setup_true_lang_default;let api=localStorage;api={get length(){return localStorage.length},getItem:localStorage.getItem.bind(localStorage),setItem:localStorage.setItem.bind(localStorage),removeItem:localStorage.removeItem.bind(localStorage),key:localStorage.key.bind(localStorage),clear:localStorage.clear.bind(localStorage),setObject:function(e,t){return typeof t!="object"?this.setItem(e,t):this.setItem(e,JSON.stringify(t))},getObject:function(e){var t=this.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch{return t}}};const localStorage$1=api;/*!
2
- * shared v9.7.1
1
+ (function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e["super-ui"]={},e.Vue))})(this,function(exports,Vue){"use strict";function _interopNamespaceDefault(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Vue__namespace=_interopNamespaceDefault(Vue);function lexer(e){for(var t=[],n=0;n<e.length;){var r=e[n];if(r==="*"||r==="+"||r==="?"){t.push({type:"MODIFIER",index:n,value:e[n++]});continue}if(r==="\\"){t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});continue}if(r==="{"){t.push({type:"OPEN",index:n,value:e[n++]});continue}if(r==="}"){t.push({type:"CLOSE",index:n,value:e[n++]});continue}if(r===":"){for(var i="",o=n+1;o<e.length;){var a=e.charCodeAt(o);if(a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a===95){i+=e[o++];continue}break}if(!i)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:i}),n=o;continue}if(r==="("){var s=1,l="",o=n+1;if(e[o]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(o));for(;o<e.length;){if(e[o]==="\\"){l+=e[o++]+e[o++];continue}if(e[o]===")"){if(s--,s===0){o++;break}}else if(e[o]==="("&&(s++,e[o+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(o));l+=e[o++]}if(s)throw new TypeError("Unbalanced pattern at ".concat(n));if(!l)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:l}),n=o;continue}t.push({type:"CHAR",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}function parse$1(e,t){t===void 0&&(t={});for(var n=lexer(e),r=t.prefixes,i=r===void 0?"./":r,o="[^".concat(escapeString(t.delimiter||"/#?"),"]+?"),a=[],s=0,l=0,u="",c=function(w){if(l<n.length&&n[l].type===w)return n[l++].value},d=function(w){var y=c(w);if(y!==void 0)return y;var N=n[l],V=N.type,D=N.index;throw new TypeError("Unexpected ".concat(V," at ").concat(D,", expected ").concat(w))},f=function(){for(var w="",y;y=c("CHAR")||c("ESCAPED_CHAR");)w+=y;return w};l<n.length;){var h=c("CHAR"),p=c("NAME"),g=c("PATTERN");if(p||g){var C=h||"";i.indexOf(C)===-1&&(u+=C,C=""),u&&(a.push(u),u=""),a.push({name:p||s++,prefix:C,suffix:"",pattern:g||o,modifier:c("MODIFIER")||""});continue}var v=h||c("ESCAPED_CHAR");if(v){u+=v;continue}u&&(a.push(u),u="");var m=c("OPEN");if(m){var C=f(),_=c("NAME")||"",E=c("PATTERN")||"",x=f();d("CLOSE"),a.push({name:_||(E?s++:""),pattern:_&&!E?o:E,prefix:C,suffix:x,modifier:c("MODIFIER")||""});continue}d("END")}return a}function compile$1(e,t){return tokensToFunction(parse$1(e,t),t)}function tokensToFunction(e,t){t===void 0&&(t={});var n=flags(t),r=t.encode,i=r===void 0?function(l){return l}:r,o=t.validate,a=o===void 0?!0:o,s=e.map(function(l){if(typeof l=="object")return new RegExp("^(?:".concat(l.pattern,")$"),n)});return function(l){for(var u="",c=0;c<e.length;c++){var d=e[c];if(typeof d=="string"){u+=d;continue}var f=l?l[d.name]:void 0,h=d.modifier==="?"||d.modifier==="*",p=d.modifier==="*"||d.modifier==="+";if(Array.isArray(f)){if(!p)throw new TypeError('Expected "'.concat(d.name,'" to not repeat, but got an array'));if(f.length===0){if(h)continue;throw new TypeError('Expected "'.concat(d.name,'" to not be empty'))}for(var g=0;g<f.length;g++){var C=i(f[g],d);if(a&&!s[c].test(C))throw new TypeError('Expected all "'.concat(d.name,'" to match "').concat(d.pattern,'", but got "').concat(C,'"'));u+=d.prefix+C+d.suffix}continue}if(typeof f=="string"||typeof f=="number"){var C=i(String(f),d);if(a&&!s[c].test(C))throw new TypeError('Expected "'.concat(d.name,'" to match "').concat(d.pattern,'", but got "').concat(C,'"'));u+=d.prefix+C+d.suffix;continue}if(!h){var v=p?"an array":"a string";throw new TypeError('Expected "'.concat(d.name,'" to be ').concat(v))}}return u}}function escapeString(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function flags(e){return e&&e.sensitive?"":"i"}const breadcrumb_vue_vue_type_style_index_0_scoped_fd24aa0b_rel_stylesheet_2Fscss_lang="",_export_sfc=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},_sfc_main$12={name:"Breadcrumb",data(){return{levelList:null}},computed:{levelListWithTitle(){return this.levelList.filter(e=>e.meta.title!==void 0&&e.meta.title!==null)}},watch:{$route(){this.getBreadcrumb()}},created(){this.getBreadcrumb()},methods:{getBreadcrumb(){const{params:e}=this.$route;let t=this.$route.matched.filter(r=>{if(r.name){var i=compile$1(r.path);return r.path=i(e),!0}});const n=t[0];n&&n.name!=="Dashboard"&&(t=[{path:"/dashboard",meta:{title:"Dashboard"}}].concat(t)),this.levelList=t}}},_hoisted_1$O={key:0,class:"no-redirect"};function _sfc_render$12(e,t,n,r,i,o){const a=Vue.resolveComponent("router-link"),s=Vue.resolveComponent("el-breadcrumb-item"),l=Vue.resolveComponent("el-breadcrumb");return Vue.openBlock(),Vue.createBlock(l,{class:"app-breadcrumb",separator:"/"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.TransitionGroup,{tag:"span",name:"breadcrumb"},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(o.levelListWithTitle,(u,c)=>(Vue.openBlock(),Vue.createBlock(s,{key:u.path},{default:Vue.withCtx(()=>[u.redirect==="noredirect"||c==i.levelList.length-1?(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_1$O,Vue.toDisplayString(u.meta.title),1)):(Vue.openBlock(),Vue.createBlock(a,{key:1,to:u.redirect||u.path},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(u.meta.title),1)]),_:2},1032,["to"]))]),_:2},1024))),128))]),_:1})]),_:1})}const Breadcrumb=_export_sfc(_sfc_main$12,[["render",_sfc_render$12],["__scopeId","data-v-fd24aa0b"]]);Breadcrumb.install=function(e){e.component(Breadcrumb.name,Breadcrumb)};const eventRegistryMap=new WeakMap;function getRegistry(e){let t=eventRegistryMap.get(e);return t||eventRegistryMap.set(e,t=Object.create(null)),t}function $on(e,t,n){if(Array.isArray(t))t.forEach(r=>$on(e,r,n));else{const r=getRegistry(e);(r[t]||(r[t]=[])).push(n)}return e}function $off(e,t,n){const r=e;if(!t)return eventRegistryMap.set(e,Object.create(null)),r;if(Array.isArray(t))return t.forEach(a=>$off(e,a,n)),r;const i=getRegistry(e),o=i[t];return o?n?(i[t]=o.filter(a=>!(a===n||a.fn===n)),r):(i[t]=void 0,r):r}function $emit(e,t,...n){e&&e.$emit&&e.$emit(t,...n);const r=getRegistry(e)[t];return r&&r.map(i=>i.apply(e,n)),e}/*! Element Plus Icons Vue v2.3.1 */var circle_plus_vue_vue_type_script_setup_true_lang_default=Vue.defineComponent({name:"CirclePlus",__name:"circle-plus",setup(e){return(t,n)=>(Vue.openBlock(),Vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Vue.createElementVNode("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),Vue.createElementVNode("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"}),Vue.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),circle_plus_default=circle_plus_vue_vue_type_script_setup_true_lang_default,close_vue_vue_type_script_setup_true_lang_default=Vue.defineComponent({name:"Close",__name:"close",setup(e){return(t,n)=>(Vue.openBlock(),Vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Vue.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),close_default=close_vue_vue_type_script_setup_true_lang_default,delete_vue_vue_type_script_setup_true_lang_default=Vue.defineComponent({name:"Delete",__name:"delete",setup(e){return(t,n)=>(Vue.openBlock(),Vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Vue.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),delete_default=delete_vue_vue_type_script_setup_true_lang_default,download_vue_vue_type_script_setup_true_lang_default=Vue.defineComponent({name:"Download",__name:"download",setup(e){return(t,n)=>(Vue.openBlock(),Vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Vue.createElementVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),download_default=download_vue_vue_type_script_setup_true_lang_default,full_screen_vue_vue_type_script_setup_true_lang_default=Vue.defineComponent({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(Vue.openBlock(),Vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Vue.createElementVNode("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),full_screen_default=full_screen_vue_vue_type_script_setup_true_lang_default,paperclip_vue_vue_type_script_setup_true_lang_default=Vue.defineComponent({name:"Paperclip",__name:"paperclip",setup(e){return(t,n)=>(Vue.openBlock(),Vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Vue.createElementVNode("path",{fill:"currentColor",d:"M602.496 240.448A192 192 0 1 1 874.048 512l-316.8 316.8A256 256 0 0 1 195.2 466.752L602.496 59.456l45.248 45.248L240.448 512A192 192 0 0 0 512 783.552l316.8-316.8a128 128 0 1 0-181.056-181.056L353.6 579.904a32 32 0 1 0 45.248 45.248l294.144-294.144 45.312 45.248L444.096 670.4a96 96 0 1 1-135.744-135.744l294.144-294.208z"})]))}}),paperclip_default=paperclip_vue_vue_type_script_setup_true_lang_default,plus_vue_vue_type_script_setup_true_lang_default=Vue.defineComponent({name:"Plus",__name:"plus",setup(e){return(t,n)=>(Vue.openBlock(),Vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Vue.createElementVNode("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),plus_default=plus_vue_vue_type_script_setup_true_lang_default,refresh_vue_vue_type_script_setup_true_lang_default=Vue.defineComponent({name:"Refresh",__name:"refresh",setup(e){return(t,n)=>(Vue.openBlock(),Vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Vue.createElementVNode("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),refresh_default=refresh_vue_vue_type_script_setup_true_lang_default,search_vue_vue_type_script_setup_true_lang_default=Vue.defineComponent({name:"Search",__name:"search",setup(e){return(t,n)=>(Vue.openBlock(),Vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Vue.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),search_default=search_vue_vue_type_script_setup_true_lang_default,setting_vue_vue_type_script_setup_true_lang_default=Vue.defineComponent({name:"Setting",__name:"setting",setup(e){return(t,n)=>(Vue.openBlock(),Vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Vue.createElementVNode("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"})]))}}),setting_default=setting_vue_vue_type_script_setup_true_lang_default,upload_vue_vue_type_script_setup_true_lang_default=Vue.defineComponent({name:"Upload",__name:"upload",setup(e){return(t,n)=>(Vue.openBlock(),Vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Vue.createElementVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}}),upload_default=upload_vue_vue_type_script_setup_true_lang_default,view_vue_vue_type_script_setup_true_lang_default=Vue.defineComponent({name:"View",__name:"view",setup(e){return(t,n)=>(Vue.openBlock(),Vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Vue.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),view_default=view_vue_vue_type_script_setup_true_lang_default,zoom_in_vue_vue_type_script_setup_true_lang_default=Vue.defineComponent({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(Vue.openBlock(),Vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Vue.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),zoom_in_default=zoom_in_vue_vue_type_script_setup_true_lang_default;let api$1=localStorage;api$1={get length(){return localStorage.length},getItem:localStorage.getItem.bind(localStorage),setItem:localStorage.setItem.bind(localStorage),removeItem:localStorage.removeItem.bind(localStorage),key:localStorage.key.bind(localStorage),clear:localStorage.clear.bind(localStorage),setObject:function(e,t){return typeof t!="object"?this.setItem(e,t):this.setItem(e,JSON.stringify(t))},getObject:function(e){var t=this.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch{return t}}};const localStorage$1=api$1;/*!
2
+ * shared v9.8.0
3
3
  * (c) 2023 kazuya kawaguchi
4
4
  * Released under the MIT License.
5
- */const inBrowser=typeof window<"u";let mark,measure;if(process.env.NODE_ENV!=="production"){const e=inBrowser&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(mark=t=>{e.mark(t)},measure=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}const RE_ARGS$1=/\{([0-9a-zA-Z]+)\}/g;function format$3(e,...t){return t.length===1&&isObject$2(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(RE_ARGS$1,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const makeSymbol=(e,t=!1)=>t?Symbol.for(e):Symbol(e),generateFormatCacheKey=(e,t,n)=>friendlyJSONstringify({l:e,k:t,s:n}),friendlyJSONstringify=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),isNumber=e=>typeof e=="number"&&isFinite(e),isDate=e=>toTypeString(e)==="[object Date]",isRegExp=e=>toTypeString(e)==="[object RegExp]",isEmptyObject=e=>isPlainObject(e)&&Object.keys(e).length===0,assign$1=Object.assign;let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function escapeHtml(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const hasOwnProperty=Object.prototype.hasOwnProperty;function hasOwn(e,t){return hasOwnProperty.call(e,t)}const isArray=Array.isArray,isFunction=e=>typeof e=="function",isString$1=e=>typeof e=="string",isBoolean=e=>typeof e=="boolean",isObject$2=e=>e!==null&&typeof e=="object",objectToString=Object.prototype.toString,toTypeString=e=>objectToString.call(e),isPlainObject=e=>{if(!isObject$2(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},toDisplayString=e=>e==null?"":isArray(e)||isPlainObject(e)&&e.toString===objectToString?JSON.stringify(e,null,2):String(e);function join$1(e,t=""){return e.reduce((n,r,i)=>i===0?n+r:n+t+r,"")}const RANGE=2;function generateCodeFrame(e,t=0,n=e.length){const r=e.split(/\r?\n/);let i=0;const o=[];for(let a=0;a<r.length;a++)if(i+=r[a].length+1,i>=t){for(let s=a-RANGE;s<=a+RANGE||n>i;s++){if(s<0||s>=r.length)continue;const l=s+1;o.push(`${l}${" ".repeat(3-String(l).length)}| ${r[s]}`);const u=r[s].length;if(s===a){const c=t-(i-u)+1,d=Math.max(1,n>i?u-c:n-t);o.push(" | "+" ".repeat(c)+"^".repeat(d))}else if(s>a){if(n>i){const c=Math.max(Math.min(n-i,u),1);o.push(" | "+"^".repeat(c))}i+=u+1}}break}return o.join(`
5
+ */const inBrowser=typeof window<"u";let mark,measure;if(process.env.NODE_ENV!=="production"){const e=inBrowser&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(mark=t=>{e.mark(t)},measure=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}const RE_ARGS$1=/\{([0-9a-zA-Z]+)\}/g;function format$3(e,...t){return t.length===1&&isObject$2(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(RE_ARGS$1,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const makeSymbol=(e,t=!1)=>t?Symbol.for(e):Symbol(e),generateFormatCacheKey=(e,t,n)=>friendlyJSONstringify({l:e,k:t,s:n}),friendlyJSONstringify=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),isNumber=e=>typeof e=="number"&&isFinite(e),isDate=e=>toTypeString(e)==="[object Date]",isRegExp=e=>toTypeString(e)==="[object RegExp]",isEmptyObject=e=>isPlainObject(e)&&Object.keys(e).length===0,assign$2=Object.assign;let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function escapeHtml(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const hasOwnProperty=Object.prototype.hasOwnProperty;function hasOwn(e,t){return hasOwnProperty.call(e,t)}const isArray=Array.isArray,isFunction=e=>typeof e=="function",isString$1=e=>typeof e=="string",isBoolean=e=>typeof e=="boolean",isObject$2=e=>e!==null&&typeof e=="object",isPromise$2=e=>isObject$2(e)&&isFunction(e.then)&&isFunction(e.catch),objectToString=Object.prototype.toString,toTypeString=e=>objectToString.call(e),isPlainObject=e=>{if(!isObject$2(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},toDisplayString=e=>e==null?"":isArray(e)||isPlainObject(e)&&e.toString===objectToString?JSON.stringify(e,null,2):String(e);function join$1(e,t=""){return e.reduce((n,r,i)=>i===0?n+r:n+t+r,"")}const RANGE=2;function generateCodeFrame(e,t=0,n=e.length){const r=e.split(/\r?\n/);let i=0;const o=[];for(let a=0;a<r.length;a++)if(i+=r[a].length+1,i>=t){for(let s=a-RANGE;s<=a+RANGE||n>i;s++){if(s<0||s>=r.length)continue;const l=s+1;o.push(`${l}${" ".repeat(3-String(l).length)}| ${r[s]}`);const u=r[s].length;if(s===a){const c=t-(i-u)+1,d=Math.max(1,n>i?u-c:n-t);o.push(" | "+" ".repeat(c)+"^".repeat(d))}else if(s>a){if(n>i){const c=Math.max(Math.min(n-i,u),1);o.push(" | "+"^".repeat(c))}i+=u+1}}break}return o.join(`
6
6
  `)}function incrementer(e){let t=e;return()=>++t}function warn(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const hasWarned={};function warnOnce(e){hasWarned[e]||(hasWarned[e]=!0,warn(e))}function createEmitter(){const e=new Map;return{events:e,on(n,r){const i=e.get(n);i&&i.push(r)||e.set(n,[r])},off(n,r){const i=e.get(n);i&&i.splice(i.indexOf(r)>>>0,1)},emit(n,r){(e.get(n)||[]).slice().map(i=>i(r)),(e.get("*")||[]).slice().map(i=>i(n,r))}}}const isNotObjectOrIsArray=e=>!isObject$2(e)||isArray(e);function deepCopy(e,t){if(isNotObjectOrIsArray(e)||isNotObjectOrIsArray(t))throw new Error("Invalid value");for(const n in e)hasOwn(e,n)&&(isNotObjectOrIsArray(e[n])||isNotObjectOrIsArray(t[n])?t[n]=e[n]:deepCopy(e[n],t[n]))}/*!
7
- * message-compiler v9.7.1
7
+ * message-compiler v9.8.0
8
8
  * (c) 2023 kazuya kawaguchi
9
9
  * Released under the MIT License.
10
- */function createPosition(e,t,n){return{line:e,column:t,offset:n}}function createLocation(e,t,n){const r={start:e,end:t};return n!=null&&(r.source=n),r}const RE_ARGS=/\{([0-9a-zA-Z]+)\}/g;function format$2(e,...t){return t.length===1&&isObject$1(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(RE_ARGS,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const assign=Object.assign,isString=e=>typeof e=="string",isObject$1=e=>e!==null&&typeof e=="object";function join(e,t=""){return e.reduce((n,r,i)=>i===0?n+r:n+t+r,"")}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(e,t,n={}){const{domain:r,messages:i,args:o}=n,a=format$2((i||errorMessages$2)[e]||"",...o||[]),s=new SyntaxError(String(a));return s.code=e,t&&(s.location=t),s.domain=r,s}function defaultOnError(e){throw e}const RE_HTML_TAG=/<\/?[\w\s="/.':;#-\/]+>/,detectHtmlTag=e=>RE_HTML_TAG.test(e),CHAR_SP=" ",CHAR_CR="\r",CHAR_LF=`
11
- `,CHAR_LS=String.fromCharCode(8232),CHAR_PS=String.fromCharCode(8233);function createScanner(e){const t=e;let n=0,r=1,i=1,o=0;const a=y=>t[y]===CHAR_CR&&t[y+1]===CHAR_LF,s=y=>t[y]===CHAR_LF,l=y=>t[y]===CHAR_PS,u=y=>t[y]===CHAR_LS,c=y=>a(y)||s(y)||l(y)||u(y),d=()=>n,f=()=>r,h=()=>i,p=()=>o,g=y=>a(y)||l(y)||u(y)?CHAR_LF:t[y],C=()=>g(n),v=()=>g(n+o);function m(){return o=0,c(n)&&(r++,i=0),a(n)&&n++,n++,i++,t[n]}function _(){return a(n+o)&&o++,o++,t[n+o]}function E(){n=0,r=1,i=1,o=0}function x(y=0){o=y}function w(){const y=n+o;for(;y!==n;)m();o=0}return{index:d,line:f,column:h,peekOffset:p,charAt:g,currentChar:C,currentPeek:v,next:m,peek:_,reset:E,resetPeek:x,skipToPeek:w}}const EOF=void 0,DOT=".",LITERAL_DELIMITER="'",ERROR_DOMAIN$3="tokenizer";function createTokenizer(e,t={}){const n=t.location!==!1,r=createScanner(e),i=()=>r.index(),o=()=>createPosition(r.line(),r.column(),r.index()),a=o(),s=i(),l={currentType:14,offset:s,startLoc:a,endLoc:a,lastType:14,lastOffset:s,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=t;function d(S,b,I,...k){const B=u();if(b.column+=I,b.offset+=I,c){const F=n?createLocation(B.startLoc,b):null,X=createCompileError(S,F,{domain:ERROR_DOMAIN$3,args:k});c(X)}}function f(S,b,I){S.endLoc=o(),S.currentType=b;const k={type:b};return n&&(k.loc=createLocation(S.startLoc,S.endLoc)),I!=null&&(k.value=I),k}const h=S=>f(S,14);function p(S,b){return S.currentChar()===b?(S.next(),b):(d(CompileErrorCodes.EXPECTED_TOKEN,o(),0,b),"")}function g(S){let b="";for(;S.currentPeek()===CHAR_SP||S.currentPeek()===CHAR_LF;)b+=S.currentPeek(),S.peek();return b}function C(S){const b=g(S);return S.skipToPeek(),b}function v(S){if(S===EOF)return!1;const b=S.charCodeAt(0);return b>=97&&b<=122||b>=65&&b<=90||b===95}function m(S){if(S===EOF)return!1;const b=S.charCodeAt(0);return b>=48&&b<=57}function _(S,b){const{currentType:I}=b;if(I!==2)return!1;g(S);const k=v(S.currentPeek());return S.resetPeek(),k}function E(S,b){const{currentType:I}=b;if(I!==2)return!1;g(S);const k=S.currentPeek()==="-"?S.peek():S.currentPeek(),B=m(k);return S.resetPeek(),B}function x(S,b){const{currentType:I}=b;if(I!==2)return!1;g(S);const k=S.currentPeek()===LITERAL_DELIMITER;return S.resetPeek(),k}function w(S,b){const{currentType:I}=b;if(I!==8)return!1;g(S);const k=S.currentPeek()===".";return S.resetPeek(),k}function y(S,b){const{currentType:I}=b;if(I!==9)return!1;g(S);const k=v(S.currentPeek());return S.resetPeek(),k}function N(S,b){const{currentType:I}=b;if(!(I===8||I===12))return!1;g(S);const k=S.currentPeek()===":";return S.resetPeek(),k}function V(S,b){const{currentType:I}=b;if(I!==10)return!1;const k=()=>{const F=S.currentPeek();return F==="{"?v(S.peek()):F==="@"||F==="%"||F==="|"||F===":"||F==="."||F===CHAR_SP||!F?!1:F===CHAR_LF?(S.peek(),k()):v(F)},B=k();return S.resetPeek(),B}function D(S){g(S);const b=S.currentPeek()==="|";return S.resetPeek(),b}function R(S){const b=g(S),I=S.currentPeek()==="%"&&S.peek()==="{";return S.resetPeek(),{isModulo:I,hasSpace:b.length>0}}function O(S,b=!0){const I=(B=!1,F="",X=!1)=>{const Y=S.currentPeek();return Y==="{"?F==="%"?!1:B:Y==="@"||!Y?F==="%"?!0:B:Y==="%"?(S.peek(),I(B,"%",!0)):Y==="|"?F==="%"||X?!0:!(F===CHAR_SP||F===CHAR_LF):Y===CHAR_SP?(S.peek(),I(!0,CHAR_SP,X)):Y===CHAR_LF?(S.peek(),I(!0,CHAR_LF,X)):!0},k=I();return b&&S.resetPeek(),k}function P(S,b){const I=S.currentChar();return I===EOF?EOF:b(I)?(S.next(),I):null}function L(S){return P(S,I=>{const k=I.charCodeAt(0);return k>=97&&k<=122||k>=65&&k<=90||k>=48&&k<=57||k===95||k===36})}function W(S){return P(S,I=>{const k=I.charCodeAt(0);return k>=48&&k<=57})}function U(S){return P(S,I=>{const k=I.charCodeAt(0);return k>=48&&k<=57||k>=65&&k<=70||k>=97&&k<=102})}function G(S){let b="",I="";for(;b=W(S);)I+=b;return I}function j(S){C(S);const b=S.currentChar();return b!=="%"&&d(CompileErrorCodes.EXPECTED_TOKEN,o(),0,b),S.next(),"%"}function K(S){let b="";for(;;){const I=S.currentChar();if(I==="{"||I==="}"||I==="@"||I==="|"||!I)break;if(I==="%")if(O(S))b+=I,S.next();else break;else if(I===CHAR_SP||I===CHAR_LF)if(O(S))b+=I,S.next();else{if(D(S))break;b+=I,S.next()}else b+=I,S.next()}return b}function z(S){C(S);let b="",I="";for(;b=L(S);)I+=b;return S.currentChar()===EOF&&d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,o(),0),I}function q(S){C(S);let b="";return S.currentChar()==="-"?(S.next(),b+=`-${G(S)}`):b+=G(S),S.currentChar()===EOF&&d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,o(),0),b}function Z(S){C(S),p(S,"'");let b="",I="";const k=F=>F!==LITERAL_DELIMITER&&F!==CHAR_LF;for(;b=P(S,k);)b==="\\"?I+=ae(S):I+=b;const B=S.currentChar();return B===CHAR_LF||B===EOF?(d(CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),B===CHAR_LF&&(S.next(),p(S,"'")),I):(p(S,"'"),I)}function ae(S){const b=S.currentChar();switch(b){case"\\":case"'":return S.next(),`\\${b}`;case"u":return ie(S,b,4);case"U":return ie(S,b,6);default:return d(CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE,o(),0,b),""}}function ie(S,b,I){p(S,b);let k="";for(let B=0;B<I;B++){const F=U(S);if(!F){d(CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${b}${k}${S.currentChar()}`);break}k+=F}return`\\${b}${k}`}function se(S){C(S);let b="",I="";const k=B=>B!=="{"&&B!=="}"&&B!==CHAR_SP&&B!==CHAR_LF;for(;b=P(S,k);)I+=b;return I}function ce(S){let b="",I="";for(;b=L(S);)I+=b;return I}function le(S){const b=(I=!1,k)=>{const B=S.currentChar();return B==="{"||B==="%"||B==="@"||B==="|"||B==="("||B===")"||!B||B===CHAR_SP?k:B===CHAR_LF||B===DOT?(k+=B,S.next(),b(I,k)):(k+=B,S.next(),b(!0,k))};return b(!1,"")}function Q(S){C(S);const b=p(S,"|");return C(S),b}function ee(S,b){let I=null;switch(S.currentChar()){case"{":return b.braceNest>=1&&d(CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),S.next(),I=f(b,2,"{"),C(S),b.braceNest++,I;case"}":return b.braceNest>0&&b.currentType===2&&d(CompileErrorCodes.EMPTY_PLACEHOLDER,o(),0),S.next(),I=f(b,3,"}"),b.braceNest--,b.braceNest>0&&C(S),b.inLinked&&b.braceNest===0&&(b.inLinked=!1),I;case"@":return b.braceNest>0&&d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,o(),0),I=J(S,b)||h(b),b.braceNest=0,I;default:let B=!0,F=!0,X=!0;if(D(S))return b.braceNest>0&&d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,o(),0),I=f(b,1,Q(S)),b.braceNest=0,b.inLinked=!1,I;if(b.braceNest>0&&(b.currentType===5||b.currentType===6||b.currentType===7))return d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,o(),0),b.braceNest=0,te(S,b);if(B=_(S,b))return I=f(b,5,z(S)),C(S),I;if(F=E(S,b))return I=f(b,6,q(S)),C(S),I;if(X=x(S,b))return I=f(b,7,Z(S)),C(S),I;if(!B&&!F&&!X)return I=f(b,13,se(S)),d(CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,I.value),C(S),I;break}return I}function J(S,b){const{currentType:I}=b;let k=null;const B=S.currentChar();switch((I===8||I===9||I===12||I===10)&&(B===CHAR_LF||B===CHAR_SP)&&d(CompileErrorCodes.INVALID_LINKED_FORMAT,o(),0),B){case"@":return S.next(),k=f(b,8,"@"),b.inLinked=!0,k;case".":return C(S),S.next(),f(b,9,".");case":":return C(S),S.next(),f(b,10,":");default:return D(S)?(k=f(b,1,Q(S)),b.braceNest=0,b.inLinked=!1,k):w(S,b)||N(S,b)?(C(S),J(S,b)):y(S,b)?(C(S),f(b,12,ce(S))):V(S,b)?(C(S),B==="{"?ee(S,b)||k:f(b,11,le(S))):(I===8&&d(CompileErrorCodes.INVALID_LINKED_FORMAT,o(),0),b.braceNest=0,b.inLinked=!1,te(S,b))}}function te(S,b){let I={type:14};if(b.braceNest>0)return ee(S,b)||h(b);if(b.inLinked)return J(S,b)||h(b);switch(S.currentChar()){case"{":return ee(S,b)||h(b);case"}":return d(CompileErrorCodes.UNBALANCED_CLOSING_BRACE,o(),0),S.next(),f(b,3,"}");case"@":return J(S,b)||h(b);default:if(D(S))return I=f(b,1,Q(S)),b.braceNest=0,b.inLinked=!1,I;const{isModulo:B,hasSpace:F}=R(S);if(B)return F?f(b,0,K(S)):f(b,4,j(S));if(O(S))return f(b,0,K(S));break}return I}function ue(){const{currentType:S,offset:b,startLoc:I,endLoc:k}=l;return l.lastType=S,l.lastOffset=b,l.lastStartLoc=I,l.lastEndLoc=k,l.offset=i(),l.startLoc=o(),r.currentChar()===EOF?f(l,14):te(r,l)}return{nextToken:ue,currentOffset:i,currentPosition:o,context:u}}const ERROR_DOMAIN$2="parser",KNOWN_ESCAPES=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function fromEscapeSequence(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function createParser(e={}){const t=e.location!==!1,{onError:n}=e;function r(v,m,_,E,...x){const w=v.currentPosition();if(w.offset+=E,w.column+=E,n){const y=t?createLocation(_,w):null,N=createCompileError(m,y,{domain:ERROR_DOMAIN$2,args:x});n(N)}}function i(v,m,_){const E={type:v};return t&&(E.start=m,E.end=m,E.loc={start:_,end:_}),E}function o(v,m,_,E){E&&(v.type=E),t&&(v.end=m,v.loc&&(v.loc.end=_))}function a(v,m){const _=v.context(),E=i(3,_.offset,_.startLoc);return E.value=m,o(E,v.currentOffset(),v.currentPosition()),E}function s(v,m){const _=v.context(),{lastOffset:E,lastStartLoc:x}=_,w=i(5,E,x);return w.index=parseInt(m,10),v.nextToken(),o(w,v.currentOffset(),v.currentPosition()),w}function l(v,m){const _=v.context(),{lastOffset:E,lastStartLoc:x}=_,w=i(4,E,x);return w.key=m,v.nextToken(),o(w,v.currentOffset(),v.currentPosition()),w}function u(v,m){const _=v.context(),{lastOffset:E,lastStartLoc:x}=_,w=i(9,E,x);return w.value=m.replace(KNOWN_ESCAPES,fromEscapeSequence),v.nextToken(),o(w,v.currentOffset(),v.currentPosition()),w}function c(v){const m=v.nextToken(),_=v.context(),{lastOffset:E,lastStartLoc:x}=_,w=i(8,E,x);return m.type!==12?(r(v,CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER,_.lastStartLoc,0),w.value="",o(w,E,x),{nextConsumeToken:m,node:w}):(m.value==null&&r(v,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,getTokenCaption(m)),w.value=m.value||"",o(w,v.currentOffset(),v.currentPosition()),{node:w})}function d(v,m){const _=v.context(),E=i(7,_.offset,_.startLoc);return E.value=m,o(E,v.currentOffset(),v.currentPosition()),E}function f(v){const m=v.context(),_=i(6,m.offset,m.startLoc);let E=v.nextToken();if(E.type===9){const x=c(v);_.modifier=x.node,E=x.nextConsumeToken||v.nextToken()}switch(E.type!==10&&r(v,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,getTokenCaption(E)),E=v.nextToken(),E.type===2&&(E=v.nextToken()),E.type){case 11:E.value==null&&r(v,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,getTokenCaption(E)),_.key=d(v,E.value||"");break;case 5:E.value==null&&r(v,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,getTokenCaption(E)),_.key=l(v,E.value||"");break;case 6:E.value==null&&r(v,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,getTokenCaption(E)),_.key=s(v,E.value||"");break;case 7:E.value==null&&r(v,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,getTokenCaption(E)),_.key=u(v,E.value||"");break;default:r(v,CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY,m.lastStartLoc,0);const x=v.context(),w=i(7,x.offset,x.startLoc);return w.value="",o(w,x.offset,x.startLoc),_.key=w,o(_,x.offset,x.startLoc),{nextConsumeToken:E,node:_}}return o(_,v.currentOffset(),v.currentPosition()),{node:_}}function h(v){const m=v.context(),_=m.currentType===1?v.currentOffset():m.offset,E=m.currentType===1?m.endLoc:m.startLoc,x=i(2,_,E);x.items=[];let w=null;do{const V=w||v.nextToken();switch(w=null,V.type){case 0:V.value==null&&r(v,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,getTokenCaption(V)),x.items.push(a(v,V.value||""));break;case 6:V.value==null&&r(v,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,getTokenCaption(V)),x.items.push(s(v,V.value||""));break;case 5:V.value==null&&r(v,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,getTokenCaption(V)),x.items.push(l(v,V.value||""));break;case 7:V.value==null&&r(v,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,getTokenCaption(V)),x.items.push(u(v,V.value||""));break;case 8:const D=f(v);x.items.push(D.node),w=D.nextConsumeToken||null;break}}while(m.currentType!==14&&m.currentType!==1);const y=m.currentType===1?m.lastOffset:v.currentOffset(),N=m.currentType===1?m.lastEndLoc:v.currentPosition();return o(x,y,N),x}function p(v,m,_,E){const x=v.context();let w=E.items.length===0;const y=i(1,m,_);y.cases=[],y.cases.push(E);do{const N=h(v);w||(w=N.items.length===0),y.cases.push(N)}while(x.currentType!==14);return w&&r(v,CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL,_,0),o(y,v.currentOffset(),v.currentPosition()),y}function g(v){const m=v.context(),{offset:_,startLoc:E}=m,x=h(v);return m.currentType===14?x:p(v,_,E,x)}function C(v){const m=createTokenizer(v,assign({},e)),_=m.context(),E=i(0,_.offset,_.startLoc);return t&&E.loc&&(E.loc.source=v),E.body=g(m),e.onCacheKey&&(E.cacheKey=e.onCacheKey(v)),_.currentType!==14&&r(m,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,v[_.offset]||""),o(E,m.currentOffset(),m.currentPosition()),E}return{parse:C}}function getTokenCaption(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function createTransformer(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function traverseNodes(e,t){for(let n=0;n<e.length;n++)traverseNode(e[n],t)}function traverseNode(e,t){switch(e.type){case 1:traverseNodes(e.cases,t),t.helper("plural");break;case 2:traverseNodes(e.items,t);break;case 6:traverseNode(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function transform(e,t={}){const n=createTransformer(e);n.helper("normalize"),e.body&&traverseNode(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function optimize(e){const t=e.body;return t.type===2?optimizeMessageNode(t):t.cases.forEach(n=>optimizeMessageNode(n)),e}function optimizeMessageNode(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=join(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const ERROR_DOMAIN$1="minifier";function minify(e){switch(e.t=e.type,e.type){case 0:const t=e;minify(t.body),t.b=t.body,delete t.body;break;case 1:const n=e,r=n.cases;for(let c=0;c<r.length;c++)minify(r[c]);n.c=r,delete n.cases;break;case 2:const i=e,o=i.items;for(let c=0;c<o.length;c++)minify(o[c]);i.i=o,delete i.items,i.static&&(i.s=i.static,delete i.static);break;case 3:case 9:case 8:case 7:const a=e;a.value&&(a.v=a.value,delete a.value);break;case 6:const s=e;minify(s.key),s.k=s.key,delete s.key,s.modifier&&(minify(s.modifier),s.m=s.modifier,delete s.modifier);break;case 5:const l=e;l.i=l.index,delete l.index;break;case 4:const u=e;u.k=u.key,delete u.key;break;default:throw createCompileError(CompileErrorCodes.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:ERROR_DOMAIN$1,args:[e.type]})}delete e.type}const ERROR_DOMAIN="parser";function createCodeGenerator(e,t){const{sourceMap:n,filename:r,breakLineCode:i,needIndent:o}=t,a=t.location!==!1,s={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:o,indentLevel:0};a&&e.loc&&(s.source=e.loc.source);const l=()=>s;function u(C,v){s.code+=C}function c(C,v=!0){const m=v?i:"";u(o?m+" ".repeat(C):m)}function d(C=!0){const v=++s.indentLevel;C&&c(v)}function f(C=!0){const v=--s.indentLevel;C&&c(v)}function h(){c(s.indentLevel)}return{context:l,push:u,indent:d,deindent:f,newline:h,helper:C=>`_${C}`,needIndent:()=>s.needIndent}}function generateLinkedNode(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),generateNode(e,t.key),t.modifier?(e.push(", "),generateNode(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function generateMessageNode(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const i=t.items.length;for(let o=0;o<i&&(generateNode(e,t.items[o]),o!==i-1);o++)e.push(", ");e.deindent(r()),e.push("])")}function generatePluralNode(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const i=t.cases.length;for(let o=0;o<i&&(generateNode(e,t.cases[o]),o!==i-1);o++)e.push(", ");e.deindent(r()),e.push("])")}}function generateResource(e,t){t.body?generateNode(e,t.body):e.push("null")}function generateNode(e,t){const{helper:n}=e;switch(t.type){case 0:generateResource(e,t);break;case 1:generatePluralNode(e,t);break;case 2:generateMessageNode(e,t);break;case 6:generateLinkedNode(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw createCompileError(CompileErrorCodes.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:ERROR_DOMAIN,args:[t.type]})}}const generate=(e,t={})=>{const n=isString(t.mode)?t.mode:"normal",r=isString(t.filename)?t.filename:"message.intl",i=!!t.sourceMap,o=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
12
- `,a=t.needIndent?t.needIndent:n!=="arrow",s=e.helpers||[],l=createCodeGenerator(e,{mode:n,filename:r,sourceMap:i,breakLineCode:o,needIndent:a});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(a),s.length>0&&(l.push(`const { ${join(s.map(d=>`${d}: _${d}`),", ")} } = ctx`),l.newline()),l.push("return "),generateNode(l,e),l.deindent(a),l.push("}"),delete e.helpers;const{code:u,map:c}=l.context();return{ast:e,code:u,map:c?c.toJSON():void 0}};function baseCompile$1(e,t={}){const n=assign({},t),r=!!n.jit,i=!!n.minify,o=n.optimize==null?!0:n.optimize,s=createParser(n).parse(e);return r?(o&&optimize(s),i&&minify(s),{ast:s,code:""}):(transform(s,n),generate(s,n))}/*!
13
- * core-base v9.7.1
10
+ */function createPosition(e,t,n){return{line:e,column:t,offset:n}}function createLocation(e,t,n){const r={start:e,end:t};return n!=null&&(r.source=n),r}const RE_ARGS=/\{([0-9a-zA-Z]+)\}/g;function format$2(e,...t){return t.length===1&&isObject$1(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(RE_ARGS,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const assign$1=Object.assign,isString=e=>typeof e=="string",isObject$1=e=>e!==null&&typeof e=="object";function join(e,t=""){return e.reduce((n,r,i)=>i===0?n+r:n+t+r,"")}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(e,t,n={}){const{domain:r,messages:i,args:o}=n,a=format$2((i||errorMessages$2)[e]||"",...o||[]),s=new SyntaxError(String(a));return s.code=e,t&&(s.location=t),s.domain=r,s}function defaultOnError(e){throw e}const RE_HTML_TAG=/<\/?[\w\s="/.':;#-\/]+>/,detectHtmlTag=e=>RE_HTML_TAG.test(e),CHAR_SP=" ",CHAR_CR="\r",CHAR_LF=`
11
+ `,CHAR_LS=String.fromCharCode(8232),CHAR_PS=String.fromCharCode(8233);function createScanner(e){const t=e;let n=0,r=1,i=1,o=0;const a=y=>t[y]===CHAR_CR&&t[y+1]===CHAR_LF,s=y=>t[y]===CHAR_LF,l=y=>t[y]===CHAR_PS,u=y=>t[y]===CHAR_LS,c=y=>a(y)||s(y)||l(y)||u(y),d=()=>n,f=()=>r,h=()=>i,p=()=>o,g=y=>a(y)||l(y)||u(y)?CHAR_LF:t[y],C=()=>g(n),v=()=>g(n+o);function m(){return o=0,c(n)&&(r++,i=0),a(n)&&n++,n++,i++,t[n]}function _(){return a(n+o)&&o++,o++,t[n+o]}function E(){n=0,r=1,i=1,o=0}function x(y=0){o=y}function w(){const y=n+o;for(;y!==n;)m();o=0}return{index:d,line:f,column:h,peekOffset:p,charAt:g,currentChar:C,currentPeek:v,next:m,peek:_,reset:E,resetPeek:x,skipToPeek:w}}const EOF=void 0,DOT=".",LITERAL_DELIMITER="'",ERROR_DOMAIN$3="tokenizer";function createTokenizer(e,t={}){const n=t.location!==!1,r=createScanner(e),i=()=>r.index(),o=()=>createPosition(r.line(),r.column(),r.index()),a=o(),s=i(),l={currentType:14,offset:s,startLoc:a,endLoc:a,lastType:14,lastOffset:s,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=t;function d(S,b,I,...k){const B=u();if(b.column+=I,b.offset+=I,c){const F=n?createLocation(B.startLoc,b):null,X=createCompileError(S,F,{domain:ERROR_DOMAIN$3,args:k});c(X)}}function f(S,b,I){S.endLoc=o(),S.currentType=b;const k={type:b};return n&&(k.loc=createLocation(S.startLoc,S.endLoc)),I!=null&&(k.value=I),k}const h=S=>f(S,14);function p(S,b){return S.currentChar()===b?(S.next(),b):(d(CompileErrorCodes.EXPECTED_TOKEN,o(),0,b),"")}function g(S){let b="";for(;S.currentPeek()===CHAR_SP||S.currentPeek()===CHAR_LF;)b+=S.currentPeek(),S.peek();return b}function C(S){const b=g(S);return S.skipToPeek(),b}function v(S){if(S===EOF)return!1;const b=S.charCodeAt(0);return b>=97&&b<=122||b>=65&&b<=90||b===95}function m(S){if(S===EOF)return!1;const b=S.charCodeAt(0);return b>=48&&b<=57}function _(S,b){const{currentType:I}=b;if(I!==2)return!1;g(S);const k=v(S.currentPeek());return S.resetPeek(),k}function E(S,b){const{currentType:I}=b;if(I!==2)return!1;g(S);const k=S.currentPeek()==="-"?S.peek():S.currentPeek(),B=m(k);return S.resetPeek(),B}function x(S,b){const{currentType:I}=b;if(I!==2)return!1;g(S);const k=S.currentPeek()===LITERAL_DELIMITER;return S.resetPeek(),k}function w(S,b){const{currentType:I}=b;if(I!==8)return!1;g(S);const k=S.currentPeek()===".";return S.resetPeek(),k}function y(S,b){const{currentType:I}=b;if(I!==9)return!1;g(S);const k=v(S.currentPeek());return S.resetPeek(),k}function N(S,b){const{currentType:I}=b;if(!(I===8||I===12))return!1;g(S);const k=S.currentPeek()===":";return S.resetPeek(),k}function V(S,b){const{currentType:I}=b;if(I!==10)return!1;const k=()=>{const F=S.currentPeek();return F==="{"?v(S.peek()):F==="@"||F==="%"||F==="|"||F===":"||F==="."||F===CHAR_SP||!F?!1:F===CHAR_LF?(S.peek(),k()):v(F)},B=k();return S.resetPeek(),B}function D(S){g(S);const b=S.currentPeek()==="|";return S.resetPeek(),b}function R(S){const b=g(S),I=S.currentPeek()==="%"&&S.peek()==="{";return S.resetPeek(),{isModulo:I,hasSpace:b.length>0}}function O(S,b=!0){const I=(B=!1,F="",X=!1)=>{const Y=S.currentPeek();return Y==="{"?F==="%"?!1:B:Y==="@"||!Y?F==="%"?!0:B:Y==="%"?(S.peek(),I(B,"%",!0)):Y==="|"?F==="%"||X?!0:!(F===CHAR_SP||F===CHAR_LF):Y===CHAR_SP?(S.peek(),I(!0,CHAR_SP,X)):Y===CHAR_LF?(S.peek(),I(!0,CHAR_LF,X)):!0},k=I();return b&&S.resetPeek(),k}function P(S,b){const I=S.currentChar();return I===EOF?EOF:b(I)?(S.next(),I):null}function L(S){return P(S,I=>{const k=I.charCodeAt(0);return k>=97&&k<=122||k>=65&&k<=90||k>=48&&k<=57||k===95||k===36})}function W(S){return P(S,I=>{const k=I.charCodeAt(0);return k>=48&&k<=57})}function U(S){return P(S,I=>{const k=I.charCodeAt(0);return k>=48&&k<=57||k>=65&&k<=70||k>=97&&k<=102})}function G(S){let b="",I="";for(;b=W(S);)I+=b;return I}function j(S){C(S);const b=S.currentChar();return b!=="%"&&d(CompileErrorCodes.EXPECTED_TOKEN,o(),0,b),S.next(),"%"}function K(S){let b="";for(;;){const I=S.currentChar();if(I==="{"||I==="}"||I==="@"||I==="|"||!I)break;if(I==="%")if(O(S))b+=I,S.next();else break;else if(I===CHAR_SP||I===CHAR_LF)if(O(S))b+=I,S.next();else{if(D(S))break;b+=I,S.next()}else b+=I,S.next()}return b}function z(S){C(S);let b="",I="";for(;b=L(S);)I+=b;return S.currentChar()===EOF&&d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,o(),0),I}function q(S){C(S);let b="";return S.currentChar()==="-"?(S.next(),b+=`-${G(S)}`):b+=G(S),S.currentChar()===EOF&&d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,o(),0),b}function Z(S){C(S),p(S,"'");let b="",I="";const k=F=>F!==LITERAL_DELIMITER&&F!==CHAR_LF;for(;b=P(S,k);)b==="\\"?I+=ae(S):I+=b;const B=S.currentChar();return B===CHAR_LF||B===EOF?(d(CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),B===CHAR_LF&&(S.next(),p(S,"'")),I):(p(S,"'"),I)}function ae(S){const b=S.currentChar();switch(b){case"\\":case"'":return S.next(),`\\${b}`;case"u":return ie(S,b,4);case"U":return ie(S,b,6);default:return d(CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE,o(),0,b),""}}function ie(S,b,I){p(S,b);let k="";for(let B=0;B<I;B++){const F=U(S);if(!F){d(CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${b}${k}${S.currentChar()}`);break}k+=F}return`\\${b}${k}`}function se(S){C(S);let b="",I="";const k=B=>B!=="{"&&B!=="}"&&B!==CHAR_SP&&B!==CHAR_LF;for(;b=P(S,k);)I+=b;return I}function ce(S){let b="",I="";for(;b=L(S);)I+=b;return I}function le(S){const b=(I=!1,k)=>{const B=S.currentChar();return B==="{"||B==="%"||B==="@"||B==="|"||B==="("||B===")"||!B||B===CHAR_SP?k:B===CHAR_LF||B===DOT?(k+=B,S.next(),b(I,k)):(k+=B,S.next(),b(!0,k))};return b(!1,"")}function Q(S){C(S);const b=p(S,"|");return C(S),b}function ee(S,b){let I=null;switch(S.currentChar()){case"{":return b.braceNest>=1&&d(CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),S.next(),I=f(b,2,"{"),C(S),b.braceNest++,I;case"}":return b.braceNest>0&&b.currentType===2&&d(CompileErrorCodes.EMPTY_PLACEHOLDER,o(),0),S.next(),I=f(b,3,"}"),b.braceNest--,b.braceNest>0&&C(S),b.inLinked&&b.braceNest===0&&(b.inLinked=!1),I;case"@":return b.braceNest>0&&d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,o(),0),I=J(S,b)||h(b),b.braceNest=0,I;default:let B=!0,F=!0,X=!0;if(D(S))return b.braceNest>0&&d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,o(),0),I=f(b,1,Q(S)),b.braceNest=0,b.inLinked=!1,I;if(b.braceNest>0&&(b.currentType===5||b.currentType===6||b.currentType===7))return d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,o(),0),b.braceNest=0,te(S,b);if(B=_(S,b))return I=f(b,5,z(S)),C(S),I;if(F=E(S,b))return I=f(b,6,q(S)),C(S),I;if(X=x(S,b))return I=f(b,7,Z(S)),C(S),I;if(!B&&!F&&!X)return I=f(b,13,se(S)),d(CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,I.value),C(S),I;break}return I}function J(S,b){const{currentType:I}=b;let k=null;const B=S.currentChar();switch((I===8||I===9||I===12||I===10)&&(B===CHAR_LF||B===CHAR_SP)&&d(CompileErrorCodes.INVALID_LINKED_FORMAT,o(),0),B){case"@":return S.next(),k=f(b,8,"@"),b.inLinked=!0,k;case".":return C(S),S.next(),f(b,9,".");case":":return C(S),S.next(),f(b,10,":");default:return D(S)?(k=f(b,1,Q(S)),b.braceNest=0,b.inLinked=!1,k):w(S,b)||N(S,b)?(C(S),J(S,b)):y(S,b)?(C(S),f(b,12,ce(S))):V(S,b)?(C(S),B==="{"?ee(S,b)||k:f(b,11,le(S))):(I===8&&d(CompileErrorCodes.INVALID_LINKED_FORMAT,o(),0),b.braceNest=0,b.inLinked=!1,te(S,b))}}function te(S,b){let I={type:14};if(b.braceNest>0)return ee(S,b)||h(b);if(b.inLinked)return J(S,b)||h(b);switch(S.currentChar()){case"{":return ee(S,b)||h(b);case"}":return d(CompileErrorCodes.UNBALANCED_CLOSING_BRACE,o(),0),S.next(),f(b,3,"}");case"@":return J(S,b)||h(b);default:if(D(S))return I=f(b,1,Q(S)),b.braceNest=0,b.inLinked=!1,I;const{isModulo:B,hasSpace:F}=R(S);if(B)return F?f(b,0,K(S)):f(b,4,j(S));if(O(S))return f(b,0,K(S));break}return I}function ue(){const{currentType:S,offset:b,startLoc:I,endLoc:k}=l;return l.lastType=S,l.lastOffset=b,l.lastStartLoc=I,l.lastEndLoc=k,l.offset=i(),l.startLoc=o(),r.currentChar()===EOF?f(l,14):te(r,l)}return{nextToken:ue,currentOffset:i,currentPosition:o,context:u}}const ERROR_DOMAIN$2="parser",KNOWN_ESCAPES=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function fromEscapeSequence(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function createParser(e={}){const t=e.location!==!1,{onError:n}=e;function r(v,m,_,E,...x){const w=v.currentPosition();if(w.offset+=E,w.column+=E,n){const y=t?createLocation(_,w):null,N=createCompileError(m,y,{domain:ERROR_DOMAIN$2,args:x});n(N)}}function i(v,m,_){const E={type:v};return t&&(E.start=m,E.end=m,E.loc={start:_,end:_}),E}function o(v,m,_,E){E&&(v.type=E),t&&(v.end=m,v.loc&&(v.loc.end=_))}function a(v,m){const _=v.context(),E=i(3,_.offset,_.startLoc);return E.value=m,o(E,v.currentOffset(),v.currentPosition()),E}function s(v,m){const _=v.context(),{lastOffset:E,lastStartLoc:x}=_,w=i(5,E,x);return w.index=parseInt(m,10),v.nextToken(),o(w,v.currentOffset(),v.currentPosition()),w}function l(v,m){const _=v.context(),{lastOffset:E,lastStartLoc:x}=_,w=i(4,E,x);return w.key=m,v.nextToken(),o(w,v.currentOffset(),v.currentPosition()),w}function u(v,m){const _=v.context(),{lastOffset:E,lastStartLoc:x}=_,w=i(9,E,x);return w.value=m.replace(KNOWN_ESCAPES,fromEscapeSequence),v.nextToken(),o(w,v.currentOffset(),v.currentPosition()),w}function c(v){const m=v.nextToken(),_=v.context(),{lastOffset:E,lastStartLoc:x}=_,w=i(8,E,x);return m.type!==12?(r(v,CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER,_.lastStartLoc,0),w.value="",o(w,E,x),{nextConsumeToken:m,node:w}):(m.value==null&&r(v,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,getTokenCaption(m)),w.value=m.value||"",o(w,v.currentOffset(),v.currentPosition()),{node:w})}function d(v,m){const _=v.context(),E=i(7,_.offset,_.startLoc);return E.value=m,o(E,v.currentOffset(),v.currentPosition()),E}function f(v){const m=v.context(),_=i(6,m.offset,m.startLoc);let E=v.nextToken();if(E.type===9){const x=c(v);_.modifier=x.node,E=x.nextConsumeToken||v.nextToken()}switch(E.type!==10&&r(v,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,getTokenCaption(E)),E=v.nextToken(),E.type===2&&(E=v.nextToken()),E.type){case 11:E.value==null&&r(v,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,getTokenCaption(E)),_.key=d(v,E.value||"");break;case 5:E.value==null&&r(v,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,getTokenCaption(E)),_.key=l(v,E.value||"");break;case 6:E.value==null&&r(v,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,getTokenCaption(E)),_.key=s(v,E.value||"");break;case 7:E.value==null&&r(v,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,getTokenCaption(E)),_.key=u(v,E.value||"");break;default:r(v,CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY,m.lastStartLoc,0);const x=v.context(),w=i(7,x.offset,x.startLoc);return w.value="",o(w,x.offset,x.startLoc),_.key=w,o(_,x.offset,x.startLoc),{nextConsumeToken:E,node:_}}return o(_,v.currentOffset(),v.currentPosition()),{node:_}}function h(v){const m=v.context(),_=m.currentType===1?v.currentOffset():m.offset,E=m.currentType===1?m.endLoc:m.startLoc,x=i(2,_,E);x.items=[];let w=null;do{const V=w||v.nextToken();switch(w=null,V.type){case 0:V.value==null&&r(v,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,getTokenCaption(V)),x.items.push(a(v,V.value||""));break;case 6:V.value==null&&r(v,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,getTokenCaption(V)),x.items.push(s(v,V.value||""));break;case 5:V.value==null&&r(v,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,getTokenCaption(V)),x.items.push(l(v,V.value||""));break;case 7:V.value==null&&r(v,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,getTokenCaption(V)),x.items.push(u(v,V.value||""));break;case 8:const D=f(v);x.items.push(D.node),w=D.nextConsumeToken||null;break}}while(m.currentType!==14&&m.currentType!==1);const y=m.currentType===1?m.lastOffset:v.currentOffset(),N=m.currentType===1?m.lastEndLoc:v.currentPosition();return o(x,y,N),x}function p(v,m,_,E){const x=v.context();let w=E.items.length===0;const y=i(1,m,_);y.cases=[],y.cases.push(E);do{const N=h(v);w||(w=N.items.length===0),y.cases.push(N)}while(x.currentType!==14);return w&&r(v,CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL,_,0),o(y,v.currentOffset(),v.currentPosition()),y}function g(v){const m=v.context(),{offset:_,startLoc:E}=m,x=h(v);return m.currentType===14?x:p(v,_,E,x)}function C(v){const m=createTokenizer(v,assign$1({},e)),_=m.context(),E=i(0,_.offset,_.startLoc);return t&&E.loc&&(E.loc.source=v),E.body=g(m),e.onCacheKey&&(E.cacheKey=e.onCacheKey(v)),_.currentType!==14&&r(m,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,v[_.offset]||""),o(E,m.currentOffset(),m.currentPosition()),E}return{parse:C}}function getTokenCaption(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function createTransformer(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function traverseNodes(e,t){for(let n=0;n<e.length;n++)traverseNode(e[n],t)}function traverseNode(e,t){switch(e.type){case 1:traverseNodes(e.cases,t),t.helper("plural");break;case 2:traverseNodes(e.items,t);break;case 6:traverseNode(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function transform(e,t={}){const n=createTransformer(e);n.helper("normalize"),e.body&&traverseNode(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function optimize(e){const t=e.body;return t.type===2?optimizeMessageNode(t):t.cases.forEach(n=>optimizeMessageNode(n)),e}function optimizeMessageNode(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=join(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const ERROR_DOMAIN$1="minifier";function minify(e){switch(e.t=e.type,e.type){case 0:const t=e;minify(t.body),t.b=t.body,delete t.body;break;case 1:const n=e,r=n.cases;for(let c=0;c<r.length;c++)minify(r[c]);n.c=r,delete n.cases;break;case 2:const i=e,o=i.items;for(let c=0;c<o.length;c++)minify(o[c]);i.i=o,delete i.items,i.static&&(i.s=i.static,delete i.static);break;case 3:case 9:case 8:case 7:const a=e;a.value&&(a.v=a.value,delete a.value);break;case 6:const s=e;minify(s.key),s.k=s.key,delete s.key,s.modifier&&(minify(s.modifier),s.m=s.modifier,delete s.modifier);break;case 5:const l=e;l.i=l.index,delete l.index;break;case 4:const u=e;u.k=u.key,delete u.key;break;default:throw createCompileError(CompileErrorCodes.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:ERROR_DOMAIN$1,args:[e.type]})}delete e.type}const ERROR_DOMAIN="parser";function createCodeGenerator(e,t){const{sourceMap:n,filename:r,breakLineCode:i,needIndent:o}=t,a=t.location!==!1,s={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:o,indentLevel:0};a&&e.loc&&(s.source=e.loc.source);const l=()=>s;function u(C,v){s.code+=C}function c(C,v=!0){const m=v?i:"";u(o?m+" ".repeat(C):m)}function d(C=!0){const v=++s.indentLevel;C&&c(v)}function f(C=!0){const v=--s.indentLevel;C&&c(v)}function h(){c(s.indentLevel)}return{context:l,push:u,indent:d,deindent:f,newline:h,helper:C=>`_${C}`,needIndent:()=>s.needIndent}}function generateLinkedNode(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),generateNode(e,t.key),t.modifier?(e.push(", "),generateNode(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function generateMessageNode(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const i=t.items.length;for(let o=0;o<i&&(generateNode(e,t.items[o]),o!==i-1);o++)e.push(", ");e.deindent(r()),e.push("])")}function generatePluralNode(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const i=t.cases.length;for(let o=0;o<i&&(generateNode(e,t.cases[o]),o!==i-1);o++)e.push(", ");e.deindent(r()),e.push("])")}}function generateResource(e,t){t.body?generateNode(e,t.body):e.push("null")}function generateNode(e,t){const{helper:n}=e;switch(t.type){case 0:generateResource(e,t);break;case 1:generatePluralNode(e,t);break;case 2:generateMessageNode(e,t);break;case 6:generateLinkedNode(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw createCompileError(CompileErrorCodes.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:ERROR_DOMAIN,args:[t.type]})}}const generate=(e,t={})=>{const n=isString(t.mode)?t.mode:"normal",r=isString(t.filename)?t.filename:"message.intl",i=!!t.sourceMap,o=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
12
+ `,a=t.needIndent?t.needIndent:n!=="arrow",s=e.helpers||[],l=createCodeGenerator(e,{mode:n,filename:r,sourceMap:i,breakLineCode:o,needIndent:a});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(a),s.length>0&&(l.push(`const { ${join(s.map(d=>`${d}: _${d}`),", ")} } = ctx`),l.newline()),l.push("return "),generateNode(l,e),l.deindent(a),l.push("}"),delete e.helpers;const{code:u,map:c}=l.context();return{ast:e,code:u,map:c?c.toJSON():void 0}};function baseCompile$1(e,t={}){const n=assign$1({},t),r=!!n.jit,i=!!n.minify,o=n.optimize==null?!0:n.optimize,s=createParser(n).parse(e);return r?(o&&optimize(s),i&&minify(s),{ast:s,code:""}):(transform(s,n),generate(s,n))}/*!
13
+ * core-base v9.8.0
14
14
  * (c) 2023 kazuya kawaguchi
15
15
  * Released under the MIT License.
16
- */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)}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(e){return literalValueRE.test(e)}function stripQuotes(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function getPathCharType(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function formatSubPath(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:isLiteral(t)?stripQuotes(t):"*"+t}function parse(e){const t=[];let n=-1,r=0,i=0,o,a,s,l,u,c,d;const f=[];f[0]=()=>{a===void 0?a=s:a+=s},f[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},f[2]=()=>{f[0](),i++},f[3]=()=>{if(i>0)i--,r=4,f[0]();else{if(i=0,a===void 0||(a=formatSubPath(a),a===!1))return!1;f[1]()}};function h(){const p=e[n+1];if(r===5&&p==="'"||r===6&&p==='"')return n++,s="\\"+p,f[0](),!0}for(;r!==null;)if(n++,o=e[n],!(o==="\\"&&h())){if(l=getPathCharType(o),d=pathStateMachine[r],u=d[l]||d.l||8,u===8||(r=u[0],u[1]!==void 0&&(c=f[u[1]],c&&(s=o,c()===!1))))return;if(r===7)return t}}const cache=new Map;function resolveWithKeyValue(e,t){return isObject$2(e)?e[t]:null}function resolveValue(e,t){if(!isObject$2(e))return null;let n=cache.get(t);if(n||(n=parse(t),n&&cache.set(t,n)),!n)return null;const r=n.length;let i=e,o=0;for(;o<r;){const a=i[n[o]];if(a===void 0||isFunction(i))return null;i=a,o++}return i}const DEFAULT_MODIFIER=e=>e,DEFAULT_MESSAGE=e=>"",DEFAULT_MESSAGE_DATA_TYPE="text",DEFAULT_NORMALIZE=e=>e.length===0?"":join$1(e),DEFAULT_INTERPOLATE=toDisplayString;function pluralDefault(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function getPluralIndex(e){const t=isNumber(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(isNumber(e.named.count)||isNumber(e.named.n))?isNumber(e.named.count)?e.named.count:isNumber(e.named.n)?e.named.n:t:t}function normalizeNamed(e,t){t.count||(t.count=e),t.n||(t.n=e)}function createMessageContext(e={}){const t=e.locale,n=getPluralIndex(e),r=isObject$2(e.pluralRules)&&isString$1(t)&&isFunction(e.pluralRules[t])?e.pluralRules[t]:pluralDefault,i=isObject$2(e.pluralRules)&&isString$1(t)&&isFunction(e.pluralRules[t])?pluralDefault:void 0,o=v=>v[r(n,v.length,i)],a=e.list||[],s=v=>a[v],l=e.named||{};isNumber(e.pluralIndex)&&normalizeNamed(n,l);const u=v=>l[v];function c(v){const m=isFunction(e.messages)?e.messages(v):isObject$2(e.messages)?e.messages[v]:!1;return m||(e.parent?e.parent.message(v):DEFAULT_MESSAGE)}const d=v=>e.modifiers?e.modifiers[v]:DEFAULT_MODIFIER,f=isPlainObject(e.processor)&&isFunction(e.processor.normalize)?e.processor.normalize:DEFAULT_NORMALIZE,h=isPlainObject(e.processor)&&isFunction(e.processor.interpolate)?e.processor.interpolate:DEFAULT_INTERPOLATE,p=isPlainObject(e.processor)&&isString$1(e.processor.type)?e.processor.type:DEFAULT_MESSAGE_DATA_TYPE,C={list:s,named:u,plural:o,linked:(v,...m)=>{const[_,E]=m;let x="text",w="";m.length===1?isObject$2(_)?(w=_.modifier||w,x=_.type||x):isString$1(_)&&(w=_||w):m.length===2&&(isString$1(_)&&(w=_||w),isString$1(E)&&(x=E||x));const y=c(v)(C),N=x==="vnode"&&isArray(y)&&w?y[0]:y;return w?d(w)(N,x):N},message:c,type:p,interpolate:h,normalize:f,values:assign$1({},a,l)};return C}let devtools=null;function setDevToolsHook(e){devtools=e}function initI18nDevTools(e,t,n){devtools&&devtools.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const translateDevTools=createDevToolsHook("function:translate");function createDevToolsHook(e){return t=>devtools&&devtools.emit(e,t)}const CoreWarnCodes={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8},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(e,...t){return format$3(warnMessages$1[e],...t)}function getLocale(e,t){return t.locale!=null?resolveLocale(t.locale):resolveLocale(e.locale)}let _resolveLocale;function resolveLocale(e){return isString$1(e)?e:_resolveLocale!=null&&e.resolvedOnce?_resolveLocale:_resolveLocale=e()}function fallbackWithSimple(e,t,n){return[...new Set([n,...isArray(t)?t:isObject$2(t)?Object.keys(t):isString$1(t)?[t]:[n]])]}function fallbackWithLocaleChain(e,t,n){const r=isString$1(n)?n:DEFAULT_LOCALE,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let o=i.__localeChainCache.get(r);if(!o){o=[];let a=[n];for(;isArray(a);)a=appendBlockToChain(o,a,t);const s=isArray(t)||!isPlainObject(t)?t:t.default?t.default:null;a=isString$1(s)?[s]:s,isArray(a)&&appendBlockToChain(o,a,!1),i.__localeChainCache.set(r,o)}return o}function appendBlockToChain(e,t,n){let r=!0;for(let i=0;i<t.length&&isBoolean(r);i++){const o=t[i];isString$1(o)&&(r=appendLocaleToChain(e,t[i],n))}return r}function appendLocaleToChain(e,t,n){let r;const i=t.split("-");do{const o=i.join("-");r=appendItemToChain(e,o,n),i.splice(-1,1)}while(i.length&&r===!0);return r}function appendItemToChain(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const i=t.replace(/!/g,"");e.push(i),(isArray(n)||isPlainObject(n))&&n[i]&&(r=n[i])}return r}const VERSION$1="9.7.1",NOT_REOSLVED=-1,DEFAULT_LOCALE="en-US",MISSING_RESOLVE_VALUE="",capitalize=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function getDefaultLinkedModifiers(){return{upper:(e,t)=>t==="text"&&isString$1(e)?e.toUpperCase():t==="vnode"&&isObject$2(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&isString$1(e)?e.toLowerCase():t==="vnode"&&isObject$2(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&isString$1(e)?capitalize(e):t==="vnode"&&isObject$2(e)&&"__v_isVNode"in e?capitalize(e.children):e}}let _compiler;function registerMessageCompiler(e){_compiler=e}let _resolver;function registerMessageResolver(e){_resolver=e}let _fallbacker;function registerLocaleFallbacker(e){_fallbacker=e}let _additionalMeta=null;const setAdditionalMeta=e=>{_additionalMeta=e},getAdditionalMeta=()=>_additionalMeta;let _fallbackContext=null;const setFallbackContext=e=>{_fallbackContext=e},getFallbackContext=()=>_fallbackContext;let _cid=0;function createCoreContext(e={}){const t=isFunction(e.onWarn)?e.onWarn:warn,n=isString$1(e.version)?e.version:VERSION$1,r=isString$1(e.locale)||isFunction(e.locale)?e.locale:DEFAULT_LOCALE,i=isFunction(r)?DEFAULT_LOCALE:r,o=isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||isString$1(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,a=isPlainObject(e.messages)?e.messages:{[i]:{}},s=isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[i]:{}},l=isPlainObject(e.numberFormats)?e.numberFormats:{[i]:{}},u=assign$1({},e.modifiers||{},getDefaultLinkedModifiers()),c=e.pluralRules||{},d=isFunction(e.missing)?e.missing:null,f=isBoolean(e.missingWarn)||isRegExp(e.missingWarn)?e.missingWarn:!0,h=isBoolean(e.fallbackWarn)||isRegExp(e.fallbackWarn)?e.fallbackWarn:!0,p=!!e.fallbackFormat,g=!!e.unresolving,C=isFunction(e.postTranslation)?e.postTranslation:null,v=isPlainObject(e.processor)?e.processor:null,m=isBoolean(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter,E=isFunction(e.messageCompiler)?e.messageCompiler:_compiler;process.env.NODE_ENV!=="production"&&isFunction(e.messageCompiler)&&warnOnce(getWarnMessage$1(CoreWarnCodes.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const x=isFunction(e.messageResolver)?e.messageResolver:_resolver||resolveWithKeyValue,w=isFunction(e.localeFallbacker)?e.localeFallbacker:_fallbacker||fallbackWithSimple,y=isObject$2(e.fallbackContext)?e.fallbackContext:void 0,N=e,V=isObject$2(N.__datetimeFormatters)?N.__datetimeFormatters:new Map,D=isObject$2(N.__numberFormatters)?N.__numberFormatters:new Map,R=isObject$2(N.__meta)?N.__meta:{};_cid++;const O={version:n,cid:_cid,locale:r,fallbackLocale:o,messages:a,modifiers:u,pluralRules:c,missing:d,missingWarn:f,fallbackWarn:h,fallbackFormat:p,unresolving:g,postTranslation:C,processor:v,warnHtmlMessage:m,escapeParameter:_,messageCompiler:E,messageResolver:x,localeFallbacker:w,fallbackContext:y,onWarn:t,__meta:R};return O.datetimeFormats=s,O.numberFormats=l,O.__datetimeFormatters=V,O.__numberFormatters=D,process.env.NODE_ENV!=="production"&&(O.__v_emitter=N.__v_emitter!=null?N.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&initI18nDevTools(O,n,R),O}function isTranslateFallbackWarn(e,t){return e instanceof RegExp?e.test(t):e}function isTranslateMissingWarn(e,t){return e instanceof RegExp?e.test(t):e}function handleMissing(e,t,n,r,i){const{missing:o,onWarn:a}=e;if(process.env.NODE_ENV!=="production"){const s=e.__v_emitter;s&&s.emit("missing",{locale:n,key:t,type:i,groupId:`${i}:${t}`})}if(o!==null){const s=o(e,n,t,i);return isString$1(s)?s:t}else return process.env.NODE_ENV!=="production"&&isTranslateMissingWarn(r,t)&&a(getWarnMessage$1(CoreWarnCodes.NOT_FOUND_KEY,{key:t,locale:n})),t}function updateFallbackLocale(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function format$1(e){return n=>formatParts(n,e)}function formatParts(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const r=n,i=r.c||r.cases;return e.plural(i.reduce((o,a)=>[...o,formatMessageParts(e,a)],[]))}else return formatMessageParts(e,n)}function formatMessageParts(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const r=(t.i||t.items).reduce((i,o)=>[...i,formatMessagePart(e,o)],[]);return e.normalize(r)}}function formatMessagePart(e,t){const n=t.t||t.type;switch(n){case 3:const r=t;return r.v||r.value;case 9:const i=t;return i.v||i.value;case 4:const o=t;return e.interpolate(e.named(o.k||o.key));case 5:const a=t;return e.interpolate(e.list(a.i!=null?a.i:a.index));case 6:const s=t,l=s.m||s.modifier;return e.linked(formatMessagePart(e,s.k||s.key),l?formatMessagePart(e,l):void 0,e.type);case 7:const u=t;return u.v||u.value;case 8:const c=t;return c.v||c.value;default:throw new Error(`unhandled node type on format message part: ${n}`)}}const code$2=CompileErrorCodes.__EXTEND_POINT__,inc$2=incrementer(code$2),CoreErrorCodes={INVALID_ARGUMENT:code$2,INVALID_DATE_ARGUMENT:inc$2(),INVALID_ISO_DATE_ARGUMENT:inc$2(),NOT_SUPPORT_NON_STRING_MESSAGE:inc$2(),__EXTEND_POINT__:inc$2()};function createCoreError(e){return createCompileError(e,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"},WARN_MESSAGE="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function checkHtmlMessage(e,t){t&&detectHtmlTag(e)&&warn(format$3(WARN_MESSAGE,{source:e}))}const defaultOnCacheKey=e=>e;let compileCache=Object.create(null);const isMessageAST=e=>isObject$2(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function baseCompile(e,t={}){let n=!1;const r=t.onError||defaultOnError;return t.onError=i=>{n=!0,r(i)},{...baseCompile$1(e,t),detectError:n}}const compileToFunction=(e,t)=>{if(!isString$1(e))throw createCoreError(CoreErrorCodes.NOT_SUPPORT_NON_STRING_MESSAGE);{const n=isBoolean(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&checkHtmlMessage(e,n);const i=(t.onCacheKey||defaultOnCacheKey)(e),o=compileCache[i];if(o)return o;const{code:a,detectError:s}=baseCompile(e,t),l=new Function(`return ${a}`)();return s?l:compileCache[i]=l}};function compile(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&isString$1(e)){const n=isBoolean(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&checkHtmlMessage(e,n);const i=(t.onCacheKey||defaultOnCacheKey)(e),o=compileCache[i];if(o)return o;const{ast:a,detectError:s}=baseCompile(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),l=format$1(a);return s?l:compileCache[i]=l}else{if(process.env.NODE_ENV!=="production"&&!isMessageAST(e))return warn(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),()=>e;const n=e.cacheKey;if(n){const r=compileCache[n];return r||(compileCache[n]=format$1(e))}else return format$1(e)}}const NOOP_MESSAGE_FUNCTION=()=>"",isMessageFunction=e=>isFunction(e);function translate(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:o,fallbackLocale:a,messages:s}=e,[l,u]=parseTranslateArgs(...t),c=isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn,d=isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,f=isBoolean(u.escapeParameter)?u.escapeParameter:e.escapeParameter,h=!!u.resolvedMessage,p=isString$1(u.default)||isBoolean(u.default)?isBoolean(u.default)?o?l:()=>l:u.default:n?o?l:()=>l:"",g=n||p!=="",C=getLocale(e,u);f&&escapeParams(u);let[v,m,_]=h?[l,C,s[C]||{}]:resolveMessageFormat(e,l,C,a,d,c),E=v,x=l;if(!h&&!(isString$1(E)||isMessageAST(E)||isMessageFunction(E))&&g&&(E=p,x=E),!h&&(!(isString$1(E)||isMessageAST(E)||isMessageFunction(E))||!isString$1(m)))return i?NOT_REOSLVED:l;if(process.env.NODE_ENV!=="production"&&isString$1(E)&&e.messageCompiler==null)return warn(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${l}'.`),l;let w=!1;const y=()=>{w=!0},N=isMessageFunction(E)?E:compileMessageFormat(e,l,m,E,x,y);if(w)return E;const V=getMessageContextOptions(e,m,_,u),D=createMessageContext(V),R=evaluateMessage(e,N,D),O=r?r(R,l):R;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const P={timestamp:Date.now(),key:isString$1(l)?l:isMessageFunction(E)?E.key:"",locale:m||(isMessageFunction(E)?E.locale:""),format:isString$1(E)?E:isMessageFunction(E)?E.source:"",message:O};P.meta=assign$1({},e.__meta,getAdditionalMeta()||{}),translateDevTools(P)}return O}function escapeParams(e){isArray(e.list)?e.list=e.list.map(t=>isString$1(t)?escapeHtml(t):t):isObject$2(e.named)&&Object.keys(e.named).forEach(t=>{isString$1(e.named[t])&&(e.named[t]=escapeHtml(e.named[t]))})}function resolveMessageFormat(e,t,n,r,i,o){const{messages:a,onWarn:s,messageResolver:l,localeFallbacker:u}=e,c=u(e,r,n);let d={},f,h=null,p=n,g=null;const C="translate";for(let v=0;v<c.length;v++){if(f=g=c[v],process.env.NODE_ENV!=="production"&&n!==f&&isTranslateFallbackWarn(i,t)&&s(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_TRANSLATE,{key:t,target:f})),process.env.NODE_ENV!=="production"&&n!==f){const w=e.__v_emitter;w&&w.emit("fallback",{type:C,key:t,from:p,to:g,groupId:`${C}:${t}`})}d=a[f]||{};let m=null,_,E;if(process.env.NODE_ENV!=="production"&&inBrowser&&(m=window.performance.now(),_="intlify-message-resolve-start",E="intlify-message-resolve-end",mark&&mark(_)),(h=l(d,t))===null&&(h=d[t]),process.env.NODE_ENV!=="production"&&inBrowser){const w=window.performance.now(),y=e.__v_emitter;y&&m&&h&&y.emit("message-resolve",{type:"message-resolve",key:t,message:h,time:w-m,groupId:`${C}:${t}`}),_&&E&&mark&&measure&&(mark(E),measure("intlify message resolve",_,E))}if(isString$1(h)||isMessageAST(h)||isMessageFunction(h))break;const x=handleMissing(e,t,f,o,C);x!==t&&(h=x),p=g}return[h,f,d]}function compileMessageFormat(e,t,n,r,i,o){const{messageCompiler:a,warnHtmlMessage:s}=e;if(isMessageFunction(r)){const f=r;return f.locale=f.locale||n,f.key=f.key||t,f}if(a==null){const f=()=>r;return f.locale=n,f.key=t,f}let l=null,u,c;process.env.NODE_ENV!=="production"&&inBrowser&&(l=window.performance.now(),u="intlify-message-compilation-start",c="intlify-message-compilation-end",mark&&mark(u));const d=a(r,getCompileContext(e,n,i,r,s,o));if(process.env.NODE_ENV!=="production"&&inBrowser){const f=window.performance.now(),h=e.__v_emitter;h&&l&&h.emit("message-compilation",{type:"message-compilation",message:r,time:f-l,groupId:`translate:${t}`}),u&&c&&mark&&measure&&(mark(c),measure("intlify message compilation",u,c))}return d.locale=n,d.key=t,d.source=r,d}function evaluateMessage(e,t,n){let r=null,i,o;process.env.NODE_ENV!=="production"&&inBrowser&&(r=window.performance.now(),i="intlify-message-evaluation-start",o="intlify-message-evaluation-end",mark&&mark(i));const a=t(n);if(process.env.NODE_ENV!=="production"&&inBrowser){const s=window.performance.now(),l=e.__v_emitter;l&&r&&l.emit("message-evaluation",{type:"message-evaluation",value:a,time:s-r,groupId:`translate:${t.key}`}),i&&o&&mark&&measure&&(mark(o),measure("intlify message evaluation",i,o))}return a}function parseTranslateArgs(...e){const[t,n,r]=e,i={};if(!isString$1(t)&&!isNumber(t)&&!isMessageFunction(t)&&!isMessageAST(t))throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);const o=isNumber(t)?String(t):(isMessageFunction(t),t);return isNumber(n)?i.plural=n:isString$1(n)?i.default=n:isPlainObject(n)&&!isEmptyObject(n)?i.named=n:isArray(n)&&(i.list=n),isNumber(r)?i.plural=r:isString$1(r)?i.default=r:isPlainObject(r)&&assign$1(i,r),[o,i]}function getCompileContext(e,t,n,r,i,o){return{locale:t,key:n,warnHtmlMessage:i,onError:a=>{if(o&&o(a),process.env.NODE_ENV!=="production"){const s=getSourceForCodeFrame(r),l=`Message compilation error: ${a.message}`,u=a.location&&s&&generateCodeFrame(s,a.location.start.offset,a.location.end.offset),c=e.__v_emitter;c&&s&&c.emit("compile-error",{message:s,error:a.message,start:a.location&&a.location.start.offset,end:a.location&&a.location.end.offset,groupId:`translate:${n}`}),console.error(u?`${l}
17
- ${u}`:l)}else throw a},onCacheKey:a=>generateFormatCacheKey(t,n,a)}}function getSourceForCodeFrame(e){if(isString$1(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function getMessageContextOptions(e,t,n,r){const{modifiers:i,pluralRules:o,messageResolver:a,fallbackLocale:s,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,f={locale:t,modifiers:i,pluralRules:o,messages:h=>{let p=a(n,h);if(p==null&&c){const[,,g]=resolveMessageFormat(c,h,t,s,l,u);p=a(g,h)}if(isString$1(p)||isMessageAST(p)){let g=!1;const v=compileMessageFormat(e,h,t,p,h,()=>{g=!0});return g?NOOP_MESSAGE_FUNCTION:v}else return isMessageFunction(p)?p:NOOP_MESSAGE_FUNCTION}};return e.processor&&(f.processor=e.processor),r.list&&(f.list=r.list),r.named&&(f.named=r.named),isNumber(r.plural)&&(f.pluralIndex=r.plural),f}const intlDefined=typeof Intl<"u",Availabilities={dateTimeFormat:intlDefined&&typeof Intl.DateTimeFormat<"u",numberFormat:intlDefined&&typeof Intl.NumberFormat<"u"};function datetime(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:a}=e,{__datetimeFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!Availabilities.dateTimeFormat)return o(getWarnMessage$1(CoreWarnCodes.CANNOT_FORMAT_DATE)),MISSING_RESOLVE_VALUE;const[l,u,c,d]=parseDateTimeArgs(...t),f=isBoolean(c.missingWarn)?c.missingWarn:e.missingWarn,h=isBoolean(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,p=!!c.part,g=getLocale(e,c),C=a(e,i,g);if(!isString$1(l)||l==="")return new Intl.DateTimeFormat(g,d).format(u);let v={},m,_=null,E=g,x=null;const w="datetime format";for(let V=0;V<C.length;V++){if(m=x=C[V],process.env.NODE_ENV!=="production"&&g!==m&&isTranslateFallbackWarn(h,l)&&o(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_DATE_FORMAT,{key:l,target:m})),process.env.NODE_ENV!=="production"&&g!==m){const D=e.__v_emitter;D&&D.emit("fallback",{type:w,key:l,from:E,to:x,groupId:`${w}:${l}`})}if(v=n[m]||{},_=v[l],isPlainObject(_))break;handleMissing(e,l,m,f,w),E=x}if(!isPlainObject(_)||!isString$1(m))return r?NOT_REOSLVED:l;let y=`${m}__${l}`;isEmptyObject(d)||(y=`${y}__${JSON.stringify(d)}`);let N=s.get(y);return N||(N=new Intl.DateTimeFormat(m,assign$1({},_,d)),s.set(y,N)),p?N.formatToParts(u):N.format(u)}const DATETIME_FORMAT_OPTIONS_KEYS=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function parseDateTimeArgs(...e){const[t,n,r,i]=e,o={};let a={},s;if(isString$1(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);const u=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();s=new Date(u);try{s.toISOString()}catch{throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT)}}else if(isDate(t)){if(isNaN(t.getTime()))throw createCoreError(CoreErrorCodes.INVALID_DATE_ARGUMENT);s=t}else if(isNumber(t))s=t;else throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);return isString$1(n)?o.key=n:isPlainObject(n)&&Object.keys(n).forEach(l=>{DATETIME_FORMAT_OPTIONS_KEYS.includes(l)?a[l]=n[l]:o[l]=n[l]}),isString$1(r)?o.locale=r:isPlainObject(r)&&(a=r),isPlainObject(i)&&(a=i),[o.key||"",s,o,a]}function clearDateTimeFormat(e,t,n){const r=e;for(const i in n){const o=`${t}__${i}`;r.__datetimeFormatters.has(o)&&r.__datetimeFormatters.delete(o)}}function number$1(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:a}=e,{__numberFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!Availabilities.numberFormat)return o(getWarnMessage$1(CoreWarnCodes.CANNOT_FORMAT_NUMBER)),MISSING_RESOLVE_VALUE;const[l,u,c,d]=parseNumberArgs(...t),f=isBoolean(c.missingWarn)?c.missingWarn:e.missingWarn,h=isBoolean(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,p=!!c.part,g=getLocale(e,c),C=a(e,i,g);if(!isString$1(l)||l==="")return new Intl.NumberFormat(g,d).format(u);let v={},m,_=null,E=g,x=null;const w="number format";for(let V=0;V<C.length;V++){if(m=x=C[V],process.env.NODE_ENV!=="production"&&g!==m&&isTranslateFallbackWarn(h,l)&&o(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_NUMBER_FORMAT,{key:l,target:m})),process.env.NODE_ENV!=="production"&&g!==m){const D=e.__v_emitter;D&&D.emit("fallback",{type:w,key:l,from:E,to:x,groupId:`${w}:${l}`})}if(v=n[m]||{},_=v[l],isPlainObject(_))break;handleMissing(e,l,m,f,w),E=x}if(!isPlainObject(_)||!isString$1(m))return r?NOT_REOSLVED:l;let y=`${m}__${l}`;isEmptyObject(d)||(y=`${y}__${JSON.stringify(d)}`);let N=s.get(y);return N||(N=new Intl.NumberFormat(m,assign$1({},_,d)),s.set(y,N)),p?N.formatToParts(u):N.format(u)}const NUMBER_FORMAT_OPTIONS_KEYS=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function parseNumberArgs(...e){const[t,n,r,i]=e,o={};let a={};if(!isNumber(t))throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);const s=t;return isString$1(n)?o.key=n:isPlainObject(n)&&Object.keys(n).forEach(l=>{NUMBER_FORMAT_OPTIONS_KEYS.includes(l)?a[l]=n[l]:o[l]=n[l]}),isString$1(r)?o.locale=r:isPlainObject(r)&&(a=r),isPlainObject(i)&&(a=i),[o.key||"",s,o,a]}function clearNumberFormat(e,t,n){const r=e;for(const i in n){const o=`${t}__${i}`;r.__numberFormatters.has(o)&&r.__numberFormatters.delete(o)}}initFeatureFlags$1();function getDevtoolsGlobalHook(){return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__}function getTarget(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const isProxyAvailable=typeof Proxy=="function",HOOK_SETUP="devtools-plugin:setup",HOOK_PLUGIN_SETTINGS_SET="plugin:settings:set";let supported,perf;function isPerformanceSupported(){var e;return supported!==void 0||(typeof window<"u"&&window.performance?(supported=!0,perf=window.performance):typeof global<"u"&&(!((e=global.perf_hooks)===null||e===void 0)&&e.performance)?(supported=!0,perf=global.perf_hooks.performance):supported=!1),supported}function now(){return isPerformanceSupported()?perf.now():Date.now()}class ApiProxy{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const a in t.settings){const s=t.settings[a];r[a]=s.defaultValue}const i=`__vue-devtools-plugin-settings__${t.id}`;let o=Object.assign({},r);try{const a=localStorage.getItem(i),s=JSON.parse(a);Object.assign(o,s)}catch{}this.fallbacks={getSettings(){return o},setSettings(a){try{localStorage.setItem(i,JSON.stringify(a))}catch{}o=a},now(){return now()}},n&&n.on(HOOK_PLUGIN_SETTINGS_SET,(a,s)=>{a===this.plugin.id&&this.fallbacks.setSettings(s)}),this.proxiedOn=new Proxy({},{get:(a,s)=>this.target?this.target.on[s]:(...l)=>{this.onQueue.push({method:s,args:l})}}),this.proxiedTarget=new Proxy({},{get:(a,s)=>this.target?this.target[s]:s==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(s)?(...l)=>(this.targetQueue.push({method:s,args:l,resolve:()=>{}}),this.fallbacks[s](...l)):(...l)=>new Promise(u=>{this.targetQueue.push({method:s,args:l,resolve:u})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function setupDevtoolsPlugin(e,t){const n=e,r=getTarget(),i=getDevtoolsGlobalHook(),o=isProxyAvailable&&n.enableEarlyProxy;if(i&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))i.emit(HOOK_SETUP,e,t);else{const a=o?new ApiProxy(n,i):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:a}),a&&t(a.proxiedTarget)}}/*!
18
- * vue-i18n v9.7.1
16
+ */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)}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(e){return literalValueRE.test(e)}function stripQuotes(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function getPathCharType(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function formatSubPath(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:isLiteral(t)?stripQuotes(t):"*"+t}function parse(e){const t=[];let n=-1,r=0,i=0,o,a,s,l,u,c,d;const f=[];f[0]=()=>{a===void 0?a=s:a+=s},f[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},f[2]=()=>{f[0](),i++},f[3]=()=>{if(i>0)i--,r=4,f[0]();else{if(i=0,a===void 0||(a=formatSubPath(a),a===!1))return!1;f[1]()}};function h(){const p=e[n+1];if(r===5&&p==="'"||r===6&&p==='"')return n++,s="\\"+p,f[0](),!0}for(;r!==null;)if(n++,o=e[n],!(o==="\\"&&h())){if(l=getPathCharType(o),d=pathStateMachine[r],u=d[l]||d.l||8,u===8||(r=u[0],u[1]!==void 0&&(c=f[u[1]],c&&(s=o,c()===!1))))return;if(r===7)return t}}const cache=new Map;function resolveWithKeyValue(e,t){return isObject$2(e)?e[t]:null}function resolveValue(e,t){if(!isObject$2(e))return null;let n=cache.get(t);if(n||(n=parse(t),n&&cache.set(t,n)),!n)return null;const r=n.length;let i=e,o=0;for(;o<r;){const a=i[n[o]];if(a===void 0||isFunction(i))return null;i=a,o++}return i}const DEFAULT_MODIFIER=e=>e,DEFAULT_MESSAGE=e=>"",DEFAULT_MESSAGE_DATA_TYPE="text",DEFAULT_NORMALIZE=e=>e.length===0?"":join$1(e),DEFAULT_INTERPOLATE=toDisplayString;function pluralDefault(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function getPluralIndex(e){const t=isNumber(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(isNumber(e.named.count)||isNumber(e.named.n))?isNumber(e.named.count)?e.named.count:isNumber(e.named.n)?e.named.n:t:t}function normalizeNamed(e,t){t.count||(t.count=e),t.n||(t.n=e)}function createMessageContext(e={}){const t=e.locale,n=getPluralIndex(e),r=isObject$2(e.pluralRules)&&isString$1(t)&&isFunction(e.pluralRules[t])?e.pluralRules[t]:pluralDefault,i=isObject$2(e.pluralRules)&&isString$1(t)&&isFunction(e.pluralRules[t])?pluralDefault:void 0,o=v=>v[r(n,v.length,i)],a=e.list||[],s=v=>a[v],l=e.named||{};isNumber(e.pluralIndex)&&normalizeNamed(n,l);const u=v=>l[v];function c(v){const m=isFunction(e.messages)?e.messages(v):isObject$2(e.messages)?e.messages[v]:!1;return m||(e.parent?e.parent.message(v):DEFAULT_MESSAGE)}const d=v=>e.modifiers?e.modifiers[v]:DEFAULT_MODIFIER,f=isPlainObject(e.processor)&&isFunction(e.processor.normalize)?e.processor.normalize:DEFAULT_NORMALIZE,h=isPlainObject(e.processor)&&isFunction(e.processor.interpolate)?e.processor.interpolate:DEFAULT_INTERPOLATE,p=isPlainObject(e.processor)&&isString$1(e.processor.type)?e.processor.type:DEFAULT_MESSAGE_DATA_TYPE,C={list:s,named:u,plural:o,linked:(v,...m)=>{const[_,E]=m;let x="text",w="";m.length===1?isObject$2(_)?(w=_.modifier||w,x=_.type||x):isString$1(_)&&(w=_||w):m.length===2&&(isString$1(_)&&(w=_||w),isString$1(E)&&(x=E||x));const y=c(v)(C),N=x==="vnode"&&isArray(y)&&w?y[0]:y;return w?d(w)(N,x):N},message:c,type:p,interpolate:h,normalize:f,values:assign$2({},a,l)};return C}let devtools=null;function setDevToolsHook(e){devtools=e}function initI18nDevTools(e,t,n){devtools&&devtools.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const translateDevTools=createDevToolsHook("function:translate");function createDevToolsHook(e){return t=>devtools&&devtools.emit(e,t)}const CoreWarnCodes={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8},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(e,...t){return format$3(warnMessages$1[e],...t)}const code$2=CompileErrorCodes.__EXTEND_POINT__,inc$2=incrementer(code$2),CoreErrorCodes={INVALID_ARGUMENT:code$2,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(e){return createCompileError(e,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(e,t){return t.locale!=null?resolveLocale(t.locale):resolveLocale(e.locale)}let _resolveLocale;function resolveLocale(e){if(isString$1(e))return e;if(isFunction(e)){if(e.resolvedOnce&&_resolveLocale!=null)return _resolveLocale;if(e.constructor.name==="Function"){const t=e();if(isPromise$2(t))throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return _resolveLocale=t}else throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_TYPE)}function fallbackWithSimple(e,t,n){return[...new Set([n,...isArray(t)?t:isObject$2(t)?Object.keys(t):isString$1(t)?[t]:[n]])]}function fallbackWithLocaleChain(e,t,n){const r=isString$1(n)?n:DEFAULT_LOCALE,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let o=i.__localeChainCache.get(r);if(!o){o=[];let a=[n];for(;isArray(a);)a=appendBlockToChain(o,a,t);const s=isArray(t)||!isPlainObject(t)?t:t.default?t.default:null;a=isString$1(s)?[s]:s,isArray(a)&&appendBlockToChain(o,a,!1),i.__localeChainCache.set(r,o)}return o}function appendBlockToChain(e,t,n){let r=!0;for(let i=0;i<t.length&&isBoolean(r);i++){const o=t[i];isString$1(o)&&(r=appendLocaleToChain(e,t[i],n))}return r}function appendLocaleToChain(e,t,n){let r;const i=t.split("-");do{const o=i.join("-");r=appendItemToChain(e,o,n),i.splice(-1,1)}while(i.length&&r===!0);return r}function appendItemToChain(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const i=t.replace(/!/g,"");e.push(i),(isArray(n)||isPlainObject(n))&&n[i]&&(r=n[i])}return r}const VERSION$1="9.8.0",NOT_REOSLVED=-1,DEFAULT_LOCALE="en-US",MISSING_RESOLVE_VALUE="",capitalize=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function getDefaultLinkedModifiers(){return{upper:(e,t)=>t==="text"&&isString$1(e)?e.toUpperCase():t==="vnode"&&isObject$2(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&isString$1(e)?e.toLowerCase():t==="vnode"&&isObject$2(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&isString$1(e)?capitalize(e):t==="vnode"&&isObject$2(e)&&"__v_isVNode"in e?capitalize(e.children):e}}let _compiler;function registerMessageCompiler(e){_compiler=e}let _resolver;function registerMessageResolver(e){_resolver=e}let _fallbacker;function registerLocaleFallbacker(e){_fallbacker=e}let _additionalMeta=null;const setAdditionalMeta=e=>{_additionalMeta=e},getAdditionalMeta=()=>_additionalMeta;let _fallbackContext=null;const setFallbackContext=e=>{_fallbackContext=e},getFallbackContext=()=>_fallbackContext;let _cid=0;function createCoreContext(e={}){const t=isFunction(e.onWarn)?e.onWarn:warn,n=isString$1(e.version)?e.version:VERSION$1,r=isString$1(e.locale)||isFunction(e.locale)?e.locale:DEFAULT_LOCALE,i=isFunction(r)?DEFAULT_LOCALE:r,o=isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||isString$1(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,a=isPlainObject(e.messages)?e.messages:{[i]:{}},s=isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[i]:{}},l=isPlainObject(e.numberFormats)?e.numberFormats:{[i]:{}},u=assign$2({},e.modifiers||{},getDefaultLinkedModifiers()),c=e.pluralRules||{},d=isFunction(e.missing)?e.missing:null,f=isBoolean(e.missingWarn)||isRegExp(e.missingWarn)?e.missingWarn:!0,h=isBoolean(e.fallbackWarn)||isRegExp(e.fallbackWarn)?e.fallbackWarn:!0,p=!!e.fallbackFormat,g=!!e.unresolving,C=isFunction(e.postTranslation)?e.postTranslation:null,v=isPlainObject(e.processor)?e.processor:null,m=isBoolean(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter,E=isFunction(e.messageCompiler)?e.messageCompiler:_compiler;process.env.NODE_ENV!=="production"&&isFunction(e.messageCompiler)&&warnOnce(getWarnMessage$1(CoreWarnCodes.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const x=isFunction(e.messageResolver)?e.messageResolver:_resolver||resolveWithKeyValue,w=isFunction(e.localeFallbacker)?e.localeFallbacker:_fallbacker||fallbackWithSimple,y=isObject$2(e.fallbackContext)?e.fallbackContext:void 0,N=e,V=isObject$2(N.__datetimeFormatters)?N.__datetimeFormatters:new Map,D=isObject$2(N.__numberFormatters)?N.__numberFormatters:new Map,R=isObject$2(N.__meta)?N.__meta:{};_cid++;const O={version:n,cid:_cid,locale:r,fallbackLocale:o,messages:a,modifiers:u,pluralRules:c,missing:d,missingWarn:f,fallbackWarn:h,fallbackFormat:p,unresolving:g,postTranslation:C,processor:v,warnHtmlMessage:m,escapeParameter:_,messageCompiler:E,messageResolver:x,localeFallbacker:w,fallbackContext:y,onWarn:t,__meta:R};return O.datetimeFormats=s,O.numberFormats=l,O.__datetimeFormatters=V,O.__numberFormatters=D,process.env.NODE_ENV!=="production"&&(O.__v_emitter=N.__v_emitter!=null?N.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&initI18nDevTools(O,n,R),O}function isTranslateFallbackWarn(e,t){return e instanceof RegExp?e.test(t):e}function isTranslateMissingWarn(e,t){return e instanceof RegExp?e.test(t):e}function handleMissing(e,t,n,r,i){const{missing:o,onWarn:a}=e;if(process.env.NODE_ENV!=="production"){const s=e.__v_emitter;s&&s.emit("missing",{locale:n,key:t,type:i,groupId:`${i}:${t}`})}if(o!==null){const s=o(e,n,t,i);return isString$1(s)?s:t}else return process.env.NODE_ENV!=="production"&&isTranslateMissingWarn(r,t)&&a(getWarnMessage$1(CoreWarnCodes.NOT_FOUND_KEY,{key:t,locale:n})),t}function updateFallbackLocale(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function format$1(e){return n=>formatParts(n,e)}function formatParts(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const r=n,i=r.c||r.cases;return e.plural(i.reduce((o,a)=>[...o,formatMessageParts(e,a)],[]))}else return formatMessageParts(e,n)}function formatMessageParts(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const r=(t.i||t.items).reduce((i,o)=>[...i,formatMessagePart(e,o)],[]);return e.normalize(r)}}function formatMessagePart(e,t){const n=t.t||t.type;switch(n){case 3:const r=t;return r.v||r.value;case 9:const i=t;return i.v||i.value;case 4:const o=t;return e.interpolate(e.named(o.k||o.key));case 5:const a=t;return e.interpolate(e.list(a.i!=null?a.i:a.index));case 6:const s=t,l=s.m||s.modifier;return e.linked(formatMessagePart(e,s.k||s.key),l?formatMessagePart(e,l):void 0,e.type);case 7:const u=t;return u.v||u.value;case 8:const c=t;return c.v||c.value;default:throw new Error(`unhandled node type on format message part: ${n}`)}}const WARN_MESSAGE="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function checkHtmlMessage(e,t){t&&detectHtmlTag(e)&&warn(format$3(WARN_MESSAGE,{source:e}))}const defaultOnCacheKey=e=>e;let compileCache=Object.create(null);const isMessageAST=e=>isObject$2(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function baseCompile(e,t={}){let n=!1;const r=t.onError||defaultOnError;return t.onError=i=>{n=!0,r(i)},{...baseCompile$1(e,t),detectError:n}}const compileToFunction=(e,t)=>{if(!isString$1(e))throw createCoreError(CoreErrorCodes.NOT_SUPPORT_NON_STRING_MESSAGE);{const n=isBoolean(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&checkHtmlMessage(e,n);const i=(t.onCacheKey||defaultOnCacheKey)(e),o=compileCache[i];if(o)return o;const{code:a,detectError:s}=baseCompile(e,t),l=new Function(`return ${a}`)();return s?l:compileCache[i]=l}};function compile(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&isString$1(e)){const n=isBoolean(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&checkHtmlMessage(e,n);const i=(t.onCacheKey||defaultOnCacheKey)(e),o=compileCache[i];if(o)return o;const{ast:a,detectError:s}=baseCompile(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),l=format$1(a);return s?l:compileCache[i]=l}else{if(process.env.NODE_ENV!=="production"&&!isMessageAST(e))return warn(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),()=>e;const n=e.cacheKey;if(n){const r=compileCache[n];return r||(compileCache[n]=format$1(e))}else return format$1(e)}}const NOOP_MESSAGE_FUNCTION=()=>"",isMessageFunction=e=>isFunction(e);function translate(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:o,fallbackLocale:a,messages:s}=e,[l,u]=parseTranslateArgs(...t),c=isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn,d=isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,f=isBoolean(u.escapeParameter)?u.escapeParameter:e.escapeParameter,h=!!u.resolvedMessage,p=isString$1(u.default)||isBoolean(u.default)?isBoolean(u.default)?o?l:()=>l:u.default:n?o?l:()=>l:"",g=n||p!=="",C=getLocale(e,u);f&&escapeParams(u);let[v,m,_]=h?[l,C,s[C]||{}]:resolveMessageFormat(e,l,C,a,d,c),E=v,x=l;if(!h&&!(isString$1(E)||isMessageAST(E)||isMessageFunction(E))&&g&&(E=p,x=E),!h&&(!(isString$1(E)||isMessageAST(E)||isMessageFunction(E))||!isString$1(m)))return i?NOT_REOSLVED:l;if(process.env.NODE_ENV!=="production"&&isString$1(E)&&e.messageCompiler==null)return warn(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${l}'.`),l;let w=!1;const y=()=>{w=!0},N=isMessageFunction(E)?E:compileMessageFormat(e,l,m,E,x,y);if(w)return E;const V=getMessageContextOptions(e,m,_,u),D=createMessageContext(V),R=evaluateMessage(e,N,D),O=r?r(R,l):R;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const P={timestamp:Date.now(),key:isString$1(l)?l:isMessageFunction(E)?E.key:"",locale:m||(isMessageFunction(E)?E.locale:""),format:isString$1(E)?E:isMessageFunction(E)?E.source:"",message:O};P.meta=assign$2({},e.__meta,getAdditionalMeta()||{}),translateDevTools(P)}return O}function escapeParams(e){isArray(e.list)?e.list=e.list.map(t=>isString$1(t)?escapeHtml(t):t):isObject$2(e.named)&&Object.keys(e.named).forEach(t=>{isString$1(e.named[t])&&(e.named[t]=escapeHtml(e.named[t]))})}function resolveMessageFormat(e,t,n,r,i,o){const{messages:a,onWarn:s,messageResolver:l,localeFallbacker:u}=e,c=u(e,r,n);let d={},f,h=null,p=n,g=null;const C="translate";for(let v=0;v<c.length;v++){if(f=g=c[v],process.env.NODE_ENV!=="production"&&n!==f&&isTranslateFallbackWarn(i,t)&&s(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_TRANSLATE,{key:t,target:f})),process.env.NODE_ENV!=="production"&&n!==f){const w=e.__v_emitter;w&&w.emit("fallback",{type:C,key:t,from:p,to:g,groupId:`${C}:${t}`})}d=a[f]||{};let m=null,_,E;if(process.env.NODE_ENV!=="production"&&inBrowser&&(m=window.performance.now(),_="intlify-message-resolve-start",E="intlify-message-resolve-end",mark&&mark(_)),(h=l(d,t))===null&&(h=d[t]),process.env.NODE_ENV!=="production"&&inBrowser){const w=window.performance.now(),y=e.__v_emitter;y&&m&&h&&y.emit("message-resolve",{type:"message-resolve",key:t,message:h,time:w-m,groupId:`${C}:${t}`}),_&&E&&mark&&measure&&(mark(E),measure("intlify message resolve",_,E))}if(isString$1(h)||isMessageAST(h)||isMessageFunction(h))break;const x=handleMissing(e,t,f,o,C);x!==t&&(h=x),p=g}return[h,f,d]}function compileMessageFormat(e,t,n,r,i,o){const{messageCompiler:a,warnHtmlMessage:s}=e;if(isMessageFunction(r)){const f=r;return f.locale=f.locale||n,f.key=f.key||t,f}if(a==null){const f=()=>r;return f.locale=n,f.key=t,f}let l=null,u,c;process.env.NODE_ENV!=="production"&&inBrowser&&(l=window.performance.now(),u="intlify-message-compilation-start",c="intlify-message-compilation-end",mark&&mark(u));const d=a(r,getCompileContext(e,n,i,r,s,o));if(process.env.NODE_ENV!=="production"&&inBrowser){const f=window.performance.now(),h=e.__v_emitter;h&&l&&h.emit("message-compilation",{type:"message-compilation",message:r,time:f-l,groupId:`translate:${t}`}),u&&c&&mark&&measure&&(mark(c),measure("intlify message compilation",u,c))}return d.locale=n,d.key=t,d.source=r,d}function evaluateMessage(e,t,n){let r=null,i,o;process.env.NODE_ENV!=="production"&&inBrowser&&(r=window.performance.now(),i="intlify-message-evaluation-start",o="intlify-message-evaluation-end",mark&&mark(i));const a=t(n);if(process.env.NODE_ENV!=="production"&&inBrowser){const s=window.performance.now(),l=e.__v_emitter;l&&r&&l.emit("message-evaluation",{type:"message-evaluation",value:a,time:s-r,groupId:`translate:${t.key}`}),i&&o&&mark&&measure&&(mark(o),measure("intlify message evaluation",i,o))}return a}function parseTranslateArgs(...e){const[t,n,r]=e,i={};if(!isString$1(t)&&!isNumber(t)&&!isMessageFunction(t)&&!isMessageAST(t))throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);const o=isNumber(t)?String(t):(isMessageFunction(t),t);return isNumber(n)?i.plural=n:isString$1(n)?i.default=n:isPlainObject(n)&&!isEmptyObject(n)?i.named=n:isArray(n)&&(i.list=n),isNumber(r)?i.plural=r:isString$1(r)?i.default=r:isPlainObject(r)&&assign$2(i,r),[o,i]}function getCompileContext(e,t,n,r,i,o){return{locale:t,key:n,warnHtmlMessage:i,onError:a=>{if(o&&o(a),process.env.NODE_ENV!=="production"){const s=getSourceForCodeFrame(r),l=`Message compilation error: ${a.message}`,u=a.location&&s&&generateCodeFrame(s,a.location.start.offset,a.location.end.offset),c=e.__v_emitter;c&&s&&c.emit("compile-error",{message:s,error:a.message,start:a.location&&a.location.start.offset,end:a.location&&a.location.end.offset,groupId:`translate:${n}`}),console.error(u?`${l}
17
+ ${u}`:l)}else throw a},onCacheKey:a=>generateFormatCacheKey(t,n,a)}}function getSourceForCodeFrame(e){if(isString$1(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function getMessageContextOptions(e,t,n,r){const{modifiers:i,pluralRules:o,messageResolver:a,fallbackLocale:s,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,f={locale:t,modifiers:i,pluralRules:o,messages:h=>{let p=a(n,h);if(p==null&&c){const[,,g]=resolveMessageFormat(c,h,t,s,l,u);p=a(g,h)}if(isString$1(p)||isMessageAST(p)){let g=!1;const v=compileMessageFormat(e,h,t,p,h,()=>{g=!0});return g?NOOP_MESSAGE_FUNCTION:v}else return isMessageFunction(p)?p:NOOP_MESSAGE_FUNCTION}};return e.processor&&(f.processor=e.processor),r.list&&(f.list=r.list),r.named&&(f.named=r.named),isNumber(r.plural)&&(f.pluralIndex=r.plural),f}const intlDefined=typeof Intl<"u",Availabilities={dateTimeFormat:intlDefined&&typeof Intl.DateTimeFormat<"u",numberFormat:intlDefined&&typeof Intl.NumberFormat<"u"};function datetime(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:a}=e,{__datetimeFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!Availabilities.dateTimeFormat)return o(getWarnMessage$1(CoreWarnCodes.CANNOT_FORMAT_DATE)),MISSING_RESOLVE_VALUE;const[l,u,c,d]=parseDateTimeArgs(...t),f=isBoolean(c.missingWarn)?c.missingWarn:e.missingWarn,h=isBoolean(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,p=!!c.part,g=getLocale(e,c),C=a(e,i,g);if(!isString$1(l)||l==="")return new Intl.DateTimeFormat(g,d).format(u);let v={},m,_=null,E=g,x=null;const w="datetime format";for(let V=0;V<C.length;V++){if(m=x=C[V],process.env.NODE_ENV!=="production"&&g!==m&&isTranslateFallbackWarn(h,l)&&o(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_DATE_FORMAT,{key:l,target:m})),process.env.NODE_ENV!=="production"&&g!==m){const D=e.__v_emitter;D&&D.emit("fallback",{type:w,key:l,from:E,to:x,groupId:`${w}:${l}`})}if(v=n[m]||{},_=v[l],isPlainObject(_))break;handleMissing(e,l,m,f,w),E=x}if(!isPlainObject(_)||!isString$1(m))return r?NOT_REOSLVED:l;let y=`${m}__${l}`;isEmptyObject(d)||(y=`${y}__${JSON.stringify(d)}`);let N=s.get(y);return N||(N=new Intl.DateTimeFormat(m,assign$2({},_,d)),s.set(y,N)),p?N.formatToParts(u):N.format(u)}const DATETIME_FORMAT_OPTIONS_KEYS=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function parseDateTimeArgs(...e){const[t,n,r,i]=e,o={};let a={},s;if(isString$1(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);const u=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();s=new Date(u);try{s.toISOString()}catch{throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT)}}else if(isDate(t)){if(isNaN(t.getTime()))throw createCoreError(CoreErrorCodes.INVALID_DATE_ARGUMENT);s=t}else if(isNumber(t))s=t;else throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);return isString$1(n)?o.key=n:isPlainObject(n)&&Object.keys(n).forEach(l=>{DATETIME_FORMAT_OPTIONS_KEYS.includes(l)?a[l]=n[l]:o[l]=n[l]}),isString$1(r)?o.locale=r:isPlainObject(r)&&(a=r),isPlainObject(i)&&(a=i),[o.key||"",s,o,a]}function clearDateTimeFormat(e,t,n){const r=e;for(const i in n){const o=`${t}__${i}`;r.__datetimeFormatters.has(o)&&r.__datetimeFormatters.delete(o)}}function number$1(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:a}=e,{__numberFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!Availabilities.numberFormat)return o(getWarnMessage$1(CoreWarnCodes.CANNOT_FORMAT_NUMBER)),MISSING_RESOLVE_VALUE;const[l,u,c,d]=parseNumberArgs(...t),f=isBoolean(c.missingWarn)?c.missingWarn:e.missingWarn,h=isBoolean(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,p=!!c.part,g=getLocale(e,c),C=a(e,i,g);if(!isString$1(l)||l==="")return new Intl.NumberFormat(g,d).format(u);let v={},m,_=null,E=g,x=null;const w="number format";for(let V=0;V<C.length;V++){if(m=x=C[V],process.env.NODE_ENV!=="production"&&g!==m&&isTranslateFallbackWarn(h,l)&&o(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_NUMBER_FORMAT,{key:l,target:m})),process.env.NODE_ENV!=="production"&&g!==m){const D=e.__v_emitter;D&&D.emit("fallback",{type:w,key:l,from:E,to:x,groupId:`${w}:${l}`})}if(v=n[m]||{},_=v[l],isPlainObject(_))break;handleMissing(e,l,m,f,w),E=x}if(!isPlainObject(_)||!isString$1(m))return r?NOT_REOSLVED:l;let y=`${m}__${l}`;isEmptyObject(d)||(y=`${y}__${JSON.stringify(d)}`);let N=s.get(y);return N||(N=new Intl.NumberFormat(m,assign$2({},_,d)),s.set(y,N)),p?N.formatToParts(u):N.format(u)}const NUMBER_FORMAT_OPTIONS_KEYS=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function parseNumberArgs(...e){const[t,n,r,i]=e,o={};let a={};if(!isNumber(t))throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);const s=t;return isString$1(n)?o.key=n:isPlainObject(n)&&Object.keys(n).forEach(l=>{NUMBER_FORMAT_OPTIONS_KEYS.includes(l)?a[l]=n[l]:o[l]=n[l]}),isString$1(r)?o.locale=r:isPlainObject(r)&&(a=r),isPlainObject(i)&&(a=i),[o.key||"",s,o,a]}function clearNumberFormat(e,t,n){const r=e;for(const i in n){const o=`${t}__${i}`;r.__numberFormatters.has(o)&&r.__numberFormatters.delete(o)}}initFeatureFlags$1();function getDevtoolsGlobalHook(){return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__}function getTarget(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const isProxyAvailable=typeof Proxy=="function",HOOK_SETUP="devtools-plugin:setup",HOOK_PLUGIN_SETTINGS_SET="plugin:settings:set";let supported,perf;function isPerformanceSupported(){var e;return supported!==void 0||(typeof window<"u"&&window.performance?(supported=!0,perf=window.performance):typeof global<"u"&&(!((e=global.perf_hooks)===null||e===void 0)&&e.performance)?(supported=!0,perf=global.perf_hooks.performance):supported=!1),supported}function now(){return isPerformanceSupported()?perf.now():Date.now()}class ApiProxy{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const a in t.settings){const s=t.settings[a];r[a]=s.defaultValue}const i=`__vue-devtools-plugin-settings__${t.id}`;let o=Object.assign({},r);try{const a=localStorage.getItem(i),s=JSON.parse(a);Object.assign(o,s)}catch{}this.fallbacks={getSettings(){return o},setSettings(a){try{localStorage.setItem(i,JSON.stringify(a))}catch{}o=a},now(){return now()}},n&&n.on(HOOK_PLUGIN_SETTINGS_SET,(a,s)=>{a===this.plugin.id&&this.fallbacks.setSettings(s)}),this.proxiedOn=new Proxy({},{get:(a,s)=>this.target?this.target.on[s]:(...l)=>{this.onQueue.push({method:s,args:l})}}),this.proxiedTarget=new Proxy({},{get:(a,s)=>this.target?this.target[s]:s==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(s)?(...l)=>(this.targetQueue.push({method:s,args:l,resolve:()=>{}}),this.fallbacks[s](...l)):(...l)=>new Promise(u=>{this.targetQueue.push({method:s,args:l,resolve:u})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function setupDevtoolsPlugin(e,t){const n=e,r=getTarget(),i=getDevtoolsGlobalHook(),o=isProxyAvailable&&n.enableEarlyProxy;if(i&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))i.emit(HOOK_SETUP,e,t);else{const a=o?new ApiProxy(n,i):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:a}),a&&t(a.proxiedTarget)}}/*!
18
+ * vue-i18n v9.8.0
19
19
  * (c) 2023 kazuya kawaguchi
20
20
  * Released under the MIT License.
21
- */const VERSION="9.7.1";function initFeatureFlags(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(getGlobalThis().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(getGlobalThis().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(getGlobalThis().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(getGlobalThis().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(getGlobalThis().__INTLIFY_PROD_DEVTOOLS__=!1)}const code$1=CoreWarnCodes.__EXTEND_POINT__,inc$1=incrementer(code$1),I18nWarnCodes={FALLBACK_TO_ROOT:code$1,NOT_SUPPORTED_PRESERVE:inc$1(),NOT_SUPPORTED_FORMATTER:inc$1(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:inc$1(),NOT_SUPPORTED_GET_CHOICE_INDEX:inc$1(),COMPONENT_NAME_LEGACY_COMPATIBLE:inc$1(),NOT_FOUND_PARENT_SCOPE:inc$1(),IGNORE_OBJ_FLATTEN:inc$1(),NOTICE_DROP_ALLOW_COMPOSITION:inc$1()},warnMessages={[I18nWarnCodes.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[I18nWarnCodes.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[I18nWarnCodes.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[I18nWarnCodes.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[I18nWarnCodes.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[I18nWarnCodes.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[I18nWarnCodes.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[I18nWarnCodes.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze"};function getWarnMessage(e,...t){return format$3(warnMessages[e],...t)}const code=CoreErrorCodes.__EXTEND_POINT__,inc=incrementer(code),I18nErrorCodes={UNEXPECTED_RETURN_TYPE:code,INVALID_ARGUMENT:inc(),MUST_BE_CALL_SETUP_TOP:inc(),NOT_INSTALLED:inc(),NOT_AVAILABLE_IN_LEGACY_MODE:inc(),REQUIRED_VALUE:inc(),INVALID_VALUE:inc(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:inc(),NOT_INSTALLED_WITH_PROVIDE:inc(),UNEXPECTED_ERROR:inc(),NOT_COMPATIBLE_LEGACY_VUE_I18N:inc(),BRIDGE_SUPPORT_VUE_2_ONLY:inc(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:inc(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:inc(),__EXTEND_POINT__:inc()};function createI18nError(e,...t){return createCompileError(e,null,process.env.NODE_ENV!=="production"?{messages:errorMessages,args:t}:void 0)}const errorMessages={[I18nErrorCodes.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[I18nErrorCodes.INVALID_ARGUMENT]:"Invalid argument",[I18nErrorCodes.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[I18nErrorCodes.NOT_INSTALLED]:"Need to install with `app.use` function",[I18nErrorCodes.UNEXPECTED_ERROR]:"Unexpected error",[I18nErrorCodes.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[I18nErrorCodes.REQUIRED_VALUE]:"Required in value: {0}",[I18nErrorCodes.INVALID_VALUE]:"Invalid value",[I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[I18nErrorCodes.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[I18nErrorCodes.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[I18nErrorCodes.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},TranslateVNodeSymbol=makeSymbol("__translateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),EnableEmitter=makeSymbol("__enableEmitter"),DisableEmitter=makeSymbol("__disableEmitter"),SetPluralRulesSymbol=makeSymbol("__setPluralRules"),InejctWithOptionSymbol=makeSymbol("__injectWithOption"),DisposeSymbol=makeSymbol("__dispose");function handleFlatJson(e){if(!isObject$2(e))return e;for(const t in e)if(hasOwn(e,t))if(!t.includes("."))isObject$2(e[t])&&handleFlatJson(e[t]);else{const n=t.split("."),r=n.length-1;let i=e,o=!1;for(let a=0;a<r;a++){if(n[a]in i||(i[n[a]]={}),!isObject$2(i[n[a]])){process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.IGNORE_OBJ_FLATTEN,{key:n[a]})),o=!0;break}i=i[n[a]]}o||(i[n[r]]=e[t],delete e[t]),isObject$2(i[n[r]])&&handleFlatJson(i[n[r]])}return e}function getLocaleMessages(e,t){const{messages:n,__i18n:r,messageResolver:i,flatJson:o}=t,a=isPlainObject(n)?n:isArray(r)?{}:{[e]:{}};if(isArray(r)&&r.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(a[l]=a[l]||{},deepCopy(u,a[l])):deepCopy(u,a)}else isString$1(s)&&deepCopy(JSON.parse(s),a)}),i==null&&o)for(const s in a)hasOwn(a,s)&&handleFlatJson(a[s]);return a}function getComponentOptions(e){return e.type}function adjustI18nResources(e,t,n){let r=isObject$2(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=getLocaleMessages(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(isObject$2(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(isObject$2(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function createTextNode(e){return Vue.createVNode(Vue.Text,null,e,0)}const DEVTOOLS_META="__INTLIFY_META__",NOOP_RETURN_ARRAY=()=>[],NOOP_RETURN_FALSE=()=>!1;let composerID=0;function defineCoreMissingHandler(e){return(t,n,r,i)=>e(n,r,Vue.getCurrentInstance()||void 0,i)}const getMetaInfo=()=>{const e=Vue.getCurrentInstance();let t=null;return e&&(t=getComponentOptions(e)[DEVTOOLS_META])?{[DEVTOOLS_META]:t}:null};function createComposer(e={},t){const{__root:n,__injectWithOption:r}=e,i=n===void 0,o=e.flatJson;let a=isBoolean(e.inheritLocale)?e.inheritLocale:!0;const s=Vue.ref(n&&a?n.locale.value:isString$1(e.locale)?e.locale:DEFAULT_LOCALE),l=Vue.ref(n&&a?n.fallbackLocale.value:isString$1(e.fallbackLocale)||isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=Vue.ref(getLocaleMessages(s.value,e)),c=Vue.ref(isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),d=Vue.ref(isPlainObject(e.numberFormats)?e.numberFormats:{[s.value]:{}});let f=n?n.missingWarn:isBoolean(e.missingWarn)||isRegExp(e.missingWarn)?e.missingWarn:!0,h=n?n.fallbackWarn:isBoolean(e.fallbackWarn)||isRegExp(e.fallbackWarn)?e.fallbackWarn:!0,p=n?n.fallbackRoot:isBoolean(e.fallbackRoot)?e.fallbackRoot:!0,g=!!e.fallbackFormat,C=isFunction(e.missing)?e.missing:null,v=isFunction(e.missing)?defineCoreMissingHandler(e.missing):null,m=isFunction(e.postTranslation)?e.postTranslation:null,_=n?n.warnHtmlMessage:isBoolean(e.warnHtmlMessage)?e.warnHtmlMessage:!0,E=!!e.escapeParameter;const x=n?n.modifiers:isPlainObject(e.modifiers)?e.modifiers:{};let w=e.pluralRules||n&&n.pluralRules,y;y=(()=>{i&&setFallbackContext(null);const T={version:VERSION,locale:s.value,fallbackLocale:l.value,messages:u.value,modifiers:x,pluralRules:w,missing:v===null?void 0:v,missingWarn:f,fallbackWarn:h,fallbackFormat:g,unresolving:!0,postTranslation:m===null?void 0:m,warnHtmlMessage:_,escapeParameter:E,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};T.datetimeFormats=c.value,T.numberFormats=d.value,T.__datetimeFormatters=isPlainObject(y)?y.__datetimeFormatters:void 0,T.__numberFormatters=isPlainObject(y)?y.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(T.__v_emitter=isPlainObject(y)?y.__v_emitter:void 0);const A=createCoreContext(T);return i&&setFallbackContext(A),A})(),updateFallbackLocale(y,s.value,l.value);function V(){return[s.value,l.value,u.value,c.value,d.value]}const D=Vue.computed({get:()=>s.value,set:T=>{s.value=T,y.locale=s.value}}),R=Vue.computed({get:()=>l.value,set:T=>{l.value=T,y.fallbackLocale=l.value,updateFallbackLocale(y,s.value,T)}}),O=Vue.computed(()=>u.value),P=Vue.computed(()=>c.value),L=Vue.computed(()=>d.value);function W(){return isFunction(m)?m:null}function U(T){m=T,y.postTranslation=T}function G(){return C}function j(T){T!==null&&(v=defineCoreMissingHandler(T)),C=T,y.missing=v}function K(T,A){return T!=="translate"||!A.resolvedMessage}const z=(T,A,M,$,ne,de)=>{V();let oe;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,i||(y.fallbackContext=n?getFallbackContext():void 0),oe=T(y)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,i||(y.fallbackContext=void 0)}if(M!=="translate exists"&&isNumber(oe)&&oe===NOT_REOSLVED||M==="translate exists"&&!oe){const[re,ge]=A();if(process.env.NODE_ENV!=="production"&&n&&isString$1(re)&&K(M,ge)&&(p&&(isTranslateFallbackWarn(h,re)||isTranslateMissingWarn(f,re))&&warn(getWarnMessage(I18nWarnCodes.FALLBACK_TO_ROOT,{key:re,type:M})),process.env.NODE_ENV!=="production")){const{__v_emitter:fe}=y;fe&&p&&fe.emit("fallback",{type:M,key:re,to:"global",groupId:`${M}:${re}`})}return n&&p?$(n):ne(re)}else{if(de(oe))return oe;throw createI18nError(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)}};function q(...T){return z(A=>Reflect.apply(translate,null,[A,...T]),()=>parseTranslateArgs(...T),"translate",A=>Reflect.apply(A.t,A,[...T]),A=>A,A=>isString$1(A))}function Z(...T){const[A,M,$]=T;if($&&!isObject$2($))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);return q(A,M,assign$1({resolvedMessage:!0},$||{}))}function ae(...T){return z(A=>Reflect.apply(datetime,null,[A,...T]),()=>parseDateTimeArgs(...T),"datetime format",A=>Reflect.apply(A.d,A,[...T]),()=>MISSING_RESOLVE_VALUE,A=>isString$1(A))}function ie(...T){return z(A=>Reflect.apply(number$1,null,[A,...T]),()=>parseNumberArgs(...T),"number format",A=>Reflect.apply(A.n,A,[...T]),()=>MISSING_RESOLVE_VALUE,A=>isString$1(A))}function se(T){return T.map(A=>isString$1(A)||isNumber(A)||isBoolean(A)?createTextNode(String(A)):A)}const le={normalize:se,interpolate:T=>T,type:"vnode"};function Q(...T){return z(A=>{let M;const $=A;try{$.processor=le,M=Reflect.apply(translate,null,[$,...T])}finally{$.processor=null}return M},()=>parseTranslateArgs(...T),"translate",A=>A[TranslateVNodeSymbol](...T),A=>[createTextNode(A)],A=>isArray(A))}function ee(...T){return z(A=>Reflect.apply(number$1,null,[A,...T]),()=>parseNumberArgs(...T),"number format",A=>A[NumberPartsSymbol](...T),NOOP_RETURN_ARRAY,A=>isString$1(A)||isArray(A))}function J(...T){return z(A=>Reflect.apply(datetime,null,[A,...T]),()=>parseDateTimeArgs(...T),"datetime format",A=>A[DatetimePartsSymbol](...T),NOOP_RETURN_ARRAY,A=>isString$1(A)||isArray(A))}function te(T){w=T,y.pluralRules=w}function ue(T,A){return z(()=>{if(!T)return!1;const M=isString$1(A)?A:s.value,$=I(M),ne=y.messageResolver($,T);return isMessageAST(ne)||isMessageFunction(ne)||isString$1(ne)},()=>[T],"translate exists",M=>Reflect.apply(M.te,M,[T,A]),NOOP_RETURN_FALSE,M=>isBoolean(M))}function S(T){let A=null;const M=fallbackWithLocaleChain(y,l.value,s.value);for(let $=0;$<M.length;$++){const ne=u.value[M[$]]||{},de=y.messageResolver(ne,T);if(de!=null){A=de;break}}return A}function b(T){const A=S(T);return A??(n?n.tm(T)||{}:{})}function I(T){return u.value[T]||{}}function k(T,A){if(o){const M={[T]:A};for(const $ in M)hasOwn(M,$)&&handleFlatJson(M[$]);A=M[T]}u.value[T]=A,y.messages=u.value}function B(T,A){u.value[T]=u.value[T]||{};const M={[T]:A};for(const $ in M)hasOwn(M,$)&&handleFlatJson(M[$]);A=M[T],deepCopy(A,u.value[T]),y.messages=u.value}function F(T){return c.value[T]||{}}function X(T,A){c.value[T]=A,y.datetimeFormats=c.value,clearDateTimeFormat(y,T,A)}function Y(T,A){c.value[T]=assign$1(c.value[T]||{},A),y.datetimeFormats=c.value,clearDateTimeFormat(y,T,A)}function he(T){return d.value[T]||{}}function pe(T,A){d.value[T]=A,y.numberFormats=d.value,clearNumberFormat(y,T,A)}function me(T,A){d.value[T]=assign$1(d.value[T]||{},A),y.numberFormats=d.value,clearNumberFormat(y,T,A)}composerID++,n&&inBrowser&&(Vue.watch(n.locale,T=>{a&&(s.value=T,y.locale=T,updateFallbackLocale(y,s.value,l.value))}),Vue.watch(n.fallbackLocale,T=>{a&&(l.value=T,y.fallbackLocale=T,updateFallbackLocale(y,s.value,l.value))}));const H={id:composerID,locale:D,fallbackLocale:R,get inheritLocale(){return a},set inheritLocale(T){a=T,T&&n&&(s.value=n.locale.value,l.value=n.fallbackLocale.value,updateFallbackLocale(y,s.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:O,get modifiers(){return x},get pluralRules(){return w||{}},get isGlobal(){return i},get missingWarn(){return f},set missingWarn(T){f=T,y.missingWarn=f},get fallbackWarn(){return h},set fallbackWarn(T){h=T,y.fallbackWarn=h},get fallbackRoot(){return p},set fallbackRoot(T){p=T},get fallbackFormat(){return g},set fallbackFormat(T){g=T,y.fallbackFormat=g},get warnHtmlMessage(){return _},set warnHtmlMessage(T){_=T,y.warnHtmlMessage=T},get escapeParameter(){return E},set escapeParameter(T){E=T,y.escapeParameter=T},t:q,getLocaleMessage:I,setLocaleMessage:k,mergeLocaleMessage:B,getPostTranslationHandler:W,setPostTranslationHandler:U,getMissingHandler:G,setMissingHandler:j,[SetPluralRulesSymbol]:te};return H.datetimeFormats=P,H.numberFormats=L,H.rt=Z,H.te=ue,H.tm=b,H.d=ae,H.n=ie,H.getDateTimeFormat=F,H.setDateTimeFormat=X,H.mergeDateTimeFormat=Y,H.getNumberFormat=he,H.setNumberFormat=pe,H.mergeNumberFormat=me,H[InejctWithOptionSymbol]=r,H[TranslateVNodeSymbol]=Q,H[DatetimePartsSymbol]=J,H[NumberPartsSymbol]=ee,process.env.NODE_ENV!=="production"&&(H[EnableEmitter]=T=>{y.__v_emitter=T},H[DisableEmitter]=()=>{y.__v_emitter=void 0}),H}function convertComposerOptions(e){const t=isString$1(e.locale)?e.locale:DEFAULT_LOCALE,n=isString$1(e.fallbackLocale)||isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=isFunction(e.missing)?e.missing:void 0,i=isBoolean(e.silentTranslationWarn)||isRegExp(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=isBoolean(e.silentFallbackWarn)||isRegExp(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,a=isBoolean(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,l=isPlainObject(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=isFunction(e.postTranslation)?e.postTranslation:void 0,d=isString$1(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,f=!!e.escapeParameterHtml,h=isBoolean(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let p=e.messages;if(isPlainObject(e.sharedMessages)){const x=e.sharedMessages;p=Object.keys(x).reduce((y,N)=>{const V=y[N]||(y[N]={});return assign$1(V,x[N]),y},p||{})}const{__i18n:g,__root:C,__injectWithOption:v}=e,m=e.datetimeFormats,_=e.numberFormats,E=e.flatJson;return{locale:t,fallbackLocale:n,messages:p,flatJson:E,datetimeFormats:m,numberFormats:_,missing:r,missingWarn:i,fallbackWarn:o,fallbackRoot:a,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:d,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:h,__i18n:g,__root:C,__injectWithOption:v}}function createVueI18n(e={},t){{const n=createComposer(convertComposerOptions(e)),{__extender:r}=e,i={id:n.id,get locale(){return n.locale.value},set locale(o){n.locale.value=o},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(o){n.fallbackLocale.value=o},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(o){process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_FORMATTER))},get missing(){return n.getMissingHandler()},set missing(o){n.setMissingHandler(o)},get silentTranslationWarn(){return isBoolean(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(o){n.missingWarn=isBoolean(o)?!o:o},get silentFallbackWarn(){return isBoolean(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(o){n.fallbackWarn=isBoolean(o)?!o:o},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(o){n.fallbackFormat=o},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(o){n.setPostTranslationHandler(o)},get sync(){return n.inheritLocale},set sync(o){n.inheritLocale=o},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(o){n.warnHtmlMessage=o!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(o){n.escapeParameter=o},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(o){process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...o){const[a,s,l]=o,u={};let c=null,d=null;if(!isString$1(a))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);const f=a;return isString$1(s)?u.locale=s:isArray(s)?c=s:isPlainObject(s)&&(d=s),isArray(l)?c=l:isPlainObject(l)&&(d=l),Reflect.apply(n.t,n,[f,c||d||{},u])},rt(...o){return Reflect.apply(n.rt,n,[...o])},tc(...o){const[a,s,l]=o,u={plural:1};let c=null,d=null;if(!isString$1(a))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);const f=a;return isString$1(s)?u.locale=s:isNumber(s)?u.plural=s:isArray(s)?c=s:isPlainObject(s)&&(d=s),isString$1(l)?u.locale=l:isArray(l)?c=l:isPlainObject(l)&&(d=l),Reflect.apply(n.t,n,[f,c||d||{},u])},te(o,a){return n.te(o,a)},tm(o){return n.tm(o)},getLocaleMessage(o){return n.getLocaleMessage(o)},setLocaleMessage(o,a){n.setLocaleMessage(o,a)},mergeLocaleMessage(o,a){n.mergeLocaleMessage(o,a)},d(...o){return Reflect.apply(n.d,n,[...o])},getDateTimeFormat(o){return n.getDateTimeFormat(o)},setDateTimeFormat(o,a){n.setDateTimeFormat(o,a)},mergeDateTimeFormat(o,a){n.mergeDateTimeFormat(o,a)},n(...o){return Reflect.apply(n.n,n,[...o])},getNumberFormat(o){return n.getNumberFormat(o)},setNumberFormat(o,a){n.setNumberFormat(o,a)},mergeNumberFormat(o,a){n.mergeNumberFormat(o,a)},getChoiceIndex(o,a){return process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return i.__extender=r,process.env.NODE_ENV!=="production"&&(i.__enableEmitter=o=>{const a=n;a[EnableEmitter]&&a[EnableEmitter](o)},i.__disableEmitter=()=>{const o=n;o[DisableEmitter]&&o[DisableEmitter]()}),i}}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function getInterpolateArg({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,i)=>[...r,...i.type===Vue.Fragment?i.children:[i]],[]):t.reduce((n,r)=>{const i=e[r];return i&&(n[r]=i()),n},{})}function getFragmentableTag(e){return Vue.Fragment}const TranslationImpl=Vue.defineComponent({name:"i18n-t",props:assign$1({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>isNumber(e)||!isNaN(e)}},baseFormatProps),setup(e,t){const{slots:n,attrs:r}=t,i=e.i18n||useI18n({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(d=>d!=="_"),a={};e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=isString$1(e.plural)?+e.plural:e.plural);const s=getInterpolateArg(t,o),l=i[TranslateVNodeSymbol](e.keypath,s,a),u=assign$1({},r),c=isString$1(e.tag)||isObject$2(e.tag)?e.tag:getFragmentableTag();return Vue.h(c,u,l)}}}),Translation=TranslationImpl;function isVNode(e){return isArray(e)&&!isString$1(e[0])}function renderFormatter(e,t,n,r){const{slots:i,attrs:o}=t;return()=>{const a={part:!0};let s={};e.locale&&(a.locale=e.locale),isString$1(e.format)?a.key=e.format:isObject$2(e.format)&&(isString$1(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce((f,h)=>n.includes(h)?assign$1({},f,{[h]:e.format[h]}):f,{}));const l=r(e.value,a,s);let u=[a.key];isArray(l)?u=l.map((f,h)=>{const p=i[f.type],g=p?p({[f.type]:f.value,index:h,parts:l}):[f.value];return isVNode(g)&&(g[0].key=`${f.type}-${h}`),g}):isString$1(l)&&(u=[l]);const c=assign$1({},o),d=isString$1(e.tag)||isObject$2(e.tag)?e.tag:getFragmentableTag();return Vue.h(d,c,u)}}const NumberFormatImpl=Vue.defineComponent({name:"i18n-n",props:assign$1({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const n=e.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(e,t,NUMBER_FORMAT_OPTIONS_KEYS,(...r)=>n[NumberPartsSymbol](...r))}}),NumberFormat=NumberFormatImpl,DatetimeFormatImpl=Vue.defineComponent({name:"i18n-d",props:assign$1({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const n=e.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(e,t,DATETIME_FORMAT_OPTIONS_KEYS,(...r)=>n[DatetimePartsSymbol](...r))}}),DatetimeFormat=DatetimeFormatImpl;function getComposer$2(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function vTDirective(e){const t=a=>{const{instance:s,modifiers:l,value:u}=a;if(!s||!s.$)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const c=getComposer$2(e,s.$);process.env.NODE_ENV!=="production"&&l.preserve&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE));const d=parseValue(u);return[Reflect.apply(c.t,c,[...makeParams(d)]),c]};return{created:(a,s)=>{const[l,u]=t(s);inBrowser&&e.global===u&&(a.__i18nWatcher=Vue.watch(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),a.__composer=u,a.textContent=l},unmounted:a=>{inBrowser&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:s})=>{if(a.__composer){const l=a.__composer,u=parseValue(s);a.textContent=Reflect.apply(l.t,l,[...makeParams(u)])}},getSSRProps:a=>{const[s]=t(a);return{textContent:s}}}}function parseValue(e){if(isString$1(e))return{path:e};if(isPlainObject(e)){if(!("path"in e))throw createI18nError(I18nErrorCodes.REQUIRED_VALUE,"path");return e}else throw createI18nError(I18nErrorCodes.INVALID_VALUE)}function makeParams(e){const{path:t,locale:n,args:r,choice:i,plural:o}=e,a={},s=r||{};return isString$1(n)&&(a.locale=n),isNumber(i)&&(a.plural=i),isNumber(o)&&(a.plural=o),[t,s,a]}function apply(e,t,...n){const r=isPlainObject(n[0])?n[0]:{},i=!!r.useI18nComponentName,o=isBoolean(r.globalInstall)?r.globalInstall:!0;process.env.NODE_ENV!=="production"&&o&&i&&warn(getWarnMessage(I18nWarnCodes.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:Translation.name})),o&&([i?"i18n":Translation.name,"I18nT"].forEach(a=>e.component(a,Translation)),[NumberFormat.name,"I18nN"].forEach(a=>e.component(a,NumberFormat)),[DatetimeFormat.name,"I18nD"].forEach(a=>e.component(a,DatetimeFormat))),e.directive("t",vTDirective(t))}const VueDevToolsLabels={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},VueDevToolsPlaceholders={"vue-i18n-resource-inspector":"Search for scopes ..."},VueDevToolsTimelineColors={"vue-i18n-timeline":16764185},VUE_I18N_COMPONENT_TYPES="vue-i18n: composer properties";let devtoolsApi;async function enableDevTools(e,t){return new Promise((n,r)=>{try{setupDevtoolsPlugin({id:"vue-devtools-plugin-vue-i18n",label:VueDevToolsLabels["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[VUE_I18N_COMPONENT_TYPES],app:e},i=>{devtoolsApi=i,i.on.visitComponentTree(({componentInstance:a,treeNode:s})=>{updateComponentTreeTags(a,s,t)}),i.on.inspectComponent(({componentInstance:a,instanceData:s})=>{a.vnode.el&&a.vnode.el.__VUE_I18N__&&s&&(t.mode==="legacy"?a.vnode.el.__VUE_I18N__!==t.global.__composer&&inspectComposer(s,a.vnode.el.__VUE_I18N__):inspectComposer(s,a.vnode.el.__VUE_I18N__))}),i.addInspector({id:"vue-i18n-resource-inspector",label:VueDevToolsLabels["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:VueDevToolsPlaceholders["vue-i18n-resource-inspector"]}),i.on.getInspectorTree(a=>{a.app===e&&a.inspectorId==="vue-i18n-resource-inspector"&&registerScope(a,t)});const o=new Map;i.on.getInspectorState(async a=>{if(a.app===e&&a.inspectorId==="vue-i18n-resource-inspector")if(i.unhighlightElement(),inspectScope(a,t),a.nodeId==="global"){if(!o.has(a.app)){const[s]=await i.getComponentInstances(a.app);o.set(a.app,s)}i.highlightElement(o.get(a.app))}else{const s=getComponentInstance(a.nodeId,t);s&&i.highlightElement(s)}}),i.on.editInspectorState(a=>{a.app===e&&a.inspectorId==="vue-i18n-resource-inspector"&&editScope(a,t)}),i.addTimelineLayer({id:"vue-i18n-timeline",label:VueDevToolsLabels["vue-i18n-timeline"],color:VueDevToolsTimelineColors["vue-i18n-timeline"]}),n(!0)})}catch(i){console.error(i),r(!1)}})}function getI18nScopeLable(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function updateComponentTreeTags(e,t,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==r){const i={label:`i18n (${getI18nScopeLable(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(i)}}function inspectComposer(e,t){const n=VUE_I18N_COMPONENT_TYPES;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:getLocaleMessageValue(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function getLocaleMessageValue(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];isFunction(r)&&"source"in r?t[n]=getMessageFunctionDetails(r):isMessageAST(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:isObject$2(r)?t[n]=getLocaleMessageValue(r):t[n]=r}),t}const ESC={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function escape$1(e){return e.replace(/[<>"&]/g,escapeChar)}function escapeChar(e){return ESC[e]||e}function getMessageFunctionDetails(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${escape$1(e.source)}")`:"(?)"}`}}}function registerScope(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[r,i]of t.__instances){const o=t.mode==="composition"?i:i.__composer;n!==o&&e.rootNodes.push({id:o.id.toString(),label:`${getI18nScopeLable(r)} Scope`})}}function getComponentInstance(e,t){let n=null;if(e!=="global"){for(const[r,i]of t.__instances.entries())if(i.id.toString()===e){n=r;break}}return n}function getComposer$1(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(r=>r.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function inspectScope(e,t){const n=getComposer$1(e.nodeId,t);return n&&(e.state=makeScopeInspectState(n)),null}function makeScopeInspectState(e){const t={},n="Locale related info",r=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=r;const i="Locale messages info",o=[{type:i,key:"messages",editable:!1,value:getLocaleMessageValue(e.messages.value)}];t[i]=o;{const a="Datetime formats info",s=[{type:a,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[a]=s;const l="Datetime formats info",u=[{type:l,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[l]=u}return t}function addTimelineEvent(e,t){if(devtoolsApi){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),devtoolsApi.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function editScope(e,t){const n=getComposer$1(e.nodeId,t);if(n){const[r]=e.path;r==="locale"&&isString$1(e.state.value)?n.locale.value=e.state.value:r==="fallbackLocale"&&(isString$1(e.state.value)||isArray(e.state.value)||isObject$2(e.state.value))?n.fallbackLocale.value=e.state.value:r==="inheritLocale"&&isBoolean(e.state.value)&&(n.inheritLocale=e.state.value)}}function defineMixin(e,t,n){return{beforeCreate(){const r=Vue.getCurrentInstance();if(!r)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const o=i.i18n;if(i.__i18n&&(o.__i18n=i.__i18n),o.__root=t,this===this.$root)this.$i18n=mergeToGlobal(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=createVueI18n(o);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=mergeToGlobal(e,i);else{this.$i18n=createVueI18n({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&adjustI18nResources(t,i,i),this.$t=(...o)=>this.$i18n.t(...o),this.$rt=(...o)=>this.$i18n.rt(...o),this.$tc=(...o)=>this.$i18n.tc(...o),this.$te=(o,a)=>this.$i18n.te(o,a),this.$d=(...o)=>this.$i18n.d(...o),this.$n=(...o)=>this.$i18n.n(...o),this.$tm=o=>this.$i18n.tm(o),n.__setInstance(r,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const r=this.$i18n;this.$el.__VUE_I18N__=r.__composer;const i=this.__v_emitter=createEmitter();r.__enableEmitter&&r.__enableEmitter(i),i.on("*",addTimelineEvent)}},unmounted(){const r=Vue.getCurrentInstance();if(!r)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const i=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",addTimelineEvent),delete this.__v_emitter),this.$i18n&&(i.__disableEmitter&&i.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,i.__disposer&&(i.__disposer(),delete i.__disposer,delete i.__extender),n.__deleteInstance(r),delete this.$i18n}}}function mergeToGlobal(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[SetPluralRulesSymbol](t.pluralizationRules||e.pluralizationRules);const n=getLocaleMessages(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n(e={},t){const n=__VUE_I18N_LEGACY_API__&&isBoolean(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=isBoolean(e.globalInjection)?e.globalInjection:!0,i=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,o=new Map,[a,s]=createGlobal(e,n),l=makeSymbol(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&n&&i&&warn(getWarnMessage(I18nWarnCodes.NOTICE_DROP_ALLOW_COMPOSITION));function u(f){return o.get(f)||null}function c(f,h){o.set(f,h)}function d(f){o.delete(f)}{const f={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return i},async install(h,...p){if(process.env.NODE_ENV!=="production"&&(h.__VUE_I18N__=f),h.__VUE_I18N_SYMBOL__=l,h.provide(h.__VUE_I18N_SYMBOL__,f),isPlainObject(p[0])){const v=p[0];f.__composerExtend=v.__composerExtend,f.__vueI18nExtend=v.__vueI18nExtend}let g=null;!n&&r&&(g=injectGlobalFields(h,f.global)),__VUE_I18N_FULL_INSTALL__&&apply(h,f,...p),__VUE_I18N_LEGACY_API__&&n&&h.mixin(defineMixin(s,s.__composer,f));const C=h.unmount;if(h.unmount=()=>{g&&g(),f.dispose(),C()},process.env.NODE_ENV!=="production"){if(!await enableDevTools(h,f))throw createI18nError(I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const m=createEmitter();if(n){const _=s;_.__enableEmitter&&_.__enableEmitter(m)}else{const _=s;_[EnableEmitter]&&_[EnableEmitter](m)}m.on("*",addTimelineEvent)}},get global(){return s},dispose(){a.stop()},__instances:o,__getInstance:u,__setInstance:c,__deleteInstance:d};return f}}function useI18n(e={}){const t=Vue.getCurrentInstance();if(t==null)throw createI18nError(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw createI18nError(I18nErrorCodes.NOT_INSTALLED);const n=getI18nInstance(t),r=getGlobalComposer(n),i=getComponentOptions(t),o=getScope(e,i);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_IN_LEGACY_MODE);return useI18nForLegacy(t,o,r,e)}if(o==="global")return adjustI18nResources(r,e,i),r;if(o==="parent"){let l=getComposer(n,t,e.__useComponent);return l==null&&(process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_FOUND_PARENT_SCOPE)),l=r),l}const a=n;let s=a.__getInstance(t);if(s==null){const l=assign$1({},e);"__i18n"in i&&(l.__i18n=i.__i18n),r&&(l.__root=r),s=createComposer(l),a.__composerExtend&&(s[DisposeSymbol]=a.__composerExtend(s)),setupLifeCycle(a,t,s),a.__setInstance(t,s)}return s}function createGlobal(e,t,n){const r=Vue.effectScope();{const i=__VUE_I18N_LEGACY_API__&&t?r.run(()=>createVueI18n(e)):r.run(()=>createComposer(e));if(i==null)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);return[r,i]}}function getI18nInstance(e){{const t=Vue.inject(e.isCE?I18nInjectionKey:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw createI18nError(e.isCE?I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE:I18nErrorCodes.UNEXPECTED_ERROR);return t}}function getScope(e,t){return isEmptyObject(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function getGlobalComposer(e){return e.mode==="composition"?e.global:e.global.__composer}function getComposer(e,t,n=!1){let r=null;const i=t.root;let o=getParentComponentInstance(t,n);for(;o!=null;){const a=e;if(e.mode==="composition")r=a.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const s=a.__getInstance(o);s!=null&&(r=s.__composer,n&&r&&!r[InejctWithOptionSymbol]&&(r=null))}if(r!=null||i===o)break;o=o.parent}return r}function getParentComponentInstance(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function setupLifeCycle(e,t,n){let r=null;Vue.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=createEmitter();const i=n;i[EnableEmitter]&&i[EnableEmitter](r),r.on("*",addTimelineEvent)}},t),Vue.onUnmounted(()=>{const i=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(r&&r.off("*",addTimelineEvent),i[DisableEmitter]&&i[DisableEmitter](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const o=i[DisposeSymbol];o&&(o(),delete i[DisposeSymbol])},t)}function useI18nForLegacy(e,t,n,r={}){const i=t==="local",o=Vue.shallowRef(null);if(i&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw createI18nError(I18nErrorCodes.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const a=isBoolean(r.inheritLocale)?r.inheritLocale:!isString$1(r.locale),s=Vue.ref(!i||a?n.locale.value:isString$1(r.locale)?r.locale:DEFAULT_LOCALE),l=Vue.ref(!i||a?n.fallbackLocale.value:isString$1(r.fallbackLocale)||isArray(r.fallbackLocale)||isPlainObject(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:s.value),u=Vue.ref(getLocaleMessages(s.value,r)),c=Vue.ref(isPlainObject(r.datetimeFormats)?r.datetimeFormats:{[s.value]:{}}),d=Vue.ref(isPlainObject(r.numberFormats)?r.numberFormats:{[s.value]:{}}),f=i?n.missingWarn:isBoolean(r.missingWarn)||isRegExp(r.missingWarn)?r.missingWarn:!0,h=i?n.fallbackWarn:isBoolean(r.fallbackWarn)||isRegExp(r.fallbackWarn)?r.fallbackWarn:!0,p=i?n.fallbackRoot:isBoolean(r.fallbackRoot)?r.fallbackRoot:!0,g=!!r.fallbackFormat,C=isFunction(r.missing)?r.missing:null,v=isFunction(r.postTranslation)?r.postTranslation:null,m=i?n.warnHtmlMessage:isBoolean(r.warnHtmlMessage)?r.warnHtmlMessage:!0,_=!!r.escapeParameter,E=i?n.modifiers:isPlainObject(r.modifiers)?r.modifiers:{},x=r.pluralRules||i&&n.pluralRules;function w(){return[s.value,l.value,u.value,c.value,d.value]}const y=Vue.computed({get:()=>o.value?o.value.locale.value:s.value,set:b=>{o.value&&(o.value.locale.value=b),s.value=b}}),N=Vue.computed({get:()=>o.value?o.value.fallbackLocale.value:l.value,set:b=>{o.value&&(o.value.fallbackLocale.value=b),l.value=b}}),V=Vue.computed(()=>o.value?o.value.messages.value:u.value),D=Vue.computed(()=>c.value),R=Vue.computed(()=>d.value);function O(){return o.value?o.value.getPostTranslationHandler():v}function P(b){o.value&&o.value.setPostTranslationHandler(b)}function L(){return o.value?o.value.getMissingHandler():C}function W(b){o.value&&o.value.setMissingHandler(b)}function U(b){return w(),b()}function G(...b){return o.value?U(()=>Reflect.apply(o.value.t,null,[...b])):U(()=>"")}function j(...b){return o.value?Reflect.apply(o.value.rt,null,[...b]):""}function K(...b){return o.value?U(()=>Reflect.apply(o.value.d,null,[...b])):U(()=>"")}function z(...b){return o.value?U(()=>Reflect.apply(o.value.n,null,[...b])):U(()=>"")}function q(b){return o.value?o.value.tm(b):{}}function Z(b,I){return o.value?o.value.te(b,I):!1}function ae(b){return o.value?o.value.getLocaleMessage(b):{}}function ie(b,I){o.value&&(o.value.setLocaleMessage(b,I),u.value[b]=I)}function se(b,I){o.value&&o.value.mergeLocaleMessage(b,I)}function ce(b){return o.value?o.value.getDateTimeFormat(b):{}}function le(b,I){o.value&&(o.value.setDateTimeFormat(b,I),c.value[b]=I)}function Q(b,I){o.value&&o.value.mergeDateTimeFormat(b,I)}function ee(b){return o.value?o.value.getNumberFormat(b):{}}function J(b,I){o.value&&(o.value.setNumberFormat(b,I),d.value[b]=I)}function te(b,I){o.value&&o.value.mergeNumberFormat(b,I)}const ue={get id(){return o.value?o.value.id:-1},locale:y,fallbackLocale:N,messages:V,datetimeFormats:D,numberFormats:R,get inheritLocale(){return o.value?o.value.inheritLocale:a},set inheritLocale(b){o.value&&(o.value.inheritLocale=b)},get availableLocales(){return o.value?o.value.availableLocales:Object.keys(u.value)},get modifiers(){return o.value?o.value.modifiers:E},get pluralRules(){return o.value?o.value.pluralRules:x},get isGlobal(){return o.value?o.value.isGlobal:!1},get missingWarn(){return o.value?o.value.missingWarn:f},set missingWarn(b){o.value&&(o.value.missingWarn=b)},get fallbackWarn(){return o.value?o.value.fallbackWarn:h},set fallbackWarn(b){o.value&&(o.value.missingWarn=b)},get fallbackRoot(){return o.value?o.value.fallbackRoot:p},set fallbackRoot(b){o.value&&(o.value.fallbackRoot=b)},get fallbackFormat(){return o.value?o.value.fallbackFormat:g},set fallbackFormat(b){o.value&&(o.value.fallbackFormat=b)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:m},set warnHtmlMessage(b){o.value&&(o.value.warnHtmlMessage=b)},get escapeParameter(){return o.value?o.value.escapeParameter:_},set escapeParameter(b){o.value&&(o.value.escapeParameter=b)},t:G,getPostTranslationHandler:O,setPostTranslationHandler:P,getMissingHandler:L,setMissingHandler:W,rt:j,d:K,n:z,tm:q,te:Z,getLocaleMessage:ae,setLocaleMessage:ie,mergeLocaleMessage:se,getDateTimeFormat:ce,setDateTimeFormat:le,mergeDateTimeFormat:Q,getNumberFormat:ee,setNumberFormat:J,mergeNumberFormat:te};function S(b){b.locale.value=s.value,b.fallbackLocale.value=l.value,Object.keys(u.value).forEach(I=>{b.mergeLocaleMessage(I,u.value[I])}),Object.keys(c.value).forEach(I=>{b.mergeDateTimeFormat(I,c.value[I])}),Object.keys(d.value).forEach(I=>{b.mergeNumberFormat(I,d.value[I])}),b.escapeParameter=_,b.fallbackFormat=g,b.fallbackRoot=p,b.fallbackWarn=h,b.missingWarn=f,b.warnHtmlMessage=m}return Vue.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const b=o.value=e.proxy.$i18n.__composer;t==="global"?(s.value=b.locale.value,l.value=b.fallbackLocale.value,u.value=b.messages.value,c.value=b.datetimeFormats.value,d.value=b.numberFormats.value):i&&S(b)}),ue}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm","te"];function injectGlobalFields(e,t){const n=Object.create(null);return globalExportProps.forEach(i=>{const o=Object.getOwnPropertyDescriptor(t,i);if(!o)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const a=Vue.isRef(o.value)?{get(){return o.value.value},set(s){o.value.value=s}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,i,a)}),e.config.globalProperties.$i18n=n,globalExportMethods.forEach(i=>{const o=Object.getOwnPropertyDescriptor(t,i);if(!o||!o.value)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,o)}),()=>{delete e.config.globalProperties.$i18n,globalExportMethods.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}if(initFeatureFlags(),__INTLIFY_JIT_COMPILATION__?registerMessageCompiler(compile):registerMessageCompiler(compileToFunction),registerMessageResolver(resolveValue),registerLocaleFallbacker(fallbackWithLocaleChain),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=getGlobalThis();e.__INTLIFY__=!0,setDevToolsHook(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const en={imatrixUIPublicModel:{sure:"Sure",cancel:"Cancel",allDepartments:"All Departments",allUsers:"All Users",reset:"Reset",to:"To",edit:"Edit",clear:"Clear",download:"Download",delete:"Delete",preview:"Preview",add:"Add",graphView:"Graphic view",listView:"List View",fieldName:"Field Name",operator:"Operator",value:"Value",andOr:"And/Or",whenTheVariableIsEmpty:"When The Variable Is Empty",perhaps:"Perhaps",also:"Also",greaterThan:"Greater Than",lessThan:"Less Than",beEqualTo:"Be Equal To",notGreaterThan:"Not Greater Than",notLessThan:"Not Less Than",notEqualTo:"Not Equal To",contain:"Contain",notIncluded:"Not Included",laterThan:"Later Than",earlierThan:"Earlier Than",noLaterThan:"No Later Than",noEarlierThan:"No Earlier Than",ignore11:"Ignore (1 = 1)",nonConformity:"Non Conformity (1 < > 1)",switchToNormalQuery:"Switch To Normal Query",switchToAdvancedQuery:"Switch To Advanced Query",isNull:"Is Null",isNotNull:"Is Not Null",previewImage:"Preview image",fullScreen:"Full Screen"},imatrixUIMessage:{whetherToConfirmDeletion:"Whether To Confirm Deletion",tips:"Tips",pleaseEnterContent:"Please Enter Content",internalServerError:"Server error",pleaseSelectDepartment:"Please Select Department",pleaseSelectPersonnel:"Please Select Personnel",pleaseRemoveallpersonnelBeforeSelectingSpecificPersonnel:"Please Remove All Personnel Before Selecting Specific Personnel",queryResultIsEmpty:"Query Result Is Empty",pleaseSelectATeam:"Please Select A Team",pleaseEnterTeamName:"Please Enter Team Name",validationFailed:"Validation Failed",selectionDate:"Selection Date",selectTime:"Select Time",pleaseEnterATimePoint:"Please Enter A Time Point",pleaseSelect:"Please Select",startDate:"Start Date",endDate:"End Date",noExportColumnsConfigured:"No Export Columns Configured",organizationTreeNoResultNotRemove:"No information selected, no need to remove",exceedFileSize:"File size limit {filesize} M exceeded",upload:"Upload",invalideDoubleValue:"{num} is not a legal decimal",noJumpPage:"Jump page not configured",saveSuccessfully:"Savee successfully",pleaseInputSearchCondition:"Please enter the query criteria",fileUpload:"File Upload",selectYear:"Select Year",search:"Search",forbiddenException:"You do not have permission to access this resource",theButtonIsNotBoundToAResource:"The button is not bound to a resource, Bind the resource first",asyncExport:"Asynchronous export, please wait for message notification!",selectedWorkingGroup:"Selected working group"},superGrid:{columnConfig:"Column Config",pleaseSaveOrCancelEditingLine:"Please Save Or Cancel Editing Line {row} Data First",pleaseSaveLine:"Please Save Line {row} Data First",noNeedToSaveRow:"No Need To Save Row {row} Data",pleaseSetURLToSaveRowInformation:'Please set "URL to save row information"',lineSavedSuccessfully:"Line {row} Saved Successfully",theReturnValueOfTheBeforesaveCallbackMethodIsFalse:"The Return Value Of The Beforesave Callback Method Is False",lineNoNeedToUndoEdit:"Line {row} No Need To Undo Edit",lineCancelledSuccessfully:"Line {row} cancelled successfully",label:"Label",isShow:"Is Show",isExportable:"Is Exportable",recordLine:"Record line {row}",pageRecordLine:"Record in row {row} of page {pageNum}",fileName:"File Name",deleteSuccessful:"Deleted successfully",index:"No.",searchConditionName:"Search Condition Name",pleaseInputSearchConditionName:"Please enter the name of the query criteria",saveCondition:"Save Condition",saveConditionTitle:"Save Condition",displayOrder:"Display Order",width:"Column Width",default:"Default",custom:"Custom",show:"Show",hidden:"Hidden",export:"Export",unExport:"Not Export",whetherToConfirmReset:"Are you sure you want to reset?",resetSuccessful:"Reset successfully",dragColumnOrderMessage:"Supports dragging to change column order",selectAll:"Select All",viewImage:"View Image",previewTitleWhenNotImg:"Non picture format, preview in other ways",refresh:"Refresh",open:"Open",fold:"Fold"},departmentTree:{},departmentTreeInline:{pleaseEnterDepartmentName:"Please Enter Department Name",name:"Department Name",code:"Department Code",removeDepartment:"Remove Department",selectedDept:"Selected Departments",namePath:"Name Path"},departmentUserTree:{pleaseEnterUserInformation:"Please Enter User Information",selectedPeople:"Selected People",searchFieldUserName:"Name",searchFieldLoginName:"Login Name",searchFieldEmail:"Email",searchFieldTelephone:"Telephone",searchFieldJobNumber:"Job Number",searchFieldHonorificName:"Honorific"},departmentUserTreeInline:{name:"Name",department:"Department",branch:"Branch",removeUser:"Remove User",email:"Email",loginName:"Login Name"},workgroupTree:{allTeamMembers:"All Team Members",name:"Workgroup Name",code:"Workgroup Code",removeWorkgroup:"Remove Workgroup",workingGroupName:"Working Group Name",workingGroupNumber:"Working Group Number",workgroupDescription:"Workgroup Description"},workflowButton:{save:"Save",submit:"Submit",approve:"Approve",refuse:"Refuse",agreement:"Agree",oppose:"Opposition",kiken:"Abstention",get_back_button:"Retrieve",copy:"Copy",draw:"Draw",abandon_draw:"Give Up Draw",add_sign:"Additional Signature",remove_sign:"Reduction Of Signature",signoff:"Sign For",assign:"Hand over",assign_task:"Transfer",readed:"Readed",export_report:"Export Report",draw_dept_task:"Draw Department",abandon_draw_dept_task:"Give Up Draw Department"},workflowHistoryList:{specailText:"specail",index:"Index",taskName:"Task Name",operation:"Operation",opinion:"Opinion",processStart:"Process Start",processEnd:"Process End",process_start:"[{1}] process start",prcoess_end:"[{1}] process End",force_end_process:"{1}forced to end the process, and the task of [{2}] was canceled",history_jump:"Process {3} to [{1}], [{2}] task cancelled",history_back:"{1} returned to task,process returned to [{2}]",history_removesign:"{1} minus [{2}]",history_changetransactor_and_delegate:"{1} changed the handler [{2}] to [{3}], [{4}] delegated the task to [{5}]",history_changetransactor:"{1} changed handler [{2}] to [{3}]",history_addsign:"{1} sign [{2}]",history_addtransactor:"{1} add handler [{2}]",history_removetransactor:"{1} decrease handler [{2}]",history_delegate_and_assign:"{1} assigned tasks to [{2}], [{3}] delegated tasks to [{4}]",history_assign:"{1} assigned task to [{2}]",transfer:"{1} transferred to [{2}]",history_complete_transfer:"{1} execute [{2}] operation and canceled the task of other receivers [{3}]",history_delegate_receive:"{1} retracts the task entrusted to [{2}]",history_delegate:"{1} has delegated task [{2}] to [{3}]",history_quit_transfer:"{1} Resignation, has transferred task [{2}] to [{3}",history_change_job_transfer:"{1} Change job,has transferred task [{2}] to [{3}",commonButtonOperation:"{1} execute [{2}] operation",history_draw_task:"{1} received the task and cancelled the task of the candidate [{2}]",history_abandon_draw:"{1} gives up the task and restores the task of candidate [{2}]",create_copy_task:"{1} The task was copied to [{2}",toDoText:"Todo",operator:"Operator",operatorLg:"Operator Login Name",operatorDept:"Operator Dept",operationTime:"Operation Time",history_draw_dept_task:"{1} Received tasks from department [{2}]",history_abandon_draw_dept_task:"{1} Abandon the task of receiving department [{2}]"},gateway:{timeout:"Interface call timeout",callFailed:"Interface call failed"},superNineGrid:{add:"Create"},fsUpload:{upload:"Upload",download:"Download",delete:"Delete",preview:"Preview",name:"Name",picture:"Picture",operating:"Operating",uploadSucceeded:"Upload succeeded",theNumberOfUploadsExceedsTheLimitTheLimitIs:"The number of uploads exceeds the limit. The limit is"},messageVideo:{attemptingToIdentify:"Attempting to identify",callingRearCamera:"Calling rear camera",identificationFailed:"Identification failed"},IntervalSelection:{year:"year",quarter:"quarter",auxiliary:"auxiliary word for ordinal numbers",week:"week"}},cn={imatrixUIPublicModel:{sure:"确定",cancel:"取消",allDepartments:"所有部门",allUsers:"所有用户",reset:"重置",to:"至",edit:"操作",clear:"清空",download:"下载",delete:"删除",preview:"预览",add:"增加",graphView:"图形视图",listView:"列表视图",fieldName:"字段名(*)",operator:"操作符",value:"值(*)",andOr:"并且/或者",whenTheVariableIsEmpty:"变量为空时",perhaps:"或者",also:"并且",greaterThan:"大于",lessThan:"小于",beEqualTo:"等于",notGreaterThan:"不大于",notLessThan:"不小于",notEqualTo:"不等于",contain:"包含",notIncluded:"不包含",laterThan:"晚于",earlierThan:"早于",noLaterThan:"不晚于",noEarlierThan:"不早于",ignore11:"忽略(1=1)",nonConformity:"不符合(1<>1)",switchToNormalQuery:"切换为普通查询",switchToAdvancedQuery:"切换为高级查询",isNull:"等于Null",isNotNull:"不等于Null",previewImage:"预览图片",fullScreen:"全屏"},imatrixUIMessage:{whetherToConfirmDeletion:"是否确认删除",tips:"提示",pleaseEnterContent:"请输入内容",internalServerError:"请求失败",pleaseSelectDepartment:"请选择部门",pleaseSelectPersonnel:"请选择人员",pleaseRemoveallpersonnelBeforeSelectingSpecificPersonnel:"请先移除所有人员,再选择具体人员",queryResultIsEmpty:"查询结果为空",pleaseSelectATeam:"请选择工作组",pleaseEnterTeamName:"请输入工作组名称",validationFailed:"验证失败",selectionDate:"选择日期",selectTime:"选择时间",pleaseEnterATimePoint:"请输入时间点",pleaseSelect:"请选择",startDate:"开始日期",endDate:"结束日期",noExportColumnsConfigured:"没有配置导出列",organizationTreeNoResultNotRemove:"未选择任何信息,无需移除",exceedFileSize:"超过文件大小限制{fileSize}M",upload:"上传",invalideDoubleValue:"{num} 不是合法的小数",noJumpPage:"未配置跳转页面",saveSuccessfully:"保存成功",pleaseInputSearchCondition:"请输入查询条件",fileUpload:"文件上传",selectYear:"选择年",search:"查询",forbiddenException:"您没有权限访问该资源",theButtonIsNotBoundToAResource:"该按钮未绑定资源,请先绑定资源",asyncExport:"正在异步导出,请等待消息通知!",selectedWorkingGroup:"已选工作组"},superGrid:{columnConfig:"字段配置",pleaseSaveOrCancelEditingLine:"请先保存或撤销编辑第 {row} 行数据",pleaseSaveLine:"请先保存第 {row} 行数据",noNeedToSaveRow:"无需保存第 {row} 行数据",pleaseSetURLToSaveRowInformation:"请设置“保存行信息的url”",lineSavedSuccessfully:"第 {row} 行保存成功",theReturnValueOfTheBeforesaveCallbackMethodIsFalse:"beforeSave回调方法返回值为false",lineNoNeedToUndoEdit:"第 {row} 行无需撤销编辑",lineCancelledSuccessfully:"第 {row} 行撤销成功",label:"字段名",isShow:"是否显示",isExportable:"是否导出",recordLine:"第 {row} 行记录",pageRecordLine:"第 {pageNum} 页第 {row} 行记录",fileName:"文件名称",deleteSuccessful:"删除成功",index:"序号",searchConditionName:"查询条件名称",pleaseInputSearchConditionName:"请输入查询条件名称",saveCondition:"保存条件",saveConditionTitle:"保存查询条件",displayOrder:"显示顺序",width:"列宽",default:"默认",custom:"自定义",show:"显示",hidden:"隐藏",export:"导出",unExport:"不导出",whetherToConfirmReset:"是否确认重置?",resetSuccessful:"重置成功",dragColumnOrderMessage:"支持拖动改变列顺序",selectAll:"全选",viewImage:"查看图片",previewTitleWhenNotImg:"非图片格式,使用其它方式预览",refresh:"刷新",open:"展开",fold:"收起"},departmentTree:{},departmentTreeInline:{pleaseEnterDepartmentName:"请输入部门名称",name:"部门名称",code:"部门编码",removeDepartment:"移除部门",selectedDept:"已选部门",namePath:"名称路径"},departmentUserTree:{pleaseEnterUserInformation:"请输入用户信息",selectedPeople:"已选人员",searchFieldUserName:"姓名",searchFieldLoginName:"登录名",searchFieldEmail:"邮箱",searchFieldTelephone:"手机号",searchFieldJobNumber:"工号",searchFieldHonorificName:"尊称"},departmentUserTreeInline:{name:"姓名",department:"所属部门",branch:"所属分支",removeUser:"移除用户",email:"邮箱",loginName:"登录名"},workgroupTree:{allTeamMembers:"所有工作组人员",name:"工作组名称",code:"工作组编码",removeWorkgroup:"移除工作组",workingGroupName:"工作组名称",workingGroupNumber:"工作组编号",workgroupDescription:"工作组描述"},workflowButton:{save:"暂存",submit:"提交",approve:"同意",refuse:"不同意",agreement:"赞成",oppose:"反对",kiken:"弃权",get_back_button:"取回",copy:"抄送",draw:"领取",abandon_draw:"放弃领取",add_sign:"加签",remove_sign:"减签",signoff:"签收",assign:"交办",assign_task:"转办",readed:"已阅",export_report:"导出报告",draw_dept_task:"部门领取",abandon_draw_dept_task:"放弃部门领取"},workflowHistoryList:{specailText:"特",index:"序号",taskName:"环节名称",operation:"流转操作",opinion:"办理意见",processStart:"流程开始",processEnd:"流程结束",process_start:"[{1}]流程开始",prcoess_end:"[{1}]流程结束",force_end_process:"{1}强制结束了该流程,[{2}]的任务被取消",history_jump:"流程{3}到[{1}],[{2}]的任务被取消",history_back:"{1}退回任务,流程退回到[{2}]",history_removesign:"{1}给[{2}]减签",history_changetransactor_and_delegate:"{1}把办理人[{2}]更改成[{3})],{4}把任务委托给了[{5}]",history_changetransactor:"{1}把办理人[{2}]更改成[{3}]",history_addsign:"{1}给[{2}]加签",history_addtransactor:"{1}增加办理人[{2}]",history_removetransactor:"{1}减少办理人[{2}]",history_delegate_and_assign:"{1}把任务指派给了[{2}],[{3}]把任务委托给了[{4}]",history_assign:"{1}把任务指派给了[{2}]",transfer:"{1}移交给[{2}]",history_complete_transfer:"{1}执行了[{2}]操作,取消了其它接收人[{3}]的任务",history_delegate_receive:"{1}收回委托给[{2}]的任务",history_delegate:"{1}已把任务[{2}]委托给[{3}]",history_quit_transfer:"{1}离职,已把任务[{2}]移交给了[{3}]",history_change_job_transfer:"{1}换岗,已把任务[{2}]移交给了[{3}]",commonButtonOperation:"{1}执行了[{2}]操作",history_draw_task:"{1}领取了任务,取消了候选人[{2}]的任务",history_abandon_draw:"{1}放弃领取该任务,还原了候选人[{2}]的任务",create_copy_task:"{1}把任务抄送给了[{2}]",toDoText:"待处理",operator:"操作人",operatorLg:"操作人登录名",operatorDept:"操作人部门",operationTime:"操作时间",history_draw_dept_task:"{1}领取了部门[{2}]的任务",history_abandon_draw_dept_task:"{1}放弃领取部门[{2}]的任务"},gateway:{timeout:"接口调用超时",callFailed:"接口调用失败"},superNineGrid:{add:"新建"},fsUpload:{upload:"上传",download:"下载",delete:"删除",preview:"预览",name:"名称",picture:"图片",operating:"操作",uploadSucceeded:"上传成功",theNumberOfUploadsExceedsTheLimitTheLimitIs:"上传数量超过限制,限制数量为"},messageVideo:{attemptingToIdentify:"正在尝试识别....",callingRearCamera:"正在调用后置摄像头...",identificationFailed:"识别失败"},IntervalSelection:{year:"年",quarter:"季度",auxiliary:"第",week:"周"}},messages$1={en,cn},i18n=createI18n({locale:"cn",messages:messages$1,legacy:!1});class CalculatorFactory{constructor(){if(new.target===CalculatorFactory)throw new Error("抽象类不能实例化!")}isNullValue(t,n){return(t==null||t+""=="")&&n==="IS_NULL"}isNotNullValue(t,n){return t!=null&&t+""!=""&&n==="IS_NOT_NULL"}isEQEmptyValue(t,n,r){return(t==null||t+""=="")&&(r==null||r+""=="")&&(n==="EQ"||n==="CONTAIN")}}class NumberCalculator extends CalculatorFactory{constructor(t,n,r){if(super(),this.isNotNullValue(t,n))this.result=!0;else if(this.isNullValue(t,n))this.result=!0;else if(this.isEQEmptyValue(t,n,r))this.result=!0;else if(t==null)this.result=!1;else{const i=+(t+""),o=+(r+"");if(n==="GET")this.result=i>=o;else if(n==="LET")this.result=i<=o;else if(n==="GT")this.result=i>o;else if(n==="LT")this.result=i<o;else if(n==="NET")this.result=i!==o;else if(n==="EQ")this.result=i===o;else if(n==="IS_NULL")this.result=t==null;else if(n==="IS_NOT_NULL")this.result=t!=null;else throw new Error("表达式不合法:"+t+" "+n+" "+r)}}}class TextCalculator extends CalculatorFactory{constructor(t,n,r){if(super(),this.isNullValue(t,n))this.result=!0;else if(this.isEQEmptyValue(t,n,r))this.result=!0;else if(this.isNotNullValue(t,n))this.result=!0;else if(t==null)this.result=!1;else if(n==="NET")this.result=t!==r;else if(n==="EQ")this.result=t===r;else if(n==="NOT_CONTAIN")this.result=!t.includes(r);else if(n==="CONTAIN")this.result=t.includes(r);else if(n==="IS_NULL")this.result=t==null||t==="";else if(n==="IS_NOT_NULL")this.result=t!=null&&t!=="";else throw new Error("表达式不合法:"+t+" "+n+" "+r)}}function getAbstractUserFactory(e){switch(e){case"TEXT":return TextCalculator;case"DOUBLE":return NumberCalculator;case"FLOAT":return NumberCalculator;case"INTEGER":return NumberCalculator;case"LONG":return NumberCalculator;case"DATE":return NumberCalculator;case"TIME":return NumberCalculator;default:return TextCalculator}}function executeExpression(e,t,n,r){const i=getAbstractUserFactory(r);return new i(e,t,n).result}function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var js_cookie$1={exports:{}};/*!
22
- * JavaScript Cookie v2.2.1
23
- * https://github.com/js-cookie/js-cookie
24
- *
25
- * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
26
- * Released under the MIT license
27
- */(function(e,t){(function(n){var r;if(e.exports=n(),r=!0,!r){var i=window.Cookies,o=window.Cookies=n();o.noConflict=function(){return window.Cookies=i,o}}})(function(){function n(){for(var o=0,a={};o<arguments.length;o++){var s=arguments[o];for(var l in s)a[l]=s[l]}return a}function r(o){return o.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function i(o){function a(){}function s(u,c,d){if(!(typeof document>"u")){d=n({path:"/"},a.defaults,d),typeof d.expires=="number"&&(d.expires=new Date(new Date*1+d.expires*864e5)),d.expires=d.expires?d.expires.toUTCString():"";try{var f=JSON.stringify(c);/^[\{\[]/.test(f)&&(c=f)}catch{}c=o.write?o.write(c,u):encodeURIComponent(String(c)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),u=encodeURIComponent(String(u)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var h="";for(var p in d)d[p]&&(h+="; "+p,d[p]!==!0&&(h+="="+d[p].split(";")[0]));return document.cookie=u+"="+c+h}}function l(u,c){if(!(typeof document>"u")){for(var d={},f=document.cookie?document.cookie.split("; "):[],h=0;h<f.length;h++){var p=f[h].split("="),g=p.slice(1).join("=");!c&&g.charAt(0)==='"'&&(g=g.slice(1,-1));try{var C=r(p[0]);if(g=(o.read||o)(g,C)||r(g),c)try{g=JSON.parse(g)}catch{}if(d[C]=g,u===C)break}catch{}}return u?d[u]:d}}return a.set=s,a.get=function(u){return l(u,!1)},a.getJSON=function(u){return l(u,!0)},a.remove=function(u,c){s(u,"",n(c,{expires:-1}))},a.defaults={},a.withConverter=i,a}return i(function(){})})})(js_cookie$1);var js_cookieExports=js_cookie$1.exports;const js_cookie=getDefaultExportFromCjs(js_cookieExports),Cookies=_mergeNamespaces({__proto__:null,default:js_cookie},[js_cookieExports]),jwtKey="JWT",currentUserNameKey="USERNAME",currentUserInfoKey="CURRENT_USER",currentSystemUrlKey="CURRENT_SYSTEM_URL_";function getToken$1(){let e=getCookieCache(jwtKey);const t=window.$vueApp.config.globalProperties.projectModel;return!e&&t&&t==="developing.model"&&(e=getSessionCache(jwtKey)),e}function setToken(e){setCookieCache(jwtKey,e),setSessionCache(jwtKey,e)}function removeToken(){removeCookieCache(jwtKey),removeSessionCache(jwtKey)}function getUsername(){let e=getCookieCache(currentUserNameKey);return e||(e=getSessionCache(currentUserNameKey)),e}function setUsername(e){setSessionCache(currentUserNameKey,e),setCookieCache(currentUserNameKey,e)}function removeUsername(){removeSessionCache(currentUserNameKey),removeCookieCache(currentUserNameKey)}function getCurrentUser(){let e=getCookieCache(currentUserInfoKey);if(e||(e=getSessionCache(currentUserInfoKey)),e)return JSON.parse(e)}function setCurrentUser(e){if(e){e.password&&(e.password=null);const t=JSON.stringify(e);setSessionCache(currentUserInfoKey,t),setCookieCache(currentUserInfoKey,t)}}function removeCurrentUser(){removeSessionCache(currentUserInfoKey),removeCookieCache(currentUserInfoKey)}function getCookieCache(e){return console.log("%c描述-120304","color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px",Cookies),js_cookieExports.get(e)}function setCookieCache(e,t){js_cookieExports.set(e,t,{path:"/"})}function removeCookieCache(e){js_cookieExports.remove(e,{path:"/"})}function getSessionCache(e){return window.sessionStorage.getItem(e)}function setSessionCache(e,t){return window.sessionStorage.setItem(e,t)}function removeSessionCache(e){window.sessionStorage.removeItem(e)}function getSystemCacheUrlByCode(e){if(e||(e=window.$vueApp.config.globalProperties.customSystem),e||(e=window.$vueApp.config.globalProperties.systemCode),e){const t=getSystemCacheUrl();if(t)return t[e]}}function getSystemCacheUrl(){let e=getCookieCache(currentSystemUrlKey);if(e||(e=getSessionCache(currentSystemUrlKey)),e)return JSON.parse(e)}function setSystemCacheUrl(e){if(e){const t=JSON.stringify(e);setSessionCache(currentSystemUrlKey,t),setCookieCache(currentSystemUrlKey,t)}}function removeSystemCacheUrl(){removeSessionCache(currentSystemUrlKey),removeCookieCache(currentSystemUrlKey)}const authApi={getToken:getToken$1,setToken,removeToken,getUsername,setUsername,removeUsername,getCurrentUser,setCurrentUser,removeCurrentUser,getCookieCache,setCookieCache,removeCookieCache,getSessionCache,setSessionCache,removeSessionCache,getSystemCacheUrlByCode,getSystemCacheUrl,setSystemCacheUrl,removeSystemCacheUrl};function getToken(){return authApi.getToken()}function getRelativeBaseUrl(e){if(window.$vueApp.config.globalProperties.projectModel===void 0||window.$vueApp.config.globalProperties.projectModel!=="developing.model"){let t=getUrlPrefix(location.href);if(window.sessionStorage.setItem("relativeUrl",t),t&&e){let n="";const r=e.split("/");if(r.length>=3){const i=r[0]+"//"+r[2];n=e.substring(e.indexOf(i)+i.length)}return t.lastIndexOf("/")===t.length-1&&(t=t.substring(0,t.lastIndexOf("/"))),n?t+n:t}}return e}function getUrlPrefix(e){const t=e.split("#");if(t.length>0){const n=t[0];let r=n;const i=n.split("/");return i.length>=3&&(r=i[0]+"//"+i[2]+"/"),r}}function isShowMenuRoute(){let e=window.$vueApp.config.globalProperties.showMenuRoute;return e===void 0&&(e="false"),e==="true"}function getSystemFrontendUrl(e){return window.$vueApp.config.globalProperties.projectModel&&window.$vueApp.config.globalProperties.projectModel==="developing.model"&&window.$vueApp.config.globalProperties.frontUrl?window.$vueApp.config.globalProperties.frontUrl:getRelativeBaseUrl(e)}function isPlateSys(e){return!!(e&&(e==="iMatrix"||e==="portal"||e==="mms"||e==="task"||e==="wf"||e==="dc"||e==="mc"||e==="mobile"||e==="acs"||e==="bs"||e==="pcm"))}function isPromise$1(e){return e&&Object.prototype.toString.call(e)==="[object Promise]"}const langKey="AMB_LANG_INFO";function getLangs(){return authApi.getCookieCache(langKey)}function getLangByShort(e){let t;const n=getLangs();return n&&(t=JSON.parse(n)[e]),t||(t="zh_CN"),t}function getI18n(){return window.$locale?i18n.locale=window.$locale:i18n.locale="cn",i18n.global}function getLanguageWithLocale(){let e=window.$locale;return(!e||e==="zh")&&(e="cn"),getLangByShort(e)}function analysisCondition(e,t,n,r,i,o,a){if(e===void 0||e===""||e===null)return!0;(typeof i>"u"||i===null)&&(i=!1);let s={};n&&typeof n=="string"&&n!==""?s=JSON.parse(n):n&&typeof n=="object"&&(s=n);let l={};r&&typeof r=="string"&&r!==""?l=JSON.parse(r):r&&typeof r=="object"&&(l=r);let u=[];return e&&typeof e=="string"&&e!==""?u=JSON.parse(e):e&&Array.isArray(e)&&(u=e),parseCondition(t,u,i,o,s,l,a)}function parseCondition(entity,conditionList,isSql,tableName,additionalParamMap,contextParameterMap,parentFormData){if(conditionList==null||conditionList.length===0)return!0;let conditions="";for(let e=0;e<conditionList.length;e++){const t=conditionList[e];let n=t.propName,r=t.propDbName;if((!n||n==="")&&(!r||r===""))continue;let i;if(isSql&&r){if(r.indexOf("parent_+_")!==-1?(r=r.replace("parent_+_",""),r=r.split("_+_")[1],i=getValue$1(parentFormData,r,isSql)):i=getValue$1(entity,r,isSql),i==null&&tableName&&r.toLowerCase().startsWith(tableName.toLowerCase()+".")){const p=r.substring(r.indexOf("."));i=getValue$1(entity,p,isSql)}}else n.indexOf("parent_+_")!==-1?(n=n.replace("parent_+_",""),n=n.split("_+_")[1],i=getValue$1(parentFormData,n,isSql)):i=getValue$1(entity,n,isSql),r&&i==null&&(i=getValue$1(entity,r,isSql));const o=t.operator,a=t.propValue,s=t.dataType,l=t.variableIsNull;let u=getPropValue(a,entity,additionalParamMap,contextParameterMap);l&&l==="null"&&(u===void 0||u==="")&&(u=null);let c=executeExpression(i,o,u,s);const d=t.leftBracket,f=t.rightBracket;let h=t.joinSign;if(d&&d!==null&&d!==""&&(conditions=conditions+d,conditions=conditions+" "),l&&l!=="null"&&(u==null||u+""=="")&&(l==="1=1"?c=!0:c=!1),conditions+=c+" ",f&&f!==null&&f!==""&&(conditions=conditions+f,conditions=conditions+" "),e<conditionList.length-1&&h&&h!==null&&h!==""){const p=h.toLowerCase();p==="and"?h=p.replace("and","&&"):p==="or"&&(h=p.replace("or","||")),conditions+=h+" "}}return console.log("parseCondition----conditions=",conditions),conditions?eval("("+conditions+")"):!0}const REPLACE_DOT="__";function getValue$1(e,t,n){let r=null;return e&&e!==null&&t&&t!==null&&(r=getValueByField(e,t),r==null&&n&&(r===void 0||r==null)&&t.indexOf(".")>0&&(t=t.replace(".",REPLACE_DOT),r=getValueByField(e,t))),r}function getValueByField(e,t){if(e&&e!==null){let n;return t.indexOf(".")>0?n=getSubEntityValue(e,t):(n=e[t.toUpperCase()],n===void 0&&(n=e[t.toLowerCase()])),n}}function getSubEntityValue(e,t){let n=null,r=e;const i=t.split("\\.");for(let o=0;o<i.length;o++){const a=i[o];o===i.length?n=getSubEntityFieldValue(r,a):r=getSubEntityFieldValue(r,a)}return n}function getSubEntityFieldValue(e,t){return e==null?null:e[t]}function getContextValue(e,t){if(e)return e[t]}function getPropValue(e,t,n,r,i,o,a){let s=null;if(e&&e!==null&&e!=="")if(e==="null")s=null;else if(e.includes("${context.")||e.includes("${request.")||e.includes("${obj.")){if(e.includes("${context."))e=e.replace("${context.","").replace("}",""),s=getContextValue(r,e);else if(e.includes("${request.")&&e!=="${request.term}")e=e.replace("${request.","").replace("}",""),n&&n!=null&&Object.keys(n).indexOf(e)>=0&&n[e]&&n[e]!==null?s=n[e]:s=null;else if(e.includes("${obj."))if(t===void 0||t==null)s=null;else{const l=e.replace("${obj.","").replace("}","");s=getEntityFieldValue(t,l)}}else if(e.includes("${parent."))if(i===void 0||i==null)s=null;else{const l=e.replace("${parent.","").replace("}","");s=getEntityFieldValue(i,l)}else if(e.includes("${task."))if(a===void 0||a==null)s=null;else{const l=e.replace("${task.","").replace("}","");s=getEntityFieldValue(a,l)}else if(e.includes("${subObj."))if(o===void 0||o==null)s=null;else{const l=e.replace("${subObj.","").replace("}","");s=getEntityFieldValue(o,l)}else e.includes("${input.")?s=e.replace("${input.","").replace("}",""):s=e;return s}function analysisValue(e,t,n,r){if(!e)return;let i="";const o=e.split("-#-#");return o!=null&&o.length>0&&o.forEach(a=>{let s=getPropValue(a,t,n,r);(!s||s===null)&&(s=""),i+=s}),i}function setEntityFieldValue(e,t,n){if(t&&e)if(t&&t.indexOf(".")>0){const r=getParentObjectUtil(t,e);if(r){const i=t.substring(t.lastIndexOf(".")+1);r[i]===void 0?r[t.substring(t.lastIndexOf(".")+1)]=n:r[i]=n}}else e[t],e[t]=n}function getEntityFieldValueWithOutCase(e,t){if(t&&t.indexOf(".")>0){const n=getParentObjectUtil(t,e),r=t.substring(t.lastIndexOf(".")+1);return n[r]}else return e[t]}function getEntityFieldValue(e,t,n){let r=getEntityFieldValueWithCase(e,t);return r==null&&(r=getEntityFieldValueWithCase(e,t.toLowerCase())),(r===void 0||r===null&&n===void 0)&&(r=getEntityFieldValueWithCase(e,t.toUpperCase())),r}function getEntityFieldValueWithCase(e,t){if(t&&t.indexOf(".")>0){const n=getParentObjectUtil(t,e),r=t.substring(t.lastIndexOf(".")+1);return n[r]}else return e[t]}function getParentObjectUtil(e,t){const n=e.split(".");if(n.length===1)return t;{let r;for(let i=0;i<n.length-1;i++)i===0?r=getParentModelProp(n[i],t):r=getParentModelProp(n[i],r);return r}}function getParentModelProp(e,t){let n=getParentModelPropWithCase(e,t);return n===void 0&&(n=getParentModelPropWithCase(e.toLowerCase(),t)),n===void 0&&(n=getParentModelPropWithCase(e.toUpperCase(),t)),n}function getParentModelPropWithCase(e,t){return t||(t={}),!t[e]&&!t[e.toUpperCase()]&&(t[e]={}),t[e]}function getPropNameWhenJoinTable(e,t,n){if(e&&t!==void 0&&t===!0){const r="__";e.indexOf(".")>0?e=e.replace(".",r):n&&n!==null&&n!==""&&e.indexOf(n+r)<0&&(e=n+r+e)}return e}function isImage(e){return!!/\.(jpg|JPG|jpeg|JPEG|png|PNG|gif|GIF|bmp|BMP|psd|PSD|tif|TIF)$/.test(e)}const utils={getSearchUserFields(){const e=getI18n();return[{value:"name",label:e.t("departmentUserTree.searchFieldUserName")},{value:"loginName",label:e.t("departmentUserTree.searchFieldLoginName")},{value:"email",label:e.t("departmentUserTree.searchFieldEmail")},{value:"telephone",label:e.t("departmentUserTree.searchFieldTelephone")},{value:"jobNumber",label:e.t("departmentUserTree.searchFieldJobNumber")},{value:"honorificName",label:e.t("departmentUserTree.searchFieldHonorificName")}]},removeRow(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].id===t.id)return r===0?(e.shift(),e):r===n-1?(e.pop(),e):(e.splice(r,1),e);return e},storeSeachValue(e,t,n){if(n&&n!==""){var r=e.getObject(t);if(r&&r.length>0){var i=r.filter(this.createFilter(n));if(i.length===0){const a={value:n};r.push(a),e.setObject(t,r)}}else{var o=[];const a={value:n};o.push(a),e.setObject(t,o)}this.restaurants=e.getObject(t)}},createFilter(e){return t=>t.value.toLowerCase().indexOf(e.toLowerCase())===0},handleSelectUtil(e,t){this.storeSeachValue(t,this.searchStoreKey,this.filterText),this.search(e.value)},analysisLabelTag(e,t,n,r){let i="";if(e){let a;if(e!==""&&typeof e=="string"?a=e.split("-#-#"):typeof e=="object"&&(a=e),a&&a.length>0)for(var o=0;o<a.length;o++){let s=a[o];if(s.indexOf("obj.")!==-1){if(s=s.replace("${obj.","").replace("}",""),t){let l=t[s];this.childIsObjectProp(s)&&(l=this.childObjectPropOriginalValue(t,s)),i+=l}}else if(s.indexOf("request.")!==-1){if(s=s.replace("${request.","").replace("}",""),r){const l=r[s];l&&(i+=l)}}else if(s.indexOf("input.")!==-1)s=s.replace("${input.","").replace("}",""),i+=s;else if(s.indexOf("context.")!==-1&&(s=s.replace("${context.","").replace("}",""),n)){const l=n[s];l&&(i+=l)}}}return i},childIsObjectProp(e){return e.indexOf(".")>0},childObjectPropOriginalValue(e,t){try{let n=e;return t.split(".").forEach(i=>{if(n)n=n[i];else throw n="",n}),n}catch{return""}},getSelectUsers(e,t,n){return new Promise((r,i)=>{e?t?this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/select-users?searchField="+e+"&selectUserInfo="+t+"&separator="+n).then(o=>{r(o)}).catch(o=>{i(o)}):r([]):r([])})}},departmentTreeService={filterAppendNodes(e){this.$http.post(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/search-pc-depts",this.searchParam).then(t=>{if(t){if(t.length===0){this.searchResult=[],this.$message({showClose:!0,type:"error",message:getI18n().t("imatrixUIMessage.queryResultIsEmpty")});return}this.searchResult=t}else this.$message({showClose:!0,type:"error",message:getI18n().t("imatrixUIMessage.queryResultIsEmpty")})})},search(e){this.searchValue=e;let t=e;t&&(t=t.trim()),this.searchParam.searchValue=t,this.searchParam.departmentInfo=this.departmentInfo,this.filterAppendNodes(e)},handleSelect(e){this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/api/departments?departmentCode="+e.code).then(t=>{if(t!==null)for(const n in t)e.hasOwnProperty(n)&&(e[n]=t[n]);this.filterText="",this.searchValue="",this.setMemoryCacheData(e,"department"),this.multiple?this.selectResult.findIndex(r=>r.code===e.code)<0&&this.selectResult.push(e):(this.packageSelectResult(e),$emit(this,"result",this.selectNodeInfo))})},querySearch(e,t){!this.filterText&&this.filterText.length===0?this.memorySearch(e,t):(this.search(this.filterText),t([]))},clickSearch(){this.storeSeachValue(),this.search(this.filterText)},loadDepartmentWhenSearch(e,t){return new Promise((n,r)=>{if(t.length===e)n();else{const i=t[e];let o=i;const a="~";i.indexOf(a)>-1&&(o=i.substring(i.indexOf("~")+1)),this.loadDepartment(o).then(()=>{this.loadDepartmentWhenSearch(++e,t)}).catch(s=>{r(s)})}})},handleCheckNode(e,t){if(t.checkedKeys.indexOf(e.id)>-1){if(this.isloading=!0,e.nodeType&&e.nodeType==="DEPARTMENT"&&e.data){const n=JSON.parse(e.data);this.selectUser(null,n)}e.childDepartments?(this.$refs.deparmentTree.store.nodesMap[e.id].expanded=!0,this.checkedNodeAndChildren(e),this.isloading=!1):e.leaf?this.isloading=!1:(this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/departments/"+e.id).then(n=>{this.$refs.deparmentTree.updateKeyChildren(e.id,n),this.$refs.deparmentTree.store.nodesMap[e.id].expanded=!0,this.checkedNodeAndChildren(e)}),this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/child-departments/"+e.id).then(n=>{n&&!this.checkStrictly&&(n.forEach(r=>{this.selectUser(null,r)}),this.isloading=!1)}))}else this.cancelChildCheckedNodes(e)},loadNode(e,t){var n=0;e.level===0?n=0:n=e.data.id;var r=[];this.$refs.deparmentTree&&(r=this.$refs.deparmentTree.getCheckedKeys()),this.initLoadDepartment(n,e,t,r)},initLoadDepartment(e,t,n,r){this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/departments/"+e).then(i=>{if(n(i),this.$refs.deparmentTree.updateKeyChildren(e,i),e===0){const o=i[0].data;i[0].disable=!0,this.tenantInfo=JSON.parse(o),this.containBranch=i[0].containBranch,this.departmentInfo&&this.departmentInfo.length>0?this.loadPointDepartments():this.loadDepartment(this.tenantNodeId)}this.isClickNode?(this.isClickNode=!1,this.checkedNodeAndChildren(t.data)):r&&r.indexOf(e)>-1&&this.checkedNodeAndChildren(t.data)})},loadDepartment(e,t,n){return new Promise((r,i)=>{this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/departments/"+e).then(o=>{this.$refs.deparmentTree.updateKeyChildren(e,o),this.$refs.deparmentTree.store.nodesMap[e]&&(this.$refs.deparmentTree.store.nodesMap[e].expanded=!0),r()}).catch(o=>{console.log("error",o)})})},loadPointDepartments(){this.$http.post(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/point-departments",this.departmentInfo).then(e=>{this.$refs.deparmentTree.updateKeyChildren(this.tenantNodeId,e),this.$refs.deparmentTree.store.nodesMap[this.tenantNodeId]&&(this.$refs.deparmentTree.store.nodesMap[this.tenantNodeId].expanded=!0)})},getSelectDepts(e,t,n){return new Promise((r,i)=>{e?t?this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/select-departments?searchField="+e+"&selectDeptInfo="+t+"&separator="+n).then(o=>{r(o)}).catch(o=>{i(o)}):r([]):r([])})},packageAllDept(){var e={id:this.tenantNodeId,name:"所有部门"};return e},initSelectDepts(){return new Promise((e,t)=>{const n=[];this.selectDepartmentInfo?this.selectDepartmentInfo===this.tenantNodeId||this.selectDepartmentInfo==="所有部门"?(n.push(this.packageAllDept()),e(n)):this.getSelectDepts(this.searchField,this.selectDepartmentInfo,this.separator).then(r=>{e(r)}).catch(r=>{t(r)}):e(n)})}},searchResult_vue_vue_type_style_index_0_lang$3="",_sfc_main$11={data(){let e=this.height;return e=e.substring(0,e.indexOf("px")),{singleUserIndex:null,selectedUser:null,myHeight:parseInt(e)+30+"px",ElIconPlus:plus_default,ElIconDelete:delete_default}},name:"UserResult",props:{gridData:{type:Array,default:null},containBranch:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},isSearchResult:{type:Boolean,default:!0},height:{type:String,default:"300px"},selectResult:{type:Array,default:function(){return[]}}},created(){console.log("search-result---",this.gridData)},methods:{removeUser(e,t){$emit(this,"removeUser",e,t)},addUser(e,t){$emit(this,"addUser",e,t)},selectUser(e){$emit(this,"selectResult",this.gridData[e])},rowClick(e,t,n){this.singleUserIndex=e.row_index,$emit(this,"selectResult",e)},tableRowClassName({row:e,rowIndex:t}){e.row_index=t},rowDblclick(e,t,n){this.multiple?$emit(this,"addUser",null,e):$emit(this,"resultRowDblclick",e)},isDisable(e){if(this.selectResult){const t=this.selectResult.filter(this.filterDept(e));if(t&&t.length>0)return!0}return!1},filterDept(e){return t=>t.id===e.id}},emits:["removeUser","addUser","selectResult","resultRowDblclick"]},_hoisted_1$N={style:{height:"100%"}},_hoisted_2$v=["title"],_hoisted_3$l=["title"],_hoisted_4$g=["title"],_hoisted_5$c={style:{height:"395px"},class:"roleQuery_center_area"},_hoisted_6$7={class:"roleQuery_notAvailable",style:{width:"120px",height:"120px"}},_hoisted_7$6={class:"roleQuery_notAvailable_text"};function _sfc_render$11(e,t,n,r,i,o){const a=Vue.resolveComponent("el-radio"),s=Vue.resolveComponent("el-table-column"),l=Vue.resolveComponent("el-button"),u=Vue.resolveComponent("el-table");return Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$N,[Vue.createVNode(u,{ref:"superGrid",data:n.gridData,"row-key":"id","row-class-name":o.tableRowClassName,"max-height":i.myHeight,border:"",fit:"",onRowClick:o.rowClick,onRowDblclick:o.rowDblclick},{empty:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_5$c,[Vue.createElementVNode("div",_hoisted_6$7,[Vue.createElementVNode("span",_hoisted_7$6,Vue.toDisplayString(e.$t("message.NoContent")),1)])])]),default:Vue.withCtx(()=>[n.multiple===!1?(Vue.openBlock(),Vue.createBlock(s,{key:0,width:"60"},{default:Vue.withCtx(c=>[Vue.createVNode(a,{modelValue:i.singleUserIndex,"onUpdate:modelValue":t[0]||(t[0]=d=>i.singleUserIndex=d),label:c.$index,onChange:o.selectUser},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(c.$index+1),1)]),_:2},1032,["modelValue","label","onChange"])]),_:1})):Vue.createCommentVNode("",!0),n.multiple&&n.isSearchResult?(Vue.openBlock(),Vue.createBlock(s,{key:1,fixed:"",label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},{default:Vue.withCtx(c=>[Vue.createElementVNode("div",null,[Vue.createVNode(l,{type:"primary",size:"mini",icon:i.ElIconPlus,disabled:o.isDisable(c.row),circle:"",onClick:d=>o.addUser(c.$index,c.row)},null,8,["icon","disabled","onClick"])])]),_:1},8,["label"])):Vue.createCommentVNode("",!0),n.multiple?(Vue.openBlock(),Vue.createBlock(s,{key:2,label:e.$t("superGrid.index"),align:"center",width:"60px"},{default:Vue.withCtx(c=>[Vue.createTextVNode(Vue.toDisplayString(c.$index+1),1)]),_:1},8,["label"])):Vue.createCommentVNode("",!0),n.multiple&&!n.isSearchResult?(Vue.openBlock(),Vue.createBlock(s,{key:3,fixed:"right",label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},{default:Vue.withCtx(c=>[Vue.createElementVNode("div",null,[Vue.createVNode(l,{type:"danger",size:"mini",icon:i.ElIconDelete,circle:"",onClick:d=>o.removeUser(c.$index,c.row)},null,8,["icon","onClick"])])]),_:1},8,["label"])):Vue.createCommentVNode("",!0),Vue.createVNode(s,{label:e.$t("departmentTreeInline.name"),width:170,prop:"name"},{default:Vue.withCtx(c=>[Vue.createElementVNode("span",{class:"ellipsis cell--span",title:c.row.showName},Vue.toDisplayString(c.row.showName),9,_hoisted_2$v)]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("departmentTreeInline.code"),width:140,prop:"code"},{default:Vue.withCtx(c=>[Vue.createElementVNode("span",{class:"ellipsis cell--span",title:c.row.code},Vue.toDisplayString(c.row.code),9,_hoisted_3$l)]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("departmentTreeInline.namePath"),width:140,prop:"namePath"},{default:Vue.withCtx(c=>[Vue.createElementVNode("span",{class:"ellipsis cell--span",title:c.row.namePath},Vue.toDisplayString(c.row.namePath),9,_hoisted_4$g)]),_:1},8,["label"])]),_:1},8,["data","row-class-name","max-height","onRowClick","onRowDblclick"])])}const UserResult$1=_export_sfc(_sfc_main$11,[["render",_sfc_render$11]]),memoryCacheUtils={memorySearch(e,t){var n=this.memoryCacheData,r=n;setTimeout(()=>{t(r)},10*Math.random())},setMemoryCacheData(e,t){t==="departmentUser"?this.setDepartmentUserMemoryCacheData(e):t==="department"&&this.setDepartmentMemoryCacheData(e)},getMemoryCacheData(e){e==="departmentUser"?this.getDepartmentUserMemoryCacheData():e==="department"&&this.getDepartmentMemoryCacheData()},setDepartmentUserMemoryCacheData(e){var n=localStorage$1.getObject(this.memoryCacheKey),r=e.name===void 0||e.name===null||e.name==="undefined"?"":e.name,i=e.loginName===void 0||e.loginName===null||e.loginName==="undefined"?"":e.loginName,o=e.mainDepartmentName===void 0||e.mainDepartmentName===null||e.mainDepartmentName==="undefined"?"":e.mainDepartmentName;const a=r+"("+i+"/"+o+")";var s=-1;n&&n.length>0?s=n.findIndex(l=>l.loginName===e.loginName):n=[],e.value=a,s<0?(n.length===10&&n.splice(10-1,1),n.unshift(e),localStorage$1.setObject(this.memoryCacheKey,n)):(n.splice(s,1),n.unshift(e),localStorage$1.setObject(this.memoryCacheKey,n))},setDepartmentMemoryCacheData(e){var n=localStorage$1.getObject(this.memoryCacheKey),r=e.name===void 0||e.name===null||e.name==="undefined"?"":e.name,i=e.code===void 0||e.code===null||e.code==="undefined"?"":e.code;const o=r+"("+i+")";var a=-1;n&&n.length>0?a=n.findIndex(s=>s.code===e.code):n=[],e.value=o,a<0?(n.length===10&&n.splice(10-1,1),n.unshift(e),localStorage$1.setObject(this.memoryCacheKey,n)):(n.splice(a,1),n.unshift(e),localStorage$1.setObject(this.memoryCacheKey,n))},getDepartmentUserMemoryCacheData(){var e=localStorage$1.getObject(this.memoryCacheKey);e&&e.length>0&&(this.memoryCacheData=e)},getDepartmentMemoryCacheData(){var e=localStorage$1.getObject(this.memoryCacheKey);e&&e.length>0&&(this.memoryCacheData=e)}},departmentMultiTreeInline_vue_vue_type_style_index_0_lang="",_sfc_main$10={data(){return{filterText:"",defaultProps:{id:"id",label:"showName",children:"childDepartments",isLeaf:"leaf"},searchParam:{searchValue:null,treeType:"DEPARTMENT_TREE",departmentInfo:null},count:0,containBranch:!1,tenantNodeId:-1,allSearchNodeIds:[],allExpandNodeIds:[],isClickNode:!1,restaurants:[],searchValue:null,searchStoreKey:"searchDepartment",selectNodeInfo:null,tenantInfo:{},searchResult:[],selectResult:[],isloading:!1,multiple:!0,memoryCacheKey:"DEPARTMENT_MEMORY_KEY",memoryCacheData:[],ElIconSearch:search_default}},name:"InlineDepartmentMultiTree",components:{UserResult:UserResult$1},props:{checkStrictly:{type:Boolean,default:!1},departmentInfo:{type:Array,default:null},height:{type:String,default:"300px"},selectDepartmentInfo:{type:[String,Number],default:null},searchField:{type:String,default:"id"},separator:{type:String,default:","}},computed:{},watch:{filterText(e){e||(this.searchValue=e,this.departmentInfo&&this.departmentInfo.length>0?this.loadPointDepartments():this.loadDepartment(this.tenantNodeId))}},created(){this.initSelectDepts(this.searchField,this.selectDepartmentInfo,this.separator).then(e=>{e&&(this.selectResult=e)})},mounted(){var e=localStorage$1.getObject(this.searchStoreKey);e?this.restaurants=e:this.restaurants=[],this.getMemoryCacheData("department")},methods:{...utils,...departmentTreeService,...memoryCacheUtils,filterNode(e,t,n){return e?t.name.indexOf(e)!==-1:!0},checkedNodeAndChildren(e){let t=e;e.data&&(t=JSON.parse(e.data)),this.selectUser(null,t),this.$refs.deparmentTree.setChecked(e.id,!0);const n=e.childDepartments;n&&!this.checkStrictly&&n.forEach(r=>{this.checkedNodeAndChildren(r)})},cancelChildCheckedNodes(e){const t=JSON.parse(e.data);this.selectResult=this.removeRow(this.selectResult,t),e.id!==this.tenantNodeId&&this.$refs.deparmentTree.setChecked(this.tenantNodeId,!1);const n=e.childDepartments;n&&!this.checkStrictly&&n.forEach(r=>{this.$refs.deparmentTree.setChecked(r.id,!1),this.cancelChildCheckedNodes(r)})},handleCheckChange(e,t,n){},handleNodeExpand(e,t,n){},handleNodeClick(e,t,n){this.clickNodeWhenMultiple(e)},clickNodeWhenMultiple(e){var t=[];if(this.$refs.deparmentTree&&(t=this.$refs.deparmentTree.getCheckedKeys()),t&&t.indexOf(e.id)>-1)this.$refs.deparmentTree.setChecked(e.id,!1),this.checkStrictly||this.cancelChildCheckedNodes(e),this.$refs.deparmentTree.store.nodesMap[e.id].expanded=!0;else{if(e.nodeType&&e.nodeType==="DEPARTMENT"&&e.data){const r=JSON.parse(e.data);this.selectUser(null,r)}this.$refs.deparmentTree.setChecked(e.id,!0);const n=e.childDepartments;n&&n.length>0?this.checkStrictly||this.checkedNodeAndChildren(e):this.isClickNode=!0}},isDepartmentNode(e){return e.id!==this.tenantNodeId&&e.nodeType&&e.nodeType==="DEPARTMENT"&&!e.branch},selectDepartment(){var e=!1,t={ids:[],names:[],codes:[],zhNames:[],enNames:[],departments:[]};if(this.selectResult.length===0)e=!0;else for(var n=0;n<this.selectResult.length;n++){var r=this.selectResult[n];t.ids.push(r.id),t.codes.push(r.code),r.enName?t.enNames.push(r.enName):t.enNames.push(""),r.department?t.departments.push(r.department):t.departments.push(r);const i=r.showName;t.names.push(i),t.zhNames.push(r.name)}t.ids.length>0?(t.containBranch=this.containBranch,$emit(this,"result",t)):e=!0,e&&this.$alert(this.$t("imatrixUIMessage.pleaseSelectDepartment"),this.$t("imatrixUIMessage.tips"),{confirmButtonText:this.$t("imatrixUIPublicModel.sure")})},isSelectTenantNode(e){return e===this.tenantNodeId&&(!this.departmentInfo||this.departmentInfo.length===0)},renderContent(e,{node:t,data:n,store:r}){return t.data.id===-1||t.data.branch||t.data.id===-2||t.data.id,`<span>
21
+ */const VERSION="9.8.0";function initFeatureFlags(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(getGlobalThis().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(getGlobalThis().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(getGlobalThis().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(getGlobalThis().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(getGlobalThis().__INTLIFY_PROD_DEVTOOLS__=!1)}const code$1=CoreWarnCodes.__EXTEND_POINT__,inc$1=incrementer(code$1),I18nWarnCodes={FALLBACK_TO_ROOT:code$1,NOT_SUPPORTED_PRESERVE:inc$1(),NOT_SUPPORTED_FORMATTER:inc$1(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:inc$1(),NOT_SUPPORTED_GET_CHOICE_INDEX:inc$1(),COMPONENT_NAME_LEGACY_COMPATIBLE:inc$1(),NOT_FOUND_PARENT_SCOPE:inc$1(),IGNORE_OBJ_FLATTEN:inc$1(),NOTICE_DROP_ALLOW_COMPOSITION:inc$1()},warnMessages={[I18nWarnCodes.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[I18nWarnCodes.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[I18nWarnCodes.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[I18nWarnCodes.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[I18nWarnCodes.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[I18nWarnCodes.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[I18nWarnCodes.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[I18nWarnCodes.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze"};function getWarnMessage(e,...t){return format$3(warnMessages[e],...t)}const code=CoreErrorCodes.__EXTEND_POINT__,inc=incrementer(code),I18nErrorCodes={UNEXPECTED_RETURN_TYPE:code,INVALID_ARGUMENT:inc(),MUST_BE_CALL_SETUP_TOP:inc(),NOT_INSTALLED:inc(),NOT_AVAILABLE_IN_LEGACY_MODE:inc(),REQUIRED_VALUE:inc(),INVALID_VALUE:inc(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:inc(),NOT_INSTALLED_WITH_PROVIDE:inc(),UNEXPECTED_ERROR:inc(),NOT_COMPATIBLE_LEGACY_VUE_I18N:inc(),BRIDGE_SUPPORT_VUE_2_ONLY:inc(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:inc(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:inc(),__EXTEND_POINT__:inc()};function createI18nError(e,...t){return createCompileError(e,null,process.env.NODE_ENV!=="production"?{messages:errorMessages,args:t}:void 0)}const errorMessages={[I18nErrorCodes.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[I18nErrorCodes.INVALID_ARGUMENT]:"Invalid argument",[I18nErrorCodes.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[I18nErrorCodes.NOT_INSTALLED]:"Need to install with `app.use` function",[I18nErrorCodes.UNEXPECTED_ERROR]:"Unexpected error",[I18nErrorCodes.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[I18nErrorCodes.REQUIRED_VALUE]:"Required in value: {0}",[I18nErrorCodes.INVALID_VALUE]:"Invalid value",[I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[I18nErrorCodes.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[I18nErrorCodes.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[I18nErrorCodes.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},TranslateVNodeSymbol=makeSymbol("__translateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),EnableEmitter=makeSymbol("__enableEmitter"),DisableEmitter=makeSymbol("__disableEmitter"),SetPluralRulesSymbol=makeSymbol("__setPluralRules"),InejctWithOptionSymbol=makeSymbol("__injectWithOption"),DisposeSymbol=makeSymbol("__dispose");function handleFlatJson(e){if(!isObject$2(e))return e;for(const t in e)if(hasOwn(e,t))if(!t.includes("."))isObject$2(e[t])&&handleFlatJson(e[t]);else{const n=t.split("."),r=n.length-1;let i=e,o=!1;for(let a=0;a<r;a++){if(n[a]in i||(i[n[a]]={}),!isObject$2(i[n[a]])){process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.IGNORE_OBJ_FLATTEN,{key:n[a]})),o=!0;break}i=i[n[a]]}o||(i[n[r]]=e[t],delete e[t]),isObject$2(i[n[r]])&&handleFlatJson(i[n[r]])}return e}function getLocaleMessages(e,t){const{messages:n,__i18n:r,messageResolver:i,flatJson:o}=t,a=isPlainObject(n)?n:isArray(r)?{}:{[e]:{}};if(isArray(r)&&r.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(a[l]=a[l]||{},deepCopy(u,a[l])):deepCopy(u,a)}else isString$1(s)&&deepCopy(JSON.parse(s),a)}),i==null&&o)for(const s in a)hasOwn(a,s)&&handleFlatJson(a[s]);return a}function getComponentOptions(e){return e.type}function adjustI18nResources(e,t,n){let r=isObject$2(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=getLocaleMessages(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(isObject$2(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(isObject$2(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function createTextNode(e){return Vue.createVNode(Vue.Text,null,e,0)}const DEVTOOLS_META="__INTLIFY_META__",NOOP_RETURN_ARRAY=()=>[],NOOP_RETURN_FALSE=()=>!1;let composerID=0;function defineCoreMissingHandler(e){return(t,n,r,i)=>e(n,r,Vue.getCurrentInstance()||void 0,i)}const getMetaInfo=()=>{const e=Vue.getCurrentInstance();let t=null;return e&&(t=getComponentOptions(e)[DEVTOOLS_META])?{[DEVTOOLS_META]:t}:null};function createComposer(e={},t){const{__root:n,__injectWithOption:r}=e,i=n===void 0,o=e.flatJson;let a=isBoolean(e.inheritLocale)?e.inheritLocale:!0;const s=Vue.ref(n&&a?n.locale.value:isString$1(e.locale)?e.locale:DEFAULT_LOCALE),l=Vue.ref(n&&a?n.fallbackLocale.value:isString$1(e.fallbackLocale)||isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=Vue.ref(getLocaleMessages(s.value,e)),c=Vue.ref(isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),d=Vue.ref(isPlainObject(e.numberFormats)?e.numberFormats:{[s.value]:{}});let f=n?n.missingWarn:isBoolean(e.missingWarn)||isRegExp(e.missingWarn)?e.missingWarn:!0,h=n?n.fallbackWarn:isBoolean(e.fallbackWarn)||isRegExp(e.fallbackWarn)?e.fallbackWarn:!0,p=n?n.fallbackRoot:isBoolean(e.fallbackRoot)?e.fallbackRoot:!0,g=!!e.fallbackFormat,C=isFunction(e.missing)?e.missing:null,v=isFunction(e.missing)?defineCoreMissingHandler(e.missing):null,m=isFunction(e.postTranslation)?e.postTranslation:null,_=n?n.warnHtmlMessage:isBoolean(e.warnHtmlMessage)?e.warnHtmlMessage:!0,E=!!e.escapeParameter;const x=n?n.modifiers:isPlainObject(e.modifiers)?e.modifiers:{};let w=e.pluralRules||n&&n.pluralRules,y;y=(()=>{i&&setFallbackContext(null);const T={version:VERSION,locale:s.value,fallbackLocale:l.value,messages:u.value,modifiers:x,pluralRules:w,missing:v===null?void 0:v,missingWarn:f,fallbackWarn:h,fallbackFormat:g,unresolving:!0,postTranslation:m===null?void 0:m,warnHtmlMessage:_,escapeParameter:E,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};T.datetimeFormats=c.value,T.numberFormats=d.value,T.__datetimeFormatters=isPlainObject(y)?y.__datetimeFormatters:void 0,T.__numberFormatters=isPlainObject(y)?y.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(T.__v_emitter=isPlainObject(y)?y.__v_emitter:void 0);const A=createCoreContext(T);return i&&setFallbackContext(A),A})(),updateFallbackLocale(y,s.value,l.value);function V(){return[s.value,l.value,u.value,c.value,d.value]}const D=Vue.computed({get:()=>s.value,set:T=>{s.value=T,y.locale=s.value}}),R=Vue.computed({get:()=>l.value,set:T=>{l.value=T,y.fallbackLocale=l.value,updateFallbackLocale(y,s.value,T)}}),O=Vue.computed(()=>u.value),P=Vue.computed(()=>c.value),L=Vue.computed(()=>d.value);function W(){return isFunction(m)?m:null}function U(T){m=T,y.postTranslation=T}function G(){return C}function j(T){T!==null&&(v=defineCoreMissingHandler(T)),C=T,y.missing=v}function K(T,A){return T!=="translate"||!A.resolvedMessage}const z=(T,A,M,$,ne,de)=>{V();let oe;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,i||(y.fallbackContext=n?getFallbackContext():void 0),oe=T(y)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,i||(y.fallbackContext=void 0)}if(M!=="translate exists"&&isNumber(oe)&&oe===NOT_REOSLVED||M==="translate exists"&&!oe){const[re,ge]=A();if(process.env.NODE_ENV!=="production"&&n&&isString$1(re)&&K(M,ge)&&(p&&(isTranslateFallbackWarn(h,re)||isTranslateMissingWarn(f,re))&&warn(getWarnMessage(I18nWarnCodes.FALLBACK_TO_ROOT,{key:re,type:M})),process.env.NODE_ENV!=="production")){const{__v_emitter:fe}=y;fe&&p&&fe.emit("fallback",{type:M,key:re,to:"global",groupId:`${M}:${re}`})}return n&&p?$(n):ne(re)}else{if(de(oe))return oe;throw createI18nError(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)}};function q(...T){return z(A=>Reflect.apply(translate,null,[A,...T]),()=>parseTranslateArgs(...T),"translate",A=>Reflect.apply(A.t,A,[...T]),A=>A,A=>isString$1(A))}function Z(...T){const[A,M,$]=T;if($&&!isObject$2($))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);return q(A,M,assign$2({resolvedMessage:!0},$||{}))}function ae(...T){return z(A=>Reflect.apply(datetime,null,[A,...T]),()=>parseDateTimeArgs(...T),"datetime format",A=>Reflect.apply(A.d,A,[...T]),()=>MISSING_RESOLVE_VALUE,A=>isString$1(A))}function ie(...T){return z(A=>Reflect.apply(number$1,null,[A,...T]),()=>parseNumberArgs(...T),"number format",A=>Reflect.apply(A.n,A,[...T]),()=>MISSING_RESOLVE_VALUE,A=>isString$1(A))}function se(T){return T.map(A=>isString$1(A)||isNumber(A)||isBoolean(A)?createTextNode(String(A)):A)}const le={normalize:se,interpolate:T=>T,type:"vnode"};function Q(...T){return z(A=>{let M;const $=A;try{$.processor=le,M=Reflect.apply(translate,null,[$,...T])}finally{$.processor=null}return M},()=>parseTranslateArgs(...T),"translate",A=>A[TranslateVNodeSymbol](...T),A=>[createTextNode(A)],A=>isArray(A))}function ee(...T){return z(A=>Reflect.apply(number$1,null,[A,...T]),()=>parseNumberArgs(...T),"number format",A=>A[NumberPartsSymbol](...T),NOOP_RETURN_ARRAY,A=>isString$1(A)||isArray(A))}function J(...T){return z(A=>Reflect.apply(datetime,null,[A,...T]),()=>parseDateTimeArgs(...T),"datetime format",A=>A[DatetimePartsSymbol](...T),NOOP_RETURN_ARRAY,A=>isString$1(A)||isArray(A))}function te(T){w=T,y.pluralRules=w}function ue(T,A){return z(()=>{if(!T)return!1;const M=isString$1(A)?A:s.value,$=I(M),ne=y.messageResolver($,T);return isMessageAST(ne)||isMessageFunction(ne)||isString$1(ne)},()=>[T],"translate exists",M=>Reflect.apply(M.te,M,[T,A]),NOOP_RETURN_FALSE,M=>isBoolean(M))}function S(T){let A=null;const M=fallbackWithLocaleChain(y,l.value,s.value);for(let $=0;$<M.length;$++){const ne=u.value[M[$]]||{},de=y.messageResolver(ne,T);if(de!=null){A=de;break}}return A}function b(T){const A=S(T);return A??(n?n.tm(T)||{}:{})}function I(T){return u.value[T]||{}}function k(T,A){if(o){const M={[T]:A};for(const $ in M)hasOwn(M,$)&&handleFlatJson(M[$]);A=M[T]}u.value[T]=A,y.messages=u.value}function B(T,A){u.value[T]=u.value[T]||{};const M={[T]:A};for(const $ in M)hasOwn(M,$)&&handleFlatJson(M[$]);A=M[T],deepCopy(A,u.value[T]),y.messages=u.value}function F(T){return c.value[T]||{}}function X(T,A){c.value[T]=A,y.datetimeFormats=c.value,clearDateTimeFormat(y,T,A)}function Y(T,A){c.value[T]=assign$2(c.value[T]||{},A),y.datetimeFormats=c.value,clearDateTimeFormat(y,T,A)}function he(T){return d.value[T]||{}}function pe(T,A){d.value[T]=A,y.numberFormats=d.value,clearNumberFormat(y,T,A)}function me(T,A){d.value[T]=assign$2(d.value[T]||{},A),y.numberFormats=d.value,clearNumberFormat(y,T,A)}composerID++,n&&inBrowser&&(Vue.watch(n.locale,T=>{a&&(s.value=T,y.locale=T,updateFallbackLocale(y,s.value,l.value))}),Vue.watch(n.fallbackLocale,T=>{a&&(l.value=T,y.fallbackLocale=T,updateFallbackLocale(y,s.value,l.value))}));const H={id:composerID,locale:D,fallbackLocale:R,get inheritLocale(){return a},set inheritLocale(T){a=T,T&&n&&(s.value=n.locale.value,l.value=n.fallbackLocale.value,updateFallbackLocale(y,s.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:O,get modifiers(){return x},get pluralRules(){return w||{}},get isGlobal(){return i},get missingWarn(){return f},set missingWarn(T){f=T,y.missingWarn=f},get fallbackWarn(){return h},set fallbackWarn(T){h=T,y.fallbackWarn=h},get fallbackRoot(){return p},set fallbackRoot(T){p=T},get fallbackFormat(){return g},set fallbackFormat(T){g=T,y.fallbackFormat=g},get warnHtmlMessage(){return _},set warnHtmlMessage(T){_=T,y.warnHtmlMessage=T},get escapeParameter(){return E},set escapeParameter(T){E=T,y.escapeParameter=T},t:q,getLocaleMessage:I,setLocaleMessage:k,mergeLocaleMessage:B,getPostTranslationHandler:W,setPostTranslationHandler:U,getMissingHandler:G,setMissingHandler:j,[SetPluralRulesSymbol]:te};return H.datetimeFormats=P,H.numberFormats=L,H.rt=Z,H.te=ue,H.tm=b,H.d=ae,H.n=ie,H.getDateTimeFormat=F,H.setDateTimeFormat=X,H.mergeDateTimeFormat=Y,H.getNumberFormat=he,H.setNumberFormat=pe,H.mergeNumberFormat=me,H[InejctWithOptionSymbol]=r,H[TranslateVNodeSymbol]=Q,H[DatetimePartsSymbol]=J,H[NumberPartsSymbol]=ee,process.env.NODE_ENV!=="production"&&(H[EnableEmitter]=T=>{y.__v_emitter=T},H[DisableEmitter]=()=>{y.__v_emitter=void 0}),H}function convertComposerOptions(e){const t=isString$1(e.locale)?e.locale:DEFAULT_LOCALE,n=isString$1(e.fallbackLocale)||isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=isFunction(e.missing)?e.missing:void 0,i=isBoolean(e.silentTranslationWarn)||isRegExp(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=isBoolean(e.silentFallbackWarn)||isRegExp(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,a=isBoolean(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,l=isPlainObject(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=isFunction(e.postTranslation)?e.postTranslation:void 0,d=isString$1(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,f=!!e.escapeParameterHtml,h=isBoolean(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let p=e.messages;if(isPlainObject(e.sharedMessages)){const x=e.sharedMessages;p=Object.keys(x).reduce((y,N)=>{const V=y[N]||(y[N]={});return assign$2(V,x[N]),y},p||{})}const{__i18n:g,__root:C,__injectWithOption:v}=e,m=e.datetimeFormats,_=e.numberFormats,E=e.flatJson;return{locale:t,fallbackLocale:n,messages:p,flatJson:E,datetimeFormats:m,numberFormats:_,missing:r,missingWarn:i,fallbackWarn:o,fallbackRoot:a,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:d,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:h,__i18n:g,__root:C,__injectWithOption:v}}function createVueI18n(e={},t){{const n=createComposer(convertComposerOptions(e)),{__extender:r}=e,i={id:n.id,get locale(){return n.locale.value},set locale(o){n.locale.value=o},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(o){n.fallbackLocale.value=o},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(o){process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_FORMATTER))},get missing(){return n.getMissingHandler()},set missing(o){n.setMissingHandler(o)},get silentTranslationWarn(){return isBoolean(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(o){n.missingWarn=isBoolean(o)?!o:o},get silentFallbackWarn(){return isBoolean(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(o){n.fallbackWarn=isBoolean(o)?!o:o},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(o){n.fallbackFormat=o},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(o){n.setPostTranslationHandler(o)},get sync(){return n.inheritLocale},set sync(o){n.inheritLocale=o},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(o){n.warnHtmlMessage=o!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(o){n.escapeParameter=o},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(o){process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...o){const[a,s,l]=o,u={};let c=null,d=null;if(!isString$1(a))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);const f=a;return isString$1(s)?u.locale=s:isArray(s)?c=s:isPlainObject(s)&&(d=s),isArray(l)?c=l:isPlainObject(l)&&(d=l),Reflect.apply(n.t,n,[f,c||d||{},u])},rt(...o){return Reflect.apply(n.rt,n,[...o])},tc(...o){const[a,s,l]=o,u={plural:1};let c=null,d=null;if(!isString$1(a))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);const f=a;return isString$1(s)?u.locale=s:isNumber(s)?u.plural=s:isArray(s)?c=s:isPlainObject(s)&&(d=s),isString$1(l)?u.locale=l:isArray(l)?c=l:isPlainObject(l)&&(d=l),Reflect.apply(n.t,n,[f,c||d||{},u])},te(o,a){return n.te(o,a)},tm(o){return n.tm(o)},getLocaleMessage(o){return n.getLocaleMessage(o)},setLocaleMessage(o,a){n.setLocaleMessage(o,a)},mergeLocaleMessage(o,a){n.mergeLocaleMessage(o,a)},d(...o){return Reflect.apply(n.d,n,[...o])},getDateTimeFormat(o){return n.getDateTimeFormat(o)},setDateTimeFormat(o,a){n.setDateTimeFormat(o,a)},mergeDateTimeFormat(o,a){n.mergeDateTimeFormat(o,a)},n(...o){return Reflect.apply(n.n,n,[...o])},getNumberFormat(o){return n.getNumberFormat(o)},setNumberFormat(o,a){n.setNumberFormat(o,a)},mergeNumberFormat(o,a){n.mergeNumberFormat(o,a)},getChoiceIndex(o,a){return process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return i.__extender=r,process.env.NODE_ENV!=="production"&&(i.__enableEmitter=o=>{const a=n;a[EnableEmitter]&&a[EnableEmitter](o)},i.__disableEmitter=()=>{const o=n;o[DisableEmitter]&&o[DisableEmitter]()}),i}}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function getInterpolateArg({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,i)=>[...r,...i.type===Vue.Fragment?i.children:[i]],[]):t.reduce((n,r)=>{const i=e[r];return i&&(n[r]=i()),n},{})}function getFragmentableTag(e){return Vue.Fragment}const TranslationImpl=Vue.defineComponent({name:"i18n-t",props:assign$2({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>isNumber(e)||!isNaN(e)}},baseFormatProps),setup(e,t){const{slots:n,attrs:r}=t,i=e.i18n||useI18n({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(d=>d!=="_"),a={};e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=isString$1(e.plural)?+e.plural:e.plural);const s=getInterpolateArg(t,o),l=i[TranslateVNodeSymbol](e.keypath,s,a),u=assign$2({},r),c=isString$1(e.tag)||isObject$2(e.tag)?e.tag:getFragmentableTag();return Vue.h(c,u,l)}}}),Translation=TranslationImpl;function isVNode(e){return isArray(e)&&!isString$1(e[0])}function renderFormatter(e,t,n,r){const{slots:i,attrs:o}=t;return()=>{const a={part:!0};let s={};e.locale&&(a.locale=e.locale),isString$1(e.format)?a.key=e.format:isObject$2(e.format)&&(isString$1(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce((f,h)=>n.includes(h)?assign$2({},f,{[h]:e.format[h]}):f,{}));const l=r(e.value,a,s);let u=[a.key];isArray(l)?u=l.map((f,h)=>{const p=i[f.type],g=p?p({[f.type]:f.value,index:h,parts:l}):[f.value];return isVNode(g)&&(g[0].key=`${f.type}-${h}`),g}):isString$1(l)&&(u=[l]);const c=assign$2({},o),d=isString$1(e.tag)||isObject$2(e.tag)?e.tag:getFragmentableTag();return Vue.h(d,c,u)}}const NumberFormatImpl=Vue.defineComponent({name:"i18n-n",props:assign$2({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const n=e.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(e,t,NUMBER_FORMAT_OPTIONS_KEYS,(...r)=>n[NumberPartsSymbol](...r))}}),NumberFormat=NumberFormatImpl,DatetimeFormatImpl=Vue.defineComponent({name:"i18n-d",props:assign$2({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const n=e.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(e,t,DATETIME_FORMAT_OPTIONS_KEYS,(...r)=>n[DatetimePartsSymbol](...r))}}),DatetimeFormat=DatetimeFormatImpl;function getComposer$2(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function vTDirective(e){const t=a=>{const{instance:s,modifiers:l,value:u}=a;if(!s||!s.$)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const c=getComposer$2(e,s.$);process.env.NODE_ENV!=="production"&&l.preserve&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE));const d=parseValue(u);return[Reflect.apply(c.t,c,[...makeParams(d)]),c]};return{created:(a,s)=>{const[l,u]=t(s);inBrowser&&e.global===u&&(a.__i18nWatcher=Vue.watch(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),a.__composer=u,a.textContent=l},unmounted:a=>{inBrowser&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:s})=>{if(a.__composer){const l=a.__composer,u=parseValue(s);a.textContent=Reflect.apply(l.t,l,[...makeParams(u)])}},getSSRProps:a=>{const[s]=t(a);return{textContent:s}}}}function parseValue(e){if(isString$1(e))return{path:e};if(isPlainObject(e)){if(!("path"in e))throw createI18nError(I18nErrorCodes.REQUIRED_VALUE,"path");return e}else throw createI18nError(I18nErrorCodes.INVALID_VALUE)}function makeParams(e){const{path:t,locale:n,args:r,choice:i,plural:o}=e,a={},s=r||{};return isString$1(n)&&(a.locale=n),isNumber(i)&&(a.plural=i),isNumber(o)&&(a.plural=o),[t,s,a]}function apply(e,t,...n){const r=isPlainObject(n[0])?n[0]:{},i=!!r.useI18nComponentName,o=isBoolean(r.globalInstall)?r.globalInstall:!0;process.env.NODE_ENV!=="production"&&o&&i&&warn(getWarnMessage(I18nWarnCodes.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:Translation.name})),o&&([i?"i18n":Translation.name,"I18nT"].forEach(a=>e.component(a,Translation)),[NumberFormat.name,"I18nN"].forEach(a=>e.component(a,NumberFormat)),[DatetimeFormat.name,"I18nD"].forEach(a=>e.component(a,DatetimeFormat))),e.directive("t",vTDirective(t))}const VueDevToolsLabels={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},VueDevToolsPlaceholders={"vue-i18n-resource-inspector":"Search for scopes ..."},VueDevToolsTimelineColors={"vue-i18n-timeline":16764185},VUE_I18N_COMPONENT_TYPES="vue-i18n: composer properties";let devtoolsApi;async function enableDevTools(e,t){return new Promise((n,r)=>{try{setupDevtoolsPlugin({id:"vue-devtools-plugin-vue-i18n",label:VueDevToolsLabels["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[VUE_I18N_COMPONENT_TYPES],app:e},i=>{devtoolsApi=i,i.on.visitComponentTree(({componentInstance:a,treeNode:s})=>{updateComponentTreeTags(a,s,t)}),i.on.inspectComponent(({componentInstance:a,instanceData:s})=>{a.vnode.el&&a.vnode.el.__VUE_I18N__&&s&&(t.mode==="legacy"?a.vnode.el.__VUE_I18N__!==t.global.__composer&&inspectComposer(s,a.vnode.el.__VUE_I18N__):inspectComposer(s,a.vnode.el.__VUE_I18N__))}),i.addInspector({id:"vue-i18n-resource-inspector",label:VueDevToolsLabels["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:VueDevToolsPlaceholders["vue-i18n-resource-inspector"]}),i.on.getInspectorTree(a=>{a.app===e&&a.inspectorId==="vue-i18n-resource-inspector"&&registerScope(a,t)});const o=new Map;i.on.getInspectorState(async a=>{if(a.app===e&&a.inspectorId==="vue-i18n-resource-inspector")if(i.unhighlightElement(),inspectScope(a,t),a.nodeId==="global"){if(!o.has(a.app)){const[s]=await i.getComponentInstances(a.app);o.set(a.app,s)}i.highlightElement(o.get(a.app))}else{const s=getComponentInstance(a.nodeId,t);s&&i.highlightElement(s)}}),i.on.editInspectorState(a=>{a.app===e&&a.inspectorId==="vue-i18n-resource-inspector"&&editScope(a,t)}),i.addTimelineLayer({id:"vue-i18n-timeline",label:VueDevToolsLabels["vue-i18n-timeline"],color:VueDevToolsTimelineColors["vue-i18n-timeline"]}),n(!0)})}catch(i){console.error(i),r(!1)}})}function getI18nScopeLable(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function updateComponentTreeTags(e,t,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==r){const i={label:`i18n (${getI18nScopeLable(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(i)}}function inspectComposer(e,t){const n=VUE_I18N_COMPONENT_TYPES;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:getLocaleMessageValue(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function getLocaleMessageValue(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];isFunction(r)&&"source"in r?t[n]=getMessageFunctionDetails(r):isMessageAST(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:isObject$2(r)?t[n]=getLocaleMessageValue(r):t[n]=r}),t}const ESC={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function escape$1(e){return e.replace(/[<>"&]/g,escapeChar)}function escapeChar(e){return ESC[e]||e}function getMessageFunctionDetails(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${escape$1(e.source)}")`:"(?)"}`}}}function registerScope(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[r,i]of t.__instances){const o=t.mode==="composition"?i:i.__composer;n!==o&&e.rootNodes.push({id:o.id.toString(),label:`${getI18nScopeLable(r)} Scope`})}}function getComponentInstance(e,t){let n=null;if(e!=="global"){for(const[r,i]of t.__instances.entries())if(i.id.toString()===e){n=r;break}}return n}function getComposer$1(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(r=>r.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function inspectScope(e,t){const n=getComposer$1(e.nodeId,t);return n&&(e.state=makeScopeInspectState(n)),null}function makeScopeInspectState(e){const t={},n="Locale related info",r=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=r;const i="Locale messages info",o=[{type:i,key:"messages",editable:!1,value:getLocaleMessageValue(e.messages.value)}];t[i]=o;{const a="Datetime formats info",s=[{type:a,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[a]=s;const l="Datetime formats info",u=[{type:l,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[l]=u}return t}function addTimelineEvent(e,t){if(devtoolsApi){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),devtoolsApi.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function editScope(e,t){const n=getComposer$1(e.nodeId,t);if(n){const[r]=e.path;r==="locale"&&isString$1(e.state.value)?n.locale.value=e.state.value:r==="fallbackLocale"&&(isString$1(e.state.value)||isArray(e.state.value)||isObject$2(e.state.value))?n.fallbackLocale.value=e.state.value:r==="inheritLocale"&&isBoolean(e.state.value)&&(n.inheritLocale=e.state.value)}}function defineMixin(e,t,n){return{beforeCreate(){const r=Vue.getCurrentInstance();if(!r)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const o=i.i18n;if(i.__i18n&&(o.__i18n=i.__i18n),o.__root=t,this===this.$root)this.$i18n=mergeToGlobal(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=createVueI18n(o);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=mergeToGlobal(e,i);else{this.$i18n=createVueI18n({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&adjustI18nResources(t,i,i),this.$t=(...o)=>this.$i18n.t(...o),this.$rt=(...o)=>this.$i18n.rt(...o),this.$tc=(...o)=>this.$i18n.tc(...o),this.$te=(o,a)=>this.$i18n.te(o,a),this.$d=(...o)=>this.$i18n.d(...o),this.$n=(...o)=>this.$i18n.n(...o),this.$tm=o=>this.$i18n.tm(o),n.__setInstance(r,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const r=this.$i18n;this.$el.__VUE_I18N__=r.__composer;const i=this.__v_emitter=createEmitter();r.__enableEmitter&&r.__enableEmitter(i),i.on("*",addTimelineEvent)}},unmounted(){const r=Vue.getCurrentInstance();if(!r)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const i=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",addTimelineEvent),delete this.__v_emitter),this.$i18n&&(i.__disableEmitter&&i.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,i.__disposer&&(i.__disposer(),delete i.__disposer,delete i.__extender),n.__deleteInstance(r),delete this.$i18n}}}function mergeToGlobal(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[SetPluralRulesSymbol](t.pluralizationRules||e.pluralizationRules);const n=getLocaleMessages(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n(e={},t){const n=__VUE_I18N_LEGACY_API__&&isBoolean(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=isBoolean(e.globalInjection)?e.globalInjection:!0,i=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,o=new Map,[a,s]=createGlobal(e,n),l=makeSymbol(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&n&&i&&warn(getWarnMessage(I18nWarnCodes.NOTICE_DROP_ALLOW_COMPOSITION));function u(f){return o.get(f)||null}function c(f,h){o.set(f,h)}function d(f){o.delete(f)}{const f={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return i},async install(h,...p){if(process.env.NODE_ENV!=="production"&&(h.__VUE_I18N__=f),h.__VUE_I18N_SYMBOL__=l,h.provide(h.__VUE_I18N_SYMBOL__,f),isPlainObject(p[0])){const v=p[0];f.__composerExtend=v.__composerExtend,f.__vueI18nExtend=v.__vueI18nExtend}let g=null;!n&&r&&(g=injectGlobalFields(h,f.global)),__VUE_I18N_FULL_INSTALL__&&apply(h,f,...p),__VUE_I18N_LEGACY_API__&&n&&h.mixin(defineMixin(s,s.__composer,f));const C=h.unmount;if(h.unmount=()=>{g&&g(),f.dispose(),C()},process.env.NODE_ENV!=="production"){if(!await enableDevTools(h,f))throw createI18nError(I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const m=createEmitter();if(n){const _=s;_.__enableEmitter&&_.__enableEmitter(m)}else{const _=s;_[EnableEmitter]&&_[EnableEmitter](m)}m.on("*",addTimelineEvent)}},get global(){return s},dispose(){a.stop()},__instances:o,__getInstance:u,__setInstance:c,__deleteInstance:d};return f}}function useI18n(e={}){const t=Vue.getCurrentInstance();if(t==null)throw createI18nError(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw createI18nError(I18nErrorCodes.NOT_INSTALLED);const n=getI18nInstance(t),r=getGlobalComposer(n),i=getComponentOptions(t),o=getScope(e,i);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_IN_LEGACY_MODE);return useI18nForLegacy(t,o,r,e)}if(o==="global")return adjustI18nResources(r,e,i),r;if(o==="parent"){let l=getComposer(n,t,e.__useComponent);return l==null&&(process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_FOUND_PARENT_SCOPE)),l=r),l}const a=n;let s=a.__getInstance(t);if(s==null){const l=assign$2({},e);"__i18n"in i&&(l.__i18n=i.__i18n),r&&(l.__root=r),s=createComposer(l),a.__composerExtend&&(s[DisposeSymbol]=a.__composerExtend(s)),setupLifeCycle(a,t,s),a.__setInstance(t,s)}return s}function createGlobal(e,t,n){const r=Vue.effectScope();{const i=__VUE_I18N_LEGACY_API__&&t?r.run(()=>createVueI18n(e)):r.run(()=>createComposer(e));if(i==null)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);return[r,i]}}function getI18nInstance(e){{const t=Vue.inject(e.isCE?I18nInjectionKey:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw createI18nError(e.isCE?I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE:I18nErrorCodes.UNEXPECTED_ERROR);return t}}function getScope(e,t){return isEmptyObject(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function getGlobalComposer(e){return e.mode==="composition"?e.global:e.global.__composer}function getComposer(e,t,n=!1){let r=null;const i=t.root;let o=getParentComponentInstance(t,n);for(;o!=null;){const a=e;if(e.mode==="composition")r=a.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const s=a.__getInstance(o);s!=null&&(r=s.__composer,n&&r&&!r[InejctWithOptionSymbol]&&(r=null))}if(r!=null||i===o)break;o=o.parent}return r}function getParentComponentInstance(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function setupLifeCycle(e,t,n){let r=null;Vue.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=createEmitter();const i=n;i[EnableEmitter]&&i[EnableEmitter](r),r.on("*",addTimelineEvent)}},t),Vue.onUnmounted(()=>{const i=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(r&&r.off("*",addTimelineEvent),i[DisableEmitter]&&i[DisableEmitter](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const o=i[DisposeSymbol];o&&(o(),delete i[DisposeSymbol])},t)}function useI18nForLegacy(e,t,n,r={}){const i=t==="local",o=Vue.shallowRef(null);if(i&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw createI18nError(I18nErrorCodes.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const a=isBoolean(r.inheritLocale)?r.inheritLocale:!isString$1(r.locale),s=Vue.ref(!i||a?n.locale.value:isString$1(r.locale)?r.locale:DEFAULT_LOCALE),l=Vue.ref(!i||a?n.fallbackLocale.value:isString$1(r.fallbackLocale)||isArray(r.fallbackLocale)||isPlainObject(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:s.value),u=Vue.ref(getLocaleMessages(s.value,r)),c=Vue.ref(isPlainObject(r.datetimeFormats)?r.datetimeFormats:{[s.value]:{}}),d=Vue.ref(isPlainObject(r.numberFormats)?r.numberFormats:{[s.value]:{}}),f=i?n.missingWarn:isBoolean(r.missingWarn)||isRegExp(r.missingWarn)?r.missingWarn:!0,h=i?n.fallbackWarn:isBoolean(r.fallbackWarn)||isRegExp(r.fallbackWarn)?r.fallbackWarn:!0,p=i?n.fallbackRoot:isBoolean(r.fallbackRoot)?r.fallbackRoot:!0,g=!!r.fallbackFormat,C=isFunction(r.missing)?r.missing:null,v=isFunction(r.postTranslation)?r.postTranslation:null,m=i?n.warnHtmlMessage:isBoolean(r.warnHtmlMessage)?r.warnHtmlMessage:!0,_=!!r.escapeParameter,E=i?n.modifiers:isPlainObject(r.modifiers)?r.modifiers:{},x=r.pluralRules||i&&n.pluralRules;function w(){return[s.value,l.value,u.value,c.value,d.value]}const y=Vue.computed({get:()=>o.value?o.value.locale.value:s.value,set:b=>{o.value&&(o.value.locale.value=b),s.value=b}}),N=Vue.computed({get:()=>o.value?o.value.fallbackLocale.value:l.value,set:b=>{o.value&&(o.value.fallbackLocale.value=b),l.value=b}}),V=Vue.computed(()=>o.value?o.value.messages.value:u.value),D=Vue.computed(()=>c.value),R=Vue.computed(()=>d.value);function O(){return o.value?o.value.getPostTranslationHandler():v}function P(b){o.value&&o.value.setPostTranslationHandler(b)}function L(){return o.value?o.value.getMissingHandler():C}function W(b){o.value&&o.value.setMissingHandler(b)}function U(b){return w(),b()}function G(...b){return o.value?U(()=>Reflect.apply(o.value.t,null,[...b])):U(()=>"")}function j(...b){return o.value?Reflect.apply(o.value.rt,null,[...b]):""}function K(...b){return o.value?U(()=>Reflect.apply(o.value.d,null,[...b])):U(()=>"")}function z(...b){return o.value?U(()=>Reflect.apply(o.value.n,null,[...b])):U(()=>"")}function q(b){return o.value?o.value.tm(b):{}}function Z(b,I){return o.value?o.value.te(b,I):!1}function ae(b){return o.value?o.value.getLocaleMessage(b):{}}function ie(b,I){o.value&&(o.value.setLocaleMessage(b,I),u.value[b]=I)}function se(b,I){o.value&&o.value.mergeLocaleMessage(b,I)}function ce(b){return o.value?o.value.getDateTimeFormat(b):{}}function le(b,I){o.value&&(o.value.setDateTimeFormat(b,I),c.value[b]=I)}function Q(b,I){o.value&&o.value.mergeDateTimeFormat(b,I)}function ee(b){return o.value?o.value.getNumberFormat(b):{}}function J(b,I){o.value&&(o.value.setNumberFormat(b,I),d.value[b]=I)}function te(b,I){o.value&&o.value.mergeNumberFormat(b,I)}const ue={get id(){return o.value?o.value.id:-1},locale:y,fallbackLocale:N,messages:V,datetimeFormats:D,numberFormats:R,get inheritLocale(){return o.value?o.value.inheritLocale:a},set inheritLocale(b){o.value&&(o.value.inheritLocale=b)},get availableLocales(){return o.value?o.value.availableLocales:Object.keys(u.value)},get modifiers(){return o.value?o.value.modifiers:E},get pluralRules(){return o.value?o.value.pluralRules:x},get isGlobal(){return o.value?o.value.isGlobal:!1},get missingWarn(){return o.value?o.value.missingWarn:f},set missingWarn(b){o.value&&(o.value.missingWarn=b)},get fallbackWarn(){return o.value?o.value.fallbackWarn:h},set fallbackWarn(b){o.value&&(o.value.missingWarn=b)},get fallbackRoot(){return o.value?o.value.fallbackRoot:p},set fallbackRoot(b){o.value&&(o.value.fallbackRoot=b)},get fallbackFormat(){return o.value?o.value.fallbackFormat:g},set fallbackFormat(b){o.value&&(o.value.fallbackFormat=b)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:m},set warnHtmlMessage(b){o.value&&(o.value.warnHtmlMessage=b)},get escapeParameter(){return o.value?o.value.escapeParameter:_},set escapeParameter(b){o.value&&(o.value.escapeParameter=b)},t:G,getPostTranslationHandler:O,setPostTranslationHandler:P,getMissingHandler:L,setMissingHandler:W,rt:j,d:K,n:z,tm:q,te:Z,getLocaleMessage:ae,setLocaleMessage:ie,mergeLocaleMessage:se,getDateTimeFormat:ce,setDateTimeFormat:le,mergeDateTimeFormat:Q,getNumberFormat:ee,setNumberFormat:J,mergeNumberFormat:te};function S(b){b.locale.value=s.value,b.fallbackLocale.value=l.value,Object.keys(u.value).forEach(I=>{b.mergeLocaleMessage(I,u.value[I])}),Object.keys(c.value).forEach(I=>{b.mergeDateTimeFormat(I,c.value[I])}),Object.keys(d.value).forEach(I=>{b.mergeNumberFormat(I,d.value[I])}),b.escapeParameter=_,b.fallbackFormat=g,b.fallbackRoot=p,b.fallbackWarn=h,b.missingWarn=f,b.warnHtmlMessage=m}return Vue.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const b=o.value=e.proxy.$i18n.__composer;t==="global"?(s.value=b.locale.value,l.value=b.fallbackLocale.value,u.value=b.messages.value,c.value=b.datetimeFormats.value,d.value=b.numberFormats.value):i&&S(b)}),ue}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm","te"];function injectGlobalFields(e,t){const n=Object.create(null);return globalExportProps.forEach(i=>{const o=Object.getOwnPropertyDescriptor(t,i);if(!o)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const a=Vue.isRef(o.value)?{get(){return o.value.value},set(s){o.value.value=s}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,i,a)}),e.config.globalProperties.$i18n=n,globalExportMethods.forEach(i=>{const o=Object.getOwnPropertyDescriptor(t,i);if(!o||!o.value)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,o)}),()=>{delete e.config.globalProperties.$i18n,globalExportMethods.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}if(initFeatureFlags(),__INTLIFY_JIT_COMPILATION__?registerMessageCompiler(compile):registerMessageCompiler(compileToFunction),registerMessageResolver(resolveValue),registerLocaleFallbacker(fallbackWithLocaleChain),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=getGlobalThis();e.__INTLIFY__=!0,setDevToolsHook(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const en={imatrixUIPublicModel:{sure:"Sure",cancel:"Cancel",allDepartments:"All Departments",allUsers:"All Users",reset:"Reset",to:"To",edit:"Edit",clear:"Clear",download:"Download",delete:"Delete",preview:"Preview",add:"Add",graphView:"Graphic view",listView:"List View",fieldName:"Field Name",operator:"Operator",value:"Value",andOr:"And/Or",whenTheVariableIsEmpty:"When The Variable Is Empty",perhaps:"Perhaps",also:"Also",greaterThan:"Greater Than",lessThan:"Less Than",beEqualTo:"Be Equal To",notGreaterThan:"Not Greater Than",notLessThan:"Not Less Than",notEqualTo:"Not Equal To",contain:"Contain",notIncluded:"Not Included",laterThan:"Later Than",earlierThan:"Earlier Than",noLaterThan:"No Later Than",noEarlierThan:"No Earlier Than",ignore11:"Ignore (1 = 1)",nonConformity:"Non Conformity (1 < > 1)",switchToNormalQuery:"Switch To Normal Query",switchToAdvancedQuery:"Switch To Advanced Query",isNull:"Is Null",isNotNull:"Is Not Null",previewImage:"Preview image",fullScreen:"Full Screen"},imatrixUIMessage:{whetherToConfirmDeletion:"Whether To Confirm Deletion",tips:"Tips",pleaseEnterContent:"Please Enter Content",internalServerError:"Server error",pleaseSelectDepartment:"Please Select Department",pleaseSelectPersonnel:"Please Select Personnel",pleaseRemoveallpersonnelBeforeSelectingSpecificPersonnel:"Please Remove All Personnel Before Selecting Specific Personnel",queryResultIsEmpty:"Query Result Is Empty",pleaseSelectATeam:"Please Select A Team",pleaseEnterTeamName:"Please Enter Team Name",validationFailed:"Validation Failed",selectionDate:"Selection Date",selectTime:"Select Time",pleaseEnterATimePoint:"Please Enter A Time Point",pleaseSelect:"Please Select",startDate:"Start Date",endDate:"End Date",noExportColumnsConfigured:"No Export Columns Configured",organizationTreeNoResultNotRemove:"No information selected, no need to remove",exceedFileSize:"File size limit {filesize} M exceeded",upload:"Upload",invalideDoubleValue:"{num} is not a legal decimal",noJumpPage:"Jump page not configured",saveSuccessfully:"Savee successfully",pleaseInputSearchCondition:"Please enter the query criteria",fileUpload:"File Upload",selectYear:"Select Year",search:"Search",forbiddenException:"You do not have permission to access this resource",theButtonIsNotBoundToAResource:"The button is not bound to a resource, Bind the resource first",asyncExport:"Asynchronous export, please wait for message notification!",selectedWorkingGroup:"Selected working group"},superGrid:{columnConfig:"Column Config",pleaseSaveOrCancelEditingLine:"Please Save Or Cancel Editing Line {row} Data First",pleaseSaveLine:"Please Save Line {row} Data First",noNeedToSaveRow:"No Need To Save Row {row} Data",pleaseSetURLToSaveRowInformation:'Please set "URL to save row information"',lineSavedSuccessfully:"Line {row} Saved Successfully",theReturnValueOfTheBeforesaveCallbackMethodIsFalse:"The Return Value Of The Beforesave Callback Method Is False",lineNoNeedToUndoEdit:"Line {row} No Need To Undo Edit",lineCancelledSuccessfully:"Line {row} cancelled successfully",label:"Label",isShow:"Is Show",isExportable:"Is Exportable",recordLine:"Record line {row}",pageRecordLine:"Record in row {row} of page {pageNum}",fileName:"File Name",deleteSuccessful:"Deleted successfully",index:"No.",searchConditionName:"Search Condition Name",pleaseInputSearchConditionName:"Please enter the name of the query criteria",saveCondition:"Save Condition",saveConditionTitle:"Save Condition",displayOrder:"Display Order",width:"Column Width",default:"Default",custom:"Custom",show:"Show",hidden:"Hidden",export:"Export",unExport:"Not Export",whetherToConfirmReset:"Are you sure you want to reset?",resetSuccessful:"Reset successfully",dragColumnOrderMessage:"Supports dragging to change column order",selectAll:"Select All",viewImage:"View Image",previewTitleWhenNotImg:"Non picture format, preview in other ways",refresh:"Refresh",open:"Open",fold:"Fold"},departmentTree:{},departmentTreeInline:{pleaseEnterDepartmentName:"Please Enter Department Name",name:"Department Name",code:"Department Code",removeDepartment:"Remove Department",selectedDept:"Selected Departments",namePath:"Name Path"},departmentUserTree:{pleaseEnterUserInformation:"Please Enter User Information",selectedPeople:"Selected People",searchFieldUserName:"Name",searchFieldLoginName:"Login Name",searchFieldEmail:"Email",searchFieldTelephone:"Telephone",searchFieldJobNumber:"Job Number",searchFieldHonorificName:"Honorific"},departmentUserTreeInline:{name:"Name",department:"Department",branch:"Branch",removeUser:"Remove User",email:"Email",loginName:"Login Name"},workgroupTree:{allTeamMembers:"All Team Members",name:"Workgroup Name",code:"Workgroup Code",removeWorkgroup:"Remove Workgroup",workingGroupName:"Working Group Name",workingGroupNumber:"Working Group Number",workgroupDescription:"Workgroup Description"},workflowButton:{save:"Save",submit:"Submit",approve:"Approve",refuse:"Refuse",agreement:"Agree",oppose:"Opposition",kiken:"Abstention",get_back_button:"Retrieve",copy:"Copy",draw:"Draw",abandon_draw:"Give Up Draw",add_sign:"Additional Signature",remove_sign:"Reduction Of Signature",signoff:"Sign For",assign:"Hand over",assign_task:"Transfer",readed:"Readed",export_report:"Export Report",draw_dept_task:"Draw Department",abandon_draw_dept_task:"Give Up Draw Department"},workflowHistoryList:{specailText:"specail",index:"Index",taskName:"Task Name",operation:"Operation",opinion:"Opinion",processStart:"Process Start",processEnd:"Process End",process_start:"[{1}] process start",prcoess_end:"[{1}] process End",force_end_process:"{1}forced to end the process, and the task of [{2}] was canceled",history_jump:"Process {3} to [{1}], [{2}] task cancelled",history_back:"{1} returned to task,process returned to [{2}]",history_removesign:"{1} minus [{2}]",history_changetransactor_and_delegate:"{1} changed the handler [{2}] to [{3}], [{4}] delegated the task to [{5}]",history_changetransactor:"{1} changed handler [{2}] to [{3}]",history_addsign:"{1} sign [{2}]",history_addtransactor:"{1} add handler [{2}]",history_removetransactor:"{1} decrease handler [{2}]",history_delegate_and_assign:"{1} assigned tasks to [{2}], [{3}] delegated tasks to [{4}]",history_assign:"{1} assigned task to [{2}]",transfer:"{1} transferred to [{2}]",history_complete_transfer:"{1} execute [{2}] operation and canceled the task of other receivers [{3}]",history_delegate_receive:"{1} retracts the task entrusted to [{2}]",history_delegate:"{1} has delegated task [{2}] to [{3}]",history_quit_transfer:"{1} Resignation, has transferred task [{2}] to [{3}",history_change_job_transfer:"{1} Change job,has transferred task [{2}] to [{3}",commonButtonOperation:"{1} execute [{2}] operation",history_draw_task:"{1} received the task and cancelled the task of the candidate [{2}]",history_abandon_draw:"{1} gives up the task and restores the task of candidate [{2}]",create_copy_task:"{1} The task was copied to [{2}",toDoText:"Todo",operator:"Operator",operatorLg:"Operator Login Name",operatorDept:"Operator Dept",operationTime:"Operation Time",history_draw_dept_task:"{1} Received tasks from department [{2}]",history_abandon_draw_dept_task:"{1} Abandon the task of receiving department [{2}]"},gateway:{timeout:"Interface call timeout",callFailed:"Interface call failed"},superNineGrid:{add:"Create"},fsUpload:{upload:"Upload",download:"Download",delete:"Delete",preview:"Preview",name:"Name",picture:"Picture",operating:"Operating",uploadSucceeded:"Upload succeeded",theNumberOfUploadsExceedsTheLimitTheLimitIs:"The number of uploads exceeds the limit. The limit is"},messageVideo:{attemptingToIdentify:"Attempting to identify",callingRearCamera:"Calling rear camera",identificationFailed:"Identification failed"},IntervalSelection:{year:"year",quarter:"quarter",auxiliary:"auxiliary word for ordinal numbers",week:"week"}},cn={imatrixUIPublicModel:{sure:"确定",cancel:"取消",allDepartments:"所有部门",allUsers:"所有用户",reset:"重置",to:"至",edit:"操作",clear:"清空",download:"下载",delete:"删除",preview:"预览",add:"增加",graphView:"图形视图",listView:"列表视图",fieldName:"字段名(*)",operator:"操作符",value:"值(*)",andOr:"并且/或者",whenTheVariableIsEmpty:"变量为空时",perhaps:"或者",also:"并且",greaterThan:"大于",lessThan:"小于",beEqualTo:"等于",notGreaterThan:"不大于",notLessThan:"不小于",notEqualTo:"不等于",contain:"包含",notIncluded:"不包含",laterThan:"晚于",earlierThan:"早于",noLaterThan:"不晚于",noEarlierThan:"不早于",ignore11:"忽略(1=1)",nonConformity:"不符合(1<>1)",switchToNormalQuery:"切换为普通查询",switchToAdvancedQuery:"切换为高级查询",isNull:"等于Null",isNotNull:"不等于Null",previewImage:"预览图片",fullScreen:"全屏"},imatrixUIMessage:{whetherToConfirmDeletion:"是否确认删除",tips:"提示",pleaseEnterContent:"请输入内容",internalServerError:"请求失败",pleaseSelectDepartment:"请选择部门",pleaseSelectPersonnel:"请选择人员",pleaseRemoveallpersonnelBeforeSelectingSpecificPersonnel:"请先移除所有人员,再选择具体人员",queryResultIsEmpty:"查询结果为空",pleaseSelectATeam:"请选择工作组",pleaseEnterTeamName:"请输入工作组名称",validationFailed:"验证失败",selectionDate:"选择日期",selectTime:"选择时间",pleaseEnterATimePoint:"请输入时间点",pleaseSelect:"请选择",startDate:"开始日期",endDate:"结束日期",noExportColumnsConfigured:"没有配置导出列",organizationTreeNoResultNotRemove:"未选择任何信息,无需移除",exceedFileSize:"超过文件大小限制{fileSize}M",upload:"上传",invalideDoubleValue:"{num} 不是合法的小数",noJumpPage:"未配置跳转页面",saveSuccessfully:"保存成功",pleaseInputSearchCondition:"请输入查询条件",fileUpload:"文件上传",selectYear:"选择年",search:"查询",forbiddenException:"您没有权限访问该资源",theButtonIsNotBoundToAResource:"该按钮未绑定资源,请先绑定资源",asyncExport:"正在异步导出,请等待消息通知!",selectedWorkingGroup:"已选工作组"},superGrid:{columnConfig:"字段配置",pleaseSaveOrCancelEditingLine:"请先保存或撤销编辑第 {row} 行数据",pleaseSaveLine:"请先保存第 {row} 行数据",noNeedToSaveRow:"无需保存第 {row} 行数据",pleaseSetURLToSaveRowInformation:"请设置“保存行信息的url”",lineSavedSuccessfully:"第 {row} 行保存成功",theReturnValueOfTheBeforesaveCallbackMethodIsFalse:"beforeSave回调方法返回值为false",lineNoNeedToUndoEdit:"第 {row} 行无需撤销编辑",lineCancelledSuccessfully:"第 {row} 行撤销成功",label:"字段名",isShow:"是否显示",isExportable:"是否导出",recordLine:"第 {row} 行记录",pageRecordLine:"第 {pageNum} 页第 {row} 行记录",fileName:"文件名称",deleteSuccessful:"删除成功",index:"序号",searchConditionName:"查询条件名称",pleaseInputSearchConditionName:"请输入查询条件名称",saveCondition:"保存条件",saveConditionTitle:"保存查询条件",displayOrder:"显示顺序",width:"列宽",default:"默认",custom:"自定义",show:"显示",hidden:"隐藏",export:"导出",unExport:"不导出",whetherToConfirmReset:"是否确认重置?",resetSuccessful:"重置成功",dragColumnOrderMessage:"支持拖动改变列顺序",selectAll:"全选",viewImage:"查看图片",previewTitleWhenNotImg:"非图片格式,使用其它方式预览",refresh:"刷新",open:"展开",fold:"收起"},departmentTree:{},departmentTreeInline:{pleaseEnterDepartmentName:"请输入部门名称",name:"部门名称",code:"部门编码",removeDepartment:"移除部门",selectedDept:"已选部门",namePath:"名称路径"},departmentUserTree:{pleaseEnterUserInformation:"请输入用户信息",selectedPeople:"已选人员",searchFieldUserName:"姓名",searchFieldLoginName:"登录名",searchFieldEmail:"邮箱",searchFieldTelephone:"手机号",searchFieldJobNumber:"工号",searchFieldHonorificName:"尊称"},departmentUserTreeInline:{name:"姓名",department:"所属部门",branch:"所属分支",removeUser:"移除用户",email:"邮箱",loginName:"登录名"},workgroupTree:{allTeamMembers:"所有工作组人员",name:"工作组名称",code:"工作组编码",removeWorkgroup:"移除工作组",workingGroupName:"工作组名称",workingGroupNumber:"工作组编号",workgroupDescription:"工作组描述"},workflowButton:{save:"暂存",submit:"提交",approve:"同意",refuse:"不同意",agreement:"赞成",oppose:"反对",kiken:"弃权",get_back_button:"取回",copy:"抄送",draw:"领取",abandon_draw:"放弃领取",add_sign:"加签",remove_sign:"减签",signoff:"签收",assign:"交办",assign_task:"转办",readed:"已阅",export_report:"导出报告",draw_dept_task:"部门领取",abandon_draw_dept_task:"放弃部门领取"},workflowHistoryList:{specailText:"特",index:"序号",taskName:"环节名称",operation:"流转操作",opinion:"办理意见",processStart:"流程开始",processEnd:"流程结束",process_start:"[{1}]流程开始",prcoess_end:"[{1}]流程结束",force_end_process:"{1}强制结束了该流程,[{2}]的任务被取消",history_jump:"流程{3}到[{1}],[{2}]的任务被取消",history_back:"{1}退回任务,流程退回到[{2}]",history_removesign:"{1}给[{2}]减签",history_changetransactor_and_delegate:"{1}把办理人[{2}]更改成[{3})],{4}把任务委托给了[{5}]",history_changetransactor:"{1}把办理人[{2}]更改成[{3}]",history_addsign:"{1}给[{2}]加签",history_addtransactor:"{1}增加办理人[{2}]",history_removetransactor:"{1}减少办理人[{2}]",history_delegate_and_assign:"{1}把任务指派给了[{2}],[{3}]把任务委托给了[{4}]",history_assign:"{1}把任务指派给了[{2}]",transfer:"{1}移交给[{2}]",history_complete_transfer:"{1}执行了[{2}]操作,取消了其它接收人[{3}]的任务",history_delegate_receive:"{1}收回委托给[{2}]的任务",history_delegate:"{1}已把任务[{2}]委托给[{3}]",history_quit_transfer:"{1}离职,已把任务[{2}]移交给了[{3}]",history_change_job_transfer:"{1}换岗,已把任务[{2}]移交给了[{3}]",commonButtonOperation:"{1}执行了[{2}]操作",history_draw_task:"{1}领取了任务,取消了候选人[{2}]的任务",history_abandon_draw:"{1}放弃领取该任务,还原了候选人[{2}]的任务",create_copy_task:"{1}把任务抄送给了[{2}]",toDoText:"待处理",operator:"操作人",operatorLg:"操作人登录名",operatorDept:"操作人部门",operationTime:"操作时间",history_draw_dept_task:"{1}领取了部门[{2}]的任务",history_abandon_draw_dept_task:"{1}放弃领取部门[{2}]的任务"},gateway:{timeout:"接口调用超时",callFailed:"接口调用失败"},superNineGrid:{add:"新建"},fsUpload:{upload:"上传",download:"下载",delete:"删除",preview:"预览",name:"名称",picture:"图片",operating:"操作",uploadSucceeded:"上传成功",theNumberOfUploadsExceedsTheLimitTheLimitIs:"上传数量超过限制,限制数量为"},messageVideo:{attemptingToIdentify:"正在尝试识别....",callingRearCamera:"正在调用后置摄像头...",identificationFailed:"识别失败"},IntervalSelection:{year:"年",quarter:"季度",auxiliary:"第",week:"周"}},messages$1={en,cn},i18n=createI18n({locale:"cn",messages:messages$1,legacy:!1});class CalculatorFactory{constructor(){if(new.target===CalculatorFactory)throw new Error("抽象类不能实例化!")}isNullValue(t,n){return(t==null||t+""=="")&&n==="IS_NULL"}isNotNullValue(t,n){return t!=null&&t+""!=""&&n==="IS_NOT_NULL"}isEQEmptyValue(t,n,r){return(t==null||t+""=="")&&(r==null||r+""=="")&&(n==="EQ"||n==="CONTAIN")}}class NumberCalculator extends CalculatorFactory{constructor(t,n,r){if(super(),this.isNotNullValue(t,n))this.result=!0;else if(this.isNullValue(t,n))this.result=!0;else if(this.isEQEmptyValue(t,n,r))this.result=!0;else if(t==null)this.result=!1;else{const i=+(t+""),o=+(r+"");if(n==="GET")this.result=i>=o;else if(n==="LET")this.result=i<=o;else if(n==="GT")this.result=i>o;else if(n==="LT")this.result=i<o;else if(n==="NET")this.result=i!==o;else if(n==="EQ")this.result=i===o;else if(n==="IS_NULL")this.result=t==null;else if(n==="IS_NOT_NULL")this.result=t!=null;else throw new Error("表达式不合法:"+t+" "+n+" "+r)}}}class TextCalculator extends CalculatorFactory{constructor(t,n,r){if(super(),this.isNullValue(t,n))this.result=!0;else if(this.isEQEmptyValue(t,n,r))this.result=!0;else if(this.isNotNullValue(t,n))this.result=!0;else if(t==null)this.result=!1;else if(n==="NET")this.result=t!==r;else if(n==="EQ")this.result=t===r;else if(n==="NOT_CONTAIN")this.result=!t.includes(r);else if(n==="CONTAIN")this.result=t.includes(r);else if(n==="IS_NULL")this.result=t==null||t==="";else if(n==="IS_NOT_NULL")this.result=t!=null&&t!=="";else throw new Error("表达式不合法:"+t+" "+n+" "+r)}}function getAbstractUserFactory(e){switch(e){case"TEXT":return TextCalculator;case"DOUBLE":return NumberCalculator;case"FLOAT":return NumberCalculator;case"INTEGER":return NumberCalculator;case"LONG":return NumberCalculator;case"DATE":return NumberCalculator;case"TIME":return NumberCalculator;default:return TextCalculator}}function executeExpression(e,t,n,r){const i=getAbstractUserFactory(r);return new i(e,t,n).result}/*! js-cookie v3.0.5 | MIT */function assign(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var defaultConverter={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function init(e,t){function n(i,o,a){if(!(typeof document>"u")){a=assign({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in a)a[l]&&(s+="; "+l,a[l]!==!0&&(s+="="+a[l].split(";")[0]));return document.cookie=i+"="+e.write(o,i)+s}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],a={},s=0;s<o.length;s++){var l=o[s].split("="),u=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(a[c]=e.read(u,c),i===c)break}catch{}}return i?a[i]:a}}return Object.create({set:n,get:r,remove:function(i,o){n(i,"",assign({},o,{expires:-1}))},withAttributes:function(i){return init(this.converter,assign({},this.attributes,i))},withConverter:function(i){return init(assign({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var api=init(defaultConverter,{path:"/"});const jwtKey="JWT",currentUserNameKey="USERNAME",currentUserInfoKey="CURRENT_USER",currentSystemUrlKey="CURRENT_SYSTEM_URL_";function getToken$1(){let e=getCookieCache(jwtKey);const t=window.$vueApp.config.globalProperties.projectModel;return!e&&t&&t==="developing.model"&&(e=getSessionCache(jwtKey)),e}function setToken(e){setCookieCache(jwtKey,e),setSessionCache(jwtKey,e)}function removeToken(){removeCookieCache(jwtKey),removeSessionCache(jwtKey)}function getUsername(){let e=getCookieCache(currentUserNameKey);return e||(e=getSessionCache(currentUserNameKey)),e}function setUsername(e){setSessionCache(currentUserNameKey,e),setCookieCache(currentUserNameKey,e)}function removeUsername(){removeSessionCache(currentUserNameKey),removeCookieCache(currentUserNameKey)}function getCurrentUser(){let e=getCookieCache(currentUserInfoKey);if(e||(e=getSessionCache(currentUserInfoKey)),e)return JSON.parse(e)}function setCurrentUser(e){if(e){e.password&&(e.password=null);const t=JSON.stringify(e);setSessionCache(currentUserInfoKey,t),setCookieCache(currentUserInfoKey,t)}}function removeCurrentUser(){removeSessionCache(currentUserInfoKey),removeCookieCache(currentUserInfoKey)}function getCookieCache(e){return console.log("%c描述-173122","color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px",api),console.dir(api),api.get(e)}function setCookieCache(e,t){api.set(e,t,{path:"/"})}function removeCookieCache(e){api.remove(e,{path:"/"})}function getSessionCache(e){return window.sessionStorage.getItem(e)}function setSessionCache(e,t){return window.sessionStorage.setItem(e,t)}function removeSessionCache(e){window.sessionStorage.removeItem(e)}function getSystemCacheUrlByCode(e){if(e||(e=window.$vueApp.config.globalProperties.customSystem),e||(e=window.$vueApp.config.globalProperties.systemCode),e){const t=getSystemCacheUrl();if(t)return t[e]}}function getSystemCacheUrl(){let e=getCookieCache(currentSystemUrlKey);if(e||(e=getSessionCache(currentSystemUrlKey)),e)return JSON.parse(e)}function setSystemCacheUrl(e){if(e){const t=JSON.stringify(e);setSessionCache(currentSystemUrlKey,t),setCookieCache(currentSystemUrlKey,t)}}function removeSystemCacheUrl(){removeSessionCache(currentSystemUrlKey),removeCookieCache(currentSystemUrlKey)}const authApi={getToken:getToken$1,setToken,removeToken,getUsername,setUsername,removeUsername,getCurrentUser,setCurrentUser,removeCurrentUser,getCookieCache,setCookieCache,removeCookieCache,getSessionCache,setSessionCache,removeSessionCache,getSystemCacheUrlByCode,getSystemCacheUrl,setSystemCacheUrl,removeSystemCacheUrl};function getToken(){return authApi.getToken()}function getRelativeBaseUrl(e){if(window.$vueApp.config.globalProperties.projectModel===void 0||window.$vueApp.config.globalProperties.projectModel!=="developing.model"){let t=getUrlPrefix(location.href);if(window.sessionStorage.setItem("relativeUrl",t),t&&e){let n="";const r=e.split("/");if(r.length>=3){const i=r[0]+"//"+r[2];n=e.substring(e.indexOf(i)+i.length)}return t.lastIndexOf("/")===t.length-1&&(t=t.substring(0,t.lastIndexOf("/"))),n?t+n:t}}return e}function getUrlPrefix(e){const t=e.split("#");if(t.length>0){const n=t[0];let r=n;const i=n.split("/");return i.length>=3&&(r=i[0]+"//"+i[2]+"/"),r}}function isShowMenuRoute(){let e=window.$vueApp.config.globalProperties.showMenuRoute;return e===void 0&&(e="false"),e==="true"}function getSystemFrontendUrl(e){return window.$vueApp.config.globalProperties.projectModel&&window.$vueApp.config.globalProperties.projectModel==="developing.model"&&window.$vueApp.config.globalProperties.frontUrl?window.$vueApp.config.globalProperties.frontUrl:getRelativeBaseUrl(e)}function isPlateSys(e){return!!(e&&(e==="iMatrix"||e==="portal"||e==="mms"||e==="task"||e==="wf"||e==="dc"||e==="mc"||e==="mobile"||e==="acs"||e==="bs"||e==="pcm"))}function isPromise$1(e){return e&&Object.prototype.toString.call(e)==="[object Promise]"}const langKey="AMB_LANG_INFO";function getLangs(){return authApi.getCookieCache(langKey)}function getLangByShort(e){let t;const n=getLangs();return n&&(t=JSON.parse(n)[e]),t||(t="zh_CN"),t}function getI18n(){return window.$locale?i18n.locale=window.$locale:i18n.locale="cn",i18n.global}function getLanguageWithLocale(){let e=window.$locale;return(!e||e==="zh")&&(e="cn"),getLangByShort(e)}function analysisCondition(e,t,n,r,i,o,a){if(e===void 0||e===""||e===null)return!0;(typeof i>"u"||i===null)&&(i=!1);let s={};n&&typeof n=="string"&&n!==""?s=JSON.parse(n):n&&typeof n=="object"&&(s=n);let l={};r&&typeof r=="string"&&r!==""?l=JSON.parse(r):r&&typeof r=="object"&&(l=r);let u=[];return e&&typeof e=="string"&&e!==""?u=JSON.parse(e):e&&Array.isArray(e)&&(u=e),parseCondition(t,u,i,o,s,l,a)}function parseCondition(entity,conditionList,isSql,tableName,additionalParamMap,contextParameterMap,parentFormData){if(conditionList==null||conditionList.length===0)return!0;let conditions="";for(let e=0;e<conditionList.length;e++){const t=conditionList[e];let n=t.propName,r=t.propDbName;if((!n||n==="")&&(!r||r===""))continue;let i;if(isSql&&r){if(r.indexOf("parent_+_")!==-1?(r=r.replace("parent_+_",""),r=r.split("_+_")[1],i=getValue$1(parentFormData,r,isSql)):i=getValue$1(entity,r,isSql),i==null&&tableName&&r.toLowerCase().startsWith(tableName.toLowerCase()+".")){const p=r.substring(r.indexOf("."));i=getValue$1(entity,p,isSql)}}else n.indexOf("parent_+_")!==-1?(n=n.replace("parent_+_",""),n=n.split("_+_")[1],i=getValue$1(parentFormData,n,isSql)):i=getValue$1(entity,n,isSql),r&&i==null&&(i=getValue$1(entity,r,isSql));const o=t.operator,a=t.propValue,s=t.dataType,l=t.variableIsNull;let u=getPropValue(a,entity,additionalParamMap,contextParameterMap);l&&l==="null"&&(u===void 0||u==="")&&(u=null);let c=executeExpression(i,o,u,s);const d=t.leftBracket,f=t.rightBracket;let h=t.joinSign;if(d&&d!==null&&d!==""&&(conditions=conditions+d,conditions=conditions+" "),l&&l!=="null"&&(u==null||u+""=="")&&(l==="1=1"?c=!0:c=!1),conditions+=c+" ",f&&f!==null&&f!==""&&(conditions=conditions+f,conditions=conditions+" "),e<conditionList.length-1&&h&&h!==null&&h!==""){const p=h.toLowerCase();p==="and"?h=p.replace("and","&&"):p==="or"&&(h=p.replace("or","||")),conditions+=h+" "}}return console.log("parseCondition----conditions=",conditions),conditions?eval("("+conditions+")"):!0}const REPLACE_DOT="__";function getValue$1(e,t,n){let r=null;return e&&e!==null&&t&&t!==null&&(r=getValueByField(e,t),r==null&&n&&(r===void 0||r==null)&&t.indexOf(".")>0&&(t=t.replace(".",REPLACE_DOT),r=getValueByField(e,t))),r}function getValueByField(e,t){if(e&&e!==null){let n;return t.indexOf(".")>0?n=getSubEntityValue(e,t):(n=e[t.toUpperCase()],n===void 0&&(n=e[t.toLowerCase()])),n}}function getSubEntityValue(e,t){let n=null,r=e;const i=t.split("\\.");for(let o=0;o<i.length;o++){const a=i[o];o===i.length?n=getSubEntityFieldValue(r,a):r=getSubEntityFieldValue(r,a)}return n}function getSubEntityFieldValue(e,t){return e==null?null:e[t]}function getContextValue(e,t){if(e)return e[t]}function getPropValue(e,t,n,r,i,o,a){let s=null;if(e&&e!==null&&e!=="")if(e==="null")s=null;else if(e.includes("${context.")||e.includes("${request.")||e.includes("${obj.")){if(e.includes("${context."))e=e.replace("${context.","").replace("}",""),s=getContextValue(r,e);else if(e.includes("${request.")&&e!=="${request.term}")e=e.replace("${request.","").replace("}",""),n&&n!=null&&Object.keys(n).indexOf(e)>=0&&n[e]&&n[e]!==null?s=n[e]:s=null;else if(e.includes("${obj."))if(t===void 0||t==null)s=null;else{const l=e.replace("${obj.","").replace("}","");s=getEntityFieldValue(t,l)}}else if(e.includes("${parent."))if(i===void 0||i==null)s=null;else{const l=e.replace("${parent.","").replace("}","");s=getEntityFieldValue(i,l)}else if(e.includes("${task."))if(a===void 0||a==null)s=null;else{const l=e.replace("${task.","").replace("}","");s=getEntityFieldValue(a,l)}else if(e.includes("${subObj."))if(o===void 0||o==null)s=null;else{const l=e.replace("${subObj.","").replace("}","");s=getEntityFieldValue(o,l)}else e.includes("${input.")?s=e.replace("${input.","").replace("}",""):s=e;return s}function analysisValue(e,t,n,r){if(!e)return;let i="";const o=e.split("-#-#");return o!=null&&o.length>0&&o.forEach(a=>{let s=getPropValue(a,t,n,r);(!s||s===null)&&(s=""),i+=s}),i}function setEntityFieldValue(e,t,n){if(t&&e)if(t&&t.indexOf(".")>0){const r=getParentObjectUtil(t,e);if(r){const i=t.substring(t.lastIndexOf(".")+1);r[i]===void 0?r[t.substring(t.lastIndexOf(".")+1)]=n:r[i]=n}}else e[t],e[t]=n}function getEntityFieldValueWithOutCase(e,t){if(t&&t.indexOf(".")>0){const n=getParentObjectUtil(t,e),r=t.substring(t.lastIndexOf(".")+1);return n[r]}else return e[t]}function getEntityFieldValue(e,t,n){let r=getEntityFieldValueWithCase(e,t);return r==null&&(r=getEntityFieldValueWithCase(e,t.toLowerCase())),(r===void 0||r===null&&n===void 0)&&(r=getEntityFieldValueWithCase(e,t.toUpperCase())),r}function getEntityFieldValueWithCase(e,t){if(t&&t.indexOf(".")>0){const n=getParentObjectUtil(t,e),r=t.substring(t.lastIndexOf(".")+1);return n[r]}else return e[t]}function getParentObjectUtil(e,t){const n=e.split(".");if(n.length===1)return t;{let r;for(let i=0;i<n.length-1;i++)i===0?r=getParentModelProp(n[i],t):r=getParentModelProp(n[i],r);return r}}function getParentModelProp(e,t){let n=getParentModelPropWithCase(e,t);return n===void 0&&(n=getParentModelPropWithCase(e.toLowerCase(),t)),n===void 0&&(n=getParentModelPropWithCase(e.toUpperCase(),t)),n}function getParentModelPropWithCase(e,t){return t||(t={}),!t[e]&&!t[e.toUpperCase()]&&(t[e]={}),t[e]}function getPropNameWhenJoinTable(e,t,n){if(e&&t!==void 0&&t===!0){const r="__";e.indexOf(".")>0?e=e.replace(".",r):n&&n!==null&&n!==""&&e.indexOf(n+r)<0&&(e=n+r+e)}return e}function isImage(e){return!!/\.(jpg|JPG|jpeg|JPEG|png|PNG|gif|GIF|bmp|BMP|psd|PSD|tif|TIF)$/.test(e)}const utils={getSearchUserFields(){const e=getI18n();return[{value:"name",label:e.t("departmentUserTree.searchFieldUserName")},{value:"loginName",label:e.t("departmentUserTree.searchFieldLoginName")},{value:"email",label:e.t("departmentUserTree.searchFieldEmail")},{value:"telephone",label:e.t("departmentUserTree.searchFieldTelephone")},{value:"jobNumber",label:e.t("departmentUserTree.searchFieldJobNumber")},{value:"honorificName",label:e.t("departmentUserTree.searchFieldHonorificName")}]},removeRow(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].id===t.id)return r===0?(e.shift(),e):r===n-1?(e.pop(),e):(e.splice(r,1),e);return e},storeSeachValue(e,t,n){if(n&&n!==""){var r=e.getObject(t);if(r&&r.length>0){var i=r.filter(this.createFilter(n));if(i.length===0){const a={value:n};r.push(a),e.setObject(t,r)}}else{var o=[];const a={value:n};o.push(a),e.setObject(t,o)}this.restaurants=e.getObject(t)}},createFilter(e){return t=>t.value.toLowerCase().indexOf(e.toLowerCase())===0},handleSelectUtil(e,t){this.storeSeachValue(t,this.searchStoreKey,this.filterText),this.search(e.value)},analysisLabelTag(e,t,n,r){let i="";if(e){let a;if(e!==""&&typeof e=="string"?a=e.split("-#-#"):typeof e=="object"&&(a=e),a&&a.length>0)for(var o=0;o<a.length;o++){let s=a[o];if(s.indexOf("obj.")!==-1){if(s=s.replace("${obj.","").replace("}",""),t){let l=t[s];this.childIsObjectProp(s)&&(l=this.childObjectPropOriginalValue(t,s)),i+=l}}else if(s.indexOf("request.")!==-1){if(s=s.replace("${request.","").replace("}",""),r){const l=r[s];l&&(i+=l)}}else if(s.indexOf("input.")!==-1)s=s.replace("${input.","").replace("}",""),i+=s;else if(s.indexOf("context.")!==-1&&(s=s.replace("${context.","").replace("}",""),n)){const l=n[s];l&&(i+=l)}}}return i},childIsObjectProp(e){return e.indexOf(".")>0},childObjectPropOriginalValue(e,t){try{let n=e;return t.split(".").forEach(i=>{if(n)n=n[i];else throw n="",n}),n}catch{return""}},getSelectUsers(e,t,n){return new Promise((r,i)=>{e?t?this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/select-users?searchField="+e+"&selectUserInfo="+t+"&separator="+n).then(o=>{r(o)}).catch(o=>{i(o)}):r([]):r([])})}},departmentTreeService={filterAppendNodes(e){this.$http.post(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/search-pc-depts",this.searchParam).then(t=>{if(t){if(t.length===0){this.searchResult=[],this.$message({showClose:!0,type:"error",message:getI18n().t("imatrixUIMessage.queryResultIsEmpty")});return}this.searchResult=t}else this.$message({showClose:!0,type:"error",message:getI18n().t("imatrixUIMessage.queryResultIsEmpty")})})},search(e){this.searchValue=e;let t=e;t&&(t=t.trim()),this.searchParam.searchValue=t,this.searchParam.departmentInfo=this.departmentInfo,this.filterAppendNodes(e)},handleSelect(e){this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/api/departments?departmentCode="+e.code).then(t=>{if(t!==null)for(const n in t)e.hasOwnProperty(n)&&(e[n]=t[n]);this.filterText="",this.searchValue="",this.setMemoryCacheData(e,"department"),this.multiple?this.selectResult.findIndex(r=>r.code===e.code)<0&&this.selectResult.push(e):(this.packageSelectResult(e),$emit(this,"result",this.selectNodeInfo))})},querySearch(e,t){!this.filterText&&this.filterText.length===0?this.memorySearch(e,t):(this.search(this.filterText),t([]))},clickSearch(){this.storeSeachValue(),this.search(this.filterText)},loadDepartmentWhenSearch(e,t){return new Promise((n,r)=>{if(t.length===e)n();else{const i=t[e];let o=i;const a="~";i.indexOf(a)>-1&&(o=i.substring(i.indexOf("~")+1)),this.loadDepartment(o).then(()=>{this.loadDepartmentWhenSearch(++e,t)}).catch(s=>{r(s)})}})},handleCheckNode(e,t){if(t.checkedKeys.indexOf(e.id)>-1){if(this.isloading=!0,e.nodeType&&e.nodeType==="DEPARTMENT"&&e.data){const n=JSON.parse(e.data);this.selectUser(null,n)}e.childDepartments?(this.$refs.deparmentTree.store.nodesMap[e.id].expanded=!0,this.checkedNodeAndChildren(e),this.isloading=!1):e.leaf?this.isloading=!1:(this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/departments/"+e.id).then(n=>{this.$refs.deparmentTree.updateKeyChildren(e.id,n),this.$refs.deparmentTree.store.nodesMap[e.id].expanded=!0,this.checkedNodeAndChildren(e)}),this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/child-departments/"+e.id).then(n=>{n&&!this.checkStrictly&&(n.forEach(r=>{this.selectUser(null,r)}),this.isloading=!1)}))}else this.cancelChildCheckedNodes(e)},loadNode(e,t){var n=0;e.level===0?n=0:n=e.data.id;var r=[];this.$refs.deparmentTree&&(r=this.$refs.deparmentTree.getCheckedKeys()),this.initLoadDepartment(n,e,t,r)},initLoadDepartment(e,t,n,r){this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/departments/"+e).then(i=>{if(n(i),this.$refs.deparmentTree.updateKeyChildren(e,i),e===0){const o=i[0].data;i[0].disable=!0,this.tenantInfo=JSON.parse(o),this.containBranch=i[0].containBranch,this.departmentInfo&&this.departmentInfo.length>0?this.loadPointDepartments():this.loadDepartment(this.tenantNodeId)}this.isClickNode?(this.isClickNode=!1,this.checkedNodeAndChildren(t.data)):r&&r.indexOf(e)>-1&&this.checkedNodeAndChildren(t.data)})},loadDepartment(e,t,n){return new Promise((r,i)=>{this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/departments/"+e).then(o=>{this.$refs.deparmentTree.updateKeyChildren(e,o),this.$refs.deparmentTree.store.nodesMap[e]&&(this.$refs.deparmentTree.store.nodesMap[e].expanded=!0),r()}).catch(o=>{console.log("error",o)})})},loadPointDepartments(){this.$http.post(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/point-departments",this.departmentInfo).then(e=>{this.$refs.deparmentTree.updateKeyChildren(this.tenantNodeId,e),this.$refs.deparmentTree.store.nodesMap[this.tenantNodeId]&&(this.$refs.deparmentTree.store.nodesMap[this.tenantNodeId].expanded=!0)})},getSelectDepts(e,t,n){return new Promise((r,i)=>{e?t?this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/select-departments?searchField="+e+"&selectDeptInfo="+t+"&separator="+n).then(o=>{r(o)}).catch(o=>{i(o)}):r([]):r([])})},packageAllDept(){var e={id:this.tenantNodeId,name:"所有部门"};return e},initSelectDepts(){return new Promise((e,t)=>{const n=[];this.selectDepartmentInfo?this.selectDepartmentInfo===this.tenantNodeId||this.selectDepartmentInfo==="所有部门"?(n.push(this.packageAllDept()),e(n)):this.getSelectDepts(this.searchField,this.selectDepartmentInfo,this.separator).then(r=>{e(r)}).catch(r=>{t(r)}):e(n)})}},searchResult_vue_vue_type_style_index_0_lang$3="",_sfc_main$11={data(){let e=this.height;return e=e.substring(0,e.indexOf("px")),{singleUserIndex:null,selectedUser:null,myHeight:parseInt(e)+30+"px",ElIconPlus:plus_default,ElIconDelete:delete_default}},name:"UserResult",props:{gridData:{type:Array,default:null},containBranch:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},isSearchResult:{type:Boolean,default:!0},height:{type:String,default:"300px"},selectResult:{type:Array,default:function(){return[]}}},created(){console.log("search-result---",this.gridData)},methods:{removeUser(e,t){$emit(this,"removeUser",e,t)},addUser(e,t){$emit(this,"addUser",e,t)},selectUser(e){$emit(this,"selectResult",this.gridData[e])},rowClick(e,t,n){this.singleUserIndex=e.row_index,$emit(this,"selectResult",e)},tableRowClassName({row:e,rowIndex:t}){e.row_index=t},rowDblclick(e,t,n){this.multiple?$emit(this,"addUser",null,e):$emit(this,"resultRowDblclick",e)},isDisable(e){if(this.selectResult){const t=this.selectResult.filter(this.filterDept(e));if(t&&t.length>0)return!0}return!1},filterDept(e){return t=>t.id===e.id}},emits:["removeUser","addUser","selectResult","resultRowDblclick"]},_hoisted_1$N={style:{height:"100%"}},_hoisted_2$v=["title"],_hoisted_3$l=["title"],_hoisted_4$g=["title"],_hoisted_5$c={style:{height:"395px"},class:"roleQuery_center_area"},_hoisted_6$7={class:"roleQuery_notAvailable",style:{width:"120px",height:"120px"}},_hoisted_7$6={class:"roleQuery_notAvailable_text"};function _sfc_render$11(e,t,n,r,i,o){const a=Vue.resolveComponent("el-radio"),s=Vue.resolveComponent("el-table-column"),l=Vue.resolveComponent("el-button"),u=Vue.resolveComponent("el-table");return Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$N,[Vue.createVNode(u,{ref:"superGrid",data:n.gridData,"row-key":"id","row-class-name":o.tableRowClassName,"max-height":i.myHeight,border:"",fit:"",onRowClick:o.rowClick,onRowDblclick:o.rowDblclick},{empty:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_5$c,[Vue.createElementVNode("div",_hoisted_6$7,[Vue.createElementVNode("span",_hoisted_7$6,Vue.toDisplayString(e.$t("message.NoContent")),1)])])]),default:Vue.withCtx(()=>[n.multiple===!1?(Vue.openBlock(),Vue.createBlock(s,{key:0,width:"60"},{default:Vue.withCtx(c=>[Vue.createVNode(a,{modelValue:i.singleUserIndex,"onUpdate:modelValue":t[0]||(t[0]=d=>i.singleUserIndex=d),label:c.$index,onChange:o.selectUser},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(c.$index+1),1)]),_:2},1032,["modelValue","label","onChange"])]),_:1})):Vue.createCommentVNode("",!0),n.multiple&&n.isSearchResult?(Vue.openBlock(),Vue.createBlock(s,{key:1,fixed:"",label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},{default:Vue.withCtx(c=>[Vue.createElementVNode("div",null,[Vue.createVNode(l,{type:"primary",size:"mini",icon:i.ElIconPlus,disabled:o.isDisable(c.row),circle:"",onClick:d=>o.addUser(c.$index,c.row)},null,8,["icon","disabled","onClick"])])]),_:1},8,["label"])):Vue.createCommentVNode("",!0),n.multiple?(Vue.openBlock(),Vue.createBlock(s,{key:2,label:e.$t("superGrid.index"),align:"center",width:"60px"},{default:Vue.withCtx(c=>[Vue.createTextVNode(Vue.toDisplayString(c.$index+1),1)]),_:1},8,["label"])):Vue.createCommentVNode("",!0),n.multiple&&!n.isSearchResult?(Vue.openBlock(),Vue.createBlock(s,{key:3,fixed:"right",label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},{default:Vue.withCtx(c=>[Vue.createElementVNode("div",null,[Vue.createVNode(l,{type:"danger",size:"mini",icon:i.ElIconDelete,circle:"",onClick:d=>o.removeUser(c.$index,c.row)},null,8,["icon","onClick"])])]),_:1},8,["label"])):Vue.createCommentVNode("",!0),Vue.createVNode(s,{label:e.$t("departmentTreeInline.name"),width:170,prop:"name"},{default:Vue.withCtx(c=>[Vue.createElementVNode("span",{class:"ellipsis cell--span",title:c.row.showName},Vue.toDisplayString(c.row.showName),9,_hoisted_2$v)]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("departmentTreeInline.code"),width:140,prop:"code"},{default:Vue.withCtx(c=>[Vue.createElementVNode("span",{class:"ellipsis cell--span",title:c.row.code},Vue.toDisplayString(c.row.code),9,_hoisted_3$l)]),_:1},8,["label"]),Vue.createVNode(s,{label:e.$t("departmentTreeInline.namePath"),width:140,prop:"namePath"},{default:Vue.withCtx(c=>[Vue.createElementVNode("span",{class:"ellipsis cell--span",title:c.row.namePath},Vue.toDisplayString(c.row.namePath),9,_hoisted_4$g)]),_:1},8,["label"])]),_:1},8,["data","row-class-name","max-height","onRowClick","onRowDblclick"])])}const UserResult$1=_export_sfc(_sfc_main$11,[["render",_sfc_render$11]]),memoryCacheUtils={memorySearch(e,t){var n=this.memoryCacheData,r=n;setTimeout(()=>{t(r)},10*Math.random())},setMemoryCacheData(e,t){t==="departmentUser"?this.setDepartmentUserMemoryCacheData(e):t==="department"&&this.setDepartmentMemoryCacheData(e)},getMemoryCacheData(e){e==="departmentUser"?this.getDepartmentUserMemoryCacheData():e==="department"&&this.getDepartmentMemoryCacheData()},setDepartmentUserMemoryCacheData(e){var n=localStorage$1.getObject(this.memoryCacheKey),r=e.name===void 0||e.name===null||e.name==="undefined"?"":e.name,i=e.loginName===void 0||e.loginName===null||e.loginName==="undefined"?"":e.loginName,o=e.mainDepartmentName===void 0||e.mainDepartmentName===null||e.mainDepartmentName==="undefined"?"":e.mainDepartmentName;const a=r+"("+i+"/"+o+")";var s=-1;n&&n.length>0?s=n.findIndex(l=>l.loginName===e.loginName):n=[],e.value=a,s<0?(n.length===10&&n.splice(10-1,1),n.unshift(e),localStorage$1.setObject(this.memoryCacheKey,n)):(n.splice(s,1),n.unshift(e),localStorage$1.setObject(this.memoryCacheKey,n))},setDepartmentMemoryCacheData(e){var n=localStorage$1.getObject(this.memoryCacheKey),r=e.name===void 0||e.name===null||e.name==="undefined"?"":e.name,i=e.code===void 0||e.code===null||e.code==="undefined"?"":e.code;const o=r+"("+i+")";var a=-1;n&&n.length>0?a=n.findIndex(s=>s.code===e.code):n=[],e.value=o,a<0?(n.length===10&&n.splice(10-1,1),n.unshift(e),localStorage$1.setObject(this.memoryCacheKey,n)):(n.splice(a,1),n.unshift(e),localStorage$1.setObject(this.memoryCacheKey,n))},getDepartmentUserMemoryCacheData(){var e=localStorage$1.getObject(this.memoryCacheKey);e&&e.length>0&&(this.memoryCacheData=e)},getDepartmentMemoryCacheData(){var e=localStorage$1.getObject(this.memoryCacheKey);e&&e.length>0&&(this.memoryCacheData=e)}},departmentMultiTreeInline_vue_vue_type_style_index_0_lang="",_sfc_main$10={data(){return{filterText:"",defaultProps:{id:"id",label:"showName",children:"childDepartments",isLeaf:"leaf"},searchParam:{searchValue:null,treeType:"DEPARTMENT_TREE",departmentInfo:null},count:0,containBranch:!1,tenantNodeId:-1,allSearchNodeIds:[],allExpandNodeIds:[],isClickNode:!1,restaurants:[],searchValue:null,searchStoreKey:"searchDepartment",selectNodeInfo:null,tenantInfo:{},searchResult:[],selectResult:[],isloading:!1,multiple:!0,memoryCacheKey:"DEPARTMENT_MEMORY_KEY",memoryCacheData:[],ElIconSearch:search_default}},name:"InlineDepartmentMultiTree",components:{UserResult:UserResult$1},props:{checkStrictly:{type:Boolean,default:!1},departmentInfo:{type:Array,default:null},height:{type:String,default:"300px"},selectDepartmentInfo:{type:[String,Number],default:null},searchField:{type:String,default:"id"},separator:{type:String,default:","}},computed:{},watch:{filterText(e){e||(this.searchValue=e,this.departmentInfo&&this.departmentInfo.length>0?this.loadPointDepartments():this.loadDepartment(this.tenantNodeId))}},created(){this.initSelectDepts(this.searchField,this.selectDepartmentInfo,this.separator).then(e=>{e&&(this.selectResult=e)})},mounted(){var e=localStorage$1.getObject(this.searchStoreKey);e?this.restaurants=e:this.restaurants=[],this.getMemoryCacheData("department")},methods:{...utils,...departmentTreeService,...memoryCacheUtils,filterNode(e,t,n){return e?t.name.indexOf(e)!==-1:!0},checkedNodeAndChildren(e){let t=e;e.data&&(t=JSON.parse(e.data)),this.selectUser(null,t),this.$refs.deparmentTree.setChecked(e.id,!0);const n=e.childDepartments;n&&!this.checkStrictly&&n.forEach(r=>{this.checkedNodeAndChildren(r)})},cancelChildCheckedNodes(e){const t=JSON.parse(e.data);this.selectResult=this.removeRow(this.selectResult,t),e.id!==this.tenantNodeId&&this.$refs.deparmentTree.setChecked(this.tenantNodeId,!1);const n=e.childDepartments;n&&!this.checkStrictly&&n.forEach(r=>{this.$refs.deparmentTree.setChecked(r.id,!1),this.cancelChildCheckedNodes(r)})},handleCheckChange(e,t,n){},handleNodeExpand(e,t,n){},handleNodeClick(e,t,n){this.clickNodeWhenMultiple(e)},clickNodeWhenMultiple(e){var t=[];if(this.$refs.deparmentTree&&(t=this.$refs.deparmentTree.getCheckedKeys()),t&&t.indexOf(e.id)>-1)this.$refs.deparmentTree.setChecked(e.id,!1),this.checkStrictly||this.cancelChildCheckedNodes(e),this.$refs.deparmentTree.store.nodesMap[e.id].expanded=!0;else{if(e.nodeType&&e.nodeType==="DEPARTMENT"&&e.data){const r=JSON.parse(e.data);this.selectUser(null,r)}this.$refs.deparmentTree.setChecked(e.id,!0);const n=e.childDepartments;n&&n.length>0?this.checkStrictly||this.checkedNodeAndChildren(e):this.isClickNode=!0}},isDepartmentNode(e){return e.id!==this.tenantNodeId&&e.nodeType&&e.nodeType==="DEPARTMENT"&&!e.branch},selectDepartment(){var e=!1,t={ids:[],names:[],codes:[],zhNames:[],enNames:[],departments:[]};if(this.selectResult.length===0)e=!0;else for(var n=0;n<this.selectResult.length;n++){var r=this.selectResult[n];t.ids.push(r.id),t.codes.push(r.code),r.enName?t.enNames.push(r.enName):t.enNames.push(""),r.department?t.departments.push(r.department):t.departments.push(r);const i=r.showName;t.names.push(i),t.zhNames.push(r.name)}t.ids.length>0?(t.containBranch=this.containBranch,$emit(this,"result",t)):e=!0,e&&this.$alert(this.$t("imatrixUIMessage.pleaseSelectDepartment"),this.$t("imatrixUIMessage.tips"),{confirmButtonText:this.$t("imatrixUIPublicModel.sure")})},isSelectTenantNode(e){return e===this.tenantNodeId&&(!this.departmentInfo||this.departmentInfo.length===0)},renderContent(e,{node:t,data:n,store:r}){return t.data.id===-1||t.data.branch||t.data.id===-2||t.data.id,`<span>
28
22
  <i class={className}></i>
29
23
  <span title={node.label}>{node.label}</span>
30
24
  </span>`},selectUser(e,t){const n=this.selectResult.filter(this.filterDept(t));n&&n.length===0&&(t.tenantCode=this.tenantInfo.code,t.tenantName=this.tenantInfo.tenantName,this.selectResult.push(t),this.setMemoryCacheData(t,"department"))},filterDept(e){return t=>t.id===e.id},filterDeptNode(e){return t=>t+""==e.id+""},removeUser(e,t){if(t.nodeId){const n=t.nodeId;this.$refs.deparmentTree&&n&&this.$refs.deparmentTree.setChecked(n,!1)}else if(this.$refs.deparmentTree){const r=this.$refs.deparmentTree.getCheckedKeys().filter(this.filterDeptNode(t));r.length>0&&r.forEach(i=>{this.$refs.deparmentTree.setChecked(i,!1)})}this.selectResult=this.removeRow(this.selectResult,t),(!this.selectResult||this.selectResult.length===0)&&this.$refs.deparmentTree&&this.$refs.deparmentTree.setCheckedKeys([])}},emits:["result"]},_hoisted_1$M={key:0,style:{"padding-top":"5px",overflow:"auto",width:"100%",display:"inline-block !important"}},_hoisted_2$u={key:1,style:{height:"100%",overflow:"hidden"}},_hoisted_3$k={style:{"text-align":"left","font-size":"16px"}},_hoisted_4$f={style:"padding-top: 5px;height:90%;overflow: hidden;"};function _sfc_render$10(e,t,n,r,i,o){const a=Vue.resolveComponent("el-button"),s=Vue.resolveComponent("el-autocomplete"),l=Vue.resolveComponent("el-header"),u=Vue.resolveComponent("el-tree"),c=Vue.resolveComponent("user-result"),d=Vue.resolveComponent("el-main"),f=Vue.resolveComponent("el-container"),h=Vue.resolveComponent("el-aside"),p=Vue.resolveDirective("loading");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(f,{style:{height:"395px"}},{default:Vue.withCtx(()=>[Vue.createVNode(h,{width:"350px"},{default:Vue.withCtx(()=>[Vue.createVNode(f,{style:{height:"390px"}},{default:Vue.withCtx(()=>[Vue.createVNode(l,{style:{"text-align":"right","font-size":"12px",height:"35px"}},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:i.filterText,"onUpdate:modelValue":t[0]||(t[0]=g=>i.filterText=g),size:"small",class:"inline-input inline-input-custom","fetch-suggestions":e.querySearch,placeholder:e.$t("departmentTreeInline.pleaseEnterDepartmentName"),onKeyup:Vue.withKeys(e.clickSearch,["enter"]),onSelect:e.handleSelect},{append:Vue.withCtx(()=>[Vue.createVNode(a,{size:"small",icon:i.ElIconSearch,onClick:e.clickSearch},null,8,["icon","onClick"])]),_:1},8,["modelValue","fetch-suggestions","placeholder","onKeyup","onSelect"])]),_:1}),Vue.createVNode(d,{style:{padding:"10px"}},{default:Vue.withCtx(()=>[i.searchValue?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$M,[Vue.createVNode(u,{ref:"deparmentTree",props:i.defaultProps,load:e.loadNode,lazy:"","show-checkbox":!0,"node-key":"id","check-strictly":"","render-content":o.renderContent,"filter-node-method":o.filterNode,onCheckChange:o.handleCheckChange,onNodeExpand:o.handleNodeExpand,onCheck:e.handleCheckNode,onNodeClick:o.handleNodeClick},null,8,["props","load","render-content","filter-node-method","onCheckChange","onNodeExpand","onCheck","onNodeClick"])])),i.searchValue&&i.searchValue.length>0?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_2$u,[Vue.createVNode(c,{"grid-data":i.searchResult,"select-result":i.selectResult,height:n.height,multiple:!0,"is-search-result":!0,onAddUser:o.selectUser},null,8,["grid-data","select-result","height","onAddUser"])])):Vue.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1}),Vue.createVNode(f,null,{default:Vue.withCtx(()=>[Vue.createVNode(d,{style:{padding:"10px"}},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_3$k,Vue.toDisplayString(e.$t("departmentTreeInline.selectedDept"))+": ",1),Vue.createElementVNode("div",_hoisted_4$f,[Vue.withDirectives(Vue.createVNode(c,{"grid-data":i.selectResult,height:n.height,multiple:!0,"is-search-result":!1,onRemoveUser:o.removeUser},null,8,["grid-data","height","onRemoveUser"]),[[p,i.isloading]])])]),_:1})]),_:1})]),_:1})])}const InlineDepartmentMultiTree=_export_sfc(_sfc_main$10,[["render",_sfc_render$10]]),departmentSingleTreeInline_vue_vue_type_style_index_0_lang="",_sfc_main$$={data(){return{filterText:"",defaultProps:{id:"id",label:"showName",children:"childDepartments",isLeaf:"leaf"},searchParam:{searchValue:null,treeType:"DEPARTMENT_TREE",departmentInfo:null},count:0,containBranch:!1,tenantNodeId:-1,allSearchNodeIds:[],allExpandNodeIds:[],isClickNode:!1,restaurants:[],searchValue:null,searchStoreKey:"searchDepartment",selectNodeInfo:null,tenantInfo:{},searchResult:[],memoryCacheKey:"DEPARTMENT_MEMORY_KEY",memoryCacheData:[],ElIconSearch:search_default}},name:"InlineDepartmentSingleTree",components:{UserResult:UserResult$1},props:{departmentInfo:{type:Array,default:null},height:{type:String,default:"300px"},selectDepartmentInfo:{type:[String,Number],default:null},searchField:{type:String,default:"id"},separator:{type:String,default:","}},computed:{},watch:{filterText(e){e||(this.searchValue=e,this.departmentInfo&&this.departmentInfo.length>0?this.loadPointDepartments():this.loadDepartment(this.tenantNodeId))}},mounted(){var e=localStorage$1.getObject(this.searchStoreKey);e?this.restaurants=e:this.restaurants=[],this.getMemoryCacheData("department")},methods:{...utils,...departmentTreeService,...memoryCacheUtils,filterNode(e,t,n){return e?t.name.indexOf(e)!==-1:!0},checkedNodeAndChildren(e){this.$refs.deparmentTree.setChecked(e.id,!0);const t=e.childDepartments;t&&t.forEach(n=>{this.checkedNodeAndChildren(n)})},cancelChildCheckedNodes(e){e.id!==this.tenantNodeId&&this.$refs.deparmentTree.setChecked(this.tenantNodeId,!1);const t=e.childDepartments;t&&t.forEach(n=>{this.$refs.deparmentTree.setChecked(n.id,!1),this.cancelChildCheckedNodes(n)})},handleCheckChange(e,t,n){},handleNodeExpand(e,t,n){},handleNodeClick(e,t,n){this.selectSingleNode(e,!1)},selectSingleNode(e,t){if(this.isDepartmentNode(e)){const n=JSON.parse(e.data);this.packageSelectResult(n),this.setMemoryCacheData(n,"department")}},packageSelectResult(e){e.tenantName=this.tenantInfo.tenantName,e.tenantCode=this.tenantInfo.code;var t={id:e.id,name:e.showName,code:e.code,containBranch:this.containBranch,zhName:e.name,enName:e.enName,department:e};this.selectNodeInfo=t},isDepartmentNode(e){return e.id!==this.tenantNodeId&&e.nodeType&&e.nodeType==="DEPARTMENT"&&!e.branch},selectDepartment(){var e=!1;this.selectNodeInfo?$emit(this,"result",this.selectNodeInfo):e=!0,e&&this.$alert(this.$t("imatrixUIMessage.pleaseSelectDepartment"),this.$t("imatrixUIMessage.tips"),{confirmButtonText:this.$t("imatrixUIPublicModel.sure")})},isSelectTenantNode(e){return e===this.tenantNodeId&&(!this.departmentInfo||this.departmentInfo.length===0)},renderContent(e,{node:t,data:n,store:r}){return t.data.id===-1||t.data.branch||t.data.id===-2||t.data.id,n.nodeType&&n.nodeType==="DEPARTMENT"&&this.searchValue&&n.name.indexOf(this.searchValue)>-1?`<span>
@@ -69,7 +63,7 @@ ${u}`:l)}else throw a},onCacheKey:a=>generateFormatCacheKey(t,n,a)}}function get
69
63
  </span>`:`<span>
70
64
  <i class={className}></i>
71
65
  <span title={node.label}>{node.label}</span>
72
- </span>`}},emits:["result"]},_hoisted_1$h={key:0,style:{"padding-top":"5px",overflow:"auto",width:"auto",display:"inline-block !important"}},_hoisted_2$d={key:1,style:{height:"100%",overflow:"hidden"}},_hoisted_3$8=Vue.createElementVNode("table",{border:"1px",cellpadding:"0",cellspacing:"0",style:{height:"100%","border-left-style":"solid","border-bottom-style":"none","border-right-style":"none","border-top-style":"none","border-left-color":"#cccccc"}},null,-1),_hoisted_4$5={style:{"text-align":"left","font-size":"16px"}},_hoisted_5$5={style:"padding-top: 5px;height:90%;overflow: hidden;"};function _sfc_render$q(e,t,n,r,i,o){const a=Vue.resolveComponent("el-button"),s=Vue.resolveComponent("el-autocomplete"),l=Vue.resolveComponent("el-header"),u=Vue.resolveComponent("el-tree"),c=Vue.resolveComponent("workgroup-user-result"),d=Vue.resolveComponent("el-main"),f=Vue.resolveComponent("el-container"),h=Vue.resolveComponent("el-aside");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(f,{style:{height:"395px"}},{default:Vue.withCtx(()=>[Vue.createVNode(h,{width:"430px"},{default:Vue.withCtx(()=>[Vue.createVNode(f,{style:{height:"390px"}},{default:Vue.withCtx(()=>[Vue.createVNode(l,{style:{"text-align":"right","font-size":"12px",height:"35px"}},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:i.filterText,"onUpdate:modelValue":t[0]||(t[0]=p=>i.filterText=p),size:"small","select-when-unmatched":"",class:"inline-input inline-input-custom","fetch-suggestions":e.querySearch,placeholder:e.$t("departmentUserTree.pleaseEnterUserInformation"),"trigger-on-focus":!1,onSelect:o.handleSelect,onKeyup:Vue.withKeys(o.clickSearch,["enter"])},{append:Vue.withCtx(()=>[Vue.createVNode(a,{icon:i.ElIconSearch,onClick:o.clickSearch},null,8,["icon","onClick"])]),_:1},8,["modelValue","fetch-suggestions","placeholder","onSelect","onKeyup"])]),_:1}),Vue.createVNode(d,{style:{padding:"10px"}},{default:Vue.withCtx(()=>[i.searchValue?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$h,[Vue.createVNode(u,{ref:"workgroupUserTree",props:i.defaultProps,load:e.loadNode,lazy:"","show-checkbox":n.multiple,"node-key":"nodeId","render-content":o.renderContent,"filter-node-method":o.filterNode,onCheck:o.handleCheckNode,onNodeClick:o.handleNodeClick},null,8,["props","load","show-checkbox","render-content","filter-node-method","onCheck","onNodeClick"])])),i.searchValue&&i.searchValue.length>0?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_2$d,[Vue.createVNode(c,{ref:"workgroupUserResult","grid-data":i.searchResult,"select-result":i.selectResult,height:e.height,multiple:n.multiple,"is-search-result":!0,onSelectResult:o.getSelectWorkgroupUser,onResultRowDblclick:o.resultRowDblclick,onAddWorkgroupUser:o.addWorkgroupUser},null,8,["grid-data","select-result","height","multiple","onSelectResult","onResultRowDblclick","onAddWorkgroupUser"])])):Vue.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1}),n.multiple?(Vue.openBlock(),Vue.createBlock(f,{key:0},{default:Vue.withCtx(()=>[Vue.createVNode(h,{width:"2px"},{default:Vue.withCtx(()=>[_hoisted_3$8]),_:1}),Vue.createVNode(d,{style:{padding:"10px"}},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_4$5,Vue.toDisplayString(e.$t("departmentUserTree.selectedPeople"))+":: ",1),Vue.createElementVNode("div",_hoisted_5$5,[Vue.createVNode(c,{"grid-data":i.selectResult,height:e.height,multiple:n.multiple,"is-search-result":!1,onSelectResult:o.getSelectWorkgroupUser,onResultRowDblclick:o.resultRowDblclick,onRemoveWorkgroupUser:o.removeWorkgroupUser},null,8,["grid-data","height","multiple","onSelectResult","onResultRowDblclick","onRemoveWorkgroupUser"])])]),_:1})]),_:1})):Vue.createCommentVNode("",!0)]),_:1})])}const InlineWorkgroupUserTree=_export_sfc(_sfc_main$q,[["render",_sfc_render$q]]),_sfc_main$p={name:"WorkgroupUserTree",components:{InlineWorkgroupUserTree},props:{multiple:{type:Boolean,default:!0},branchInfo:{type:Array,default:null},title:{type:String,default:null},width:{type:String,default:"30%"},selectUserInfo:{type:[String,Number],default:null},searchField:{type:String,default:"loginName"},separator:{type:String,default:","}},data(){let e=this.$t("imatrixUIMessage.pleaseSelectATeam");return this.title&&(e=this.title),{myTitle:e}},methods:{result(e){$emit(this,"close",e)},selectWorkgroupUser(){this.$refs.workgroupUserTree.selectWorkgroupUser()}},emits:["open","opend","close","closed","opend","close","closed"]},_hoisted_1$g={class:"dialog-footer"};function _sfc_render$p(e,t,n,r,i,o){const a=Vue.resolveComponent("inline-workgroup-user-tree"),s=Vue.resolveComponent("el-button"),l=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(l,{class:"user-tree","model-value":"",title:i.myTitle,"close-on-click-modal":!1,"append-to-body":"",width:n.multiple?"60%":"40%",onOpen:t[1]||(t[1]=u=>e.$emit("open")),onOpend:t[2]||(t[2]=u=>e.$emit("opend")),onClose:t[3]||(t[3]=u=>e.$emit("close")),onClosed:t[4]||(t[4]=u=>e.$emit("closed"))},{footer:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_1$g,[Vue.createVNode(s,{size:"small",onClick:t[0]||(t[0]=u=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIPublicModel.cancel")),1)]),_:1}),Vue.createVNode(s,{size:"small",type:"primary",onClick:o.selectWorkgroupUser},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIPublicModel.sure")),1)]),_:1},8,["onClick"])])]),default:Vue.withCtx(()=>[Vue.createVNode(a,{ref:"workgroupUserTree",multiple:n.multiple,"branch-info":n.branchInfo,"select-user-info":n.selectUserInfo,"search-field":n.searchField,separator:n.separator,onResult:o.result},null,8,["multiple","branch-info","select-user-info","search-field","separator","onResult"])]),_:1},8,["title","width"])])}const WorkgroupUserTree=_export_sfc(_sfc_main$p,[["render",_sfc_render$p]]);WorkgroupUserTree.install=function(e){e.component(WorkgroupUserTree.name,WorkgroupUserTree)},InlineDepartmentTree.install=function(e){e.component(InlineDepartmentTree.name,InlineDepartmentTree)};const _sfc_main$o={name:"InlineDepartmentUserTree",components:{InlineDepartmentUserSingleTree,InlineDepartmentUserMultiTree},props:{multiple:{type:Boolean,default:!0},departmentInfo:{type:Array,default:null},height:{type:String,default:"300px"},isNeedVirtualUser:{type:Boolean,default:!1},selectUserInfo:{type:[String,Number],default:null},searchField:{type:String,default:"loginName"},separator:{type:String,default:","}},data(){return{selectNodeInfo:null}},methods:{result(e){this.selectNodeInfo=e,$emit(this,"result",e)},confirmSelectUser(){this.$refs.userTree.confirmSelectUser()}},emits:["result"]};function _sfc_render$o(e,t,n,r,i,o){const a=Vue.resolveComponent("inline-department-user-multi-tree"),s=Vue.resolveComponent("inline-department-user-single-tree");return Vue.openBlock(),Vue.createElementBlock("div",null,[n.multiple?(Vue.openBlock(),Vue.createBlock(a,{key:0,ref:"userTree",height:n.height,"department-info":n.departmentInfo,"select-user-info":n.selectUserInfo,"search-field":n.searchField,separator:n.separator,onResult:o.result},null,8,["height","department-info","select-user-info","search-field","separator","onResult"])):Vue.createCommentVNode("",!0),n.multiple?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(s,{key:1,ref:"userTree",height:n.height,"department-info":n.departmentInfo,onResult:o.result},null,8,["height","department-info","onResult"]))])}const InlineDepartmentUserTree=_export_sfc(_sfc_main$o,[["render",_sfc_render$o]]);InlineDepartmentUserTree.install=function(e){e.component(InlineDepartmentUserTree.name,InlineDepartmentUserTree)},InlineWorkgroupTree.install=function(e){e.component(InlineWorkgroupTree.name,InlineWorkgroupTree)},InlineWorkgroupUserTree.install=function(e){e.component(InlineWorkgroupUserTree.name,InlineWorkgroupUserTree)};const _sfc_main$n={name:"WorkflowButton",props:{buttonInfo:{type:Object,default:null},hiddenBtns:{type:Array,default:null},permissionPrefix:{type:String,default:null},formButtonPosition:{type:String,default:null}},data(){const e=this.getButtonsPermission();return{slotBefore:"before",slotAfter:"after",buttons:[],buttonsPermission:e}},computed:{...mapGetters(["preventReclick"])},provide(){return{}},created(){const e=[],t=this;if((typeof this.buttonInfo.processState>"u"||this.buttonInfo.processState===null||this.buttonInfo.processState==="UNSUBMIT"&&this.buttonInfo.active==="WAIT_TRANSACT")&&((typeof this.buttonInfo.processState>"u"||this.buttonInfo.showButtonSave===!0)&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.saveButton),permission:this.buttonsPermission.save,type:"primary",clickFun:function(){$emit(t,"save")},code:"saveButton"}),e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.submitButton),permission:this.buttonsPermission.submitProcess,type:"primary",clickFun:function(){$emit(t,"submitProcess")},code:"submitButton"})),this.buttonInfo.processState){if(this.buttonInfo.active==="WAIT_TRANSACT"&&this.buttonInfo.processingMode==="TYPE_READ")(!this.hiddenBtns||this.hiddenBtns&&this.hiddenBtns.indexOf("readButton")===-1)&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.readButton),permission:this.buttonsPermission.completeTask,type:"primary",clickFun:function(){t.completeTask("READED")},code:"readButton"});else if(this.buttonInfo.processState==="SUBMIT"){if(this.buttonInfo.processingMode!=="TYPE_READ"&&this.buttonInfo.showButtonSave&&(this.buttonInfo.active==="WAIT_TRANSACT"||this.buttonInfo.active==="WAIT_DESIGNATE_TRANSACTOR"||this.buttonInfo.active==="WAIT_CHOICE_TACHE"||this.buttonInfo.active==="DRAW_WAIT")&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.saveButton),permission:this.buttonsPermission.update,type:"primary",clickFun:function(){$emit(t,"update")},code:"saveButton"}),this.buttonInfo.active&&this.buttonInfo.active==="WAIT_DESIGNATE_TRANSACTOR"&&(!this.hiddenBtns||this.hiddenBtns&&this.hiddenBtns.indexOf("selectTransactor")===-1)&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.submitButton),permission:this.buttonsPermission.selectTransactor,type:"primary",clickFun:function(){$emit(t,"selectTransactors")},code:"submitButton"}),this.buttonInfo.active&&this.buttonInfo.active==="WAIT_CHOICE_TACHE"&&(!this.hiddenBtns||this.hiddenBtns&&this.hiddenBtns.indexOf("selectTache")===-1)){e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.submitButton),permission:this.buttonsPermission.selectTache,type:"primary",clickFun:function(){$emit(t,"selectTaches")},code:"submitButton"});const n=e.findIndex(r=>r.code==="saveButton");n!==-1&&e.splice(n,1)}this.buttonInfo.active&&(this.buttonInfo.active==="DRAW_WAIT"||this.buttonInfo.active==="DEPT_DRAW_WAIT")&&this.buttonInfo.showButtonDraw&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.drawButton),permission:this.buttonsPermission.drawTask,type:"primary",clickFun:function(){$emit(t,"drawTask")},code:"drawButton"}),(this.buttonInfo.drawTask&&this.buttonInfo.active==="WAIT_TRANSACT"||this.buttonInfo.canAbandonDeptTask&&this.buttonInfo.active==="WAIT_TRANSACT")&&this.buttonInfo.showButtonAbandon&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.abandonButton),permission:this.buttonsPermission.abandonReceive,type:"primary",clickFun:function(){$emit(t,"abandonDraw")},code:"abandonButton"}),this.buttonInfo.active==="COMPLETED"&&this.buttonInfo.processingMode!=="TYPE_READ"&&(!this.hiddenBtns||this.hiddenBtns&&this.hiddenBtns.indexOf("retrieveButton")===-1)&&this.buttonInfo.showButtonGetBack&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.backButton),permission:this.buttonsPermission.retrieve,type:"primary",clickFun:function(){$emit(t,"retrieveTask")},code:"backButton"}),this.buttonInfo.active==="WAIT_TRANSACT"&&this.buttonInfo.processingMode==="EDIT"&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.submitButton),permission:this.buttonsPermission.submitTask,type:"primary",clickFun:function(){t.completeTask("SUBMIT")},code:"submitButton"}),this.buttonInfo.active==="WAIT_TRANSACT"&&(this.buttonInfo.processingMode==="APPROVE"||this.buttonInfo.processingMode==="COUNTERSIGN")&&(e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.agreeButton),permission:this.buttonsPermission.approve,type:"primary",clickFun:function(){t.completeTask("APPROVE")},code:"agreeButton"}),e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.disagreeButton),permission:this.buttonsPermission.refuse,type:"primary",clickFun:function(){t.completeTask("REFUSE")},code:"disagreeButton"}),this.buttonInfo.processingMode==="COUNTERSIGN"&&this.buttonInfo.showButtonAddCounter&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.addSignerButton),permission:this.buttonsPermission.addSigner,type:"primary",clickFun:function(){$emit(t,"addSigner")},code:"addSignerButton"}),this.buttonInfo.processingMode==="COUNTERSIGN"&&this.buttonInfo.showButtonDelCounter&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.removeSignerButton),permission:this.buttonsPermission.removeSigner,type:"primary",clickFun:function(){$emit(t,"removeSigner")},code:"removeSignerButton"})),this.buttonInfo.active==="WAIT_TRANSACT"&&this.buttonInfo.processingMode==="VOTE"&&(e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.approveButton),permission:this.buttonsPermission.agreement,type:"primary",clickFun:function(){t.completeTask("AGREEMENT")},code:"approveButton"}),e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.opposeButton),permission:this.buttonsPermission.oppose,type:"primary",clickFun:function(){t.completeTask("OPPOSE")},code:"opposeButton"}),this.buttonInfo.showButtonKiken&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.abstainButton),permission:this.buttonsPermission.kiken,type:"primary",clickFun:function(){t.completeTask("KIKEN")},code:"abstainButton"})),this.buttonInfo.active==="WAIT_TRANSACT"&&this.buttonInfo.processingMode!=="TYPE_READ"&&this.buttonInfo.showButtonCopy&&(!this.hiddenBtns||this.hiddenBtns&&this.hiddenBtns.indexOf("copyButton")===-1)&&this.buttonInfo.showButtonCopy&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.copyButton),permission:this.buttonsPermission.copyTask,type:"",clickFun:function(){$emit(t,"createCopyTask")},code:"copyButton"}),this.buttonInfo.processingMode!=="TYPE_READ"&&(this.buttonInfo.active==="WAIT_TRANSACT"||this.buttonInfo.active==="DRAW_WAIT")&&(!this.hiddenBtns||this.hiddenBtns&&this.hiddenBtns.indexOf("assignButton")===-1)&&this.buttonInfo.showButtonAppoint&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.appointButton),permission:this.buttonsPermission.assign,type:"",clickFun:function(){$emit(t,"assignTask")},code:"appointButton"})}}this.formButtonPosition==="bottomRight"?(this.buttons=e.slice().reverse(),this.slotBefore="after",this.slotAfter="before"):this.buttons=e},mounted(){},methods:{exportReportButt(){$emit(this,"exportReport")},completeTask(e){$emit(this,"completeTask",e)},i18nButtonName(e){const t="initVal:";if(e.indexOf(t)>=0){const n=e.substring(e.indexOf(t)+t.length);return this.$t("workflowButton."+n)}else return e},getButtonsPermission(){const e="true",t=this.permissionPrefix?this.permissionPrefix+".completeTask":e;return{save:this.permissionPrefix?this.permissionPrefix+".save":e,submitProcess:this.permissionPrefix?this.permissionPrefix+".submitProcess":e,approve:this.permissionPrefix?this.permissionPrefix+".approve":t,refuse:this.permissionPrefix?this.permissionPrefix+".refuse":t,submitTask:this.permissionPrefix?this.permissionPrefix+".submit":t,agreement:this.permissionPrefix?this.permissionPrefix+".agreement":t,oppose:this.permissionPrefix?this.permissionPrefix+".oppose":t,kiken:this.permissionPrefix?this.permissionPrefix+".kiken":t,readed:this.permissionPrefix?this.permissionPrefix+".readed":t,drawTask:this.permissionPrefix?this.permissionPrefix+".drawTask":e,abandonReceive:this.permissionPrefix?this.permissionPrefix+".abandonReceive":e,retrieve:this.permissionPrefix?this.permissionPrefix+".retrieve":e,update:this.permissionPrefix?this.permissionPrefix+".update":e,assign:this.permissionPrefix?this.permissionPrefix+".assign":e,selectTransactor:this.permissionPrefix?this.permissionPrefix+".selectTransactor":e,selectTache:this.permissionPrefix?this.permissionPrefix+".selectTache":e,copyTask:this.permissionPrefix?this.permissionPrefix+".copyTask":e,addSigner:this.permissionPrefix?this.permissionPrefix+".addSigner":e,removeSigner:this.permissionPrefix?this.permissionPrefix+".removeSigner":e,exportReport:this.permissionPrefix?this.permissionPrefix+".exportReport":e,drawDeptTask:this.permissionPrefix?this.permissionPrefix+".drawDeptTask":e,abandonDrawDeptTask:this.permissionPrefix?this.permissionPrefix+".abandonDrawDeptTask":e}},isDeptTask(){}},emits:["completeTask","save","submitProcess","update","selectTransactors","selectTaches","drawTask","abandonDraw","retrieveTask","addSigner","removeSigner","createCopyTask","assignTask","exportReport",,]},_hoisted_1$f={key:0,class:"operation-area"},_hoisted_2$c={key:1,class:"operation-area"};function _sfc_render$n(e,t,n,r,i,o){const a=Vue.resolveComponent("el-button"),s=Vue.resolveDirective("permission");return Vue.openBlock(),Vue.createElementBlock("span",null,[typeof n.buttonInfo.theTransactor<"u"&&n.buttonInfo.theTransactor===!1?(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_1$f,[Vue.renderSlot(e.$slots,i.slotBefore),Vue.renderSlot(e.$slots,"errorArea"),Vue.renderSlot(e.$slots,i.slotAfter)])):(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_2$c,[Vue.renderSlot(e.$slots,i.slotBefore),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(i.buttons,(l,u)=>Vue.withDirectives((Vue.openBlock(),Vue.createBlock(a,{key:u,disabled:e.preventReclick,type:l.type,size:"small",class:Vue.normalizeClass(l.code?l.code:""),onClick:l.clickFun},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(l.i18nButtonName),1)]),_:2},1032,["disabled","type","class","onClick"])),[[s,l.permission]])),128)),Vue.renderSlot(e.$slots,i.slotAfter)]))])}const WorkflowButton=_export_sfc(_sfc_main$n,[["render",_sfc_render$n]]);WorkflowButton.install=function(e){e.component(WorkflowButton.name,WorkflowButton)};function i18nOperation(e,t,n,r){let i=e.transactionResult;const o=e.historyType;if(!e.current&&o)if(e.transactionParams){const a=JSON.parse(e.transactionParams);let s=o.toLowerCase();const l=isCommonButtonOperation(o);if(l?s="commonButtonOperation":s==="process_end"&&(s="processEnd"),l||o==="HISTORY_COMPLETE_TRANSFER"){const u=a[2];a[2]=getI18n().t("workflowButton."+u)}if(s==="process_start"&&t&&t!==null)a[1]=t,i=getI18n().t("workflowHistoryList."+s,a);else{const u=a;if(n&&r)for(const c in a){u[c]=a[c];const d=a[c];if(d.indexOf("${taskNodeId:")>=0){const f=d.substring(d.indexOf(":")+1,d.indexOf("##")),h=d.substring(d.indexOf("##")+2,d.lastIndexOf("}")),p=n[f];p&&p[r]&&p[r]!==""?u[c]=p[r]:u[c]=h}}i=getI18n().t("workflowHistoryList."+s,u)}}else i=getI18n().t("workflowHistoryList."+o.toLowerCase());return i}function isCommonButtonOperation(e){return e==="HISTORY_SUBMIT"||e==="HISTORY_AGREE"||e==="HISTORY_DISAGREE"||e==="HISTORY_AGREEMENT"||e==="HISTORY_OPPOSE"||e==="HISTORY_KIKEN"||e==="HISTORY_SIGNOFF"||e==="HISTORY_SEND"||e==="HISTORY_DISTRIBUTE"||e==="HISTORY_READED"}const apis$1={refresh(){this.getData()}},_sfc_main$m={name:"WorkflowHistoryList",props:{workflowId:{type:Number,default:null},historyList:{type:Array,default:null},allProcessI18n:{type:Object,default:null},maxHeight:{type:[String,Number],default:null}},data(){let e=null;return this.historyList&&this.historyList.length>0&&(e=[].concat(this.historyList)),{loaded:!1,histories:e,processI18n:null,processNameI18n:null,tableMaxHeight:null}},computed:{},provide(){return{}},created(){this.getI18nSet().then(e=>{this.processI18n=e,!this.histories||this.histories===null?this.getData():this.loaded=!0})},mounted(){},methods:{...apis$1,getData(){this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/wf-editor/instance-histories/"+this.workflowId).then(e=>{this.histories=e.histories,e&&e.currentTasks&&(this.histories=this.histories.concat(e.currentTasks)),this.loaded=!0,this.maxHeight?this.tableMaxHeight=Number(this.maxHeight):this.$parent.$el.offsetHeight&&(this.tableMaxHeight=this.$parent.$el.offsetHeight)}).catch(e=>{console.log(e),this.loaded=!0})},getI18nSet(){return new Promise((e,t)=>{this.allProcessI18n?e(this.allProcessI18n):this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/wf-editor/i18n-settings/get-bundle-info?workflowId="+this.workflowId).then(n=>{e(n)}).catch(n=>{t(n)})})},i18nOperation(e){let t,n;const r=getLanguageWithLocale(),i=e.bundleCode;return i&&i!==""&&this.processI18n&&(t=this.processI18n[i]),t&&t.processName&&(n=t.processName[r]),i18nOperation(e,n,t,r)},i18nTaskName(e){let t;const n=e.bundleCode;n&&n!==""&&this.processI18n&&(t=this.processI18n[n]);let r=null;const i=e.i18nKey;if(i&&t&&t[i]){const o=getLanguageWithLocale();r=t[i][o]}return(!r||r===null)&&(r=e.taskName),r},getChildren(e,t,n){n(e.children)}}},_hoisted_1$e={key:0},_hoisted_2$b={key:1},_hoisted_3$7={key:2,style:{color:"#e6a23c"}},_hoisted_4$4={key:3},_hoisted_5$4={key:4,style:{color:"red"}},_hoisted_6$3={key:0},_hoisted_7$3={key:1},_hoisted_8$1={key:0},_hoisted_9$1={key:1},_hoisted_10$1={key:0},_hoisted_11$1={key:1},_hoisted_12$1={key:0},_hoisted_13$1={key:1},_hoisted_14={key:0},_hoisted_15={key:1,style:{color:"#e6a23c"}},_hoisted_16={key:2},_hoisted_17={key:0},_hoisted_18={key:1};function _sfc_render$m(e,t,n,r,i,o){const a=Vue.resolveComponent("el-table-column"),s=Vue.resolveComponent("el-table");return i.loaded?(Vue.openBlock(),Vue.createBlock(s,{key:0,data:i.histories,"element-loading-text":"Loading",border:"",fit:"","highlight-current-row":"","row-key":"uuid","tree-props":{children:"children",hasChildren:"hasChildren"},lazy:"",load:o.getChildren,"max-height":i.tableMaxHeight},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:e.$t("workflowHistoryList.index"),align:"left",width:"80px"},{default:Vue.withCtx(l=>[Vue.createTextVNode(Vue.toDisplayString(l.$index+1),1)]),_:1},8,["label"]),Vue.createVNode(a,{label:e.$t("workflowHistoryList.taskName"),align:"left",width:"250"},{default:Vue.withCtx(l=>[l.row.historyType&&l.row.historyType==="PROCESS_START"?(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_1$e,Vue.toDisplayString(e.$t("workflowHistoryList.processStart")),1)):l.row.historyType&&l.row.historyType==="PROCESS_END"?(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_2$b,Vue.toDisplayString(e.$t("workflowHistoryList.processEnd")),1)):l.row.current?(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_3$7,Vue.toDisplayString(o.i18nTaskName(l.row)),1)):l.row.special?l.row.special===!0?(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_5$4,Vue.toDisplayString(o.i18nTaskName(l.row)+"["+e.$t("workflowHistoryList.specailText")+"]"),1)):Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_4$4,Vue.toDisplayString(o.i18nTaskName(l.row)),1))]),_:1},8,["label"]),Vue.createVNode(a,{label:e.$t("workflowHistoryList.operator"),align:"left",width:"250"},{default:Vue.withCtx(l=>[l.row.historyType&&l.row.historyType==="PROCESS_END"?(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_6$3)):(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_7$3,Vue.toDisplayString(l.row.creatorName),1))]),_:1},8,["label"]),Vue.createVNode(a,{label:e.$t("workflowHistoryList.operatorLg"),align:"left",width:"250"},{default:Vue.withCtx(l=>[l.row.historyType&&l.row.historyType==="PROCESS_END"?(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_8$1)):(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_9$1,Vue.toDisplayString(l.row.creator),1))]),_:1},8,["label"]),Vue.createVNode(a,{label:e.$t("workflowHistoryList.operatorDept"),align:"left",width:"150"},{default:Vue.withCtx(l=>[l.row.historyType&&l.row.historyType==="PROCESS_END"?(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_10$1)):(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_11$1,Vue.toDisplayString(l.row.departmentName),1))]),_:1},8,["label"]),Vue.createVNode(a,{label:e.$t("workflowHistoryList.operationTime"),align:"left",width:"200"},{default:Vue.withCtx(l=>[l.row.historyType&&l.row.historyType==="PROCESS_END"?(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_12$1)):(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_13$1,Vue.toDisplayString(l.row.formatCreatedTime),1))]),_:1},8,["label"]),Vue.createVNode(a,{label:e.$t("workflowHistoryList.operation"),align:"left",width:"400"},{default:Vue.withCtx(l=>[l.row.historyType&&l.row.historyType==="PROCESS_END"?(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_14)):l.row.current?(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_15,Vue.toDisplayString(l.row.transactionResult)+" "+Vue.toDisplayString(e.$t("workflowHistoryList.toDoText")),1)):(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_16,Vue.toDisplayString(o.i18nOperation(l.row)),1))]),_:1},8,["label"]),Vue.createVNode(a,{label:e.$t("workflowHistoryList.opinion"),align:"left",width:"400"},{default:Vue.withCtx(l=>[l.row.historyType&&l.row.historyType==="PROCESS_END"?(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_17)):(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_18,Vue.toDisplayString(l.row.opinion),1))]),_:1},8,["label"])]),_:1},8,["data","load","max-height"])):Vue.createCommentVNode("",!0)}const WorkflowHistoryList=_export_sfc(_sfc_main$m,[["render",_sfc_render$m]]);WorkflowHistoryList.install=function(e){e.component(WorkflowHistoryList.name,WorkflowHistoryList)};function enableButton(e){e.disabled=!1,e.classList.remove("is-disabled")}const PreventReclick={inserted:function(e,t){e.addEventListener("click",()=>{e.disabled=!0,e.classList.add("is-disabled"),t.value().then(n=>{enableButton(e)}).catch(n=>{enableButton(e),console.log("Error",n.message)})})}},validCode_vue_vue_type_style_index_0_scoped_25e5caa2_lang="",_sfc_main$l={name:"ValidCode",model:{prop:"value",event:"input"},props:{width:{type:String,default:"100px"},height:{type:String,default:"40px"},length:{type:Number,default:4},refresh:{type:Number,default:null}},data(){return{codeList:[]}},watch:{refresh(){this.createdCode()}},mounted(){this.createdCode()},methods:{refreshCode(){this.createdCode()},createdCode(){const e=this.length,t=[],n="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz0123456789",r=n.length;for(let i=0;i<e;i++){const o=[Math.round(Math.random()*220),Math.round(Math.random()*240),Math.round(Math.random()*200)];t.push({code:n.charAt(Math.floor(Math.random()*r)),color:`rgb(${o})`,fontSize:`${10+(+[Math.floor(Math.random()*10)]+6)}px`,padding:`${[Math.floor(Math.random()*10)]}px`,transform:`rotate(${Math.floor(Math.random()*90)-Math.floor(Math.random()*90)}deg)`})}this.codeList=t,$emit(this,"update:value",t.map(i=>i.code).join(""))},getStyle(e){return`color: ${e.color}; font-size: ${e.fontSize}; padding: ${e.padding}; transform: ${e.transform}`}},emits:["update:value"]};function _sfc_render$l(e,t,n,r,i,o){return Vue.openBlock(),Vue.createElementBlock("div",{class:"ValidCode disabled-select",style:Vue.normalizeStyle(`width:${n.width}; height:${n.height}`),onClick:t[0]||(t[0]=(...a)=>o.refreshCode&&o.refreshCode(...a))},[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(i.codeList,(a,s)=>(Vue.openBlock(),Vue.createElementBlock("span",{key:s,style:Vue.normalizeStyle(o.getStyle(a))},Vue.toDisplayString(a.code),5))),128))],4)}const ValidCode=_export_sfc(_sfc_main$l,[["render",_sfc_render$l],["__scopeId","data-v-25e5caa2"]]);ValidCode.install=function(e){e.component(ValidCode.name,ValidCode)};const store=new Map,removeUserService$2={getSelectUsers(e,t,n){return new Promise((r,i)=>{e?t?this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/select-users?searchField="+e+"&selectUserInfo="+t+"&separator="+n).then(o=>{r(o)}).catch(o=>{i(o)}):r([]):r([])})}},_sfc_main$k={data(){return{users:[],originalUsers:[],containBranch:!1,tenantNodeId:-1,ElIconDelete:delete_default}},name:"RemoveUser",components:{},props:{selectUserInfo:{type:[String,Number],default:null},searchField:{type:String,default:"loginName"},width:{type:String,default:"30%"},height:{type:String,default:"300px"},separator:{type:String,default:","}},created(){this.selectUserInfo&&(this.selectUserInfo==="所有用户"?this.users.push(this.packageAllUser()):this.selectUserInfo==="所有工作组人员"?this.users.push(this.packageAllWgUser()):this.getSelectUsers(this.searchField,this.selectUserInfo,this.separator).then(e=>{this.originalUsers=e,this.users=e}))},methods:{...removeUserService$2,confirmSelectUser(){const e=[],t={userIds:[],loginNames:[],emails:[],telephones:[],users:[],userNames:[]};for(var n=0;n<this.users.length;n++){var r=this.users[n];t.userIds.push(r.id),t.loginNames.push(r.loginName),r.email&&r.email!==""&&t.emails.push(r.email),r.telephone&&r.telephone!==""&&t.telephones.push(r.telephone),t.users.push(r);var i=r.name;this.containBranch&&r.subCompanyName&&(i=i+"("+r.subCompanyName+")"),t.userNames.push(i),e.push(r[this.searchField])}const o=this.getRemoveItems(this.originalUsers,e,this.searchField);$emit(this,"close",t,o)},packageAllUser(){var e={id:this.tenantNodeId,name:"所有用户"};return e},packageAllWgUser(){var e={id:this.tenantNodeId,name:"所有工作组人员"};return e},removeUser(e){this.users.splice(e,1)},removeAllUser(){this.users=[]},getRemoveItems(e,t,n){return t===void 0||t.length===0?e:e?e.filter(r=>t.indexOf(r[n])===-1):[]}},emits:["open","opend","close","closed","opend","close","closed"]},_hoisted_1$d={style:{"margin-bottom":"10px"}},_hoisted_2$a={class:"dialog-footer"};function _sfc_render$k(e,t,n,r,i,o){const a=Vue.resolveComponent("el-button"),s=Vue.resolveComponent("el-table-column"),l=Vue.resolveComponent("el-table"),u=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(u,{class:"user-tree","model-value":"",title:e.$t("departmentUserTreeInline.removeUser"),"append-to-body":"","close-on-click-modal":!1,width:n.width,onOpen:t[2]||(t[2]=c=>e.$emit("open")),onOpend:t[3]||(t[3]=c=>e.$emit("opend")),onClose:t[4]||(t[4]=c=>e.$emit("close")),onClosed:t[5]||(t[5]=c=>e.$emit("closed"))},{footer:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_2$a,[Vue.createVNode(a,{size:"small",onClick:t[1]||(t[1]=c=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIPublicModel.cancel")),1)]),_:1}),Vue.createVNode(a,{size:"small",type:"primary",onClick:o.confirmSelectUser},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIPublicModel.sure")),1)]),_:1},8,["onClick"])])]),default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_1$d,[Vue.createVNode(a,{type:"danger",size:"mini",icon:i.ElIconDelete,onClick:t[0]||(t[0]=c=>o.removeAllUser())},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIPublicModel.clear")),1)]),_:1},8,["icon"])]),Vue.createVNode(l,{ref:"removeUserGrid",data:i.users,"row-key":"id",border:"",height:n.height},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("departmentUserTreeInline.name"),prop:"name"},null,8,["label"]),Vue.createVNode(s,{label:e.$t("departmentUserTreeInline.department"),prop:"mainDepartmentName"},null,8,["label"]),i.containBranch?(Vue.openBlock(),Vue.createBlock(s,{key:0,label:e.$t("departmentUserTreeInline.branch"),prop:"subCompanyName"},null,8,["label"])):Vue.createCommentVNode("",!0),Vue.createVNode(s,{label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},{default:Vue.withCtx(c=>[Vue.createElementVNode("div",null,[Vue.createVNode(a,{type:"danger",size:"mini",icon:i.ElIconDelete,circle:"",onClick:d=>o.removeUser(c.$index)},null,8,["icon","onClick"])])]),_:1},8,["label"])]),_:1},8,["data","height"])]),_:1},8,["title","width"])])}const RemoveUser=_export_sfc(_sfc_main$k,[["render",_sfc_render$k]]);RemoveUser.install=function(e){e.component(RemoveUser.name,RemoveUser)};const removeUserService$1={getSelectDepts(e,t,n){return new Promise((r,i)=>{e?t?this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/select-departments?searchField="+e+"&selectDeptInfo="+t+"&separator="+n).then(o=>{r(o)}).catch(o=>{i(o)}):r([]):r([])})}},_sfc_main$j={data(){return{departments:[],originalDepts:[],containBranch:!1,tenantNodeId:-1,ElIconDelete:delete_default}},name:"RemoveDepartment",components:{},props:{selectDepartmentInfo:{type:[String,Number],default:null},searchField:{type:String,default:"id"},width:{type:String,default:"30%"},height:{type:String,default:"300px"},separator:{type:String,default:","}},created(){this.selectDepartmentInfo&&(this.selectDepartmentInfo===this.tenantNodeId||this.selectDepartmentInfo==="所有部门"?this.departments.push(this.packageAllDept()):this.getSelectDepts(this.searchField,this.selectDepartmentInfo,this.separator).then(e=>{this.originalDepts=e,this.departments=e}))},methods:{...removeUserService$1,confirmSelectDept(){const e=[];for(var t={ids:[],names:[],codes:[],departments:[]},n=0;n<this.departments.length;n++){var r=this.departments[n];t.ids.push(r.id),t.codes.push(r.code),t.departments.push(r);var i=r.name;this.containBranch&&r.branchName&&(i=i+"("+r.branchName+")"),t.names.push(i),e.push(r[this.searchField])}const o=this.getRemoveItems(this.originalDepts,e,this.searchField);$emit(this,"close",t,o)},packageAllDept(){var e={id:this.tenantNodeId,name:"所有部门"};return e},removeDept(e){this.departments.splice(e,1)},removeAllDept(){this.departments=[]},getRemoveItems(e,t,n){return t===void 0||t.length===0?e:e?e.filter(r=>t.indexOf(r[n])===-1):[]}},emits:["open","opend","close","closed","opend","close","closed"]},_hoisted_1$c={style:{"margin-bottom":"10px"}},_hoisted_2$9={class:"dialog-footer"};function _sfc_render$j(e,t,n,r,i,o){const a=Vue.resolveComponent("el-button"),s=Vue.resolveComponent("el-table-column"),l=Vue.resolveComponent("el-table"),u=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(u,{class:"user-tree","model-value":"",title:e.$t("departmentTreeInline.removeDepartment"),"append-to-body":"","close-on-click-modal":!1,width:n.width,onOpen:t[2]||(t[2]=c=>e.$emit("open")),onOpend:t[3]||(t[3]=c=>e.$emit("opend")),onClose:t[4]||(t[4]=c=>e.$emit("close")),onClosed:t[5]||(t[5]=c=>e.$emit("closed"))},{footer:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_2$9,[Vue.createVNode(a,{size:"small",onClick:t[1]||(t[1]=c=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIPublicModel.cancel")),1)]),_:1}),Vue.createVNode(a,{size:"small",type:"primary",onClick:o.confirmSelectDept},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIPublicModel.sure")),1)]),_:1},8,["onClick"])])]),default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_1$c,[Vue.createVNode(a,{type:"danger",size:"mini",icon:i.ElIconDelete,onClick:t[0]||(t[0]=c=>o.removeAllDept())},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIPublicModel.clear")),1)]),_:1},8,["icon"])]),Vue.createVNode(l,{ref:"removeDeptGrid",data:i.departments,"row-key":"id",border:"",height:n.height},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("departmentTreeInline.name"),prop:"name"},null,8,["label"]),Vue.createVNode(s,{label:e.$t("departmentTreeInline.code"),prop:"code"},null,8,["label"]),Vue.createVNode(s,{label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},{default:Vue.withCtx(c=>[Vue.createElementVNode("div",null,[Vue.createVNode(a,{type:"danger",size:"mini",icon:i.ElIconDelete,circle:"",onClick:d=>o.removeDept(c.$index)},null,8,["icon","onClick"])])]),_:1},8,["label"])]),_:1},8,["data","height"])]),_:1},8,["title","width"])])}const RemoveDepartment=_export_sfc(_sfc_main$j,[["render",_sfc_render$j]]);RemoveDepartment.install=function(e){e.component(RemoveDepartment.name,RemoveDepartment)};const removeUserService={getSelectWgs(e,t,n){return new Promise((r,i)=>{e?t?this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/select-workgroups?searchField="+e+"&selectWorkgroupInfo="+t+"&separator="+n).then(o=>{r(o)}).catch(o=>{i(o)}):r([]):r([])})}},_sfc_main$i={data(){return{workgroups:[],originalWgs:[],tenantNodeId:-1,ElIconDelete:delete_default}},name:"RemoveWorkgroup",components:{},props:{selectWorkgroupInfo:{type:[String,Number],default:null},searchField:{type:String,default:"id"},width:{type:String,default:"30%"},height:{type:String,default:"300px"},separator:{type:String,default:","}},created(){this.selectWorkgroupInfo&&this.getSelectWgs(this.searchField,this.selectWorkgroupInfo,this.separator).then(e=>{this.originalWgs=e,this.workgroups=e})},methods:{...removeUserService,confirmSelectWg(){const e=[];for(var t={ids:[],names:[],codes:[],workgroups:[]},n=0;n<this.workgroups.length;n++){var r=this.workgroups[n];t.ids.push(r.id),t.codes.push(r.code),t.workgroups.push(r),t.names.push(r.name),e.push(r[this.searchField])}const i=this.getRemoveItems(this.originalWgs,e,this.searchField);$emit(this,"close",t,i)},packageAllWg(){var e={id:this.tenantNodeId,name:"所有工作组"};return e},removeWg(e){this.workgroups.splice(e,1)},removeAllWg(){this.workgroups=[]},getRemoveItems(e,t,n){return t===void 0||t.length===0?e:e?e.filter(r=>t.indexOf(r[n])===-1):[]}},emits:["open","opend","close","closed","opend","close","closed"]},_hoisted_1$b={style:{"margin-bottom":"10px"}},_hoisted_2$8={class:"dialog-footer"};function _sfc_render$i(e,t,n,r,i,o){const a=Vue.resolveComponent("el-button"),s=Vue.resolveComponent("el-table-column"),l=Vue.resolveComponent("el-table"),u=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(u,{class:"user-tree","model-value":"",title:e.$t("workgroupTree.removeWorkgroup"),"append-to-body":"","close-on-click-modal":!1,width:n.width,onOpen:t[2]||(t[2]=c=>e.$emit("open")),onOpend:t[3]||(t[3]=c=>e.$emit("opend")),onClose:t[4]||(t[4]=c=>e.$emit("close")),onClosed:t[5]||(t[5]=c=>e.$emit("closed"))},{footer:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_2$8,[Vue.createVNode(a,{size:"small",onClick:t[1]||(t[1]=c=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIPublicModel.cancel")),1)]),_:1}),Vue.createVNode(a,{size:"small",type:"primary",onClick:o.confirmSelectWg},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIPublicModel.sure")),1)]),_:1},8,["onClick"])])]),default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_1$b,[Vue.createVNode(a,{type:"danger",size:"mini",icon:i.ElIconDelete,onClick:t[0]||(t[0]=c=>o.removeAllWg())},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIPublicModel.clear")),1)]),_:1},8,["icon"])]),Vue.createVNode(l,{ref:"removeWgGrid",data:i.workgroups,"row-key":"id",border:"",height:n.height},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("workgroupTree.name"),prop:"name"},null,8,["label"]),Vue.createVNode(s,{label:e.$t("workgroupTree.code"),prop:"code"},null,8,["label"]),Vue.createVNode(s,{label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},{default:Vue.withCtx(c=>[Vue.createElementVNode("div",null,[Vue.createVNode(a,{type:"danger",size:"mini",icon:i.ElIconDelete,circle:"",onClick:d=>o.removeWg(c.$index)},null,8,["icon","onClick"])])]),_:1},8,["label"])]),_:1},8,["data","height"])]),_:1},8,["title","width"])])}const RemoveWorkgroup=_export_sfc(_sfc_main$i,[["render",_sfc_render$i]]);RemoveWorkgroup.install=function(e){e.component(RemoveWorkgroup.name,RemoveWorkgroup)};const _sfc_main$h={components:{ElIconSearch:search_default,ElIconDelete:delete_default},name:"OrganizationInput",model:{prop:"value",event:"input"},props:{value:{type:String,default:""},multiple:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},treeType:{type:String,default:"DeptUserTree"},disabled:{type:Boolean,default:!1},fields:{type:Array,default:null},models:{type:Object,default:null},size:{type:String,default:""},tableName:{type:String,default:null},isJoinTable:{type:Boolean,default:!1},departmentInfo:{type:Array,default:null},separator:{type:String,default:","}},data(){return{showOrganizationTreeFlag:!1,isAppendResult:!1,showRemoveComponent:!1,selectOrganizationInfo:null,searchField:null,selectOrganizationAllInfo:{}}},created(){},methods:{showOrganizationTree(){let e=this.multiple;typeof e>"u"&&(e=!1),e===!0&&this.getSelectInfo(),$emit(this,"focus"),this.showOrganizationTreeFlag=!0},getPropName(e,t,n){return getPropNameWhenJoinTable(e,t,n)},emptyOrganizationResult(){const e=this.fields;e&&e.length>0&&(e.forEach(t=>{const n=this.getPropName(t.model);this.setValue(n,null)}),this.selectOrganizationAllInfo={},this.selectOrganizationInfo=null,this.searchField=null)},closeOrganizationTree(e){e&&this.setOrganizationData(e),this.showOrganizationTreeFlag=!1},setOrganizationData(e,t,n){let r=this.multiple;typeof r>"u"&&(r=!1);const i=this.treeType,o=this.fields;o&&o.length>0&&o.forEach(a=>{const s=a.type,l=this.getOrgSelectData(s,e,this.isUserTree(i),r),u=this.getPropName(a.model);this.getOrgDataModel(u,l,r,s,t,n)})},getOrgDataModel(e,t,n,r,i,o){if(n){const a=this.getModelValue(e);this.selectOrganizationAllInfo[r]=t,this.setValue(e,t),$emit(this,"replace",e,a,t)}else this.setValue(e,t)},getModelValue(e){let t="";return this.isJoinTable===!1&&e&&e.indexOf(".")>0?t=this.getParentObject(e,this.models)[e.substring(e.lastIndexOf(".")+1)]:(e=this.getPropName(e),t=this.models[e]),t},isUserTree(e){return e==="DeptUserTree"||e==="WgUserTree"},getOrgSelectData(e,t,n,r){if(r===!0){if(e==="id")return n?t.userIds.join(this.separator):t.ids.join(this.separator);if(e==="name")return n?t.userNames.join(this.separator):t.names.join(this.separator);if(e==="code"){if(!n)return t.codes.join(this.separator)}else{if(e==="loginName")return t.loginNames.join(this.separator);if(e==="email")return t.emails.join(this.separator);if(e==="telephone")return t.telephones.join(this.separator);if(e==="mainDeptName"){const i=[];if(n){const o=t.users;o&&o.forEach(a=>{i.push(a.mainDepartmentName)})}return i.join(this.separator)}else if(e==="mainDeptId"){const i=[];if(n){const o=t.users;o&&o.forEach(a=>{a.mainDepartmentId&&i.push(a.mainDepartmentId)})}return i.join(this.separator)}else if(e==="mainDeptCode"){const i=[];if(n){const o=t.users;o&&o.forEach(a=>{a.mainDepartmentCode&&i.push(a.mainDepartmentCode)})}return i.join(this.separator)}else if(e==="subCompanyName"){const i=[];if(n){const o=t.users;o&&o.forEach(a=>{a.subCompanyName&&i.push(a.subCompanyName)})}return i.join(this.separator)}else if(e==="subCompanyId"){const i=[];if(n){const o=t.users;o&&o.forEach(a=>{a.subCompanyId&&i.push(a.subCompanyId)})}return i.join(this.separator)}}}else if(e==="mainDeptName"){let i=null;if(n){const o=t.user;o&&(i=o.mainDepartmentName)}return i}else if(e==="mainDeptId"){let i=null;if(n){const o=t.user;o&&(i=o.mainDepartmentId)}return i}else if(e==="mainDeptCode"){let i=null;if(n){const o=t.user;o&&(i=o.mainDepartmentCode)}return i}else if(e==="subCompanyName"){let i=null;if(n){const o=t.user;o&&(i=o.subCompanyName)}return i}else if(e==="subCompanyId"){let i=null;if(n){const o=t.user;o&&(i=o.subCompanyId)}return i}else return t[e]},showMyRemoveComponent(){this.getSelectInfo(),!this.selectOrganizationInfo||this.selectOrganizationInfo===null||this.selectOrganizationInfo===""?this.$message({showClose:!0,type:"warning",message:this.$t("imatrixUIMessage.organizationTreeNoResultNotRemove")}):this.showRemoveComponent=!0},getSelectInfo(){const e=["id","code","loginName","email","telephone","name"];if(Object.keys(this.selectOrganizationAllInfo).length===0)for(let n=0;n<e.length;n++){const r=e[n],i=this.fields.filter(o=>o.type===r);if(i&&i.length>0){const o=i[0];if(o){const a=this.getPropName(o.model),s=this.getModelValue(a);if(s&&s!==null&&s!==""){this.selectOrganizationInfo=s,this.searchField=r;break}}}}else for(let n=0;n<e.length;n++){const r=e[n],i=this.selectOrganizationAllInfo[r];if(i&&i!==null&&i!==""){this.selectOrganizationInfo=i,this.searchField=r;break}}},setValue(e,t){if(this.models){if(this.isJoinTable===!1&&e&&e.indexOf(".")>0){const n=this.getParentObject(e,this.models);n&&setEntityFieldValue(n,e.substring(e.lastIndexOf(".")+1),t)}else e=this.getPropName(e),setEntityFieldValue(this.models,e,t);console.log("this.value",this.models),$emit(this,"setValue",e,t),(t==null||t==="")&&$emit(this,"clear",e)}},getParentObject(e,t){const n=e.split(".");if(n.length===1)return t;{let r;for(let i=0;i<n.length-1;i++)i===0?r=this.getParentModelProp(n[i],t):r=this.getParentModelProp(n[i],r);return r}},getParentModelProp(e,t){return t||(t={}),t[e]||(t[e]={}),t[e]}},emits:["replace","setValue","clear","focus","update:value"]},_hoisted_1$a={style:{width:"100%"}};function _sfc_render$h(e,t,n,r,i,o){const a=Vue.resolveComponent("el-icon-search"),s=Vue.resolveComponent("el-icon"),l=Vue.resolveComponent("el-icon-delete"),u=Vue.resolveComponent("el-input"),c=Vue.resolveComponent("department-user-tree"),d=Vue.resolveComponent("department-tree"),f=Vue.resolveComponent("workgroup-tree"),h=Vue.resolveComponent("workgroup-user-tree");return Vue.openBlock(),Vue.createElementBlock("span",_hoisted_1$a,[n.disabled?(Vue.openBlock(),Vue.createBlock(u,{key:0,"model-value":n.value,type:"text",size:n.size,readonly:!0,disabled:!0},{append:Vue.withCtx(()=>[Vue.createVNode(s,{class:"el-input__icon"},{suffix:Vue.withCtx(()=>[Vue.createVNode(a)]),_:1}),Vue.createVNode(s,{class:"el-input__icon"},{suffix:Vue.withCtx(()=>[Vue.createVNode(l)]),_:1})]),_:1},8,["model-value","size"])):(Vue.openBlock(),Vue.createBlock(u,{key:1,"model-value":n.value,type:"text",size:n.size,readonly:!0,onFocus:t[2]||(t[2]=p=>o.showOrganizationTree(!1))},{append:Vue.withCtx(()=>[Vue.createVNode(s,{class:"el-input__icon",onClick:t[0]||(t[0]=p=>o.showOrganizationTree(!1))},{default:Vue.withCtx(()=>[Vue.createVNode(a)]),_:1}),Vue.createVNode(s,{class:"el-input__icon",onClick:t[1]||(t[1]=p=>o.emptyOrganizationResult())},{default:Vue.withCtx(()=>[Vue.createVNode(l)]),_:1})]),_:1},8,["model-value","size"])),n.treeType&&n.treeType==="DeptUserTree"&&i.showOrganizationTreeFlag?(Vue.openBlock(),Vue.createBlock(c,{key:2,multiple:typeof n.multiple>"u"?!1:n.multiple,"department-info":n.departmentInfo,"select-user-info":i.selectOrganizationInfo,"search-field":i.searchField,separator:n.separator,onClose:o.closeOrganizationTree},null,8,["multiple","department-info","select-user-info","search-field","separator","onClose"])):Vue.createCommentVNode("",!0),n.treeType&&n.treeType==="DeptTree"&&i.showOrganizationTreeFlag?(Vue.openBlock(),Vue.createBlock(d,{key:3,width:"30%","check-strictly":typeof n.checkStrictly>"u"?!1:n.checkStrictly,multiple:typeof n.multiple>"u"?!1:n.multiple,"select-department-info":i.selectOrganizationInfo,"search-field":i.searchField,separator:n.separator,onClose:o.closeOrganizationTree},null,8,["check-strictly","multiple","select-department-info","search-field","separator","onClose"])):Vue.createCommentVNode("",!0),n.treeType&&n.treeType==="WgTree"&&i.showOrganizationTreeFlag?(Vue.openBlock(),Vue.createBlock(f,{key:4,width:"30%",multiple:typeof n.multiple>"u"?!1:n.multiple,"select-workgroup-info":i.selectOrganizationInfo,"search-field":i.searchField,separator:n.separator,onClose:o.closeOrganizationTree},null,8,["multiple","select-workgroup-info","search-field","separator","onClose"])):Vue.createCommentVNode("",!0),n.treeType&&n.treeType==="WgUserTree"&&i.showOrganizationTreeFlag?(Vue.openBlock(),Vue.createBlock(h,{key:5,width:"30%",multiple:typeof n.multiple>"u"?!1:n.multiple,"branch-info":n.departmentInfo,"select-user-info":i.selectOrganizationInfo,"search-field":i.searchField,separator:n.separator,onClose:o.closeOrganizationTree},null,8,["multiple","branch-info","select-user-info","search-field","separator","onClose"])):Vue.createCommentVNode("",!0)])}const OrganizationInput=_export_sfc(_sfc_main$h,[["render",_sfc_render$h]]);OrganizationInput.install=function(e){e.component(OrganizationInput.name,OrganizationInput)};const formatter={number:function(e,t){const n=t.precision,r=t.delimiter,i=t.scientific;let o=t.scientificNum;if(e!=null&&(n>0&&(e=parseFloat(e),e=e.toFixed(n)),r&&(e=e.replace(/\d{1,3}(?=(\d{3})+(\.\d*)?$)/g,"$&,")),i!=null)){let a=!1;o?o=parseInt(o):o=11,e.length>=o&&(a=!0),a&&(e=""+e,e=parseFloat(e),e=e.toExponential())}return e},currency:function(e,t){return t.sign+this.number(e,t)},date:function(e,t){const n=t.format;if(e!=null){const u=new Date(e);var r=u.getFullYear(),i=u.getMonth()+1,o=u.getDate(),a=u.getHours(),s=u.getMinutes(),l=u.getSeconds();return i<10&&(i="0"+i),o<10&&(o="0"+o),a<10&&(a="0"+a),s<10&&(s="0"+s),l<10&&(l="0"+l),n.replace("yyyy",r).replace("m",i).replace("d",o).replace("hh",a).replace("mm",s).replace("ss",l)}return e},time:function(e,t){return this.date(e,t)},percent:function(e,t){return this.number(e,t)+"%"}};function doFormat(e,t){if(t===void 0||e===void 0)return t;if(e.valueSet!==void 0){const r=e.valueSet.filter(i=>i.value===t+"");r.length>0&&(t=r[0].label)}e.formatter===void 0&&(e.dataType==="DATE"?e.formatter={type:"date",options:{format:"yyyy-m-d"}}:e.dataType==="TIME"&&(e.formatter={type:"time",options:{format:"yyyy-m-d hh:mm:ss"}}));const n=e.formatter;return n!==void 0&&formatter[n.type]!==void 0?formatter[n.type](t,n.options):t}const customFormatter={isObjectProp(e){return e.indexOf(".")>0},objectPropOriginalValue(e,t){try{let n=e;return t.split(".").forEach(i=>{if(n)n=n[i];else throw n="",n}),n}catch{return""}},objectPropValue(e,t,n){return doFormat(t,this.objectPropOriginalValue(e,n))},getColumnValue(e,t){const n=t.prop;let r=e[n];this.isObjectProp(n)&&(r=this.objectPropOriginalValue(e,n));const i=doFormat(t,r);return{originalValue:r,formatValue:i}},onClickFun(e,t,n,r){const i=this.getColumnValue(e,t);n.call(this,i.originalValue,i.formatValue,e,t,r)},isShowButtonFun(e,t){const n=t.isShow;if(n===void 0)return!0;if(typeof n=="function"){let r=n.call(this,e,t);return r===void 0&&(r=!0),r}else return n}},searchMethods={packageSearchParam(){const e=[];return this.searchableColumns.forEach(t=>{const n={leftBracket:"",rightBracket:"",joinSign:"and"};let r=t.orgProp;const i="__";if(r.indexOf(i)>0&&(r=r.replace(i,".")),n.columnProp=t.prop,n.propName=r,n.enumName=t.enumName,n.operator=this.getOperator(t),n.dataType=t.dataType,t.dataType==="DATE"||t.dataType==="TIME"){const o=this.getFormItemValue(t.prop);o!==null&&o.length===2&&o[0]!==null&&o[1]!==null&&(n.startValue=o[0],n.endValue=o[1],e.push(n))}else if(t.dataType==="INTEGER"||t.dataType==="LONG"){const o=this.getFormItemValue(t.prop);o&&(!Array.isArray(o)||o.length<2||o[0]===null&&o[1]===null?Array.isArray(o)?o.length<2?(n.propValue=o[0],e.push(n)):o[0]===null?(n.propValue=o[1],e.push(n)):o[1]===null&&(n.propValue=o[0],e.push(n)):(n.propValue=o,e.push(n)):(n.startValue=o[0],n.endValue=o[1],e.push(n)))}else if(t.componentType==="multiselect"){const o=this.getFormItemValue(t.prop);this.packageValueWithArray(o,e,n)}else{const o=this.getFormItemValue(t.prop);this.packageValueWithArray(o,e,n)}}),e},getOperator(e){return(e.dataType==="TEXT"||e.dataType==="CLOB")&&e.fuzzy?"CONTAIN":"EQ"},getFormItemValue(e){return e.indexOf(".")>0?this.getParentObject(e)[e.substring(e.lastIndexOf(".")+1)]:this.searchForm[e]},getParentObject(e){const t=e.split(".");if(t.length===1)return this.searchForm;{let n;for(let r=0;r<t.length-1;r++)n=this.searchForm[t[r]];return n}},packageValueWithArray(e,t,n){if(e&&Array.isArray(e)){const r=e;let i=0;r.forEach(o=>{const a=Object.assign({},n);a.joinSign="or",i===0&&(a.leftBracket="1"),i===r.length-1&&(a.rightBracket="1",a.joinSign="and"),a.propValue=o,a.operator="EQ",o&&t.push(a),i++})}else typeof e<"u"&&e!==""&&e!==null&&!Array.isArray(e)&&(n.propValue=e,t.push(n))}},_sfc_main$g={props:{r:{type:Number,default:null},n:{type:Number,default:null}},data(){return{number1:null,number2:null}},methods:{setValue(){$emit(this,"setValue",[this.number1,this.number2],this.r,this.n)}},emits:["setValue"]},_hoisted_1$9=Vue.createElementVNode("span",null,"---",-1);function _sfc_render$g(e,t,n,r,i,o){const a=Vue.resolveComponent("el-input-number");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(a,{modelValue:i.number1,"onUpdate:modelValue":t[0]||(t[0]=s=>i.number1=s),onChange:t[1]||(t[1]=s=>o.setValue())},null,8,["modelValue"]),_hoisted_1$9,Vue.createVNode(a,{modelValue:i.number2,"onUpdate:modelValue":t[2]||(t[2]=s=>i.number2=s),onChange:t[3]||(t[3]=s=>o.setValue())},null,8,["modelValue"])])}const searchFormNumber=_export_sfc(_sfc_main$g,[["render",_sfc_render$g]]);function isHasOptionFunction(e,t){t||(t=store.get("_nine_list_code")),t&&t.indexOf("~")<0&&(t=t+"~_nineGrid");const n=store.get(t);return!!(n.options&&typeof n.options[e]=="function")}function getGridParams(){const e={columns:[],gridData:[],orgGridData:[],showValidateError:!0,options:{}};return Vue__namespace.reactive(e)}function addDynamicProp(e,t,n){const r=t.split(".");if(r.length===1){n!==void 0?e[t]=n:e[t]=null;return}let i=e;for(let o=0;o<r.length-1;o++)i[r[o]]===void 0&&(i[r[o]]={}),i=i[r[o]];n!==void 0?i[r[r.length-1]]=n:i[r[r.length-1]]=null}function getTableHeight(e,t){if(e===!0){let n=0;return t&&(n=t.$el.offsetHeight),window.innerHeight-n-165}else return window.innerHeight-165}const searchForm_vue_vue_type_style_index_0_scoped_045cd274_lang="",_sfc_main$f={name:"SearchForm",components:{searchFormNumber},props:{columns:{type:Array,default:null},code:{type:String,default:null},url:{type:String,default:null},pagination:{type:Object,default:null},query:{type:Object,default:null},searchParam:{type:Object,default:null},initSearchProps:{type:Array,default:null},gridId:{type:String,default:"_nineGrid"}},data(){const e=this.code+"~"+this.gridId,t=new Set,n=store.get(e);let r={};this.searchParam!==null&&(r=JSON.parse(JSON.stringify(this.searchParam))),console.log("searchForm=",r);const i=this.getSearchableColumns();(this.initSearchProps===void 0||this.initSearchProps===null)&&(this.initSearchProps=[]),i.forEach(l=>{this.initSearchProps.indexOf(l.prop)<0&&(l.prop.indexOf(".")>0?addDynamicProp(r,l.prop):r[l.prop]=null)});const o=this.getSpanNum(e),a=this.getFieldNumPerRow(e),s=Math.ceil(i.length/a);return{searchForm:r,rules:{},searchParams:[],labelWidth:n.options.search&&n.options.search.labelWidth?n.options.search.labelWidth:"80px",customComponentNames:t,componentName:"",spanNum:o,fieldNum:a,rowNum:s,loading:!1,storeId:e}},computed:{searchableColumns(){return this.getSearchableColumns()}},methods:{...searchMethods,getColumnNumPerRow(e,t){let n=this.fieldNum;return this.fieldNum*e>t&&(n=t-this.fieldNum*(e-1)),n},getFieldNumPerRow(e){const t=store.get(e);return t.options.search&&t.options.search.fieldNum?t.options.search.fieldNum:4},getSpanNum(e){const t=this.getFieldNumPerRow(e);return t===1?14:t===2?10:t===3?8:t===4?6:4},setValueToModelProp(e,t){if(e.indexOf(".")>0){const n=this.getParentObject(e);n[e.substring(e.lastIndexOf(".")+1)]=t}else this.searchForm[e]=t},getSearchableColumns(e,t){this.customComponentNames||(this.customComponentNames=new Set),t||(t=[]),e||(e=this.columns);for(let n=0;n<e.length;n++){const r=e[n];if(!(r.prop==="$index"||r.prop==="$selection"||r.dynamic)){if(r.groupHeader)this.getSearchableColumns(r.children,t);else if(r.queryType==="normal"&&!r.custom&&r.prop!==""){if((typeof r.componentType>"u"||r.componentType==="")&&(r.componentType="input"),r.querySetting&&r.querySetting!==""){const i=JSON.parse(r.querySetting);i.width&&(r.searchControlWidth="width:"+i.width+"px"),i.labelWidth&&(r.searchLabelWidth=i.labelWidth+"px"),i.label&&(r.searchLabel=i.label)}r.componentType.indexOf("custom:")>=0?(r.componentName=r.componentType.substring(r.componentType.indexOf(":")+1),this.customComponentNames.add(r.componentName)):r.componentName="",t.push(r)}}}return t},customComponent(e){const t=store.get(this.storeId);if(e.componentName&&e.componentName!=="")return this.customComponentNames.add(e.componentName),!0;if((!e.componentName||e.componentName==="")&&t.options&&t.options.search&&t.options.search.customSearchElements){const n=t.options.search.customSearchElements[e.prop];if(n){e.componentName="custom-"+e.prop;const r=n.call(this,e);if(r)return this.customComponentNames.add(e.componentName),window.$vueApp.component(e.componentName,r),!0}}return!1},submitForm(e){this.$refs[e].validate(t=>{if(t)this.loading=!0,this.searchParams=this.packageSearchParam(),$emit(this,"search",this.searchParams,!0);else return!1})},resetForm(e){for(const t of this.customComponentNames)this.$refs[t][0].resetField();this.searchableColumns.forEach(t=>{t.prop.indexOf(".")>0?addDynamicProp(this.searchForm,t.prop):this.searchForm[t.prop]=null}),$emit(this,"reset")},setNumberValue(e,t,n){let r=this.getFormItemValue(this.searchableColumns[this.fieldNum*(t-1)+(n-1)].prop);r=e,this.setValueToModelProp(this.searchableColumns[this.fieldNum*(t-1)+(n-1)].prop,r)}},emits:["search","reset"]},_hoisted_1$8=["innerHTML"],_hoisted_2$7=["innerHTML"],_hoisted_3$6={key:10};function _sfc_render$f(e,t,n,r,i,o){const a=Vue.resolveComponent("el-date-picker"),s=Vue.resolveComponent("el-time-picker"),l=Vue.resolveComponent("el-option"),u=Vue.resolveComponent("el-select"),c=Vue.resolveComponent("search-form-number"),d=Vue.resolveComponent("el-switch"),f=Vue.resolveComponent("el-slider"),h=Vue.resolveComponent("el-rate"),p=Vue.resolveComponent("el-input"),g=Vue.resolveComponent("el-form-item"),C=Vue.resolveComponent("el-button"),v=Vue.resolveComponent("el-form");return o.searchableColumns.length>0?(Vue.openBlock(),Vue.createBlock(v,{key:0,ref:"searchForm",model:i.searchForm,rules:i.rules,"label-width":i.labelWidth,"label-position":n.query.queryLabelPosition,class:"grid-search-form",size:"mini"},{default:Vue.withCtx(()=>[Vue.createElementVNode("table",null,[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(i.rowNum,m=>(Vue.openBlock(),Vue.createElementBlock("tr",{key:m},[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(o.getColumnNumPerRow(m,o.searchableColumns.length),_=>(Vue.openBlock(),Vue.createElementBlock("td",{key:_},[Vue.createVNode(g,{prop:o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop,"label-width":o.searchableColumns[i.fieldNum*(m-1)+(_-1)].searchLabelWidth?o.searchableColumns[i.fieldNum*(m-1)+(_-1)].searchLabelWidth:"160px",style:{paddingLeft:"10px",minWidth:"200px"}},{label:Vue.withCtx(()=>[o.searchableColumns[i.fieldNum*(m-1)+(_-1)].searchLabel&&o.searchableColumns[i.fieldNum*(m-1)+(_-1)].searchLabel!==""?(Vue.openBlock(),Vue.createElementBlock("span",{key:0,innerHTML:o.searchableColumns[i.fieldNum*(m-1)+(_-1)].searchLabel.replace(/\\n/g,"</br>")},null,8,_hoisted_1$8)):(Vue.openBlock(),Vue.createElementBlock("span",{key:1,innerHTML:o.searchableColumns[i.fieldNum*(m-1)+(_-1)].label.replace(/\\n/g,"</br>")},null,8,_hoisted_2$7))]),default:Vue.withCtx(()=>[o.searchableColumns[i.fieldNum*(m-1)+(_-1)].dataType==="DATE"||o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentType==="date"?(Vue.openBlock(),Vue.createBlock(a,{key:0,"model-value":e.getFormItemValue(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop),type:"daterange",style:Vue.normalizeStyle(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].searchControlWidth),"range-separator":e.$t("imatrixUIPublicModel.to"),"unlink-panels":"","start-placeholder":e.$t("imatrixUIMessage.startDate"),"end-placeholder":e.$t("imatrixUIMessage.endDate"),"value-format":"yyyy-MM-dd",onInput:E=>o.setValueToModelProp(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop,E)},null,8,["model-value","style","range-separator","start-placeholder","end-placeholder","onInput"])):o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentType==="dateTimePicker"?(Vue.openBlock(),Vue.createBlock(a,{key:1,"model-value":e.getFormItemValue(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop),type:"datetimerange","range-separator":e.$t("imatrixUIPublicModel.to"),"unlink-panels":"",style:Vue.normalizeStyle(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].searchControlWidth),"start-placeholder":e.$t("imatrixUIMessage.startDate"),"end-placeholder":e.$t("imatrixUIMessage.endDate"),"value-format":"yyyy-MM-dd HH:mm:ss",onInput:E=>o.setValueToModelProp(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop,E)},null,8,["model-value","range-separator","style","start-placeholder","end-placeholder","onInput"])):o.searchableColumns[i.fieldNum*(m-1)+(_-1)].dataType==="TIME"&&o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentType==="timepicker"?(Vue.openBlock(),Vue.createBlock(a,{key:2,"model-value":e.getFormItemValue(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop),type:"datetimerange","range-separator":e.$t("imatrixUIPublicModel.to"),"unlink-panels":"",style:Vue.normalizeStyle(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].searchControlWidth),"start-placeholder":e.$t("imatrixUIMessage.startDate"),"end-placeholder":e.$t("imatrixUIMessage.endDate"),"value-format":"HH:mm:ss",onInput:E=>o.setValueToModelProp(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop,E)},null,8,["model-value","range-separator","style","start-placeholder","end-placeholder","onInput"])):o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentType==="timepicker"&&o.searchableColumns[i.fieldNum*(m-1)+(_-1)].dataType!=="TIME"&&o.searchableColumns[i.fieldNum*(m-1)+(_-1)].dataType!=="DATE"?(Vue.openBlock(),Vue.createBlock(s,{key:3,type:"fixed-time",placeholder:e.$t("imatrixUIMessage.selectTime"),style:{width:"100%"},"value-format":"HH:mm:ss","model-value":e.getFormItemValue(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop),onInput:E=>o.setValueToModelProp(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop,E)},null,8,["placeholder","model-value","onInput"])):o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentType&&o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentType==="select"||o.searchableColumns[i.fieldNum*(m-1)+(_-1)].dataType==="BOOLEAN"?(Vue.openBlock(),Vue.createBlock(u,{key:4,clearable:"",style:Vue.normalizeStyle(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].searchControlWidth),placeholder:e.$t("imatrixUIMessage.pleaseSelect"),"model-value":e.getFormItemValue(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop),onInput:E=>o.setValueToModelProp(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop,E)},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].valueSet,E=>(Vue.openBlock(),Vue.createBlock(l,{key:E.value,label:E.label,value:E.value},null,8,["label","value"]))),128))]),_:2},1032,["style","placeholder","model-value","onInput"])):o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentType&&o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentType==="multiselect"?(Vue.openBlock(),Vue.createBlock(u,{key:5,clearable:"",multiple:"",style:Vue.normalizeStyle(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].searchControlWidth),"collapse-tags":"",placeholder:e.$t("imatrixUIMessage.pleaseSelect"),"model-value":e.getFormItemValue(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop),onInput:E=>o.setValueToModelProp(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop,E)},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].valueSet,E=>(Vue.openBlock(),Vue.createBlock(l,{key:E.value,label:E.label,value:E.value},null,8,["label","value"]))),128))]),_:2},1032,["style","placeholder","model-value","onInput"])):o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentType&&o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentType==="inputNumber"?(Vue.openBlock(),Vue.createBlock(c,{key:6,r:m,n:_,onSetValue:o.setNumberValue},null,8,["r","n","onSetValue"])):o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentType&&o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentType==="switch"?(Vue.openBlock(),Vue.createBlock(d,{key:7,"active-color":"#13ce66","inactive-color":"#ff4949",style:Vue.normalizeStyle(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].searchControlWidth),"model-value":e.getFormItemValue(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop),onInput:E=>o.setValueToModelProp(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop,E)},null,8,["style","model-value","onInput"])):o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentType&&o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentType==="slider"?(Vue.openBlock(),Vue.createBlock(f,{key:8,"model-value":e.getFormItemValue(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop),style:Vue.normalizeStyle(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].searchControlWidth),onInput:E=>o.setValueToModelProp(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop,E)},null,8,["model-value","style","onInput"])):o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentType&&o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentType==="rate"?(Vue.openBlock(),Vue.createBlock(h,{key:9,"model-value":e.getFormItemValue(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop),style:Vue.normalizeStyle(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].searchControlWidth),onInput:E=>o.setValueToModelProp(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop,E)},null,8,["model-value","style","onInput"])):o.customComponent(o.searchableColumns[i.fieldNum*(m-1)+(_-1)])===!0?(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_3$6,[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentName),{ref_for:!0,ref:o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentName,class:"customComponent",prop:o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop,value:e.getFormItemValue(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop),onInput:E=>o.setValueToModelProp(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop,E)},null,40,["prop","value","onInput"]))])):(Vue.openBlock(),Vue.createBlock(p,{key:11,"model-value":e.getFormItemValue(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop),style:Vue.normalizeStyle(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].searchControlWidth),onKeyup:t[0]||(t[0]=Vue.withKeys(E=>o.submitForm("searchForm"),["enter"])),onInput:E=>o.setValueToModelProp(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop,E)},null,8,["model-value","style","onInput"]))]),_:2},1032,["prop","label-width"])]))),128))]))),128))]),Vue.createVNode(g,{class:"search-btn"},{default:Vue.withCtx(()=>[Vue.createVNode(C,{loading:i.loading,type:"primary",size:"mini",onClick:t[1]||(t[1]=m=>o.submitForm("searchForm"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIPublicModel.sure")),1)]),_:1},8,["loading"]),Vue.createVNode(C,{loading:i.loading,size:"mini",onClick:t[2]||(t[2]=m=>o.resetForm("searchForm"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIPublicModel.reset")),1)]),_:1},8,["loading"])]),_:1})]),_:1},8,["model","rules","label-width","label-position"])):Vue.createCommentVNode("",!0)}const SearchForm=_export_sfc(_sfc_main$f,[["render",_sfc_render$f],["__scopeId","data-v-045cd274"]]),superGridService={initialize(){const e=window.$vueApp.config.globalProperties.baseAPI+"/component/super-grids/"+this.code,t={},n=this.options.isSql;this.options&&typeof n<"u"&&(this.isSql=n,t.isSql=n+""),this.isLoading=!0,this.$http.post(e,t).then(r=>{if(this.options.pageSizes&&r.pagination){let a=null;const s=this.options.pageSizes.split(",");if(s&&s.length>0){a=[];for(var i=0;i<s.length;i++)a.push(s[i]*1);r.pagination.pageSize=a[0]}r.pagination.layout="total, sizes, prev, pager, next, jumper",r.pagination.pageSizes=a}typeof this.options.initSortInfo<"u"&&(Array.isArray(this.options.initSortInfo)?r.sortInfo=this.options.initSortInfo:(r.sortInfo=[],r.sortInfo.push(this.options.initSortInfo))),Object.assign(this,r);const o=store.get(this.code+"~"+this.gridId);packageEnumAndBeanColumnValueSets(this.columns,this.code).then(()=>{o.isSql=this.isSql,o.columns=this.columns,o.lineEdit=this.lineEdit,o.basicInfo=this.basicInfo,o.pagination=this.pagination,o.query=this.query,this.hasLoadedColumns=!0;let a=!0;isHasOptionFunction("loadBeforeSend",this.storeId)&&(a=o.options.loadBeforeSend.call(this,{columns:this.columns,gridParams:o,additionalParamMap:o.additionalParamMap})),(a===void 0||a===!0)&&(typeof this.options.initSearch>"u"||this.options.initSearch!==!1)&&(this.urlToSaveOrder=this.lineEdit&&this.lineEdit.urlToSaveOrder?this.lineEdit.urlToSaveOrder:null,this.fetchData().then(()=>{this.initSelectData()}))})})},initSelectData(){if(this.options&&this.options.currentIds)for(let e=0;e<this.gridData.length;e++){const t=this.gridData[e];if((t.id||t.ID)&&this.options.currentIds.indexOf(t.id?t.id:t.ID)>=0&&(this.changeSelect(t),this.multiple===!1))break}}},apis={refresh(){return new Promise((e,t)=>{this.$refs?this.$refs.sf?this.search(this.$refs.sf.searchParams,!0).then(()=>e()).catch(n=>t(n)):this.search(null,!0).then(()=>e()).catch(n=>t(n)):e()})},showSearchForm(){this.showSearch=!0,$emit(this,"showSearch")},cancelSearch(){this.showSearch=!1,$emit(this,"cancelSearch")},getSearchForm(){const e=store.get(this.storeId);return e.searchForm?e.searchForm:[]},getGridData(e){return e||(e=store.get("_nine_list_code")),e&&e.indexOf("~")<0&&(e=e+"~_nineGrid"),store.get(e).gridData},getColumns(e){return e||(e=store.get("_nine_list_code")),e&&e.indexOf("~")<0&&(e=e+"~_nineGrid"),store.get(e).columns},getPagination(e){return e||(e=store.get("_nine_list_code")),e&&e.indexOf("~")<0&&(e=e+"~_nineGrid"),store.get(e).pagination},getSelections(){return this.selections},getSelectionIds(){return this.selectionIds},clearSelections(){this.selections=[],this.selectionIds=[],this.selectionModels={},this.currentId=null},getSelection(){return this.selections&&this.selections.length>0?this.selections[0]:null},getSelectionId(){return this.selectionIds&&this.selectionIds.length>0?this.selectionIds[0]:null}},superNineGrid_vue_vue_type_style_index_0_scoped_a0a45dd2_rel_stylesheet_2Fscss_lang="",_sfc_main$e={name:"SuperNineGrid",components:{SearchForm},props:{code:{type:String,default:""},url:{type:String,default:""},options:{type:Object,default:function(){return{}}}},data(){let e=[];this.options&&this.options.mergeFields&&this.options.mergeFields!==""&&(e=this.options.mergeFields.split(","));const t=window.$vueApp.config.globalProperties.baseAPI+"/component/super-form/show-image?serverPath=",n=this.options&&this.options.id?this.options.id:"_nineGrid",r=this.code+"~"+n,i=this.options&&this.options.showRadio!==void 0?this.options.showRadio:!1;return{isLoading:!1,currentPage:1,showColumnConfig:!1,basicInfo:{summary:"no"},columns:[],pagination:null,query:null,lineEdit:null,gridData:[],sortInfo:null,pageSize:null,showSearch:!1,height:null,isSql:!1,hasLoadData:!1,mergeFields:e,hasLoadedColumns:!1,seen:!1,current:null,isHasCreate:!0,screenBaseUrl:null,props:null,operations:[],propCloumns:null,multiple:!1,createPermission:"true",urlToSaveOrder:null,selections:[],selectionIds:[],selectionModels:{},searchFormContent:null,initSearchProps:[],defaultShowImageAction:t,gridId:n,storeId:r,currentId:null,isShowRadio:i,titleStyle:null,isShowEnableState:!1,colSpan:6}},computed:{},provide(){return{}},created(){store.set(this.code+"~"+this.gridId,getGridParams()),store.set("_nine_list_code",this.code+"~"+this.gridId),this.initSetting(),this.initialize()},mounted(){this.$watch("showSearch",function(e,t){this.$nextTick(()=>{let n=getTableHeight(e,this.$refs.sf);const r=this.resizeHeight();r&&(n=r),this.height=n})},{immediate:!0,deep:!0}),this.$watch("hasLoadData",function(e,t){e===!0&&this.$nextTick(()=>{this.rowDrop();const n=store.get(this.storeId);isHasOptionFunction("gridComplete",this.storeId)&&n.options.gridComplete.call(this,{gridData:this.gridData,columns:n.columns,superGrid:this.$refs.superGrid});const r=this.resizeHeight();r&&(this.height=r)})},{immediate:!0,deep:!0})},methods:{...superGridService,...apis,...customFormatter,getTitleStyle(e){return this.options&&this.options.titleStyle?this.options.titleStyle.call(this,e):{width:"100%"}},getPropValue(e,t){let n="";const r=store.get(this.storeId);if(e==="content"){let i="";isHasOptionFunction("setContent",this.storeId)&&(i=r.options.getContent.call(this,t)),(i===void 0||i==="")&&(this.props&&this.props.content?i=this.objectPropValue(t,this.propCloumns.content,this.props.content):this.props&&this.props.title&&(i=this.objectPropValue(t,this.propCloumns.title,this.props.title))),n=i}else if(e==="title"){let i="";isHasOptionFunction("setTitle",this.storeId)&&(i=r.options.setTitle.call(this,t)),(i===void 0||i==="")&&(this.props&&this.props.title?i=this.objectPropValue(t,this.propCloumns.title,this.props.title):this.props&&this.props.content&&(i=this.objectPropValue(t,this.propCloumns.content,this.props.content))),n=i}else if(e==="subTitle"){let i="";isHasOptionFunction("setSubTitle",this.storeId)&&(i=r.options.setSubTitle.call(this,t)),(i===void 0||i==="")&&this.props&&this.props.subTitle&&(i=this.objectPropValue(t,this.propCloumns.subTitle,this.props.subTitle)),n=i}return n===void 0&&(n=""),n},resizeHeight(){const e=store.get(this.storeId);if(isHasOptionFunction("resizeHeight",this.storeId)){let t=0;return this.showSearch===!0&&this.$refs.sf&&(t=this.$refs.sf.$el.offsetHeight),e.options.resizeHeight.call(this,{code:this.code,height:this.height,searchHeight:t})}},enter(e){this.seen=!0,this.current=e},leave(){this.seen=!1,this.current=null},initSetting(){const e=store.get(this.storeId);typeof this.options<"u"?Object.assign(e.options,this.options):e.options={},this.options&&typeof this.options.isHasCreate<"u"&&(this.isHasCreate=this.options.isHasCreate),this.options&&typeof this.options.props<"u"&&(this.props=this.options.props),this.options&&typeof this.options.operations<"u"&&(this.operations=this.options.operations),this.options&&typeof this.options.createPermission<"u"&&(this.createPermission=this.options.createPermission),this.options&&typeof this.options.multiple<"u"&&(this.multiple=this.options.multiple),this.options&&typeof this.options.isShowEnableState<"u"&&(this.isShowEnableState=this.options.isShowEnableState),this.options&&typeof this.options.colSpan<"u"&&(this.colSpan=this.options.colSpan)},getPropColumns(){this.columns&&this.columns.length>0&&(this.propCloumns={},this.columns.forEach(e=>{this.props.imageUrl&&this.props.imageUrl===e.prop&&(this.propCloumns.imageUrl=e),this.props.content&&this.props.content===e.prop&&(this.propCloumns.content=e),this.props.title&&this.props.title===e.prop&&(this.propCloumns.title=e),this.props.subTitle&&this.props.subTitle===e.prop&&(this.propCloumns.subTitle=e)}))},fetchData(e,t){return new Promise((n,r)=>{if(this.getPropColumns(),this.isLoading=!0,this.hasLoadData=!1,t===void 0||t===!1){const s=window.sessionStorage.getItem("refreshList-"+this.storeId);if(s!==void 0&&s==="true"){const l=window.sessionStorage.getItem("searchParam-"+this.storeId);if(l!=null&&l!==""){e=JSON.parse(l);const u=e.pagination;u&&(this.currentPage=u.currentPage,this.pagination.pageSize=u.pageSize,this.pagination.showTotal=u.showTotal),this.getInitSearchForm(e.searchForm)}}}window.sessionStorage.removeItem("refreshList-"+this.storeId),e===void 0&&(e=this.getSearchParam());const i=store.get(this.storeId);let o=e;if(i.options.extraParam&&(o={searchParam:e},i.options.extraParam))for(const s in i.options.extraParam)o[s]=i.options.extraParam[s];i.searchParam=e,i.url=this.url;const a=this.url;window.sessionStorage.setItem("searchParam-"+this.storeId,JSON.stringify(o)),this.$http.post(a,o).then(s=>{if(isHasOptionFunction("gridDataLoaded",this.storeId)){const l=i.options.gridDataLoaded.call(this,{gridData:s.data,columns:i.columns});l?this.gridData=l:this.gridData=s.data}else this.gridData=s.data;this.gridData||(this.gridData=[]),this.pagination!==null&&(this.pagination.total=s.total),i.gridData=this.gridData,i.orgGridData=[].concat(JSON.parse(JSON.stringify(this.gridData))),i.pagination=this.pagination,i.loaded=!0,this.hasLoadData=!0,n()}).catch(s=>{isHasOptionFunction("loadError",this.storeId)&&i.options.loadError.call(this,this.code,s),r(s)})})},getLength(e){return e&&e.length>5?"("+e.substring(0,5)+"...)":e?"("+e+")":""},getInitSearchForm(e){const t=store.get(this.storeId);e&&e.length>0?(this.searchFormContent={},e.forEach(n=>{let r=n.propName;const i=n.columnProp,o=n.dataType;o&&o==="BOOLEAN"&&(r=i),this.initSearchProps.push(r);const a=n.propValue;r.indexOf(".")>0?addDynamicProp(this.searchFormContent,r,a):this.searchFormContent[r]=a}),t.searchForm=e,this.showSearchForm()):t.searchForm=null},showDemo(){this.isLoading=!0,this.$http.get(this.url).then(e=>{Object.assign(this,e);const t=store.get(this.storeId);if(t.listCode=this.code,t.columns=this.columns,t.columns&&this.options.dynamicColumns)for(var n=0;n<this.options.dynamicColumns.length;n++)this.options.dynamicColumns[n].dynamic=!0,t.columns.push(this.options.dynamicColumns[n]);if(t.lineEdit=this.lineEdit,t.basicInfo=this.basicInfo,t.pagination=this.pagination,t.query=this.query,this.gridData=e.gridData,isHasOptionFunction("gridDataLoaded",this.storeId)){const r=t.options.gridDataLoaded.call(this,e.gridData);r?this.gridData=r:this.gridData=e.gridData}else this.gridData=e.gridData;this.pagination!=null&&(this.pagination.total=e.total),this.gridData||(this.gridData=[]),t.gridData=this.gridData,t.orgGridData=[].concat(JSON.parse(JSON.stringify(this.gridData))),t.pagination=this.pagination,isHasOptionFunction("gridComplete",this.storeId)&&t.options.gridComplete.call(this,this.gridData,t.columns)}).catch(e=>{isHasOptionFunction("loadError",this.storeId)&&store.get(this.storeId).options.loadError.call(this,this.code,e)})},search(e){const t=this;return new Promise((n,r)=>{const i=store.get(t.storeId);typeof e<"u"&&e!==null?i.searchForm=e:i.searchForm=null,t.fetchData(t.getSearchParam(),!0).then(o=>{i.options!==void 0&&i.options.isHiddenSearchForm!==void 0&&i.options.isHiddenSearchForm===!0&&(t.showSearch=!1,$emit(t,"cancel-search")),t.$refs.sf&&(t.$refs.sf.loading=!1),n(o)}).catch(o=>{t.$refs.sf&&(t.$refs.sf.loading=!1),r(o)})})},getSearchParam(){const e={code:this.code},t=store.get(this.storeId);if(this.pagination!==null){const n={currentPage:this.currentPage,pageSize:this.pagination.pageSize,showTotal:this.pagination.showTotal};this.pageSize!==null&&(n.pageSize=this.pageSize),e.pagination=n}if(this.sortInfo!==null&&(e.sorts=this.sortInfo),this.mergeFields&&this.mergeFields.length>0){e.sorts||(e.sorts=[]);const n=[];for(const r of this.mergeFields){let i=!0;for(const o of e.sorts)if(o.prop===r){i=!1;break}i&&n.push({prop:r,order:"ascending"})}n.push(...e.sorts),e.sorts=n}return t.options&&typeof t.options.initSearchForm<"u"&&(e.initSearchForm=t.options.initSearchForm),typeof t.searchForm<"u"?e.searchForm=t.searchForm:e.searchForm=[],e},handleSizeChange(e){this.pageSize=e,this.fetchData(this.getSearchParam())},handleCurrentChange(e){this.fetchData(this.getSearchParam())},handleSortChange({column:e,prop:t,order:n}){t!==null?this.sortInfo=[{prop:t,order:n}]:this.sortInfo=null,this.fetchData(this.getSearchParam()),$emit(this,"sort-change",{column:e,prop:t,order:n})},resetSearch(){this.search(null,!1)},add(){$emit(this,"add")},buttonClick(e,t){e&&(typeof e=="function"?e.call(this,t):$emit(this,e,t))},clickContent(e){this.changeSelect(e),$emit(this,"click",e)},rowDrop(){if(this.urlToSaveOrder){let e=this.urlToSaveOrder;if(e.indexOf("http:")<0||e.indexOf("https:")<0){let n=window.$vueApp.config.globalProperties.baseURL;n.lastIndexOf("/")===n.length-1&&(n=n.substring(0,n.length-1)),e.indexOf("/")>0&&(e="/"+e),e=n+e}const t=document.querySelector("#"+this.gridId+" .el-row");if(t!=null){const n=this;Sortable.create(t,{draggable:".col-content",onEnd({newIndex:r,oldIndex:i}){document.querySelector("#"+n.gridId+" #_addCardId_")!=null&&(i>0&&(i=i-1),r>0&&(r=r-1));const a={oldIndex:i,newIndex:r,gridData:n.gridData};n.$http.post(e,a).then(s=>{const l=n.gridData.splice(i,1)[0];n.gridData.splice(r,0,l),n.refresh().then(()=>{$emit(n,"afterDrag",a)})})}})}}},changeChecked(e,t){const n=this.gridData[t];(e+"").indexOf("false-")>=0?this.unselect(n):this.select(n)},unselect(e){const t=e.id,n=this.selectionIds.indexOf(t);n>-1&&(this.selections.splice(n,1),this.selectionIds.splice(n,1)),$emit(this,"unselect",e,this.selections),this.selectionModels["select"+t]="false-"+t},select(e){const t=e.id;this.selectionIds.indexOf(t)<0&&(this.selectionIds[this.selectionIds.length]=t,this.selections[this.selections.length]=e),$emit(this,"select",e,this.selections),this.selectionModels["select"+t]=t},changeSelectWhenRadio(e,t){const n=this.gridData[t];this.selectionIds=[],this.selections=[],this.selectionModels={},this.select(n)},changeSelect(e){const t=e.id;this.multiple===!0?this.selectionIds&&this.selectionIds.indexOf(t)>=0?this.unselect(e):this.select(e):(this.currentId=t,this.selectionIds=[],this.selections=[],this.selectionModels={},this.select(e))},isShowButton(e,t){const n=this.isShowButtonFun(e,t);return n===void 0?!0:n},showEnableButton(e){const t=store.get(this.storeId);return isHasOptionFunction("showEnableButton",this.storeId)?t.options.showEnableButton.call(this,e):!1},changeState(e){const t=store.get(this.storeId);return isHasOptionFunction("changeState",this.storeId)?t.options.changeState.call(this,e):!1}},emits:["sort-change",,"click","afterDrag","unselect","select","cancel-search","add",,]},_withScopeId$1=e=>(Vue.pushScopeId("data-v-a0a45dd2"),e=e(),Vue.popScopeId(),e),_hoisted_1$7={class:"nine-grid-area"},_hoisted_2$6=["id"],_hoisted_3$5=_withScopeId$1(()=>Vue.createElementVNode("em",{class:"el-icon-plus"},null,-1)),_hoisted_4$3={style:{"margin-top":"7px"}},_hoisted_5$3=["onMouseenter","onClick"],_hoisted_6$2={class:"image",style:{padding:"15px","box-sizing":"border-box"}},_hoisted_7$2={key:0,style:{display:"inline-block"}},_hoisted_8={key:1,style:{display:"inline-block"}},_hoisted_9={key:0,style:{"margin-left":"2px",color:"#00b42a","background-color":"#e8ffea",width:"68px","text-align":"center",display:"inline-block"}},_hoisted_10=["title"],_hoisted_11={class:"button-style"},_hoisted_12=["onClick"],_hoisted_13={key:0,style:{float:"right","margin-top":"28px"}};function _sfc_render$e(e,t,n,r,i,o){const a=Vue.resolveComponent("search-form"),s=Vue.resolveComponent("el-card"),l=Vue.resolveComponent("el-col"),u=Vue.resolveComponent("el-tooltip"),c=Vue.resolveComponent("SuccessFilled"),d=Vue.resolveComponent("el-icon"),f=Vue.resolveComponent("el-button"),h=Vue.resolveComponent("el-row"),p=Vue.resolveComponent("el-pagination"),g=Vue.resolveDirective("permission");return Vue.openBlock(),Vue.createElementBlock("div",null,[i.hasLoadedColumns?Vue.withDirectives((Vue.openBlock(),Vue.createBlock(a,{key:0,ref:"sf",columns:i.columns,code:n.code,url:n.url,pagination:i.pagination,query:i.query,"search-param":i.searchFormContent,"init-search-props":i.initSearchProps,"grid-id":i.gridId,onSearch:o.search,onReset:o.resetSearch},null,8,["columns","code","url","pagination","query","search-param","init-search-props","grid-id","onSearch","onReset"])),[[Vue.vShow,i.showSearch]]):Vue.createCommentVNode("",!0),Vue.createElementVNode("div",_hoisted_1$7,[Vue.createElementVNode("div",{id:i.gridId,style:Vue.normalizeStyle("height:"+i.height+"px;overflow-y: auto;overflow-x: hidden;")},[Vue.createVNode(h,{gutter:24},{default:Vue.withCtx(()=>[i.isHasCreate?Vue.withDirectives((Vue.openBlock(),Vue.createBlock(l,{key:0,id:"_addCardId_",span:i.colSpan},{default:Vue.withCtx(()=>[Vue.createVNode(s,{"body-style":{padding:"0px"},style:{"border-radius":"4px",background:"#ffffff",border:"1px solid #e5e8ef"}},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",{class:"add-screen",onClick:t[0]||(t[0]=(...C)=>o.add&&o.add(...C))},[_hoisted_3$5,Vue.createElementVNode("span",_hoisted_4$3,Vue.toDisplayString(e.$t("superNineGrid.add")),1)])]),_:1})]),_:1},8,["span"])),[[g,i.createPermission]]):Vue.createCommentVNode("",!0),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(i.gridData,(C,v)=>(Vue.openBlock(),Vue.createBlock(l,{key:C.id,span:i.colSpan},{default:Vue.withCtx(()=>[Vue.createVNode(s,{"body-style":{padding:"0px"},style:Vue.normalizeStyle({border:i.selectionIds.indexOf(C.id)>-1?"1px solid #005EBA":""}),shadow:"hover"},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",{style:{height:"160px"},onMouseenter:m=>o.enter(v),onMouseleave:t[1]||(t[1]=m=>o.leave()),onClick:m=>o.clickContent(C)},[Vue.createElementVNode("div",_hoisted_6$2,[Vue.createElementVNode("div",null,[Vue.createVNode(u,{effect:"dark",content:"系统编码:"+C.code,placement:"top-start"},{default:Vue.withCtx(()=>[i.props&&i.props.content?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_7$2,Vue.toDisplayString(o.getPropValue("content",C)+o.getLength(C.code)),1)):i.props&&i.props.title?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_8,Vue.toDisplayString(o.getPropValue("title",C)+o.getLength(C.code)),1)):Vue.createCommentVNode("",!0)]),_:2},1032,["content"]),o.showEnableButton(C)?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_9,[Vue.createVNode(d,null,{default:Vue.withCtx(()=>[Vue.createVNode(c)]),_:1}),Vue.createElementVNode("span",{title:o.getPropValue("subTitle",C),style:{"margin-left":"4px"}},Vue.toDisplayString(o.getPropValue("subTitle",C)),9,_hoisted_10)])):Vue.createCommentVNode("",!0)]),Vue.createElementVNode("div",_hoisted_11,[Vue.createTextVNode(" 操作 "),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(i.operations,m=>(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,null,[o.isShowButton(C,m)?(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,{key:0},[m.icon?Vue.withDirectives((Vue.openBlock(),Vue.createBlock(u,{key:0,content:m.name,class:"item",effect:"dark",placement:"top"},{default:Vue.withCtx(()=>[Vue.createVNode(d,{onClick:Vue.withModifiers(_=>o.buttonClick(m.event,C),["stop"])},{default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(m.icon)))]),_:2},1032,["onClick"])]),_:2},1032,["content"])),[[g,m.permission?m.permission:"true"]]):Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("em",{key:1,class:Vue.normalizeClass(m.name+" icons"),onClick:Vue.withModifiers(_=>o.buttonClick(m.event,C),["stop"])},[Vue.createTextVNode(Vue.toDisplayString(m.name),1)],10,_hoisted_12)),[[g,m.permission?m.permission:"true"]])],64)):Vue.createCommentVNode("",!0)],64))),256))]),i.isShowEnableState?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_13,[o.showEnableButton(C)?(Vue.openBlock(),Vue.createBlock(f,{key:0,size:"mini",onClick:Vue.withModifiers(m=>o.changeState(C),["stop"])},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 禁用 ")]),_:2},1032,["onClick"])):(Vue.openBlock(),Vue.createBlock(f,{key:1,size:"mini",type:"primary",onClick:Vue.withModifiers(m=>o.changeState(C),["stop"])},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 启用 ")]),_:2},1032,["onClick"]))])):Vue.createCommentVNode("",!0)])],40,_hoisted_5$3)]),_:2},1032,["style"])]),_:2},1032,["span"]))),128))]),_:1})],12,_hoisted_2$6),i.pagination?(Vue.openBlock(),Vue.createBlock(p,{key:0,"current-page":i.currentPage,"onUpdate:currentPage":t[2]||(t[2]=C=>i.currentPage=C),"page-sizes":i.pagination.pageSizes,"page-size":i.pagination.pageSize,layout:i.pagination.layout,total:i.pagination.total,onSizeChange:o.handleSizeChange,onCurrentChange:o.handleCurrentChange},null,8,["current-page","page-sizes","page-size","layout","total","onSizeChange","onCurrentChange"])):Vue.createCommentVNode("",!0)])])}const SuperNineGrid=_export_sfc(_sfc_main$e,[["render",_sfc_render$e],["__scopeId","data-v-a0a45dd2"]]);SuperNineGrid.install=function(e){e.component(SuperNineGrid.name,SuperNineGrid)},DynamicSourceSelect.install=function(e){e.component(DynamicSourceSelect.name,DynamicSourceSelect)};const _sfc_main$d={props:{unifiedEnclosures:{type:Array,default:null},showIndex:{type:Number,default:0}},data(){return{displayIndex:0}},created(){this.displayIndex=this.showIndex},methods:{},emits:["close"]};function _sfc_render$d(e,t,n,r,i,o){const a=Vue.resolveComponent("el-image"),s=Vue.resolveComponent("el-carousel-item"),l=Vue.resolveComponent("el-carousel"),u=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(u,{"close-on-click-modal":!1,"model-value":"","append-to-body":"",onClose:t[0]||(t[0]=c=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createVNode(l,{style:{width:"100%"},height:"600px",autoplay:!1,"indicator-position":"outside","initial-index":i.displayIndex},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.unifiedEnclosures,(c,d)=>(Vue.openBlock(),Vue.createBlock(s,{key:d,label:c.fileName},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",null,[Vue.createVNode(a,{style:{height:"580px"},"preview-src-list":[e.baseURL+"/common/fs-upload/download?serverPath="+c.uuid+"&showName="+c.fileName],src:e.baseURL+"/common/fs-upload/download?serverPath="+c.uuid+"&showName="+c.fileName},null,8,["preview-src-list","src"])])]),_:2},1032,["label"]))),128))]),_:1},8,["initial-index"])]),_:1})}const seeBigPicture=_export_sfc(_sfc_main$d,[["render",_sfc_render$d]]),_sfc_main$c={data(){return{unifiedEnclosures:[],bigPictureVisible:!1,baseURL:"",accepts:"",showIndex:0,loading:"",ElIconUpload2:upload_default}},components:{seeBigPicture,ElIconDelete:delete_default,ElIconView:view_default},name:"FsUploadMulti",props:{systemCode:{type:String,default:null},accept:{type:String,default:null},isImg:{type:Boolean,default:!1},isShowList:{type:Boolean,default:!0},fit:{type:String,default:null},disabled:{type:Boolean,default:!1},isShowButton:{type:Boolean,default:!0},isShowData:{type:Boolean,default:!0},data:{type:Array,default:null},imgSize:{type:Number,default:0},fileSize:{type:Number,default:0},tableHeight:{type:String,default:null}},created(){this.baseURL=window.$vueApp.config.globalProperties.baseURL,this.data&&(this.unifiedEnclosures=this.data),this.judgeImg()},methods:{bigPicture(e){this.showIndex=e,this.bigPictureVisible=!0},onSuccess(){const e=this.unifiedEnclosures;$emit(this,"onSuccess",e)},judgeImg(){this.isImg?this.accepts="image/*":this.accept&&(this.accepts=this.accept)},selectDataFile(){this.$refs.uploadTemplate.click()},deleteFile(e){this.deleteUuid=this.unifiedEnclosures[e].uuid,this.unifiedEnclosures.splice(e,1),this.deleteSuccess()},deleteSuccess(){const e=this.unifiedEnclosures;$emit(this,"deleteSuccess",this.deleteUuid,e)},preview(e){if(window.$vueApp.config.globalProperties.isOffice){const t=getToken(),n={fileName:window.$vueApp.config.globalProperties.officeweb365Url+"/common/fs-upload/download?serverPath="+e.uuid+"&showName="+e.fileName+"&jwt="+t};this.$http.post(window.$vueApp.config.globalProperties.baseURL+"/common/fs-upload/des-encrypt",n).then(i=>{window.open(window.$vueApp.config.globalProperties.isOffice+i)})}else{let t;const n=e.fileName.split(".");n[n.length-1].toLowerCase()==="xls"||n[n.length-1].toLowerCase()==="xlsx"||n[n.length-1].toLowerCase()==="csv"?t=n[0]+".html":t=n[0]+".pdf";const r=getToken();if(window.$vueApp.config.globalProperties.customPreviewUrl)window.open(getSystemFrontendUrl(window.$vueApp.config.globalProperties.portalUrl)+"/#/file-service/preview?serverPath="+e.uuid+"&showName="+encodeURI(e.fileName),t);else{let i=window.$vueApp.config.globalProperties.baseURL+"/common/fs-upload/preview?serverPath="+e.uuid+"&showName="+e.fileName+"&jwt="+r;isPlateSys(window.$vueApp.config.globalProperties.systemCode)&&(i=window.$vueApp.config.globalProperties.baseAPI+"/common/fs-upload/preview?serverPath="+e.uuid+"&showName="+e.fileName+"&jwt="+r),window.open(i,t)}}},upload(e){let t;if(this.fileSize&&this.fileSize!==0&&this.unifiedEnclosures.length>=this.fileSize&&(t=this.$t("fsUpload.theNumberOfUploadsExceedsTheLimitTheLimitIs")+":"+this.fileSize),t)e.target.value="",this.$message({showClose:!0,type:"warning",message:t});else{this.loading=!0;const n=new FormData;n.append("file",this.$refs.uploadTemplate.files[0]);const r=this.$http;r.headers="'Content-Type': 'multipart/form-data'",r.post(window.$vueApp.config.globalProperties.baseURL+"/common/fs-upload/upload-template/"+this.systemCode,n,{headers:{"Content-Type":"multipart/form-data"}}).then(i=>{this.unifiedEnclosures.push(i),e.target.value="",console.log("data",i),this.judgeImg(),console.log(" this.unifiedEnclosures",this.unifiedEnclosures),this.onSuccess(),this.$message({showClose:!0,type:"success",message:this.$t("fsUpload.uploadSucceeded")}),this.loading=!1}).catch(()=>{e.target.value="",this.loading=!1})}}},emits:["onSuccess","deleteSuccess"]},_hoisted_1$6=["accept"],_hoisted_2$5={key:1},_hoisted_3$4={key:0},_hoisted_4$2={key:1},_hoisted_5$2={key:2};function _sfc_render$c(e,t,n,r,i,o){const a=Vue.resolveComponent("el-button"),s=Vue.resolveComponent("el-link"),l=Vue.resolveComponent("el-table-column"),u=Vue.resolveComponent("el-image"),c=Vue.resolveComponent("el-table"),d=Vue.resolveComponent("el-icon-delete"),f=Vue.resolveComponent("el-icon"),h=Vue.resolveComponent("el-tooltip"),p=Vue.resolveComponent("el-icon-view"),g=Vue.resolveComponent("see-big-picture"),C=Vue.resolveDirective("loading");return Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("div",null,[n.isShowButton&&!n.disabled?(Vue.openBlock(),Vue.createBlock(a,{key:0,size:"small",type:"primary",icon:i.ElIconUpload2,onClick:o.selectDataFile},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("fsUpload.upload")),1)]),_:1},8,["icon","onClick"])):Vue.createCommentVNode("",!0),Vue.createElementVNode("input",{ref:"uploadTemplate",type:"file",name:"uploadTemplate",style:{display:"none"},accept:i.accepts,onChange:t[0]||(t[0]=(...v)=>o.upload&&o.upload(...v))},null,40,_hoisted_1$6),i.unifiedEnclosures&&i.unifiedEnclosures.length>0&&n.isShowData?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_2$5,[n.isImg?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_3$4,[Vue.createVNode(c,{data:i.unifiedEnclosures,height:n.tableHeight,style:{width:"100%"}},{default:Vue.withCtx(()=>[Vue.createVNode(l,{label:e.$t("fsUpload.name"),width:"240"},{default:Vue.withCtx(v=>[Vue.createVNode(s,{href:i.baseURL+"/common/fs-upload/download?serverPath="+v.row.uuid+"&showName="+v.row.fileName,type:"primary"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(v.row.fileName),1)]),_:2},1032,["href"])]),_:1},8,["label"]),Vue.createVNode(l,{label:e.$t("fsUpload.picture"),width:"240"},{default:Vue.withCtx(v=>[Vue.createVNode(u,{src:i.baseURL+"/common/fs-upload/download?serverPath="+v.row.uuid+"&showName="+v.row.fileName,"preview-src-list":[i.baseURL+"/common/fs-upload/download?serverPath="+v.row.uuid+"&showName="+v.row.fileName],onClick:m=>o.bigPicture(v.$index)},null,8,["src","preview-src-list","onClick"])]),_:1},8,["label"]),n.disabled?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(l,{key:0,label:e.$t("fsUpload.operating"),width:"120"},{default:Vue.withCtx(v=>[Vue.createVNode(a,{size:"mini",type:"danger",onClick:m=>o.deleteFile(v.$index)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("fsUpload.delete")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"]))]),_:1},8,["data","height"])])):n.isShowList?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_4$2,[Vue.createVNode(c,{data:i.unifiedEnclosures,height:n.tableHeight,style:{width:"100%"}},{default:Vue.withCtx(()=>[Vue.createVNode(l,{label:e.$t("fsUpload.name"),width:"240"},{default:Vue.withCtx(v=>[Vue.createVNode(s,{href:i.baseURL+"/common/fs-upload/download?serverPath="+v.row.uuid+"&showName="+v.row.fileName,type:"primary"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(v.row.fileName),1)]),_:2},1032,["href"])]),_:1},8,["label"]),Vue.createVNode(l,{width:"200",label:e.$t("fsUpload.operating")},{default:Vue.withCtx(v=>[n.disabled?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(a,{key:0,size:"mini",type:"danger",onClick:m=>o.deleteFile(v.$index)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("fsUpload.delete")),1)]),_:2},1032,["onClick"])),Vue.createVNode(a,{size:"mini",onClick:m=>o.preview(v.row)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("fsUpload.preview")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data","height"])])):(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_5$2,[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(i.unifiedEnclosures,(v,m)=>(Vue.openBlock(),Vue.createElementBlock("div",{key:m},[Vue.createVNode(s,{href:i.baseURL+"/common/fs-upload/download?serverPath="+v.uuid+"&showName="+v.fileName,type:"primary"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(v.fileName),1)]),_:2},1032,["href"]),Vue.createVNode(h,{content:e.$t("fsUpload.delete"),effect:"light"},{default:Vue.withCtx(()=>[n.disabled?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(f,{key:0,onClick:_=>o.deleteFile(m),style:{color:"red","margin-left":"10px"}},{default:Vue.withCtx(()=>[Vue.createVNode(d)]),_:2},1032,["onClick"]))]),_:2},1032,["content"]),Vue.createVNode(h,{content:e.$t("fsUpload.preview"),style:{"margin-left":"10px"},effect:"light"},{default:Vue.withCtx(()=>[Vue.createVNode(f,{onClick:_=>o.preview(v)},{default:Vue.withCtx(()=>[Vue.createVNode(p)]),_:2},1032,["onClick"])]),_:2},1032,["content"])]))),128))]))])):Vue.createCommentVNode("",!0),i.bigPictureVisible?(Vue.openBlock(),Vue.createBlock(g,{key:2,"show-index":i.showIndex,"unified-enclosures":i.unifiedEnclosures,onClose:t[1]||(t[1]=v=>i.bigPictureVisible=!1)},null,8,["show-index","unified-enclosures"])):Vue.createCommentVNode("",!0)])),[[C,i.loading]])}const fsUploadMulti=_export_sfc(_sfc_main$c,[["render",_sfc_render$c]]),_sfc_main$b={data(){return{unifiedEnclosure:{uuid:"",fileName:""},loading:"",baseURL:"",showIndex:0,accepts:"",deleteUuid:"",bigPictureVisible:!1,ElIconUpload2:upload_default}},components:{seeBigPicture,ElIconDownload:download_default,ElIconDelete:delete_default,ElIconView:view_default},name:"FsUploadSingle",props:{systemCode:{type:String,default:null},accept:{type:String,default:null},isImg:{type:Boolean,default:!1},fit:{type:String,default:null},disabled:{type:Boolean,default:!1},isShowButton:{type:Boolean,default:!0},isShowData:{type:Boolean,default:!0},data:{type:Array,default:null}},created(){this.baseURL=window.$vueApp.config.globalProperties.baseURL,this.data&&(this.unifiedEnclosure=this.data[0]),this.accept?this.accepts=this.accept:this.isImg&&(this.accepts="image/*")},methods:{bigPicture(){this.bigPictureVisible=!0},deleteFile(){this.deleteUuid=this.unifiedEnclosure.uuid,this.unifiedEnclosure=null,this.deleteSuccess()},deleteSuccess(){if(this.unifiedEnclosure){const e=[this.unifiedEnclosure];$emit(this,"deleteSuccess",this.deleteUuid,e)}else $emit(this,"deleteSuccess",this.deleteUuid)},acceptService(){return this.isImg?"image/*":null},selectDataFile(){this.$refs.uploadTemplate.click()},onSuccess(){if(this.unifiedEnclosure){const e=[this.unifiedEnclosure];$emit(this,"onSuccess",e,this.deleteUuid)}else $emit(this,"onSuccess",null,this.deleteUuid)},preview(){if(window.$vueApp.config.globalProperties.isOffice){const e=js_cookieExports.get("JWT"),t={fileName:window.$vueApp.config.globalProperties.officeweb365Url+"/common/fs-upload/download?serverPath="+this.unifiedEnclosure.uuid+"&showName="+this.unifiedEnclosure.fileName+"&jwt="+e};this.$http.post(window.$vueApp.config.globalProperties.baseURL+"/common/fs-upload/des-encrypt",t).then(r=>{window.open(window.$vueApp.config.globalProperties.isOffice+r)})}else{let e;const t=this.unifiedEnclosure.fileName.split(".");t[t.length-1].toLowerCase()==="xls"||t[t.length-1].toLowerCase()==="xlsx"||t[t.length-1].toLowerCase()==="csv"?e=t[0]+".html":e=t[0]+".pdf";const n=getToken();if(window.$vueApp.config.globalProperties.customPreviewUrl)window.open(getSystemFrontendUrl(window.$vueApp.config.globalProperties.portalUrl)+"/#/file-service/preview?serverPath="+this.unifiedEnclosure.uuid+"&showName="+encodeURI(this.unifiedEnclosure.fileName),e);else{let r=window.$vueApp.config.globalProperties.baseURL+"/common/fs-upload/preview?serverPath="+this.unifiedEnclosure.uuid+"&showName="+this.unifiedEnclosure.fileName;isPlateSys(window.$vueApp.config.globalProperties.systemCode)&&(r=window.$vueApp.config.globalProperties.baseAPI+"/common/fs-upload/preview?serverPath="+this.unifiedEnclosure.uuid+"&showName="+this.unifiedEnclosure.fileName+"&jwt="+n),window.open(r,e)}}},upload(e){this.loading=!0;const t=new FormData;t.append("file",this.$refs.uploadTemplate.files[0]);const n=this.$http;n.headers="'Content-Type': 'multipart/form-data'",this.unifiedEnclosure&&(this.deleteUuid=this.unifiedEnclosure.uuid),n.post(window.$vueApp.config.globalProperties.baseURL+"/common/fs-upload/upload-template/"+this.systemCode,t,{headers:{"Content-Type":"multipart/form-data"}}).then(r=>{this.unifiedEnclosure=r,e.target.value="",console.log("data",r),console.log(" this.unifiedEnclosure",this.unifiedEnclosure),this.onSuccess(),this.loading=!1,this.$message({showClose:!0,type:"success",message:this.$t("fsUpload.uploadSucceeded")})}).catch(()=>{e.target.value="",this.loading=!1})}},emits:["deleteSuccess","onSuccess"]},_hoisted_1$5={key:0},_hoisted_2$4=["accept"];function _sfc_render$b(e,t,n,r,i,o){const a=Vue.resolveComponent("el-image"),s=Vue.resolveComponent("el-link"),l=Vue.resolveComponent("el-icon-download"),u=Vue.resolveComponent("el-icon"),c=Vue.resolveComponent("el-tooltip"),d=Vue.resolveComponent("el-icon-delete"),f=Vue.resolveComponent("el-icon-view"),h=Vue.resolveComponent("el-button"),p=Vue.resolveComponent("see-big-picture"),g=Vue.resolveDirective("loading");return Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("div",null,[i.unifiedEnclosure&&i.unifiedEnclosure.uuid&&i.unifiedEnclosure.fileName&&n.isShowData?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$5,[n.isImg?(Vue.openBlock(),Vue.createBlock(a,{key:0,fit:n.fit,"preview-src-list":[i.baseURL+"/common/fs-upload/download?serverPath="+i.unifiedEnclosure.uuid+"&showName="+i.unifiedEnclosure.fileName],src:i.baseURL+"/common/fs-upload/download?serverPath="+i.unifiedEnclosure.uuid+"&showName="+i.unifiedEnclosure.fileName,onClick:o.bigPicture},null,8,["fit","preview-src-list","src","onClick"])):(Vue.openBlock(),Vue.createBlock(s,{key:1,href:i.baseURL+"/common/fs-upload/download?serverPath="+i.unifiedEnclosure.uuid+"&showName="+i.unifiedEnclosure.fileName,type:"primary"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(i.unifiedEnclosure.fileName),1)]),_:1},8,["href"])),Vue.createVNode(c,{content:e.$t("fsUpload.download"),effect:"light"},{default:Vue.withCtx(()=>[n.isImg?(Vue.openBlock(),Vue.createBlock(s,{key:0,href:i.baseURL+"/common/fs-upload/download?serverPath="+i.unifiedEnclosure.uuid+"&showName="+i.unifiedEnclosure.fileName,type:"primary"},{default:Vue.withCtx(()=>[Vue.createVNode(u,{style:{"margin-left":"10px","font-size":"30px"}},{default:Vue.withCtx(()=>[Vue.createVNode(l)]),_:1})]),_:1},8,["href"])):Vue.createCommentVNode("",!0)]),_:1},8,["content"]),Vue.createVNode(c,{content:e.$t("fsUpload.delete"),effect:"light"},{default:Vue.withCtx(()=>[n.disabled?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(u,{key:0,onClick:o.deleteFile,style:{color:"red","margin-left":"10px","font-size":"30px"}},{default:Vue.withCtx(()=>[Vue.createVNode(d)]),_:1},8,["onClick"]))]),_:1},8,["content"]),Vue.createVNode(c,{content:e.$t("fsUpload.preview"),style:{"margin-left":"10px","font-size":"30px"},effect:"light"},{default:Vue.withCtx(()=>[n.isImg?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(u,{key:0,onClick:o.preview},{default:Vue.withCtx(()=>[Vue.createVNode(f)]),_:1},8,["onClick"]))]),_:1},8,["content"])])):Vue.createCommentVNode("",!0),n.isShowButton&&!n.disabled?(Vue.openBlock(),Vue.createBlock(h,{key:1,size:"small",type:"primary",icon:i.ElIconUpload2,onClick:o.selectDataFile},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("fsUpload.upload")),1)]),_:1},8,["icon","onClick"])):Vue.createCommentVNode("",!0),Vue.createElementVNode("input",{ref:"uploadTemplate",type:"file",name:"uploadTemplate",style:{display:"none"},accept:i.accepts,onChange:t[0]||(t[0]=(...C)=>o.upload&&o.upload(...C))},null,40,_hoisted_2$4),i.bigPictureVisible?(Vue.openBlock(),Vue.createBlock(p,{key:2,"show-index":i.showIndex,"unified-enclosures":n.data,onClose:t[1]||(t[1]=C=>i.bigPictureVisible=!1)},null,8,["show-index","unified-enclosures"])):Vue.createCommentVNode("",!0)])),[[g,i.loading]])}const fsUploadSingle=_export_sfc(_sfc_main$b,[["render",_sfc_render$b]]),_sfc_main$a={name:"FsUpload",components:{fsUploadMulti,fsUploadSingle},props:{systemCode:{type:String,default:null},accept:{type:String,default:null},isImg:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},isShowList:{type:Boolean,default:!0},fit:{type:String,default:null},disabled:{type:Boolean,default:!1},isShowButton:{type:Boolean,default:!0},isShowData:{type:Boolean,default:!0},data:{type:Array,default:null},imgSize:{type:Number,default:0},fileSize:{type:Number,default:0},tableHeight:{type:String,default:null},isDelete:{type:Boolean,default:!1}},data(){return{deleteUuids:[]}},created(){},methods:{onSuccess(e,t){console.log("data",e),console.log("deleteUuid",t),this.isDelete&&t?(this.deleteFile(t),$emit(this,"onSuccess",e)):(t&&this.deleteUuids.push(t),$emit(this,"onSuccess",e))},deleteSuccess(e,t){console.log("deleteUuid",e),console.log("data",t),this.isDelete?(this.deleteFile(e),$emit(this,"deleteSuccess",t)):(e&&this.deleteUuids.push(e),$emit(this,"deleteSuccess",t))},deleteFile(e){const t=this.$http,n=[e];t.delete(window.$vueApp.config.globalProperties.baseURL+"/common/fs-upload",{data:n}).then(r=>{})},getdeleteUuIds(){return this.deleteUuids}},emits:["onSuccess","deleteSuccess"]};function _sfc_render$a(e,t,n,r,i,o){const a=Vue.resolveComponent("fs-upload-multi"),s=Vue.resolveComponent("fs-upload-single");return Vue.openBlock(),Vue.createElementBlock("div",null,[n.multiple?(Vue.openBlock(),Vue.createBlock(a,{key:0,"system-code":n.systemCode,accept:n.accept,"is-img":n.isImg,"is-show-list":n.isShowList,fit:n.fit,disabled:n.disabled,"is-show-button":n.isShowButton,"is-show-data":n.isShowData,data:n.data,"img-size":n.imgSize,"file-size":n.fileSize,"table-height":n.tableHeight,onOnSuccess:o.onSuccess,onDeleteSuccess:o.deleteSuccess},null,8,["system-code","accept","is-img","is-show-list","fit","disabled","is-show-button","is-show-data","data","img-size","file-size","table-height","onOnSuccess","onDeleteSuccess"])):Vue.createCommentVNode("",!0),n.multiple?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(s,{key:1,"system-code":n.systemCode,accept:n.accept,"is-img":n.isImg,fit:n.fit,disabled:n.disabled,"is-show-button":n.isShowButton,"is-show-data":n.isShowData,data:n.data,onOnSuccess:o.onSuccess,onDeleteSuccess:o.deleteSuccess},null,8,["system-code","accept","is-img","fit","disabled","is-show-button","is-show-data","data","onOnSuccess","onDeleteSuccess"]))])}const FsUpload=_export_sfc(_sfc_main$a,[["render",_sfc_render$a]]);FsUpload.install=function(e){e.component(FsUpload.name,FsUpload)};function fixProto(e,t){var n=Object.setPrototypeOf;n?n(e,t):e.__proto__=t}function fixStack(e,t){t===void 0&&(t=e.constructor);var n=Error.captureStackTrace;n&&n(e,t)}var __extends$19=function(){var e=function(n,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(i[a]=o[a])},e(n,r)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),CustomError=function(e){__extends$19(t,e);function t(n,r){var i=this.constructor,o=e.call(this,n,r)||this;return Object.defineProperty(o,"name",{value:i.name,enumerable:!1,configurable:!0}),fixProto(o,i.prototype),fixStack(o),o}return t}(Error),__extends$18=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Exception=function(e){__extends$18(t,e);function t(n){n===void 0&&(n=void 0);var r=e.call(this,n)||this;return r.message=n,r}return t.prototype.getKind=function(){var n=this.constructor;return n.kind},t.kind="Exception",t}(CustomError),__extends$17=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ArgumentException=function(e){__extends$17(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.kind="ArgumentException",t}(Exception),__extends$16=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),IllegalArgumentException=function(e){__extends$16(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.kind="IllegalArgumentException",t}(Exception),BinaryBitmap=function(){function e(t){if(this.binarizer=t,t===null)throw new IllegalArgumentException("Binarizer must be non-null.")}return e.prototype.getWidth=function(){return this.binarizer.getWidth()},e.prototype.getHeight=function(){return this.binarizer.getHeight()},e.prototype.getBlackRow=function(t,n){return this.binarizer.getBlackRow(t,n)},e.prototype.getBlackMatrix=function(){return(this.matrix===null||this.matrix===void 0)&&(this.matrix=this.binarizer.getBlackMatrix()),this.matrix},e.prototype.isCropSupported=function(){return this.binarizer.getLuminanceSource().isCropSupported()},e.prototype.crop=function(t,n,r,i){var o=this.binarizer.getLuminanceSource().crop(t,n,r,i);return new e(this.binarizer.createBinarizer(o))},e.prototype.isRotateSupported=function(){return this.binarizer.getLuminanceSource().isRotateSupported()},e.prototype.rotateCounterClockwise=function(){var t=this.binarizer.getLuminanceSource().rotateCounterClockwise();return new e(this.binarizer.createBinarizer(t))},e.prototype.rotateCounterClockwise45=function(){var t=this.binarizer.getLuminanceSource().rotateCounterClockwise45();return new e(this.binarizer.createBinarizer(t))},e.prototype.toString=function(){try{return this.getBlackMatrix().toString()}catch{return""}},e}(),__extends$15=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ChecksumException=function(e){__extends$15(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.getChecksumInstance=function(){return new t},t.kind="ChecksumException",t}(Exception),Binarizer=function(){function e(t){this.source=t}return e.prototype.getLuminanceSource=function(){return this.source},e.prototype.getWidth=function(){return this.source.getWidth()},e.prototype.getHeight=function(){return this.source.getHeight()},e}(),System=function(){function e(){}return e.arraycopy=function(t,n,r,i,o){for(;o--;)r[i++]=t[n++]},e.currentTimeMillis=function(){return Date.now()},e}(),__extends$14=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),IndexOutOfBoundsException=function(e){__extends$14(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.kind="IndexOutOfBoundsException",t}(Exception),__extends$13=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ArrayIndexOutOfBoundsException=function(e){__extends$13(t,e);function t(n,r){n===void 0&&(n=void 0),r===void 0&&(r=void 0);var i=e.call(this,r)||this;return i.index=n,i.message=r,i}return t.kind="ArrayIndexOutOfBoundsException",t}(IndexOutOfBoundsException),__values$J=globalThis&&globalThis.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Arrays=function(){function e(){}return e.fill=function(t,n){for(var r=0,i=t.length;r<i;r++)t[r]=n},e.fillWithin=function(t,n,r,i){e.rangeCheck(t.length,n,r);for(var o=n;o<r;o++)t[o]=i},e.rangeCheck=function(t,n,r){if(n>r)throw new IllegalArgumentException("fromIndex("+n+") > toIndex("+r+")");if(n<0)throw new ArrayIndexOutOfBoundsException(n);if(r>t)throw new ArrayIndexOutOfBoundsException(r)},e.asList=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t},e.create=function(t,n,r){var i=Array.from({length:t});return i.map(function(o){return Array.from({length:n}).fill(r)})},e.createInt32Array=function(t,n,r){var i=Array.from({length:t});return i.map(function(o){return Int32Array.from({length:n}).fill(r)})},e.equals=function(t,n){if(!t||!n||!t.length||!n.length||t.length!==n.length)return!1;for(var r=0,i=t.length;r<i;r++)if(t[r]!==n[r])return!1;return!0},e.hashCode=function(t){var n,r;if(t===null)return 0;var i=1;try{for(var o=__values$J(t),a=o.next();!a.done;a=o.next()){var s=a.value;i=31*i+s}}catch(l){n={error:l}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i},e.fillUint8Array=function(t,n){for(var r=0;r!==t.length;r++)t[r]=n},e.copyOf=function(t,n){return t.slice(0,n)},e.copyOfUint8Array=function(t,n){if(t.length<=n){var r=new Uint8Array(n);return r.set(t),r}return t.slice(0,n)},e.copyOfRange=function(t,n,r){var i=r-n,o=new Int32Array(i);return System.arraycopy(t,n,o,0,i),o},e.binarySearch=function(t,n,r){r===void 0&&(r=e.numberComparator);for(var i=0,o=t.length-1;i<=o;){var a=o+i>>1,s=r(n,t[a]);if(s>0)i=a+1;else if(s<0)o=a-1;else return a}return-i-1},e.numberComparator=function(t,n){return t-n},e}(),Integer=function(){function e(){}return e.numberOfTrailingZeros=function(t){var n;if(t===0)return 32;var r=31;return n=t<<16,n!==0&&(r-=16,t=n),n=t<<8,n!==0&&(r-=8,t=n),n=t<<4,n!==0&&(r-=4,t=n),n=t<<2,n!==0&&(r-=2,t=n),r-(t<<1>>>31)},e.numberOfLeadingZeros=function(t){if(t===0)return 32;var n=1;return t>>>16||(n+=16,t<<=16),t>>>24||(n+=8,t<<=8),t>>>28||(n+=4,t<<=4),t>>>30||(n+=2,t<<=2),n-=t>>>31,n},e.toHexString=function(t){return t.toString(16)},e.toBinaryString=function(t){return String(parseInt(String(t),2))},e.bitCount=function(t){return t=t-(t>>>1&1431655765),t=(t&858993459)+(t>>>2&858993459),t=t+(t>>>4)&252645135,t=t+(t>>>8),t=t+(t>>>16),t&63},e.truncDivision=function(t,n){return Math.trunc(t/n)},e.parseInt=function(t,n){return n===void 0&&(n=void 0),parseInt(t,n)},e.MIN_VALUE_32_BITS=-2147483648,e.MAX_VALUE=Number.MAX_SAFE_INTEGER,e}(),BitArray=function(){function e(t,n){t===void 0?(this.size=0,this.bits=new Int32Array(1)):(this.size=t,n==null?this.bits=e.makeArray(t):this.bits=n)}return e.prototype.getSize=function(){return this.size},e.prototype.getSizeInBytes=function(){return Math.floor((this.size+7)/8)},e.prototype.ensureCapacity=function(t){if(t>this.bits.length*32){var n=e.makeArray(t);System.arraycopy(this.bits,0,n,0,this.bits.length),this.bits=n}},e.prototype.get=function(t){return(this.bits[Math.floor(t/32)]&1<<(t&31))!==0},e.prototype.set=function(t){this.bits[Math.floor(t/32)]|=1<<(t&31)},e.prototype.flip=function(t){this.bits[Math.floor(t/32)]^=1<<(t&31)},e.prototype.getNextSet=function(t){var n=this.size;if(t>=n)return n;var r=this.bits,i=Math.floor(t/32),o=r[i];o&=~((1<<(t&31))-1);for(var a=r.length;o===0;){if(++i===a)return n;o=r[i]}var s=i*32+Integer.numberOfTrailingZeros(o);return s>n?n:s},e.prototype.getNextUnset=function(t){var n=this.size;if(t>=n)return n;var r=this.bits,i=Math.floor(t/32),o=~r[i];o&=~((1<<(t&31))-1);for(var a=r.length;o===0;){if(++i===a)return n;o=~r[i]}var s=i*32+Integer.numberOfTrailingZeros(o);return s>n?n:s},e.prototype.setBulk=function(t,n){this.bits[Math.floor(t/32)]=n},e.prototype.setRange=function(t,n){if(n<t||t<0||n>this.size)throw new IllegalArgumentException;if(n!==t){n--;for(var r=Math.floor(t/32),i=Math.floor(n/32),o=this.bits,a=r;a<=i;a++){var s=a>r?0:t&31,l=a<i?31:n&31,u=(2<<l)-(1<<s);o[a]|=u}}},e.prototype.clear=function(){for(var t=this.bits.length,n=this.bits,r=0;r<t;r++)n[r]=0},e.prototype.isRange=function(t,n,r){if(n<t||t<0||n>this.size)throw new IllegalArgumentException;if(n===t)return!0;n--;for(var i=Math.floor(t/32),o=Math.floor(n/32),a=this.bits,s=i;s<=o;s++){var l=s>i?0:t&31,u=s<o?31:n&31,c=(2<<u)-(1<<l)&4294967295;if((a[s]&c)!==(r?c:0))return!1}return!0},e.prototype.appendBit=function(t){this.ensureCapacity(this.size+1),t&&(this.bits[Math.floor(this.size/32)]|=1<<(this.size&31)),this.size++},e.prototype.appendBits=function(t,n){if(n<0||n>32)throw new IllegalArgumentException("Num bits must be between 0 and 32");this.ensureCapacity(this.size+n);for(var r=n;r>0;r--)this.appendBit((t>>r-1&1)===1)},e.prototype.appendBitArray=function(t){var n=t.size;this.ensureCapacity(this.size+n);for(var r=0;r<n;r++)this.appendBit(t.get(r))},e.prototype.xor=function(t){if(this.size!==t.size)throw new IllegalArgumentException("Sizes don't match");for(var n=this.bits,r=0,i=n.length;r<i;r++)n[r]^=t.bits[r]},e.prototype.toBytes=function(t,n,r,i){for(var o=0;o<i;o++){for(var a=0,s=0;s<8;s++)this.get(t)&&(a|=1<<7-s),t++;n[r+o]=a}},e.prototype.getBitArray=function(){return this.bits},e.prototype.reverse=function(){for(var t=new Int32Array(this.bits.length),n=Math.floor((this.size-1)/32),r=n+1,i=this.bits,o=0;o<r;o++){var a=i[o];a=a>>1&1431655765|(a&1431655765)<<1,a=a>>2&858993459|(a&858993459)<<2,a=a>>4&252645135|(a&252645135)<<4,a=a>>8&16711935|(a&16711935)<<8,a=a>>16&65535|(a&65535)<<16,t[n-o]=a}if(this.size!==r*32){for(var s=r*32-this.size,l=t[0]>>>s,o=1;o<r;o++){var u=t[o];l|=u<<32-s,t[o-1]=l,l=u>>>s}t[r-1]=l}this.bits=t},e.makeArray=function(t){return new Int32Array(Math.floor((t+31)/32))},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.size===n.size&&Arrays.equals(this.bits,n.bits)},e.prototype.hashCode=function(){return 31*this.size+Arrays.hashCode(this.bits)},e.prototype.toString=function(){for(var t="",n=0,r=this.size;n<r;n++)n&7||(t+=" "),t+=this.get(n)?"X":".";return t},e.prototype.clone=function(){return new e(this.size,this.bits.slice())},e.prototype.toArray=function(){for(var t=[],n=0,r=this.size;n<r;n++)t.push(this.get(n));return t},e}(),DecodeHintType;(function(e){e[e.OTHER=0]="OTHER",e[e.PURE_BARCODE=1]="PURE_BARCODE",e[e.POSSIBLE_FORMATS=2]="POSSIBLE_FORMATS",e[e.TRY_HARDER=3]="TRY_HARDER",e[e.CHARACTER_SET=4]="CHARACTER_SET",e[e.ALLOWED_LENGTHS=5]="ALLOWED_LENGTHS",e[e.ASSUME_CODE_39_CHECK_DIGIT=6]="ASSUME_CODE_39_CHECK_DIGIT",e[e.ASSUME_GS1=7]="ASSUME_GS1",e[e.RETURN_CODABAR_START_END=8]="RETURN_CODABAR_START_END",e[e.NEED_RESULT_POINT_CALLBACK=9]="NEED_RESULT_POINT_CALLBACK",e[e.ALLOWED_EAN_EXTENSIONS=10]="ALLOWED_EAN_EXTENSIONS"})(DecodeHintType||(DecodeHintType={}));const DecodeHintType$1=DecodeHintType;var __extends$12=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),FormatException=function(e){__extends$12(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.getFormatInstance=function(){return new t},t.kind="FormatException",t}(Exception),__values$I=globalThis&&globalThis.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},CharacterSetValueIdentifiers;(function(e){e[e.Cp437=0]="Cp437",e[e.ISO8859_1=1]="ISO8859_1",e[e.ISO8859_2=2]="ISO8859_2",e[e.ISO8859_3=3]="ISO8859_3",e[e.ISO8859_4=4]="ISO8859_4",e[e.ISO8859_5=5]="ISO8859_5",e[e.ISO8859_6=6]="ISO8859_6",e[e.ISO8859_7=7]="ISO8859_7",e[e.ISO8859_8=8]="ISO8859_8",e[e.ISO8859_9=9]="ISO8859_9",e[e.ISO8859_10=10]="ISO8859_10",e[e.ISO8859_11=11]="ISO8859_11",e[e.ISO8859_13=12]="ISO8859_13",e[e.ISO8859_14=13]="ISO8859_14",e[e.ISO8859_15=14]="ISO8859_15",e[e.ISO8859_16=15]="ISO8859_16",e[e.SJIS=16]="SJIS",e[e.Cp1250=17]="Cp1250",e[e.Cp1251=18]="Cp1251",e[e.Cp1252=19]="Cp1252",e[e.Cp1256=20]="Cp1256",e[e.UnicodeBigUnmarked=21]="UnicodeBigUnmarked",e[e.UTF8=22]="UTF8",e[e.ASCII=23]="ASCII",e[e.Big5=24]="Big5",e[e.GB18030=25]="GB18030",e[e.EUC_KR=26]="EUC_KR"})(CharacterSetValueIdentifiers||(CharacterSetValueIdentifiers={}));var CharacterSetECI=function(){function e(t,n,r){for(var i,o,a=[],s=3;s<arguments.length;s++)a[s-3]=arguments[s];this.valueIdentifier=t,this.name=r,typeof n=="number"?this.values=Int32Array.from([n]):this.values=n,this.otherEncodingNames=a,e.VALUE_IDENTIFIER_TO_ECI.set(t,this),e.NAME_TO_ECI.set(r,this);for(var l=this.values,u=0,c=l.length;u!==c;u++){var d=l[u];e.VALUES_TO_ECI.set(d,this)}try{for(var f=__values$I(a),h=f.next();!h.done;h=f.next()){var p=h.value;e.NAME_TO_ECI.set(p,this)}}catch(g){i={error:g}}finally{try{h&&!h.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}}return e.prototype.getValueIdentifier=function(){return this.valueIdentifier},e.prototype.getName=function(){return this.name},e.prototype.getValue=function(){return this.values[0]},e.getCharacterSetECIByValue=function(t){if(t<0||t>=900)throw new FormatException("incorect value");var n=e.VALUES_TO_ECI.get(t);if(n===void 0)throw new FormatException("incorect value");return n},e.getCharacterSetECIByName=function(t){var n=e.NAME_TO_ECI.get(t);if(n===void 0)throw new FormatException("incorect value");return n},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.getName()===n.getName()},e.VALUE_IDENTIFIER_TO_ECI=new Map,e.VALUES_TO_ECI=new Map,e.NAME_TO_ECI=new Map,e.Cp437=new e(CharacterSetValueIdentifiers.Cp437,Int32Array.from([0,2]),"Cp437"),e.ISO8859_1=new e(CharacterSetValueIdentifiers.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1"),e.ISO8859_2=new e(CharacterSetValueIdentifiers.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2"),e.ISO8859_3=new e(CharacterSetValueIdentifiers.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3"),e.ISO8859_4=new e(CharacterSetValueIdentifiers.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4"),e.ISO8859_5=new e(CharacterSetValueIdentifiers.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5"),e.ISO8859_6=new e(CharacterSetValueIdentifiers.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6"),e.ISO8859_7=new e(CharacterSetValueIdentifiers.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7"),e.ISO8859_8=new e(CharacterSetValueIdentifiers.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8"),e.ISO8859_9=new e(CharacterSetValueIdentifiers.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9"),e.ISO8859_10=new e(CharacterSetValueIdentifiers.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10"),e.ISO8859_11=new e(CharacterSetValueIdentifiers.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11"),e.ISO8859_13=new e(CharacterSetValueIdentifiers.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13"),e.ISO8859_14=new e(CharacterSetValueIdentifiers.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14"),e.ISO8859_15=new e(CharacterSetValueIdentifiers.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15"),e.ISO8859_16=new e(CharacterSetValueIdentifiers.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16"),e.SJIS=new e(CharacterSetValueIdentifiers.SJIS,20,"SJIS","Shift_JIS"),e.Cp1250=new e(CharacterSetValueIdentifiers.Cp1250,21,"Cp1250","windows-1250"),e.Cp1251=new e(CharacterSetValueIdentifiers.Cp1251,22,"Cp1251","windows-1251"),e.Cp1252=new e(CharacterSetValueIdentifiers.Cp1252,23,"Cp1252","windows-1252"),e.Cp1256=new e(CharacterSetValueIdentifiers.Cp1256,24,"Cp1256","windows-1256"),e.UnicodeBigUnmarked=new e(CharacterSetValueIdentifiers.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig"),e.UTF8=new e(CharacterSetValueIdentifiers.UTF8,26,"UTF8","UTF-8"),e.ASCII=new e(CharacterSetValueIdentifiers.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII"),e.Big5=new e(CharacterSetValueIdentifiers.Big5,28,"Big5"),e.GB18030=new e(CharacterSetValueIdentifiers.GB18030,29,"GB18030","GB2312","EUC_CN","GBK"),e.EUC_KR=new e(CharacterSetValueIdentifiers.EUC_KR,30,"EUC_KR","EUC-KR"),e}(),__extends$11=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),UnsupportedOperationException=function(e){__extends$11(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.kind="UnsupportedOperationException",t}(Exception),StringEncoding=function(){function e(){}return e.decode=function(t,n){var r=this.encodingName(n);return this.customDecoder?this.customDecoder(t,r):typeof TextDecoder>"u"||this.shouldDecodeOnFallback(r)?this.decodeFallback(t,r):new TextDecoder(r).decode(t)},e.shouldDecodeOnFallback=function(t){return!e.isBrowser()&&t==="ISO-8859-1"},e.encode=function(t,n){var r=this.encodingName(n);return this.customEncoder?this.customEncoder(t,r):typeof TextEncoder>"u"?this.encodeFallback(t):new TextEncoder().encode(t)},e.isBrowser=function(){return typeof window<"u"&&{}.toString.call(window)==="[object Window]"},e.encodingName=function(t){return typeof t=="string"?t:t.getName()},e.encodingCharacterSet=function(t){return t instanceof CharacterSetECI?t:CharacterSetECI.getCharacterSetECIByName(t)},e.decodeFallback=function(t,n){var r=this.encodingCharacterSet(n);if(e.isDecodeFallbackSupported(r)){for(var i="",o=0,a=t.length;o<a;o++){var s=t[o].toString(16);s.length<2&&(s="0"+s),i+="%"+s}return decodeURIComponent(i)}if(r.equals(CharacterSetECI.UnicodeBigUnmarked))return String.fromCharCode.apply(null,new Uint16Array(t.buffer));throw new UnsupportedOperationException("Encoding "+this.encodingName(n)+" not supported by fallback.")},e.isDecodeFallbackSupported=function(t){return t.equals(CharacterSetECI.UTF8)||t.equals(CharacterSetECI.ISO8859_1)||t.equals(CharacterSetECI.ASCII)},e.encodeFallback=function(t){for(var n=btoa(unescape(encodeURIComponent(t))),r=n.split(""),i=[],o=0;o<r.length;o++)i.push(r[o].charCodeAt(0));return new Uint8Array(i)},e}(),StringUtils=function(){function e(){}return e.castAsNonUtf8Char=function(t,n){n===void 0&&(n=null);var r=n?n.getName():this.ISO88591;return StringEncoding.decode(new Uint8Array([t]),r)},e.guessEncoding=function(t,n){if(n!=null&&n.get(DecodeHintType$1.CHARACTER_SET)!==void 0)return n.get(DecodeHintType$1.CHARACTER_SET).toString();for(var r=t.length,i=!0,o=!0,a=!0,s=0,l=0,u=0,c=0,d=0,f=0,h=0,p=0,g=0,C=0,v=0,m=t.length>3&&t[0]===239&&t[1]===187&&t[2]===191,_=0;_<r&&(i||o||a);_++){var E=t[_]&255;a&&(s>0?E&128?s--:a=!1:E&128&&(E&64?(s++,E&32?(s++,E&16?(s++,E&8?a=!1:c++):u++):l++):a=!1)),i&&(E>127&&E<160?i=!1:E>159&&(E<192||E===215||E===247)&&v++),o&&(d>0?E<64||E===127||E>252?o=!1:d--:E===128||E===160||E>239?o=!1:E>160&&E<224?(f++,p=0,h++,h>g&&(g=h)):E>127?(d++,h=0,p++,p>C&&(C=p)):(h=0,p=0))}return a&&s>0&&(a=!1),o&&d>0&&(o=!1),a&&(m||l+u+c>0)?e.UTF8:o&&(e.ASSUME_SHIFT_JIS||g>=3||C>=3)?e.SHIFT_JIS:i&&o?g===2&&f===2||v*10>=r?e.SHIFT_JIS:e.ISO88591:i?e.ISO88591:o?e.SHIFT_JIS:a?e.UTF8:e.PLATFORM_DEFAULT_ENCODING},e.format=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=-1;function o(s,l,u,c,d,f){if(s==="%%")return"%";if(n[++i]!==void 0){s=c?parseInt(c.substr(1)):void 0;var h=d?parseInt(d.substr(1)):void 0,p;switch(f){case"s":p=n[i];break;case"c":p=n[i][0];break;case"f":p=parseFloat(n[i]).toFixed(s);break;case"p":p=parseFloat(n[i]).toPrecision(s);break;case"e":p=parseFloat(n[i]).toExponential(s);break;case"x":p=parseInt(n[i]).toString(h||16);break;case"d":p=parseFloat(parseInt(n[i],h||10).toPrecision(s)).toFixed(0);break}p=typeof p=="object"?JSON.stringify(p):(+p).toString(h);for(var g=parseInt(u),C=u&&u[0]+""=="0"?"0":" ";p.length<g;)p=l!==void 0?p+C:C+p;return p}}var a=/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g;return t.replace(a,o)},e.getBytes=function(t,n){return StringEncoding.encode(t,n)},e.getCharCode=function(t,n){return n===void 0&&(n=0),t.charCodeAt(n)},e.getCharAt=function(t){return String.fromCharCode(t)},e.SHIFT_JIS=CharacterSetECI.SJIS.getName(),e.GB2312="GB2312",e.ISO88591=CharacterSetECI.ISO8859_1.getName(),e.EUC_JP="EUC_JP",e.UTF8=CharacterSetECI.UTF8.getName(),e.PLATFORM_DEFAULT_ENCODING=e.UTF8,e.ASSUME_SHIFT_JIS=!1,e}(),StringBuilder=function(){function e(t){t===void 0&&(t=""),this.value=t}return e.prototype.enableDecoding=function(t){return this.encoding=t,this},e.prototype.append=function(t){return typeof t=="string"?this.value+=t.toString():this.encoding?this.value+=StringUtils.castAsNonUtf8Char(t,this.encoding):this.value+=String.fromCharCode(t),this},e.prototype.appendChars=function(t,n,r){for(var i=n;n<n+r;i++)this.append(t[i]);return this},e.prototype.length=function(){return this.value.length},e.prototype.charAt=function(t){return this.value.charAt(t)},e.prototype.deleteCharAt=function(t){this.value=this.value.substr(0,t)+this.value.substring(t+1)},e.prototype.setCharAt=function(t,n){this.value=this.value.substr(0,t)+n+this.value.substr(t+1)},e.prototype.substring=function(t,n){return this.value.substring(t,n)},e.prototype.setLengthToZero=function(){this.value=""},e.prototype.toString=function(){return this.value},e.prototype.insert=function(t,n){this.value=this.value.substring(0,t)+n+this.value.substring(t)},e}(),BitMatrix=function(){function e(t,n,r,i){if(this.width=t,this.height=n,this.rowSize=r,this.bits=i,n==null&&(n=t),this.height=n,t<1||n<1)throw new IllegalArgumentException("Both dimensions must be greater than 0");r==null&&(r=Math.floor((t+31)/32)),this.rowSize=r,i==null&&(this.bits=new Int32Array(this.rowSize*this.height))}return e.parseFromBooleanArray=function(t){for(var n=t.length,r=t[0].length,i=new e(r,n),o=0;o<n;o++)for(var a=t[o],s=0;s<r;s++)a[s]&&i.set(s,o);return i},e.parseFromString=function(t,n,r){if(t===null)throw new IllegalArgumentException("stringRepresentation cannot be null");for(var i=new Array(t.length),o=0,a=0,s=-1,l=0,u=0;u<t.length;)if(t.charAt(u)===`
66
+ </span>`}},emits:["result"]},_hoisted_1$h={key:0,style:{"padding-top":"5px",overflow:"auto",width:"auto",display:"inline-block !important"}},_hoisted_2$d={key:1,style:{height:"100%",overflow:"hidden"}},_hoisted_3$8=Vue.createElementVNode("table",{border:"1px",cellpadding:"0",cellspacing:"0",style:{height:"100%","border-left-style":"solid","border-bottom-style":"none","border-right-style":"none","border-top-style":"none","border-left-color":"#cccccc"}},null,-1),_hoisted_4$5={style:{"text-align":"left","font-size":"16px"}},_hoisted_5$5={style:"padding-top: 5px;height:90%;overflow: hidden;"};function _sfc_render$q(e,t,n,r,i,o){const a=Vue.resolveComponent("el-button"),s=Vue.resolveComponent("el-autocomplete"),l=Vue.resolveComponent("el-header"),u=Vue.resolveComponent("el-tree"),c=Vue.resolveComponent("workgroup-user-result"),d=Vue.resolveComponent("el-main"),f=Vue.resolveComponent("el-container"),h=Vue.resolveComponent("el-aside");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(f,{style:{height:"395px"}},{default:Vue.withCtx(()=>[Vue.createVNode(h,{width:"430px"},{default:Vue.withCtx(()=>[Vue.createVNode(f,{style:{height:"390px"}},{default:Vue.withCtx(()=>[Vue.createVNode(l,{style:{"text-align":"right","font-size":"12px",height:"35px"}},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:i.filterText,"onUpdate:modelValue":t[0]||(t[0]=p=>i.filterText=p),size:"small","select-when-unmatched":"",class:"inline-input inline-input-custom","fetch-suggestions":e.querySearch,placeholder:e.$t("departmentUserTree.pleaseEnterUserInformation"),"trigger-on-focus":!1,onSelect:o.handleSelect,onKeyup:Vue.withKeys(o.clickSearch,["enter"])},{append:Vue.withCtx(()=>[Vue.createVNode(a,{icon:i.ElIconSearch,onClick:o.clickSearch},null,8,["icon","onClick"])]),_:1},8,["modelValue","fetch-suggestions","placeholder","onSelect","onKeyup"])]),_:1}),Vue.createVNode(d,{style:{padding:"10px"}},{default:Vue.withCtx(()=>[i.searchValue?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$h,[Vue.createVNode(u,{ref:"workgroupUserTree",props:i.defaultProps,load:e.loadNode,lazy:"","show-checkbox":n.multiple,"node-key":"nodeId","render-content":o.renderContent,"filter-node-method":o.filterNode,onCheck:o.handleCheckNode,onNodeClick:o.handleNodeClick},null,8,["props","load","show-checkbox","render-content","filter-node-method","onCheck","onNodeClick"])])),i.searchValue&&i.searchValue.length>0?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_2$d,[Vue.createVNode(c,{ref:"workgroupUserResult","grid-data":i.searchResult,"select-result":i.selectResult,height:e.height,multiple:n.multiple,"is-search-result":!0,onSelectResult:o.getSelectWorkgroupUser,onResultRowDblclick:o.resultRowDblclick,onAddWorkgroupUser:o.addWorkgroupUser},null,8,["grid-data","select-result","height","multiple","onSelectResult","onResultRowDblclick","onAddWorkgroupUser"])])):Vue.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1}),n.multiple?(Vue.openBlock(),Vue.createBlock(f,{key:0},{default:Vue.withCtx(()=>[Vue.createVNode(h,{width:"2px"},{default:Vue.withCtx(()=>[_hoisted_3$8]),_:1}),Vue.createVNode(d,{style:{padding:"10px"}},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_4$5,Vue.toDisplayString(e.$t("departmentUserTree.selectedPeople"))+":: ",1),Vue.createElementVNode("div",_hoisted_5$5,[Vue.createVNode(c,{"grid-data":i.selectResult,height:e.height,multiple:n.multiple,"is-search-result":!1,onSelectResult:o.getSelectWorkgroupUser,onResultRowDblclick:o.resultRowDblclick,onRemoveWorkgroupUser:o.removeWorkgroupUser},null,8,["grid-data","height","multiple","onSelectResult","onResultRowDblclick","onRemoveWorkgroupUser"])])]),_:1})]),_:1})):Vue.createCommentVNode("",!0)]),_:1})])}const InlineWorkgroupUserTree=_export_sfc(_sfc_main$q,[["render",_sfc_render$q]]),_sfc_main$p={name:"WorkgroupUserTree",components:{InlineWorkgroupUserTree},props:{multiple:{type:Boolean,default:!0},branchInfo:{type:Array,default:null},title:{type:String,default:null},width:{type:String,default:"30%"},selectUserInfo:{type:[String,Number],default:null},searchField:{type:String,default:"loginName"},separator:{type:String,default:","}},data(){let e=this.$t("imatrixUIMessage.pleaseSelectATeam");return this.title&&(e=this.title),{myTitle:e}},methods:{result(e){$emit(this,"close",e)},selectWorkgroupUser(){this.$refs.workgroupUserTree.selectWorkgroupUser()}},emits:["open","opend","close","closed","opend","close","closed"]},_hoisted_1$g={class:"dialog-footer"};function _sfc_render$p(e,t,n,r,i,o){const a=Vue.resolveComponent("inline-workgroup-user-tree"),s=Vue.resolveComponent("el-button"),l=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(l,{class:"user-tree","model-value":"",title:i.myTitle,"close-on-click-modal":!1,"append-to-body":"",width:n.multiple?"60%":"40%",onOpen:t[1]||(t[1]=u=>e.$emit("open")),onOpend:t[2]||(t[2]=u=>e.$emit("opend")),onClose:t[3]||(t[3]=u=>e.$emit("close")),onClosed:t[4]||(t[4]=u=>e.$emit("closed"))},{footer:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_1$g,[Vue.createVNode(s,{size:"small",onClick:t[0]||(t[0]=u=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIPublicModel.cancel")),1)]),_:1}),Vue.createVNode(s,{size:"small",type:"primary",onClick:o.selectWorkgroupUser},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIPublicModel.sure")),1)]),_:1},8,["onClick"])])]),default:Vue.withCtx(()=>[Vue.createVNode(a,{ref:"workgroupUserTree",multiple:n.multiple,"branch-info":n.branchInfo,"select-user-info":n.selectUserInfo,"search-field":n.searchField,separator:n.separator,onResult:o.result},null,8,["multiple","branch-info","select-user-info","search-field","separator","onResult"])]),_:1},8,["title","width"])])}const WorkgroupUserTree=_export_sfc(_sfc_main$p,[["render",_sfc_render$p]]);WorkgroupUserTree.install=function(e){e.component(WorkgroupUserTree.name,WorkgroupUserTree)},InlineDepartmentTree.install=function(e){e.component(InlineDepartmentTree.name,InlineDepartmentTree)};const _sfc_main$o={name:"InlineDepartmentUserTree",components:{InlineDepartmentUserSingleTree,InlineDepartmentUserMultiTree},props:{multiple:{type:Boolean,default:!0},departmentInfo:{type:Array,default:null},height:{type:String,default:"300px"},isNeedVirtualUser:{type:Boolean,default:!1},selectUserInfo:{type:[String,Number],default:null},searchField:{type:String,default:"loginName"},separator:{type:String,default:","}},data(){return{selectNodeInfo:null}},methods:{result(e){this.selectNodeInfo=e,$emit(this,"result",e)},confirmSelectUser(){this.$refs.userTree.confirmSelectUser()}},emits:["result"]};function _sfc_render$o(e,t,n,r,i,o){const a=Vue.resolveComponent("inline-department-user-multi-tree"),s=Vue.resolveComponent("inline-department-user-single-tree");return Vue.openBlock(),Vue.createElementBlock("div",null,[n.multiple?(Vue.openBlock(),Vue.createBlock(a,{key:0,ref:"userTree",height:n.height,"department-info":n.departmentInfo,"select-user-info":n.selectUserInfo,"search-field":n.searchField,separator:n.separator,onResult:o.result},null,8,["height","department-info","select-user-info","search-field","separator","onResult"])):Vue.createCommentVNode("",!0),n.multiple?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(s,{key:1,ref:"userTree",height:n.height,"department-info":n.departmentInfo,onResult:o.result},null,8,["height","department-info","onResult"]))])}const InlineDepartmentUserTree=_export_sfc(_sfc_main$o,[["render",_sfc_render$o]]);InlineDepartmentUserTree.install=function(e){e.component(InlineDepartmentUserTree.name,InlineDepartmentUserTree)},InlineWorkgroupTree.install=function(e){e.component(InlineWorkgroupTree.name,InlineWorkgroupTree)},InlineWorkgroupUserTree.install=function(e){e.component(InlineWorkgroupUserTree.name,InlineWorkgroupUserTree)};const _sfc_main$n={name:"WorkflowButton",props:{buttonInfo:{type:Object,default:null},hiddenBtns:{type:Array,default:null},permissionPrefix:{type:String,default:null},formButtonPosition:{type:String,default:null}},data(){const e=this.getButtonsPermission();return{slotBefore:"before",slotAfter:"after",buttons:[],buttonsPermission:e}},computed:{...mapGetters(["preventReclick"])},provide(){return{}},created(){const e=[],t=this;if((typeof this.buttonInfo.processState>"u"||this.buttonInfo.processState===null||this.buttonInfo.processState==="UNSUBMIT"&&this.buttonInfo.active==="WAIT_TRANSACT")&&((typeof this.buttonInfo.processState>"u"||this.buttonInfo.showButtonSave===!0)&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.saveButton),permission:this.buttonsPermission.save,type:"primary",clickFun:function(){$emit(t,"save")},code:"saveButton"}),e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.submitButton),permission:this.buttonsPermission.submitProcess,type:"primary",clickFun:function(){$emit(t,"submitProcess")},code:"submitButton"})),this.buttonInfo.processState){if(this.buttonInfo.active==="WAIT_TRANSACT"&&this.buttonInfo.processingMode==="TYPE_READ")(!this.hiddenBtns||this.hiddenBtns&&this.hiddenBtns.indexOf("readButton")===-1)&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.readButton),permission:this.buttonsPermission.completeTask,type:"primary",clickFun:function(){t.completeTask("READED")},code:"readButton"});else if(this.buttonInfo.processState==="SUBMIT"){if(this.buttonInfo.processingMode!=="TYPE_READ"&&this.buttonInfo.showButtonSave&&(this.buttonInfo.active==="WAIT_TRANSACT"||this.buttonInfo.active==="WAIT_DESIGNATE_TRANSACTOR"||this.buttonInfo.active==="WAIT_CHOICE_TACHE"||this.buttonInfo.active==="DRAW_WAIT")&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.saveButton),permission:this.buttonsPermission.update,type:"primary",clickFun:function(){$emit(t,"update")},code:"saveButton"}),this.buttonInfo.active&&this.buttonInfo.active==="WAIT_DESIGNATE_TRANSACTOR"&&(!this.hiddenBtns||this.hiddenBtns&&this.hiddenBtns.indexOf("selectTransactor")===-1)&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.submitButton),permission:this.buttonsPermission.selectTransactor,type:"primary",clickFun:function(){$emit(t,"selectTransactors")},code:"submitButton"}),this.buttonInfo.active&&this.buttonInfo.active==="WAIT_CHOICE_TACHE"&&(!this.hiddenBtns||this.hiddenBtns&&this.hiddenBtns.indexOf("selectTache")===-1)){e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.submitButton),permission:this.buttonsPermission.selectTache,type:"primary",clickFun:function(){$emit(t,"selectTaches")},code:"submitButton"});const n=e.findIndex(r=>r.code==="saveButton");n!==-1&&e.splice(n,1)}this.buttonInfo.active&&(this.buttonInfo.active==="DRAW_WAIT"||this.buttonInfo.active==="DEPT_DRAW_WAIT")&&this.buttonInfo.showButtonDraw&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.drawButton),permission:this.buttonsPermission.drawTask,type:"primary",clickFun:function(){$emit(t,"drawTask")},code:"drawButton"}),(this.buttonInfo.drawTask&&this.buttonInfo.active==="WAIT_TRANSACT"||this.buttonInfo.canAbandonDeptTask&&this.buttonInfo.active==="WAIT_TRANSACT")&&this.buttonInfo.showButtonAbandon&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.abandonButton),permission:this.buttonsPermission.abandonReceive,type:"primary",clickFun:function(){$emit(t,"abandonDraw")},code:"abandonButton"}),this.buttonInfo.active==="COMPLETED"&&this.buttonInfo.processingMode!=="TYPE_READ"&&(!this.hiddenBtns||this.hiddenBtns&&this.hiddenBtns.indexOf("retrieveButton")===-1)&&this.buttonInfo.showButtonGetBack&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.backButton),permission:this.buttonsPermission.retrieve,type:"primary",clickFun:function(){$emit(t,"retrieveTask")},code:"backButton"}),this.buttonInfo.active==="WAIT_TRANSACT"&&this.buttonInfo.processingMode==="EDIT"&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.submitButton),permission:this.buttonsPermission.submitTask,type:"primary",clickFun:function(){t.completeTask("SUBMIT")},code:"submitButton"}),this.buttonInfo.active==="WAIT_TRANSACT"&&(this.buttonInfo.processingMode==="APPROVE"||this.buttonInfo.processingMode==="COUNTERSIGN")&&(e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.agreeButton),permission:this.buttonsPermission.approve,type:"primary",clickFun:function(){t.completeTask("APPROVE")},code:"agreeButton"}),e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.disagreeButton),permission:this.buttonsPermission.refuse,type:"primary",clickFun:function(){t.completeTask("REFUSE")},code:"disagreeButton"}),this.buttonInfo.processingMode==="COUNTERSIGN"&&this.buttonInfo.showButtonAddCounter&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.addSignerButton),permission:this.buttonsPermission.addSigner,type:"primary",clickFun:function(){$emit(t,"addSigner")},code:"addSignerButton"}),this.buttonInfo.processingMode==="COUNTERSIGN"&&this.buttonInfo.showButtonDelCounter&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.removeSignerButton),permission:this.buttonsPermission.removeSigner,type:"primary",clickFun:function(){$emit(t,"removeSigner")},code:"removeSignerButton"})),this.buttonInfo.active==="WAIT_TRANSACT"&&this.buttonInfo.processingMode==="VOTE"&&(e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.approveButton),permission:this.buttonsPermission.agreement,type:"primary",clickFun:function(){t.completeTask("AGREEMENT")},code:"approveButton"}),e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.opposeButton),permission:this.buttonsPermission.oppose,type:"primary",clickFun:function(){t.completeTask("OPPOSE")},code:"opposeButton"}),this.buttonInfo.showButtonKiken&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.abstainButton),permission:this.buttonsPermission.kiken,type:"primary",clickFun:function(){t.completeTask("KIKEN")},code:"abstainButton"})),this.buttonInfo.active==="WAIT_TRANSACT"&&this.buttonInfo.processingMode!=="TYPE_READ"&&this.buttonInfo.showButtonCopy&&(!this.hiddenBtns||this.hiddenBtns&&this.hiddenBtns.indexOf("copyButton")===-1)&&this.buttonInfo.showButtonCopy&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.copyButton),permission:this.buttonsPermission.copyTask,type:"",clickFun:function(){$emit(t,"createCopyTask")},code:"copyButton"}),this.buttonInfo.processingMode!=="TYPE_READ"&&(this.buttonInfo.active==="WAIT_TRANSACT"||this.buttonInfo.active==="DRAW_WAIT")&&(!this.hiddenBtns||this.hiddenBtns&&this.hiddenBtns.indexOf("assignButton")===-1)&&this.buttonInfo.showButtonAppoint&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo.appointButton),permission:this.buttonsPermission.assign,type:"",clickFun:function(){$emit(t,"assignTask")},code:"appointButton"})}}this.formButtonPosition==="bottomRight"?(this.buttons=e.slice().reverse(),this.slotBefore="after",this.slotAfter="before"):this.buttons=e},mounted(){},methods:{exportReportButt(){$emit(this,"exportReport")},completeTask(e){$emit(this,"completeTask",e)},i18nButtonName(e){const t="initVal:";if(e.indexOf(t)>=0){const n=e.substring(e.indexOf(t)+t.length);return this.$t("workflowButton."+n)}else return e},getButtonsPermission(){const e="true",t=this.permissionPrefix?this.permissionPrefix+".completeTask":e;return{save:this.permissionPrefix?this.permissionPrefix+".save":e,submitProcess:this.permissionPrefix?this.permissionPrefix+".submitProcess":e,approve:this.permissionPrefix?this.permissionPrefix+".approve":t,refuse:this.permissionPrefix?this.permissionPrefix+".refuse":t,submitTask:this.permissionPrefix?this.permissionPrefix+".submit":t,agreement:this.permissionPrefix?this.permissionPrefix+".agreement":t,oppose:this.permissionPrefix?this.permissionPrefix+".oppose":t,kiken:this.permissionPrefix?this.permissionPrefix+".kiken":t,readed:this.permissionPrefix?this.permissionPrefix+".readed":t,drawTask:this.permissionPrefix?this.permissionPrefix+".drawTask":e,abandonReceive:this.permissionPrefix?this.permissionPrefix+".abandonReceive":e,retrieve:this.permissionPrefix?this.permissionPrefix+".retrieve":e,update:this.permissionPrefix?this.permissionPrefix+".update":e,assign:this.permissionPrefix?this.permissionPrefix+".assign":e,selectTransactor:this.permissionPrefix?this.permissionPrefix+".selectTransactor":e,selectTache:this.permissionPrefix?this.permissionPrefix+".selectTache":e,copyTask:this.permissionPrefix?this.permissionPrefix+".copyTask":e,addSigner:this.permissionPrefix?this.permissionPrefix+".addSigner":e,removeSigner:this.permissionPrefix?this.permissionPrefix+".removeSigner":e,exportReport:this.permissionPrefix?this.permissionPrefix+".exportReport":e,drawDeptTask:this.permissionPrefix?this.permissionPrefix+".drawDeptTask":e,abandonDrawDeptTask:this.permissionPrefix?this.permissionPrefix+".abandonDrawDeptTask":e}},isDeptTask(){}},emits:["completeTask","save","submitProcess","update","selectTransactors","selectTaches","drawTask","abandonDraw","retrieveTask","addSigner","removeSigner","createCopyTask","assignTask","exportReport",,]},_hoisted_1$f={key:0,class:"operation-area"},_hoisted_2$c={key:1,class:"operation-area"};function _sfc_render$n(e,t,n,r,i,o){const a=Vue.resolveComponent("el-button"),s=Vue.resolveDirective("permission");return Vue.openBlock(),Vue.createElementBlock("span",null,[typeof n.buttonInfo.theTransactor<"u"&&n.buttonInfo.theTransactor===!1?(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_1$f,[Vue.renderSlot(e.$slots,i.slotBefore),Vue.renderSlot(e.$slots,"errorArea"),Vue.renderSlot(e.$slots,i.slotAfter)])):(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_2$c,[Vue.renderSlot(e.$slots,i.slotBefore),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(i.buttons,(l,u)=>Vue.withDirectives((Vue.openBlock(),Vue.createBlock(a,{key:u,disabled:e.preventReclick,type:l.type,size:"small",class:Vue.normalizeClass(l.code?l.code:""),onClick:l.clickFun},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(l.i18nButtonName),1)]),_:2},1032,["disabled","type","class","onClick"])),[[s,l.permission]])),128)),Vue.renderSlot(e.$slots,i.slotAfter)]))])}const WorkflowButton=_export_sfc(_sfc_main$n,[["render",_sfc_render$n]]);WorkflowButton.install=function(e){e.component(WorkflowButton.name,WorkflowButton)};function i18nOperation(e,t,n,r){let i=e.transactionResult;const o=e.historyType;if(!e.current&&o)if(e.transactionParams){const a=JSON.parse(e.transactionParams);let s=o.toLowerCase();const l=isCommonButtonOperation(o);if(l?s="commonButtonOperation":s==="process_end"&&(s="processEnd"),l||o==="HISTORY_COMPLETE_TRANSFER"){const u=a[2];a[2]=getI18n().t("workflowButton."+u)}if(s==="process_start"&&t&&t!==null)a[1]=t,i=getI18n().t("workflowHistoryList."+s,a);else{const u=a;if(n&&r)for(const c in a){u[c]=a[c];const d=a[c];if(d.indexOf("${taskNodeId:")>=0){const f=d.substring(d.indexOf(":")+1,d.indexOf("##")),h=d.substring(d.indexOf("##")+2,d.lastIndexOf("}")),p=n[f];p&&p[r]&&p[r]!==""?u[c]=p[r]:u[c]=h}}i=getI18n().t("workflowHistoryList."+s,u)}}else i=getI18n().t("workflowHistoryList."+o.toLowerCase());return i}function isCommonButtonOperation(e){return e==="HISTORY_SUBMIT"||e==="HISTORY_AGREE"||e==="HISTORY_DISAGREE"||e==="HISTORY_AGREEMENT"||e==="HISTORY_OPPOSE"||e==="HISTORY_KIKEN"||e==="HISTORY_SIGNOFF"||e==="HISTORY_SEND"||e==="HISTORY_DISTRIBUTE"||e==="HISTORY_READED"}const apis$1={refresh(){this.getData()}},_sfc_main$m={name:"WorkflowHistoryList",props:{workflowId:{type:Number,default:null},historyList:{type:Array,default:null},allProcessI18n:{type:Object,default:null},maxHeight:{type:[String,Number],default:null}},data(){let e=null;return this.historyList&&this.historyList.length>0&&(e=[].concat(this.historyList)),{loaded:!1,histories:e,processI18n:null,processNameI18n:null,tableMaxHeight:null}},computed:{},provide(){return{}},created(){this.getI18nSet().then(e=>{this.processI18n=e,!this.histories||this.histories===null?this.getData():this.loaded=!0})},mounted(){},methods:{...apis$1,getData(){this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/wf-editor/instance-histories/"+this.workflowId).then(e=>{this.histories=e.histories,e&&e.currentTasks&&(this.histories=this.histories.concat(e.currentTasks)),this.loaded=!0,this.maxHeight?this.tableMaxHeight=Number(this.maxHeight):this.$parent.$el.offsetHeight&&(this.tableMaxHeight=this.$parent.$el.offsetHeight)}).catch(e=>{console.log(e),this.loaded=!0})},getI18nSet(){return new Promise((e,t)=>{this.allProcessI18n?e(this.allProcessI18n):this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/wf-editor/i18n-settings/get-bundle-info?workflowId="+this.workflowId).then(n=>{e(n)}).catch(n=>{t(n)})})},i18nOperation(e){let t,n;const r=getLanguageWithLocale(),i=e.bundleCode;return i&&i!==""&&this.processI18n&&(t=this.processI18n[i]),t&&t.processName&&(n=t.processName[r]),i18nOperation(e,n,t,r)},i18nTaskName(e){let t;const n=e.bundleCode;n&&n!==""&&this.processI18n&&(t=this.processI18n[n]);let r=null;const i=e.i18nKey;if(i&&t&&t[i]){const o=getLanguageWithLocale();r=t[i][o]}return(!r||r===null)&&(r=e.taskName),r},getChildren(e,t,n){n(e.children)}}},_hoisted_1$e={key:0},_hoisted_2$b={key:1},_hoisted_3$7={key:2,style:{color:"#e6a23c"}},_hoisted_4$4={key:3},_hoisted_5$4={key:4,style:{color:"red"}},_hoisted_6$3={key:0},_hoisted_7$3={key:1},_hoisted_8$1={key:0},_hoisted_9$1={key:1},_hoisted_10$1={key:0},_hoisted_11$1={key:1},_hoisted_12$1={key:0},_hoisted_13$1={key:1},_hoisted_14={key:0},_hoisted_15={key:1,style:{color:"#e6a23c"}},_hoisted_16={key:2},_hoisted_17={key:0},_hoisted_18={key:1};function _sfc_render$m(e,t,n,r,i,o){const a=Vue.resolveComponent("el-table-column"),s=Vue.resolveComponent("el-table");return i.loaded?(Vue.openBlock(),Vue.createBlock(s,{key:0,data:i.histories,"element-loading-text":"Loading",border:"",fit:"","highlight-current-row":"","row-key":"uuid","tree-props":{children:"children",hasChildren:"hasChildren"},lazy:"",load:o.getChildren,"max-height":i.tableMaxHeight},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:e.$t("workflowHistoryList.index"),align:"left",width:"80px"},{default:Vue.withCtx(l=>[Vue.createTextVNode(Vue.toDisplayString(l.$index+1),1)]),_:1},8,["label"]),Vue.createVNode(a,{label:e.$t("workflowHistoryList.taskName"),align:"left",width:"250"},{default:Vue.withCtx(l=>[l.row.historyType&&l.row.historyType==="PROCESS_START"?(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_1$e,Vue.toDisplayString(e.$t("workflowHistoryList.processStart")),1)):l.row.historyType&&l.row.historyType==="PROCESS_END"?(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_2$b,Vue.toDisplayString(e.$t("workflowHistoryList.processEnd")),1)):l.row.current?(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_3$7,Vue.toDisplayString(o.i18nTaskName(l.row)),1)):l.row.special?l.row.special===!0?(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_5$4,Vue.toDisplayString(o.i18nTaskName(l.row)+"["+e.$t("workflowHistoryList.specailText")+"]"),1)):Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_4$4,Vue.toDisplayString(o.i18nTaskName(l.row)),1))]),_:1},8,["label"]),Vue.createVNode(a,{label:e.$t("workflowHistoryList.operator"),align:"left",width:"250"},{default:Vue.withCtx(l=>[l.row.historyType&&l.row.historyType==="PROCESS_END"?(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_6$3)):(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_7$3,Vue.toDisplayString(l.row.creatorName),1))]),_:1},8,["label"]),Vue.createVNode(a,{label:e.$t("workflowHistoryList.operatorLg"),align:"left",width:"250"},{default:Vue.withCtx(l=>[l.row.historyType&&l.row.historyType==="PROCESS_END"?(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_8$1)):(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_9$1,Vue.toDisplayString(l.row.creator),1))]),_:1},8,["label"]),Vue.createVNode(a,{label:e.$t("workflowHistoryList.operatorDept"),align:"left",width:"150"},{default:Vue.withCtx(l=>[l.row.historyType&&l.row.historyType==="PROCESS_END"?(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_10$1)):(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_11$1,Vue.toDisplayString(l.row.departmentName),1))]),_:1},8,["label"]),Vue.createVNode(a,{label:e.$t("workflowHistoryList.operationTime"),align:"left",width:"200"},{default:Vue.withCtx(l=>[l.row.historyType&&l.row.historyType==="PROCESS_END"?(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_12$1)):(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_13$1,Vue.toDisplayString(l.row.formatCreatedTime),1))]),_:1},8,["label"]),Vue.createVNode(a,{label:e.$t("workflowHistoryList.operation"),align:"left",width:"400"},{default:Vue.withCtx(l=>[l.row.historyType&&l.row.historyType==="PROCESS_END"?(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_14)):l.row.current?(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_15,Vue.toDisplayString(l.row.transactionResult)+" "+Vue.toDisplayString(e.$t("workflowHistoryList.toDoText")),1)):(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_16,Vue.toDisplayString(o.i18nOperation(l.row)),1))]),_:1},8,["label"]),Vue.createVNode(a,{label:e.$t("workflowHistoryList.opinion"),align:"left",width:"400"},{default:Vue.withCtx(l=>[l.row.historyType&&l.row.historyType==="PROCESS_END"?(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_17)):(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_18,Vue.toDisplayString(l.row.opinion),1))]),_:1},8,["label"])]),_:1},8,["data","load","max-height"])):Vue.createCommentVNode("",!0)}const WorkflowHistoryList=_export_sfc(_sfc_main$m,[["render",_sfc_render$m]]);WorkflowHistoryList.install=function(e){e.component(WorkflowHistoryList.name,WorkflowHistoryList)};function enableButton(e){e.disabled=!1,e.classList.remove("is-disabled")}const PreventReclick={inserted:function(e,t){e.addEventListener("click",()=>{e.disabled=!0,e.classList.add("is-disabled"),t.value().then(n=>{enableButton(e)}).catch(n=>{enableButton(e),console.log("Error",n.message)})})}},validCode_vue_vue_type_style_index_0_scoped_25e5caa2_lang="",_sfc_main$l={name:"ValidCode",model:{prop:"value",event:"input"},props:{width:{type:String,default:"100px"},height:{type:String,default:"40px"},length:{type:Number,default:4},refresh:{type:Number,default:null}},data(){return{codeList:[]}},watch:{refresh(){this.createdCode()}},mounted(){this.createdCode()},methods:{refreshCode(){this.createdCode()},createdCode(){const e=this.length,t=[],n="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz0123456789",r=n.length;for(let i=0;i<e;i++){const o=[Math.round(Math.random()*220),Math.round(Math.random()*240),Math.round(Math.random()*200)];t.push({code:n.charAt(Math.floor(Math.random()*r)),color:`rgb(${o})`,fontSize:`${10+(+[Math.floor(Math.random()*10)]+6)}px`,padding:`${[Math.floor(Math.random()*10)]}px`,transform:`rotate(${Math.floor(Math.random()*90)-Math.floor(Math.random()*90)}deg)`})}this.codeList=t,$emit(this,"update:value",t.map(i=>i.code).join(""))},getStyle(e){return`color: ${e.color}; font-size: ${e.fontSize}; padding: ${e.padding}; transform: ${e.transform}`}},emits:["update:value"]};function _sfc_render$l(e,t,n,r,i,o){return Vue.openBlock(),Vue.createElementBlock("div",{class:"ValidCode disabled-select",style:Vue.normalizeStyle(`width:${n.width}; height:${n.height}`),onClick:t[0]||(t[0]=(...a)=>o.refreshCode&&o.refreshCode(...a))},[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(i.codeList,(a,s)=>(Vue.openBlock(),Vue.createElementBlock("span",{key:s,style:Vue.normalizeStyle(o.getStyle(a))},Vue.toDisplayString(a.code),5))),128))],4)}const ValidCode=_export_sfc(_sfc_main$l,[["render",_sfc_render$l],["__scopeId","data-v-25e5caa2"]]);ValidCode.install=function(e){e.component(ValidCode.name,ValidCode)};const store=new Map,removeUserService$2={getSelectUsers(e,t,n){return new Promise((r,i)=>{e?t?this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/select-users?searchField="+e+"&selectUserInfo="+t+"&separator="+n).then(o=>{r(o)}).catch(o=>{i(o)}):r([]):r([])})}},_sfc_main$k={data(){return{users:[],originalUsers:[],containBranch:!1,tenantNodeId:-1,ElIconDelete:delete_default}},name:"RemoveUser",components:{},props:{selectUserInfo:{type:[String,Number],default:null},searchField:{type:String,default:"loginName"},width:{type:String,default:"30%"},height:{type:String,default:"300px"},separator:{type:String,default:","}},created(){this.selectUserInfo&&(this.selectUserInfo==="所有用户"?this.users.push(this.packageAllUser()):this.selectUserInfo==="所有工作组人员"?this.users.push(this.packageAllWgUser()):this.getSelectUsers(this.searchField,this.selectUserInfo,this.separator).then(e=>{this.originalUsers=e,this.users=e}))},methods:{...removeUserService$2,confirmSelectUser(){const e=[],t={userIds:[],loginNames:[],emails:[],telephones:[],users:[],userNames:[]};for(var n=0;n<this.users.length;n++){var r=this.users[n];t.userIds.push(r.id),t.loginNames.push(r.loginName),r.email&&r.email!==""&&t.emails.push(r.email),r.telephone&&r.telephone!==""&&t.telephones.push(r.telephone),t.users.push(r);var i=r.name;this.containBranch&&r.subCompanyName&&(i=i+"("+r.subCompanyName+")"),t.userNames.push(i),e.push(r[this.searchField])}const o=this.getRemoveItems(this.originalUsers,e,this.searchField);$emit(this,"close",t,o)},packageAllUser(){var e={id:this.tenantNodeId,name:"所有用户"};return e},packageAllWgUser(){var e={id:this.tenantNodeId,name:"所有工作组人员"};return e},removeUser(e){this.users.splice(e,1)},removeAllUser(){this.users=[]},getRemoveItems(e,t,n){return t===void 0||t.length===0?e:e?e.filter(r=>t.indexOf(r[n])===-1):[]}},emits:["open","opend","close","closed","opend","close","closed"]},_hoisted_1$d={style:{"margin-bottom":"10px"}},_hoisted_2$a={class:"dialog-footer"};function _sfc_render$k(e,t,n,r,i,o){const a=Vue.resolveComponent("el-button"),s=Vue.resolveComponent("el-table-column"),l=Vue.resolveComponent("el-table"),u=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(u,{class:"user-tree","model-value":"",title:e.$t("departmentUserTreeInline.removeUser"),"append-to-body":"","close-on-click-modal":!1,width:n.width,onOpen:t[2]||(t[2]=c=>e.$emit("open")),onOpend:t[3]||(t[3]=c=>e.$emit("opend")),onClose:t[4]||(t[4]=c=>e.$emit("close")),onClosed:t[5]||(t[5]=c=>e.$emit("closed"))},{footer:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_2$a,[Vue.createVNode(a,{size:"small",onClick:t[1]||(t[1]=c=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIPublicModel.cancel")),1)]),_:1}),Vue.createVNode(a,{size:"small",type:"primary",onClick:o.confirmSelectUser},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIPublicModel.sure")),1)]),_:1},8,["onClick"])])]),default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_1$d,[Vue.createVNode(a,{type:"danger",size:"mini",icon:i.ElIconDelete,onClick:t[0]||(t[0]=c=>o.removeAllUser())},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIPublicModel.clear")),1)]),_:1},8,["icon"])]),Vue.createVNode(l,{ref:"removeUserGrid",data:i.users,"row-key":"id",border:"",height:n.height},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("departmentUserTreeInline.name"),prop:"name"},null,8,["label"]),Vue.createVNode(s,{label:e.$t("departmentUserTreeInline.department"),prop:"mainDepartmentName"},null,8,["label"]),i.containBranch?(Vue.openBlock(),Vue.createBlock(s,{key:0,label:e.$t("departmentUserTreeInline.branch"),prop:"subCompanyName"},null,8,["label"])):Vue.createCommentVNode("",!0),Vue.createVNode(s,{label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},{default:Vue.withCtx(c=>[Vue.createElementVNode("div",null,[Vue.createVNode(a,{type:"danger",size:"mini",icon:i.ElIconDelete,circle:"",onClick:d=>o.removeUser(c.$index)},null,8,["icon","onClick"])])]),_:1},8,["label"])]),_:1},8,["data","height"])]),_:1},8,["title","width"])])}const RemoveUser=_export_sfc(_sfc_main$k,[["render",_sfc_render$k]]);RemoveUser.install=function(e){e.component(RemoveUser.name,RemoveUser)};const removeUserService$1={getSelectDepts(e,t,n){return new Promise((r,i)=>{e?t?this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/select-departments?searchField="+e+"&selectDeptInfo="+t+"&separator="+n).then(o=>{r(o)}).catch(o=>{i(o)}):r([]):r([])})}},_sfc_main$j={data(){return{departments:[],originalDepts:[],containBranch:!1,tenantNodeId:-1,ElIconDelete:delete_default}},name:"RemoveDepartment",components:{},props:{selectDepartmentInfo:{type:[String,Number],default:null},searchField:{type:String,default:"id"},width:{type:String,default:"30%"},height:{type:String,default:"300px"},separator:{type:String,default:","}},created(){this.selectDepartmentInfo&&(this.selectDepartmentInfo===this.tenantNodeId||this.selectDepartmentInfo==="所有部门"?this.departments.push(this.packageAllDept()):this.getSelectDepts(this.searchField,this.selectDepartmentInfo,this.separator).then(e=>{this.originalDepts=e,this.departments=e}))},methods:{...removeUserService$1,confirmSelectDept(){const e=[];for(var t={ids:[],names:[],codes:[],departments:[]},n=0;n<this.departments.length;n++){var r=this.departments[n];t.ids.push(r.id),t.codes.push(r.code),t.departments.push(r);var i=r.name;this.containBranch&&r.branchName&&(i=i+"("+r.branchName+")"),t.names.push(i),e.push(r[this.searchField])}const o=this.getRemoveItems(this.originalDepts,e,this.searchField);$emit(this,"close",t,o)},packageAllDept(){var e={id:this.tenantNodeId,name:"所有部门"};return e},removeDept(e){this.departments.splice(e,1)},removeAllDept(){this.departments=[]},getRemoveItems(e,t,n){return t===void 0||t.length===0?e:e?e.filter(r=>t.indexOf(r[n])===-1):[]}},emits:["open","opend","close","closed","opend","close","closed"]},_hoisted_1$c={style:{"margin-bottom":"10px"}},_hoisted_2$9={class:"dialog-footer"};function _sfc_render$j(e,t,n,r,i,o){const a=Vue.resolveComponent("el-button"),s=Vue.resolveComponent("el-table-column"),l=Vue.resolveComponent("el-table"),u=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(u,{class:"user-tree","model-value":"",title:e.$t("departmentTreeInline.removeDepartment"),"append-to-body":"","close-on-click-modal":!1,width:n.width,onOpen:t[2]||(t[2]=c=>e.$emit("open")),onOpend:t[3]||(t[3]=c=>e.$emit("opend")),onClose:t[4]||(t[4]=c=>e.$emit("close")),onClosed:t[5]||(t[5]=c=>e.$emit("closed"))},{footer:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_2$9,[Vue.createVNode(a,{size:"small",onClick:t[1]||(t[1]=c=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIPublicModel.cancel")),1)]),_:1}),Vue.createVNode(a,{size:"small",type:"primary",onClick:o.confirmSelectDept},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIPublicModel.sure")),1)]),_:1},8,["onClick"])])]),default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_1$c,[Vue.createVNode(a,{type:"danger",size:"mini",icon:i.ElIconDelete,onClick:t[0]||(t[0]=c=>o.removeAllDept())},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIPublicModel.clear")),1)]),_:1},8,["icon"])]),Vue.createVNode(l,{ref:"removeDeptGrid",data:i.departments,"row-key":"id",border:"",height:n.height},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("departmentTreeInline.name"),prop:"name"},null,8,["label"]),Vue.createVNode(s,{label:e.$t("departmentTreeInline.code"),prop:"code"},null,8,["label"]),Vue.createVNode(s,{label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},{default:Vue.withCtx(c=>[Vue.createElementVNode("div",null,[Vue.createVNode(a,{type:"danger",size:"mini",icon:i.ElIconDelete,circle:"",onClick:d=>o.removeDept(c.$index)},null,8,["icon","onClick"])])]),_:1},8,["label"])]),_:1},8,["data","height"])]),_:1},8,["title","width"])])}const RemoveDepartment=_export_sfc(_sfc_main$j,[["render",_sfc_render$j]]);RemoveDepartment.install=function(e){e.component(RemoveDepartment.name,RemoveDepartment)};const removeUserService={getSelectWgs(e,t,n){return new Promise((r,i)=>{e?t?this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/select-workgroups?searchField="+e+"&selectWorkgroupInfo="+t+"&separator="+n).then(o=>{r(o)}).catch(o=>{i(o)}):r([]):r([])})}},_sfc_main$i={data(){return{workgroups:[],originalWgs:[],tenantNodeId:-1,ElIconDelete:delete_default}},name:"RemoveWorkgroup",components:{},props:{selectWorkgroupInfo:{type:[String,Number],default:null},searchField:{type:String,default:"id"},width:{type:String,default:"30%"},height:{type:String,default:"300px"},separator:{type:String,default:","}},created(){this.selectWorkgroupInfo&&this.getSelectWgs(this.searchField,this.selectWorkgroupInfo,this.separator).then(e=>{this.originalWgs=e,this.workgroups=e})},methods:{...removeUserService,confirmSelectWg(){const e=[];for(var t={ids:[],names:[],codes:[],workgroups:[]},n=0;n<this.workgroups.length;n++){var r=this.workgroups[n];t.ids.push(r.id),t.codes.push(r.code),t.workgroups.push(r),t.names.push(r.name),e.push(r[this.searchField])}const i=this.getRemoveItems(this.originalWgs,e,this.searchField);$emit(this,"close",t,i)},packageAllWg(){var e={id:this.tenantNodeId,name:"所有工作组"};return e},removeWg(e){this.workgroups.splice(e,1)},removeAllWg(){this.workgroups=[]},getRemoveItems(e,t,n){return t===void 0||t.length===0?e:e?e.filter(r=>t.indexOf(r[n])===-1):[]}},emits:["open","opend","close","closed","opend","close","closed"]},_hoisted_1$b={style:{"margin-bottom":"10px"}},_hoisted_2$8={class:"dialog-footer"};function _sfc_render$i(e,t,n,r,i,o){const a=Vue.resolveComponent("el-button"),s=Vue.resolveComponent("el-table-column"),l=Vue.resolveComponent("el-table"),u=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(u,{class:"user-tree","model-value":"",title:e.$t("workgroupTree.removeWorkgroup"),"append-to-body":"","close-on-click-modal":!1,width:n.width,onOpen:t[2]||(t[2]=c=>e.$emit("open")),onOpend:t[3]||(t[3]=c=>e.$emit("opend")),onClose:t[4]||(t[4]=c=>e.$emit("close")),onClosed:t[5]||(t[5]=c=>e.$emit("closed"))},{footer:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_2$8,[Vue.createVNode(a,{size:"small",onClick:t[1]||(t[1]=c=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIPublicModel.cancel")),1)]),_:1}),Vue.createVNode(a,{size:"small",type:"primary",onClick:o.confirmSelectWg},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIPublicModel.sure")),1)]),_:1},8,["onClick"])])]),default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_1$b,[Vue.createVNode(a,{type:"danger",size:"mini",icon:i.ElIconDelete,onClick:t[0]||(t[0]=c=>o.removeAllWg())},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIPublicModel.clear")),1)]),_:1},8,["icon"])]),Vue.createVNode(l,{ref:"removeWgGrid",data:i.workgroups,"row-key":"id",border:"",height:n.height},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:e.$t("workgroupTree.name"),prop:"name"},null,8,["label"]),Vue.createVNode(s,{label:e.$t("workgroupTree.code"),prop:"code"},null,8,["label"]),Vue.createVNode(s,{label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},{default:Vue.withCtx(c=>[Vue.createElementVNode("div",null,[Vue.createVNode(a,{type:"danger",size:"mini",icon:i.ElIconDelete,circle:"",onClick:d=>o.removeWg(c.$index)},null,8,["icon","onClick"])])]),_:1},8,["label"])]),_:1},8,["data","height"])]),_:1},8,["title","width"])])}const RemoveWorkgroup=_export_sfc(_sfc_main$i,[["render",_sfc_render$i]]);RemoveWorkgroup.install=function(e){e.component(RemoveWorkgroup.name,RemoveWorkgroup)};const _sfc_main$h={components:{ElIconSearch:search_default,ElIconDelete:delete_default},name:"OrganizationInput",model:{prop:"value",event:"input"},props:{value:{type:String,default:""},multiple:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},treeType:{type:String,default:"DeptUserTree"},disabled:{type:Boolean,default:!1},fields:{type:Array,default:null},models:{type:Object,default:null},size:{type:String,default:""},tableName:{type:String,default:null},isJoinTable:{type:Boolean,default:!1},departmentInfo:{type:Array,default:null},separator:{type:String,default:","}},data(){return{showOrganizationTreeFlag:!1,isAppendResult:!1,showRemoveComponent:!1,selectOrganizationInfo:null,searchField:null,selectOrganizationAllInfo:{}}},created(){},methods:{showOrganizationTree(){let e=this.multiple;typeof e>"u"&&(e=!1),e===!0&&this.getSelectInfo(),$emit(this,"focus"),this.showOrganizationTreeFlag=!0},getPropName(e,t,n){return getPropNameWhenJoinTable(e,t,n)},emptyOrganizationResult(){const e=this.fields;e&&e.length>0&&(e.forEach(t=>{const n=this.getPropName(t.model);this.setValue(n,null)}),this.selectOrganizationAllInfo={},this.selectOrganizationInfo=null,this.searchField=null)},closeOrganizationTree(e){e&&this.setOrganizationData(e),this.showOrganizationTreeFlag=!1},setOrganizationData(e,t,n){let r=this.multiple;typeof r>"u"&&(r=!1);const i=this.treeType,o=this.fields;o&&o.length>0&&o.forEach(a=>{const s=a.type,l=this.getOrgSelectData(s,e,this.isUserTree(i),r),u=this.getPropName(a.model);this.getOrgDataModel(u,l,r,s,t,n)})},getOrgDataModel(e,t,n,r,i,o){if(n){const a=this.getModelValue(e);this.selectOrganizationAllInfo[r]=t,this.setValue(e,t),$emit(this,"replace",e,a,t)}else this.setValue(e,t)},getModelValue(e){let t="";return this.isJoinTable===!1&&e&&e.indexOf(".")>0?t=this.getParentObject(e,this.models)[e.substring(e.lastIndexOf(".")+1)]:(e=this.getPropName(e),t=this.models[e]),t},isUserTree(e){return e==="DeptUserTree"||e==="WgUserTree"},getOrgSelectData(e,t,n,r){if(r===!0){if(e==="id")return n?t.userIds.join(this.separator):t.ids.join(this.separator);if(e==="name")return n?t.userNames.join(this.separator):t.names.join(this.separator);if(e==="code"){if(!n)return t.codes.join(this.separator)}else{if(e==="loginName")return t.loginNames.join(this.separator);if(e==="email")return t.emails.join(this.separator);if(e==="telephone")return t.telephones.join(this.separator);if(e==="mainDeptName"){const i=[];if(n){const o=t.users;o&&o.forEach(a=>{i.push(a.mainDepartmentName)})}return i.join(this.separator)}else if(e==="mainDeptId"){const i=[];if(n){const o=t.users;o&&o.forEach(a=>{a.mainDepartmentId&&i.push(a.mainDepartmentId)})}return i.join(this.separator)}else if(e==="mainDeptCode"){const i=[];if(n){const o=t.users;o&&o.forEach(a=>{a.mainDepartmentCode&&i.push(a.mainDepartmentCode)})}return i.join(this.separator)}else if(e==="subCompanyName"){const i=[];if(n){const o=t.users;o&&o.forEach(a=>{a.subCompanyName&&i.push(a.subCompanyName)})}return i.join(this.separator)}else if(e==="subCompanyId"){const i=[];if(n){const o=t.users;o&&o.forEach(a=>{a.subCompanyId&&i.push(a.subCompanyId)})}return i.join(this.separator)}}}else if(e==="mainDeptName"){let i=null;if(n){const o=t.user;o&&(i=o.mainDepartmentName)}return i}else if(e==="mainDeptId"){let i=null;if(n){const o=t.user;o&&(i=o.mainDepartmentId)}return i}else if(e==="mainDeptCode"){let i=null;if(n){const o=t.user;o&&(i=o.mainDepartmentCode)}return i}else if(e==="subCompanyName"){let i=null;if(n){const o=t.user;o&&(i=o.subCompanyName)}return i}else if(e==="subCompanyId"){let i=null;if(n){const o=t.user;o&&(i=o.subCompanyId)}return i}else return t[e]},showMyRemoveComponent(){this.getSelectInfo(),!this.selectOrganizationInfo||this.selectOrganizationInfo===null||this.selectOrganizationInfo===""?this.$message({showClose:!0,type:"warning",message:this.$t("imatrixUIMessage.organizationTreeNoResultNotRemove")}):this.showRemoveComponent=!0},getSelectInfo(){const e=["id","code","loginName","email","telephone","name"];if(Object.keys(this.selectOrganizationAllInfo).length===0)for(let n=0;n<e.length;n++){const r=e[n],i=this.fields.filter(o=>o.type===r);if(i&&i.length>0){const o=i[0];if(o){const a=this.getPropName(o.model),s=this.getModelValue(a);if(s&&s!==null&&s!==""){this.selectOrganizationInfo=s,this.searchField=r;break}}}}else for(let n=0;n<e.length;n++){const r=e[n],i=this.selectOrganizationAllInfo[r];if(i&&i!==null&&i!==""){this.selectOrganizationInfo=i,this.searchField=r;break}}},setValue(e,t){if(this.models){if(this.isJoinTable===!1&&e&&e.indexOf(".")>0){const n=this.getParentObject(e,this.models);n&&setEntityFieldValue(n,e.substring(e.lastIndexOf(".")+1),t)}else e=this.getPropName(e),setEntityFieldValue(this.models,e,t);console.log("this.value",this.models),$emit(this,"setValue",e,t),(t==null||t==="")&&$emit(this,"clear",e)}},getParentObject(e,t){const n=e.split(".");if(n.length===1)return t;{let r;for(let i=0;i<n.length-1;i++)i===0?r=this.getParentModelProp(n[i],t):r=this.getParentModelProp(n[i],r);return r}},getParentModelProp(e,t){return t||(t={}),t[e]||(t[e]={}),t[e]}},emits:["replace","setValue","clear","focus","update:value"]},_hoisted_1$a={style:{width:"100%"}};function _sfc_render$h(e,t,n,r,i,o){const a=Vue.resolveComponent("el-icon-search"),s=Vue.resolveComponent("el-icon"),l=Vue.resolveComponent("el-icon-delete"),u=Vue.resolveComponent("el-input"),c=Vue.resolveComponent("department-user-tree"),d=Vue.resolveComponent("department-tree"),f=Vue.resolveComponent("workgroup-tree"),h=Vue.resolveComponent("workgroup-user-tree");return Vue.openBlock(),Vue.createElementBlock("span",_hoisted_1$a,[n.disabled?(Vue.openBlock(),Vue.createBlock(u,{key:0,"model-value":n.value,type:"text",size:n.size,readonly:!0,disabled:!0},{append:Vue.withCtx(()=>[Vue.createVNode(s,{class:"el-input__icon"},{suffix:Vue.withCtx(()=>[Vue.createVNode(a)]),_:1}),Vue.createVNode(s,{class:"el-input__icon"},{suffix:Vue.withCtx(()=>[Vue.createVNode(l)]),_:1})]),_:1},8,["model-value","size"])):(Vue.openBlock(),Vue.createBlock(u,{key:1,"model-value":n.value,type:"text",size:n.size,readonly:!0,onFocus:t[2]||(t[2]=p=>o.showOrganizationTree(!1))},{append:Vue.withCtx(()=>[Vue.createVNode(s,{class:"el-input__icon",onClick:t[0]||(t[0]=p=>o.showOrganizationTree(!1))},{default:Vue.withCtx(()=>[Vue.createVNode(a)]),_:1}),Vue.createVNode(s,{class:"el-input__icon",onClick:t[1]||(t[1]=p=>o.emptyOrganizationResult())},{default:Vue.withCtx(()=>[Vue.createVNode(l)]),_:1})]),_:1},8,["model-value","size"])),n.treeType&&n.treeType==="DeptUserTree"&&i.showOrganizationTreeFlag?(Vue.openBlock(),Vue.createBlock(c,{key:2,multiple:typeof n.multiple>"u"?!1:n.multiple,"department-info":n.departmentInfo,"select-user-info":i.selectOrganizationInfo,"search-field":i.searchField,separator:n.separator,onClose:o.closeOrganizationTree},null,8,["multiple","department-info","select-user-info","search-field","separator","onClose"])):Vue.createCommentVNode("",!0),n.treeType&&n.treeType==="DeptTree"&&i.showOrganizationTreeFlag?(Vue.openBlock(),Vue.createBlock(d,{key:3,width:"30%","check-strictly":typeof n.checkStrictly>"u"?!1:n.checkStrictly,multiple:typeof n.multiple>"u"?!1:n.multiple,"select-department-info":i.selectOrganizationInfo,"search-field":i.searchField,separator:n.separator,onClose:o.closeOrganizationTree},null,8,["check-strictly","multiple","select-department-info","search-field","separator","onClose"])):Vue.createCommentVNode("",!0),n.treeType&&n.treeType==="WgTree"&&i.showOrganizationTreeFlag?(Vue.openBlock(),Vue.createBlock(f,{key:4,width:"30%",multiple:typeof n.multiple>"u"?!1:n.multiple,"select-workgroup-info":i.selectOrganizationInfo,"search-field":i.searchField,separator:n.separator,onClose:o.closeOrganizationTree},null,8,["multiple","select-workgroup-info","search-field","separator","onClose"])):Vue.createCommentVNode("",!0),n.treeType&&n.treeType==="WgUserTree"&&i.showOrganizationTreeFlag?(Vue.openBlock(),Vue.createBlock(h,{key:5,width:"30%",multiple:typeof n.multiple>"u"?!1:n.multiple,"branch-info":n.departmentInfo,"select-user-info":i.selectOrganizationInfo,"search-field":i.searchField,separator:n.separator,onClose:o.closeOrganizationTree},null,8,["multiple","branch-info","select-user-info","search-field","separator","onClose"])):Vue.createCommentVNode("",!0)])}const OrganizationInput=_export_sfc(_sfc_main$h,[["render",_sfc_render$h]]);OrganizationInput.install=function(e){e.component(OrganizationInput.name,OrganizationInput)};const formatter={number:function(e,t){const n=t.precision,r=t.delimiter,i=t.scientific;let o=t.scientificNum;if(e!=null&&(n>0&&(e=parseFloat(e),e=e.toFixed(n)),r&&(e=e.replace(/\d{1,3}(?=(\d{3})+(\.\d*)?$)/g,"$&,")),i!=null)){let a=!1;o?o=parseInt(o):o=11,e.length>=o&&(a=!0),a&&(e=""+e,e=parseFloat(e),e=e.toExponential())}return e},currency:function(e,t){return t.sign+this.number(e,t)},date:function(e,t){const n=t.format;if(e!=null){const u=new Date(e);var r=u.getFullYear(),i=u.getMonth()+1,o=u.getDate(),a=u.getHours(),s=u.getMinutes(),l=u.getSeconds();return i<10&&(i="0"+i),o<10&&(o="0"+o),a<10&&(a="0"+a),s<10&&(s="0"+s),l<10&&(l="0"+l),n.replace("yyyy",r).replace("m",i).replace("d",o).replace("hh",a).replace("mm",s).replace("ss",l)}return e},time:function(e,t){return this.date(e,t)},percent:function(e,t){return this.number(e,t)+"%"}};function doFormat(e,t){if(t===void 0||e===void 0)return t;if(e.valueSet!==void 0){const r=e.valueSet.filter(i=>i.value===t+"");r.length>0&&(t=r[0].label)}e.formatter===void 0&&(e.dataType==="DATE"?e.formatter={type:"date",options:{format:"yyyy-m-d"}}:e.dataType==="TIME"&&(e.formatter={type:"time",options:{format:"yyyy-m-d hh:mm:ss"}}));const n=e.formatter;return n!==void 0&&formatter[n.type]!==void 0?formatter[n.type](t,n.options):t}const customFormatter={isObjectProp(e){return e.indexOf(".")>0},objectPropOriginalValue(e,t){try{let n=e;return t.split(".").forEach(i=>{if(n)n=n[i];else throw n="",n}),n}catch{return""}},objectPropValue(e,t,n){return doFormat(t,this.objectPropOriginalValue(e,n))},getColumnValue(e,t){const n=t.prop;let r=e[n];this.isObjectProp(n)&&(r=this.objectPropOriginalValue(e,n));const i=doFormat(t,r);return{originalValue:r,formatValue:i}},onClickFun(e,t,n,r){const i=this.getColumnValue(e,t);n.call(this,i.originalValue,i.formatValue,e,t,r)},isShowButtonFun(e,t){const n=t.isShow;if(n===void 0)return!0;if(typeof n=="function"){let r=n.call(this,e,t);return r===void 0&&(r=!0),r}else return n}},searchMethods={packageSearchParam(){const e=[];return this.searchableColumns.forEach(t=>{const n={leftBracket:"",rightBracket:"",joinSign:"and"};let r=t.orgProp;const i="__";if(r.indexOf(i)>0&&(r=r.replace(i,".")),n.columnProp=t.prop,n.propName=r,n.enumName=t.enumName,n.operator=this.getOperator(t),n.dataType=t.dataType,t.dataType==="DATE"||t.dataType==="TIME"){const o=this.getFormItemValue(t.prop);o!==null&&o.length===2&&o[0]!==null&&o[1]!==null&&(n.startValue=o[0],n.endValue=o[1],e.push(n))}else if(t.dataType==="INTEGER"||t.dataType==="LONG"){const o=this.getFormItemValue(t.prop);o&&(!Array.isArray(o)||o.length<2||o[0]===null&&o[1]===null?Array.isArray(o)?o.length<2?(n.propValue=o[0],e.push(n)):o[0]===null?(n.propValue=o[1],e.push(n)):o[1]===null&&(n.propValue=o[0],e.push(n)):(n.propValue=o,e.push(n)):(n.startValue=o[0],n.endValue=o[1],e.push(n)))}else if(t.componentType==="multiselect"){const o=this.getFormItemValue(t.prop);this.packageValueWithArray(o,e,n)}else{const o=this.getFormItemValue(t.prop);this.packageValueWithArray(o,e,n)}}),e},getOperator(e){return(e.dataType==="TEXT"||e.dataType==="CLOB")&&e.fuzzy?"CONTAIN":"EQ"},getFormItemValue(e){return e.indexOf(".")>0?this.getParentObject(e)[e.substring(e.lastIndexOf(".")+1)]:this.searchForm[e]},getParentObject(e){const t=e.split(".");if(t.length===1)return this.searchForm;{let n;for(let r=0;r<t.length-1;r++)n=this.searchForm[t[r]];return n}},packageValueWithArray(e,t,n){if(e&&Array.isArray(e)){const r=e;let i=0;r.forEach(o=>{const a=Object.assign({},n);a.joinSign="or",i===0&&(a.leftBracket="1"),i===r.length-1&&(a.rightBracket="1",a.joinSign="and"),a.propValue=o,a.operator="EQ",o&&t.push(a),i++})}else typeof e<"u"&&e!==""&&e!==null&&!Array.isArray(e)&&(n.propValue=e,t.push(n))}},_sfc_main$g={props:{r:{type:Number,default:null},n:{type:Number,default:null}},data(){return{number1:null,number2:null}},methods:{setValue(){$emit(this,"setValue",[this.number1,this.number2],this.r,this.n)}},emits:["setValue"]},_hoisted_1$9=Vue.createElementVNode("span",null,"---",-1);function _sfc_render$g(e,t,n,r,i,o){const a=Vue.resolveComponent("el-input-number");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(a,{modelValue:i.number1,"onUpdate:modelValue":t[0]||(t[0]=s=>i.number1=s),onChange:t[1]||(t[1]=s=>o.setValue())},null,8,["modelValue"]),_hoisted_1$9,Vue.createVNode(a,{modelValue:i.number2,"onUpdate:modelValue":t[2]||(t[2]=s=>i.number2=s),onChange:t[3]||(t[3]=s=>o.setValue())},null,8,["modelValue"])])}const searchFormNumber=_export_sfc(_sfc_main$g,[["render",_sfc_render$g]]);function isHasOptionFunction(e,t){t||(t=store.get("_nine_list_code")),t&&t.indexOf("~")<0&&(t=t+"~_nineGrid");const n=store.get(t);return!!(n.options&&typeof n.options[e]=="function")}function getGridParams(){const e={columns:[],gridData:[],orgGridData:[],showValidateError:!0,options:{}};return Vue__namespace.reactive(e)}function addDynamicProp(e,t,n){const r=t.split(".");if(r.length===1){n!==void 0?e[t]=n:e[t]=null;return}let i=e;for(let o=0;o<r.length-1;o++)i[r[o]]===void 0&&(i[r[o]]={}),i=i[r[o]];n!==void 0?i[r[r.length-1]]=n:i[r[r.length-1]]=null}function getTableHeight(e,t){if(e===!0){let n=0;return t&&(n=t.$el.offsetHeight),window.innerHeight-n-165}else return window.innerHeight-165}const searchForm_vue_vue_type_style_index_0_scoped_045cd274_lang="",_sfc_main$f={name:"SearchForm",components:{searchFormNumber},props:{columns:{type:Array,default:null},code:{type:String,default:null},url:{type:String,default:null},pagination:{type:Object,default:null},query:{type:Object,default:null},searchParam:{type:Object,default:null},initSearchProps:{type:Array,default:null},gridId:{type:String,default:"_nineGrid"}},data(){const e=this.code+"~"+this.gridId,t=new Set,n=store.get(e);let r={};this.searchParam!==null&&(r=JSON.parse(JSON.stringify(this.searchParam))),console.log("searchForm=",r);const i=this.getSearchableColumns();(this.initSearchProps===void 0||this.initSearchProps===null)&&(this.initSearchProps=[]),i.forEach(l=>{this.initSearchProps.indexOf(l.prop)<0&&(l.prop.indexOf(".")>0?addDynamicProp(r,l.prop):r[l.prop]=null)});const o=this.getSpanNum(e),a=this.getFieldNumPerRow(e),s=Math.ceil(i.length/a);return{searchForm:r,rules:{},searchParams:[],labelWidth:n.options.search&&n.options.search.labelWidth?n.options.search.labelWidth:"80px",customComponentNames:t,componentName:"",spanNum:o,fieldNum:a,rowNum:s,loading:!1,storeId:e}},computed:{searchableColumns(){return this.getSearchableColumns()}},methods:{...searchMethods,getColumnNumPerRow(e,t){let n=this.fieldNum;return this.fieldNum*e>t&&(n=t-this.fieldNum*(e-1)),n},getFieldNumPerRow(e){const t=store.get(e);return t.options.search&&t.options.search.fieldNum?t.options.search.fieldNum:4},getSpanNum(e){const t=this.getFieldNumPerRow(e);return t===1?14:t===2?10:t===3?8:t===4?6:4},setValueToModelProp(e,t){if(e.indexOf(".")>0){const n=this.getParentObject(e);n[e.substring(e.lastIndexOf(".")+1)]=t}else this.searchForm[e]=t},getSearchableColumns(e,t){this.customComponentNames||(this.customComponentNames=new Set),t||(t=[]),e||(e=this.columns);for(let n=0;n<e.length;n++){const r=e[n];if(!(r.prop==="$index"||r.prop==="$selection"||r.dynamic)){if(r.groupHeader)this.getSearchableColumns(r.children,t);else if(r.queryType==="normal"&&!r.custom&&r.prop!==""){if((typeof r.componentType>"u"||r.componentType==="")&&(r.componentType="input"),r.querySetting&&r.querySetting!==""){const i=JSON.parse(r.querySetting);i.width&&(r.searchControlWidth="width:"+i.width+"px"),i.labelWidth&&(r.searchLabelWidth=i.labelWidth+"px"),i.label&&(r.searchLabel=i.label)}r.componentType.indexOf("custom:")>=0?(r.componentName=r.componentType.substring(r.componentType.indexOf(":")+1),this.customComponentNames.add(r.componentName)):r.componentName="",t.push(r)}}}return t},customComponent(e){const t=store.get(this.storeId);if(e.componentName&&e.componentName!=="")return this.customComponentNames.add(e.componentName),!0;if((!e.componentName||e.componentName==="")&&t.options&&t.options.search&&t.options.search.customSearchElements){const n=t.options.search.customSearchElements[e.prop];if(n){e.componentName="custom-"+e.prop;const r=n.call(this,e);if(r)return this.customComponentNames.add(e.componentName),window.$vueApp.component(e.componentName,r),!0}}return!1},submitForm(e){this.$refs[e].validate(t=>{if(t)this.loading=!0,this.searchParams=this.packageSearchParam(),$emit(this,"search",this.searchParams,!0);else return!1})},resetForm(e){for(const t of this.customComponentNames)this.$refs[t][0].resetField();this.searchableColumns.forEach(t=>{t.prop.indexOf(".")>0?addDynamicProp(this.searchForm,t.prop):this.searchForm[t.prop]=null}),$emit(this,"reset")},setNumberValue(e,t,n){let r=this.getFormItemValue(this.searchableColumns[this.fieldNum*(t-1)+(n-1)].prop);r=e,this.setValueToModelProp(this.searchableColumns[this.fieldNum*(t-1)+(n-1)].prop,r)}},emits:["search","reset"]},_hoisted_1$8=["innerHTML"],_hoisted_2$7=["innerHTML"],_hoisted_3$6={key:10};function _sfc_render$f(e,t,n,r,i,o){const a=Vue.resolveComponent("el-date-picker"),s=Vue.resolveComponent("el-time-picker"),l=Vue.resolveComponent("el-option"),u=Vue.resolveComponent("el-select"),c=Vue.resolveComponent("search-form-number"),d=Vue.resolveComponent("el-switch"),f=Vue.resolveComponent("el-slider"),h=Vue.resolveComponent("el-rate"),p=Vue.resolveComponent("el-input"),g=Vue.resolveComponent("el-form-item"),C=Vue.resolveComponent("el-button"),v=Vue.resolveComponent("el-form");return o.searchableColumns.length>0?(Vue.openBlock(),Vue.createBlock(v,{key:0,ref:"searchForm",model:i.searchForm,rules:i.rules,"label-width":i.labelWidth,"label-position":n.query.queryLabelPosition,class:"grid-search-form",size:"mini"},{default:Vue.withCtx(()=>[Vue.createElementVNode("table",null,[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(i.rowNum,m=>(Vue.openBlock(),Vue.createElementBlock("tr",{key:m},[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(o.getColumnNumPerRow(m,o.searchableColumns.length),_=>(Vue.openBlock(),Vue.createElementBlock("td",{key:_},[Vue.createVNode(g,{prop:o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop,"label-width":o.searchableColumns[i.fieldNum*(m-1)+(_-1)].searchLabelWidth?o.searchableColumns[i.fieldNum*(m-1)+(_-1)].searchLabelWidth:"160px",style:{paddingLeft:"10px",minWidth:"200px"}},{label:Vue.withCtx(()=>[o.searchableColumns[i.fieldNum*(m-1)+(_-1)].searchLabel&&o.searchableColumns[i.fieldNum*(m-1)+(_-1)].searchLabel!==""?(Vue.openBlock(),Vue.createElementBlock("span",{key:0,innerHTML:o.searchableColumns[i.fieldNum*(m-1)+(_-1)].searchLabel.replace(/\\n/g,"</br>")},null,8,_hoisted_1$8)):(Vue.openBlock(),Vue.createElementBlock("span",{key:1,innerHTML:o.searchableColumns[i.fieldNum*(m-1)+(_-1)].label.replace(/\\n/g,"</br>")},null,8,_hoisted_2$7))]),default:Vue.withCtx(()=>[o.searchableColumns[i.fieldNum*(m-1)+(_-1)].dataType==="DATE"||o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentType==="date"?(Vue.openBlock(),Vue.createBlock(a,{key:0,"model-value":e.getFormItemValue(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop),type:"daterange",style:Vue.normalizeStyle(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].searchControlWidth),"range-separator":e.$t("imatrixUIPublicModel.to"),"unlink-panels":"","start-placeholder":e.$t("imatrixUIMessage.startDate"),"end-placeholder":e.$t("imatrixUIMessage.endDate"),"value-format":"yyyy-MM-dd",onInput:E=>o.setValueToModelProp(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop,E)},null,8,["model-value","style","range-separator","start-placeholder","end-placeholder","onInput"])):o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentType==="dateTimePicker"?(Vue.openBlock(),Vue.createBlock(a,{key:1,"model-value":e.getFormItemValue(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop),type:"datetimerange","range-separator":e.$t("imatrixUIPublicModel.to"),"unlink-panels":"",style:Vue.normalizeStyle(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].searchControlWidth),"start-placeholder":e.$t("imatrixUIMessage.startDate"),"end-placeholder":e.$t("imatrixUIMessage.endDate"),"value-format":"yyyy-MM-dd HH:mm:ss",onInput:E=>o.setValueToModelProp(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop,E)},null,8,["model-value","range-separator","style","start-placeholder","end-placeholder","onInput"])):o.searchableColumns[i.fieldNum*(m-1)+(_-1)].dataType==="TIME"&&o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentType==="timepicker"?(Vue.openBlock(),Vue.createBlock(a,{key:2,"model-value":e.getFormItemValue(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop),type:"datetimerange","range-separator":e.$t("imatrixUIPublicModel.to"),"unlink-panels":"",style:Vue.normalizeStyle(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].searchControlWidth),"start-placeholder":e.$t("imatrixUIMessage.startDate"),"end-placeholder":e.$t("imatrixUIMessage.endDate"),"value-format":"HH:mm:ss",onInput:E=>o.setValueToModelProp(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop,E)},null,8,["model-value","range-separator","style","start-placeholder","end-placeholder","onInput"])):o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentType==="timepicker"&&o.searchableColumns[i.fieldNum*(m-1)+(_-1)].dataType!=="TIME"&&o.searchableColumns[i.fieldNum*(m-1)+(_-1)].dataType!=="DATE"?(Vue.openBlock(),Vue.createBlock(s,{key:3,type:"fixed-time",placeholder:e.$t("imatrixUIMessage.selectTime"),style:{width:"100%"},"value-format":"HH:mm:ss","model-value":e.getFormItemValue(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop),onInput:E=>o.setValueToModelProp(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop,E)},null,8,["placeholder","model-value","onInput"])):o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentType&&o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentType==="select"||o.searchableColumns[i.fieldNum*(m-1)+(_-1)].dataType==="BOOLEAN"?(Vue.openBlock(),Vue.createBlock(u,{key:4,clearable:"",style:Vue.normalizeStyle(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].searchControlWidth),placeholder:e.$t("imatrixUIMessage.pleaseSelect"),"model-value":e.getFormItemValue(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop),onInput:E=>o.setValueToModelProp(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop,E)},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].valueSet,E=>(Vue.openBlock(),Vue.createBlock(l,{key:E.value,label:E.label,value:E.value},null,8,["label","value"]))),128))]),_:2},1032,["style","placeholder","model-value","onInput"])):o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentType&&o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentType==="multiselect"?(Vue.openBlock(),Vue.createBlock(u,{key:5,clearable:"",multiple:"",style:Vue.normalizeStyle(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].searchControlWidth),"collapse-tags":"",placeholder:e.$t("imatrixUIMessage.pleaseSelect"),"model-value":e.getFormItemValue(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop),onInput:E=>o.setValueToModelProp(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop,E)},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].valueSet,E=>(Vue.openBlock(),Vue.createBlock(l,{key:E.value,label:E.label,value:E.value},null,8,["label","value"]))),128))]),_:2},1032,["style","placeholder","model-value","onInput"])):o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentType&&o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentType==="inputNumber"?(Vue.openBlock(),Vue.createBlock(c,{key:6,r:m,n:_,onSetValue:o.setNumberValue},null,8,["r","n","onSetValue"])):o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentType&&o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentType==="switch"?(Vue.openBlock(),Vue.createBlock(d,{key:7,"active-color":"#13ce66","inactive-color":"#ff4949",style:Vue.normalizeStyle(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].searchControlWidth),"model-value":e.getFormItemValue(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop),onInput:E=>o.setValueToModelProp(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop,E)},null,8,["style","model-value","onInput"])):o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentType&&o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentType==="slider"?(Vue.openBlock(),Vue.createBlock(f,{key:8,"model-value":e.getFormItemValue(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop),style:Vue.normalizeStyle(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].searchControlWidth),onInput:E=>o.setValueToModelProp(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop,E)},null,8,["model-value","style","onInput"])):o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentType&&o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentType==="rate"?(Vue.openBlock(),Vue.createBlock(h,{key:9,"model-value":e.getFormItemValue(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop),style:Vue.normalizeStyle(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].searchControlWidth),onInput:E=>o.setValueToModelProp(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop,E)},null,8,["model-value","style","onInput"])):o.customComponent(o.searchableColumns[i.fieldNum*(m-1)+(_-1)])===!0?(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_3$6,[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentName),{ref_for:!0,ref:o.searchableColumns[i.fieldNum*(m-1)+(_-1)].componentName,class:"customComponent",prop:o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop,value:e.getFormItemValue(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop),onInput:E=>o.setValueToModelProp(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop,E)},null,40,["prop","value","onInput"]))])):(Vue.openBlock(),Vue.createBlock(p,{key:11,"model-value":e.getFormItemValue(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop),style:Vue.normalizeStyle(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].searchControlWidth),onKeyup:t[0]||(t[0]=Vue.withKeys(E=>o.submitForm("searchForm"),["enter"])),onInput:E=>o.setValueToModelProp(o.searchableColumns[i.fieldNum*(m-1)+(_-1)].prop,E)},null,8,["model-value","style","onInput"]))]),_:2},1032,["prop","label-width"])]))),128))]))),128))]),Vue.createVNode(g,{class:"search-btn"},{default:Vue.withCtx(()=>[Vue.createVNode(C,{loading:i.loading,type:"primary",size:"mini",onClick:t[1]||(t[1]=m=>o.submitForm("searchForm"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIPublicModel.sure")),1)]),_:1},8,["loading"]),Vue.createVNode(C,{loading:i.loading,size:"mini",onClick:t[2]||(t[2]=m=>o.resetForm("searchForm"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIPublicModel.reset")),1)]),_:1},8,["loading"])]),_:1})]),_:1},8,["model","rules","label-width","label-position"])):Vue.createCommentVNode("",!0)}const SearchForm=_export_sfc(_sfc_main$f,[["render",_sfc_render$f],["__scopeId","data-v-045cd274"]]),superGridService={initialize(){const e=window.$vueApp.config.globalProperties.baseAPI+"/component/super-grids/"+this.code,t={},n=this.options.isSql;this.options&&typeof n<"u"&&(this.isSql=n,t.isSql=n+""),this.isLoading=!0,this.$http.post(e,t).then(r=>{if(this.options.pageSizes&&r.pagination){let a=null;const s=this.options.pageSizes.split(",");if(s&&s.length>0){a=[];for(var i=0;i<s.length;i++)a.push(s[i]*1);r.pagination.pageSize=a[0]}r.pagination.layout="total, sizes, prev, pager, next, jumper",r.pagination.pageSizes=a}typeof this.options.initSortInfo<"u"&&(Array.isArray(this.options.initSortInfo)?r.sortInfo=this.options.initSortInfo:(r.sortInfo=[],r.sortInfo.push(this.options.initSortInfo))),Object.assign(this,r);const o=store.get(this.code+"~"+this.gridId);packageEnumAndBeanColumnValueSets(this.columns,this.code).then(()=>{o.isSql=this.isSql,o.columns=this.columns,o.lineEdit=this.lineEdit,o.basicInfo=this.basicInfo,o.pagination=this.pagination,o.query=this.query,this.hasLoadedColumns=!0;let a=!0;isHasOptionFunction("loadBeforeSend",this.storeId)&&(a=o.options.loadBeforeSend.call(this,{columns:this.columns,gridParams:o,additionalParamMap:o.additionalParamMap})),(a===void 0||a===!0)&&(typeof this.options.initSearch>"u"||this.options.initSearch!==!1)&&(this.urlToSaveOrder=this.lineEdit&&this.lineEdit.urlToSaveOrder?this.lineEdit.urlToSaveOrder:null,this.fetchData().then(()=>{this.initSelectData()}))})})},initSelectData(){if(this.options&&this.options.currentIds)for(let e=0;e<this.gridData.length;e++){const t=this.gridData[e];if((t.id||t.ID)&&this.options.currentIds.indexOf(t.id?t.id:t.ID)>=0&&(this.changeSelect(t),this.multiple===!1))break}}},apis={refresh(){return new Promise((e,t)=>{this.$refs?this.$refs.sf?this.search(this.$refs.sf.searchParams,!0).then(()=>e()).catch(n=>t(n)):this.search(null,!0).then(()=>e()).catch(n=>t(n)):e()})},showSearchForm(){this.showSearch=!0,$emit(this,"showSearch")},cancelSearch(){this.showSearch=!1,$emit(this,"cancelSearch")},getSearchForm(){const e=store.get(this.storeId);return e.searchForm?e.searchForm:[]},getGridData(e){return e||(e=store.get("_nine_list_code")),e&&e.indexOf("~")<0&&(e=e+"~_nineGrid"),store.get(e).gridData},getColumns(e){return e||(e=store.get("_nine_list_code")),e&&e.indexOf("~")<0&&(e=e+"~_nineGrid"),store.get(e).columns},getPagination(e){return e||(e=store.get("_nine_list_code")),e&&e.indexOf("~")<0&&(e=e+"~_nineGrid"),store.get(e).pagination},getSelections(){return this.selections},getSelectionIds(){return this.selectionIds},clearSelections(){this.selections=[],this.selectionIds=[],this.selectionModels={},this.currentId=null},getSelection(){return this.selections&&this.selections.length>0?this.selections[0]:null},getSelectionId(){return this.selectionIds&&this.selectionIds.length>0?this.selectionIds[0]:null}},superNineGrid_vue_vue_type_style_index_0_scoped_dc555d7d_rel_stylesheet_2Fscss_lang="",_sfc_main$e={name:"SuperNineGrid",components:{SearchForm},props:{code:{type:String,default:""},url:{type:String,default:""},options:{type:Object,default:function(){return{}}}},data(){let e=[];this.options&&this.options.mergeFields&&this.options.mergeFields!==""&&(e=this.options.mergeFields.split(","));const t=window.$vueApp.config.globalProperties.baseAPI+"/component/super-form/show-image?serverPath=",n=this.options&&this.options.id?this.options.id:"_nineGrid",r=this.code+"~"+n,i=this.options&&this.options.showRadio!==void 0?this.options.showRadio:!1;return{isLoading:!1,currentPage:1,showColumnConfig:!1,basicInfo:{summary:"no"},columns:[],pagination:null,query:null,lineEdit:null,gridData:[],sortInfo:null,pageSize:null,showSearch:!1,height:null,isSql:!1,hasLoadData:!1,mergeFields:e,hasLoadedColumns:!1,seen:!1,current:null,isHasCreate:!0,screenBaseUrl:null,props:null,operations:[],propCloumns:null,multiple:!1,createPermission:"true",urlToSaveOrder:null,selections:[],selectionIds:[],selectionModels:{},searchFormContent:null,initSearchProps:[],defaultShowImageAction:t,gridId:n,storeId:r,currentId:null,isShowRadio:i,titleStyle:null,isShowEnableState:!1,colSpan:6}},computed:{},provide(){return{}},created(){store.set(this.code+"~"+this.gridId,getGridParams()),store.set("_nine_list_code",this.code+"~"+this.gridId),this.initSetting(),this.initialize(),console.log("%c描述-232041","color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px",this.operations)},mounted(){this.$watch("showSearch",function(e,t){this.$nextTick(()=>{let n=getTableHeight(e,this.$refs.sf);const r=this.resizeHeight();r&&(n=r),this.height=n})},{immediate:!0,deep:!0}),this.$watch("hasLoadData",function(e,t){e===!0&&this.$nextTick(()=>{this.rowDrop();const n=store.get(this.storeId);isHasOptionFunction("gridComplete",this.storeId)&&n.options.gridComplete.call(this,{gridData:this.gridData,columns:n.columns,superGrid:this.$refs.superGrid});const r=this.resizeHeight();r&&(this.height=r)})},{immediate:!0,deep:!0})},methods:{...superGridService,...apis,...customFormatter,getTitleStyle(e){return this.options&&this.options.titleStyle?this.options.titleStyle.call(this,e):{width:"100%"}},getPropValue(e,t){let n="";const r=store.get(this.storeId);if(e==="content"){let i="";isHasOptionFunction("setContent",this.storeId)&&(i=r.options.getContent.call(this,t)),(i===void 0||i==="")&&(this.props&&this.props.content?i=this.objectPropValue(t,this.propCloumns.content,this.props.content):this.props&&this.props.title&&(i=this.objectPropValue(t,this.propCloumns.title,this.props.title))),n=i}else if(e==="title"){let i="";isHasOptionFunction("setTitle",this.storeId)&&(i=r.options.setTitle.call(this,t)),(i===void 0||i==="")&&(this.props&&this.props.title?i=this.objectPropValue(t,this.propCloumns.title,this.props.title):this.props&&this.props.content&&(i=this.objectPropValue(t,this.propCloumns.content,this.props.content))),n=i}else if(e==="subTitle"){let i="";isHasOptionFunction("setSubTitle",this.storeId)&&(i=r.options.setSubTitle.call(this,t)),(i===void 0||i==="")&&this.props&&this.props.subTitle&&(i=this.objectPropValue(t,this.propCloumns.subTitle,this.props.subTitle)),n=i}return n===void 0&&(n=""),n},resizeHeight(){const e=store.get(this.storeId);if(isHasOptionFunction("resizeHeight",this.storeId)){let t=0;return this.showSearch===!0&&this.$refs.sf&&(t=this.$refs.sf.$el.offsetHeight),e.options.resizeHeight.call(this,{code:this.code,height:this.height,searchHeight:t})}},enter(e){this.seen=!0,this.current=e},leave(){this.seen=!1,this.current=null},initSetting(){const e=store.get(this.storeId);typeof this.options<"u"?Object.assign(e.options,this.options):e.options={},this.options&&typeof this.options.isHasCreate<"u"&&(this.isHasCreate=this.options.isHasCreate),this.options&&typeof this.options.props<"u"&&(this.props=this.options.props),this.options&&typeof this.options.operations<"u"&&(this.operations=this.options.operations),this.options&&typeof this.options.createPermission<"u"&&(this.createPermission=this.options.createPermission),this.options&&typeof this.options.multiple<"u"&&(this.multiple=this.options.multiple),this.options&&typeof this.options.isShowEnableState<"u"&&(this.isShowEnableState=this.options.isShowEnableState),this.options&&typeof this.options.colSpan<"u"&&(this.colSpan=this.options.colSpan)},getPropColumns(){this.columns&&this.columns.length>0&&(this.propCloumns={},this.columns.forEach(e=>{this.props.imageUrl&&this.props.imageUrl===e.prop&&(this.propCloumns.imageUrl=e),this.props.content&&this.props.content===e.prop&&(this.propCloumns.content=e),this.props.title&&this.props.title===e.prop&&(this.propCloumns.title=e),this.props.subTitle&&this.props.subTitle===e.prop&&(this.propCloumns.subTitle=e)}))},fetchData(e,t){return new Promise((n,r)=>{if(this.getPropColumns(),this.isLoading=!0,this.hasLoadData=!1,t===void 0||t===!1){const s=window.sessionStorage.getItem("refreshList-"+this.storeId);if(s!==void 0&&s==="true"){const l=window.sessionStorage.getItem("searchParam-"+this.storeId);if(l!=null&&l!==""){e=JSON.parse(l);const u=e.pagination;u&&(this.currentPage=u.currentPage,this.pagination.pageSize=u.pageSize,this.pagination.showTotal=u.showTotal),this.getInitSearchForm(e.searchForm)}}}window.sessionStorage.removeItem("refreshList-"+this.storeId),e===void 0&&(e=this.getSearchParam());const i=store.get(this.storeId);let o=e;if(i.options.extraParam&&(o={searchParam:e},i.options.extraParam))for(const s in i.options.extraParam)o[s]=i.options.extraParam[s];i.searchParam=e,i.url=this.url;const a=this.url;window.sessionStorage.setItem("searchParam-"+this.storeId,JSON.stringify(o)),this.$http.post(a,o).then(s=>{if(isHasOptionFunction("gridDataLoaded",this.storeId)){const l=i.options.gridDataLoaded.call(this,{gridData:s.data,columns:i.columns});l?this.gridData=l:this.gridData=s.data}else this.gridData=s.data;this.gridData||(this.gridData=[]),this.pagination!==null&&(this.pagination.total=s.total),i.gridData=this.gridData,i.orgGridData=[].concat(JSON.parse(JSON.stringify(this.gridData))),i.pagination=this.pagination,i.loaded=!0,this.hasLoadData=!0,n()}).catch(s=>{isHasOptionFunction("loadError",this.storeId)&&i.options.loadError.call(this,this.code,s),r(s)})})},getLength(e){return e&&e.length>5?"("+e.substring(0,5)+"...)":e?"("+e+")":""},getInitSearchForm(e){const t=store.get(this.storeId);e&&e.length>0?(this.searchFormContent={},e.forEach(n=>{let r=n.propName;const i=n.columnProp,o=n.dataType;o&&o==="BOOLEAN"&&(r=i),this.initSearchProps.push(r);const a=n.propValue;r.indexOf(".")>0?addDynamicProp(this.searchFormContent,r,a):this.searchFormContent[r]=a}),t.searchForm=e,this.showSearchForm()):t.searchForm=null},showDemo(){this.isLoading=!0,this.$http.get(this.url).then(e=>{Object.assign(this,e);const t=store.get(this.storeId);if(t.listCode=this.code,t.columns=this.columns,t.columns&&this.options.dynamicColumns)for(var n=0;n<this.options.dynamicColumns.length;n++)this.options.dynamicColumns[n].dynamic=!0,t.columns.push(this.options.dynamicColumns[n]);if(t.lineEdit=this.lineEdit,t.basicInfo=this.basicInfo,t.pagination=this.pagination,t.query=this.query,this.gridData=e.gridData,isHasOptionFunction("gridDataLoaded",this.storeId)){const r=t.options.gridDataLoaded.call(this,e.gridData);r?this.gridData=r:this.gridData=e.gridData}else this.gridData=e.gridData;this.pagination!=null&&(this.pagination.total=e.total),this.gridData||(this.gridData=[]),t.gridData=this.gridData,t.orgGridData=[].concat(JSON.parse(JSON.stringify(this.gridData))),t.pagination=this.pagination,isHasOptionFunction("gridComplete",this.storeId)&&t.options.gridComplete.call(this,this.gridData,t.columns)}).catch(e=>{isHasOptionFunction("loadError",this.storeId)&&store.get(this.storeId).options.loadError.call(this,this.code,e)})},search(e){const t=this;return new Promise((n,r)=>{const i=store.get(t.storeId);typeof e<"u"&&e!==null?i.searchForm=e:i.searchForm=null,t.fetchData(t.getSearchParam(),!0).then(o=>{i.options!==void 0&&i.options.isHiddenSearchForm!==void 0&&i.options.isHiddenSearchForm===!0&&(t.showSearch=!1,$emit(t,"cancel-search")),t.$refs.sf&&(t.$refs.sf.loading=!1),n(o)}).catch(o=>{t.$refs.sf&&(t.$refs.sf.loading=!1),r(o)})})},getSearchParam(){const e={code:this.code},t=store.get(this.storeId);if(this.pagination!==null){const n={currentPage:this.currentPage,pageSize:this.pagination.pageSize,showTotal:this.pagination.showTotal};this.pageSize!==null&&(n.pageSize=this.pageSize),e.pagination=n}if(this.sortInfo!==null&&(e.sorts=this.sortInfo),this.mergeFields&&this.mergeFields.length>0){e.sorts||(e.sorts=[]);const n=[];for(const r of this.mergeFields){let i=!0;for(const o of e.sorts)if(o.prop===r){i=!1;break}i&&n.push({prop:r,order:"ascending"})}n.push(...e.sorts),e.sorts=n}return t.options&&typeof t.options.initSearchForm<"u"&&(e.initSearchForm=t.options.initSearchForm),typeof t.searchForm<"u"?e.searchForm=t.searchForm:e.searchForm=[],e},handleSizeChange(e){this.pageSize=e,this.fetchData(this.getSearchParam())},handleCurrentChange(e){this.fetchData(this.getSearchParam())},handleSortChange({column:e,prop:t,order:n}){t!==null?this.sortInfo=[{prop:t,order:n}]:this.sortInfo=null,this.fetchData(this.getSearchParam()),$emit(this,"sort-change",{column:e,prop:t,order:n})},resetSearch(){this.search(null,!1)},add(){$emit(this,"add")},buttonClick(e,t){e&&(typeof e=="function"?e.call(this,t):$emit(this,e,t))},clickContent(e){this.changeSelect(e),$emit(this,"click",e)},rowDrop(){if(this.urlToSaveOrder){let e=this.urlToSaveOrder;if(e.indexOf("http:")<0||e.indexOf("https:")<0){let n=window.$vueApp.config.globalProperties.baseURL;n.lastIndexOf("/")===n.length-1&&(n=n.substring(0,n.length-1)),e.indexOf("/")>0&&(e="/"+e),e=n+e}const t=document.querySelector("#"+this.gridId+" .el-row");if(t!=null){const n=this;Sortable.create(t,{draggable:".col-content",onEnd({newIndex:r,oldIndex:i}){document.querySelector("#"+n.gridId+" #_addCardId_")!=null&&(i>0&&(i=i-1),r>0&&(r=r-1));const a={oldIndex:i,newIndex:r,gridData:n.gridData};n.$http.post(e,a).then(s=>{const l=n.gridData.splice(i,1)[0];n.gridData.splice(r,0,l),n.refresh().then(()=>{$emit(n,"afterDrag",a)})})}})}}},changeChecked(e,t){const n=this.gridData[t];(e+"").indexOf("false-")>=0?this.unselect(n):this.select(n)},unselect(e){const t=e.id,n=this.selectionIds.indexOf(t);n>-1&&(this.selections.splice(n,1),this.selectionIds.splice(n,1)),$emit(this,"unselect",e,this.selections),this.selectionModels["select"+t]="false-"+t},select(e){const t=e.id;this.selectionIds.indexOf(t)<0&&(this.selectionIds[this.selectionIds.length]=t,this.selections[this.selections.length]=e),$emit(this,"select",e,this.selections),this.selectionModels["select"+t]=t},changeSelectWhenRadio(e,t){const n=this.gridData[t];this.selectionIds=[],this.selections=[],this.selectionModels={},this.select(n)},changeSelect(e){const t=e.id;this.multiple===!0?this.selectionIds&&this.selectionIds.indexOf(t)>=0?this.unselect(e):this.select(e):(this.currentId=t,this.selectionIds=[],this.selections=[],this.selectionModels={},this.select(e))},isShowButton(e,t){const n=this.isShowButtonFun(e,t);return n===void 0?!0:n},showEnableButton(e){const t=store.get(this.storeId);return isHasOptionFunction("showEnableButton",this.storeId)?t.options.showEnableButton.call(this,e):!1},changeState(e){const t=store.get(this.storeId);return isHasOptionFunction("changeState",this.storeId)?t.options.changeState.call(this,e):!1}},emits:["sort-change",,"click","afterDrag","unselect","select","cancel-search","add",,]},_withScopeId$1=e=>(Vue.pushScopeId("data-v-dc555d7d"),e=e(),Vue.popScopeId(),e),_hoisted_1$7={class:"nine-grid-area"},_hoisted_2$6=["id"],_hoisted_3$5=_withScopeId$1(()=>Vue.createElementVNode("em",{class:"el-icon-plus"},null,-1)),_hoisted_4$3={style:{"margin-top":"7px"}},_hoisted_5$3=["onClick","onMouseenter"],_hoisted_6$2={class:"image",style:{padding:"15px","box-sizing":"border-box"}},_hoisted_7$2={key:0,style:{display:"inline-block"}},_hoisted_8={key:1,style:{display:"inline-block"}},_hoisted_9={key:0,style:{"margin-left":"2px",color:"#00b42a","background-color":"#e8ffea",width:"68px","text-align":"center",display:"inline-block"}},_hoisted_10=["title"],_hoisted_11={class:"button-style"},_hoisted_12=["onClick"],_hoisted_13={key:0,style:{float:"right","margin-top":"28px"}};function _sfc_render$e(e,t,n,r,i,o){const a=Vue.resolveComponent("search-form"),s=Vue.resolveComponent("el-card"),l=Vue.resolveComponent("el-col"),u=Vue.resolveComponent("el-tooltip"),c=Vue.resolveComponent("SuccessFilled"),d=Vue.resolveComponent("el-icon"),f=Vue.resolveComponent("el-button"),h=Vue.resolveComponent("el-row"),p=Vue.resolveComponent("el-pagination"),g=Vue.resolveDirective("permission");return Vue.openBlock(),Vue.createElementBlock("div",null,[i.hasLoadedColumns?Vue.withDirectives((Vue.openBlock(),Vue.createBlock(a,{key:0,ref:"sf",code:n.code,columns:i.columns,"grid-id":i.gridId,"init-search-props":i.initSearchProps,pagination:i.pagination,query:i.query,"search-param":i.searchFormContent,url:n.url,onReset:o.resetSearch,onSearch:o.search},null,8,["code","columns","grid-id","init-search-props","pagination","query","search-param","url","onReset","onSearch"])),[[Vue.vShow,i.showSearch]]):Vue.createCommentVNode("",!0),Vue.createElementVNode("div",_hoisted_1$7,[Vue.createElementVNode("div",{id:i.gridId,style:Vue.normalizeStyle("height:"+i.height+"px;overflow-y: auto;overflow-x: hidden;")},[Vue.createVNode(h,{gutter:24},{default:Vue.withCtx(()=>[i.isHasCreate?Vue.withDirectives((Vue.openBlock(),Vue.createBlock(l,{key:0,id:"_addCardId_",span:i.colSpan},{default:Vue.withCtx(()=>[Vue.createVNode(s,{"body-style":{padding:"0px"},style:{"border-radius":"4px",background:"#ffffff",border:"1px solid #e5e8ef"}},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",{class:"add-screen",onClick:t[0]||(t[0]=(...C)=>o.add&&o.add(...C))},[_hoisted_3$5,Vue.createElementVNode("span",_hoisted_4$3,Vue.toDisplayString(e.$t("superNineGrid.add")),1)])]),_:1})]),_:1},8,["span"])),[[g,i.createPermission]]):Vue.createCommentVNode("",!0),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(i.gridData,(C,v)=>(Vue.openBlock(),Vue.createBlock(l,{key:C.id,span:i.colSpan},{default:Vue.withCtx(()=>[Vue.createVNode(s,{"body-style":{padding:"0px"},style:Vue.normalizeStyle({border:i.selectionIds.indexOf(C.id)>-1?"1px solid #005EBA":""}),shadow:"hover"},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",{style:{height:"160px"},onClick:m=>o.clickContent(C),onMouseenter:m=>o.enter(v),onMouseleave:t[1]||(t[1]=m=>o.leave())},[Vue.createElementVNode("div",_hoisted_6$2,[Vue.createElementVNode("div",null,[Vue.createVNode(u,{content:"系统编码:"+C.code,effect:"dark",placement:"top-start"},{default:Vue.withCtx(()=>[i.props&&i.props.content?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_7$2,Vue.toDisplayString(o.getPropValue("content",C)+o.getLength(C.code)),1)):i.props&&i.props.title?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_8,Vue.toDisplayString(o.getPropValue("title",C)+o.getLength(C.code)),1)):Vue.createCommentVNode("",!0)]),_:2},1032,["content"]),o.showEnableButton(C)?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_9,[Vue.createVNode(d,null,{default:Vue.withCtx(()=>[Vue.createVNode(c)]),_:1}),Vue.createElementVNode("span",{title:o.getPropValue("subTitle",C),style:{"margin-left":"4px"}},Vue.toDisplayString(o.getPropValue("subTitle",C)),9,_hoisted_10)])):Vue.createCommentVNode("",!0)]),Vue.createElementVNode("div",_hoisted_11,[Vue.createTextVNode(" 操作 "),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(i.operations,m=>(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,null,[o.isShowButton(C,m)?(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,{key:0},[m.icon?Vue.withDirectives((Vue.openBlock(),Vue.createBlock(u,{key:0,content:m.name,class:"item",effect:"dark",placement:"top",style:{"background-color":"red"}},{default:Vue.withCtx(()=>[Vue.createVNode(d,{class:Vue.normalizeClass(m.icon+" icons"),onClick:Vue.withModifiers(_=>o.buttonClick(m.event,C),["stop"])},{default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(m.icon)))]),_:2},1032,["class","onClick"])]),_:2},1032,["content"])),[[g,m.permission?m.permission:"true"]]):Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("em",{key:1,class:Vue.normalizeClass(m.name+" icons"),onClick:Vue.withModifiers(_=>o.buttonClick(m.event,C),["stop"])},[Vue.createTextVNode(Vue.toDisplayString(m.name),1)],10,_hoisted_12)),[[g,m.permission?m.permission:"true"]])],64)):Vue.createCommentVNode("",!0)],64))),256))]),i.isShowEnableState?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_13,[o.showEnableButton(C)?(Vue.openBlock(),Vue.createBlock(f,{key:0,size:"mini",onClick:Vue.withModifiers(m=>o.changeState(C),["stop"])},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 禁用 ")]),_:2},1032,["onClick"])):(Vue.openBlock(),Vue.createBlock(f,{key:1,size:"mini",type:"primary",onClick:Vue.withModifiers(m=>o.changeState(C),["stop"])},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 启用 ")]),_:2},1032,["onClick"]))])):Vue.createCommentVNode("",!0)])],40,_hoisted_5$3)]),_:2},1032,["style"])]),_:2},1032,["span"]))),128))]),_:1})],12,_hoisted_2$6),i.pagination?(Vue.openBlock(),Vue.createBlock(p,{key:0,"current-page":i.currentPage,"onUpdate:currentPage":t[2]||(t[2]=C=>i.currentPage=C),layout:i.pagination.layout,"page-size":i.pagination.pageSize,"page-sizes":i.pagination.pageSizes,total:i.pagination.total,onSizeChange:o.handleSizeChange,onCurrentChange:o.handleCurrentChange},null,8,["current-page","layout","page-size","page-sizes","total","onSizeChange","onCurrentChange"])):Vue.createCommentVNode("",!0)])])}const SuperNineGrid=_export_sfc(_sfc_main$e,[["render",_sfc_render$e],["__scopeId","data-v-dc555d7d"]]);SuperNineGrid.install=function(e){e.component(SuperNineGrid.name,SuperNineGrid)},DynamicSourceSelect.install=function(e){e.component(DynamicSourceSelect.name,DynamicSourceSelect)};const _sfc_main$d={props:{unifiedEnclosures:{type:Array,default:null},showIndex:{type:Number,default:0}},data(){return{displayIndex:0}},created(){this.displayIndex=this.showIndex},methods:{},emits:["close"]};function _sfc_render$d(e,t,n,r,i,o){const a=Vue.resolveComponent("el-image"),s=Vue.resolveComponent("el-carousel-item"),l=Vue.resolveComponent("el-carousel"),u=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(u,{"close-on-click-modal":!1,"model-value":"","append-to-body":"",onClose:t[0]||(t[0]=c=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createVNode(l,{style:{width:"100%"},height:"600px",autoplay:!1,"indicator-position":"outside","initial-index":i.displayIndex},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.unifiedEnclosures,(c,d)=>(Vue.openBlock(),Vue.createBlock(s,{key:d,label:c.fileName},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",null,[Vue.createVNode(a,{style:{height:"580px"},"preview-src-list":[e.baseURL+"/common/fs-upload/download?serverPath="+c.uuid+"&showName="+c.fileName],src:e.baseURL+"/common/fs-upload/download?serverPath="+c.uuid+"&showName="+c.fileName},null,8,["preview-src-list","src"])])]),_:2},1032,["label"]))),128))]),_:1},8,["initial-index"])]),_:1})}const seeBigPicture=_export_sfc(_sfc_main$d,[["render",_sfc_render$d]]),_sfc_main$c={data(){return{unifiedEnclosures:[],bigPictureVisible:!1,baseURL:"",accepts:"",showIndex:0,loading:"",ElIconUpload2:upload_default}},components:{seeBigPicture,ElIconDelete:delete_default,ElIconView:view_default},name:"FsUploadMulti",props:{systemCode:{type:String,default:null},accept:{type:String,default:null},isImg:{type:Boolean,default:!1},isShowList:{type:Boolean,default:!0},fit:{type:String,default:null},disabled:{type:Boolean,default:!1},isShowButton:{type:Boolean,default:!0},isShowData:{type:Boolean,default:!0},data:{type:Array,default:null},imgSize:{type:Number,default:0},fileSize:{type:Number,default:0},tableHeight:{type:String,default:null}},created(){this.baseURL=window.$vueApp.config.globalProperties.baseURL,this.data&&(this.unifiedEnclosures=this.data),this.judgeImg()},methods:{bigPicture(e){this.showIndex=e,this.bigPictureVisible=!0},onSuccess(){const e=this.unifiedEnclosures;$emit(this,"onSuccess",e)},judgeImg(){this.isImg?this.accepts="image/*":this.accept&&(this.accepts=this.accept)},selectDataFile(){this.$refs.uploadTemplate.click()},deleteFile(e){this.deleteUuid=this.unifiedEnclosures[e].uuid,this.unifiedEnclosures.splice(e,1),this.deleteSuccess()},deleteSuccess(){const e=this.unifiedEnclosures;$emit(this,"deleteSuccess",this.deleteUuid,e)},preview(e){if(window.$vueApp.config.globalProperties.isOffice){const t=getToken(),n={fileName:window.$vueApp.config.globalProperties.officeweb365Url+"/common/fs-upload/download?serverPath="+e.uuid+"&showName="+e.fileName+"&jwt="+t};this.$http.post(window.$vueApp.config.globalProperties.baseURL+"/common/fs-upload/des-encrypt",n).then(i=>{window.open(window.$vueApp.config.globalProperties.isOffice+i)})}else{let t;const n=e.fileName.split(".");n[n.length-1].toLowerCase()==="xls"||n[n.length-1].toLowerCase()==="xlsx"||n[n.length-1].toLowerCase()==="csv"?t=n[0]+".html":t=n[0]+".pdf";const r=getToken();if(window.$vueApp.config.globalProperties.customPreviewUrl)window.open(getSystemFrontendUrl(window.$vueApp.config.globalProperties.portalUrl)+"/#/file-service/preview?serverPath="+e.uuid+"&showName="+encodeURI(e.fileName),t);else{let i=window.$vueApp.config.globalProperties.baseURL+"/common/fs-upload/preview?serverPath="+e.uuid+"&showName="+e.fileName+"&jwt="+r;isPlateSys(window.$vueApp.config.globalProperties.systemCode)&&(i=window.$vueApp.config.globalProperties.baseAPI+"/common/fs-upload/preview?serverPath="+e.uuid+"&showName="+e.fileName+"&jwt="+r),window.open(i,t)}}},upload(e){let t;if(this.fileSize&&this.fileSize!==0&&this.unifiedEnclosures.length>=this.fileSize&&(t=this.$t("fsUpload.theNumberOfUploadsExceedsTheLimitTheLimitIs")+":"+this.fileSize),t)e.target.value="",this.$message({showClose:!0,type:"warning",message:t});else{this.loading=!0;const n=new FormData;n.append("file",this.$refs.uploadTemplate.files[0]);const r=this.$http;r.headers="'Content-Type': 'multipart/form-data'",r.post(window.$vueApp.config.globalProperties.baseURL+"/common/fs-upload/upload-template/"+this.systemCode,n,{headers:{"Content-Type":"multipart/form-data"}}).then(i=>{this.unifiedEnclosures.push(i),e.target.value="",console.log("data",i),this.judgeImg(),console.log(" this.unifiedEnclosures",this.unifiedEnclosures),this.onSuccess(),this.$message({showClose:!0,type:"success",message:this.$t("fsUpload.uploadSucceeded")}),this.loading=!1}).catch(()=>{e.target.value="",this.loading=!1})}}},emits:["onSuccess","deleteSuccess"]},_hoisted_1$6=["accept"],_hoisted_2$5={key:1},_hoisted_3$4={key:0},_hoisted_4$2={key:1},_hoisted_5$2={key:2};function _sfc_render$c(e,t,n,r,i,o){const a=Vue.resolveComponent("el-button"),s=Vue.resolveComponent("el-link"),l=Vue.resolveComponent("el-table-column"),u=Vue.resolveComponent("el-image"),c=Vue.resolveComponent("el-table"),d=Vue.resolveComponent("el-icon-delete"),f=Vue.resolveComponent("el-icon"),h=Vue.resolveComponent("el-tooltip"),p=Vue.resolveComponent("el-icon-view"),g=Vue.resolveComponent("see-big-picture"),C=Vue.resolveDirective("loading");return Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("div",null,[n.isShowButton&&!n.disabled?(Vue.openBlock(),Vue.createBlock(a,{key:0,size:"small",type:"primary",icon:i.ElIconUpload2,onClick:o.selectDataFile},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("fsUpload.upload")),1)]),_:1},8,["icon","onClick"])):Vue.createCommentVNode("",!0),Vue.createElementVNode("input",{ref:"uploadTemplate",type:"file",name:"uploadTemplate",style:{display:"none"},accept:i.accepts,onChange:t[0]||(t[0]=(...v)=>o.upload&&o.upload(...v))},null,40,_hoisted_1$6),i.unifiedEnclosures&&i.unifiedEnclosures.length>0&&n.isShowData?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_2$5,[n.isImg?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_3$4,[Vue.createVNode(c,{data:i.unifiedEnclosures,height:n.tableHeight,style:{width:"100%"}},{default:Vue.withCtx(()=>[Vue.createVNode(l,{label:e.$t("fsUpload.name"),width:"240"},{default:Vue.withCtx(v=>[Vue.createVNode(s,{href:i.baseURL+"/common/fs-upload/download?serverPath="+v.row.uuid+"&showName="+v.row.fileName,type:"primary"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(v.row.fileName),1)]),_:2},1032,["href"])]),_:1},8,["label"]),Vue.createVNode(l,{label:e.$t("fsUpload.picture"),width:"240"},{default:Vue.withCtx(v=>[Vue.createVNode(u,{src:i.baseURL+"/common/fs-upload/download?serverPath="+v.row.uuid+"&showName="+v.row.fileName,"preview-src-list":[i.baseURL+"/common/fs-upload/download?serverPath="+v.row.uuid+"&showName="+v.row.fileName],onClick:m=>o.bigPicture(v.$index)},null,8,["src","preview-src-list","onClick"])]),_:1},8,["label"]),n.disabled?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(l,{key:0,label:e.$t("fsUpload.operating"),width:"120"},{default:Vue.withCtx(v=>[Vue.createVNode(a,{size:"mini",type:"danger",onClick:m=>o.deleteFile(v.$index)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("fsUpload.delete")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"]))]),_:1},8,["data","height"])])):n.isShowList?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_4$2,[Vue.createVNode(c,{data:i.unifiedEnclosures,height:n.tableHeight,style:{width:"100%"}},{default:Vue.withCtx(()=>[Vue.createVNode(l,{label:e.$t("fsUpload.name"),width:"240"},{default:Vue.withCtx(v=>[Vue.createVNode(s,{href:i.baseURL+"/common/fs-upload/download?serverPath="+v.row.uuid+"&showName="+v.row.fileName,type:"primary"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(v.row.fileName),1)]),_:2},1032,["href"])]),_:1},8,["label"]),Vue.createVNode(l,{width:"200",label:e.$t("fsUpload.operating")},{default:Vue.withCtx(v=>[n.disabled?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(a,{key:0,size:"mini",type:"danger",onClick:m=>o.deleteFile(v.$index)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("fsUpload.delete")),1)]),_:2},1032,["onClick"])),Vue.createVNode(a,{size:"mini",onClick:m=>o.preview(v.row)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("fsUpload.preview")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data","height"])])):(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_5$2,[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(i.unifiedEnclosures,(v,m)=>(Vue.openBlock(),Vue.createElementBlock("div",{key:m},[Vue.createVNode(s,{href:i.baseURL+"/common/fs-upload/download?serverPath="+v.uuid+"&showName="+v.fileName,type:"primary"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(v.fileName),1)]),_:2},1032,["href"]),Vue.createVNode(h,{content:e.$t("fsUpload.delete"),effect:"light"},{default:Vue.withCtx(()=>[n.disabled?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(f,{key:0,onClick:_=>o.deleteFile(m),style:{color:"red","margin-left":"10px"}},{default:Vue.withCtx(()=>[Vue.createVNode(d)]),_:2},1032,["onClick"]))]),_:2},1032,["content"]),Vue.createVNode(h,{content:e.$t("fsUpload.preview"),style:{"margin-left":"10px"},effect:"light"},{default:Vue.withCtx(()=>[Vue.createVNode(f,{onClick:_=>o.preview(v)},{default:Vue.withCtx(()=>[Vue.createVNode(p)]),_:2},1032,["onClick"])]),_:2},1032,["content"])]))),128))]))])):Vue.createCommentVNode("",!0),i.bigPictureVisible?(Vue.openBlock(),Vue.createBlock(g,{key:2,"show-index":i.showIndex,"unified-enclosures":i.unifiedEnclosures,onClose:t[1]||(t[1]=v=>i.bigPictureVisible=!1)},null,8,["show-index","unified-enclosures"])):Vue.createCommentVNode("",!0)])),[[C,i.loading]])}const fsUploadMulti=_export_sfc(_sfc_main$c,[["render",_sfc_render$c]]),_sfc_main$b={data(){return{unifiedEnclosure:{uuid:"",fileName:""},loading:"",baseURL:"",showIndex:0,accepts:"",deleteUuid:"",bigPictureVisible:!1,ElIconUpload2:upload_default}},components:{seeBigPicture,ElIconDownload:download_default,ElIconDelete:delete_default,ElIconView:view_default},name:"FsUploadSingle",props:{systemCode:{type:String,default:null},accept:{type:String,default:null},isImg:{type:Boolean,default:!1},fit:{type:String,default:null},disabled:{type:Boolean,default:!1},isShowButton:{type:Boolean,default:!0},isShowData:{type:Boolean,default:!0},data:{type:Array,default:null}},created(){this.baseURL=window.$vueApp.config.globalProperties.baseURL,this.data&&(this.unifiedEnclosure=this.data[0]),this.accept?this.accepts=this.accept:this.isImg&&(this.accepts="image/*")},methods:{bigPicture(){this.bigPictureVisible=!0},deleteFile(){this.deleteUuid=this.unifiedEnclosure.uuid,this.unifiedEnclosure=null,this.deleteSuccess()},deleteSuccess(){if(this.unifiedEnclosure){const e=[this.unifiedEnclosure];$emit(this,"deleteSuccess",this.deleteUuid,e)}else $emit(this,"deleteSuccess",this.deleteUuid)},acceptService(){return this.isImg?"image/*":null},selectDataFile(){this.$refs.uploadTemplate.click()},onSuccess(){if(this.unifiedEnclosure){const e=[this.unifiedEnclosure];$emit(this,"onSuccess",e,this.deleteUuid)}else $emit(this,"onSuccess",null,this.deleteUuid)},preview(){if(window.$vueApp.config.globalProperties.isOffice){const e=api.get("JWT"),t={fileName:window.$vueApp.config.globalProperties.officeweb365Url+"/common/fs-upload/download?serverPath="+this.unifiedEnclosure.uuid+"&showName="+this.unifiedEnclosure.fileName+"&jwt="+e};this.$http.post(window.$vueApp.config.globalProperties.baseURL+"/common/fs-upload/des-encrypt",t).then(r=>{window.open(window.$vueApp.config.globalProperties.isOffice+r)})}else{let e;const t=this.unifiedEnclosure.fileName.split(".");t[t.length-1].toLowerCase()==="xls"||t[t.length-1].toLowerCase()==="xlsx"||t[t.length-1].toLowerCase()==="csv"?e=t[0]+".html":e=t[0]+".pdf";const n=getToken();if(window.$vueApp.config.globalProperties.customPreviewUrl)window.open(getSystemFrontendUrl(window.$vueApp.config.globalProperties.portalUrl)+"/#/file-service/preview?serverPath="+this.unifiedEnclosure.uuid+"&showName="+encodeURI(this.unifiedEnclosure.fileName),e);else{let r=window.$vueApp.config.globalProperties.baseURL+"/common/fs-upload/preview?serverPath="+this.unifiedEnclosure.uuid+"&showName="+this.unifiedEnclosure.fileName;isPlateSys(window.$vueApp.config.globalProperties.systemCode)&&(r=window.$vueApp.config.globalProperties.baseAPI+"/common/fs-upload/preview?serverPath="+this.unifiedEnclosure.uuid+"&showName="+this.unifiedEnclosure.fileName+"&jwt="+n),window.open(r,e)}}},upload(e){this.loading=!0;const t=new FormData;t.append("file",this.$refs.uploadTemplate.files[0]);const n=this.$http;n.headers="'Content-Type': 'multipart/form-data'",this.unifiedEnclosure&&(this.deleteUuid=this.unifiedEnclosure.uuid),n.post(window.$vueApp.config.globalProperties.baseURL+"/common/fs-upload/upload-template/"+this.systemCode,t,{headers:{"Content-Type":"multipart/form-data"}}).then(r=>{this.unifiedEnclosure=r,e.target.value="",console.log("data",r),console.log(" this.unifiedEnclosure",this.unifiedEnclosure),this.onSuccess(),this.loading=!1,this.$message({showClose:!0,type:"success",message:this.$t("fsUpload.uploadSucceeded")})}).catch(()=>{e.target.value="",this.loading=!1})}},emits:["deleteSuccess","onSuccess"]},_hoisted_1$5={key:0},_hoisted_2$4=["accept"];function _sfc_render$b(e,t,n,r,i,o){const a=Vue.resolveComponent("el-image"),s=Vue.resolveComponent("el-link"),l=Vue.resolveComponent("el-icon-download"),u=Vue.resolveComponent("el-icon"),c=Vue.resolveComponent("el-tooltip"),d=Vue.resolveComponent("el-icon-delete"),f=Vue.resolveComponent("el-icon-view"),h=Vue.resolveComponent("el-button"),p=Vue.resolveComponent("see-big-picture"),g=Vue.resolveDirective("loading");return Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("div",null,[i.unifiedEnclosure&&i.unifiedEnclosure.uuid&&i.unifiedEnclosure.fileName&&n.isShowData?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$5,[n.isImg?(Vue.openBlock(),Vue.createBlock(a,{key:0,fit:n.fit,"preview-src-list":[i.baseURL+"/common/fs-upload/download?serverPath="+i.unifiedEnclosure.uuid+"&showName="+i.unifiedEnclosure.fileName],src:i.baseURL+"/common/fs-upload/download?serverPath="+i.unifiedEnclosure.uuid+"&showName="+i.unifiedEnclosure.fileName,onClick:o.bigPicture},null,8,["fit","preview-src-list","src","onClick"])):(Vue.openBlock(),Vue.createBlock(s,{key:1,href:i.baseURL+"/common/fs-upload/download?serverPath="+i.unifiedEnclosure.uuid+"&showName="+i.unifiedEnclosure.fileName,type:"primary"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(i.unifiedEnclosure.fileName),1)]),_:1},8,["href"])),Vue.createVNode(c,{content:e.$t("fsUpload.download"),effect:"light"},{default:Vue.withCtx(()=>[n.isImg?(Vue.openBlock(),Vue.createBlock(s,{key:0,href:i.baseURL+"/common/fs-upload/download?serverPath="+i.unifiedEnclosure.uuid+"&showName="+i.unifiedEnclosure.fileName,type:"primary"},{default:Vue.withCtx(()=>[Vue.createVNode(u,{style:{"margin-left":"10px","font-size":"30px"}},{default:Vue.withCtx(()=>[Vue.createVNode(l)]),_:1})]),_:1},8,["href"])):Vue.createCommentVNode("",!0)]),_:1},8,["content"]),Vue.createVNode(c,{content:e.$t("fsUpload.delete"),effect:"light"},{default:Vue.withCtx(()=>[n.disabled?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(u,{key:0,style:{color:"red","margin-left":"10px","font-size":"30px"},onClick:o.deleteFile},{default:Vue.withCtx(()=>[Vue.createVNode(d)]),_:1},8,["onClick"]))]),_:1},8,["content"]),Vue.createVNode(c,{content:e.$t("fsUpload.preview"),effect:"light",style:{"margin-left":"10px","font-size":"30px"}},{default:Vue.withCtx(()=>[n.isImg?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(u,{key:0,onClick:o.preview},{default:Vue.withCtx(()=>[Vue.createVNode(f)]),_:1},8,["onClick"]))]),_:1},8,["content"])])):Vue.createCommentVNode("",!0),n.isShowButton&&!n.disabled?(Vue.openBlock(),Vue.createBlock(h,{key:1,icon:i.ElIconUpload2,size:"small",type:"primary",onClick:o.selectDataFile},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("fsUpload.upload")),1)]),_:1},8,["icon","onClick"])):Vue.createCommentVNode("",!0),Vue.createElementVNode("input",{ref:"uploadTemplate",accept:i.accepts,name:"uploadTemplate",style:{display:"none"},type:"file",onChange:t[0]||(t[0]=(...C)=>o.upload&&o.upload(...C))},null,40,_hoisted_2$4),i.bigPictureVisible?(Vue.openBlock(),Vue.createBlock(p,{key:2,"show-index":i.showIndex,"unified-enclosures":n.data,onClose:t[1]||(t[1]=C=>i.bigPictureVisible=!1)},null,8,["show-index","unified-enclosures"])):Vue.createCommentVNode("",!0)])),[[g,i.loading]])}const fsUploadSingle=_export_sfc(_sfc_main$b,[["render",_sfc_render$b]]),_sfc_main$a={name:"FsUpload",components:{fsUploadMulti,fsUploadSingle},props:{systemCode:{type:String,default:null},accept:{type:String,default:null},isImg:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},isShowList:{type:Boolean,default:!0},fit:{type:String,default:null},disabled:{type:Boolean,default:!1},isShowButton:{type:Boolean,default:!0},isShowData:{type:Boolean,default:!0},data:{type:Array,default:null},imgSize:{type:Number,default:0},fileSize:{type:Number,default:0},tableHeight:{type:String,default:null},isDelete:{type:Boolean,default:!1}},data(){return{deleteUuids:[]}},created(){},methods:{onSuccess(e,t){console.log("data",e),console.log("deleteUuid",t),this.isDelete&&t?(this.deleteFile(t),$emit(this,"onSuccess",e)):(t&&this.deleteUuids.push(t),$emit(this,"onSuccess",e))},deleteSuccess(e,t){console.log("deleteUuid",e),console.log("data",t),this.isDelete?(this.deleteFile(e),$emit(this,"deleteSuccess",t)):(e&&this.deleteUuids.push(e),$emit(this,"deleteSuccess",t))},deleteFile(e){const t=this.$http,n=[e];t.delete(window.$vueApp.config.globalProperties.baseURL+"/common/fs-upload",{data:n}).then(r=>{})},getdeleteUuIds(){return this.deleteUuids}},emits:["onSuccess","deleteSuccess"]};function _sfc_render$a(e,t,n,r,i,o){const a=Vue.resolveComponent("fs-upload-multi"),s=Vue.resolveComponent("fs-upload-single");return Vue.openBlock(),Vue.createElementBlock("div",null,[n.multiple?(Vue.openBlock(),Vue.createBlock(a,{key:0,"system-code":n.systemCode,accept:n.accept,"is-img":n.isImg,"is-show-list":n.isShowList,fit:n.fit,disabled:n.disabled,"is-show-button":n.isShowButton,"is-show-data":n.isShowData,data:n.data,"img-size":n.imgSize,"file-size":n.fileSize,"table-height":n.tableHeight,onOnSuccess:o.onSuccess,onDeleteSuccess:o.deleteSuccess},null,8,["system-code","accept","is-img","is-show-list","fit","disabled","is-show-button","is-show-data","data","img-size","file-size","table-height","onOnSuccess","onDeleteSuccess"])):Vue.createCommentVNode("",!0),n.multiple?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(s,{key:1,"system-code":n.systemCode,accept:n.accept,"is-img":n.isImg,fit:n.fit,disabled:n.disabled,"is-show-button":n.isShowButton,"is-show-data":n.isShowData,data:n.data,onOnSuccess:o.onSuccess,onDeleteSuccess:o.deleteSuccess},null,8,["system-code","accept","is-img","fit","disabled","is-show-button","is-show-data","data","onOnSuccess","onDeleteSuccess"]))])}const FsUpload=_export_sfc(_sfc_main$a,[["render",_sfc_render$a]]);FsUpload.install=function(e){e.component(FsUpload.name,FsUpload)};function fixProto(e,t){var n=Object.setPrototypeOf;n?n(e,t):e.__proto__=t}function fixStack(e,t){t===void 0&&(t=e.constructor);var n=Error.captureStackTrace;n&&n(e,t)}var __extends$19=function(){var e=function(n,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(i[a]=o[a])},e(n,r)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),CustomError=function(e){__extends$19(t,e);function t(n,r){var i=this.constructor,o=e.call(this,n,r)||this;return Object.defineProperty(o,"name",{value:i.name,enumerable:!1,configurable:!0}),fixProto(o,i.prototype),fixStack(o),o}return t}(Error),__extends$18=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Exception=function(e){__extends$18(t,e);function t(n){n===void 0&&(n=void 0);var r=e.call(this,n)||this;return r.message=n,r}return t.prototype.getKind=function(){var n=this.constructor;return n.kind},t.kind="Exception",t}(CustomError),__extends$17=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ArgumentException=function(e){__extends$17(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.kind="ArgumentException",t}(Exception),__extends$16=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),IllegalArgumentException=function(e){__extends$16(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.kind="IllegalArgumentException",t}(Exception),BinaryBitmap=function(){function e(t){if(this.binarizer=t,t===null)throw new IllegalArgumentException("Binarizer must be non-null.")}return e.prototype.getWidth=function(){return this.binarizer.getWidth()},e.prototype.getHeight=function(){return this.binarizer.getHeight()},e.prototype.getBlackRow=function(t,n){return this.binarizer.getBlackRow(t,n)},e.prototype.getBlackMatrix=function(){return(this.matrix===null||this.matrix===void 0)&&(this.matrix=this.binarizer.getBlackMatrix()),this.matrix},e.prototype.isCropSupported=function(){return this.binarizer.getLuminanceSource().isCropSupported()},e.prototype.crop=function(t,n,r,i){var o=this.binarizer.getLuminanceSource().crop(t,n,r,i);return new e(this.binarizer.createBinarizer(o))},e.prototype.isRotateSupported=function(){return this.binarizer.getLuminanceSource().isRotateSupported()},e.prototype.rotateCounterClockwise=function(){var t=this.binarizer.getLuminanceSource().rotateCounterClockwise();return new e(this.binarizer.createBinarizer(t))},e.prototype.rotateCounterClockwise45=function(){var t=this.binarizer.getLuminanceSource().rotateCounterClockwise45();return new e(this.binarizer.createBinarizer(t))},e.prototype.toString=function(){try{return this.getBlackMatrix().toString()}catch{return""}},e}(),__extends$15=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ChecksumException=function(e){__extends$15(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.getChecksumInstance=function(){return new t},t.kind="ChecksumException",t}(Exception),Binarizer=function(){function e(t){this.source=t}return e.prototype.getLuminanceSource=function(){return this.source},e.prototype.getWidth=function(){return this.source.getWidth()},e.prototype.getHeight=function(){return this.source.getHeight()},e}(),System=function(){function e(){}return e.arraycopy=function(t,n,r,i,o){for(;o--;)r[i++]=t[n++]},e.currentTimeMillis=function(){return Date.now()},e}(),__extends$14=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),IndexOutOfBoundsException=function(e){__extends$14(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.kind="IndexOutOfBoundsException",t}(Exception),__extends$13=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ArrayIndexOutOfBoundsException=function(e){__extends$13(t,e);function t(n,r){n===void 0&&(n=void 0),r===void 0&&(r=void 0);var i=e.call(this,r)||this;return i.index=n,i.message=r,i}return t.kind="ArrayIndexOutOfBoundsException",t}(IndexOutOfBoundsException),__values$J=globalThis&&globalThis.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Arrays=function(){function e(){}return e.fill=function(t,n){for(var r=0,i=t.length;r<i;r++)t[r]=n},e.fillWithin=function(t,n,r,i){e.rangeCheck(t.length,n,r);for(var o=n;o<r;o++)t[o]=i},e.rangeCheck=function(t,n,r){if(n>r)throw new IllegalArgumentException("fromIndex("+n+") > toIndex("+r+")");if(n<0)throw new ArrayIndexOutOfBoundsException(n);if(r>t)throw new ArrayIndexOutOfBoundsException(r)},e.asList=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t},e.create=function(t,n,r){var i=Array.from({length:t});return i.map(function(o){return Array.from({length:n}).fill(r)})},e.createInt32Array=function(t,n,r){var i=Array.from({length:t});return i.map(function(o){return Int32Array.from({length:n}).fill(r)})},e.equals=function(t,n){if(!t||!n||!t.length||!n.length||t.length!==n.length)return!1;for(var r=0,i=t.length;r<i;r++)if(t[r]!==n[r])return!1;return!0},e.hashCode=function(t){var n,r;if(t===null)return 0;var i=1;try{for(var o=__values$J(t),a=o.next();!a.done;a=o.next()){var s=a.value;i=31*i+s}}catch(l){n={error:l}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i},e.fillUint8Array=function(t,n){for(var r=0;r!==t.length;r++)t[r]=n},e.copyOf=function(t,n){return t.slice(0,n)},e.copyOfUint8Array=function(t,n){if(t.length<=n){var r=new Uint8Array(n);return r.set(t),r}return t.slice(0,n)},e.copyOfRange=function(t,n,r){var i=r-n,o=new Int32Array(i);return System.arraycopy(t,n,o,0,i),o},e.binarySearch=function(t,n,r){r===void 0&&(r=e.numberComparator);for(var i=0,o=t.length-1;i<=o;){var a=o+i>>1,s=r(n,t[a]);if(s>0)i=a+1;else if(s<0)o=a-1;else return a}return-i-1},e.numberComparator=function(t,n){return t-n},e}(),Integer=function(){function e(){}return e.numberOfTrailingZeros=function(t){var n;if(t===0)return 32;var r=31;return n=t<<16,n!==0&&(r-=16,t=n),n=t<<8,n!==0&&(r-=8,t=n),n=t<<4,n!==0&&(r-=4,t=n),n=t<<2,n!==0&&(r-=2,t=n),r-(t<<1>>>31)},e.numberOfLeadingZeros=function(t){if(t===0)return 32;var n=1;return t>>>16||(n+=16,t<<=16),t>>>24||(n+=8,t<<=8),t>>>28||(n+=4,t<<=4),t>>>30||(n+=2,t<<=2),n-=t>>>31,n},e.toHexString=function(t){return t.toString(16)},e.toBinaryString=function(t){return String(parseInt(String(t),2))},e.bitCount=function(t){return t=t-(t>>>1&1431655765),t=(t&858993459)+(t>>>2&858993459),t=t+(t>>>4)&252645135,t=t+(t>>>8),t=t+(t>>>16),t&63},e.truncDivision=function(t,n){return Math.trunc(t/n)},e.parseInt=function(t,n){return n===void 0&&(n=void 0),parseInt(t,n)},e.MIN_VALUE_32_BITS=-2147483648,e.MAX_VALUE=Number.MAX_SAFE_INTEGER,e}(),BitArray=function(){function e(t,n){t===void 0?(this.size=0,this.bits=new Int32Array(1)):(this.size=t,n==null?this.bits=e.makeArray(t):this.bits=n)}return e.prototype.getSize=function(){return this.size},e.prototype.getSizeInBytes=function(){return Math.floor((this.size+7)/8)},e.prototype.ensureCapacity=function(t){if(t>this.bits.length*32){var n=e.makeArray(t);System.arraycopy(this.bits,0,n,0,this.bits.length),this.bits=n}},e.prototype.get=function(t){return(this.bits[Math.floor(t/32)]&1<<(t&31))!==0},e.prototype.set=function(t){this.bits[Math.floor(t/32)]|=1<<(t&31)},e.prototype.flip=function(t){this.bits[Math.floor(t/32)]^=1<<(t&31)},e.prototype.getNextSet=function(t){var n=this.size;if(t>=n)return n;var r=this.bits,i=Math.floor(t/32),o=r[i];o&=~((1<<(t&31))-1);for(var a=r.length;o===0;){if(++i===a)return n;o=r[i]}var s=i*32+Integer.numberOfTrailingZeros(o);return s>n?n:s},e.prototype.getNextUnset=function(t){var n=this.size;if(t>=n)return n;var r=this.bits,i=Math.floor(t/32),o=~r[i];o&=~((1<<(t&31))-1);for(var a=r.length;o===0;){if(++i===a)return n;o=~r[i]}var s=i*32+Integer.numberOfTrailingZeros(o);return s>n?n:s},e.prototype.setBulk=function(t,n){this.bits[Math.floor(t/32)]=n},e.prototype.setRange=function(t,n){if(n<t||t<0||n>this.size)throw new IllegalArgumentException;if(n!==t){n--;for(var r=Math.floor(t/32),i=Math.floor(n/32),o=this.bits,a=r;a<=i;a++){var s=a>r?0:t&31,l=a<i?31:n&31,u=(2<<l)-(1<<s);o[a]|=u}}},e.prototype.clear=function(){for(var t=this.bits.length,n=this.bits,r=0;r<t;r++)n[r]=0},e.prototype.isRange=function(t,n,r){if(n<t||t<0||n>this.size)throw new IllegalArgumentException;if(n===t)return!0;n--;for(var i=Math.floor(t/32),o=Math.floor(n/32),a=this.bits,s=i;s<=o;s++){var l=s>i?0:t&31,u=s<o?31:n&31,c=(2<<u)-(1<<l)&4294967295;if((a[s]&c)!==(r?c:0))return!1}return!0},e.prototype.appendBit=function(t){this.ensureCapacity(this.size+1),t&&(this.bits[Math.floor(this.size/32)]|=1<<(this.size&31)),this.size++},e.prototype.appendBits=function(t,n){if(n<0||n>32)throw new IllegalArgumentException("Num bits must be between 0 and 32");this.ensureCapacity(this.size+n);for(var r=n;r>0;r--)this.appendBit((t>>r-1&1)===1)},e.prototype.appendBitArray=function(t){var n=t.size;this.ensureCapacity(this.size+n);for(var r=0;r<n;r++)this.appendBit(t.get(r))},e.prototype.xor=function(t){if(this.size!==t.size)throw new IllegalArgumentException("Sizes don't match");for(var n=this.bits,r=0,i=n.length;r<i;r++)n[r]^=t.bits[r]},e.prototype.toBytes=function(t,n,r,i){for(var o=0;o<i;o++){for(var a=0,s=0;s<8;s++)this.get(t)&&(a|=1<<7-s),t++;n[r+o]=a}},e.prototype.getBitArray=function(){return this.bits},e.prototype.reverse=function(){for(var t=new Int32Array(this.bits.length),n=Math.floor((this.size-1)/32),r=n+1,i=this.bits,o=0;o<r;o++){var a=i[o];a=a>>1&1431655765|(a&1431655765)<<1,a=a>>2&858993459|(a&858993459)<<2,a=a>>4&252645135|(a&252645135)<<4,a=a>>8&16711935|(a&16711935)<<8,a=a>>16&65535|(a&65535)<<16,t[n-o]=a}if(this.size!==r*32){for(var s=r*32-this.size,l=t[0]>>>s,o=1;o<r;o++){var u=t[o];l|=u<<32-s,t[o-1]=l,l=u>>>s}t[r-1]=l}this.bits=t},e.makeArray=function(t){return new Int32Array(Math.floor((t+31)/32))},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.size===n.size&&Arrays.equals(this.bits,n.bits)},e.prototype.hashCode=function(){return 31*this.size+Arrays.hashCode(this.bits)},e.prototype.toString=function(){for(var t="",n=0,r=this.size;n<r;n++)n&7||(t+=" "),t+=this.get(n)?"X":".";return t},e.prototype.clone=function(){return new e(this.size,this.bits.slice())},e.prototype.toArray=function(){for(var t=[],n=0,r=this.size;n<r;n++)t.push(this.get(n));return t},e}(),DecodeHintType;(function(e){e[e.OTHER=0]="OTHER",e[e.PURE_BARCODE=1]="PURE_BARCODE",e[e.POSSIBLE_FORMATS=2]="POSSIBLE_FORMATS",e[e.TRY_HARDER=3]="TRY_HARDER",e[e.CHARACTER_SET=4]="CHARACTER_SET",e[e.ALLOWED_LENGTHS=5]="ALLOWED_LENGTHS",e[e.ASSUME_CODE_39_CHECK_DIGIT=6]="ASSUME_CODE_39_CHECK_DIGIT",e[e.ASSUME_GS1=7]="ASSUME_GS1",e[e.RETURN_CODABAR_START_END=8]="RETURN_CODABAR_START_END",e[e.NEED_RESULT_POINT_CALLBACK=9]="NEED_RESULT_POINT_CALLBACK",e[e.ALLOWED_EAN_EXTENSIONS=10]="ALLOWED_EAN_EXTENSIONS"})(DecodeHintType||(DecodeHintType={}));const DecodeHintType$1=DecodeHintType;var __extends$12=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),FormatException=function(e){__extends$12(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.getFormatInstance=function(){return new t},t.kind="FormatException",t}(Exception),__values$I=globalThis&&globalThis.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},CharacterSetValueIdentifiers;(function(e){e[e.Cp437=0]="Cp437",e[e.ISO8859_1=1]="ISO8859_1",e[e.ISO8859_2=2]="ISO8859_2",e[e.ISO8859_3=3]="ISO8859_3",e[e.ISO8859_4=4]="ISO8859_4",e[e.ISO8859_5=5]="ISO8859_5",e[e.ISO8859_6=6]="ISO8859_6",e[e.ISO8859_7=7]="ISO8859_7",e[e.ISO8859_8=8]="ISO8859_8",e[e.ISO8859_9=9]="ISO8859_9",e[e.ISO8859_10=10]="ISO8859_10",e[e.ISO8859_11=11]="ISO8859_11",e[e.ISO8859_13=12]="ISO8859_13",e[e.ISO8859_14=13]="ISO8859_14",e[e.ISO8859_15=14]="ISO8859_15",e[e.ISO8859_16=15]="ISO8859_16",e[e.SJIS=16]="SJIS",e[e.Cp1250=17]="Cp1250",e[e.Cp1251=18]="Cp1251",e[e.Cp1252=19]="Cp1252",e[e.Cp1256=20]="Cp1256",e[e.UnicodeBigUnmarked=21]="UnicodeBigUnmarked",e[e.UTF8=22]="UTF8",e[e.ASCII=23]="ASCII",e[e.Big5=24]="Big5",e[e.GB18030=25]="GB18030",e[e.EUC_KR=26]="EUC_KR"})(CharacterSetValueIdentifiers||(CharacterSetValueIdentifiers={}));var CharacterSetECI=function(){function e(t,n,r){for(var i,o,a=[],s=3;s<arguments.length;s++)a[s-3]=arguments[s];this.valueIdentifier=t,this.name=r,typeof n=="number"?this.values=Int32Array.from([n]):this.values=n,this.otherEncodingNames=a,e.VALUE_IDENTIFIER_TO_ECI.set(t,this),e.NAME_TO_ECI.set(r,this);for(var l=this.values,u=0,c=l.length;u!==c;u++){var d=l[u];e.VALUES_TO_ECI.set(d,this)}try{for(var f=__values$I(a),h=f.next();!h.done;h=f.next()){var p=h.value;e.NAME_TO_ECI.set(p,this)}}catch(g){i={error:g}}finally{try{h&&!h.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}}return e.prototype.getValueIdentifier=function(){return this.valueIdentifier},e.prototype.getName=function(){return this.name},e.prototype.getValue=function(){return this.values[0]},e.getCharacterSetECIByValue=function(t){if(t<0||t>=900)throw new FormatException("incorect value");var n=e.VALUES_TO_ECI.get(t);if(n===void 0)throw new FormatException("incorect value");return n},e.getCharacterSetECIByName=function(t){var n=e.NAME_TO_ECI.get(t);if(n===void 0)throw new FormatException("incorect value");return n},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.getName()===n.getName()},e.VALUE_IDENTIFIER_TO_ECI=new Map,e.VALUES_TO_ECI=new Map,e.NAME_TO_ECI=new Map,e.Cp437=new e(CharacterSetValueIdentifiers.Cp437,Int32Array.from([0,2]),"Cp437"),e.ISO8859_1=new e(CharacterSetValueIdentifiers.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1"),e.ISO8859_2=new e(CharacterSetValueIdentifiers.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2"),e.ISO8859_3=new e(CharacterSetValueIdentifiers.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3"),e.ISO8859_4=new e(CharacterSetValueIdentifiers.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4"),e.ISO8859_5=new e(CharacterSetValueIdentifiers.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5"),e.ISO8859_6=new e(CharacterSetValueIdentifiers.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6"),e.ISO8859_7=new e(CharacterSetValueIdentifiers.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7"),e.ISO8859_8=new e(CharacterSetValueIdentifiers.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8"),e.ISO8859_9=new e(CharacterSetValueIdentifiers.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9"),e.ISO8859_10=new e(CharacterSetValueIdentifiers.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10"),e.ISO8859_11=new e(CharacterSetValueIdentifiers.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11"),e.ISO8859_13=new e(CharacterSetValueIdentifiers.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13"),e.ISO8859_14=new e(CharacterSetValueIdentifiers.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14"),e.ISO8859_15=new e(CharacterSetValueIdentifiers.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15"),e.ISO8859_16=new e(CharacterSetValueIdentifiers.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16"),e.SJIS=new e(CharacterSetValueIdentifiers.SJIS,20,"SJIS","Shift_JIS"),e.Cp1250=new e(CharacterSetValueIdentifiers.Cp1250,21,"Cp1250","windows-1250"),e.Cp1251=new e(CharacterSetValueIdentifiers.Cp1251,22,"Cp1251","windows-1251"),e.Cp1252=new e(CharacterSetValueIdentifiers.Cp1252,23,"Cp1252","windows-1252"),e.Cp1256=new e(CharacterSetValueIdentifiers.Cp1256,24,"Cp1256","windows-1256"),e.UnicodeBigUnmarked=new e(CharacterSetValueIdentifiers.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig"),e.UTF8=new e(CharacterSetValueIdentifiers.UTF8,26,"UTF8","UTF-8"),e.ASCII=new e(CharacterSetValueIdentifiers.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII"),e.Big5=new e(CharacterSetValueIdentifiers.Big5,28,"Big5"),e.GB18030=new e(CharacterSetValueIdentifiers.GB18030,29,"GB18030","GB2312","EUC_CN","GBK"),e.EUC_KR=new e(CharacterSetValueIdentifiers.EUC_KR,30,"EUC_KR","EUC-KR"),e}(),__extends$11=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),UnsupportedOperationException=function(e){__extends$11(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.kind="UnsupportedOperationException",t}(Exception),StringEncoding=function(){function e(){}return e.decode=function(t,n){var r=this.encodingName(n);return this.customDecoder?this.customDecoder(t,r):typeof TextDecoder>"u"||this.shouldDecodeOnFallback(r)?this.decodeFallback(t,r):new TextDecoder(r).decode(t)},e.shouldDecodeOnFallback=function(t){return!e.isBrowser()&&t==="ISO-8859-1"},e.encode=function(t,n){var r=this.encodingName(n);return this.customEncoder?this.customEncoder(t,r):typeof TextEncoder>"u"?this.encodeFallback(t):new TextEncoder().encode(t)},e.isBrowser=function(){return typeof window<"u"&&{}.toString.call(window)==="[object Window]"},e.encodingName=function(t){return typeof t=="string"?t:t.getName()},e.encodingCharacterSet=function(t){return t instanceof CharacterSetECI?t:CharacterSetECI.getCharacterSetECIByName(t)},e.decodeFallback=function(t,n){var r=this.encodingCharacterSet(n);if(e.isDecodeFallbackSupported(r)){for(var i="",o=0,a=t.length;o<a;o++){var s=t[o].toString(16);s.length<2&&(s="0"+s),i+="%"+s}return decodeURIComponent(i)}if(r.equals(CharacterSetECI.UnicodeBigUnmarked))return String.fromCharCode.apply(null,new Uint16Array(t.buffer));throw new UnsupportedOperationException("Encoding "+this.encodingName(n)+" not supported by fallback.")},e.isDecodeFallbackSupported=function(t){return t.equals(CharacterSetECI.UTF8)||t.equals(CharacterSetECI.ISO8859_1)||t.equals(CharacterSetECI.ASCII)},e.encodeFallback=function(t){for(var n=btoa(unescape(encodeURIComponent(t))),r=n.split(""),i=[],o=0;o<r.length;o++)i.push(r[o].charCodeAt(0));return new Uint8Array(i)},e}(),StringUtils=function(){function e(){}return e.castAsNonUtf8Char=function(t,n){n===void 0&&(n=null);var r=n?n.getName():this.ISO88591;return StringEncoding.decode(new Uint8Array([t]),r)},e.guessEncoding=function(t,n){if(n!=null&&n.get(DecodeHintType$1.CHARACTER_SET)!==void 0)return n.get(DecodeHintType$1.CHARACTER_SET).toString();for(var r=t.length,i=!0,o=!0,a=!0,s=0,l=0,u=0,c=0,d=0,f=0,h=0,p=0,g=0,C=0,v=0,m=t.length>3&&t[0]===239&&t[1]===187&&t[2]===191,_=0;_<r&&(i||o||a);_++){var E=t[_]&255;a&&(s>0?E&128?s--:a=!1:E&128&&(E&64?(s++,E&32?(s++,E&16?(s++,E&8?a=!1:c++):u++):l++):a=!1)),i&&(E>127&&E<160?i=!1:E>159&&(E<192||E===215||E===247)&&v++),o&&(d>0?E<64||E===127||E>252?o=!1:d--:E===128||E===160||E>239?o=!1:E>160&&E<224?(f++,p=0,h++,h>g&&(g=h)):E>127?(d++,h=0,p++,p>C&&(C=p)):(h=0,p=0))}return a&&s>0&&(a=!1),o&&d>0&&(o=!1),a&&(m||l+u+c>0)?e.UTF8:o&&(e.ASSUME_SHIFT_JIS||g>=3||C>=3)?e.SHIFT_JIS:i&&o?g===2&&f===2||v*10>=r?e.SHIFT_JIS:e.ISO88591:i?e.ISO88591:o?e.SHIFT_JIS:a?e.UTF8:e.PLATFORM_DEFAULT_ENCODING},e.format=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=-1;function o(s,l,u,c,d,f){if(s==="%%")return"%";if(n[++i]!==void 0){s=c?parseInt(c.substr(1)):void 0;var h=d?parseInt(d.substr(1)):void 0,p;switch(f){case"s":p=n[i];break;case"c":p=n[i][0];break;case"f":p=parseFloat(n[i]).toFixed(s);break;case"p":p=parseFloat(n[i]).toPrecision(s);break;case"e":p=parseFloat(n[i]).toExponential(s);break;case"x":p=parseInt(n[i]).toString(h||16);break;case"d":p=parseFloat(parseInt(n[i],h||10).toPrecision(s)).toFixed(0);break}p=typeof p=="object"?JSON.stringify(p):(+p).toString(h);for(var g=parseInt(u),C=u&&u[0]+""=="0"?"0":" ";p.length<g;)p=l!==void 0?p+C:C+p;return p}}var a=/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g;return t.replace(a,o)},e.getBytes=function(t,n){return StringEncoding.encode(t,n)},e.getCharCode=function(t,n){return n===void 0&&(n=0),t.charCodeAt(n)},e.getCharAt=function(t){return String.fromCharCode(t)},e.SHIFT_JIS=CharacterSetECI.SJIS.getName(),e.GB2312="GB2312",e.ISO88591=CharacterSetECI.ISO8859_1.getName(),e.EUC_JP="EUC_JP",e.UTF8=CharacterSetECI.UTF8.getName(),e.PLATFORM_DEFAULT_ENCODING=e.UTF8,e.ASSUME_SHIFT_JIS=!1,e}(),StringBuilder=function(){function e(t){t===void 0&&(t=""),this.value=t}return e.prototype.enableDecoding=function(t){return this.encoding=t,this},e.prototype.append=function(t){return typeof t=="string"?this.value+=t.toString():this.encoding?this.value+=StringUtils.castAsNonUtf8Char(t,this.encoding):this.value+=String.fromCharCode(t),this},e.prototype.appendChars=function(t,n,r){for(var i=n;n<n+r;i++)this.append(t[i]);return this},e.prototype.length=function(){return this.value.length},e.prototype.charAt=function(t){return this.value.charAt(t)},e.prototype.deleteCharAt=function(t){this.value=this.value.substr(0,t)+this.value.substring(t+1)},e.prototype.setCharAt=function(t,n){this.value=this.value.substr(0,t)+n+this.value.substr(t+1)},e.prototype.substring=function(t,n){return this.value.substring(t,n)},e.prototype.setLengthToZero=function(){this.value=""},e.prototype.toString=function(){return this.value},e.prototype.insert=function(t,n){this.value=this.value.substring(0,t)+n+this.value.substring(t)},e}(),BitMatrix=function(){function e(t,n,r,i){if(this.width=t,this.height=n,this.rowSize=r,this.bits=i,n==null&&(n=t),this.height=n,t<1||n<1)throw new IllegalArgumentException("Both dimensions must be greater than 0");r==null&&(r=Math.floor((t+31)/32)),this.rowSize=r,i==null&&(this.bits=new Int32Array(this.rowSize*this.height))}return e.parseFromBooleanArray=function(t){for(var n=t.length,r=t[0].length,i=new e(r,n),o=0;o<n;o++)for(var a=t[o],s=0;s<r;s++)a[s]&&i.set(s,o);return i},e.parseFromString=function(t,n,r){if(t===null)throw new IllegalArgumentException("stringRepresentation cannot be null");for(var i=new Array(t.length),o=0,a=0,s=-1,l=0,u=0;u<t.length;)if(t.charAt(u)===`
73
67
  `||t.charAt(u)==="\r"){if(o>a){if(s===-1)s=o-a;else if(o-a!==s)throw new IllegalArgumentException("row lengths do not match");a=o,l++}u++}else if(t.substring(u,u+n.length)===n)u+=n.length,i[o]=!0,o++;else if(t.substring(u,u+r.length)===r)u+=r.length,i[o]=!1,o++;else throw new IllegalArgumentException("illegal character encountered: "+t.substring(u));if(o>a){if(s===-1)s=o-a;else if(o-a!==s)throw new IllegalArgumentException("row lengths do not match");l++}for(var c=new e(s,l),d=0;d<o;d++)i[d]&&c.set(Math.floor(d%s),Math.floor(d/s));return c},e.prototype.get=function(t,n){var r=n*this.rowSize+Math.floor(t/32);return(this.bits[r]>>>(t&31)&1)!==0},e.prototype.set=function(t,n){var r=n*this.rowSize+Math.floor(t/32);this.bits[r]|=1<<(t&31)&4294967295},e.prototype.unset=function(t,n){var r=n*this.rowSize+Math.floor(t/32);this.bits[r]&=~(1<<(t&31)&4294967295)},e.prototype.flip=function(t,n){var r=n*this.rowSize+Math.floor(t/32);this.bits[r]^=1<<(t&31)&4294967295},e.prototype.xor=function(t){if(this.width!==t.getWidth()||this.height!==t.getHeight()||this.rowSize!==t.getRowSize())throw new IllegalArgumentException("input matrix dimensions do not match");for(var n=new BitArray(Math.floor(this.width/32)+1),r=this.rowSize,i=this.bits,o=0,a=this.height;o<a;o++)for(var s=o*r,l=t.getRow(o,n).getBitArray(),u=0;u<r;u++)i[s+u]^=l[u]},e.prototype.clear=function(){for(var t=this.bits,n=t.length,r=0;r<n;r++)t[r]=0},e.prototype.setRegion=function(t,n,r,i){if(n<0||t<0)throw new IllegalArgumentException("Left and top must be nonnegative");if(i<1||r<1)throw new IllegalArgumentException("Height and width must be at least 1");var o=t+r,a=n+i;if(a>this.height||o>this.width)throw new IllegalArgumentException("The region must fit inside the matrix");for(var s=this.rowSize,l=this.bits,u=n;u<a;u++)for(var c=u*s,d=t;d<o;d++)l[c+Math.floor(d/32)]|=1<<(d&31)&4294967295},e.prototype.getRow=function(t,n){n==null||n.getSize()<this.width?n=new BitArray(this.width):n.clear();for(var r=this.rowSize,i=this.bits,o=t*r,a=0;a<r;a++)n.setBulk(a*32,i[o+a]);return n},e.prototype.setRow=function(t,n){System.arraycopy(n.getBitArray(),0,this.bits,t*this.rowSize,this.rowSize)},e.prototype.rotate180=function(){for(var t=this.getWidth(),n=this.getHeight(),r=new BitArray(t),i=new BitArray(t),o=0,a=Math.floor((n+1)/2);o<a;o++)r=this.getRow(o,r),i=this.getRow(n-1-o,i),r.reverse(),i.reverse(),this.setRow(o,i),this.setRow(n-1-o,r)},e.prototype.getEnclosingRectangle=function(){for(var t=this.width,n=this.height,r=this.rowSize,i=this.bits,o=t,a=n,s=-1,l=-1,u=0;u<n;u++)for(var c=0;c<r;c++){var d=i[u*r+c];if(d!==0){if(u<a&&(a=u),u>l&&(l=u),c*32<o){for(var f=0;!(d<<31-f&4294967295);)f++;c*32+f<o&&(o=c*32+f)}if(c*32+31>s){for(var f=31;!(d>>>f);)f--;c*32+f>s&&(s=c*32+f)}}}return s<o||l<a?null:Int32Array.from([o,a,s-o+1,l-a+1])},e.prototype.getTopLeftOnBit=function(){for(var t=this.rowSize,n=this.bits,r=0;r<n.length&&n[r]===0;)r++;if(r===n.length)return null;for(var i=r/t,o=r%t*32,a=n[r],s=0;!(a<<31-s&4294967295);)s++;return o+=s,Int32Array.from([o,i])},e.prototype.getBottomRightOnBit=function(){for(var t=this.rowSize,n=this.bits,r=n.length-1;r>=0&&n[r]===0;)r--;if(r<0)return null;for(var i=Math.floor(r/t),o=Math.floor(r%t)*32,a=n[r],s=31;!(a>>>s);)s--;return o+=s,Int32Array.from([o,i])},e.prototype.getWidth=function(){return this.width},e.prototype.getHeight=function(){return this.height},e.prototype.getRowSize=function(){return this.rowSize},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.width===n.width&&this.height===n.height&&this.rowSize===n.rowSize&&Arrays.equals(this.bits,n.bits)},e.prototype.hashCode=function(){var t=this.width;return t=31*t+this.width,t=31*t+this.height,t=31*t+this.rowSize,t=31*t+Arrays.hashCode(this.bits),t},e.prototype.toString=function(t,n,r){return t===void 0&&(t="X "),n===void 0&&(n=" "),r===void 0&&(r=`
74
68
  `),this.buildToString(t,n,r)},e.prototype.buildToString=function(t,n,r){for(var i=new StringBuilder,o=0,a=this.height;o<a;o++){for(var s=0,l=this.width;s<l;s++)i.append(this.get(s,o)?t:n);i.append(r)}return i.toString()},e.prototype.clone=function(){return new e(this.width,this.height,this.rowSize,this.bits.slice())},e}(),__extends$10=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),NotFoundException=function(e){__extends$10(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.getNotFoundInstance=function(){return new t},t.kind="NotFoundException",t}(Exception),__extends$$=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),GlobalHistogramBinarizer=function(e){__extends$$(t,e);function t(n){var r=e.call(this,n)||this;return r.luminances=t.EMPTY,r.buckets=new Int32Array(t.LUMINANCE_BUCKETS),r}return t.prototype.getBlackRow=function(n,r){var i=this.getLuminanceSource(),o=i.getWidth();r==null||r.getSize()<o?r=new BitArray(o):r.clear(),this.initArrays(o);for(var a=i.getRow(n,this.luminances),s=this.buckets,l=0;l<o;l++)s[(a[l]&255)>>t.LUMINANCE_SHIFT]++;var u=t.estimateBlackPoint(s);if(o<3)for(var l=0;l<o;l++)(a[l]&255)<u&&r.set(l);else for(var c=a[0]&255,d=a[1]&255,l=1;l<o-1;l++){var f=a[l+1]&255;(d*4-c-f)/2<u&&r.set(l),c=d,d=f}return r},t.prototype.getBlackMatrix=function(){var n=this.getLuminanceSource(),r=n.getWidth(),i=n.getHeight(),o=new BitMatrix(r,i);this.initArrays(r);for(var a=this.buckets,s=1;s<5;s++)for(var l=Math.floor(i*s/5),u=n.getRow(l,this.luminances),c=Math.floor(r*4/5),d=Math.floor(r/5);d<c;d++){var f=u[d]&255;a[f>>t.LUMINANCE_SHIFT]++}for(var h=t.estimateBlackPoint(a),p=n.getMatrix(),s=0;s<i;s++)for(var g=s*r,d=0;d<r;d++){var f=p[g+d]&255;f<h&&o.set(d,s)}return o},t.prototype.createBinarizer=function(n){return new t(n)},t.prototype.initArrays=function(n){this.luminances.length<n&&(this.luminances=new Uint8ClampedArray(n));for(var r=this.buckets,i=0;i<t.LUMINANCE_BUCKETS;i++)r[i]=0},t.estimateBlackPoint=function(n){for(var r=n.length,i=0,o=0,a=0,s=0;s<r;s++)n[s]>a&&(o=s,a=n[s]),n[s]>i&&(i=n[s]);for(var l=0,u=0,s=0;s<r;s++){var c=s-o,d=n[s]*c*c;d>u&&(l=s,u=d)}if(o>l){var f=o;o=l,l=f}if(l-o<=r/16)throw new NotFoundException;for(var h=l-1,p=-1,s=l-1;s>o;s--){var g=s-o,d=g*g*(l-s)*(i-n[s]);d>p&&(h=s,p=d)}return h<<t.LUMINANCE_SHIFT},t.LUMINANCE_BITS=5,t.LUMINANCE_SHIFT=8-t.LUMINANCE_BITS,t.LUMINANCE_BUCKETS=1<<t.LUMINANCE_BITS,t.EMPTY=Uint8ClampedArray.from([0]),t}(Binarizer),__extends$_=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),HybridBinarizer=function(e){__extends$_(t,e);function t(n){var r=e.call(this,n)||this;return r.matrix=null,r}return t.prototype.getBlackMatrix=function(){if(this.matrix!==null)return this.matrix;var n=this.getLuminanceSource(),r=n.getWidth(),i=n.getHeight();if(r>=t.MINIMUM_DIMENSION&&i>=t.MINIMUM_DIMENSION){var o=n.getMatrix(),a=r>>t.BLOCK_SIZE_POWER;r&t.BLOCK_SIZE_MASK&&a++;var s=i>>t.BLOCK_SIZE_POWER;i&t.BLOCK_SIZE_MASK&&s++;var l=t.calculateBlackPoints(o,a,s,r,i),u=new BitMatrix(r,i);t.calculateThresholdForBlock(o,a,s,r,i,l,u),this.matrix=u}else this.matrix=e.prototype.getBlackMatrix.call(this);return this.matrix},t.prototype.createBinarizer=function(n){return new t(n)},t.calculateThresholdForBlock=function(n,r,i,o,a,s,l){for(var u=a-t.BLOCK_SIZE,c=o-t.BLOCK_SIZE,d=0;d<i;d++){var f=d<<t.BLOCK_SIZE_POWER;f>u&&(f=u);for(var h=t.cap(d,2,i-3),p=0;p<r;p++){var g=p<<t.BLOCK_SIZE_POWER;g>c&&(g=c);for(var C=t.cap(p,2,r-3),v=0,m=-2;m<=2;m++){var _=s[h+m];v+=_[C-2]+_[C-1]+_[C]+_[C+1]+_[C+2]}var E=v/25;t.thresholdBlock(n,g,f,E,o,l)}}},t.cap=function(n,r,i){return n<r?r:n>i?i:n},t.thresholdBlock=function(n,r,i,o,a,s){for(var l=0,u=i*a+r;l<t.BLOCK_SIZE;l++,u+=a)for(var c=0;c<t.BLOCK_SIZE;c++)(n[u+c]&255)<=o&&s.set(r+c,i+l)},t.calculateBlackPoints=function(n,r,i,o,a){for(var s=a-t.BLOCK_SIZE,l=o-t.BLOCK_SIZE,u=new Array(i),c=0;c<i;c++){u[c]=new Int32Array(r);var d=c<<t.BLOCK_SIZE_POWER;d>s&&(d=s);for(var f=0;f<r;f++){var h=f<<t.BLOCK_SIZE_POWER;h>l&&(h=l);for(var p=0,g=255,C=0,v=0,m=d*o+h;v<t.BLOCK_SIZE;v++,m+=o){for(var _=0;_<t.BLOCK_SIZE;_++){var E=n[m+_]&255;p+=E,E<g&&(g=E),E>C&&(C=E)}if(C-g>t.MIN_DYNAMIC_RANGE)for(v++,m+=o;v<t.BLOCK_SIZE;v++,m+=o)for(var _=0;_<t.BLOCK_SIZE;_++)p+=n[m+_]&255}var x=p>>t.BLOCK_SIZE_POWER*2;if(C-g<=t.MIN_DYNAMIC_RANGE&&(x=g/2,c>0&&f>0)){var w=(u[c-1][f]+2*u[c][f-1]+u[c-1][f-1])/4;g<w&&(x=w)}u[c][f]=x}}return u},t.BLOCK_SIZE_POWER=3,t.BLOCK_SIZE=1<<t.BLOCK_SIZE_POWER,t.BLOCK_SIZE_MASK=t.BLOCK_SIZE-1,t.MINIMUM_DIMENSION=t.BLOCK_SIZE*5,t.MIN_DYNAMIC_RANGE=24,t}(GlobalHistogramBinarizer),LuminanceSource=function(){function e(t,n){this.width=t,this.height=n}return e.prototype.getWidth=function(){return this.width},e.prototype.getHeight=function(){return this.height},e.prototype.isCropSupported=function(){return!1},e.prototype.crop=function(t,n,r,i){throw new UnsupportedOperationException("This luminance source does not support cropping.")},e.prototype.isRotateSupported=function(){return!1},e.prototype.rotateCounterClockwise=function(){throw new UnsupportedOperationException("This luminance source does not support rotation by 90 degrees.")},e.prototype.rotateCounterClockwise45=function(){throw new UnsupportedOperationException("This luminance source does not support rotation by 45 degrees.")},e.prototype.toString=function(){for(var t=new Uint8ClampedArray(this.width),n=new StringBuilder,r=0;r<this.height;r++){for(var i=this.getRow(r,t),o=0;o<this.width;o++){var a=i[o]&255,s=void 0;a<64?s="#":a<128?s="+":a<192?s=".":s=" ",n.append(s)}n.append(`
75
69
  `)}return n.toString()},e}(),__extends$Z=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),InvertedLuminanceSource=function(e){__extends$Z(t,e);function t(n){var r=e.call(this,n.getWidth(),n.getHeight())||this;return r.delegate=n,r}return t.prototype.getRow=function(n,r){for(var i=this.delegate.getRow(n,r),o=this.getWidth(),a=0;a<o;a++)i[a]=255-(i[a]&255);return i},t.prototype.getMatrix=function(){for(var n=this.delegate.getMatrix(),r=this.getWidth()*this.getHeight(),i=new Uint8ClampedArray(r),o=0;o<r;o++)i[o]=255-(n[o]&255);return i},t.prototype.isCropSupported=function(){return this.delegate.isCropSupported()},t.prototype.crop=function(n,r,i,o){return new t(this.delegate.crop(n,r,i,o))},t.prototype.isRotateSupported=function(){return this.delegate.isRotateSupported()},t.prototype.invert=function(){return this.delegate},t.prototype.rotateCounterClockwise=function(){return new t(this.delegate.rotateCounterClockwise())},t.prototype.rotateCounterClockwise45=function(){return new t(this.delegate.rotateCounterClockwise45())},t}(LuminanceSource),__extends$Y=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),HTMLCanvasElementLuminanceSource=function(e){__extends$Y(t,e);function t(n){var r=e.call(this,n.width,n.height)||this;return r.canvas=n,r.tempCanvasElement=null,r.buffer=t.makeBufferFromCanvasImageData(n),r}return t.makeBufferFromCanvasImageData=function(n){var r=n.getContext("2d").getImageData(0,0,n.width,n.height);return t.toGrayscaleBuffer(r.data,n.width,n.height)},t.toGrayscaleBuffer=function(n,r,i){var o=new Uint8ClampedArray(r*i);if(t.FRAME_INDEX=!t.FRAME_INDEX,t.FRAME_INDEX)for(var a=0,s=0,l=n.length;a<l;a+=4,s++){var u=void 0,c=n[a+3];if(c===0)u=255;else{var d=n[a],f=n[a+1],h=n[a+2];u=306*d+601*f+117*h+512>>10}o[s]=u}else for(var a=0,s=0,p=n.length;a<p;a+=4,s++){var u=void 0,c=n[a+3];if(c===0)u=255;else{var d=n[a],f=n[a+1],h=n[a+2];u=306*d+601*f+117*h+512>>10}o[s]=255-u}return o},t.prototype.getRow=function(n,r){if(n<0||n>=this.getHeight())throw new IllegalArgumentException("Requested row is outside the image: "+n);var i=this.getWidth(),o=n*i;return r===null?r=this.buffer.slice(o,o+i):(r.length<i&&(r=new Uint8ClampedArray(i)),r.set(this.buffer.slice(o,o+i))),r},t.prototype.getMatrix=function(){return this.buffer},t.prototype.isCropSupported=function(){return!0},t.prototype.crop=function(n,r,i,o){return e.prototype.crop.call(this,n,r,i,o),this},t.prototype.isRotateSupported=function(){return!0},t.prototype.rotateCounterClockwise=function(){return this.rotate(-90),this},t.prototype.rotateCounterClockwise45=function(){return this.rotate(-45),this},t.prototype.getTempCanvasElement=function(){if(this.tempCanvasElement===null){var n=this.canvas.ownerDocument.createElement("canvas");n.width=this.canvas.width,n.height=this.canvas.height,this.tempCanvasElement=n}return this.tempCanvasElement},t.prototype.rotate=function(n){var r=this.getTempCanvasElement(),i=r.getContext("2d"),o=n*t.DEGREE_TO_RADIANS,a=this.canvas.width,s=this.canvas.height,l=Math.ceil(Math.abs(Math.cos(o))*a+Math.abs(Math.sin(o))*s),u=Math.ceil(Math.abs(Math.sin(o))*a+Math.abs(Math.cos(o))*s);return r.width=l,r.height=u,i.translate(l/2,u/2),i.rotate(o),i.drawImage(this.canvas,a/-2,s/-2),this.buffer=t.makeBufferFromCanvasImageData(r),this},t.prototype.invert=function(){return new InvertedLuminanceSource(this)},t.DEGREE_TO_RADIANS=Math.PI/180,t.FRAME_INDEX=!0,t}(LuminanceSource),VideoInputDevice=function(){function e(t,n,r){this.deviceId=t,this.label=n,this.kind="videoinput",this.groupId=r||void 0}return e.prototype.toJSON=function(){return{kind:this.kind,groupId:this.groupId,deviceId:this.deviceId,label:this.label}},e}(),__awaiter=globalThis&&globalThis.__awaiter||function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(c){try{u(r.next(c))}catch(d){a(d)}}function l(c){try{u(r.throw(c))}catch(d){a(d)}}function u(c){c.done?o(c.value):i(c.value).then(s,l)}u((r=r.apply(e,t||[])).next())})},__generator=globalThis&&globalThis.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},__values$H=globalThis&&globalThis.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},BrowserCodeReader=function(){function e(t,n,r){n===void 0&&(n=500),this.reader=t,this.timeBetweenScansMillis=n,this._hints=r,this._stopContinuousDecode=!1,this._stopAsyncDecode=!1,this._timeBetweenDecodingAttempts=0}return Object.defineProperty(e.prototype,"hasNavigator",{get:function(){return typeof navigator<"u"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isMediaDevicesSuported",{get:function(){return this.hasNavigator&&!!navigator.mediaDevices},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canEnumerateDevices",{get:function(){return!!(this.isMediaDevicesSuported&&navigator.mediaDevices.enumerateDevices)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"timeBetweenDecodingAttempts",{get:function(){return this._timeBetweenDecodingAttempts},set:function(t){this._timeBetweenDecodingAttempts=t<0?0:t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hints",{get:function(){return this._hints},set:function(t){this._hints=t||null},enumerable:!1,configurable:!0}),e.prototype.listVideoInputDevices=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o,a,s,l,u,c,d,f;return __generator(this,function(h){switch(h.label){case 0:if(!this.hasNavigator)throw new Error("Can't enumerate devices, navigator is not present.");if(!this.canEnumerateDevices)throw new Error("Can't enumerate devices, method not supported.");return[4,navigator.mediaDevices.enumerateDevices()];case 1:t=h.sent(),n=[];try{for(r=__values$H(t),i=r.next();!i.done;i=r.next())o=i.value,a=o.kind==="video"?"videoinput":o.kind,a==="videoinput"&&(s=o.deviceId||o.id,l=o.label||"Video device "+(n.length+1),u=o.groupId,c={deviceId:s,label:l,kind:a,groupId:u},n.push(c))}catch(p){d={error:p}}finally{try{i&&!i.done&&(f=r.return)&&f.call(r)}finally{if(d)throw d.error}}return[2,n]}})})},e.prototype.getVideoInputDevices=function(){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,this.listVideoInputDevices()];case 1:return t=n.sent(),[2,t.map(function(r){return new VideoInputDevice(r.deviceId,r.label)})]}})})},e.prototype.findDeviceById=function(t){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(r){switch(r.label){case 0:return[4,this.listVideoInputDevices()];case 1:return n=r.sent(),n?[2,n.find(function(i){return i.deviceId===t})]:[2,null]}})})},e.prototype.decodeFromInputVideoDevice=function(t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){switch(r.label){case 0:return[4,this.decodeOnceFromVideoDevice(t,n)];case 1:return[2,r.sent()]}})})},e.prototype.decodeOnceFromVideoDevice=function(t,n){return __awaiter(this,void 0,void 0,function(){var r,i;return __generator(this,function(o){switch(o.label){case 0:return this.reset(),t?r={deviceId:{exact:t}}:r={facingMode:"environment"},i={video:r},[4,this.decodeOnceFromConstraints(i,n)];case 1:return[2,o.sent()]}})})},e.prototype.decodeOnceFromConstraints=function(t,n){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){switch(i.label){case 0:return[4,navigator.mediaDevices.getUserMedia(t)];case 1:return r=i.sent(),[4,this.decodeOnceFromStream(r,n)];case 2:return[2,i.sent()]}})})},e.prototype.decodeOnceFromStream=function(t,n){return __awaiter(this,void 0,void 0,function(){var r,i;return __generator(this,function(o){switch(o.label){case 0:return this.reset(),[4,this.attachStreamToVideo(t,n)];case 1:return r=o.sent(),[4,this.decodeOnce(r)];case 2:return i=o.sent(),[2,i]}})})},e.prototype.decodeFromInputVideoDeviceContinuously=function(t,n,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){switch(i.label){case 0:return[4,this.decodeFromVideoDevice(t,n,r)];case 1:return[2,i.sent()]}})})},e.prototype.decodeFromVideoDevice=function(t,n,r){return __awaiter(this,void 0,void 0,function(){var i,o;return __generator(this,function(a){switch(a.label){case 0:return t?i={deviceId:{exact:t}}:i={facingMode:"environment"},o={video:i},[4,this.decodeFromConstraints(o,n,r)];case 1:return[2,a.sent()]}})})},e.prototype.decodeFromConstraints=function(t,n,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){switch(o.label){case 0:return[4,navigator.mediaDevices.getUserMedia(t)];case 1:return i=o.sent(),[4,this.decodeFromStream(i,n,r)];case 2:return[2,o.sent()]}})})},e.prototype.decodeFromStream=function(t,n,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){switch(o.label){case 0:return this.reset(),[4,this.attachStreamToVideo(t,n)];case 1:return i=o.sent(),[4,this.decodeContinuously(i,r)];case 2:return[2,o.sent()]}})})},e.prototype.stopAsyncDecode=function(){this._stopAsyncDecode=!0},e.prototype.stopContinuousDecode=function(){this._stopContinuousDecode=!0},e.prototype.attachStreamToVideo=function(t,n){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){switch(i.label){case 0:return r=this.prepareVideoElement(n),this.addVideoSource(r,t),this.videoElement=r,this.stream=t,[4,this.playVideoOnLoadAsync(r)];case 1:return i.sent(),[2,r]}})})},e.prototype.playVideoOnLoadAsync=function(t){var n=this;return new Promise(function(r,i){return n.playVideoOnLoad(t,function(){return r()})})},e.prototype.playVideoOnLoad=function(t,n){var r=this;this.videoEndedListener=function(){return r.stopStreams()},this.videoCanPlayListener=function(){return r.tryPlayVideo(t)},t.addEventListener("ended",this.videoEndedListener),t.addEventListener("canplay",this.videoCanPlayListener),t.addEventListener("playing",n),this.tryPlayVideo(t)},e.prototype.isVideoPlaying=function(t){return t.currentTime>0&&!t.paused&&!t.ended&&t.readyState>2},e.prototype.tryPlayVideo=function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){switch(n.label){case 0:if(this.isVideoPlaying(t))return console.warn("Trying to play video that is already playing."),[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,t.play()];case 2:return n.sent(),[3,4];case 3:return n.sent(),console.warn("It was not possible to play the video."),[3,4];case 4:return[2]}})})},e.prototype.getMediaElement=function(t,n){var r=document.getElementById(t);if(!r)throw new ArgumentException("element with id '"+t+"' not found");if(r.nodeName.toLowerCase()!==n.toLowerCase())throw new ArgumentException("element with id '"+t+"' must be an "+n+" element");return r},e.prototype.decodeFromImage=function(t,n){if(!t&&!n)throw new ArgumentException("either imageElement with a src set or an url must be provided");return n&&!t?this.decodeFromImageUrl(n):this.decodeFromImageElement(t)},e.prototype.decodeFromVideo=function(t,n){if(!t&&!n)throw new ArgumentException("Either an element with a src set or an URL must be provided");return n&&!t?this.decodeFromVideoUrl(n):this.decodeFromVideoElement(t)},e.prototype.decodeFromVideoContinuously=function(t,n,r){if(t===void 0&&n===void 0)throw new ArgumentException("Either an element with a src set or an URL must be provided");return n&&!t?this.decodeFromVideoUrlContinuously(n,r):this.decodeFromVideoElementContinuously(t,r)},e.prototype.decodeFromImageElement=function(t){if(!t)throw new ArgumentException("An image element must be provided.");this.reset();var n=this.prepareImageElement(t);this.imageElement=n;var r;return this.isImageLoaded(n)?r=this.decodeOnce(n,!1,!0):r=this._decodeOnLoadImage(n),r},e.prototype.decodeFromVideoElement=function(t){var n=this._decodeFromVideoElementSetup(t);return this._decodeOnLoadVideo(n)},e.prototype.decodeFromVideoElementContinuously=function(t,n){var r=this._decodeFromVideoElementSetup(t);return this._decodeOnLoadVideoContinuously(r,n)},e.prototype._decodeFromVideoElementSetup=function(t){if(!t)throw new ArgumentException("A video element must be provided.");this.reset();var n=this.prepareVideoElement(t);return this.videoElement=n,n},e.prototype.decodeFromImageUrl=function(t){if(!t)throw new ArgumentException("An URL must be provided.");this.reset();var n=this.prepareImageElement();this.imageElement=n;var r=this._decodeOnLoadImage(n);return n.src=t,r},e.prototype.decodeFromVideoUrl=function(t){if(!t)throw new ArgumentException("An URL must be provided.");this.reset();var n=this.prepareVideoElement(),r=this.decodeFromVideoElement(n);return n.src=t,r},e.prototype.decodeFromVideoUrlContinuously=function(t,n){if(!t)throw new ArgumentException("An URL must be provided.");this.reset();var r=this.prepareVideoElement(),i=this.decodeFromVideoElementContinuously(r,n);return r.src=t,i},e.prototype._decodeOnLoadImage=function(t){var n=this;return new Promise(function(r,i){n.imageLoadedListener=function(){return n.decodeOnce(t,!1,!0).then(r,i)},t.addEventListener("load",n.imageLoadedListener)})},e.prototype._decodeOnLoadVideo=function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){switch(n.label){case 0:return[4,this.playVideoOnLoadAsync(t)];case 1:return n.sent(),[4,this.decodeOnce(t)];case 2:return[2,n.sent()]}})})},e.prototype._decodeOnLoadVideoContinuously=function(t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){switch(r.label){case 0:return[4,this.playVideoOnLoadAsync(t)];case 1:return r.sent(),this.decodeContinuously(t,n),[2]}})})},e.prototype.isImageLoaded=function(t){return!(!t.complete||t.naturalWidth===0)},e.prototype.prepareImageElement=function(t){var n;return typeof t>"u"&&(n=document.createElement("img"),n.width=200,n.height=200),typeof t=="string"&&(n=this.getMediaElement(t,"img")),t instanceof HTMLImageElement&&(n=t),n},e.prototype.prepareVideoElement=function(t){var n;return!t&&typeof document<"u"&&(n=document.createElement("video"),n.width=200,n.height=200),typeof t=="string"&&(n=this.getMediaElement(t,"video")),t instanceof HTMLVideoElement&&(n=t),n.setAttribute("autoplay","true"),n.setAttribute("muted","true"),n.setAttribute("playsinline","true"),n},e.prototype.decodeOnce=function(t,n,r){var i=this;n===void 0&&(n=!0),r===void 0&&(r=!0),this._stopAsyncDecode=!1;var o=function(a,s){if(i._stopAsyncDecode){s(new NotFoundException("Video stream has ended before any code could be detected.")),i._stopAsyncDecode=void 0;return}try{var l=i.decode(t);a(l)}catch(f){var u=n&&f instanceof NotFoundException,c=f instanceof ChecksumException||f instanceof FormatException,d=c&&r;if(u||d)return setTimeout(o,i._timeBetweenDecodingAttempts,a,s);s(f)}};return new Promise(function(a,s){return o(a,s)})},e.prototype.decodeContinuously=function(t,n){var r=this;this._stopContinuousDecode=!1;var i=function(){if(r._stopContinuousDecode){r._stopContinuousDecode=void 0;return}try{var o=r.decode(t);n(o,null),setTimeout(i,r.timeBetweenScansMillis)}catch(l){n(null,l);var a=l instanceof ChecksumException||l instanceof FormatException,s=l instanceof NotFoundException;(a||s)&&setTimeout(i,r._timeBetweenDecodingAttempts)}};i()},e.prototype.decode=function(t){var n=this.createBinaryBitmap(t);return this.decodeBitmap(n)},e.prototype.createBinaryBitmap=function(t){this.getCaptureCanvasContext(t),t instanceof HTMLVideoElement?this.drawFrameOnCanvas(t):this.drawImageOnCanvas(t);var n=this.getCaptureCanvas(t),r=new HTMLCanvasElementLuminanceSource(n),i=new HybridBinarizer(r);return new BinaryBitmap(i)},e.prototype.getCaptureCanvasContext=function(t){if(!this.captureCanvasContext){var n=this.getCaptureCanvas(t),r=void 0;try{r=n.getContext("2d",{willReadFrequently:!0})}catch{r=n.getContext("2d")}this.captureCanvasContext=r}return this.captureCanvasContext},e.prototype.getCaptureCanvas=function(t){if(!this.captureCanvas){var n=this.createCaptureCanvas(t);this.captureCanvas=n}return this.captureCanvas},e.prototype.drawFrameOnCanvas=function(t,n,r){n===void 0&&(n={sx:0,sy:0,sWidth:t.videoWidth,sHeight:t.videoHeight,dx:0,dy:0,dWidth:t.videoWidth,dHeight:t.videoHeight}),r===void 0&&(r=this.captureCanvasContext),r.drawImage(t,n.sx,n.sy,n.sWidth,n.sHeight,n.dx,n.dy,n.dWidth,n.dHeight)},e.prototype.drawImageOnCanvas=function(t,n,r){n===void 0&&(n={sx:0,sy:0,sWidth:t.naturalWidth,sHeight:t.naturalHeight,dx:0,dy:0,dWidth:t.naturalWidth,dHeight:t.naturalHeight}),r===void 0&&(r=this.captureCanvasContext),r.drawImage(t,n.sx,n.sy,n.sWidth,n.sHeight,n.dx,n.dy,n.dWidth,n.dHeight)},e.prototype.decodeBitmap=function(t){return this.reader.decode(t,this._hints)},e.prototype.createCaptureCanvas=function(t){if(typeof document>"u")return this._destroyCaptureCanvas(),null;var n=document.createElement("canvas"),r,i;return typeof t<"u"&&(t instanceof HTMLVideoElement?(r=t.videoWidth,i=t.videoHeight):t instanceof HTMLImageElement&&(r=t.naturalWidth||t.width,i=t.naturalHeight||t.height)),n.style.width=r+"px",n.style.height=i+"px",n.width=r,n.height=i,n},e.prototype.stopStreams=function(){this.stream&&(this.stream.getVideoTracks().forEach(function(t){return t.stop()}),this.stream=void 0),this._stopAsyncDecode===!1&&this.stopAsyncDecode(),this._stopContinuousDecode===!1&&this.stopContinuousDecode()},e.prototype.reset=function(){this.stopStreams(),this._destroyVideoElement(),this._destroyImageElement(),this._destroyCaptureCanvas()},e.prototype._destroyVideoElement=function(){this.videoElement&&(typeof this.videoEndedListener<"u"&&this.videoElement.removeEventListener("ended",this.videoEndedListener),typeof this.videoPlayingEventListener<"u"&&this.videoElement.removeEventListener("playing",this.videoPlayingEventListener),typeof this.videoCanPlayListener<"u"&&this.videoElement.removeEventListener("loadedmetadata",this.videoCanPlayListener),this.cleanVideoSource(this.videoElement),this.videoElement=void 0)},e.prototype._destroyImageElement=function(){this.imageElement&&(this.imageLoadedListener!==void 0&&this.imageElement.removeEventListener("load",this.imageLoadedListener),this.imageElement.src=void 0,this.imageElement.removeAttribute("src"),this.imageElement=void 0)},e.prototype._destroyCaptureCanvas=function(){this.captureCanvasContext=void 0,this.captureCanvas=void 0},e.prototype.addVideoSource=function(t,n){try{t.srcObject=n}catch{t.src=URL.createObjectURL(n)}},e.prototype.cleanVideoSource=function(t){try{t.srcObject=null}catch{t.src=""}this.videoElement.removeAttribute("src")},e}(),Result=function(){function e(t,n,r,i,o,a){r===void 0&&(r=n==null?0:8*n.length),a===void 0&&(a=System.currentTimeMillis()),this.text=t,this.rawBytes=n,this.numBits=r,this.resultPoints=i,this.format=o,this.timestamp=a,this.text=t,this.rawBytes=n,r==null?this.numBits=n==null?0:8*n.length:this.numBits=r,this.resultPoints=i,this.format=o,this.resultMetadata=null,a==null?this.timestamp=System.currentTimeMillis():this.timestamp=a}return e.prototype.getText=function(){return this.text},e.prototype.getRawBytes=function(){return this.rawBytes},e.prototype.getNumBits=function(){return this.numBits},e.prototype.getResultPoints=function(){return this.resultPoints},e.prototype.getBarcodeFormat=function(){return this.format},e.prototype.getResultMetadata=function(){return this.resultMetadata},e.prototype.putMetadata=function(t,n){this.resultMetadata===null&&(this.resultMetadata=new Map),this.resultMetadata.set(t,n)},e.prototype.putAllMetadata=function(t){t!==null&&(this.resultMetadata===null?this.resultMetadata=t:this.resultMetadata=new Map(t))},e.prototype.addResultPoints=function(t){var n=this.resultPoints;if(n===null)this.resultPoints=t;else if(t!==null&&t.length>0){var r=new Array(n.length+t.length);System.arraycopy(n,0,r,0,n.length),System.arraycopy(t,0,r,n.length,t.length),this.resultPoints=r}},e.prototype.getTimestamp=function(){return this.timestamp},e.prototype.toString=function(){return this.text},e}(),BarcodeFormat;(function(e){e[e.AZTEC=0]="AZTEC",e[e.CODABAR=1]="CODABAR",e[e.CODE_39=2]="CODE_39",e[e.CODE_93=3]="CODE_93",e[e.CODE_128=4]="CODE_128",e[e.DATA_MATRIX=5]="DATA_MATRIX",e[e.EAN_8=6]="EAN_8",e[e.EAN_13=7]="EAN_13",e[e.ITF=8]="ITF",e[e.MAXICODE=9]="MAXICODE",e[e.PDF_417=10]="PDF_417",e[e.QR_CODE=11]="QR_CODE",e[e.RSS_14=12]="RSS_14",e[e.RSS_EXPANDED=13]="RSS_EXPANDED",e[e.UPC_A=14]="UPC_A",e[e.UPC_E=15]="UPC_E",e[e.UPC_EAN_EXTENSION=16]="UPC_EAN_EXTENSION"})(BarcodeFormat||(BarcodeFormat={}));const BarcodeFormat$1=BarcodeFormat;var ResultMetadataType;(function(e){e[e.OTHER=0]="OTHER",e[e.ORIENTATION=1]="ORIENTATION",e[e.BYTE_SEGMENTS=2]="BYTE_SEGMENTS",e[e.ERROR_CORRECTION_LEVEL=3]="ERROR_CORRECTION_LEVEL",e[e.ISSUE_NUMBER=4]="ISSUE_NUMBER",e[e.SUGGESTED_PRICE=5]="SUGGESTED_PRICE",e[e.POSSIBLE_COUNTRY=6]="POSSIBLE_COUNTRY",e[e.UPC_EAN_EXTENSION=7]="UPC_EAN_EXTENSION",e[e.PDF417_EXTRA_METADATA=8]="PDF417_EXTRA_METADATA",e[e.STRUCTURED_APPEND_SEQUENCE=9]="STRUCTURED_APPEND_SEQUENCE",e[e.STRUCTURED_APPEND_PARITY=10]="STRUCTURED_APPEND_PARITY"})(ResultMetadataType||(ResultMetadataType={}));const ResultMetadataType$1=ResultMetadataType;var DecoderResult=function(){function e(t,n,r,i,o,a){o===void 0&&(o=-1),a===void 0&&(a=-1),this.rawBytes=t,this.text=n,this.byteSegments=r,this.ecLevel=i,this.structuredAppendSequenceNumber=o,this.structuredAppendParity=a,this.numBits=t==null?0:8*t.length}return e.prototype.getRawBytes=function(){return this.rawBytes},e.prototype.getNumBits=function(){return this.numBits},e.prototype.setNumBits=function(t){this.numBits=t},e.prototype.getText=function(){return this.text},e.prototype.getByteSegments=function(){return this.byteSegments},e.prototype.getECLevel=function(){return this.ecLevel},e.prototype.getErrorsCorrected=function(){return this.errorsCorrected},e.prototype.setErrorsCorrected=function(t){this.errorsCorrected=t},e.prototype.getErasures=function(){return this.erasures},e.prototype.setErasures=function(t){this.erasures=t},e.prototype.getOther=function(){return this.other},e.prototype.setOther=function(t){this.other=t},e.prototype.hasStructuredAppend=function(){return this.structuredAppendParity>=0&&this.structuredAppendSequenceNumber>=0},e.prototype.getStructuredAppendParity=function(){return this.structuredAppendParity},e.prototype.getStructuredAppendSequenceNumber=function(){return this.structuredAppendSequenceNumber},e}(),AbstractGenericGF=function(){function e(){}return e.prototype.exp=function(t){return this.expTable[t]},e.prototype.log=function(t){if(t===0)throw new IllegalArgumentException;return this.logTable[t]},e.addOrSubtract=function(t,n){return t^n},e}(),GenericGFPoly=function(){function e(t,n){if(n.length===0)throw new IllegalArgumentException;this.field=t;var r=n.length;if(r>1&&n[0]===0){for(var i=1;i<r&&n[i]===0;)i++;i===r?this.coefficients=Int32Array.from([0]):(this.coefficients=new Int32Array(r-i),System.arraycopy(n,i,this.coefficients,0,this.coefficients.length))}else this.coefficients=n}return e.prototype.getCoefficients=function(){return this.coefficients},e.prototype.getDegree=function(){return this.coefficients.length-1},e.prototype.isZero=function(){return this.coefficients[0]===0},e.prototype.getCoefficient=function(t){return this.coefficients[this.coefficients.length-1-t]},e.prototype.evaluateAt=function(t){if(t===0)return this.getCoefficient(0);var n=this.coefficients,r;if(t===1){r=0;for(var i=0,o=n.length;i!==o;i++){var a=n[i];r=AbstractGenericGF.addOrSubtract(r,a)}return r}r=n[0];for(var s=n.length,l=this.field,i=1;i<s;i++)r=AbstractGenericGF.addOrSubtract(l.multiply(t,r),n[i]);return r},e.prototype.addOrSubtract=function(t){if(!this.field.equals(t.field))throw new IllegalArgumentException("GenericGFPolys do not have same GenericGF field");if(this.isZero())return t;if(t.isZero())return this;var n=this.coefficients,r=t.coefficients;if(n.length>r.length){var i=n;n=r,r=i}var o=new Int32Array(r.length),a=r.length-n.length;System.arraycopy(r,0,o,0,a);for(var s=a;s<r.length;s++)o[s]=AbstractGenericGF.addOrSubtract(n[s-a],r[s]);return new e(this.field,o)},e.prototype.multiply=function(t){if(!this.field.equals(t.field))throw new IllegalArgumentException("GenericGFPolys do not have same GenericGF field");if(this.isZero()||t.isZero())return this.field.getZero();for(var n=this.coefficients,r=n.length,i=t.coefficients,o=i.length,a=new Int32Array(r+o-1),s=this.field,l=0;l<r;l++)for(var u=n[l],c=0;c<o;c++)a[l+c]=AbstractGenericGF.addOrSubtract(a[l+c],s.multiply(u,i[c]));return new e(s,a)},e.prototype.multiplyScalar=function(t){if(t===0)return this.field.getZero();if(t===1)return this;for(var n=this.coefficients.length,r=this.field,i=new Int32Array(n),o=this.coefficients,a=0;a<n;a++)i[a]=r.multiply(o[a],t);return new e(r,i)},e.prototype.multiplyByMonomial=function(t,n){if(t<0)throw new IllegalArgumentException;if(n===0)return this.field.getZero();for(var r=this.coefficients,i=r.length,o=new Int32Array(i+t),a=this.field,s=0;s<i;s++)o[s]=a.multiply(r[s],n);return new e(a,o)},e.prototype.divide=function(t){if(!this.field.equals(t.field))throw new IllegalArgumentException("GenericGFPolys do not have same GenericGF field");if(t.isZero())throw new IllegalArgumentException("Divide by 0");for(var n=this.field,r=n.getZero(),i=this,o=t.getCoefficient(t.getDegree()),a=n.inverse(o);i.getDegree()>=t.getDegree()&&!i.isZero();){var s=i.getDegree()-t.getDegree(),l=n.multiply(i.getCoefficient(i.getDegree()),a),u=t.multiplyByMonomial(s,l),c=n.buildMonomial(s,l);r=r.addOrSubtract(c),i=i.addOrSubtract(u)}return[r,i]},e.prototype.toString=function(){for(var t="",n=this.getDegree();n>=0;n--){var r=this.getCoefficient(n);if(r!==0){if(r<0?(t+=" - ",r=-r):t.length>0&&(t+=" + "),n===0||r!==1){var i=this.field.log(r);i===0?t+="1":i===1?t+="a":(t+="a^",t+=i)}n!==0&&(n===1?t+="x":(t+="x^",t+=n))}}return t},e}(),__extends$X=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ArithmeticException=function(e){__extends$X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.kind="ArithmeticException",t}(Exception),__extends$W=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),GenericGF=function(e){__extends$W(t,e);function t(n,r,i){var o=e.call(this)||this;o.primitive=n,o.size=r,o.generatorBase=i;for(var a=new Int32Array(r),s=1,l=0;l<r;l++)a[l]=s,s*=2,s>=r&&(s^=n,s&=r-1);o.expTable=a;for(var u=new Int32Array(r),l=0;l<r-1;l++)u[a[l]]=l;return o.logTable=u,o.zero=new GenericGFPoly(o,Int32Array.from([0])),o.one=new GenericGFPoly(o,Int32Array.from([1])),o}return t.prototype.getZero=function(){return this.zero},t.prototype.getOne=function(){return this.one},t.prototype.buildMonomial=function(n,r){if(n<0)throw new IllegalArgumentException;if(r===0)return this.zero;var i=new Int32Array(n+1);return i[0]=r,new GenericGFPoly(this,i)},t.prototype.inverse=function(n){if(n===0)throw new ArithmeticException;return this.expTable[this.size-this.logTable[n]-1]},t.prototype.multiply=function(n,r){return n===0||r===0?0:this.expTable[(this.logTable[n]+this.logTable[r])%(this.size-1)]},t.prototype.getSize=function(){return this.size},t.prototype.getGeneratorBase=function(){return this.generatorBase},t.prototype.toString=function(){return"GF(0x"+Integer.toHexString(this.primitive)+","+this.size+")"},t.prototype.equals=function(n){return n===this},t.AZTEC_DATA_12=new t(4201,4096,1),t.AZTEC_DATA_10=new t(1033,1024,1),t.AZTEC_DATA_6=new t(67,64,1),t.AZTEC_PARAM=new t(19,16,1),t.QR_CODE_FIELD_256=new t(285,256,0),t.DATA_MATRIX_FIELD_256=new t(301,256,1),t.AZTEC_DATA_8=t.DATA_MATRIX_FIELD_256,t.MAXICODE_FIELD_64=t.AZTEC_DATA_6,t}(AbstractGenericGF),__extends$V=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ReedSolomonException=function(e){__extends$V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.kind="ReedSolomonException",t}(Exception),__extends$U=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),IllegalStateException=function(e){__extends$U(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.kind="IllegalStateException",t}(Exception),ReedSolomonDecoder=function(){function e(t){this.field=t}return e.prototype.decode=function(t,n){for(var r=this.field,i=new GenericGFPoly(r,t),o=new Int32Array(n),a=!0,s=0;s<n;s++){var l=i.evaluateAt(r.exp(s+r.getGeneratorBase()));o[o.length-1-s]=l,l!==0&&(a=!1)}if(!a)for(var u=new GenericGFPoly(r,o),c=this.runEuclideanAlgorithm(r.buildMonomial(n,1),u,n),d=c[0],f=c[1],h=this.findErrorLocations(d),p=this.findErrorMagnitudes(f,h),s=0;s<h.length;s++){var g=t.length-1-r.log(h[s]);if(g<0)throw new ReedSolomonException("Bad error location");t[g]=GenericGF.addOrSubtract(t[g],p[s])}},e.prototype.runEuclideanAlgorithm=function(t,n,r){if(t.getDegree()<n.getDegree()){var i=t;t=n,n=i}for(var o=this.field,a=t,s=n,l=o.getZero(),u=o.getOne();s.getDegree()>=(r/2|0);){var c=a,d=l;if(a=s,l=u,a.isZero())throw new ReedSolomonException("r_{i-1} was zero");s=c;for(var f=o.getZero(),h=a.getCoefficient(a.getDegree()),p=o.inverse(h);s.getDegree()>=a.getDegree()&&!s.isZero();){var g=s.getDegree()-a.getDegree(),C=o.multiply(s.getCoefficient(s.getDegree()),p);f=f.addOrSubtract(o.buildMonomial(g,C)),s=s.addOrSubtract(a.multiplyByMonomial(g,C))}if(u=f.multiply(l).addOrSubtract(d),s.getDegree()>=a.getDegree())throw new IllegalStateException("Division algorithm failed to reduce polynomial?")}var v=u.getCoefficient(0);if(v===0)throw new ReedSolomonException("sigmaTilde(0) was zero");var m=o.inverse(v),_=u.multiplyScalar(m),E=s.multiplyScalar(m);return[_,E]},e.prototype.findErrorLocations=function(t){var n=t.getDegree();if(n===1)return Int32Array.from([t.getCoefficient(1)]);for(var r=new Int32Array(n),i=0,o=this.field,a=1;a<o.getSize()&&i<n;a++)t.evaluateAt(a)===0&&(r[i]=o.inverse(a),i++);if(i!==n)throw new ReedSolomonException("Error locator degree does not match number of roots");return r},e.prototype.findErrorMagnitudes=function(t,n){for(var r=n.length,i=new Int32Array(r),o=this.field,a=0;a<r;a++){for(var s=o.inverse(n[a]),l=1,u=0;u<r;u++)if(a!==u){var c=o.multiply(n[u],s),d=c&1?c&-2:c|1;l=o.multiply(l,d)}i[a]=o.multiply(t.evaluateAt(s),o.inverse(l)),o.getGeneratorBase()!==0&&(i[a]=o.multiply(i[a],s))}return i},e}(),Table;(function(e){e[e.UPPER=0]="UPPER",e[e.LOWER=1]="LOWER",e[e.MIXED=2]="MIXED",e[e.DIGIT=3]="DIGIT",e[e.PUNCT=4]="PUNCT",e[e.BINARY=5]="BINARY"})(Table||(Table={}));var Decoder$2=function(){function e(){}return e.prototype.decode=function(t){this.ddata=t;var n=t.getBits(),r=this.extractBits(n),i=this.correctBits(r),o=e.convertBoolArrayToByteArray(i),a=e.getEncodedData(i),s=new DecoderResult(o,a,null,null);return s.setNumBits(i.length),s},e.highLevelDecode=function(t){return this.getEncodedData(t)},e.getEncodedData=function(t){for(var n=t.length,r=Table.UPPER,i=Table.UPPER,o="",a=0;a<n;)if(i===Table.BINARY){if(n-a<5)break;var s=e.readCode(t,a,5);if(a+=5,s===0){if(n-a<11)break;s=e.readCode(t,a,11)+31,a+=11}for(var l=0;l<s;l++){if(n-a<8){a=n;break}var u=e.readCode(t,a,8);o+=StringUtils.castAsNonUtf8Char(u),a+=8}i=r}else{var c=i===Table.DIGIT?4:5;if(n-a<c)break;var u=e.readCode(t,a,c);a+=c;var d=e.getCharacter(i,u);d.startsWith("CTRL_")?(r=i,i=e.getTable(d.charAt(5)),d.charAt(6)==="L"&&(r=i)):(o+=d,i=r)}return o},e.getTable=function(t){switch(t){case"L":return Table.LOWER;case"P":return Table.PUNCT;case"M":return Table.MIXED;case"D":return Table.DIGIT;case"B":return Table.BINARY;case"U":default:return Table.UPPER}},e.getCharacter=function(t,n){switch(t){case Table.UPPER:return e.UPPER_TABLE[n];case Table.LOWER:return e.LOWER_TABLE[n];case Table.MIXED:return e.MIXED_TABLE[n];case Table.PUNCT:return e.PUNCT_TABLE[n];case Table.DIGIT:return e.DIGIT_TABLE[n];default:throw new IllegalStateException("Bad table")}},e.prototype.correctBits=function(t){var n,r;this.ddata.getNbLayers()<=2?(r=6,n=GenericGF.AZTEC_DATA_6):this.ddata.getNbLayers()<=8?(r=8,n=GenericGF.AZTEC_DATA_8):this.ddata.getNbLayers()<=22?(r=10,n=GenericGF.AZTEC_DATA_10):(r=12,n=GenericGF.AZTEC_DATA_12);var i=this.ddata.getNbDatablocks(),o=t.length/r;if(o<i)throw new FormatException;for(var a=t.length%r,s=new Int32Array(o),l=0;l<o;l++,a+=r)s[l]=e.readCode(t,a,r);try{var u=new ReedSolomonDecoder(n);u.decode(s,o-i)}catch(C){throw new FormatException(C)}for(var c=(1<<r)-1,d=0,l=0;l<i;l++){var f=s[l];if(f===0||f===c)throw new FormatException;(f===1||f===c-1)&&d++}for(var h=new Array(i*r-d),p=0,l=0;l<i;l++){var f=s[l];if(f===1||f===c-1)h.fill(f>1,p,p+r-1),p+=r-1;else for(var g=r-1;g>=0;--g)h[p++]=(f&1<<g)!==0}return h},e.prototype.extractBits=function(t){var n=this.ddata.isCompact(),r=this.ddata.getNbLayers(),i=(n?11:14)+r*4,o=new Int32Array(i),a=new Array(this.totalBitsInLayer(r,n));if(n)for(var s=0;s<o.length;s++)o[s]=s;else for(var l=i+1+2*Integer.truncDivision(Integer.truncDivision(i,2)-1,15),u=i/2,c=Integer.truncDivision(l,2),s=0;s<u;s++){var d=s+Integer.truncDivision(s,15);o[u-s-1]=c-d-1,o[u+s]=c+d+1}for(var s=0,f=0;s<r;s++){for(var h=(r-s)*4+(n?9:12),p=s*2,g=i-1-p,C=0;C<h;C++)for(var v=C*2,m=0;m<2;m++)a[f+v+m]=t.get(o[p+m],o[p+C]),a[f+2*h+v+m]=t.get(o[p+C],o[g-m]),a[f+4*h+v+m]=t.get(o[g-m],o[g-C]),a[f+6*h+v+m]=t.get(o[g-C],o[p+m]);f+=h*8}return a},e.readCode=function(t,n,r){for(var i=0,o=n;o<n+r;o++)i<<=1,t[o]&&(i|=1);return i},e.readByte=function(t,n){var r=t.length-n;return r>=8?e.readCode(t,n,8):e.readCode(t,n,r)<<8-r},e.convertBoolArrayToByteArray=function(t){for(var n=new Uint8Array((t.length+7)/8),r=0;r<n.length;r++)n[r]=e.readByte(t,8*r);return n},e.prototype.totalBitsInLayer=function(t,n){return((n?88:112)+16*t)*t},e.UPPER_TABLE=["CTRL_PS"," ","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","CTRL_LL","CTRL_ML","CTRL_DL","CTRL_BS"],e.LOWER_TABLE=["CTRL_PS"," ","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","CTRL_US","CTRL_ML","CTRL_DL","CTRL_BS"],e.MIXED_TABLE=["CTRL_PS"," ","\\1","\\2","\\3","\\4","\\5","\\6","\\7","\b"," ",`