ddy-process-pc-vue3 1.0.1-rc.3.107 → 1.0.1-rc.3.130

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,4 +1,4 @@
1
- (function(Ni,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("vue"),require("checked-pick-pc")):typeof define=="function"&&define.amd?define(["exports","vue","checked-pick-pc"],x):(Ni=typeof globalThis<"u"?globalThis:Ni||self,x(Ni["ddy-process-pc-vue3"]={},Ni.Vue,Ni.checkedPickPc))})(this,function(Ni,x,WO){"use strict";const GO=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function JO(e,n){for(var i=0;i<n.length;i++){const a=n[i];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in e)){const c=Object.getOwnPropertyDescriptor(a,s);c&&Object.defineProperty(e,s,c.get?c:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Mi=GO(x),Tp={name:"ddy-process-pc-vue3",version:"1.0.1-rc.3.107",description:"> pc\u7AEF\u6D41\u7A0B\u7EC4\u4EF6",main:"./ddy-process-pc-vue3.umd.cjs",style:"./style.css",type:"module",exports:{".":{import:"./ddy-process-pc-vue3.js",require:"./ddy-process-pc-vue3.umd.cjs"},"./style.css":{import:"./style.css",require:"./style.css"}},scripts:{test:'echo "Error: no test specified" && exit 1',postinstall:"node scripts/postinstall.mjs"},author:"",license:"ISC"};let Ze;const Wt="/aws",tn="/bladex/blade-workflow",iC="/auth",Xe={getAjaxObj:()=>({get:(e,n)=>{let i={url:e,param:n.params,type:"get"};return Ze(i)},post:(e,n)=>Ze({url:e,param:n,type:"post"})}),getAjax:()=>Ze,setAjax:e=>{Ze=e},common:{deptUser(e){return Ze({url:"/system/dept/list/dept/user",param:{subjectId:e},type:"get"})},getTaskAuditor(e,n){return Ze({url:"/auth/post/getTaskAuditor",param:{deptId:e,taskPostIds:n},type:"post"})},chexiao(e){let n={url:tn+"/tis/withdrawTask",param:{processInstId:e},type:"get"};return Ze(n)},cuiban(e){let n={url:tn+"/tis/reminders",param:{processInstId:e},type:"get"};return Ze(n)}},pis:{start(e){let n={url:Wt+"/pis/start",param:e,type:"post"};return Ze(n)},createAndStart(e){let n={url:tn+"/pis/createAndStart",param:e,type:"post"};return Ze(n)},cancel(e,n){let i={url:Wt+"/pis/cancel",param:{processInstId:e,processBusinessKey:n},type:"post"};return Ze(i)},findNodeParticipantRows(e){let n={url:Wt+"/pis/findNodeParticipantRows",param:{processInstId:e},type:"get"};return Ze(n)},revoke(e,n){let i={url:Wt+"/pis/revoke",param:{processInstId:e,processBusinessKey:n},type:"post"};return Ze(i)},getProcessStatus(e,n){let i={url:Wt+"/pis/getProcessStatus",param:{processInstId:e,taskId:n||""},type:"get"};return Ze(i)},getProcessInstanceById(e){let n={url:Wt+"/pis/getProcessInstanceById",param:{processInstId:e},type:"get"};return Ze(n)},reactivate(e){let n={url:tn+"/pis/reactivate",param:e,type:"post"};return Ze(n)},getProcessInstanceByBusinessKey(e){let n={url:Wt+"/pis/getProcessInstanceByBusinessKey",param:{businessKey:e},type:"get"};return Ze(n)},getProcessForecast(e){let n={url:Wt+"/pis/getProcessForecast",param:e,type:"post"};return Ze(n)},deleteProcessById(e){let n={url:Wt+"/pis/deleteProcessById",param:{processInstId:e},type:"get"};return Ze(n)}},tis:{getTaskModelDetail(e){let n={url:tn+"/tis/getTaskModelDetail",param:e,type:"get"};return Ze(n)},query(e,n,i,a){let s={url:Wt+"/tis/query",param:{appId:e,firstRow:n*i-i,rowCount:n*i,returnVars:!0,titleLike:a,taskState:1},type:"get"};return Ze(s)},patchSave(e){let n={url:Wt+"/meta/annex/patchSave",param:e,type:"post"};return Ze(n)},queryTaskPage(e,n,i,a,s=e_.\u5F85\u5904\u7406,c,p){let m={url:Wt+"/tis/queryTaskPageByCriteria",param:{appIds:e,firstRow:n,rowCount:i,isReturnVars:!0,titleLike:a,taskState:s,varQueries:c,...p},type:"post"};return Ze(m)},queryHiTaskPage(e,n,i,a="",s=e_.\u5F85\u5904\u7406,c,p){let m={url:Wt+"/tis/queryHiTaskPageByCriteria",param:{appIds:e,firstRow:n,rowCount:i,isReturnVars:!0,titleLike:a,taskState:s,varQueries:c,...p},type:"post"};return Ze(m)},getTaskCommentList(e,n){let i={url:Wt+"/tis/getTaskCommentList",param:{processInstId:e,processBusinessKey:n},type:"get"};return Ze(i)},complete(e){let n={url:tn+"/tis/complete",param:e,type:"post"};return Ze(n)},delegate(e){let n={url:Wt+"/tis/delegate",param:e,type:"post"};return Ze(n)},transferTask(e){let n={url:tn+"/tis/transferTask",param:e,type:"post"};return Ze(n)},withdrawTask(e){let n={url:tn+"/tis/withdrawTask",param:{processInstId:e},type:"get"};return Ze(n)},addMultiInstance(e){let n={url:tn+"/tis/addSignTask",param:e,type:"post"};return Ze(n)},reject(e,n){let i={url:Wt+"/tis/reject",param:{taskInstId:e,commentMsg:n},type:"post"};return Ze(i)},simulation(e,n,i){let a={url:tn+"/tis/simulation",param:{taskId:e},type:"get"};return Ze(a)},createDynamicTask(e){let n={url:Wt+"/tis/createDynamicTask",param:e,type:"post"};return Ze(n)},createCCTask(e){let n={url:tn+"/tis/createCCTask",param:e,type:"post"};return Ze(n)},reminders(e){let n={url:tn+"/tis/reminders",param:{processInstId:e},type:"get"};return Ze(n)},getReturnableNodes(e){let n={url:Wt+"/tis/getReturnableNodes",param:{taskId:e},type:"get"};return Ze(n)},rollback(e,n,i){let a={url:tn+"/tis/rollback",param:{taskInstId:e,rollbackReason:i,targetActivityId:n},type:"post"};return Ze(a)}},repository:{getUserTaskModelCmd(e){let n={url:Wt+"/repository/getUserTaskModel",param:{taskId:e},type:"get"};return Ze(n)},getAfferentParticipantNodeList(e){let n={url:Wt+"/repository/getAfferentParticipantNodeList",param:{processDefId:e},type:"get"};return Ze(n)},getXmlByProcessDefId(e){let n={url:tn+"/process/getXmlByProcessDefId",param:e,type:"get"};return Ze(n)},backNodes(e){let n={url:tn+"/process/getBackNodes",param:e,type:"get"};return Ze(n)},getDiagramUrl(e){let n={url:tn+"/repository/getDiagramUrl",param:e,type:"get"};return Ze(n)},getTrackUrl(e){let n={url:Wt+"/repository/getTrackUrl",param:e,type:"get"};return Ze(n)},getProcessDefList(e,n,i){let a={url:tn+"/repository/getProcessDefList",param:{appId:e,processGroupName:n,subjectId:i},type:"post"};return Ze(a)},getProcessDefListNew(e){let n={url:tn+"/repository/getProcessDefList",param:{...e,subjectId:e.userInfo?e.userInfo.subjectId:"",businessCode:e.businessCode||e.businessType},type:"post"};return Ze(n)},getOutgoingProcessNode(e,n){let i={url:tn+"/tis/getOutgoingProcessNode",param:{taskId:e,processNodeId:n},type:"get"};return Ze(i)},queryTaskNodeList(e){let n={url:tn+"/repository/queryTaskNodeList",param:{processInstId:e},type:"get"};return Ze(n)},getFirstProcessNode(e){let n={url:tn+"/repository/getAllProcessNode",param:{processDefId:e},type:"get"};return Ze(n)},getParticipantsOfPerformerNames(e,n){let i={url:Wt+"/repository/getParticipantsOfPerformerNames?taskInstId="+e,param:{taskInstId:e,userTaskDefIds:n},type:"post"};return Ze(i)}},org:{list(e="",n="",i=""){let a={url:Wt+"/org/list",param:{deptId:n,companyId:i,searchKey:e},type:"get"};return Ze(a)},findTeamMember(e="",n=""){let i={url:Wt+"/org/findTeamMember",param:{teamId:n,searchKey:e},type:"get"};return Ze(i)}},user:{getTaskAuditor(e){let n={url:iC+"/user/getTaskAuditor",param:e,type:"post",headers:{"X-Tag":"lwl "}};return Ze(n)},getSelectTree(e){let n={url:iC+"/dept/list/user/dept/selectTree",param:e,type:"get",headers:{"X-Tag":"lwl "}};return Ze(n)}}},bt={success:200,err:500,empty:404},KO={\u7F29\u7565\u56FE:0,\u539F\u59CB\u5927\u56FE:1},qb={\u7535\u8111\u7AEF:"pc",\u79FB\u52A8\u7AEF:"mobile"},Wu={\u4EBA\u5458:1,\u90E8\u95E8:0,\u4E3B\u4F53:-1,\u7FA4\u7EC4:2},e_={\u5F85\u5904\u7406:1,\u6284\u9001:2,\u4E0D\u5904\u7406:4,\u65E0\u5B50\u8282\u70B9:11},XO={\u6D41\u7A0B\u5F85\u529E:1,\u4E1A\u52A1\u5F85\u529E:2},ZO={\u9605\u529E:0,\u4F1A\u7B7E:1,\u52A0\u7B7E:2,\u534F\u540C:3},$O={\u52A0\u7B7E:"counterSignLabel"},t_={\u5355\u4E00\u5206\u652F:"ExclusiveGatewayModel",\u7528\u6237\u4EFB\u52A1:"UserTaskModel",\u7528\u6237\u8282\u70B9:"userTask",\u591A\u9009\u8282\u70B9:"InclusiveGatewayModel",\u7ED3\u675F:"endEvent",\u7ED3\u675F\u4E8B\u4EF6:"EndEventModel"},Np=Object.freeze(Object.defineProperty({__proto__:null,apiCode:bt,DiagramType:KO,SourceType:qb,UserType:Wu,TaskState:e_,SealBusinessSign:XO,AdHocType:ZO,OperationType:$O,ProcessNodeType:t_},Symbol.toStringTag,{value:"Module"}));/*!
1
+ (function(Ni,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("vue"),require("checked-pick-pc")):typeof define=="function"&&define.amd?define(["exports","vue","checked-pick-pc"],x):(Ni=typeof globalThis<"u"?globalThis:Ni||self,x(Ni["ddy-process-pc-vue3"]={},Ni.Vue,Ni.checkedPickPc))})(this,function(Ni,x,WO){"use strict";const GO=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function JO(e,n){for(var i=0;i<n.length;i++){const a=n[i];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in e)){const c=Object.getOwnPropertyDescriptor(a,s);c&&Object.defineProperty(e,s,c.get?c:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Mi=GO(x),Tp={name:"ddy-process-pc-vue3",version:"1.0.1-rc.3.130",description:"> pc\u7AEF\u6D41\u7A0B\u7EC4\u4EF6",main:"./ddy-process-pc-vue3.umd.cjs",style:"./style.css",type:"module",exports:{".":{import:"./ddy-process-pc-vue3.js",require:"./ddy-process-pc-vue3.umd.cjs"},"./style.css":{import:"./style.css",require:"./style.css"}},scripts:{test:'echo "Error: no test specified" && exit 1',postinstall:"node scripts/postinstall.mjs"},author:"",license:"ISC"};let Ze;const Wt="/aws",tn="/bladex/blade-workflow",iC="/auth",Xe={getAjaxObj:()=>({get:(e,n)=>{let i={url:e,param:n.params,type:"get"};return Ze(i)},post:(e,n)=>Ze({url:e,param:n,type:"post"})}),getAjax:()=>Ze,setAjax:e=>{Ze=e},common:{deptUser(e){return Ze({url:"/system/dept/list/dept/user",param:{subjectId:e},type:"get"})},getTaskAuditor(e,n){return Ze({url:"/auth/post/getTaskAuditor",param:{deptId:e,taskPostIds:n},type:"post"})},chexiao(e){let n={url:tn+"/tis/withdrawTask",param:{processInstId:e},type:"get"};return Ze(n)},cuiban(e){let n={url:tn+"/tis/reminders",param:{processInstId:e},type:"get"};return Ze(n)}},pis:{start(e){let n={url:Wt+"/pis/start",param:e,type:"post"};return Ze(n)},createAndStart(e){let n={url:tn+"/pis/createAndStart",param:e,type:"post"};return Ze(n)},cancel(e,n){let i={url:Wt+"/pis/cancel",param:{processInstId:e,processBusinessKey:n},type:"post"};return Ze(i)},findNodeParticipantRows(e){let n={url:Wt+"/pis/findNodeParticipantRows",param:{processInstId:e},type:"get"};return Ze(n)},revoke(e,n){let i={url:Wt+"/pis/revoke",param:{processInstId:e,processBusinessKey:n},type:"post"};return Ze(i)},getProcessStatus(e,n){let i={url:Wt+"/pis/getProcessStatus",param:{processInstId:e,taskId:n||""},type:"get"};return Ze(i)},getProcessInstanceById(e){let n={url:Wt+"/pis/getProcessInstanceById",param:{processInstId:e},type:"get"};return Ze(n)},reactivate(e){let n={url:tn+"/pis/reactivate",param:e,type:"post"};return Ze(n)},getProcessInstanceByBusinessKey(e){let n={url:Wt+"/pis/getProcessInstanceByBusinessKey",param:{businessKey:e},type:"get"};return Ze(n)},getProcessForecast(e){let n={url:Wt+"/pis/getProcessForecast",param:e,type:"post"};return Ze(n)},deleteProcessById(e){let n={url:Wt+"/pis/deleteProcessById",param:{processInstId:e},type:"get"};return Ze(n)}},tis:{getTaskModelDetail(e){let n={url:tn+"/tis/getTaskModelDetail",param:e,type:"get"};return Ze(n)},query(e,n,i,a){let s={url:Wt+"/tis/query",param:{appId:e,firstRow:n*i-i,rowCount:n*i,returnVars:!0,titleLike:a,taskState:1},type:"get"};return Ze(s)},patchSave(e){let n={url:Wt+"/meta/annex/patchSave",param:e,type:"post"};return Ze(n)},queryTaskPage(e,n,i,a,s=e_.\u5F85\u5904\u7406,c,p){let m={url:Wt+"/tis/queryTaskPageByCriteria",param:{appIds:e,firstRow:n,rowCount:i,isReturnVars:!0,titleLike:a,taskState:s,varQueries:c,...p},type:"post"};return Ze(m)},queryHiTaskPage(e,n,i,a="",s=e_.\u5F85\u5904\u7406,c,p){let m={url:Wt+"/tis/queryHiTaskPageByCriteria",param:{appIds:e,firstRow:n,rowCount:i,isReturnVars:!0,titleLike:a,taskState:s,varQueries:c,...p},type:"post"};return Ze(m)},getTaskCommentList(e,n){let i={url:Wt+"/tis/getTaskCommentList",param:{processInstId:e,processBusinessKey:n},type:"get"};return Ze(i)},complete(e){let n={url:tn+"/tis/complete",param:e,type:"post"};return Ze(n)},delegate(e){let n={url:Wt+"/tis/delegate",param:e,type:"post"};return Ze(n)},transferTask(e){let n={url:tn+"/tis/transferTask",param:e,type:"post"};return Ze(n)},withdrawTask(e){let n={url:tn+"/tis/withdrawTask",param:{processInstId:e},type:"get"};return Ze(n)},addMultiInstance(e){let n={url:tn+"/tis/addSignTask",param:e,type:"post"};return Ze(n)},reject(e,n){let i={url:Wt+"/tis/reject",param:{taskInstId:e,commentMsg:n},type:"post"};return Ze(i)},simulation(e,n,i){let a={url:tn+"/tis/simulation",param:{taskId:e},type:"get"};return Ze(a)},createDynamicTask(e){let n={url:Wt+"/tis/createDynamicTask",param:e,type:"post"};return Ze(n)},createCCTask(e){let n={url:tn+"/tis/createCCTask",param:e,type:"post"};return Ze(n)},reminders(e){let n={url:tn+"/tis/reminders",param:{processInstId:e},type:"get"};return Ze(n)},getReturnableNodes(e){let n={url:Wt+"/tis/getReturnableNodes",param:{taskId:e},type:"get"};return Ze(n)},rollback(e,n,i){let a={url:tn+"/tis/rollback",param:{taskInstId:e,rollbackReason:i,targetActivityId:n},type:"post"};return Ze(a)}},repository:{getUserTaskModelCmd(e){let n={url:Wt+"/repository/getUserTaskModel",param:{taskId:e},type:"get"};return Ze(n)},getAfferentParticipantNodeList(e){let n={url:Wt+"/repository/getAfferentParticipantNodeList",param:{processDefId:e},type:"get"};return Ze(n)},getXmlByProcessDefId(e){let n={url:tn+"/process/getXmlByProcessDefId",param:e,type:"get"};return Ze(n)},backNodes(e){let n={url:tn+"/process/getBackNodes",param:e,type:"get"};return Ze(n)},getDiagramUrl(e){let n={url:tn+"/repository/getDiagramUrl",param:e,type:"get"};return Ze(n)},getTrackUrl(e){let n={url:Wt+"/repository/getTrackUrl",param:e,type:"get"};return Ze(n)},getProcessDefList(e,n,i){let a={url:tn+"/repository/getProcessDefList",param:{appId:e,processGroupName:n,subjectId:i},type:"post"};return Ze(a)},getProcessDefListNew(e){let n={url:tn+"/repository/getProcessDefList",param:{...e,subjectId:e.userInfo?e.userInfo.subjectId:"",businessCode:e.businessCode||e.businessType},type:"post"};return Ze(n)},getOutgoingProcessNode(e,n){let i={url:tn+"/tis/getOutgoingProcessNode",param:{taskId:e,processNodeId:n},type:"get"};return Ze(i)},queryTaskNodeList(e){let n={url:tn+"/repository/queryTaskNodeList",param:{processInstId:e},type:"get"};return Ze(n)},getFirstProcessNode(e){let n={url:tn+"/repository/getAllProcessNode",param:{processDefId:e},type:"get"};return Ze(n)},getParticipantsOfPerformerNames(e,n){let i={url:Wt+"/repository/getParticipantsOfPerformerNames?taskInstId="+e,param:{taskInstId:e,userTaskDefIds:n},type:"post"};return Ze(i)}},org:{list(e="",n="",i=""){let a={url:Wt+"/org/list",param:{deptId:n,companyId:i,searchKey:e},type:"get"};return Ze(a)},findTeamMember(e="",n=""){let i={url:Wt+"/org/findTeamMember",param:{teamId:n,searchKey:e},type:"get"};return Ze(i)}},user:{getTaskAuditor(e){let n={url:iC+"/user/getTaskAuditor",param:e,type:"post",headers:{"X-Tag":"lwl "}};return Ze(n)},getSelectTree(e){let n={url:iC+"/dept/list/user/dept/selectTree",param:e,type:"get",headers:{"X-Tag":"lwl "}};return Ze(n)}}},bt={success:200,err:500,empty:404},KO={\u7F29\u7565\u56FE:0,\u539F\u59CB\u5927\u56FE:1},qb={\u7535\u8111\u7AEF:"pc",\u79FB\u52A8\u7AEF:"mobile"},Wu={\u4EBA\u5458:1,\u90E8\u95E8:0,\u4E3B\u4F53:-1,\u7FA4\u7EC4:2},e_={\u5F85\u5904\u7406:1,\u6284\u9001:2,\u4E0D\u5904\u7406:4,\u65E0\u5B50\u8282\u70B9:11},XO={\u6D41\u7A0B\u5F85\u529E:1,\u4E1A\u52A1\u5F85\u529E:2},ZO={\u9605\u529E:0,\u4F1A\u7B7E:1,\u52A0\u7B7E:2,\u534F\u540C:3},$O={\u52A0\u7B7E:"counterSignLabel"},t_={\u5355\u4E00\u5206\u652F:"ExclusiveGatewayModel",\u7528\u6237\u4EFB\u52A1:"UserTaskModel",\u7528\u6237\u8282\u70B9:"userTask",\u591A\u9009\u8282\u70B9:"InclusiveGatewayModel",\u7ED3\u675F:"endEvent",\u7ED3\u675F\u4E8B\u4EF6:"EndEventModel"},Np=Object.freeze(Object.defineProperty({__proto__:null,apiCode:bt,DiagramType:KO,SourceType:qb,UserType:Wu,TaskState:e_,SealBusinessSign:XO,AdHocType:ZO,OperationType:$O,ProcessNodeType:t_},Symbol.toStringTag,{value:"Module"}));/*!
2
2
  * Vue.js v2.6.14
3
3
  * (c) 2014-2021 Evan You
4
4
  * Released under the MIT License.
@@ -17,7 +17,7 @@ https://github.com/vuejs/vue-devtools`)),process.env.NODE_ENV!=="production"&&pr
17
17
  Make sure to turn on production mode when deploying for production.
18
18
  See more tips at https://vuejs.org/guide/deployment.html`)},0);var ry=function(e,n){return ry=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},ry(e,n)};function AM(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");ry(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}var ay=function(){return ay=Object.assign||function(n){for(var i,a=1,s=arguments.length;a<s;a++){i=arguments[a];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(n[c]=i[c])}return n},ay.apply(this,arguments)};function e4(e){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&e[n],a=0;if(i)return i.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function t4(e,n){var i=typeof Symbol=="function"&&e[Symbol.iterator];if(!i)return e;var a=i.call(e),s,c=[],p;try{for(;(n===void 0||n-- >0)&&!(s=a.next()).done;)c.push(s.value)}catch(m){p={error:m}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(p)throw p.error}}return c}function n4(e,n,i){if(i||arguments.length===2)for(var a=0,s=n.length,c;a<s;a++)(c||!(a in n))&&(c||(c=Array.prototype.slice.call(n,0,a)),c[a]=n[a]);return e.concat(c||Array.prototype.slice.call(n))}function i4(e){var n;rn(e,(n=os())===null||n===void 0?void 0:n.proxy)}var Rl,lh=[],r4=function(){function e(n){this.active=!0,this.effects=[],this.cleanups=[],this.vm=n}return e.prototype.run=function(n){if(this.active)try{return this.on(),n()}finally{this.off()}else process.env.NODE_ENV!=="production"&&i4("cannot run an inactive effect scope.")},e.prototype.on=function(){this.active&&(lh.push(this),Rl=this)},e.prototype.off=function(){this.active&&(lh.pop(),Rl=lh[lh.length-1])},e.prototype.stop=function(){this.active&&(this.vm.$destroy(),this.effects.forEach(function(n){return n.stop()}),this.cleanups.forEach(function(n){return n()}),this.active=!1)},e}();(function(e){AM(n,e);function n(i){i===void 0&&(i=!1);var a=this,s=void 0;return EM(function(){s=ly(as())}),a=e.call(this,s)||this,i||vM(a),a}return n})(r4);function vM(e,n){var i;if(n=n||Rl,n&&n.active){n.effects.push(e);return}var a=(i=os())===null||i===void 0?void 0:i.proxy;a&&a.$on("hook:destroyed",function(){return e.stop()})}function a4(){return Rl}function bM(e){Rl?Rl.cleanups.push(e):process.env.NODE_ENV!=="production"&&i4("onScopeDispose() is called when there is no active effect scope to be associated with.")}function _M(){var e,n;return((e=a4())===null||e===void 0?void 0:e.vm)||((n=os())===null||n===void 0?void 0:n.proxy)}function yM(e){if(!e.scope){var n=new r4(e.proxy);e.scope=n,e.proxy.$on("hook:destroyed",function(){return n.stop()})}return e.scope}var oy=void 0;try{var is=require("vue");is&&s4(is)?oy=is:is&&"default"in is&&s4(is.default)&&(oy=is.default)}catch{}var rs=null,jl=null,ch=!0,o4="__composition_api_installed__";function s4(e){return e&&Vr(e)&&e.name==="Vue"}function xM(e){return rs&&Hr(e,o4)}function as(){return process.env.NODE_ENV!=="production"&&fh(rs,"must call Vue.use(VueCompositionAPI) before using any function."),rs}function l4(){var e=rs||oy;return process.env.NODE_ENV!=="production"&&fh(e,"No vue dependency found."),e}function wM(e){process.env.NODE_ENV!=="production"&&rs&&e.__proto__!==rs.__proto__&&rn("[vue-composition-api] another instance of Vue installed"),rs=e,Object.defineProperty(e,o4,{configurable:!0,writable:!0,value:!0})}function EM(e){var n=ch;ch=!1;try{e()}finally{ch=n}}function uh(e){if(!!ch){var n=jl;n==null||n.scope.off(),jl=e,jl==null||jl.scope.on()}}function os(){return jl}var sy=new WeakMap;function dh(e){if(sy.has(e))return sy.get(e);var n={proxy:e,update:e.$forceUpdate,type:e.$options,uid:e._uid,emit:e.$emit.bind(e),parent:null,root:null};yM(n);var i=["data","props","attrs","refs","vnode","slots"];return i.forEach(function(a){Zn(n,a,{get:function(){return e["$".concat(a)]}})}),Zn(n,"isMounted",{get:function(){return e._isMounted}}),Zn(n,"isUnmounted",{get:function(){return e._isDestroyed}}),Zn(n,"isDeactivated",{get:function(){return e._inactive}}),Zn(n,"emitted",{get:function(){return e._events}}),sy.set(e,n),e.$parent&&(n.parent=dh(e.$parent)),e.$root&&(n.root=dh(e.$root)),n}var CM=function(e){return Object.prototype.toString.call(e)};function c4(e){return typeof e=="function"&&/native code/.test(e.toString())}var u4=typeof Symbol<"u"&&c4(Symbol)&&typeof Reflect<"u"&&c4(Reflect.ownKeys),ma=function(e){return e};function Zn(e,n,i){var a=i.get,s=i.set;Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:a||ma,set:s||ma})}function d4(e,n,i,a){Object.defineProperty(e,n,{value:i,enumerable:!!a,writable:!0,configurable:!0})}function Hr(e,n){return Object.hasOwnProperty.call(e,n)}function fh(e,n){if(!e)throw new Error("[vue-composition-api] ".concat(n))}function kM(e){return typeof e=="string"||typeof e=="number"||typeof e=="symbol"||typeof e=="boolean"}function ga(e){return Array.isArray(e)}var SM=Object.prototype.toString,f4=function(e){return SM.call(e)},DM=function(e){return f4(e)==="[object Map]"},IM=function(e){return f4(e)==="[object Set]"},BM=4294967295;function OM(e){var n=parseFloat(String(e));return n>=0&&Math.floor(n)===n&&isFinite(e)&&n<=BM}function Ll(e){return e!==null&&typeof e=="object"}function Aa(e){return CM(e)==="[object Object]"}function Vr(e){return typeof e=="function"}function TM(e){return e==null}function rn(e,n){var i=l4();!i||!i.util?console.warn("[vue-composition-api] ".concat(e)):i.util.warn(e,n)}function NM(e,n,i){if(process.env.NODE_ENV!=="production"&&rn("Error in ".concat(i,': "').concat(e.toString(),'"'),n),typeof window<"u"&&typeof console<"u")console.error(e);else throw e}function MM(e,n){return e===n?e!==0||1/e===1/n:e!==e&&n!==n}function FM(e,n){return n=n||os(),process.env.NODE_ENV!=="production"&&!n&&rn("".concat(e," is called when there is no active component instance to be ")+"associated with. Lifecycle injection APIs can only be used during execution of setup()."),n}function ly(e,n){n===void 0&&(n={});var i=e.config.silent;e.config.silent=!0;var a=new e(n);return e.config.silent=i,a}function PM(e){var n=as();return n&&e instanceof n}function RM(e,n){return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];return e.$scopedSlots[n]?e.$scopedSlots[n].apply(e,i):process.env.NODE_ENV!=="production"?rn("slots.".concat(n,'() got called outside of the "render()" scope'),e):void 0}}function jM(e,n){var i;if(!e)i={};else{if(e._normalized)return e._normalized;i={};for(var a in e)e[a]&&a[0]!=="$"&&(i[a]=!0)}for(var a in n)a in i||(i[a]=!0);return i}function p4(e){return u4?Symbol.for(e):e}var zl=p4("composition-api.preFlushQueue"),od=p4("composition-api.postFlushQueue"),sd="composition-api.refKey",h4=new WeakMap,LM=new WeakMap,m4=new WeakMap;function zM(e,n,i){var a=as(),s=a.util,c=s.warn,p=s.defineReactive;process.env.NODE_ENV!=="production"&&(TM(e)||kM(e))&&c("Cannot set reactive property on undefined, null, or primitive value: ".concat(e));var m=e.__ob__;function g(){m&&Ll(i)&&!Hr(i,"__ob__")&&uy(i)}if(ga(e)){if(OM(n))return e.length=Math.max(e.length,n),e.splice(n,1,i),g(),i;if(n==="length"&&i!==e.length)return e.length=i,m==null||m.dep.notify(),i}return n in e&&!(n in Object.prototype)?(e[n]=i,g(),i):e._isVue||m&&m.vmCount?(process.env.NODE_ENV!=="production"&&c("Avoid adding reactive properties to a Vue instance or its root $data at runtime - declare it upfront in the data option."),i):m?(p(m.value,n,i),b4(e,n,i),g(),m.dep.notify(),i):(e[n]=i,i)}var g4=function(){function e(n){var i=n.get,a=n.set;Zn(this,"value",{get:i,set:a})}return e}();function A4(e,n,i){n===void 0&&(n=!1),i===void 0&&(i=!1);var a=new g4(e);i&&(a.effect=!0);var s=Object.seal(a);return n&&m4.set(s,!0),s}function ph(e){var n;if(_n(e))return e;var i=y4((n={},n[sd]=e,n));return A4({get:function(){return i[sd]},set:function(a){return i[sd]=a}})}function _n(e){return e instanceof g4}function QM(e){return _n(e)?e.value:e}function HM(e){if(process.env.NODE_ENV!=="production"&&!va(e)&&rn("toRefs() expects a reactive object but received a plain one."),!Aa(e))return e;var n={};for(var i in e)n[i]=VM(e,i);return n}function VM(e,n){n in e||zM(e,n,void 0);var i=e[n];return _n(i)?i:A4({get:function(){return e[n]},set:function(a){return e[n]=a}})}var v4="__v_skip";function Ql(e){var n;return Boolean(e&&Hr(e,"__ob__")&&typeof e.__ob__=="object"&&((n=e.__ob__)===null||n===void 0?void 0:n[v4]))}function va(e){var n;return Boolean(e&&Hr(e,"__ob__")&&typeof e.__ob__=="object"&&!(!((n=e.__ob__)===null||n===void 0)&&n[v4]))}function cy(e){if(!(!Aa(e)||Ql(e)||ga(e)||_n(e)||PM(e)||h4.has(e))){h4.set(e,!0);for(var n=Object.keys(e),i=0;i<n.length;i++)b4(e,n[i])}}function b4(e,n,i){if(n!=="__ob__"&&!Ql(e[n])){var a,s,c=Object.getOwnPropertyDescriptor(e,n);if(c){if(c.configurable===!1)return;a=c.get,s=c.set,(!a||s)&&arguments.length===2&&(i=e[n])}cy(i),Zn(e,n,{get:function(){var m=a?a.call(e):i;return n!==sd&&_n(m)?m.value:m},set:function(m){a&&!s||(n!==sd&&_n(i)&&!_n(m)?i.value=m:(s&&s.call(e,m),i=m),cy(m))}})}}function _4(e){var n=l4(),i;if(n.observable)i=n.observable(e);else{var a=ly(n,{data:{$$state:e}});i=a._data.$$state}return Hr(i,"__ob__")||uy(i),i}function uy(e,n){var i,a;if(n===void 0&&(n=new Set),!(n.has(e)||Hr(e,"__ob__")||!Object.isExtensible(e))){d4(e,"__ob__",UM(e)),n.add(e);try{for(var s=e4(Object.keys(e)),c=s.next();!c.done;c=s.next()){var p=c.value,m=e[p];!(Aa(m)||ga(m))||Ql(m)||!Object.isExtensible(m)||uy(m,n)}}catch(g){i={error:g}}finally{try{c&&!c.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}}}function UM(e){return e===void 0&&(e={}),{value:e,dep:{notify:ma,depend:ma,addSub:ma,removeSub:ma}}}function YM(){return _4({}).__ob__}function y4(e){if(!Ll(e))return process.env.NODE_ENV!=="production"&&rn('"reactive()" must be called on an object.'),e;if(!(Aa(e)||ga(e))||Ql(e)||!Object.isExtensible(e))return e;var n=_4(e);return cy(n),n}function WM(e){return process.env.NODE_ENV!=="production"&&!Ll(e)?rn("value cannot be made reactive: ".concat(String(e))):m4.set(e,!0),e}var GM=function(e){return"on".concat(e[0].toUpperCase()+e.slice(1))};function JM(e){return function(n,i){var a=FM(GM(e),i);return a&&KM(as(),a,e,n)}}function KM(e,n,i,a){var s=n.proxy.$options,c=e.config.optionMergeStrategies[i],p=XM(n,a);return s[i]=c(s[i],p),p}function XM(e,n){return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var s=os();uh(e);try{return n.apply(void 0,n4([],t4(i),!1))}finally{uh(s)}}}var ZM=JM("mounted"),hh;function $M(){mh(this,zl)}function qM(){mh(this,od)}function eF(e){return e[zl]!==void 0}function tF(e){e[zl]=[],e[od]=[],e.$on("hook:beforeUpdate",$M),e.$on("hook:updated",qM)}function nF(e){return ay({immediate:!1,deep:!1,flush:"pre"},e)}function iF(){var e=_M();return e?eF(e)||tF(e):(hh||(hh=ly(as())),e=hh),e}function mh(e,n){for(var i=e[n],a=0;a<i.length;a++)i[a]();i.length=0}function rF(e,n,i){var a=function(){e.$nextTick(function(){e[zl].length&&mh(e,zl),e[od].length&&mh(e,od)})};switch(i){case"pre":a(),e[zl].push(n);break;case"post":a(),e[od].push(n);break;default:fh(!1,'flush must be one of ["post", "pre", "sync"], but got '.concat(i));break}}function aF(e,n,i,a){var s=e._watchers.length;return e.$watch(n,i,{immediate:a.immediateInvokeCallback,deep:a.deep,lazy:a.noRun,sync:a.sync,before:a.before}),e._watchers[s]}function x4(e,n){var i=e.teardown;e.teardown=function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];i.apply(e,a),n()}}function oF(e,n,i,a){var s;process.env.NODE_ENV!=="production"&&!i&&(a.immediate!==void 0&&rn('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),a.deep!==void 0&&rn('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));var c=a.flush,p=c==="sync",m,g=function(ee){m=function(){try{ee()}catch(ne){NM(ne,e,"onCleanup()")}}},y=function(){m&&(m(),m=null)},O=function(ee){return p||e===hh?ee:function(){for(var ne=[],se=0;se<arguments.length;se++)ne[se]=arguments[se];return rF(e,function(){ee.apply(void 0,n4([],t4(ne),!1))},c)}};if(i===null){var E=!1,N=function(){if(!E)try{E=!0,n(g)}finally{E=!1}},_=aF(e,N,ma,{deep:a.deep||!1,sync:p,before:y});x4(_,y),_.lazy=!1;var S=_.get.bind(_);return _.get=O(S),function(){_.teardown()}}var M=a.deep,P=!1,T;if(_n(n)?T=function(){return n.value}:va(n)?(T=function(){return n},M=!0):ga(n)?(P=!0,T=function(){return n.map(function(ee){return _n(ee)?ee.value:va(ee)?Hl(ee):Vr(ee)?ee():(process.env.NODE_ENV!=="production"&&rn("Invalid watch source: ".concat(JSON.stringify(ee),`.
19
19
  A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.`),e),ma)})}):Vr(n)?T=n:(T=ma,process.env.NODE_ENV!=="production"&&rn("Invalid watch source: ".concat(JSON.stringify(n),`.
20
- A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.`),e)),M){var R=T;T=function(){return Hl(R())}}var b=function(ee,ne){if(!(!M&&P&&ee.every(function(se,me){return MM(se,ne[me])})))return y(),i(ee,ne,g)},w=O(b);if(a.immediate){var B=w,Q=function(ee,ne){return Q=B,b(ee,ga(ee)?[]:ne)};w=function(ee,ne){return Q(ee,ne)}}var F=e.$watch(T,w,{immediate:a.immediate,deep:M,sync:p}),H=e._watchers[e._watchers.length-1];return va(H.value)&&((s=H.value.__ob__)===null||s===void 0?void 0:s.dep)&&M&&H.value.__ob__.dep.addSub({update:function(){H.run()}}),x4(H,y),function(){F()}}function w4(e,n,i){var a=null;Vr(n)?a=n:(process.env.NODE_ENV!=="production"&&rn("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),i=n,a=null);var s=nF(i),c=iF();return oF(c,e,a,s)}function Hl(e,n){if(n===void 0&&(n=new Set),!Ll(e)||n.has(e)||LM.has(e))return e;if(n.add(e),_n(e))Hl(e.value,n);else if(ga(e))for(var i=0;i<e.length;i++)Hl(e[i],n);else if(IM(e)||DM(e))e.forEach(function(s){Hl(s,n)});else if(Aa(e))for(var a in e)Hl(e[a],n);return e}process.env.NODE_ENV!=="production"&&Object.freeze({});var sF=function(){for(var n,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];return(n=as())===null||n===void 0?void 0:n.nextTick.apply(this,i)};function lF(e,n,i){var a=e.__composition_api_state__=e.__composition_api_state__||{};a[n]=i}function cF(e,n){return(e.__composition_api_state__||{})[n]}var Ka={set:lF,get:cF};function uF(e,n,i){var a=e.$options.props;!(n in e)&&!(a&&Hr(a,n))?(_n(i)?Zn(e,n,{get:function(){return i.value},set:function(s){i.value=s}}):Zn(e,n,{get:function(){return va(i)&&i.__ob__.dep.depend(),i},set:function(s){i=s}}),process.env.NODE_ENV!=="production"&&e.$nextTick(function(){Object.keys(e._data).indexOf(n)===-1&&(_n(i)?Zn(e._data,n,{get:function(){return i.value},set:function(s){i.value=s}}):Zn(e._data,n,{get:function(){return i},set:function(s){i=s}}))})):process.env.NODE_ENV!=="production"&&(a&&Hr(a,n)?rn('The setup binding property "'.concat(n,'" is already declared as a prop.'),e):rn('The setup binding property "'.concat(n,'" is already declared.'),e))}function dF(e){var n=Ka.get(e,"rawBindings")||{};if(!(!n||!Object.keys(n).length)){for(var i=e.$refs,a=Ka.get(e,"refs")||[],s=0;s<a.length;s++){var c=a[s],p=n[c];!i[c]&&p&&_n(p)&&(p.value=null)}for(var m=Object.keys(i),g=[],s=0;s<m.length;s++){var c=m[s],p=n[c];i[c]&&p&&_n(p)&&(p.value=i[c],g.push(c))}Ka.set(e,"refs",g)}}function E4(e){for(var n=[e._vnode];n.length;){var i=n.pop();if(i&&(i.context&&dF(i.context),i.children))for(var a=0;a<i.children.length;++a)n.push(i.children[a])}}function C4(e,n){var i,a;if(!!e){var s=Ka.get(e,"attrBindings");if(!(!s&&!n)){if(!s){var c=y4({});s={ctx:n,data:c},Ka.set(e,"attrBindings",s),Zn(n,"attrs",{get:function(){return s==null?void 0:s.data},set:function(){process.env.NODE_ENV!=="production"&&rn("Cannot assign to '$attrs' because it is a read-only property",e)}})}var p=e.$attrs,m=function(E){Hr(s.data,E)||Zn(s.data,E,{get:function(){return e.$attrs[E]}})};try{for(var g=e4(Object.keys(p)),y=g.next();!y.done;y=g.next()){var O=y.value;m(O)}}catch(E){i={error:E}}finally{try{y&&!y.done&&(a=g.return)&&a.call(g)}finally{if(i)throw i.error}}}}}function k4(e,n){var i=e.$options._parentVnode;if(!!i){for(var a=Ka.get(e,"slots")||[],s=jM(i.data.scopedSlots,e.$slots),c=0;c<a.length;c++){var p=a[c];s[p]||delete n[p]}for(var m=Object.keys(s),c=0;c<m.length;c++){var p=m[c];n[p]||(n[p]=RM(e,p))}Ka.set(e,"slots",m)}}function dy(e,n,i){var a=os();uh(e);try{return n(e)}catch(s){if(i)i(s);else throw s}finally{uh(a)}}function fF(e){e.mixin({beforeCreate:n,mounted:function(){E4(this)},beforeUpdate:function(){C4(this)},updated:function(){E4(this)}});function n(){var p=this,m=p.$options,g=m.setup,y=m.render;if(y&&(m.render=function(){for(var E=this,N=[],_=0;_<arguments.length;_++)N[_]=arguments[_];return dy(dh(p),function(){return y.apply(E,N)})}),!!g){if(!Vr(g)){process.env.NODE_ENV!=="production"&&rn('The "setup" option should be a function that returns a object in component definitions.',p);return}var O=m.data;m.data=function(){return i(p,p.$props),Vr(O)?O.call(p,p):O||{}}}}function i(p,m){m===void 0&&(m={});var g=p.$options.setup,y=c(p),O=dh(p);O.setupContext=y,d4(m,"__ob__",YM()),k4(p,y.slots);var E;if(dy(O,function(){E=g(m,y)}),!!E){if(Vr(E)){var N=E;p.$options.render=function(){return k4(p,y.slots),dy(O,function(){return N()})};return}else if(Ll(E)){va(E)&&(E=HM(E)),Ka.set(p,"rawBindings",E);var _=E;Object.keys(_).forEach(function(S){var M=_[S];if(!_n(M))if(va(M))ga(M)&&(M=ph(M));else if(Vr(M)){var P=M;M=M.bind(p),Object.keys(P).forEach(function(T){M[T]=P[T]})}else Ll(M)?s(M)&&a(M):M=ph(M);uF(p,S,M)});return}process.env.NODE_ENV!=="production"&&fh(!1,'"setup" must return a "Object" or a "Function", got "'.concat(Object.prototype.toString.call(E).slice(8,-1),'"'))}}function a(p,m){if(m===void 0&&(m=new Set),!m.has(p)&&!(!Aa(p)||_n(p)||va(p)||Ql(p))){var g=as(),y=g.util.defineReactive;Object.keys(p).forEach(function(O){var E=p[O];y(p,O,E),E&&(m.add(E),a(E,m))})}}function s(p,m){return m===void 0&&(m=new Map),m.has(p)?m.get(p):(m.set(p,!1),ga(p)&&va(p)?(m.set(p,!0),!0):!Aa(p)||Ql(p)||_n(p)?!1:Object.keys(p).some(function(g){return s(p[g],m)}))}function c(p){var m={slots:{}},g=["root","parent","refs","listeners","isServer","ssrContext"],y=["emit"];return g.forEach(function(O){var E="$".concat(O);Zn(m,O,{get:function(){return p[E]},set:function(){process.env.NODE_ENV!=="production"&&rn("Cannot assign to '".concat(O,"' because it is a read-only property"),p)}})}),C4(p,m),y.forEach(function(O){var E="$".concat(O);Zn(m,O,{get:function(){return function(){for(var N=[],_=0;_<arguments.length;_++)N[_]=arguments[_];var S=p[E];S.apply(p,N)}}})}),process.env.NODE_ENV==="test"&&(m._vm=p),m}}function S4(e,n){if(!e)return n;if(!n)return e;for(var i,a,s,c=u4?Reflect.ownKeys(e):Object.keys(e),p=0;p<c.length;p++)i=c[p],i!=="__ob__"&&(a=n[i],s=e[i],Hr(n,i)?a!==s&&Aa(a)&&!_n(a)&&Aa(s)&&!_n(s)&&S4(s,a):n[i]=s);return n}function pF(e){if(xM(e)){process.env.NODE_ENV!=="production"&&rn("[vue-composition-api] already installed. Vue.use(VueCompositionAPI) should be called only once.");return}process.env.NODE_ENV!=="production"&&(e.version?(e.version[0]!=="2"||e.version[1]!==".")&&rn("[vue-composition-api] only works with Vue 2, v".concat(e.version," found.")):rn("[vue-composition-api] no Vue version found")),e.config.optionMergeStrategies.setup=function(n,i){return function(s,c){return S4(Vr(n)?n(s,c)||{}:void 0,Vr(i)?i(s,c)||{}:void 0)}},wM(e),fF(e)}var D4={install:function(e){return pF(e)}};typeof window<"u"&&window.Vue&&window.Vue.use(D4);function hF(e){e=e||Gt,e&&!e.__composition_api_installed__&&e.use(D4)}hF(Gt),Gt.version;const gZ="";var mF=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",[i("div",{staticClass:"user-list"},[e.processNodeObj&&e.processNodeObj.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"?[e.noPostOption?i("span",[e._v("\u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E")]):e.userList.length>=1?i("span",{staticStyle:{"margin-right":"10px"}},[e._v(e._s(e.userList.map(function(a){return a.name}).join("\uFF1B")))]):e._e(),!e.noPostOption&&!e.onePostUser?i("span",{staticClass:"staff-tree-btn",on:{click:function(a){e.disable||(e.visible=!0)}}},[e._v("\u9009\u62E9")]):e._e()]:[e.userList.length>0?i("span",{staticStyle:{"margin-right":"10px"}},[e._v(e._s(e.userList.map(function(a){return a.name}).join("\uFF1B")))]):e._e(),i("span",{staticClass:"staff-tree-btn",on:{click:function(a){e.disable||(e.visible=!0)}}},[e._v("\u9009\u62E9")])]],2),i("departPerson",e._b({attrs:{visible:e.visible,checkedArray:e.checkedArray,positionArray:e.positionArray},on:{"update:visible":function(a){e.visible=a},callback:e.handleCallback},model:{value:e.visible,callback:function(a){e.visible=a},expression:"visible"}},"departPerson",e.entity,!1))],1)},gF=[];const AZ="";function qt(e,n,i,a,s,c,p,m){var g=typeof e=="function"?e.options:e;n&&(g.render=n,g.staticRenderFns=i,g._compiled=!0),a&&(g.functional=!0),c&&(g._scopeId="data-v-"+c);var y;if(p?(y=function(N){N=N||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!N&&typeof __VUE_SSR_CONTEXT__<"u"&&(N=__VUE_SSR_CONTEXT__),s&&s.call(this,N),N&&N._registeredComponents&&N._registeredComponents.add(p)},g._ssrRegister=y):s&&(y=m?function(){s.call(this,(g.functional?this.parent:this).$root.$options.shadowRoot)}:s),y)if(g.functional){g._injectStyles=y;var O=g.render;g.render=function(_,S){return y.call(S),O(_,S)}}else{var E=g.beforeCreate;g.beforeCreate=E?[].concat(E,y):[y]}return{exports:e,options:g}}var I4=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{I4=e});const AF={components:{departPerson:WO.departPerson},unmounted(){window.clearInterval(this.searchInterval)},props:{modelValue:{type:Object},defaultOption:{type:Array},personType:"",personEntity:{type:Object,default:()=>{}},disable:!1,multiple:{default:!1,type:Boolean},max:{default:1,type:Number},items:{default:void 0,type:Array},processNodeObj:{default:void 0,request:!1},isAlis:{type:Boolean,default:!1}},inject:{isAlisInject:{value:"isAlisInject",default:null}},data(){return{visible:!1,treeOptions:null,selectModel:this.multiple?[]:void 0,treeSearchOptions:null,noPostOption:!1,onePostUser:!1,positionArray:[],searchTime:-1,searchParam:"",userList:[],checkedArray:[],entity:{source:"1",type:this.personType||"0",request:Xe.getAjaxObj(),orgType:[],codeType:[3],multiple:!0,maxMultiple:this.processNodeObj&&this.processNodeObj.loopCardinality==-1?1e3:this.max>1?this.max:1,deptCode:this.processNodeObj?this.getDeptCode(1):"",deptCodeArray:this.processNodeObj?this.getDeptCode(0)||[]:[],subjectName:this.processNodeObj?this.getSubjectName():""},searchInterval:window.setInterval(this.searchIntervalFunc,100)}},model:{prop:"modelValue",event:"update:modelValue"},watch:{processNodeObj:{handler(e,n){e&&(e.loopCardinality,this.entity={...this.entity,maxMultiple:e.loopCardinality==-1?1e3:this.max>1?this.max:1})},deep:!0}},mounted(){this.personEntity!=""&&Object.keys(this.personEntity).length>1&&(this.entity={...this.entity,...this.personEntity}),this.processNodeObj&&this.processNodeObj.participantList&&this.processNodeObj.participantList.length>0&&(this.processNodeObj.participantList.map(e=>{e.id=e.id}),this.userList=this.processNodeObj.participantList,this.checkedArray=this.processNodeObj.participantList.map(e=>({type:3,id:e.id,name:e.name||e.realName,subjectId:e.subjectId})),this.$emit("update:modelValue",this.userList.map(e=>e.id)),this.$emit("select",this.userList)),this.gePostUsers()},methods:{getSubjectName(){let e="";return this.processNodeObj.humanPerformerName=="\u56FA\u5B9A\u5355\u4F4D"&&(e=this.processNodeObj.routeTxt.companyIds[0].name),e},gePostUsers(){if(this.processNodeObj&&this.processNodeObj.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let{routeTxt:e}=this.processNodeObj,n={taskDefId:this.processNodeObj.id,postIds:[]};e.postList.map(i=>{n.postIds.push(i.postId)}),e.postList&&e.postList.length>0&&Xe.common.getTaskAuditor(this.personEntity._businessDeptId?this.personEntity._businessDeptId:this.processNodeObj.taskNode?this.processNodeObj.taskNode[0].vars._businessDeptId:"",[n]).then(i=>{let a=[],s=[],c=!1;if(i.data.map(p=>{p.posts.map(m=>{s.push(...m.users),m.users.length==1?a.push(...m.users):c=!0})}),a.length>this.entity.maxMultiple&&this.entity.maxMultiple!=0&&(c=!0),c&&(a=[]),s.length==0){this.noPostOption=!0;return}a.length>0&&(this.onePostUser=!0,this.handleCallback(a)),this.entity.orgType=[5],this.entity.codeType=[8],i.data[0].posts.map(p=>{this.positionArray.push({...p,projectPost:!(this.personEntity._businessDeptId||this.processNodeObj.taskNode&&this.processNodeObj.taskNode[0].vars._businessDeptId),id:p.users.map(m=>m.id)})})})}},getDeptCode(e){let n="";return this.processNodeObj.humanPerformerName=="\u56FA\u5B9A\u90E8\u95E8"&&(e=="1"&&this.processNodeObj.routeTxt.departmentIds.length==1&&(n=this.processNodeObj.routeTxt.departmentIds[0].rangeId),e=="0"&&this.processNodeObj.routeTxt.departmentIds.length>1&&(n=this.processNodeObj.routeTxt.departmentIds.map(i=>i.rangeId))),n},handleCallback(e){this.userList=e,this.checkedArray=this.userList.map(n=>({type:3,id:n.id,name:n.name||n.realName,subjectId:n.subjectId})),this.$emit("update:modelValue",this.userList.map(n=>n.id)),this.$emit("select",this.userList)},handleClose(e){this.userList.splice(e,1),this.checkedArray=this.userList.map(n=>({type:3,id:n.id,name:n.name||n.realName,subjectId:n.subjectId})),this.$emit("update:modelValue",this.userList.map(n=>n.id)),this.$emit("select",this.userList)},searchIntervalFunc(){this.searchTime>0&&(this.searchTime-=100),this.searchTime==0&&(this.searchTime=-1,this.searchParam&&!(this.items&&this.items.length>0)?Xe.org.list(this.searchParam).then(async e=>{if(e.code==bt.success){let n=e.data.map(i=>(i.children=null,i.label=i.name,i.id=i.id,i.deptName=i.deptName,i.alisName=i.alisName,i));this.treeSearchOptions=n,await this.$nextTick(),this.$refs.deptTree.forest.normalizedOptions.forEach(i=>{i.isBranch=!1}),await this.$nextTick(),this.$refs.deptTree.handleLocalSearch()}}):this.treeSearchOptions=null)},searchChange(e){this.searchParam=e,this.searchTime=500,this.deptTree},onSelect(e,n){this.$emit("update:modelValue",this.selectModel),this.$emit("select",e)},onInput(e,n){this.max>0&&this.multiple&&e.length>this.max&&e.length>this.max?(this.$refs.deptTree.clear(),this.$refs.deptTree.forest.selectedNodeIds=this.selectModel,this.$refs.deptTree.select(this.selectModel),this.$refs.deptTree.forest.selectedNodeIds,I4.warning(`\u6700\u591A\u9009\u62E9 ${this.max} \u4EBA`)):(this.selectModel=e,this.$emit("update:modelValue",this.selectModel))},normalizer(e){if(e.children&&!e.children.length&&delete e.children,e.leaf){let n=`${e.deptName} - ${e.label}(${e.phone})`;return(this.isAlis||this.isAlisInject)&&e.alisName&&(n+="participantList -- "+e.alisName),this.$refs.deptTree.trigger.searchQuery&&(n+=`(${this.$refs.deptTree.trigger.searchQuery})`),{id:e.id,label:n,leaf:e.leaf,phone:e.phone,deptName:e.deptName,alisName:e.alisName}}return{id:e.id,label:e.label,leaf:e.leaf,phone:e.phone,children:e.children,deptName:e.deptName,alisName:e.alisName}},async loadTreeOptions({action:e,parentNode:n,callback:i,instanceId:a}){if(e===LOAD_ROOT_OPTIONS)if(this.items){let s=this.items.map(c=>(c.children=null,c.label=c.name,c.id=c.id,c));this.treeOptions=s}else Xe.org.list().then(s=>{if(s.code==bt.success){let c=s.data.map(p=>(p.children=null,p.label=p.name,p.id=p.id,p));this.defaultOption&&(c=[...c,...this.defaultOption]),this.treeOptions=c}});else if(e===LOAD_CHILDREN_OPTIONS){let s=n.id,c="";if(n.orgType==Wu.\u4E3B\u4F53&&(c=n.id,s=""),n.orgType==Wu.\u7FA4\u7EC4){Xe.org.findTeamMember("",s).then(p=>{let m=p.data.map(g=>(g.label=g.name,g.id=g.id,g));n.children=m,i()});return}Xe.org.list("",s,c).then(p=>{if(p.code==bt.success){let m=p.data.map(g=>(g.leaf||(g.children=null),g.label=g.name,g.id=g.id,g));n.children=m,i()}})}}}},B4={};var vF=qt(AF,mF,gF,!1,bF,"3efb7a24",null,null);function bF(e){for(let n in B4)this[n]=B4[n]}const ba=function(){return vF.exports}();var Vl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _F(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function O4(e){var n=e.default;if(typeof n=="function"){var i=function(){return n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(i,a,s.get?s:{enumerable:!0,get:function(){return e[a]}})}),i}var T4={exports:{}};(function(e,n){(function(i,a){e.exports=a()})(Vl,function(){var i=1e3,a=6e4,s=36e5,c="millisecond",p="second",m="minute",g="hour",y="day",O="week",E="month",N="quarter",_="year",S="date",M="Invalid Date",P=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,R={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Se){var ye=["th","st","nd","rd"],_e=Se%100;return"["+Se+(ye[(_e-20)%10]||ye[_e]||ye[0])+"]"}},b=function(Se,ye,_e){var W=String(Se);return!W||W.length>=ye?Se:""+Array(ye+1-W.length).join(_e)+Se},w={s:b,z:function(Se){var ye=-Se.utcOffset(),_e=Math.abs(ye),W=Math.floor(_e/60),J=_e%60;return(ye<=0?"+":"-")+b(W,2,"0")+":"+b(J,2,"0")},m:function Se(ye,_e){if(ye.date()<_e.date())return-Se(_e,ye);var W=12*(_e.year()-ye.year())+(_e.month()-ye.month()),J=ye.clone().add(W,E),re=_e-J<0,ge=ye.clone().add(W+(re?-1:1),E);return+(-(W+(_e-J)/(re?J-ge:ge-J))||0)},a:function(Se){return Se<0?Math.ceil(Se)||0:Math.floor(Se)},p:function(Se){return{M:E,y:_,w:O,d:y,D:S,h:g,m,s:p,ms:c,Q:N}[Se]||String(Se||"").toLowerCase().replace(/s$/,"")},u:function(Se){return Se===void 0}},B="en",Q={};Q[B]=R;var F="$isDayjsObject",H=function(Se){return Se instanceof me||!(!Se||!Se[F])},ee=function Se(ye,_e,W){var J;if(!ye)return B;if(typeof ye=="string"){var re=ye.toLowerCase();Q[re]&&(J=re),_e&&(Q[re]=_e,J=re);var ge=ye.split("-");if(!J&&ge.length>1)return Se(ge[0])}else{var Te=ye.name;Q[Te]=ye,J=Te}return!W&&J&&(B=J),J||!W&&B},ne=function(Se,ye){if(H(Se))return Se.clone();var _e=typeof ye=="object"?ye:{};return _e.date=Se,_e.args=arguments,new me(_e)},se=w;se.l=ee,se.i=H,se.w=function(Se,ye){return ne(Se,{locale:ye.$L,utc:ye.$u,x:ye.$x,$offset:ye.$offset})};var me=function(){function Se(_e){this.$L=ee(_e.locale,null,!0),this.parse(_e),this.$x=this.$x||_e.x||{},this[F]=!0}var ye=Se.prototype;return ye.parse=function(_e){this.$d=function(W){var J=W.date,re=W.utc;if(J===null)return new Date(NaN);if(se.u(J))return new Date;if(J instanceof Date)return new Date(J);if(typeof J=="string"&&!/Z$/i.test(J)){var ge=J.match(P);if(ge){var Te=ge[2]-1||0,le=(ge[7]||"0").substring(0,3);return re?new Date(Date.UTC(ge[1],Te,ge[3]||1,ge[4]||0,ge[5]||0,ge[6]||0,le)):new Date(ge[1],Te,ge[3]||1,ge[4]||0,ge[5]||0,ge[6]||0,le)}}return new Date(J)}(_e),this.init()},ye.init=function(){var _e=this.$d;this.$y=_e.getFullYear(),this.$M=_e.getMonth(),this.$D=_e.getDate(),this.$W=_e.getDay(),this.$H=_e.getHours(),this.$m=_e.getMinutes(),this.$s=_e.getSeconds(),this.$ms=_e.getMilliseconds()},ye.$utils=function(){return se},ye.isValid=function(){return this.$d.toString()!==M},ye.isSame=function(_e,W){var J=ne(_e);return this.startOf(W)<=J&&J<=this.endOf(W)},ye.isAfter=function(_e,W){return ne(_e)<this.startOf(W)},ye.isBefore=function(_e,W){return this.endOf(W)<ne(_e)},ye.$g=function(_e,W,J){return se.u(_e)?this[W]:this.set(J,_e)},ye.unix=function(){return Math.floor(this.valueOf()/1e3)},ye.valueOf=function(){return this.$d.getTime()},ye.startOf=function(_e,W){var J=this,re=!!se.u(W)||W,ge=se.p(_e),Te=function(k,X){var te=se.w(J.$u?Date.UTC(J.$y,X,k):new Date(J.$y,X,k),J);return re?te:te.endOf(y)},le=function(k,X){return se.w(J.toDate()[k].apply(J.toDate("s"),(re?[0,0,0,0]:[23,59,59,999]).slice(X)),J)},he=this.$W,xe=this.$M,Fe=this.$D,K="set"+(this.$u?"UTC":"");switch(ge){case _:return re?Te(1,0):Te(31,11);case E:return re?Te(1,xe):Te(0,xe+1);case O:var j=this.$locale().weekStart||0,C=(he<j?he+7:he)-j;return Te(re?Fe-C:Fe+(6-C),xe);case y:case S:return le(K+"Hours",0);case g:return le(K+"Minutes",1);case m:return le(K+"Seconds",2);case p:return le(K+"Milliseconds",3);default:return this.clone()}},ye.endOf=function(_e){return this.startOf(_e,!1)},ye.$set=function(_e,W){var J,re=se.p(_e),ge="set"+(this.$u?"UTC":""),Te=(J={},J[y]=ge+"Date",J[S]=ge+"Date",J[E]=ge+"Month",J[_]=ge+"FullYear",J[g]=ge+"Hours",J[m]=ge+"Minutes",J[p]=ge+"Seconds",J[c]=ge+"Milliseconds",J)[re],le=re===y?this.$D+(W-this.$W):W;if(re===E||re===_){var he=this.clone().set(S,1);he.$d[Te](le),he.init(),this.$d=he.set(S,Math.min(this.$D,he.daysInMonth())).$d}else Te&&this.$d[Te](le);return this.init(),this},ye.set=function(_e,W){return this.clone().$set(_e,W)},ye.get=function(_e){return this[se.p(_e)]()},ye.add=function(_e,W){var J,re=this;_e=Number(_e);var ge=se.p(W),Te=function(xe){var Fe=ne(re);return se.w(Fe.date(Fe.date()+Math.round(xe*_e)),re)};if(ge===E)return this.set(E,this.$M+_e);if(ge===_)return this.set(_,this.$y+_e);if(ge===y)return Te(1);if(ge===O)return Te(7);var le=(J={},J[m]=a,J[g]=s,J[p]=i,J)[ge]||1,he=this.$d.getTime()+_e*le;return se.w(he,this)},ye.subtract=function(_e,W){return this.add(-1*_e,W)},ye.format=function(_e){var W=this,J=this.$locale();if(!this.isValid())return J.invalidDate||M;var re=_e||"YYYY-MM-DDTHH:mm:ssZ",ge=se.z(this),Te=this.$H,le=this.$m,he=this.$M,xe=J.weekdays,Fe=J.months,K=J.meridiem,j=function(X,te,fe,De){return X&&(X[te]||X(W,re))||fe[te].slice(0,De)},C=function(X){return se.s(Te%12||12,X,"0")},k=K||function(X,te,fe){var De=X<12?"AM":"PM";return fe?De.toLowerCase():De};return re.replace(T,function(X,te){return te||function(fe){switch(fe){case"YY":return String(W.$y).slice(-2);case"YYYY":return se.s(W.$y,4,"0");case"M":return he+1;case"MM":return se.s(he+1,2,"0");case"MMM":return j(J.monthsShort,he,Fe,3);case"MMMM":return j(Fe,he);case"D":return W.$D;case"DD":return se.s(W.$D,2,"0");case"d":return String(W.$W);case"dd":return j(J.weekdaysMin,W.$W,xe,2);case"ddd":return j(J.weekdaysShort,W.$W,xe,3);case"dddd":return xe[W.$W];case"H":return String(Te);case"HH":return se.s(Te,2,"0");case"h":return C(1);case"hh":return C(2);case"a":return k(Te,le,!0);case"A":return k(Te,le,!1);case"m":return String(le);case"mm":return se.s(le,2,"0");case"s":return String(W.$s);case"ss":return se.s(W.$s,2,"0");case"SSS":return se.s(W.$ms,3,"0");case"Z":return ge}return null}(X)||ge.replace(":","")})},ye.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ye.diff=function(_e,W,J){var re,ge=this,Te=se.p(W),le=ne(_e),he=(le.utcOffset()-this.utcOffset())*a,xe=this-le,Fe=function(){return se.m(ge,le)};switch(Te){case _:re=Fe()/12;break;case E:re=Fe();break;case N:re=Fe()/3;break;case O:re=(xe-he)/6048e5;break;case y:re=(xe-he)/864e5;break;case g:re=xe/s;break;case m:re=xe/a;break;case p:re=xe/i;break;default:re=xe}return J?re:se.a(re)},ye.daysInMonth=function(){return this.endOf(E).$D},ye.$locale=function(){return Q[this.$L]},ye.locale=function(_e,W){if(!_e)return this.$L;var J=this.clone(),re=ee(_e,W,!0);return re&&(J.$L=re),J},ye.clone=function(){return se.w(this.$d,this)},ye.toDate=function(){return new Date(this.valueOf())},ye.toJSON=function(){return this.isValid()?this.toISOString():null},ye.toISOString=function(){return this.$d.toISOString()},ye.toString=function(){return this.$d.toUTCString()},Se}(),pe=me.prototype;return ne.prototype=pe,[["$ms",c],["$s",p],["$m",m],["$H",g],["$W",y],["$M",E],["$y",_],["$D",S]].forEach(function(Se){pe[Se[1]]=function(ye){return this.$g(ye,Se[0],Se[1])}}),ne.extend=function(Se,ye){return Se.$i||(Se(ye,me,ne),Se.$i=!0),ne},ne.locale=ee,ne.isDayjs=H,ne.unix=function(Se){return ne(1e3*Se)},ne.en=Q[B],ne.Ls=Q,ne.p={},ne})})(T4);const ld=T4.exports;var yF=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"view-file"},[i("p",{staticClass:"lable"},[e._v("\u67E5\u770B\u9644\u4EF6")]),e._l(e.sortData,function(a,s){return i("div",{key:s,staticClass:"file-info"},[i("div",{staticClass:"name"},[i("el-image",{attrs:{src:e.getFileUrl(a),fit:"fill"}}),i("div",[i("span",[e._v(" "+e._s(e.fileNameLastof(a.name)))]),i("b",{staticClass:"time"},[e._v(e._s(a.uploadTime)+" | "+e._s(e.formatSize(a.size)))])])],1),i("div",{staticClass:"op"},[i("div",{on:{click:function(c){return e.handlePictureCardPreview(a)}}},[e._v(" \u9884\u89C8 ")]),i("div",{on:{click:function(c){return e.handleDownload(a)}}},[e._v(" \u4E0B\u8F7D ")])])])}),i("el-dialog",{attrs:{"append-to-body":""},model:{value:e.dialogVisible,callback:function(a){e.dialogVisible=a},expression:"dialogVisible"}},[i("el-image",{staticStyle:{width:"100%"},attrs:{src:e.dialogImageUrl,alt:"Preview Image"}})],1)],2)},xF=[];const vZ="",wF={props:{dataList:{}},data(){return{dialogImageUrl:"",dialogVisible:!1}},computed:{sortData(){return this.dataList.sort((e,n)=>ld(e.uploadTime).valueOf()-ld(n.uploadTime).valueOf())}},methods:{getExt(e){if(!e)return"";let n=e.lastIndexOf(".");return e.substring(n+1).toLocaleLowerCase()},isAssetTypeAnImage(e){let n=this.getExt(e);return["png","jpg","jpeg","bmp","gif","webp","psd","svg","tiff"].indexOf(n.toLowerCase())!==-1},fileNameLastof(e,n=0){if(e.indexOf("http")==-1&&(n=0),!e)return;let i="/";e.indexOf("\\")!=-1&&(i="\\");let a=e,s=a.lastIndexOf(i);return a.substr(s+1+n,a.length)},formatSize(e){if(!e)return"";var n=1024;return e<n?e+"B":e<Math.pow(n,2)?(e/n).toFixed(2)+"KB":e<Math.pow(n,3)?(e/Math.pow(n,2)).toFixed(2)+"MB":e<Math.pow(n,4)?(e/Math.pow(n,3)).toFixed(2)+"G":(e/Math.pow(n,4)).toFixed(2)+"T"},handleDownload(e){let n=e.url||e.response.data.url;n&&this.downloadFile(n,e.name)},downloadFile:(e,n)=>{var i=document.createElement("a");i.download=n,i.style.display="none";var a=new Blob([e]);i.href=URL.createObjectURL(a),document.body.appendChild(i),i.click(),document.body.removeChild(i)},getFileUrl(e){let n=e.url||e.response.data.url;return this.isAssetTypeAnImage(n)?n:this.getExt(n)=="zip"||this.getExt(n)=="rar"?require("./assets/zip.png"):this.getExt(n)=="doc"||this.getExt(n)=="docx"?require("./assets/doc.png"):this.getExt(n)=="xls"||this.getExt(n)=="xlsx"?require("./assets/xls.png"):this.getExt(n)=="pdf"?require("./assets/pdf.png"):require("./assets/qt.png")},handlePictureCardPreview(e){let n=e.url||e.response.data.url,i=n.lastIndexOf(".");n.substring(i+1)=="zip"||n.substring(i+1)=="rar"?window.open(n):n.includes("https")?window.open(`https://wdyl.ddzg.cn:8089/?ssl=1&furl=${n}`):window.open(`https://wdyl.ddzg.cn:8089/?ssl=0&furl=${n}`)}}},N4={};var EF=qt(wF,yF,xF,!1,CF,"e0be2f1a",null,null);function CF(e){for(let n in N4)this[n]=N4[n]}const kF=function(){return EF.exports}();var SF=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[i("el-form-item",{attrs:{label:"\u52A0\u7B7E\u4EBA\u5458",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u52A0\u7B7E\u4EBA\u5458"}]}},[i("staffTree",{attrs:{personType:e.param.personType,personEntity:e.param.personEntity,multiple:"",max:5},model:{value:e.targetUser,callback:function(a){e.targetUser=a},expression:"targetUser"}})],1),i("el-form-item",{attrs:{label:"\u52A0\u7B7E\u539F\u56E0",rules:[{required:!0,message:"\u52A0\u7B7E\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"}]}},[i("el-input",{staticClass:"formInput",attrs:{rows:5,maxlength:"200","show-word-limit":"",resize:"none",type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u52A0\u7B7E\u539F\u56E0(200\u5B57\u4EE5\u5185)"},model:{value:e.reason,callback:function(a){e.reason=a},expression:"reason"}})],1),e._t("file"),e._t("form")],2)},DF=[];const bZ="";var gh=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{gh=e});const IF={components:{staffTree:ba},props:{param:Object},data(){return{reason:"",targetUser:[]}},methods:{getRes(){return{targetUser:this.targetUser}},confirm(e,n){if(!this.targetUser||this.targetUser.length==0)return gh.warning("\u8BF7\u9009\u62E9\u5BA1\u6838\u4EBA"),!1;if(!this.reason)return gh.warning("\u8BF7\u586B\u5199\u52A0\u7B7E\u539F\u56E0"),!1;if(this.reason.length>200)return gh.warning("\u52A0\u7B7E\u539F\u56E0\u4E0D\u80FD\u8D85\u8FC7200\u4E2A\u5B57"),!1;let i=this.targetUser||[];e&&e(),n(),Xe.tis.addMultiInstance({taskId:this.param.taskInstId,signPersoneds:i,comment:this.reason}).then(a=>{a.code==bt.success?this.$emit("success"):this.$emit("fail",a.msg)})}}},M4={};var BF=qt(IF,SF,DF,!1,OF,"79bc4843",null,null);function OF(e){for(let n in M4)this[n]=M4[n]}const F4=function(){return BF.exports}();var TF=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-select",{staticClass:"select",attrs:{placeholder:"\u9009\u62E9\u5E38\u7528\u610F\u89C1"},on:{change:e.changeFun},model:{value:e.value,callback:function(a){e.value=a},expression:"value"}},e._l(e.list,function(a,s){return i("el-option",{key:a.opinionId,attrs:{label:a.opinionName,value:a.opinionName}},[i("el-tooltip",{attrs:{effect:"dark","visible-arrow":!0,"popper-class":"pr-option-tooltip",content:a.opinionName,placement:"right"}},[i("div",{staticClass:"option-c"},[i("span",[e._v(e._s(a.opinionName))]),i("i",{staticClass:"el-icon-delete",staticStyle:{float:"right"},on:{click:function(c){return c.stopPropagation(),e.del(a)}}})])])],1)}),1)},NF=[];const _Z="",yZ="",MF={props:{showLabel:!1},data(){return{value:"",list:[]}},mounted(){this.getList()},methods:{addIdea(e){if(!e)return this.$message({type:"error",message:"\u8BF7\u8F93\u5165\u610F\u89C1\u540E\u91CD\u8BD5"});this.$confirm(`\u5C06\u201D${e}\u201D\u8BBE\u4E3A\u5E38\u7528\u610F\u89C1\u3002`,"\u64CD\u4F5C\u4FE1\u606F\u63D0\u9192",{confirmButtonText:"\u7EE7\u7EED",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{Xe.getAjaxObj().post("/auth/user/opinion/save",{opinionName:e}).then(n=>{n.success?(this.getList(),this.$message({type:"success",message:"\u8BBE\u7F6E\u6210\u529F"})):this.$message({type:"error",message:n.msg})})})},changeFun(){this.$emit("change",this.value),this.value=""},getList(){Xe.getAjaxObj().get("/auth/user/opinion/my","").then(e=>{this.list=e.data})},del(e){this.$confirm("\u6B64\u64CD\u4F5C\u5C06\u6C38\u4E45\u5220\u9664\u8BE5\u610F\u89C1, \u662F\u5426\u7EE7\u7EED?","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{Xe.getAjaxObj().get(`/auth/user/opinion/del/${e.opinionId}`,"").then(n=>{this.getList(),this.$message({type:"success",message:"\u5220\u9664\u6210\u529F"})})}).catch(()=>{})}}},P4={};var FF=qt(MF,TF,NF,!1,PF,"a3cd7af2",null,null);function PF(e){for(let n in P4)this[n]=P4[n]}const fy=function(){return FF.exports}();var RF=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[i("el-form-item",{attrs:{label:"\u8F6C\u529E\u4EBA",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8F6C\u529E\u4EBA"}]}},[i("staffTree",{attrs:{personType:e.param.personType,personEntity:e.personEntity},model:{value:e.targetUID,callback:function(a){e.targetUID=a},expression:"targetUID"}})],1),e.param.showCommIdea?i("el-form-item",{attrs:{label:"\u5FEB\u6377\u56DE\u590D"}},[i("commIdea",{ref:"commIdea",on:{change:function(a){return e.commentMsg=a}}})],1):e._e(),i("el-form-item",{attrs:{label:"\u5BA1\u6279\u610F\u89C1",rules:[{required:!0,message:"\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u4E3A\u7A7A"}]}},[i("el-input",{attrs:{rows:5,maxlength:"200","show-word-limit":"",resize:"none",type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"},model:{value:e.commentMsg,callback:function(a){e.commentMsg=a},expression:"commentMsg"}}),e.param.showCommIdea?i("div",{staticClass:"add-idea"},[i("span",{on:{click:function(a){return e.$refs.commIdea.addIdea(e.commentMsg)}}},[e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]):e._e()],1),e._t("file"),e._t("form")],2)},jF=[];const xZ="";var Ah=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{Ah=e});const LF={components:{staffTree:ba,commIdea:fy},props:{param:Object},data(){return{commentMsg:"",targetName:"",targetUID:"",personEntity:{}}},watch:{param:{handler(e){this.personEntity={...e.personEntity,maxMultiple:1}},immediate:!0,deep:!0}},methods:{getRes(){return{targetUID:this.targetUID,targetName:this.targetName,commentMsg:this.commentMsg}},confirm(e,n){if(!this.targetUID)return Ah.warning("\u8BF7\u9009\u62E9\u8F6C\u529E\u4EBA"),!1;if(!this.commentMsg)return Ah.warning("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"),!1;if(this.commentMsg.length>200)return Ah.warning("\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u8D85\u8FC7200\u4E2A\u5B57"),!1;e&&e(),n(),Xe.tis.transferTask({taskId:this.param.taskInstId,assignee:this.targetUID.join(" "),comment:this.commentMsg}).then(i=>{i.code==bt.success?this.$emit("success"):this.$emit("fail",i.msg)})}}},R4={};var zF=qt(LF,RF,jF,!1,QF,"dd93bc60",null,null);function QF(e){for(let n in R4)this[n]=R4[n]}const j4=function(){return zF.exports}();var HF=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"user-task"},[e.processNodeObj.nodeType=="exclusiveGateway"&&e.processNodeObj.branches&&e.processNodeObj.branches.length>=1?[e.processNodeObj.branches.length>1?i("el-form-item",{attrs:{label:e.processNodeObj.name||"\u4E0B\u4E00\u8282\u70B9"}},[i("el-radio-group",{staticClass:"ml-4",model:{value:e.radioModel,callback:function(a){e.radioModel=a},expression:"radioModel"}},e._l(e.processNodeObj.branches,function(a){return i("el-radio",{key:a.id,attrs:{label:a,size:"large"}},[e._v(e._s(a.name?a.name:a.nodeInfoDTO?a.nodeInfoDTO.name:""))])}),1)],1):e._e(),e.radioModel.id?[e.radioModel.nodeInfoDTO&&e.radioModel.nodeInfoDTO.nodeType=="userTask"?[i("userTask",{key:e.radioModel.nodeInfoDTO.id,ref:e.setItemRef(e.radioModel.nodeInfoDTO.id),attrs:{personType:e.personType,personEntity:e.personEntity,"process-node":Object.assign({},e.radioModel.nodeInfoDTO,{REQUIRED:!(e.radioModel.nodeInfoDTO.setPersonnel==!0&&e.radioModel.nodeInfoDTO.assignees&&e.radioModel.nodeInfoDTO.assignees.length>0)}),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})]:e.radioModel.nodeInfoDTO&&e.radioModel.nodeInfoDTO.nodeType=="inclusiveGateway"?[i("userTask",{key:e.radioModel.nodeInfoDTO.id,ref:e.setItemRef(e.radioModel.nodeInfoDTO.id),attrs:{personType:e.personType,personEntity:e.personEntity,"process-node":Object.assign({},e.radioModel.nodeInfoDTO,{REQUIRED:!(e.radioModel.nodeInfoDTO.setPersonnel==!0&&e.radioModel.nodeInfoDTO.assignees&&e.radioModel.nodeInfoDTO.assignees.length>0)}),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})]:e.radioModel.nodeInfoDTO&&e.radioModel.nodeInfoDTO.nodeType=="exclusiveGateway"?e._l(e.radioModel.nodeInfoDTO.branches,function(a){return i("userTask",{key:a.nodeInfoDTO.id,ref:e.setItemRef(a.nodeInfoDTO.id),refInFor:!0,attrs:{personType:e.personType,personEntity:e.personEntity,processNode:Object.assign({},a.nodeInfoDTO,{REQUIRED:!(a.nodeInfoDTO.setPersonnel==!0&&a.nodeInfoDTO.assignees&&a.nodeInfoDTO.assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})}):e._e()]:e.processNodeObj&&e.processNodeObj.branches&&e.processNodeObj.branches.length==1?e._l(e.processNodeObj.branches,function(a){return i("userTask",{key:a.nodeInfoDTO?a.nodeInfoDTO.id:a.id,ref:e.setItemRef(a.nodeInfoDTO?a.nodeInfoDTO.id:a.id),refInFor:!0,attrs:{personType:e.personType,personEntity:e.personEntity,"process-node":Object.assign({},a.nodeInfoDTO?a.nodeInfoDTO:a,{REQUIRED:!(a.nodeInfoDTO.setPersonnel==!0&&a.nodeInfoDTO.assignees&&a.nodeInfoDTO.assignees.length>0)}),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})}):e._e()]:e.processNodeObj.nodeType=="inclusiveGateway"&&e.processNodeObj.branches&&e.processNodeObj.branches.length>0?[i("el-form-item",{attrs:{label:e.processNodeObj.name||"\u4E0B\u4E00\u8282\u70B9"}},[i("el-checkbox-group",{model:{value:e.checkList,callback:function(a){e.checkList=a},expression:"checkList"}},[e._l(e.processNodeObj.branches,function(a){return[e.isSelect(a.nodeInfoDTO?a.nodeInfoDTO:a)?i("el-checkbox",{key:"checkbox"+(a.nodeInfoDTO?a.nodeInfoDTO.id:a.id),attrs:{label:a.nodeInfoDTO?a.nodeInfoDTO.name:a.name,checked:!0,disabled:""}}):i("el-checkbox",{key:"checkbox1"+(a.nodeInfoDTO?a.nodeInfoDTO.id:a.id),attrs:{label:a.nodeInfoDTO?a.nodeInfoDTO.name:a.name}})]})],2)],1),e._l(e.checkModelList,function(a){return i("userTask",{key:a.nodeInfoDTO?a.nodeInfoDTO.id:a.id,ref:e.setItemRef(a.nodeInfoDTO?a.nodeInfoDTO.id:a.id),refInFor:!0,attrs:{personType:e.personType,personEntity:e.personEntity,processNode:Object.assign({},a.nodeInfoDTO?a.nodeInfoDTO:a,{REQUIRED:a.nodeInfoDTO?!(a.nodeInfoDTO.setPersonnel==!0&&a.nodeInfoDTO.assignees&&a.nodeInfoDTO.assignees.length>0):!(a.setPersonnel==!0&&a.assignees&&a.assignees.length>0)})}})})]:!e.processNodeObj.assignee||!e.processNodeObj.assignees||e.isOption(e.processNodeObj.humanPerformerName)?[i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.lv1label||"\u8282\u70B9\u540D\u79F0"},scopedSlots:e._u([{key:"label",fn:function(a){return a.label,[i("div",{staticStyle:{"font-size":"16px"}},[e._v(e._s(e.lv1label||"\u8282\u70B9\u540D\u79F0"))])]}}])},[i("b",{staticStyle:{"font-size":"16px"}},[e._v(e._s(e.processNodeObj.name))])]),e.processNodeObj.routeTxt&&e.processNodeObj.routeTxt.length>0&&e.processNodeObj.userList&&e.processNodeObj.userList.length>0?i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.peopleLabel||"\u6240\u5C5E\u8303\u56F4"}},e._l(e.processNodeObj.routeTxt,function(a,s){return i("div",{key:a.type},[a.ids&&a.ids.length>0?i("div",[i("b",{staticClass:"include include-type",class:["include-"+a.type]},[e._v(e._s(a.type=="user"?"\u7528\u6237":a.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"))]),i("span",{staticClass:"include include-name"},[e._v(e._s(a.name))]),s!==e.processNodeObj.routeTxt.length-1?i("div",{staticClass:"include include-assign",class:["include-assign-"+(a.assigneeRetain?"true":"false")]},[e._v(e._s(e.processNodeObj.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"))]):e._e()]):e._e()])}),0):e._e(),i("el-form-item",{attrs:{label:e.label||"\u5904\u7406\u4EBA",rules:e.rules||{}}},[e.processNodeObj.userList&&e.processNodeObj.userList.length>=2?i("el-select",{attrs:{filterable:"",multiple:e.processNodeObj.loopCardinality==-1,placeholder:"\u8BF7\u9009\u62E9"},on:{change:e.fixPeopleChange},model:{value:e.targetUserId,callback:function(a){e.targetUserId=a},expression:"targetUserId"}},e._l(e.processNodeObj.userList,function(a,s){return i("el-option",{key:a.userId,attrs:{label:a.realName,value:a.userId}})}),1):e.processNodeObj.userList&&e.processNodeObj.userList.length==1?i("div",{staticClass:"setVal"},[e._v(" "+e._s(e.processNodeObj.userList[0].realName)+" ")]):e.processNodeObj.setPersonnel&&e.processNodeObj.assignees?i("div",{staticClass:"setVal"},[e._v(" "+e._s((e.processNodeObj.assignees||[]).map(function(a){return a.name||a.realName}).join(", "))+" ")]):i("staffTree",{attrs:{processNodeObj:e.processNodeObj,personType:e.personType,personEntity:e.personEntity,multiple:"",max:e.processNodeObj.loopCardinality==-1?1e3:1,items:e.getTreeData(e.processNodeObj)},on:{"update:modelValue":function(a){e.complete(a,e.processNodeObj)},select:e.selectChange},model:{value:e.targetUserId,callback:function(a){e.targetUserId=a},expression:"targetUserId"}})],1)]:e._e()],2)},VF=[];const wZ="";var ss=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{ss=e});const UF={name:"userTask",components:{staffTree:ba},props:{index:{type:Number,default:0},processNode:{require:!0},label:"",peopleLabel:"",lv1label:"",personType:"",personEntity:{type:Object,default:()=>{}},rules:{require:!1,type:Array}},data(){return{deptList:[],Enum:Np,resultList:[],radioModel:{},checkList:[],targetUserId:"",targetUserList:[],processNodeObj:this.processNode,userTaskListData:{},personnelList:[]}},computed:{checkModelList(){let e=this.processNodeObj.branches.filter(n=>this.checkList.includes(n.incomingConditionItemList[0].compareValue));return this.resultList=e||[],this.resultList}},watch:{processNode:{handler(e,n){e.nodeType=="userTask"&&e.setPersonnel&&e.assignees&&e.assignees.length>0&&(this.targetUserId=e.assignees.map(i=>i.id)),e.userList&&e.userList.length==1&&(this.targetUserId=e.userList[0].userId),this.processNodeObj=e||{}},deep:!0,immediate:!0}},mounted(){this.processNodeObj.childNode&&this.processNodeObj.childNode.length==1&&this.processNodeObj.type==t_.\u5355\u4E00\u5206\u652F&&(this.radioModel=this.processNodeObj.childNode[0])},methods:{isSelect(e){if(e.incomingConditionItemList[0]){let n=e.incomingConditionItemList[0].itemName.includes("selecd");return n&&(this.checkList.includes(e.name)||this.checkList.push(e.name)),n}return!1},fixPeopleChange(e){this.complete(e,this.processNodeObj)},selectChange(e){this.targetUserList=e},complete(e,n){n.vars=e,this.resultList.every(i=>i.vars)&&(this.processNodeObj.vars=this.resultList.map(i=>i.vars),this.$emit("complete",this.processNodeObj))},setItemRef(e){return this.userTaskListData[e]="userTask"+e,this.userTaskListData[e]},getTreeData(e){if(e){if(e.humanPerformerName=="\u56FA\u5B9A\u90E8\u95E8")return e.routeTxt.departmentIds.map(n=>{let i={};return i.id=n.rangeId,i.leaf=!1,i.name=n.name,i.orgType=this.Enum.UserType.\u90E8\u95E8,i});if(e.humanPerformerName=="\u56FA\u5B9A\u5355\u4F4D")return e.routeTxt.companyIds.map(n=>{let i={};return i.id=n.rangeId,i.leaf=!1,i.name=n.name,i.orgType=this.Enum.UserType.\u4E3B\u4F53,i});if(e.humanPerformerName=="\u56FA\u5B9A\u7FA4\u7EC4")return e.routeTxt.teamList.map(n=>{let i={};return i.id=n.id,i.leaf=!1,i.name=n.teamName,i.orgType=this.Enum.UserType.\u7FA4\u7EC4,i})}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},getValue(){let e=!0,n={multiNodeParticipant:{},vars:{}};if(!this.processNodeObj.type||this.processNodeObj.type==this.Enum.ProcessNodeType.\u7528\u6237\u4EFB\u52A1||this.processNodeObj.type==t_.\u7528\u6237\u8282\u70B9)if(this.processNodeObj.nodeType=="exclusiveGateway")for(let i in this.userTaskListData){let a=this.userTaskListData[i],s=this.$refs[a];if(s=Array.isArray(s)?s[0]:s,s){let c=s.getValue();c?(this.radioModel&&this.radioModel.nodeInfoDTO&&this.radioModel.nodeInfoDTO.id&&this.radioModel.nodeInfoDTO.incomingConditionItemList&&this.radioModel.nodeInfoDTO.incomingConditionItemList.length>0&&(n.vars[this.radioModel.nodeInfoDTO.incomingConditionItemList[0].itemName]=this.radioModel.nodeInfoDTO.incomingConditionItemList[0].compareValue),n.multiNodeParticipant={...n.multiNodeParticipant,...c.multiNodeParticipant},n.vars={...n.vars,...c.vars}):e=!1}}else if(this.processNodeObj.nodeType=="inclusiveGateway")if(this.resultList&&this.resultList.length>0)this.resultList.forEach(i=>{const a=this.userTaskListData[i.nodeInfoDTO.id];let s=this.$refs[a];if(s=Array.isArray(s)?s[0]:s,s){let c=s.getValue();c?(i.nodeInfoDTO.incomingConditionItemList.length!==0&&i.nodeInfoDTO.incomingConditionItemList.forEach(p=>{p.itemName&&(n.vars[p.itemName]=p.compareValue)}),n.multiNodeParticipant={...n.multiNodeParticipant,...c.multiNodeParticipant},n.vars={...n.vars,...c.vars}):e=!1}});else return this.processNodeObj,this.processNodeObj&&this.processNodeObj.nodeType=="inclusiveGateway"?ss.warning("\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9"):this.processNodeObj.nodeInfoDTO.name&&ss.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.nodeInfoDTO.name} `),!1;else if(!this.processNodeObj.assignee||!Array.isArray(this.processNodeObj.assignee)||!this.processNodeObj.setPersonnel||this.isOption(this.processNodeObj.humanPerformerName)||this.processNodeObj.nodeInfoDTO&&(!this.processNodeObj.nodeInfoDTO.assignee||!Array.isArray(this.processNodeObj.nodeInfoDTO.assignee)||!this.processNodeObj.nodeInfoDTO.setPersonnel||this.isOption(this.processNodeObj.nodeInfoDTO.humanPerformerName))){if(this.targetUserId&&this.targetUserId.length>0)n.multiNodeParticipant={},n.multiNodeParticipant[this.processNode.nodeInfoDTO?this.processNodeObj.nodeInfoDTO.id:this.processNodeObj.id]=Array.isArray(this.targetUserId)?this.targetUserId:[this.targetUserId];else if(this.processNodeObj.REQUIRED!==!1||this.processNodeObj.nodeInfoDTO&&this.processNodeObj.nodeInfoDTO.REQUIRED!==!1)return this.processNodeObj.nodeInfoDTO?this.processNodeObj.nodeInfoDTO.name&&ss.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.nodeInfoDTO.name} \u5904\u7406\u4EBA`):this.processNodeObj.name&&ss.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.name} \u5904\u7406\u4EBA`),!1}else this.processNodeObj.incomingConditionItemList&&this.processNodeObj.incomingConditionItemList.length>0&&(n.vars[this.processNodeObj.incomingConditionItemList[0].itemName]=this.processNodeObj.incomingConditionItemList[0].compareValue);else for(let i in this.userTaskListData){let a=this.userTaskListData[i],s=this.$refs[a];if(s=Array.isArray(s)?s[0]:s,s){let c=s.getValue();if(!c)e=!1;else{if(this.processNodeObj.nodeType=="exclusiveGateway")if(this.radioModel&&this.radioModel.id)this.radioModel.incomingConditionItemList&&this.radioModel.incomingConditionItemList.length>0&&(n.vars[this.radioModel.incomingConditionItemList[0].itemName]=this.radioModel.incomingConditionItemList[0].compareValue);else return this.processNodeObj.name&&ss.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.name} \u4E0B\u4E00\u8282\u70B9`),!1;else if(this.processNodeObj.nodeType=="inclusiveGateway")if(this.resultList&&this.resultList.length>0)this.resultList.forEach(p=>{p.incomingConditionItemList.length!==0&&p.incomingConditionItemList.forEach(m=>{m.itemName&&(n.vars[m.itemName]=m.compareValue)})});else return this.processNodeObj.name&&ss.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.name} `),!1;n.multiNodeParticipant={...n.multiNodeParticipant,...c.multiNodeParticipant},n.vars={...n.vars,...c.vars}}}}return e&&n},getLabel(e){let n="";return e.incomingConditionItemList.length>0&&(n=e.incomingConditionItemList[0].compareValue),n||e.name||"\u540E\u7EED\u8282\u70B9"}}},L4={};var YF=qt(UF,HF,VF,!1,WF,null,null,null);function WF(e){for(let n in L4)this[n]=L4[n]}const py=function(){return YF.exports}();var GF=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"sign-container",style:e.setDynamicVars},[i("div",{staticClass:"content-area"},[i("div",{staticClass:"canvas-container"},[i("canvas",{ref:"canvasRef",attrs:{id:"canvas-id","canvas-id":"canvas-id"},on:{mousemove:e.draw,mousedown:e.startDrawing,mouseup:e.finishDrawing}})]),i("div",{staticClass:"history"},[i("div",{staticClass:"img-grid",on:{click:function(a){return e.useHistory(0)}}},[e.historyPics[0]?i("el-image",{attrs:{src:e.historyPics[0]?e.historyPics[0].url:"",fit:"scale-down"}}):e._e()],1),i("div",{staticClass:"img-grid",on:{click:function(a){return e.useHistory(1)}}},[e.historyPics[1]?i("el-image",{attrs:{src:e.historyPics[1]?e.historyPics[1].url:"",fit:"scale-down"}}):e._e()],1),i("div",{staticClass:"img-grid",on:{click:function(a){return e.useHistory(2)}}},[e.historyPics[2]?i("el-image",{attrs:{src:e.historyPics[2]?e.historyPics[2].url:"",fit:"scale-down"}}):e._e()],1)])]),i("div",{staticClass:"actions-box"},[i("button",{staticClass:"commn-btn",on:{click:e.clearCanvas}},[e._v("\u6E05\u9664")]),i("button",{staticClass:"commn-btn",on:{click:e.saveSignature}},[e._v("\u4FDD\u5B58")]),i("button",{staticClass:"commn-btn",on:{click:e.undo}},[e._v("\u64A4\u9500")])])])},JF=[];const EZ="",KF={upload:e=>new Promise((n,i)=>{Xe.getAjaxObj().post("/file/upload",e).then(a=>{n(a)})})},XF={data(){return{ctx:null,signatureImage:"",actionHeight:0,isDrawing:!1,paths:[],currentPath:[],historyPics:[]}},methods:{startDrawing(e){this.isDrawing=!0,this.currentPath=[];const n=this.$refs.canvasRef.getBoundingClientRect(),i=(e.clientX-n.left)*(this.$refs.canvasRef.width/n.width),a=(e.clientY-n.top)*(this.$refs.canvasRef.height/n.height);this.ctx.beginPath(),this.ctx.moveTo(i,a),this.currentPath.push({x:i,y:a})},draw(e){if(!!this.isDrawing&&this.currentPath.length>0){const n=this.$refs.canvasRef.getBoundingClientRect(),i=(e.clientX-n.left)*(this.$refs.canvasRef.width/n.width),a=(e.clientY-n.top)*(this.$refs.canvasRef.height/n.height);this.ctx.lineWidth=2,this.ctx.strokeStyle="#000000",this.ctx.lineTo(i,a),this.ctx.stroke(),this.currentPath.push({x:i,y:a})}},undo(){this.paths.pop(),this.ctx.clearRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height);for(let e of this.paths)for(let n=0;n<e.length-1;n++){const{x:i,y:a}=e[n];n===0?(this.ctx.beginPath(),this.ctx.moveTo(i,a)):(this.ctx.lineTo(i,a),this.ctx.stroke())}},finishDrawing(e){this.currentPath.length>0&&this.paths.push(this.currentPath),this.isDrawing=!1},clearCanvas(){this.ctx.clearRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.signatureImage="",this.paths=[],this.$emit("saveSignature","",!1)},saveSignature(){if(this.paths.length==0){this.$emit("validateFail","\u8BF7\u7B7E\u5B57");return}this.signatureImage=this.$refs.canvasRef.toBlob(e=>{this.uploadImage(e)},"image/png",.95)},async uploadImage(e,n){this.loading=!0;const i=new FormData;i.append("file",e,n||`signature-${Date.now()}.png`);const a=await KF.upload(i);if(this.loading=!1,!a.success)return;let s=JSON.parse(localStorage.getItem("signaturesArr"))||[];s.unshift(a.data),this.historyPics=s.slice(0,3),localStorage.setItem("signaturesArr",JSON.stringify(this.historyPics)),this.$emit("saveSignature",a.data,!0)},useHistory(e){this.historyPics[e]&&this.$confirm("\u662F\u5426\u4F7F\u7528\u5386\u53F2\u7B7E\u5B57","\u64CD\u4F5C\u4FE1\u606F\u63D0\u9192",{confirmButtonText:"\u7EE7\u7EED",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{this.$emit("saveSignature",this.historyPics[e],!0)})}},computed:{setDynamicVars(){return{"--action-height":`${this.actionHeight}px`}}},watch:{setDynamicVars(e){let n=document.querySelector(".canvas-container");n&&(this.$refs.canvasRef.width=n.offsetWidth,this.$refs.canvasRef.height=n.offsetHeight-this.actionHeight)}},mounted(){document.querySelector(".actions-box").offsetHeight?this.actionHeight=document.querySelector(".actions-box").offsetHeight:setTimeout(()=>{this.actionHeight=document.querySelector(".actions-box").offsetHeight},200),this.ctx=this.$refs.canvasRef.getContext("2d"),localStorage.getItem("signaturesArr")?this.historyPics=JSON.parse(localStorage.getItem("signaturesArr")):this.historyPics=[]}},z4={};var ZF=qt(XF,GF,JF,!1,$F,"9b1b2fcc",null,null);function $F(e){for(let n in z4)this[n]=z4[n]}const qF=function(){return ZF.exports}();var e9=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[e.param.ProcessInsObj.processDefId!="obj_94014ede99b6495d8f6d5977314faa15"?[i("el-form-item",{attrs:{label:"\u5FEB\u6377\u56DE\u590D"}},[i("el-radio-group",{model:{value:e.commentMsg,callback:function(a){e.commentMsg=a},expression:"commentMsg"}},[i("el-radio",{attrs:{label:"\u540C\u610F"}},[e._v("\u540C\u610F")]),e.param.showAsPlanned?i("el-radio",{attrs:{label:"\u5982\u62DF"}},[e._v("\u5982\u62DF")]):e._e(),i("el-radio",{attrs:{label:"\u5DF2\u9605"}},[e._v("\u5DF2\u9605")])],1)],1),e.param.showCommIdea?i("el-form-item",[i("commIdea",{ref:"commIdea",on:{change:function(a){return e.commentMsg=a}}})],1):e._e(),i("el-form-item",{attrs:{label:"\u5BA1\u6279\u610F\u89C1",rules:[{required:e.param.commentMsgRequired,message:"\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u4E3A\u7A7A"}]}},[i("el-input",{staticClass:"formInput",attrs:{rows:5,maxlength:"200","show-word-limit":"",type:"textarea",resize:"none",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"},model:{value:e.commentMsg,callback:function(a){e.commentMsg=a},expression:"commentMsg"}}),e.param.showCommIdea?i("div",{staticClass:"add-idea"},[i("span",{on:{click:function(a){return e.$refs.commIdea.addIdea(e.commentMsg)}}},[e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]):e._e()],1)]:e._e(),e._t("file"),e.param.nodeLoading&&!e.param.ProcessInsObj.taskParentId?[i("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9",size:"normal"}},[i("b",{staticStyle:{"font-size":"16px"}},[e._v("\u8282\u70B9\u52A0\u8F7D\u4E2D\uFF0C\u8BF7\u7A0D\u540E......")])])]:e.param.ProcessInsObj.taskParentId?e._e():[e.param.nextTaskNode&&e.param.nextTaskNode.id&&e.param.nextTaskNode.nodeType!="parallelGateway"&&e.param.nextTaskNode.nodeType!="exclusiveGateway"?[e.param.nextTaskNode.nodeType!="endEvent"?[i("userTask",{key:e.param.nextTaskNode.id,ref:e.setItemRef(e.param.nextTaskNode.id),attrs:{personType:e.param.nextTaskNode.personType||"",personEntity:{},"process-node":Object.assign({},e.param.nextTaskNode,{REQUIRED:!(e.param.nextTaskNode.setPersonnel==!0&&e.param.nextTaskNode.assignees&&e.param.nextTaskNode.assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})]:[i("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0"}},[i("b",{staticStyle:{"font-size":"16px"}},[e._v("\u7ED3\u675F\u4E8B\u4EF6")])])]]:e.param.nextTaskNode.nodeType=="exclusiveGateway"&&e.param.outGatewayUserTaskModel&&e.param.outGatewayUserTaskModel.length>0?e._l(e.param.outGatewayUserTaskModel,function(a){return i("userTask",{key:a.id,ref:e.setItemRef(a.id),refInFor:!0,attrs:{personType:e.param.personType,personEntity:e.param.personEntity,processNode:Object.assign({},a,{pType:e.param.nextTaskNode.nodeType,REQUIRED:!(a.setPersonnel==!0&&a.assignees&&a.assignees.length>0)})}})}):e.param.outGatewayUserTaskModel&&e.param.outGatewayUserTaskModel.length>0?e._l(e.param.outGatewayUserTaskModel,function(a){return i("userTask",{key:a.id,ref:e.setItemRef(a.id),refInFor:!0,attrs:{personType:e.param.personType,personEntity:e.param.personEntity,processNode:Object.assign({},a,{REQUIRED:!(a.setPersonnel==!0&&a.assignees&&a.assignees.length>0)})}})}):e.param.nextTaskNode.nodeType=="exclusiveGateway"&&e.param.nextTaskNode.branches&&e.param.nextTaskNode.branches.length==1?[e.param.nextTaskNode.nodeType!="endEvent"?[e.param.nextTaskNode.branches[0].nodeInfoDTO&&e.param.nextTaskNode.branches[0].nodeInfoDTO.nodeType!="endEvent"?i("userTask",{key:e.param.nextTaskNode.branches[0].nodeInfoDTO.id,ref:e.setItemRef(e.param.nextTaskNode.branches[0].nodeInfoDTO.id),attrs:{personType:e.param.nextTaskNode.branches[0].nodeInfoDTO.personType||"",personEntity:{},"process-node":Object.assign({},e.param.nextTaskNode.branches[0].nodeInfoDTO,{REQUIRED:!(e.param.nextTaskNode.branches[0].nodeInfoDTO.setPersonnel==!0&&e.param.nextTaskNode.branches[0].nodeInfoDTO.assignees&&e.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}}):!e.param.nextTaskNode.branches[0].nodeInfoDTO&&e.param.nextTaskNode.branches[0].nodeType!="endEvent"?i("userTask",{key:e.param.nextTaskNode.branches[0].id,ref:e.setItemRef(e.param.nextTaskNode.branches[0].id),attrs:{personType:e.param.nextTaskNode.branches[0].personType||"",personEntity:{},"process-node":Object.assign({},e.param.nextTaskNode.branches[0],{REQUIRED:!(e.param.nextTaskNode.branches[0].setPersonnel==!0&&e.param.nextTaskNode.branches[0].assignees&&e.param.nextTaskNode.branches[0].assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}}):[i("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0"}},[i("b",{staticStyle:{"font-size":"16px"}},[e._v("\u7ED3\u675F\u4E8B\u4EF6")])])]]:[i("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0"}},[i("b",{staticStyle:{"font-size":"16px"}},[e._v("\u7ED3\u675F\u4E8B\u4EF6")])])]]:e.param.nextTaskNode.nodeType=="exclusiveGateway"&&e.param.nextTaskNode.branches&&e.param.nextTaskNode.branches.length>1?[e.param.nextTaskNode.nodeType!="endEvent"?[i("userTask",{key:e.param.nextTaskNode.id,ref:e.setItemRef(e.param.nextTaskNode.id),attrs:{personType:e.param.nextTaskNode.personType||"",personEntity:{},"process-node":Object.assign({},e.param.nextTaskNode,{REQUIRED:!(e.param.nextTaskNode.setPersonnel==!0&&e.param.nextTaskNode.assignees&&e.param.nextTaskNode.assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})]:[i("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0"}},[i("b",{staticStyle:{"font-size":"16px"}},[e._v("\u7ED3\u675F\u4E8B\u4EF6")])])]]:e.param.nextTaskNode.nodeType=="parallelGateway"?e._l(e.param.nextTaskNode.branches,function(a){return i("userTask",{key:a.id,ref:e.setItemRef(a.id),refInFor:!0,attrs:{personType:e.param.personType||"",personEntity:e.param.personEntity||{},processNode:Object.assign({},a,{REQUIRED:!(a.setPersonnel==!0&&a.assignees&&a.assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})}):e._e()],e._t("form"),i("el-dialog",{attrs:{title:"\u7B7E\u5B57",visible:e.signVisible,"append-to-body":"",width:"800px","close-on-click-modal":!1,top:"4vh","align-center":""},on:{"update:visible":function(a){e.signVisible=a},closed:e.closeSign},model:{value:e.signVisible,callback:function(a){e.signVisible=a},expression:"signVisible"}},[i("div",{staticClass:"sign-container"},[i("TopSign",{on:{saveSignature:e.handleSignature,validateFail:e.noticeFail}})],1)])],2)},t9=[];const CZ="";var Ul=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{Ul=e});const n9={components:{staffTree:ba,userTask:py,commIdea:fy,TopSign:qF},props:{param:Object},data(){return{commentMsg:"",targetUser:[],userTaskListData:{},outGatewayUserTaskModel:this.param.outGatewayUserTaskModel,Enum:Np,signVisible:!1,digitalSignature:"",confirmPreposition:!1,confirmLoading:()=>{}}},mounted(){this.param.ProcessInsObj.processDefId=="obj_94014ede99b6495d8f6d5977314faa15"&&(this.commentMsg="\u540C\u610F")},computed:{signRequired(){return!!this.param.extendedProperties.find(n=>n.name=="signature")}},methods:{setItemRef(e){return this.userTaskListData[e]="userTask"+e,this.userTaskListData[e]},getProcessNode(e){let n={};return n.humanPerformerName=e.userTaskModelDTO.humanPerformer.name,n.id=e.id,n.loopCardinality=e.loopCardinality||e.userTaskModelDTO.loopCardinality,n.name=e.userTaskModelDTO.name,n.type=e.type,n.routeTxt=e.userTaskModelDTO.routeTxt,n.participantList=e.userTaskModelDTO.participantList,n.taskNode=this.param.taskNode,n},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u8D26\u6237"||e=="\u56FA\u5B9A\u5355\u4F4D"},getTreeData(e){if(this.param.nextTaskNode){if(e.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8")return e.userTaskModelDTO.routeTxt.departmentIds.map(n=>{let i={};return i.id=n.rangeId,i.leaf=!1,i.name=n.name,i.orgType=Wu.\u90E8\u95E8,i});if(e.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D")return e.userTaskModelDTO.routeTxt.companyIds.map(n=>{let i={};return i.id=n.rangeId,i.leaf=!1,i.name=n.name,i.orgType=Wu.\u4E3B\u4F53,i})}},getRes(){return{targetUser:this.targetUser}},confirm(e,n,i){if(Array.isArray(i)&&(this.param.attachment=i),this.param,this.userTaskListData,!this.commentMsg&&this.param.commentMsgRequired)return Ul.warning("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"),!1;if(this.commentMsg.length>200)return Ul.warning("\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u8D85\u8FC7200\u4E2A\u5B57"),!1;let a={taskId:this.param.taskInstId,processInstanceId:this.param.processInstId,commentMsg:this.commentMsg||" ",comment:this.commentMsg||" ",businessData:this.param.businessData,attachment:this.param.attachment};if(this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId){for(let g in this.userTaskListData){let y=this.userTaskListData[g];this.$refs[y];let O=this.$refs[y].$el?this.$refs[y]:this.$refs[y][0];O.getValue;let E=O.getValue();if(E&&E.vars&&this.param.incomingConditionItemList&&this.param.incomingConditionItemList.length>0&&this.param.incomingConditionItemList.forEach(S=>{E.vars[S.itemName]||(E.vars[S.itemName]="")}),!E)return!1;let N=[];const _=this.param.nextTaskNode;_.setPersonnel?N=_.assignees||[]:N=(O.targetUserList||[]).map(S=>({id:S.id,name:S.name})),a.assignees=N,a.multiNodeParticipant={...a.multiNodeParticipant,...E.multiNodeParticipant},a.vars={...a.vars,...E.vars}}let s=this.param.nextTaskNode&&this.param.nextTaskNode.nodeType!="endEvent"&&(!this.param.nextTaskNode.branches||this.param.nextTaskNode.branches.length<=0),c=this.param.nextTaskNode&&this.param.nextTaskNode.nodeType!="endEvent"&&this.param.nextTaskNode.branches&&this.param.nextTaskNode.branches.length==1&&this.param.nextTaskNode.branches[0].nodeInfoDTO&&this.param.nextTaskNode.branches[0].nodeInfoDTO.nodeType!="endEvent",p=this.param.nextTaskNode&&this.param.nextTaskNode.nodeType!="endEvent"&&this.param.nextTaskNode.branches&&this.param.nextTaskNode.branches.length==1&&!this.param.nextTaskNode.branches[0].nodeInfoDTO&&this.param.nextTaskNode.branches[0].nodeType!="endEvent";if(s||c||p){if(this.param.nextTaskNode.nodeType=="exclusiveGateway"&&this.param.nextTaskNode.branches&&this.param.nextTaskNode.branches.length==1&&this.param.nextTaskNode.branches[0].nodeInfoDTO&&this.param.nextTaskNode.branches[0].nodeInfoDTO.setPersonnel==!0&&this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees&&this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.length>0)a.multiNodeParticipant={...a.multiNodeParticipant,[this.param.nextTaskNode.branches[0].nodeInfoDTO.id]:this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.map(g=>g.id)};else if(!Object.keys(a.multiNodeParticipant).length)return Ul.warning("\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9"),!1}}if(a.pass=!0,Date.now()&&this.param,this.param.getVars){let s=this.param.getVars();if(s===!1)return!1;a.vars={...a.vars,...s}}if(this.signRequired,this.signRequired){this.confirmPreposition=e,this.confirmLoading=n,this.signVisible=!0;return}n(),e?e().then(s=>{Xe.tis.complete(a).then(c=>{c.code==bt.success?(s&&s(),this.$emit("success")):this.$emit("fail",c.msg)}).catch(()=>{this.$emit("fail","")})}).catch(()=>{this.$emit("fail","")}):Xe.tis.complete(a).then(s=>{s.code==bt.success?this.$emit("success"):this.$emit("fail",s.msg)}).catch(s=>{this.$emit("fail",s.response?s.response.data?s.response.data.msg||s.response.data.message:"":s.message||s.msg||"")})},confirmWithSign(){let e={taskId:this.param.taskInstId,processInstanceId:this.param.processInstId,commentMsg:this.commentMsg||" ",comment:this.commentMsg||" ",businessData:this.param.businessData,digitalSignature:{name:this.param.digitalSignature.name,url:this.param.digitalSignature.url},attachment:this.param.attachment};if(this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId){for(let c in this.userTaskListData){let p=this.userTaskListData[c],m=this.$refs[p].$el?this.$refs[p]:this.$refs[p][0];m.getValue;let g=m.getValue();if(!g)return!1;e.multiNodeParticipant={...e.multiNodeParticipant,...g.multiNodeParticipant},e.vars={...e.vars,...g.vars}}let n=this.param.nextTaskNode&&this.param.nextTaskNode.nodeType!="endEvent"&&(!this.param.nextTaskNode.branches||this.param.nextTaskNode.branches.length<=0),i=this.param.nextTaskNode&&this.param.nextTaskNode.nodeType!="endEvent"&&this.param.nextTaskNode.branches&&this.param.nextTaskNode.branches.length==1&&this.param.nextTaskNode.branches[0].nodeInfoDTO&&this.param.nextTaskNode.branches[0].nodeInfoDTO.nodeType!="endEvent",a=this.param.nextTaskNode&&this.param.nextTaskNode.nodeType!="endEvent"&&this.param.nextTaskNode.branches&&this.param.nextTaskNode.branches.length==1&&!this.param.nextTaskNode.branches[0].nodeInfoDTO&&this.param.nextTaskNode.branches[0].nodeType!="endEvent";if(n||i||a){if(this.param.nextTaskNode.nodeType=="exclusiveGateway"&&this.param.nextTaskNode.branches&&this.param.nextTaskNode.branches.length==1&&this.param.nextTaskNode.branches[0].nodeInfoDTO&&this.param.nextTaskNode.branches[0].nodeInfoDTO.setPersonnel==!0&&this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees&&this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.length>0)e.multiNodeParticipant={...e.multiNodeParticipant,[this.param.nextTaskNode.branches[0].nodeInfoDTO.id]:this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.map(c=>c.id)};else if(!Object.keys(e.multiNodeParticipant).length)return Ul.warning("\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9"),!1}if(this.param.getVars){let c=this.param.getVars();if(c===!1)return!1;e.vars={...e.vars,...c}}}e.pass=!0,this.confirmLoading(),this.confirmPreposition?this.confirmPreposition().then(n=>{Xe.tis.complete(e).then(i=>{i.code==bt.success?(n&&n(),this.$emit("success")):this.$emit("fail",i.msg)}).catch(()=>{this.$emit("fail","")})}).catch(()=>{this.$emit("fail","")}):Xe.tis.complete(e).then(n=>{n.code==bt.success?this.$emit("success"):this.$emit("fail",n.msg)}).catch(n=>{this.$emit("fail",n.response?n.response.data?n.response.data.msg||n.response.data.message:"":n.message||n.msg||"")})},handleSignature(e,n){this.param.digitalSignature=e,n&&(this.signVisible=!1,this.confirmWithSign())},closeSign(){this.signVisible=!1},noticeFail(e){Ul.warning(e)}}},Q4={};var i9=qt(n9,e9,t9,!1,r9,"0dd5ddd2",null,null);function r9(e){for(let n in Q4)this[n]=Q4[n]}const hy=function(){return i9.exports}();var a9=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[e.param.showCommIdea?i("el-form-item",{attrs:{label:"\u5E38\u7528\u610F\u89C1"}},[i("commIdea",{ref:"commIdea",on:{change:function(a){return e.commentMsg=a}}})],1):e._e(),i("el-form-item",{attrs:{label:"\u5BA1\u6279\u610F\u89C1",rules:[{required:!0,message:"\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u4E3A\u7A7A"}]}},[i("el-input",{attrs:{rows:5,type:"textarea",maxlength:"200","show-word-limit":"",resize:"none",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"},model:{value:e.commentMsg,callback:function(a){e.commentMsg=a},expression:"commentMsg"}}),e.param.showCommIdea?i("div",{staticClass:"add-idea"},[i("span",{on:{click:function(a){return e.$refs.commIdea.addIdea(e.commentMsg)}}},[e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]):e._e()],1),e._t("file"),e._t("form")],2)},o9=[];const kZ="";var H4=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{H4=e});const s9={components:{staffTree:ba,commIdea:fy},props:{param:Object},data(){return{commentMsg:""}},methods:{getRes(){return{commentMsg:this.commentMsg}},confirm(e,n){if(!this.commentMsg)return H4.warning("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"),!1;e&&e(),n();let i={taskId:this.param.taskInstId,processInstanceId:this.param.processInstId,commentMsg:this.commentMsg||" ",comment:this.commentMsg||" ",businessData:this.param.businessData};i.assignees=[],i.pass=!1,Xe.tis.complete(i).then(a=>{a.code==bt.success?this.$emit("success"):this.$emit("fail",a.msg)})}}},V4={};var l9=qt(s9,a9,o9,!1,c9,"02cb58a9",null,null);function c9(e){for(let n in V4)this[n]=V4[n]}const U4=function(){return l9.exports}();var u9=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[i("el-form-item",{attrs:{label:"\u9000\u56DE\u8282\u70B9",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9"}]}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"\u9000\u56DE\u8282\u70B9"},model:{value:e.nodeId,callback:function(a){e.nodeId=a},expression:"nodeId"}},e._l(e.nodesData,function(a){return i("el-option",{key:a.nodeId,attrs:{label:a.nodeName,value:a.nodeId}})}),1)],1),i("el-form-item",{attrs:{label:"\u9000\u56DE\u539F\u56E0",rules:[{required:!0,message:"\u9000\u56DE\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"}]}},[i("el-input",{attrs:{rows:5,maxlength:"200","show-word-limit":"",resize:"none",type:"textarea",placeholder:"\u9000\u56DE\u539F\u56E0"},model:{value:e.commentMsg,callback:function(a){e.commentMsg=a},expression:"commentMsg"}})],1),e._t("file"),e._t("form")],2)},d9=[];const SZ="";var my=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{my=e});const f9={components:{staffTree:ba},props:{param:Object},data(){return{commentMsg:"",nodeId:"",nodesData:[]}},mounted(){this.getReturnableNodes()},methods:{getReturnableNodes(){Xe.repository.backNodes({taskId:this.param.taskInstId}).then(e=>{e.code==bt.success&&(this.nodesData=(e.data||[]).filter(n=>!n.nodeId.includes("startEvent")))})},getRes(){return{commentMsg:this.commentMsg,nodeId:this.nodeId}},confirm(e,n){if(!this.nodeId)return my.warning("\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9"),!1;if(!this.commentMsg)return my.warning("\u8BF7\u8F93\u5165\u9000\u56DE\u539F\u56E0"),!1;e&&e(),n(),Xe.tis.rollback(this.param.taskInstId,this.nodeId,this.commentMsg).then(i=>{i.code==bt.success?this.$emit("success"):this.$emit("fail",i.msg)})}}},Y4={};var p9=qt(f9,u9,d9,!1,h9,"11b0e88d",null,null);function h9(e){for(let n in Y4)this[n]=Y4[n]}const W4=function(){return p9.exports}();var m9=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[i("el-form-item",{attrs:{label:"\u9009\u62E9\u64CD\u4F5C\u7C7B\u578B",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u64CD\u4F5C\u7C7B\u578B"}]}},[i("el-radio-group",{staticStyle:{width:"100%"},model:{value:e.type,callback:function(a){e.type=a},expression:"type"}},e._l(e.nodesData,function(a){return i("el-radio",{key:a.type,attrs:{label:a.type}},[e._v(e._s(a.label))])}),1)],1),i("el-form-item",{attrs:{label:"\u64CD\u4F5C\u8BF4\u660E"}},[i("div",[i("span",{staticStyle:{color:"red","font-weight":"600"}},[e._v("\u64A4\u9500")]),e._v("\uFF1A\u64A4\u9500\u7EC8\u6B62\u6B64\u6D41\u7A0B ")]),i("div",[i("span",{staticStyle:{color:"red","font-weight":"600"}},[e._v("\u64A4\u56DE")]),e._v("\uFF1A\u64A4\u56DE\u5230\u53D1\u8D77\u4EBA\u91CD\u65B0\u63D0\u4EA4\uFF0C\u82E5\u5F53\u524D\u6D41\u7A0B\u4E0D\u5B58\u5728\u53D1\u8D77\u4EBA\u8282\u70B9\uFF0C\u529F\u80FD\u540C\u64A4\u9500 ")])]),e._t("file"),e._t("form")],2)},g9=[];const DZ="";var G4=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{G4=e});const A9={components:{staffTree:ba},props:{param:Object},data(){return{commentMsg:"",nodeId:"",type:"",nodesData:[{type:"wf_withdraw_end",label:"\u64A4\u9500"},{type:"wf_withdraw_start",label:"\u64A4\u56DE"}]}},mounted(){this.getReturnableNodes()},methods:{getReturnableNodes(){},getRes(){return{commentMsg:this.commentMsg,nodeId:this.nodeId}},confirm(e,n){if(!this.type)return G4.warning("\u8BF7\u9009\u62E9\u64CD\u4F5C\u7C7B\u578B"),!1;e&&e(),n(),Xe.tis.withdrawTask({taskId:this.param.taskInstId,withdrawType:this.type}).then(i=>{i.code==bt.success?this.$emit("success"):this.$emit("fail",i.msg)})}}},J4={};var v9=qt(A9,m9,g9,!1,b9,"3e4dbd02",null,null);function b9(e){for(let n in J4)this[n]=J4[n]}const _9=function(){return v9.exports}();var y9=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[i("el-form-item",{attrs:{label:"\u6284\u9001\u4EBA\u5458",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6284\u9001\u4EBA\u5458"}]}},[i("staffTree",{ref:"staffTree",attrs:{personType:e.param.personType,personEntity:e.param.personEntity,multiple:"",max:5e3,disable:e.isOperLoading},model:{value:e.targetUser,callback:function(a){e.targetUser=a},expression:"targetUser"}})],1),e._t("file"),e._t("form")],2)},x9=[];const IZ="";var K4=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{K4=e});const w9={components:{staffTree:ba},props:{param:Object,isOperLoading:!1},data(){return{reason:"",targetUser:[]}},methods:{getRes(){return{targetUser:this.targetUser}},confirm(e,n){if(!this.targetUser||this.targetUser.length==0)return K4.warning("\u8BF7\u9009\u62E9\u6284\u9001\u4EBA"),!1;let i=this.targetUser.join(" ")||"";e&&e({userList:this.$refs.staffTree.userList}),n(),Xe.tis.createCCTask({processInstId:this.param.processInstId,participant:i,taskId:this.param.taskInstId,title:""}).then(a=>{a.code==bt.success?this.$emit("success",!1):this.$emit("fail",a.msg)})}}},X4={};var E9=qt(w9,y9,x9,!1,C9,"3881f760",null,null);function C9(e){for(let n in X4)this[n]=X4[n]}const Z4=function(){return E9.exports}(),$4=Object.freeze(Object.defineProperty({__proto__:null,counterSign:F4,delegateTask:j4,complete:hy,cancel:U4,roolback:W4,withdrawTask:_9,ccTask:Z4},Symbol.toStringTag,{value:"Module"})),q4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANQAAACSCAYAAAA93+RpAAAABHNCSVQICAgIfAhkiAAACiVJREFUeF7tnVtsFFUYgH/aqAWrLbTloiiKFxQS0AAJ8QHx0Xh5MBo1+mCMxkt88QF5EgM+GUx80ChGYzAxGqPxwRuPKibGG94SSCSG0IjIzSLSy7alxXO6DJ1uZ/f8s3tmdrvnm4QEyn/OzHzn//qfOTOzO+uM2YQNAhDwQmAWQnnhSCcQmCCAUCQCBDwSQCiPMOkKAghFDkDAIwGE8giTriCAUOQABDwSQCiPMOkKAghFDkDAIwGE8giTriCAUOQABDwSQCiPMOkKAghFDkDAIwGE8giTriCAUOQABDwSQCiPMOkKAghFDkDAIwGE8giTriCAUOQABDwSQCiPMOkKAghFDkDAIwGE8giTriCAUOQABDwSQCiPMOkKAghFDkDAIwGE8giTriCAUBVyYGCgIIXhYZkJn63b+9dhGTefAbz0soXSNa+DzK4TAYQqA/7Ev6dkbGy8TsOSfrcHjFCDg4WJhgt65smyqy5L3wktaiaAUAkIB0xiDg0N1ww3zw7iQiFVnuSn7guhEtj39f1npk8z6zsUSoVCqvpIhVAJ3I//c7I+o1HDXpOEQqoagFbZFKGaXCh7evO758p1V19eZYrQLA0BhApAKKRKo0RtsQgViFBIVZso2tYIFZBQSKXVovo4hApMKKSqXhZNS4QKUCik0qhRXQxCBSoUUlUnjKsVQgUsFFK59Ej//wgVuFBIlV6aSi0QCqEmCHDz149YCIVQ5wggVe1SIRRCTSGAVLVJhVAINY0AUlUvFUIhVGL2IFV1UiEUQpXNHKRKLxVCIVTFrEGqdFIhFEI5MwapnIjOBSAUQqmyBalUmAShEEqXKdz8VXFCKIRSJUoURKWqjAuhECqVUDYYqcojQ6gmEarvxH9y+HhfajmqbbD8miXS3dVZbfOmbYdQTSLU2Pi47O89JKOnT+eSrLPb2mTtDcty2ddM2glCNYlQ9jRGRk/LoaPHz30kc9aJuH7dqqx3MeP6R6gmEio6laHhERk2f7KuVtebaR/bVAII1YRC5ZXk3V18y0cpa4RCqKr9Q6jp6BAKoRCqagIIpUI3E78sQHVinoOoUAilSimEUmEy96G4huIaSpErCKWAZEIQigqlyhSEUmFCqARMLEqwKKGzJyGKCkWFUiUPFUqFiQpFhdIlCkLpOFGhqFCqTEEoFSYqFBXKnSgj+36Tf0/2S8vSFe7ggCPG9++Rzo52Of/alQFToEJVHHwr09+P3yptz74prStvIlEqEBj77RspPP+ILNq+E6linFjlOwsjkmm8/6TMeeEDhHL8OrFCDW66R1raO5AKoaZmS1wm+z8I5S7OkVA2EqkmeQVfoUplQii3TDYiLhRSIdQEgSSZEKo6oZCqyC3YClXYvUuObLxf7DVT6caUzy1VaYWKWtjp34Jt70nb6vXuTpowIkih+j99R45tfbzscCKUO9PLCRW17Nm8Xdpvf9DdUZNFBCeUSyamfLoMdwllewlRquCEKnz0pjNjCnMvkVmz251xIQecGeqXthOHnAja7nrEGdNMAcEJJffe2Ezj1/jn8v7PjX+MHo8QoTzCpKsEAgjV5GlBhcp3gBEqX9657w2h8kWOUPnyzn1vWQl1j1mGv/uxyqdzzFzEH/hdZOe7Int+nBq74U6Rm+8o3/6oaRu1//HL8nGufpJafvWJyJcfZzMUCJUN14bptZ5CxSHYBH7tucmfaISMoq1Yb78o8sMX07Gm6Sdq/eHrIh9sz2aIECobrg3Ta6MIZYHEE7kaEayQpZWlmn4Qylt6ssrnC2U8kcslaM8lIk9uFVm+urjXgVMiD599RCfefu9ukS0l928uvEhk7S1mWmmmlj2LJo96033FaWS0xfvp3Wcq2Tb3GUbTSXdk+ggqVHpmM6pFHhWq0m98K8ZbuyaRbX20eD3lEipqYdtbKddsKP5kr2m7xfSRJFSSmHkPFkLlTTzn/dVbKHu68SRLK5RtbyvdK58lVymtmHlhR6i8SNdpP/UWasUakc1vTJ78U7cVV+/SimCrVLQqWO5ajAqVe5JxDeULeVwIu1DwVcky9BXm6zOXmD/2OshO2yama7FrpbRC2eXxJ7YU+7HL6NueLv493o+9RuuNXV+VO1eWzX1lQYDvQ+VRoTTDM9hfXHiIFhTSChWvdOXE1ByHjWGVT0vKGUeFciJSBqRZrj72t8iLpqKUW53TTNUQSjkw+YYhlC/ecaGsMKVTvmg/dlWu9CmJ0qmaRijNlI9lc1+jq+4HodSoHIFpp2yl3aVtz6KEr5Hz2g9C+cKZVohahLKLGi+bZfNocSN+c7fW4/DFI+qHZXPfRBusvzwWJTRTtlqEsqt7dspnNzute+beyd4Qqq4JR4Xyhb/WRNa0t09H3PaAeXTJ3MuKtujGcPRvTT++zlnTDxVKQ2kGx8yECqXFa+8fvbp5ajRCaellEkeF8oW11kROs+xuj/lz805V0oOvtR6HLx5cQ/km2aD9ZVWh7H2haCpmHyVK+8KeRih7M9i+A2WX5JOW3i3yiRcMz15f2ftcmqfNsxwqpnxZ0m2AvrMSqgFOreEOwX4U246vG+6wsjyg8KZ89pm3Sq+QZ0k7tL7tIsrGl4I66/CEslMluzLGlj0B+1S9nQoHtIUnlB1ce32zw7zJaj79lC0DAnaq99DGyXtlGeyiUbsMUyg7Gnbh4HtzgT9oXnEo2QYHC406Xg11XHPmtE0/njnmKQ67MBI9xdFQR5z9wYQrVAW2fAu8LvG6uzp0gQFFIVTCYCOUzgCEms4JoRBKZ09CFEIhlCp5qFAqTIJQCKXKFIRSYUKoBExM+Zjy6exhyqfihFAIpUqUpCCmfEz5VMnDlE+FiSkfUz5doiCUjhMVigqlyhSEcmMaP3NG5nd3ugMDi+AaKmHA//zrqMxuuyCwVEh3uoXCsCy+dH66RgFEI1TCIP+y5w9ZvLAngOGv/hQPHDwsa1aZj5Zmm0IAoRISYte3v0r3vE7pmnuxtLa0kDIxAnaqd+RYn5w4eUrWr1sFmxICCFVGKPvj1tZW6exolwvOO4/EMQRGRkeNSP0yNjY2wQOhWJRQifHdT3tleGRUFRtq0IXm1Y3VK5nylY4/FSrBiF5zfdB78EiorqjOe8niBbJk8UJVbEhBCJUw2qfNlOZXszAxwIuGiS7Ya8sVy64MyRP1uSJUBVS2Uh0+2sf07ywjO83rntdBZaqQMwil/t1DIATcBBDKzYgICKgJIJQaFYEQcBNAKDcjIiCgJoBQalQEQsBNAKHcjIiAgJoAQqlREQgBNwGEcjMiAgJqAgilRkUgBNwEEMrNiAgIqAkglBoVgRBwE0AoNyMiIKAmgFBqVARCwE0AodyMiICAmgBCqVERCAE3AYRyMyICAmoCCKVGRSAE3AQQys2ICAioCSCUGhWBEHATQCg3IyIgoCaAUGpUBELATQCh3IyIgICaAEKpUREIATcBhHIzIgICagL/A5aq8pai8ohoAAAAAElFTkSuQmCC",e3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAABKCAYAAADjcueTAAAFw0lEQVR4Xu2c3XHbRhDH/wclQ2UITZwKLFcQqQKLFViqIHQFpl5i8snKE6m8WK4gVAWmKzBVgckKolQQcgjGTmxzMwsQEL5xd/ggiDEeReAOv9u9xe7d/yRQxPW7dYIN3gI4LqI5xTamEBjjpXmr8pxQuTn2Xhua3gPiUe628jUwQ6vdwaVYyDSTD3xodSHwh0xHFd0zQ988lelLH7x+0A4v4TkG5jgLXg88C5qog8HRNKvz3L87sYUhf/a1JWV1dfAsaHvUKwLnvhz4D4FB7JuZXJk3BBocWS8A3EQtRUtA/Oj9vUpw7nRkUXngI4uDWDcCzXMK1IUQT5sHngbNgWS4mjYPPBaaliDR86Jn48CToA1xhl/NmefajQF/TY/wL89pcR6c07REGJpvaAS4Db1+D+BECroR4DrQew+eCI05DHQDczr8TRut/g4UKXvzHU+DbrXPUiueuExOInPKna76G9BKYNJraY7caWUel6LBWEB0h8HRWaFgWY1pgY8sznNDgSyrp5Tf49ycPerzJ38hodbB94fzVK/TBA/muWqvFAr8MSXh8OMxxJcP+RYqaAH67hSDH+5jX29n4IS/YIgeXrYnkRcbrq4gxKs842k/S/QbBkdX5YGzq6pcB2KRGvFlyliZ/tIWGAqxeBkR+drqYUOhLFCG1rtnmmht7bJUY7SUXrmKmzUYhE4RXwWLUh/fwLfDJTFdv1nccy2J0VJywypuLt3VORkxvj4FRHVbRcTJy8G7xOSl9KheSAama35awBCdxHyhVIsXlYFps5eduSXN8eHqDELwysxuLiEuYlPi0l2dO7hen4M2XRCq2xkVWIDEJHU/LOjqc/TNzGqzaZ+zObIWTrb+2iRwaWhmbwo4iwLSl8hCkakZ4LzCI6mEcPmbAa7xnVEDtzO3zS8a/eR7ZGPcpmZuGq3Lg8dtwGt0qP1IwWv18uB1ztw0RlMFfLeZ284szqPKaStQ7WaBY01ec4sXE3FE/2/9LFAxckVn4C5tEVTe4hruVOojTsx5nWGIewhcxake9xP8ev0KRPFr7PGjHVE97h94WKXBe3UQYxy2J14S4yyYnGODHgQeb8fiHnTQcT+L+wUegKYlhNFNLFVdyw+tMQTc3MOz/P6Ah6HjJClJQWVksTaPNXreVpQaOEd1w3jQs5UTveYRK2ZB25H9nxcg4i8OB7RpJKB5Oh1nA1IevJoVmGhpmQWdLBufotW+eJj3vhUkgUsV8GJ2PZO9pEhot5c36Js9r8uhxd7wGKB38uDl5ur5oQm3GJhdOKvBM09b619DfJCl3cuD25nbx2PgS1TPmneuH5o3gXpa1b1daPc9/MGs1f7J5+6e16qB5wWUeT4vtCNkYnmLs+nht/hoNQHEM/5zvcCLgX4QJ0Y94U97QIju6gNeNDRoiZZ5HMjmxFcG5+tNPcDLgA4nOKPVW0+bS9TZPXgV0H4dzlaHt1vwqqHZyQ2ccp2+O/CAGipGDh7OyMKBKiJDjWkjrLjyKad2B27nBVw50XlEA18ydD0+Z5wU+RWLFUDXA9yf1FQEXT/wkeUkGHbdvM293YHJOafDSWN0jm+jnkx2Weg9rH4ke/EwCu125K2mqAWyuPdkcNak+yTVNEHLfK66CZd7EDz5eCjjCjfMBYiBcfAUVOhUs8TBWgH/SOd+e9tc6UKdpD5cVUPYxbPeKSoSDtbgCc8L8Nz5tJ75ViOzupL4XQPeA08R+YR7jn6nnZpc4nIO1TrRdBo4GCvxcPotivCqFs8B7UT1YNS8sg/I+k8G5xoABXivVqYFWuYTpQNAqtMjAO4HdFZailEvZgn53X5tRRXxP9jgODFB/+gidsxzWtptU+38eC7rSzwcPKo5hYFLL3q7ogT/1pGGpesJ7iQpvCsaOrFEi5jDPFLRO2m462VxfkvnK3Pj2/YJvnvawR8Jp6qnxcNxxtn4OwGI480UhjHL3CuThP8fruFfjjCGtMkAAAAASUVORK5CYII=";var k9=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("ul",{staticClass:"file-wrap"},[e._l(e.fileList,function(a,s){return i("li",{key:s,staticClass:"file-item"},[e.isImage(a)?i("section",{class:[e.isText?"TextWrapper":"image-wrapper"]},[i("el-image",{ref:"images",refInFor:!0,attrs:{src:a,"preview-src-list":e.previewSrcList}}),i("div",{staticClass:"action-area"},[i("span",{staticClass:"action-preview",on:{click:function(c){return e.onPreview(s)}}},[i("i",{staticClass:"el-icon-zoom-in",attrs:{title:"\u9884\u89C8"}})]),e.isDisabled?e._e():i("span",{staticClass:"action-upload",on:{click:function(c){return e.selectFile(s)}}},[i("i",{staticClass:"el-icon-upload2",attrs:{title:"\u4E0A\u4F20"}})]),e.isDisabled?e._e():i("span",{staticClass:"action-delete",on:{click:function(c){return e.onDelete(s)}}},[i("i",{staticClass:"el-icon-delete",attrs:{title:"\u5220\u9664"}})])])],1):e.isDw(a)?i("section",{staticClass:"image-wrapper"},[e.isPdf(a)?i("div",{staticClass:"el-image"},[i("img",{staticClass:"el-image__inner",attrs:{src:q4,alt:""}})]):i("div",{staticClass:"el-image el-attach"},[i("img",{staticClass:"el-image__inner",attrs:{src:e3,alt:""}})]),i("div",{staticClass:"action-area"},[i("span",{staticClass:"action-preview",on:{click:function(c){return e.onDownload(s)}}},[i("i",{staticClass:"el-icon-download",attrs:{title:"\u4E0B\u8F7D"}})]),e.isDisabled?e._e():i("span",{staticClass:"action-upload",on:{click:function(c){return e.selectFile(s)}}},[i("i",{staticClass:"el-icon-upload2",attrs:{title:"\u4E0A\u4F20"}})]),e.isDisabled?e._e():i("span",{staticClass:"action-delete",on:{click:function(c){return e.onDelete(s)}}},[i("i",{staticClass:"el-icon-delete",attrs:{title:"\u5220\u9664"}})])])]):a?i("section",{staticClass:"image-wrapper"},[e.isPdf(a)?i("div",{staticClass:"el-image"},[i("img",{staticClass:"el-image__inner",attrs:{src:q4,alt:""}})]):i("div",{staticClass:"el-image el-attach"},[i("img",{staticClass:"el-image__inner",attrs:{src:e3,alt:""}})]),i("div",{staticClass:"action-area"},[i("span",{staticClass:"action-preview",on:{click:function(c){return e.onDownload(s)}}},[i("i",{staticClass:"el-icon-download",attrs:{title:"\u4E0B\u8F7D"}})]),i("span",{staticClass:"action-preview",on:{click:function(c){return e.onPreview(s)}}},[i("i",{staticClass:"el-icon-zoom-in",attrs:{title:"\u9884\u89C8"}})]),e.isDisabled?e._e():i("span",{staticClass:"action-upload",on:{click:function(c){return e.selectFile(s)}}},[i("i",{staticClass:"el-icon-upload2",attrs:{title:"\u4E0A\u4F20"}})]),e.isDisabled?e._e():i("span",{staticClass:"action-delete",on:{click:function(c){return e.onDelete(s)}}},[i("i",{staticClass:"el-icon-delete",attrs:{title:"\u5220\u9664"}})])])]):e._e(),!e.showFile&&e.showFileName?i("div",{attrs:{title:a.slice(a.lastIndexOf("&")+1)}},[i("div",{staticClass:"file_name"},[e._v(" "+e._s(a.slice(a.lastIndexOf("&")+1))+" ")])]):e._e(),e.showFile?i("div",{attrs:{title:a.slice(a.lastIndexOf("&")+1)}},[e._t("filename",function(){return[e.fullFileObject&&e.fullFileList[s].fileSize?i("div",{staticClass:"file_name",staticStyle:{"text-align":"center",height:"23px","line-height":"23px"}},[e._v(" "+e._s(e.fullFileList[s].fileSize>1024?(e.fullFileList[s].fileSize/(1024*1024)).toFixed(2):(e.fullFileList[s].fileSize/1024).toFixed(2))+" "+e._s(e.fullFileList[s].fileSize>1024?"M":"KB")+" ")]):e._e(),i("div",{staticClass:"file_name",staticStyle:{height:"25px","line-height":"25px"}},[e._v(" "+e._s(a.slice(a.lastIndexOf("&")+1))+" ")])]},{filename:a})],2):e._e()])}),e.showPlus?i("li",{staticClass:"file-item"},[i("div",{staticClass:"image-wrapper pointer",on:{click:function(a){return e.selectFile()}}},[i("el-icon",{attrs:{color:"#1389ff",size:"35"}},[i("Plus")],1)],1)]):e._e(),e.showEmpty?i("li",{staticClass:"empty-wrap"},[e._v("\u6682\u65E0\u6570\u636E")]):e._e()],2),e.remark!==""?i("div",{staticStyle:{color:"gray"}},[e._v(e._s(e.remark))]):e._e(),e.value?i("section",{staticClass:"value-wrap"}):e._e(),i("input",{ref:"file",staticClass:"file-input",attrs:{accept:e.acceptType,type:"file",multiple:e.multiple},on:{change:e.onUploadChange}})])},S9=[];const BZ="",gy={upload:e=>new Promise((n,i)=>{Xe.getAjaxObj().post("/file/upload",e).then(a=>{n(a)})})},D9={name:"JyrFileUpload",inject:{elForm:{default:""}},props:{acceptType:{type:String,default:""},showFileName:{type:Boolean,default:!0},value:{type:[String,Array],default:""},locked:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},fileMaxSize:{type:Number,default:200},hasFilename:{type:Boolean,default:!1},hasContainId:{type:Boolean,default:!1},fullFileObject:{type:Boolean,default:!1},isText:{type:Boolean,default:!1},viewCallBack:{type:Function},remark:{type:String,default:""},showFile:{type:Boolean,default:!1},limit:[String,Number]},data(){return{index:void 0,fileList:[],fullFileList:[],loading:!1}},computed:{previewSrcList(){return this.fileList.filter(e=>this.isImage(e))},showPlus(){return!this.isDisabled&&(this.multiple||this.fileList.length<1)},showEmpty(){return this.isDisabled&&this.fileList.length<1},isDisabled(){return this.locked||this.elForm&&this.elForm.disabled}},watch:{value(){this.composeFileList()}},created(){this.composeFileList()},methods:{async selectFile(){this.$refs.file.click()},onUploadChange(e){const n=e.target.files;if(this.limit!=-1&&n.length+this.fileList.length>this.limit)return this.$message.error("\u6700\u591A\u53EA\u80FD\u9009\u62E9"+this.limit+"\u4E2A\u6587\u4EF6"),!1;n.length;let i=this.fullFileList.map(a=>a.originFileName);for(let a=0;a<n.length;a++){const s=n[a];if(s.size==0)return this.$message.error("\u6587\u4EF6\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9"),!1;const c=1024*1024*this.fileMaxSize;if(s.size>c){this.$refs.file.value=null,this.$errorMessage(`\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7${this.fileMaxSize}M`);return}if(!s){this.$refs.file.value=null;return}const p=s.name.split(".");if(this.acceptType!=""&&this.acceptType.indexOf(p[p.length-1])<0){this.$refs.file.value=null,this.$errorMessage(`\u6587\u4EF6\u7C7B\u578B\u9650\u5236\u4E3A${this.acceptType}`);return}let m=0,g=s.name;for(;m<i.length&&i.includes(s.name);){const y=s.name.lastIndexOf(".");if(m=m+1,y>-1){const O=s.name.substring(0,y),E=s.name.substring(y);g=O+"("+m+")"+E}else g=s.name+"("+m+")"}i.push(g),this.doUpload(s,g)}},coputedFullFileList(e){this.$emit("input",e),this.$emit("change",e)},async doUpload(e,n){this.loading=!0;const i=new FormData;i.append("file",e,n);const a=await gy.upload(i);if(this.loading=!1,!a.success)return;if(this.$refs.file.value=null,!this.multiple){if(this.fullFileObject)this.$emit("input",[a.data]),this.$emit("change",[a.data]);else{const c=this.composeFilename(a.data);this.$emit("input",c),this.$emit("change",c)}return}this.index>=0?(this.fileList.splice(this.index,1,this.composeFilename(a.data)),this.fullFileList.splice(this.index,1,a.data)):(this.fileList.push(this.composeFilename(a.data)),this.fullFileList.push(a.data)),this.fileList;const s=this.fullFileObject?this.fullFileList:this.fileList.join(",");this.coputedFullFileList(s)},composeFileList(){if(this.fullFileObject){this.fileList=this.value&&this.value.length?this.value.map(e=>`${e.url}&${e.name}`):[],this.fullFileList=this.value&&this.value.length?this.value.map(e=>e):[];return}this.value?this.fileList=this.value.split(",").filter(e=>e):this.fileList=[]},composeFilename(e){return this.hasFilename?`${e.url}?filename=${e.fileName}`:this.hasContainId?e.id:`${e.url}&${e.name}`},isImage(e){const n=e.split("."),i=n[n.length-1];return["png","jpg","jpeg","gif","bmp"].includes(i)},isDw(e){const n=e.split("."),i=n[n.length-1];return["dwg","dwt"].includes(i)},isPdf(e){const n=e.split("."),i=n[n.length-1];return["pdf"].includes(i)},onDelete(e){if(this.multiple){this.fileList.splice(e,1),this.fullFileList.splice(e,1);const n=this.fullFileObject?this.fullFileList:this.fileList.join(",");this.coputedFullFileList(n)}else this.$emit("input",""),this.$emit("change","")},onPreview(e){if(this.viewCallBack){this.viewCallBack(e,this.fileList);return}let n=this.fileList[e].split("."),i=n[n.length-1],s=["png","jpg","jpeg","gif"].some(function(p){return p==i}),c=null;if(this.fileList.forEach((p,m)=>{this.isImage(p)&&m<=e&&(c==null?c=0:c=c+1)}),s)this.$refs.images[c].clickHandler();else{let p=`${this.fileList[e]}`,m=1;p.indexOf("https")!==-1||p.indexOf("http")!==-1?(m=p.indexOf("https")!==-1?1:0,window.open(`https://wdyl.ddzg.cn:8089/?ssl=${m}&furl=${p}`)):p.indexOf("http")===-1&&gy.list([p]).then(g=>{m=g.data[0].url.indexOf("https")!==-1?1:0,window.open(`https://wdyl.ddzg.cn:8089/?ssl=${m}&furl=${g.data[0].url}`)})}},onDownload(e){const n=this.fileList[e];n.indexOf("https")!==-1||n.indexOf("http")!==-1?this.downloadFile(n,n.slice(n.lastIndexOf("&")+1)):gy.list([n]).then(i=>{this.downloadFile(i.data[0].url,i.data[0].url.slice(i.data[0].url.lastIndexOf("&")+1))})},downloadFile:(e,n)=>{var i=document.createElement("a");i.download=n,i.style.display="none";var a=new Blob([e]);i.href=URL.createObjectURL(a),document.body.appendChild(i),i.click(),document.body.removeChild(i)}}},t3={};var I9=qt(D9,k9,S9,!1,B9,"628e6ebd",null,null);function B9(e){for(let n in t3)this[n]=t3[n]}const vh=function(){return I9.exports}();vh.install=e=>{e.component(vh.name,vh)};const O9='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',T9=e=>process.env.NODE_ENV==="test"?!0:getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,n3=e=>Array.from(e.querySelectorAll(O9)).filter(n=>N9(n)&&T9(n)),N9=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}};var i3;const hi=typeof window<"u",M9=e=>typeof e=="string",F9=()=>{};hi&&((i3=window==null?void 0:window.navigator)==null?void 0:i3.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Ay(e){return typeof e=="function"?e():QM(e)}function P9(e){return e}function vy(e){return a4()?(bM(e),!0):!1}function R9(e,n=!0){os()?ZM(e):n?e():sF(e)}function j9(e,n,i={}){const{immediate:a=!0}=i,s=ph(!1);let c=null;function p(){c&&(clearTimeout(c),c=null)}function m(){s.value=!1,p()}function g(...y){p(),s.value=!0,c=setTimeout(()=>{s.value=!1,c=null,e(...y)},Ay(n))}return a&&(s.value=!0,hi&&g()),vy(m),{isPending:WM(s),start:g,stop:m}}function r3(e){var n;const i=Ay(e);return(n=i==null?void 0:i.$el)!=null?n:i}const a3=hi?window:void 0;function o3(...e){let n,i,a,s;if(M9(e[0])||Array.isArray(e[0])?([i,a,s]=e,n=a3):[n,i,a,s]=e,!n)return F9;Array.isArray(i)||(i=[i]),Array.isArray(a)||(a=[a]);const c=[],p=()=>{c.forEach(O=>O()),c.length=0},m=(O,E,N,_)=>(O.addEventListener(E,N,_),()=>O.removeEventListener(E,N,_)),g=w4(()=>[r3(n),Ay(s)],([O,E])=>{p(),O&&c.push(...i.flatMap(N=>a.map(_=>m(O,N,_,E))))},{immediate:!0,flush:"post"}),y=()=>{g(),p()};return vy(y),y}function L9(e,n=!1){const i=ph(),a=()=>i.value=Boolean(e());return a(),R9(a,n),i}const by=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_y="__vueuse_ssr_handlers__";by[_y]=by[_y]||{},by[_y];var s3=Object.getOwnPropertySymbols,z9=Object.prototype.hasOwnProperty,Q9=Object.prototype.propertyIsEnumerable,H9=(e,n)=>{var i={};for(var a in e)z9.call(e,a)&&n.indexOf(a)<0&&(i[a]=e[a]);if(e!=null&&s3)for(var a of s3(e))n.indexOf(a)<0&&Q9.call(e,a)&&(i[a]=e[a]);return i};function l3(e,n,i={}){const a=i,{window:s=a3}=a,c=H9(a,["window"]);let p;const m=L9(()=>s&&"ResizeObserver"in s),g=()=>{p&&(p.disconnect(),p=void 0)},y=w4(()=>r3(e),E=>{g(),m.value&&s&&E&&(p=new ResizeObserver(n),p.observe(E,c))},{immediate:!0,flush:"post"}),O=()=>{g(),y()};return vy(O),{isSupported:m,stop:O}}var c3;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(c3||(c3={}));var V9=Object.defineProperty,u3=Object.getOwnPropertySymbols,U9=Object.prototype.hasOwnProperty,Y9=Object.prototype.propertyIsEnumerable,d3=(e,n,i)=>n in e?V9(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i,W9=(e,n)=>{for(var i in n||(n={}))U9.call(n,i)&&d3(e,i,n[i]);if(u3)for(var i of u3(n))Y9.call(n,i)&&d3(e,i,n[i]);return e};W9({linear:P9},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const G9=()=>hi&&/firefox/i.test(window.navigator.userAgent);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const Yl=()=>{},J9=Object.assign,K9=Object.prototype.hasOwnProperty,bh=(e,n)=>K9.call(e,n),X9=Array.isArray,ls=e=>typeof e=="function",yr=e=>typeof e=="string",cd=e=>e!==null&&typeof e=="object",Z9=e=>{const n=Object.create(null);return i=>n[i]||(n[i]=e(i))},$9=/-(\w)/g,q9=Z9(e=>e.replace($9,(n,i)=>i?i.toUpperCase():""));var e7=typeof global=="object"&&global&&global.Object===Object&&global;const t7=e7;var n7=typeof self=="object"&&self&&self.Object===Object&&self,i7=t7||n7||Function("return this")();const yy=i7;var r7=yy.Symbol;const Wl=r7;var f3=Object.prototype,a7=f3.hasOwnProperty,o7=f3.toString,ud=Wl?Wl.toStringTag:void 0;function s7(e){var n=a7.call(e,ud),i=e[ud];try{e[ud]=void 0;var a=!0}catch{}var s=o7.call(e);return a&&(n?e[ud]=i:delete e[ud]),s}var l7=Object.prototype,c7=l7.toString;function u7(e){return c7.call(e)}var d7="[object Null]",f7="[object Undefined]",p3=Wl?Wl.toStringTag:void 0;function h3(e){return e==null?e===void 0?f7:d7:p3&&p3 in Object(e)?s7(e):u7(e)}function p7(e){return e!=null&&typeof e=="object"}var h7="[object Symbol]";function xy(e){return typeof e=="symbol"||p7(e)&&h3(e)==h7}function m7(e,n){for(var i=-1,a=e==null?0:e.length,s=Array(a);++i<a;)s[i]=n(e[i],i,e);return s}var g7=Array.isArray;const wy=g7;var A7=1/0,m3=Wl?Wl.prototype:void 0,g3=m3?m3.toString:void 0;function A3(e){if(typeof e=="string")return e;if(wy(e))return m7(e,A3)+"";if(xy(e))return g3?g3.call(e):"";var n=e+"";return n=="0"&&1/e==-A7?"-0":n}function v3(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var v7="[object AsyncFunction]",b7="[object Function]",_7="[object GeneratorFunction]",y7="[object Proxy]";function x7(e){if(!v3(e))return!1;var n=h3(e);return n==b7||n==_7||n==v7||n==y7}var w7=yy["__core-js_shared__"];const Ey=w7;var b3=function(){var e=/[^.]+$/.exec(Ey&&Ey.keys&&Ey.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function E7(e){return!!b3&&b3 in e}var C7=Function.prototype,k7=C7.toString;function S7(e){if(e!=null){try{return k7.call(e)}catch{}try{return e+""}catch{}}return""}var D7=/[\\^$.*+?()[\]{}|]/g,I7=/^\[object .+?Constructor\]$/,B7=Function.prototype,O7=Object.prototype,T7=B7.toString,N7=O7.hasOwnProperty,M7=RegExp("^"+T7.call(N7).replace(D7,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function F7(e){if(!v3(e)||E7(e))return!1;var n=x7(e)?M7:I7;return n.test(S7(e))}function P7(e,n){return e==null?void 0:e[n]}function _3(e,n){var i=P7(e,n);return F7(i)?i:void 0}function R7(e,n){return e===n||e!==e&&n!==n}var j7=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,L7=/^\w*$/;function z7(e,n){if(wy(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="boolean"||e==null||xy(e)?!0:L7.test(e)||!j7.test(e)||n!=null&&e in Object(n)}var Q7=_3(Object,"create");const dd=Q7;function H7(){this.__data__=dd?dd(null):{},this.size=0}function V7(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var U7="__lodash_hash_undefined__",Y7=Object.prototype,W7=Y7.hasOwnProperty;function G7(e){var n=this.__data__;if(dd){var i=n[e];return i===U7?void 0:i}return W7.call(n,e)?n[e]:void 0}var J7=Object.prototype,K7=J7.hasOwnProperty;function X7(e){var n=this.__data__;return dd?n[e]!==void 0:K7.call(n,e)}var Z7="__lodash_hash_undefined__";function $7(e,n){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=dd&&n===void 0?Z7:n,this}function cs(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var a=e[n];this.set(a[0],a[1])}}cs.prototype.clear=H7,cs.prototype.delete=V7,cs.prototype.get=G7,cs.prototype.has=X7,cs.prototype.set=$7;function q7(){this.__data__=[],this.size=0}function _h(e,n){for(var i=e.length;i--;)if(R7(e[i][0],n))return i;return-1}var eP=Array.prototype,tP=eP.splice;function nP(e){var n=this.__data__,i=_h(n,e);if(i<0)return!1;var a=n.length-1;return i==a?n.pop():tP.call(n,i,1),--this.size,!0}function iP(e){var n=this.__data__,i=_h(n,e);return i<0?void 0:n[i][1]}function rP(e){return _h(this.__data__,e)>-1}function aP(e,n){var i=this.__data__,a=_h(i,e);return a<0?(++this.size,i.push([e,n])):i[a][1]=n,this}function Gl(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var a=e[n];this.set(a[0],a[1])}}Gl.prototype.clear=q7,Gl.prototype.delete=nP,Gl.prototype.get=iP,Gl.prototype.has=rP,Gl.prototype.set=aP;var oP=_3(yy,"Map");const sP=oP;function lP(){this.size=0,this.__data__={hash:new cs,map:new(sP||Gl),string:new cs}}function cP(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}function yh(e,n){var i=e.__data__;return cP(n)?i[typeof n=="string"?"string":"hash"]:i.map}function uP(e){var n=yh(this,e).delete(e);return this.size-=n?1:0,n}function dP(e){return yh(this,e).get(e)}function fP(e){return yh(this,e).has(e)}function pP(e,n){var i=yh(this,e),a=i.size;return i.set(e,n),this.size+=i.size==a?0:1,this}function us(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var a=e[n];this.set(a[0],a[1])}}us.prototype.clear=lP,us.prototype.delete=uP,us.prototype.get=dP,us.prototype.has=fP,us.prototype.set=pP;var hP="Expected a function";function Cy(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new TypeError(hP);var i=function(){var a=arguments,s=n?n.apply(this,a):a[0],c=i.cache;if(c.has(s))return c.get(s);var p=e.apply(this,a);return i.cache=c.set(s,p)||c,p};return i.cache=new(Cy.Cache||us),i}Cy.Cache=us;var mP=500;function gP(e){var n=Cy(e,function(a){return i.size===mP&&i.clear(),a}),i=n.cache;return n}var AP=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vP=/\\(\\)?/g,bP=gP(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(AP,function(i,a,s,c){n.push(s?c.replace(vP,"$1"):a||i)}),n});const _P=bP;function yP(e){return e==null?"":A3(e)}function xP(e,n){return wy(e)?e:z7(e,n)?[e]:_P(yP(e))}var wP=1/0;function EP(e){if(typeof e=="string"||xy(e))return e;var n=e+"";return n=="0"&&1/e==-wP?"-0":n}function CP(e,n){n=xP(n,e);for(var i=0,a=n.length;e!=null&&i<a;)e=e[EP(n[i++])];return i&&i==a?e:void 0}function kP(e,n,i){var a=e==null?void 0:CP(e,n);return a===void 0?i:a}function y3(e){for(var n=-1,i=e==null?0:e.length,a={};++n<i;){var s=e[n];a[s[0]]=s[1]}return a}function x3(e){return e==null}const w3=e=>e===void 0,ds=e=>typeof e=="number",ky=e=>typeof Element>"u"?!1:e instanceof Element,SP=e=>yr(e)?!Number.isNaN(Number(e)):!1,E3=e=>Object.keys(e);class C3 extends Error{constructor(n){super(n),this.name="ElementPlusError"}}function DP(e,n){throw new C3(`[${e}] ${n}`)}function Ur(e,n){if(process.env.NODE_ENV!=="production"){const i=yr(e)?new C3(`[${e}] ${n}`):e;console.warn(i)}}const IP="utils/dom/style",k3=(e="")=>e.split(" ").filter(n=>!!n.trim()),S3=(e,n)=>{if(!e||!n)return!1;if(n.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(n)},BP=(e,n)=>{!e||!n.trim()||e.classList.add(...k3(n))},OP=(e,n)=>{!e||!n.trim()||e.classList.remove(...k3(n))},TP=(e,n)=>{var i;if(!hi||!e||!n)return"";let a=q9(n);a==="float"&&(a="cssFloat");try{const s=e.style[a];if(s)return s;const c=(i=document.defaultView)==null?void 0:i.getComputedStyle(e,"");return c?c[a]:""}catch{return e.style[a]}};function Sy(e,n="px"){if(!e)return"";if(ds(e)||SP(e))return`${e}${n}`;if(yr(e))return e;Ur(IP,"binding value must be a string or number")}let xh;const NP=e=>{var n;if(!hi)return 0;if(xh!==void 0)return xh;const i=document.createElement("div");i.className=`${e}-scrollbar__wrap`,i.style.visibility="hidden",i.style.width="100px",i.style.position="absolute",i.style.top="-9999px",document.body.appendChild(i);const a=i.offsetWidth;i.style.overflow="scroll";const s=document.createElement("div");s.style.width="100%",i.appendChild(s);const c=s.offsetWidth;return(n=i.parentNode)==null||n.removeChild(i),xh=a-c,xh};/*! Element Plus Icons Vue v2.3.1 */var MP=x.defineComponent({name:"CircleCheck",__name:"circle-check",setup(e){return(n,i)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.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"}),x.createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),FP=MP,PP=x.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(n,i)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),D3=PP,RP=x.defineComponent({name:"CircleClose",__name:"circle-close",setup(e){return(n,i)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),x.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"})]))}}),I3=RP,jP=x.defineComponent({name:"Close",__name:"close",setup(e){return(n,i)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.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"})]))}}),LP=jP,zP=x.defineComponent({name:"Hide",__name:"hide",setup(e){return(n,i)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.createElementVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),x.createElementVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),QP=zP,HP=x.defineComponent({name:"InfoFilled",__name:"info-filled",setup(e){return(n,i)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),B3=HP,VP=x.defineComponent({name:"Loading",__name:"loading",setup(e){return(n,i)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),O3=VP,UP=x.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(e){return(n,i)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),T3=UP,YP=x.defineComponent({name:"View",__name:"view",setup(e){return(n,i)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.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"})]))}}),WP=YP,GP=x.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(e){return(n,i)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),N3=GP;const M3="__epPropKey",mi=e=>e,JP=e=>cd(e)&&!!e[M3],F3=(e,n)=>{if(!cd(e)||JP(e))return e;const{values:i,required:a,default:s,type:c,validator:p}=e,g={type:c,required:!!a,validator:i||p?y=>{let O=!1,E=[];if(i&&(E=Array.from(i),bh(e,"default")&&E.push(s),O||(O=E.includes(y))),p&&(O||(O=p(y))),!O&&E.length>0){const N=[...new Set(E)].map(_=>JSON.stringify(_)).join(", ");x.warn(`Invalid prop: validation failed${n?` for prop "${n}"`:""}. Expected one of [${N}], got value ${JSON.stringify(y)}.`)}return O}:void 0,[M3]:!0};return bh(e,"default")&&(g.default=s),g},fs=e=>y3(Object.entries(e).map(([n,i])=>[n,F3(i,n)])),fd=mi([String,Object,Function]),P3={Close:LP,SuccessFilled:T3,InfoFilled:B3,WarningFilled:N3,CircleCloseFilled:D3},wh={success:T3,warning:N3,error:D3,info:B3},KP={validating:O3,success:FP,error:I3},Eh=(e,n)=>{if(e.install=i=>{for(const a of[e,...Object.values(n!=null?n:{})])i.component(a.name,a)},n)for(const[i,a]of Object.entries(n))e[i]=a;return e},XP=(e,n)=>(e.install=i=>{e._context=i._context,i.config.globalProperties[n]=e},e),ZP=e=>(e.install=Yl,e),Ch={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},Dy="update:modelValue",R3=["","default","small","large"],$P=e=>["",...R3].includes(e);var kh=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(kh||{});const qP=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),j3=e=>e,eR=["class","style"],tR=/^on[A-Z]/,nR=(e={})=>{const{excludeListeners:n=!1,excludeKeys:i}=e,a=x.computed(()=>((i==null?void 0:i.value)||[]).concat(eR)),s=x.getCurrentInstance();return s?x.computed(()=>{var c;return y3(Object.entries((c=s.proxy)==null?void 0:c.$attrs).filter(([p])=>!a.value.includes(p)&&!(n&&tR.test(p))))}):(Ur("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),x.computed(()=>({})))},iR=({from:e,replacement:n,scope:i,version:a,ref:s,type:c="API"},p)=>{x.watch(()=>x.unref(p),m=>{m&&Ur(i,`[${c}] ${e} is about to be deprecated in version ${a}, please use ${n} instead.
20
+ A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.`),e)),M){var R=T;T=function(){return Hl(R())}}var b=function(ee,ne){if(!(!M&&P&&ee.every(function(se,me){return MM(se,ne[me])})))return y(),i(ee,ne,g)},w=O(b);if(a.immediate){var B=w,Q=function(ee,ne){return Q=B,b(ee,ga(ee)?[]:ne)};w=function(ee,ne){return Q(ee,ne)}}var F=e.$watch(T,w,{immediate:a.immediate,deep:M,sync:p}),H=e._watchers[e._watchers.length-1];return va(H.value)&&((s=H.value.__ob__)===null||s===void 0?void 0:s.dep)&&M&&H.value.__ob__.dep.addSub({update:function(){H.run()}}),x4(H,y),function(){F()}}function w4(e,n,i){var a=null;Vr(n)?a=n:(process.env.NODE_ENV!=="production"&&rn("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),i=n,a=null);var s=nF(i),c=iF();return oF(c,e,a,s)}function Hl(e,n){if(n===void 0&&(n=new Set),!Ll(e)||n.has(e)||LM.has(e))return e;if(n.add(e),_n(e))Hl(e.value,n);else if(ga(e))for(var i=0;i<e.length;i++)Hl(e[i],n);else if(IM(e)||DM(e))e.forEach(function(s){Hl(s,n)});else if(Aa(e))for(var a in e)Hl(e[a],n);return e}process.env.NODE_ENV!=="production"&&Object.freeze({});var sF=function(){for(var n,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];return(n=as())===null||n===void 0?void 0:n.nextTick.apply(this,i)};function lF(e,n,i){var a=e.__composition_api_state__=e.__composition_api_state__||{};a[n]=i}function cF(e,n){return(e.__composition_api_state__||{})[n]}var Ka={set:lF,get:cF};function uF(e,n,i){var a=e.$options.props;!(n in e)&&!(a&&Hr(a,n))?(_n(i)?Zn(e,n,{get:function(){return i.value},set:function(s){i.value=s}}):Zn(e,n,{get:function(){return va(i)&&i.__ob__.dep.depend(),i},set:function(s){i=s}}),process.env.NODE_ENV!=="production"&&e.$nextTick(function(){Object.keys(e._data).indexOf(n)===-1&&(_n(i)?Zn(e._data,n,{get:function(){return i.value},set:function(s){i.value=s}}):Zn(e._data,n,{get:function(){return i},set:function(s){i=s}}))})):process.env.NODE_ENV!=="production"&&(a&&Hr(a,n)?rn('The setup binding property "'.concat(n,'" is already declared as a prop.'),e):rn('The setup binding property "'.concat(n,'" is already declared.'),e))}function dF(e){var n=Ka.get(e,"rawBindings")||{};if(!(!n||!Object.keys(n).length)){for(var i=e.$refs,a=Ka.get(e,"refs")||[],s=0;s<a.length;s++){var c=a[s],p=n[c];!i[c]&&p&&_n(p)&&(p.value=null)}for(var m=Object.keys(i),g=[],s=0;s<m.length;s++){var c=m[s],p=n[c];i[c]&&p&&_n(p)&&(p.value=i[c],g.push(c))}Ka.set(e,"refs",g)}}function E4(e){for(var n=[e._vnode];n.length;){var i=n.pop();if(i&&(i.context&&dF(i.context),i.children))for(var a=0;a<i.children.length;++a)n.push(i.children[a])}}function C4(e,n){var i,a;if(!!e){var s=Ka.get(e,"attrBindings");if(!(!s&&!n)){if(!s){var c=y4({});s={ctx:n,data:c},Ka.set(e,"attrBindings",s),Zn(n,"attrs",{get:function(){return s==null?void 0:s.data},set:function(){process.env.NODE_ENV!=="production"&&rn("Cannot assign to '$attrs' because it is a read-only property",e)}})}var p=e.$attrs,m=function(E){Hr(s.data,E)||Zn(s.data,E,{get:function(){return e.$attrs[E]}})};try{for(var g=e4(Object.keys(p)),y=g.next();!y.done;y=g.next()){var O=y.value;m(O)}}catch(E){i={error:E}}finally{try{y&&!y.done&&(a=g.return)&&a.call(g)}finally{if(i)throw i.error}}}}}function k4(e,n){var i=e.$options._parentVnode;if(!!i){for(var a=Ka.get(e,"slots")||[],s=jM(i.data.scopedSlots,e.$slots),c=0;c<a.length;c++){var p=a[c];s[p]||delete n[p]}for(var m=Object.keys(s),c=0;c<m.length;c++){var p=m[c];n[p]||(n[p]=RM(e,p))}Ka.set(e,"slots",m)}}function dy(e,n,i){var a=os();uh(e);try{return n(e)}catch(s){if(i)i(s);else throw s}finally{uh(a)}}function fF(e){e.mixin({beforeCreate:n,mounted:function(){E4(this)},beforeUpdate:function(){C4(this)},updated:function(){E4(this)}});function n(){var p=this,m=p.$options,g=m.setup,y=m.render;if(y&&(m.render=function(){for(var E=this,N=[],_=0;_<arguments.length;_++)N[_]=arguments[_];return dy(dh(p),function(){return y.apply(E,N)})}),!!g){if(!Vr(g)){process.env.NODE_ENV!=="production"&&rn('The "setup" option should be a function that returns a object in component definitions.',p);return}var O=m.data;m.data=function(){return i(p,p.$props),Vr(O)?O.call(p,p):O||{}}}}function i(p,m){m===void 0&&(m={});var g=p.$options.setup,y=c(p),O=dh(p);O.setupContext=y,d4(m,"__ob__",YM()),k4(p,y.slots);var E;if(dy(O,function(){E=g(m,y)}),!!E){if(Vr(E)){var N=E;p.$options.render=function(){return k4(p,y.slots),dy(O,function(){return N()})};return}else if(Ll(E)){va(E)&&(E=HM(E)),Ka.set(p,"rawBindings",E);var _=E;Object.keys(_).forEach(function(S){var M=_[S];if(!_n(M))if(va(M))ga(M)&&(M=ph(M));else if(Vr(M)){var P=M;M=M.bind(p),Object.keys(P).forEach(function(T){M[T]=P[T]})}else Ll(M)?s(M)&&a(M):M=ph(M);uF(p,S,M)});return}process.env.NODE_ENV!=="production"&&fh(!1,'"setup" must return a "Object" or a "Function", got "'.concat(Object.prototype.toString.call(E).slice(8,-1),'"'))}}function a(p,m){if(m===void 0&&(m=new Set),!m.has(p)&&!(!Aa(p)||_n(p)||va(p)||Ql(p))){var g=as(),y=g.util.defineReactive;Object.keys(p).forEach(function(O){var E=p[O];y(p,O,E),E&&(m.add(E),a(E,m))})}}function s(p,m){return m===void 0&&(m=new Map),m.has(p)?m.get(p):(m.set(p,!1),ga(p)&&va(p)?(m.set(p,!0),!0):!Aa(p)||Ql(p)||_n(p)?!1:Object.keys(p).some(function(g){return s(p[g],m)}))}function c(p){var m={slots:{}},g=["root","parent","refs","listeners","isServer","ssrContext"],y=["emit"];return g.forEach(function(O){var E="$".concat(O);Zn(m,O,{get:function(){return p[E]},set:function(){process.env.NODE_ENV!=="production"&&rn("Cannot assign to '".concat(O,"' because it is a read-only property"),p)}})}),C4(p,m),y.forEach(function(O){var E="$".concat(O);Zn(m,O,{get:function(){return function(){for(var N=[],_=0;_<arguments.length;_++)N[_]=arguments[_];var S=p[E];S.apply(p,N)}}})}),process.env.NODE_ENV==="test"&&(m._vm=p),m}}function S4(e,n){if(!e)return n;if(!n)return e;for(var i,a,s,c=u4?Reflect.ownKeys(e):Object.keys(e),p=0;p<c.length;p++)i=c[p],i!=="__ob__"&&(a=n[i],s=e[i],Hr(n,i)?a!==s&&Aa(a)&&!_n(a)&&Aa(s)&&!_n(s)&&S4(s,a):n[i]=s);return n}function pF(e){if(xM(e)){process.env.NODE_ENV!=="production"&&rn("[vue-composition-api] already installed. Vue.use(VueCompositionAPI) should be called only once.");return}process.env.NODE_ENV!=="production"&&(e.version?(e.version[0]!=="2"||e.version[1]!==".")&&rn("[vue-composition-api] only works with Vue 2, v".concat(e.version," found.")):rn("[vue-composition-api] no Vue version found")),e.config.optionMergeStrategies.setup=function(n,i){return function(s,c){return S4(Vr(n)?n(s,c)||{}:void 0,Vr(i)?i(s,c)||{}:void 0)}},wM(e),fF(e)}var D4={install:function(e){return pF(e)}};typeof window<"u"&&window.Vue&&window.Vue.use(D4);function hF(e){e=e||Gt,e&&!e.__composition_api_installed__&&e.use(D4)}hF(Gt),Gt.version;const gZ="";var mF=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",[i("div",{staticClass:"user-list"},[e.processNodeObj&&e.processNodeObj.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"?[e.noPostOption?i("span",[e._v("\u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E")]):e.userList.length>=1?i("span",{staticStyle:{"margin-right":"10px"}},[e._v(e._s(e.userList.map(function(a){return a.name}).join("\uFF1B")))]):e._e(),!e.noPostOption&&!e.onePostUser?i("span",{staticClass:"staff-tree-btn",on:{click:function(a){e.disable||(e.visible=!0)}}},[e._v("\u9009\u62E9")]):e._e()]:[e.userList.length>0?i("span",{staticStyle:{"margin-right":"10px"}},[e._v(e._s(e.userList.map(function(a){return a.name}).join("\uFF1B")))]):e._e(),i("span",{staticClass:"staff-tree-btn",on:{click:function(a){e.disable||(e.visible=!0)}}},[e._v("\u9009\u62E9")])]],2),i("departPerson",e._b({attrs:{visible:e.visible,checkedArray:e.checkedArray,positionArray:e.positionArray},on:{"update:visible":function(a){e.visible=a},callback:e.handleCallback},model:{value:e.visible,callback:function(a){e.visible=a},expression:"visible"}},"departPerson",e.entity,!1))],1)},gF=[];const AZ="";function qt(e,n,i,a,s,c,p,m){var g=typeof e=="function"?e.options:e;n&&(g.render=n,g.staticRenderFns=i,g._compiled=!0),a&&(g.functional=!0),c&&(g._scopeId="data-v-"+c);var y;if(p?(y=function(N){N=N||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!N&&typeof __VUE_SSR_CONTEXT__<"u"&&(N=__VUE_SSR_CONTEXT__),s&&s.call(this,N),N&&N._registeredComponents&&N._registeredComponents.add(p)},g._ssrRegister=y):s&&(y=m?function(){s.call(this,(g.functional?this.parent:this).$root.$options.shadowRoot)}:s),y)if(g.functional){g._injectStyles=y;var O=g.render;g.render=function(_,S){return y.call(S),O(_,S)}}else{var E=g.beforeCreate;g.beforeCreate=E?[].concat(E,y):[y]}return{exports:e,options:g}}var I4=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{I4=e});const AF={components:{departPerson:WO.departPerson},unmounted(){window.clearInterval(this.searchInterval)},props:{modelValue:{type:Object},defaultOption:{type:Array},personType:"",personEntity:{type:Object,default:()=>{}},disable:!1,multiple:{default:!1,type:Boolean},max:{default:1,type:Number},items:{default:void 0,type:Array},processNodeObj:{default:void 0,request:!1},isAlis:{type:Boolean,default:!1}},inject:{isAlisInject:{value:"isAlisInject",default:null}},data(){return{visible:!1,treeOptions:null,selectModel:this.multiple?[]:void 0,treeSearchOptions:null,noPostOption:!1,onePostUser:!1,positionArray:[],searchTime:-1,searchParam:"",userList:[],checkedArray:[],entity:{source:"1",type:this.personType||"0",request:Xe.getAjaxObj(),orgType:[],codeType:[3],multiple:!0,maxMultiple:this.processNodeObj&&this.processNodeObj.loopCardinality==-1?1e3:this.max>1?this.max:1,deptCode:this.processNodeObj?this.getDeptCode(1):"",deptCodeArray:this.processNodeObj?this.getDeptCode(0)||[]:[],subjectName:this.processNodeObj?this.getSubjectName():""},searchInterval:window.setInterval(this.searchIntervalFunc,100)}},model:{prop:"modelValue",event:"update:modelValue"},watch:{processNodeObj:{handler(e,n){e&&(e.loopCardinality,this.entity={...this.entity,maxMultiple:e.loopCardinality==-1?1e3:this.max>1?this.max:1})},deep:!0}},mounted(){this.personEntity!=""&&Object.keys(this.personEntity).length>1&&(this.entity={...this.entity,...this.personEntity}),this.processNodeObj&&this.processNodeObj.participantList&&this.processNodeObj.participantList.length>0&&(this.processNodeObj.participantList.map(e=>{e.id=e.id}),this.userList=this.processNodeObj.participantList,this.checkedArray=this.processNodeObj.participantList.map(e=>({type:3,id:e.id,name:e.name||e.realName,subjectId:e.subjectId})),this.$emit("update:modelValue",this.userList.map(e=>e.id)),this.$emit("select",this.userList)),this.gePostUsers()},methods:{getSubjectName(){let e="";return this.processNodeObj.humanPerformerName=="\u56FA\u5B9A\u5355\u4F4D"&&(e=this.processNodeObj.routeTxt.companyIds[0].name),e},gePostUsers(){if(this.processNodeObj&&this.processNodeObj.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let{routeTxt:e}=this.processNodeObj,n={taskDefId:this.processNodeObj.id,postIds:[]};e.postList.map(i=>{n.postIds.push(i.postId)}),e.postList&&e.postList.length>0&&Xe.common.getTaskAuditor(this.personEntity._businessDeptId?this.personEntity._businessDeptId:this.processNodeObj.taskNode?this.processNodeObj.taskNode[0].vars._businessDeptId:"",[n]).then(i=>{let a=[],s=[],c=!1;if(i.data.map(p=>{p.posts.map(m=>{s.push(...m.users),m.users.length==1?a.push(...m.users):c=!0})}),a.length>this.entity.maxMultiple&&this.entity.maxMultiple!=0&&(c=!0),c&&(a=[]),s.length==0){this.noPostOption=!0;return}a.length>0&&(this.onePostUser=!0,this.handleCallback(a)),this.entity.orgType=[5],this.entity.codeType=[8],i.data[0].posts.map(p=>{this.positionArray.push({...p,projectPost:!(this.personEntity._businessDeptId||this.processNodeObj.taskNode&&this.processNodeObj.taskNode[0].vars._businessDeptId),id:p.users.map(m=>m.id)})})})}},getDeptCode(e){let n="";return this.processNodeObj.humanPerformerName=="\u56FA\u5B9A\u90E8\u95E8"&&(e=="1"&&this.processNodeObj.routeTxt.departmentIds.length==1&&(n=this.processNodeObj.routeTxt.departmentIds[0].rangeId),e=="0"&&this.processNodeObj.routeTxt.departmentIds.length>1&&(n=this.processNodeObj.routeTxt.departmentIds.map(i=>i.rangeId))),n},handleCallback(e){this.userList=e,this.checkedArray=this.userList.map(n=>({type:3,id:n.id,name:n.name||n.realName,subjectId:n.subjectId})),this.$emit("update:modelValue",this.userList.map(n=>n.id)),this.$emit("select",this.userList)},handleClose(e){this.userList.splice(e,1),this.checkedArray=this.userList.map(n=>({type:3,id:n.id,name:n.name||n.realName,subjectId:n.subjectId})),this.$emit("update:modelValue",this.userList.map(n=>n.id)),this.$emit("select",this.userList)},searchIntervalFunc(){this.searchTime>0&&(this.searchTime-=100),this.searchTime==0&&(this.searchTime=-1,this.searchParam&&!(this.items&&this.items.length>0)?Xe.org.list(this.searchParam).then(async e=>{if(e.code==bt.success){let n=e.data.map(i=>(i.children=null,i.label=i.name,i.id=i.id,i.deptName=i.deptName,i.alisName=i.alisName,i));this.treeSearchOptions=n,await this.$nextTick(),this.$refs.deptTree.forest.normalizedOptions.forEach(i=>{i.isBranch=!1}),await this.$nextTick(),this.$refs.deptTree.handleLocalSearch()}}):this.treeSearchOptions=null)},searchChange(e){this.searchParam=e,this.searchTime=500,this.deptTree},onSelect(e,n){this.$emit("update:modelValue",this.selectModel),this.$emit("select",e)},onInput(e,n){this.max>0&&this.multiple&&e.length>this.max&&e.length>this.max?(this.$refs.deptTree.clear(),this.$refs.deptTree.forest.selectedNodeIds=this.selectModel,this.$refs.deptTree.select(this.selectModel),this.$refs.deptTree.forest.selectedNodeIds,I4.warning(`\u6700\u591A\u9009\u62E9 ${this.max} \u4EBA`)):(this.selectModel=e,this.$emit("update:modelValue",this.selectModel))},normalizer(e){if(e.children&&!e.children.length&&delete e.children,e.leaf){let n=`${e.deptName} - ${e.label}(${e.phone})`;return(this.isAlis||this.isAlisInject)&&e.alisName&&(n+="participantList -- "+e.alisName),this.$refs.deptTree.trigger.searchQuery&&(n+=`(${this.$refs.deptTree.trigger.searchQuery})`),{id:e.id,label:n,leaf:e.leaf,phone:e.phone,deptName:e.deptName,alisName:e.alisName}}return{id:e.id,label:e.label,leaf:e.leaf,phone:e.phone,children:e.children,deptName:e.deptName,alisName:e.alisName}},async loadTreeOptions({action:e,parentNode:n,callback:i,instanceId:a}){if(e===LOAD_ROOT_OPTIONS)if(this.items){let s=this.items.map(c=>(c.children=null,c.label=c.name,c.id=c.id,c));this.treeOptions=s}else Xe.org.list().then(s=>{if(s.code==bt.success){let c=s.data.map(p=>(p.children=null,p.label=p.name,p.id=p.id,p));this.defaultOption&&(c=[...c,...this.defaultOption]),this.treeOptions=c}});else if(e===LOAD_CHILDREN_OPTIONS){let s=n.id,c="";if(n.orgType==Wu.\u4E3B\u4F53&&(c=n.id,s=""),n.orgType==Wu.\u7FA4\u7EC4){Xe.org.findTeamMember("",s).then(p=>{let m=p.data.map(g=>(g.label=g.name,g.id=g.id,g));n.children=m,i()});return}Xe.org.list("",s,c).then(p=>{if(p.code==bt.success){let m=p.data.map(g=>(g.leaf||(g.children=null),g.label=g.name,g.id=g.id,g));n.children=m,i()}})}}}},B4={};var vF=qt(AF,mF,gF,!1,bF,"3efb7a24",null,null);function bF(e){for(let n in B4)this[n]=B4[n]}const ba=function(){return vF.exports}();var Vl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _F(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function O4(e){var n=e.default;if(typeof n=="function"){var i=function(){return n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(i,a,s.get?s:{enumerable:!0,get:function(){return e[a]}})}),i}var T4={exports:{}};(function(e,n){(function(i,a){e.exports=a()})(Vl,function(){var i=1e3,a=6e4,s=36e5,c="millisecond",p="second",m="minute",g="hour",y="day",O="week",E="month",N="quarter",_="year",S="date",M="Invalid Date",P=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,R={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Se){var ye=["th","st","nd","rd"],_e=Se%100;return"["+Se+(ye[(_e-20)%10]||ye[_e]||ye[0])+"]"}},b=function(Se,ye,_e){var W=String(Se);return!W||W.length>=ye?Se:""+Array(ye+1-W.length).join(_e)+Se},w={s:b,z:function(Se){var ye=-Se.utcOffset(),_e=Math.abs(ye),W=Math.floor(_e/60),J=_e%60;return(ye<=0?"+":"-")+b(W,2,"0")+":"+b(J,2,"0")},m:function Se(ye,_e){if(ye.date()<_e.date())return-Se(_e,ye);var W=12*(_e.year()-ye.year())+(_e.month()-ye.month()),J=ye.clone().add(W,E),re=_e-J<0,ge=ye.clone().add(W+(re?-1:1),E);return+(-(W+(_e-J)/(re?J-ge:ge-J))||0)},a:function(Se){return Se<0?Math.ceil(Se)||0:Math.floor(Se)},p:function(Se){return{M:E,y:_,w:O,d:y,D:S,h:g,m,s:p,ms:c,Q:N}[Se]||String(Se||"").toLowerCase().replace(/s$/,"")},u:function(Se){return Se===void 0}},B="en",Q={};Q[B]=R;var F="$isDayjsObject",H=function(Se){return Se instanceof me||!(!Se||!Se[F])},ee=function Se(ye,_e,W){var J;if(!ye)return B;if(typeof ye=="string"){var re=ye.toLowerCase();Q[re]&&(J=re),_e&&(Q[re]=_e,J=re);var ge=ye.split("-");if(!J&&ge.length>1)return Se(ge[0])}else{var Te=ye.name;Q[Te]=ye,J=Te}return!W&&J&&(B=J),J||!W&&B},ne=function(Se,ye){if(H(Se))return Se.clone();var _e=typeof ye=="object"?ye:{};return _e.date=Se,_e.args=arguments,new me(_e)},se=w;se.l=ee,se.i=H,se.w=function(Se,ye){return ne(Se,{locale:ye.$L,utc:ye.$u,x:ye.$x,$offset:ye.$offset})};var me=function(){function Se(_e){this.$L=ee(_e.locale,null,!0),this.parse(_e),this.$x=this.$x||_e.x||{},this[F]=!0}var ye=Se.prototype;return ye.parse=function(_e){this.$d=function(W){var J=W.date,re=W.utc;if(J===null)return new Date(NaN);if(se.u(J))return new Date;if(J instanceof Date)return new Date(J);if(typeof J=="string"&&!/Z$/i.test(J)){var ge=J.match(P);if(ge){var Te=ge[2]-1||0,le=(ge[7]||"0").substring(0,3);return re?new Date(Date.UTC(ge[1],Te,ge[3]||1,ge[4]||0,ge[5]||0,ge[6]||0,le)):new Date(ge[1],Te,ge[3]||1,ge[4]||0,ge[5]||0,ge[6]||0,le)}}return new Date(J)}(_e),this.init()},ye.init=function(){var _e=this.$d;this.$y=_e.getFullYear(),this.$M=_e.getMonth(),this.$D=_e.getDate(),this.$W=_e.getDay(),this.$H=_e.getHours(),this.$m=_e.getMinutes(),this.$s=_e.getSeconds(),this.$ms=_e.getMilliseconds()},ye.$utils=function(){return se},ye.isValid=function(){return this.$d.toString()!==M},ye.isSame=function(_e,W){var J=ne(_e);return this.startOf(W)<=J&&J<=this.endOf(W)},ye.isAfter=function(_e,W){return ne(_e)<this.startOf(W)},ye.isBefore=function(_e,W){return this.endOf(W)<ne(_e)},ye.$g=function(_e,W,J){return se.u(_e)?this[W]:this.set(J,_e)},ye.unix=function(){return Math.floor(this.valueOf()/1e3)},ye.valueOf=function(){return this.$d.getTime()},ye.startOf=function(_e,W){var J=this,re=!!se.u(W)||W,ge=se.p(_e),Te=function(k,X){var te=se.w(J.$u?Date.UTC(J.$y,X,k):new Date(J.$y,X,k),J);return re?te:te.endOf(y)},le=function(k,X){return se.w(J.toDate()[k].apply(J.toDate("s"),(re?[0,0,0,0]:[23,59,59,999]).slice(X)),J)},he=this.$W,xe=this.$M,Fe=this.$D,K="set"+(this.$u?"UTC":"");switch(ge){case _:return re?Te(1,0):Te(31,11);case E:return re?Te(1,xe):Te(0,xe+1);case O:var j=this.$locale().weekStart||0,C=(he<j?he+7:he)-j;return Te(re?Fe-C:Fe+(6-C),xe);case y:case S:return le(K+"Hours",0);case g:return le(K+"Minutes",1);case m:return le(K+"Seconds",2);case p:return le(K+"Milliseconds",3);default:return this.clone()}},ye.endOf=function(_e){return this.startOf(_e,!1)},ye.$set=function(_e,W){var J,re=se.p(_e),ge="set"+(this.$u?"UTC":""),Te=(J={},J[y]=ge+"Date",J[S]=ge+"Date",J[E]=ge+"Month",J[_]=ge+"FullYear",J[g]=ge+"Hours",J[m]=ge+"Minutes",J[p]=ge+"Seconds",J[c]=ge+"Milliseconds",J)[re],le=re===y?this.$D+(W-this.$W):W;if(re===E||re===_){var he=this.clone().set(S,1);he.$d[Te](le),he.init(),this.$d=he.set(S,Math.min(this.$D,he.daysInMonth())).$d}else Te&&this.$d[Te](le);return this.init(),this},ye.set=function(_e,W){return this.clone().$set(_e,W)},ye.get=function(_e){return this[se.p(_e)]()},ye.add=function(_e,W){var J,re=this;_e=Number(_e);var ge=se.p(W),Te=function(xe){var Fe=ne(re);return se.w(Fe.date(Fe.date()+Math.round(xe*_e)),re)};if(ge===E)return this.set(E,this.$M+_e);if(ge===_)return this.set(_,this.$y+_e);if(ge===y)return Te(1);if(ge===O)return Te(7);var le=(J={},J[m]=a,J[g]=s,J[p]=i,J)[ge]||1,he=this.$d.getTime()+_e*le;return se.w(he,this)},ye.subtract=function(_e,W){return this.add(-1*_e,W)},ye.format=function(_e){var W=this,J=this.$locale();if(!this.isValid())return J.invalidDate||M;var re=_e||"YYYY-MM-DDTHH:mm:ssZ",ge=se.z(this),Te=this.$H,le=this.$m,he=this.$M,xe=J.weekdays,Fe=J.months,K=J.meridiem,j=function(X,te,fe,De){return X&&(X[te]||X(W,re))||fe[te].slice(0,De)},C=function(X){return se.s(Te%12||12,X,"0")},k=K||function(X,te,fe){var De=X<12?"AM":"PM";return fe?De.toLowerCase():De};return re.replace(T,function(X,te){return te||function(fe){switch(fe){case"YY":return String(W.$y).slice(-2);case"YYYY":return se.s(W.$y,4,"0");case"M":return he+1;case"MM":return se.s(he+1,2,"0");case"MMM":return j(J.monthsShort,he,Fe,3);case"MMMM":return j(Fe,he);case"D":return W.$D;case"DD":return se.s(W.$D,2,"0");case"d":return String(W.$W);case"dd":return j(J.weekdaysMin,W.$W,xe,2);case"ddd":return j(J.weekdaysShort,W.$W,xe,3);case"dddd":return xe[W.$W];case"H":return String(Te);case"HH":return se.s(Te,2,"0");case"h":return C(1);case"hh":return C(2);case"a":return k(Te,le,!0);case"A":return k(Te,le,!1);case"m":return String(le);case"mm":return se.s(le,2,"0");case"s":return String(W.$s);case"ss":return se.s(W.$s,2,"0");case"SSS":return se.s(W.$ms,3,"0");case"Z":return ge}return null}(X)||ge.replace(":","")})},ye.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ye.diff=function(_e,W,J){var re,ge=this,Te=se.p(W),le=ne(_e),he=(le.utcOffset()-this.utcOffset())*a,xe=this-le,Fe=function(){return se.m(ge,le)};switch(Te){case _:re=Fe()/12;break;case E:re=Fe();break;case N:re=Fe()/3;break;case O:re=(xe-he)/6048e5;break;case y:re=(xe-he)/864e5;break;case g:re=xe/s;break;case m:re=xe/a;break;case p:re=xe/i;break;default:re=xe}return J?re:se.a(re)},ye.daysInMonth=function(){return this.endOf(E).$D},ye.$locale=function(){return Q[this.$L]},ye.locale=function(_e,W){if(!_e)return this.$L;var J=this.clone(),re=ee(_e,W,!0);return re&&(J.$L=re),J},ye.clone=function(){return se.w(this.$d,this)},ye.toDate=function(){return new Date(this.valueOf())},ye.toJSON=function(){return this.isValid()?this.toISOString():null},ye.toISOString=function(){return this.$d.toISOString()},ye.toString=function(){return this.$d.toUTCString()},Se}(),pe=me.prototype;return ne.prototype=pe,[["$ms",c],["$s",p],["$m",m],["$H",g],["$W",y],["$M",E],["$y",_],["$D",S]].forEach(function(Se){pe[Se[1]]=function(ye){return this.$g(ye,Se[0],Se[1])}}),ne.extend=function(Se,ye){return Se.$i||(Se(ye,me,ne),Se.$i=!0),ne},ne.locale=ee,ne.isDayjs=H,ne.unix=function(Se){return ne(1e3*Se)},ne.en=Q[B],ne.Ls=Q,ne.p={},ne})})(T4);const ld=T4.exports;var yF=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"view-file"},[i("p",{staticClass:"lable"},[e._v("\u67E5\u770B\u9644\u4EF6")]),e._l(e.sortData,function(a,s){return i("div",{key:s,staticClass:"file-info"},[i("div",{staticClass:"name"},[i("el-image",{attrs:{src:e.getFileUrl(a),fit:"fill"}}),i("div",[i("span",[e._v(" "+e._s(e.fileNameLastof(a.name)))]),i("b",{staticClass:"time"},[e._v(e._s(a.uploadTime)+" | "+e._s(e.formatSize(a.size)))])])],1),i("div",{staticClass:"op"},[i("div",{on:{click:function(c){return e.handlePictureCardPreview(a)}}},[e._v(" \u9884\u89C8 ")]),i("div",{on:{click:function(c){return e.handleDownload(a)}}},[e._v(" \u4E0B\u8F7D ")])])])}),i("el-dialog",{attrs:{"append-to-body":""},model:{value:e.dialogVisible,callback:function(a){e.dialogVisible=a},expression:"dialogVisible"}},[i("el-image",{staticStyle:{width:"100%"},attrs:{src:e.dialogImageUrl,alt:"Preview Image"}})],1)],2)},xF=[];const vZ="",wF={props:{dataList:{}},data(){return{dialogImageUrl:"",dialogVisible:!1}},computed:{sortData(){return this.dataList.sort((e,n)=>ld(e.uploadTime).valueOf()-ld(n.uploadTime).valueOf())}},methods:{getExt(e){if(!e)return"";let n=e.lastIndexOf(".");return e.substring(n+1).toLocaleLowerCase()},isAssetTypeAnImage(e){let n=this.getExt(e);return["png","jpg","jpeg","bmp","gif","webp","psd","svg","tiff"].indexOf(n.toLowerCase())!==-1},fileNameLastof(e,n=0){if(e.indexOf("http")==-1&&(n=0),!e)return;let i="/";e.indexOf("\\")!=-1&&(i="\\");let a=e,s=a.lastIndexOf(i);return a.substr(s+1+n,a.length)},formatSize(e){if(!e)return"";var n=1024;return e<n?e+"B":e<Math.pow(n,2)?(e/n).toFixed(2)+"KB":e<Math.pow(n,3)?(e/Math.pow(n,2)).toFixed(2)+"MB":e<Math.pow(n,4)?(e/Math.pow(n,3)).toFixed(2)+"G":(e/Math.pow(n,4)).toFixed(2)+"T"},handleDownload(e){let n=e.url||e.response.data.url;n&&this.downloadFile(n,e.name)},downloadFile:(e,n)=>{var i=document.createElement("a");i.download=n,i.style.display="none";var a=new Blob([e]);i.href=URL.createObjectURL(a),document.body.appendChild(i),i.click(),document.body.removeChild(i)},getFileUrl(e){let n=e.url||e.response.data.url;return this.isAssetTypeAnImage(n)?n:this.getExt(n)=="zip"||this.getExt(n)=="rar"?require("./assets/zip.png"):this.getExt(n)=="doc"||this.getExt(n)=="docx"?require("./assets/doc.png"):this.getExt(n)=="xls"||this.getExt(n)=="xlsx"?require("./assets/xls.png"):this.getExt(n)=="pdf"?require("./assets/pdf.png"):require("./assets/qt.png")},handlePictureCardPreview(e){let n=e.url||e.response.data.url,i=n.lastIndexOf(".");n.substring(i+1)=="zip"||n.substring(i+1)=="rar"?window.open(n):n.includes("https")?window.open(`https://wdyl.ddzg.cn:8089/?ssl=1&furl=${n}`):window.open(`https://wdyl.ddzg.cn:8089/?ssl=0&furl=${n}`)}}},N4={};var EF=qt(wF,yF,xF,!1,CF,"e0be2f1a",null,null);function CF(e){for(let n in N4)this[n]=N4[n]}const kF=function(){return EF.exports}();var SF=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[i("el-form-item",{attrs:{label:"\u52A0\u7B7E\u4EBA\u5458",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u52A0\u7B7E\u4EBA\u5458"}]}},[i("staffTree",{attrs:{personType:e.param.personType,personEntity:e.param.personEntity,multiple:"",max:5},model:{value:e.targetUser,callback:function(a){e.targetUser=a},expression:"targetUser"}})],1),i("el-form-item",{attrs:{label:"\u52A0\u7B7E\u539F\u56E0",rules:[{required:!0,message:"\u52A0\u7B7E\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"}]}},[i("el-input",{staticClass:"formInput",attrs:{rows:5,maxlength:"200","show-word-limit":"",resize:"none",type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u52A0\u7B7E\u539F\u56E0(200\u5B57\u4EE5\u5185)"},model:{value:e.reason,callback:function(a){e.reason=a},expression:"reason"}})],1),e._t("file"),e._t("form")],2)},DF=[];const bZ="";var gh=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{gh=e});const IF={components:{staffTree:ba},props:{param:Object},data(){return{reason:"",targetUser:[]}},methods:{getRes(){return{targetUser:this.targetUser}},confirm(e,n){if(!this.targetUser||this.targetUser.length==0)return gh.warning("\u8BF7\u9009\u62E9\u5BA1\u6838\u4EBA"),!1;if(!this.reason)return gh.warning("\u8BF7\u586B\u5199\u52A0\u7B7E\u539F\u56E0"),!1;if(this.reason.length>200)return gh.warning("\u52A0\u7B7E\u539F\u56E0\u4E0D\u80FD\u8D85\u8FC7200\u4E2A\u5B57"),!1;let i=this.targetUser||[];e&&e(),n(),Xe.tis.addMultiInstance({taskId:this.param.taskInstId,signPersoneds:i,comment:this.reason}).then(a=>{a.code==bt.success?this.$emit("success"):this.$emit("fail",a.msg)})}}},M4={};var BF=qt(IF,SF,DF,!1,OF,"79bc4843",null,null);function OF(e){for(let n in M4)this[n]=M4[n]}const F4=function(){return BF.exports}();var TF=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-select",{staticClass:"select",attrs:{placeholder:"\u9009\u62E9\u5E38\u7528\u610F\u89C1"},on:{change:e.changeFun},model:{value:e.value,callback:function(a){e.value=a},expression:"value"}},e._l(e.list,function(a,s){return i("el-option",{key:a.opinionId,attrs:{label:a.opinionName,value:a.opinionName}},[i("el-tooltip",{attrs:{effect:"dark","visible-arrow":!0,"popper-class":"pr-option-tooltip",content:a.opinionName,placement:"right"}},[i("div",{staticClass:"option-c"},[i("span",[e._v(e._s(a.opinionName))]),i("i",{staticClass:"el-icon-delete",staticStyle:{float:"right"},on:{click:function(c){return c.stopPropagation(),e.del(a)}}})])])],1)}),1)},NF=[];const _Z="",yZ="",MF={props:{showLabel:!1},data(){return{value:"",list:[]}},mounted(){this.getList()},methods:{addIdea(e){if(!e)return this.$message({type:"error",message:"\u8BF7\u8F93\u5165\u610F\u89C1\u540E\u91CD\u8BD5"});this.$confirm(`\u5C06\u201D${e}\u201D\u8BBE\u4E3A\u5E38\u7528\u610F\u89C1\u3002`,"\u64CD\u4F5C\u4FE1\u606F\u63D0\u9192",{confirmButtonText:"\u7EE7\u7EED",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{Xe.getAjaxObj().post("/auth/user/opinion/save",{opinionName:e}).then(n=>{n.success?(this.getList(),this.$message({type:"success",message:"\u8BBE\u7F6E\u6210\u529F"})):this.$message({type:"error",message:n.msg})})})},changeFun(){this.$emit("change",this.value),this.value=""},getList(){Xe.getAjaxObj().get("/auth/user/opinion/my","").then(e=>{this.list=e.data})},del(e){this.$confirm("\u6B64\u64CD\u4F5C\u5C06\u6C38\u4E45\u5220\u9664\u8BE5\u610F\u89C1, \u662F\u5426\u7EE7\u7EED?","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{Xe.getAjaxObj().get(`/auth/user/opinion/del/${e.opinionId}`,"").then(n=>{this.getList(),this.$message({type:"success",message:"\u5220\u9664\u6210\u529F"})})}).catch(()=>{})}}},P4={};var FF=qt(MF,TF,NF,!1,PF,"a3cd7af2",null,null);function PF(e){for(let n in P4)this[n]=P4[n]}const fy=function(){return FF.exports}();var RF=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[i("el-form-item",{attrs:{label:"\u8F6C\u529E\u4EBA",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8F6C\u529E\u4EBA"}]}},[i("staffTree",{attrs:{personType:e.param.personType,personEntity:e.personEntity},model:{value:e.targetUID,callback:function(a){e.targetUID=a},expression:"targetUID"}})],1),e.param.showCommIdea?i("el-form-item",{attrs:{label:"\u5FEB\u6377\u56DE\u590D"}},[i("commIdea",{ref:"commIdea",on:{change:function(a){return e.commentMsg=a}}})],1):e._e(),i("el-form-item",{attrs:{label:"\u5BA1\u6279\u610F\u89C1",rules:[{required:!0,message:"\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u4E3A\u7A7A"}]}},[i("el-input",{attrs:{rows:5,maxlength:"200","show-word-limit":"",resize:"none",type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"},model:{value:e.commentMsg,callback:function(a){e.commentMsg=a},expression:"commentMsg"}}),e.param.showCommIdea?i("div",{staticClass:"add-idea"},[i("span",{on:{click:function(a){return e.$refs.commIdea.addIdea(e.commentMsg)}}},[e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]):e._e()],1),e._t("file"),e._t("form")],2)},jF=[];const xZ="";var Ah=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{Ah=e});const LF={components:{staffTree:ba,commIdea:fy},props:{param:Object},data(){return{commentMsg:"",targetName:"",targetUID:"",personEntity:{}}},watch:{param:{handler(e){this.personEntity={...e.personEntity,maxMultiple:1}},immediate:!0,deep:!0}},methods:{getRes(){return{targetUID:this.targetUID,targetName:this.targetName,commentMsg:this.commentMsg}},confirm(e,n){if(!this.targetUID)return Ah.warning("\u8BF7\u9009\u62E9\u8F6C\u529E\u4EBA"),!1;if(!this.commentMsg)return Ah.warning("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"),!1;if(this.commentMsg.length>200)return Ah.warning("\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u8D85\u8FC7200\u4E2A\u5B57"),!1;e&&e(),n(),Xe.tis.transferTask({taskId:this.param.taskInstId,assignee:this.targetUID.join(" "),comment:this.commentMsg}).then(i=>{i.code==bt.success?this.$emit("success"):this.$emit("fail",i.msg)})}}},R4={};var zF=qt(LF,RF,jF,!1,QF,"dd93bc60",null,null);function QF(e){for(let n in R4)this[n]=R4[n]}const j4=function(){return zF.exports}();var HF=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"user-task"},[e.processNodeObj.type=="endEvent"?[i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.lv1label||"\u8282\u70B9\u540D\u79F0"},scopedSlots:e._u([{key:"label",fn:function(a){return a.label,[i("div",{staticStyle:{"font-size":"16px"}},[e._v(e._s(e.lv1label||"\u8282\u70B9\u540D\u79F0"))])]}}],null,!1,51654731)},[i("b",{staticStyle:{"font-size":"16px"}},[e._v(e._s(e.processNodeObj.name))])])]:e.processNodeObj.nodeType=="exclusiveGateway"&&e.processNodeObj.branches&&e.processNodeObj.branches.length>=1?[e.processNodeObj.branches.length>1?i("el-form-item",{attrs:{label:e.processNodeObj.name||"\u4E0B\u4E00\u8282\u70B9"}},[i("el-radio-group",{staticClass:"ml-4",model:{value:e.radioModel,callback:function(a){e.radioModel=a},expression:"radioModel"}},e._l(e.processNodeObj.branches,function(a){return i("el-radio",{key:a.id,attrs:{label:a,size:"large"}},[e._v(e._s(a.name?a.name:a.nodeInfoDTO?a.nodeInfoDTO.name:""))])}),1)],1):e._e(),e.radioModel.id?[e.radioModel.nodeInfoDTO&&e.radioModel.nodeInfoDTO.nodeType=="userTask"?[i("userTask",{key:e.radioModel.nodeInfoDTO.id,ref:e.setItemRef(e.radioModel.nodeInfoDTO.id),attrs:{personType:e.personType,personEntity:e.personEntity,"process-node":Object.assign({},e.radioModel.nodeInfoDTO,{REQUIRED:!(e.radioModel.nodeInfoDTO.setPersonnel==!0&&e.radioModel.nodeInfoDTO.assignees&&e.radioModel.nodeInfoDTO.assignees.length>0)}),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})]:e.radioModel.nodeInfoDTO&&e.radioModel.nodeInfoDTO.nodeType=="inclusiveGateway"?[i("userTask",{key:e.radioModel.nodeInfoDTO.id,ref:e.setItemRef(e.radioModel.nodeInfoDTO.id),attrs:{personType:e.personType,personEntity:e.personEntity,"process-node":Object.assign({},e.radioModel.nodeInfoDTO,{REQUIRED:!(e.radioModel.nodeInfoDTO.setPersonnel==!0&&e.radioModel.nodeInfoDTO.assignees&&e.radioModel.nodeInfoDTO.assignees.length>0)}),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})]:e.radioModel.nodeInfoDTO&&e.radioModel.nodeInfoDTO.nodeType=="exclusiveGateway"?e._l(e.radioModel.nodeInfoDTO.branches,function(a){return i("userTask",{key:a.nodeInfoDTO.id,ref:e.setItemRef(a.nodeInfoDTO.id),refInFor:!0,attrs:{personType:e.personType,personEntity:e.personEntity,processNode:Object.assign({},a.nodeInfoDTO,{REQUIRED:!(a.nodeInfoDTO.setPersonnel==!0&&a.nodeInfoDTO.assignees&&a.nodeInfoDTO.assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})}):e._e()]:e.processNodeObj&&e.processNodeObj.branches&&e.processNodeObj.branches.length==1?e._l(e.processNodeObj.branches,function(a){return i("userTask",{key:a.nodeInfoDTO?a.nodeInfoDTO.id:a.id,ref:e.setItemRef(a.nodeInfoDTO?a.nodeInfoDTO.id:a.id),refInFor:!0,attrs:{personType:e.personType,personEntity:e.personEntity,"process-node":Object.assign({},a.nodeInfoDTO?a.nodeInfoDTO:a,{REQUIRED:!(a.nodeInfoDTO.setPersonnel==!0&&a.nodeInfoDTO.assignees&&a.nodeInfoDTO.assignees.length>0)}),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})}):e._e()]:e.processNodeObj.nodeType=="inclusiveGateway"&&e.processNodeObj.branches&&e.processNodeObj.branches.length>0?[i("el-form-item",{attrs:{label:e.processNodeObj.name||"\u4E0B\u4E00\u8282\u70B9"}},[i("el-checkbox-group",{model:{value:e.checkList,callback:function(a){e.checkList=a},expression:"checkList"}},[e._l(e.processNodeObj.branches,function(a){return[e.isSelect(a.nodeInfoDTO?a.nodeInfoDTO:a)?i("el-checkbox",{key:"checkbox"+(a.nodeInfoDTO?a.nodeInfoDTO.id:a.id),attrs:{label:a.nodeInfoDTO?a.nodeInfoDTO.name:a.name,checked:!0,disabled:""}}):i("el-checkbox",{key:"checkbox1"+(a.nodeInfoDTO?a.nodeInfoDTO.id:a.id),attrs:{label:a.nodeInfoDTO?a.nodeInfoDTO.name:a.name}})]})],2)],1),e._l(e.checkModelList,function(a){return i("userTask",{key:a.nodeInfoDTO?a.nodeInfoDTO.id:a.id,ref:e.setItemRef(a.nodeInfoDTO?a.nodeInfoDTO.id:a.id),refInFor:!0,attrs:{personType:e.personType,personEntity:e.personEntity,processNode:Object.assign({},a.nodeInfoDTO?a.nodeInfoDTO:a,{REQUIRED:a.nodeInfoDTO?!(a.nodeInfoDTO.setPersonnel==!0&&a.nodeInfoDTO.assignees&&a.nodeInfoDTO.assignees.length>0):!(a.setPersonnel==!0&&a.assignees&&a.assignees.length>0)})}})})]:!e.processNodeObj.assignee||!e.processNodeObj.assignees||e.isOption(e.processNodeObj.humanPerformerName)?[i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.lv1label||"\u8282\u70B9\u540D\u79F0"},scopedSlots:e._u([{key:"label",fn:function(a){return a.label,[i("div",{staticStyle:{"font-size":"16px"}},[e._v(e._s(e.lv1label||"\u8282\u70B9\u540D\u79F0"))])]}}])},[i("b",{staticStyle:{"font-size":"16px"}},[e._v(e._s(e.processNodeObj.name))])]),e.processNodeObj.routeTxt&&e.processNodeObj.routeTxt.length>0&&e.processNodeObj.userList&&e.processNodeObj.userList.length>0?i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.peopleLabel||"\u6240\u5C5E\u8303\u56F4"}},e._l(e.processNodeObj.routeTxt,function(a,s){return i("div",{key:a.type},[a.ids&&a.ids.length>0?i("div",[i("b",{staticClass:"include include-type",class:["include-"+a.type]},[e._v(e._s(a.type=="user"?"\u7528\u6237":a.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"))]),i("span",{staticClass:"include include-name"},[e._v(e._s(a.name))]),s!==e.processNodeObj.routeTxt.length-1?i("div",{staticClass:"include include-assign",class:["include-assign-"+(a.assigneeRetain?"true":"false")]},[e._v(e._s(e.processNodeObj.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"))]):e._e()]):e._e()])}),0):e._e(),i("el-form-item",{attrs:{label:e.label||"\u5904\u7406\u4EBA",rules:e.rules||{}}},[e.processNodeObj.userList&&e.processNodeObj.userList.length>=2?i("el-select",{attrs:{filterable:"",multiple:e.processNodeObj.loopCardinality==-1,placeholder:"\u8BF7\u9009\u62E9"},on:{change:e.fixPeopleChange},model:{value:e.targetUserId,callback:function(a){e.targetUserId=a},expression:"targetUserId"}},e._l(e.processNodeObj.userList,function(a,s){return i("el-option",{key:a.userId,attrs:{label:a.realName,value:a.userId}})}),1):e.processNodeObj.userList&&e.processNodeObj.userList.length==1?i("div",{staticClass:"setVal"},[e._v(" "+e._s(e.processNodeObj.userList[0].realName)+" ")]):e.processNodeObj.setPersonnel&&e.processNodeObj.assignees?i("div",{staticClass:"setVal"},[e._v(" "+e._s((e.processNodeObj.assignees||[]).map(function(a){return a.name||a.realName}).join(", "))+" ")]):i("staffTree",{attrs:{processNodeObj:e.processNodeObj,personType:e.personType,personEntity:e.personEntity,multiple:"",max:e.processNodeObj.loopCardinality==-1?1e3:1,items:e.getTreeData(e.processNodeObj)},on:{"update:modelValue":function(a){e.complete(a,e.processNodeObj)},select:e.selectChange},model:{value:e.targetUserId,callback:function(a){e.targetUserId=a},expression:"targetUserId"}})],1)]:e._e()],2)},VF=[];const wZ="";var ss=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{ss=e});const UF={name:"userTask",components:{staffTree:ba},props:{index:{type:Number,default:0},processNode:{require:!0},label:"",peopleLabel:"",lv1label:"",personType:"",personEntity:{type:Object,default:()=>{}},rules:{require:!1,type:Array}},data(){return{deptList:[],Enum:Np,resultList:[],radioModel:{},checkList:[],targetUserId:"",targetUserList:[],processNodeObj:this.processNode,userTaskListData:{},personnelList:[]}},computed:{checkModelList(){let e=this.processNodeObj.branches.filter(n=>this.checkList.includes(n.incomingConditionItemList[0].compareValue));return this.resultList=e||[],this.resultList}},watch:{processNode:{handler(e,n){e.nodeType=="userTask"&&e.setPersonnel&&e.assignees&&e.assignees.length>0&&(this.targetUserId=e.assignees.map(i=>i.id)),e.userList&&e.userList.length==1&&(this.targetUserId=e.userList[0].userId),this.processNodeObj=e||{},this.processNodeObj.type=="endEvent"&&this.$emit("complete",this.processNodeObj)},deep:!0,immediate:!0}},mounted(){this.processNodeObj.childNode&&this.processNodeObj.childNode.length==1&&this.processNodeObj.type==t_.\u5355\u4E00\u5206\u652F&&(this.radioModel=this.processNodeObj.childNode[0])},methods:{isSelect(e){if(e.incomingConditionItemList[0]){let n=e.incomingConditionItemList[0].itemName.includes("selecd");return n&&(this.checkList.includes(e.name)||this.checkList.push(e.name)),n}return!1},fixPeopleChange(e){this.complete(e,this.processNodeObj)},selectChange(e){this.targetUserList=e},complete(e,n){n.vars=e,this.resultList.every(i=>i.vars)&&(this.processNodeObj.vars=this.resultList.map(i=>i.vars),this.$emit("complete",this.processNodeObj))},setItemRef(e){return this.userTaskListData[e]="userTask"+e,this.userTaskListData[e]},getTreeData(e){if(e){if(e.humanPerformerName=="\u56FA\u5B9A\u90E8\u95E8")return e.routeTxt.departmentIds.map(n=>{let i={};return i.id=n.rangeId,i.leaf=!1,i.name=n.name,i.orgType=this.Enum.UserType.\u90E8\u95E8,i});if(e.humanPerformerName=="\u56FA\u5B9A\u5355\u4F4D")return e.routeTxt.companyIds.map(n=>{let i={};return i.id=n.rangeId,i.leaf=!1,i.name=n.name,i.orgType=this.Enum.UserType.\u4E3B\u4F53,i});if(e.humanPerformerName=="\u56FA\u5B9A\u7FA4\u7EC4")return e.routeTxt.teamList.map(n=>{let i={};return i.id=n.id,i.leaf=!1,i.name=n.teamName,i.orgType=this.Enum.UserType.\u7FA4\u7EC4,i})}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},getValue(){let e=!0,n={multiNodeParticipant:{},vars:{}};if(!this.processNodeObj.type||this.processNodeObj.type==this.Enum.ProcessNodeType.\u7528\u6237\u4EFB\u52A1||this.processNodeObj.type==t_.\u7528\u6237\u8282\u70B9)if(this.processNodeObj.nodeType=="exclusiveGateway")for(let i in this.userTaskListData){let a=this.userTaskListData[i],s=this.$refs[a];if(s=Array.isArray(s)?s[0]:s,s){let c=s.getValue();c?(this.radioModel&&this.radioModel.nodeInfoDTO&&this.radioModel.nodeInfoDTO.id&&this.radioModel.nodeInfoDTO.incomingConditionItemList&&this.radioModel.nodeInfoDTO.incomingConditionItemList.length>0&&(n.vars[this.radioModel.nodeInfoDTO.incomingConditionItemList[0].itemName]=this.radioModel.nodeInfoDTO.incomingConditionItemList[0].compareValue),n.multiNodeParticipant={...n.multiNodeParticipant,...c.multiNodeParticipant},n.vars={...n.vars,...c.vars}):e=!1}}else if(this.processNodeObj.nodeType=="inclusiveGateway")if(this.resultList&&this.resultList.length>0)this.resultList.forEach(i=>{const a=this.userTaskListData[i.nodeInfoDTO.id];let s=this.$refs[a];if(s=Array.isArray(s)?s[0]:s,s){let c=s.getValue();c?(i.nodeInfoDTO.incomingConditionItemList.length!==0&&i.nodeInfoDTO.incomingConditionItemList.forEach(p=>{p.itemName&&(n.vars[p.itemName]=p.compareValue)}),n.multiNodeParticipant={...n.multiNodeParticipant,...c.multiNodeParticipant},n.vars={...n.vars,...c.vars}):e=!1}});else return this.processNodeObj,this.processNodeObj&&this.processNodeObj.nodeType=="inclusiveGateway"?ss.warning("\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9"):this.processNodeObj.nodeInfoDTO.name&&ss.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.nodeInfoDTO.name} `),!1;else if(!this.processNodeObj.assignee||!Array.isArray(this.processNodeObj.assignee)||!this.processNodeObj.setPersonnel||this.isOption(this.processNodeObj.humanPerformerName)||this.processNodeObj.nodeInfoDTO&&(!this.processNodeObj.nodeInfoDTO.assignee||!Array.isArray(this.processNodeObj.nodeInfoDTO.assignee)||!this.processNodeObj.nodeInfoDTO.setPersonnel||this.isOption(this.processNodeObj.nodeInfoDTO.humanPerformerName))){if(this.targetUserId&&this.targetUserId.length>0)n.multiNodeParticipant={},n.multiNodeParticipant[this.processNode.nodeInfoDTO?this.processNodeObj.nodeInfoDTO.id:this.processNodeObj.id]=Array.isArray(this.targetUserId)?this.targetUserId:[this.targetUserId];else if(this.processNodeObj.REQUIRED!==!1||this.processNodeObj.nodeInfoDTO&&this.processNodeObj.nodeInfoDTO.REQUIRED!==!1)return this.processNodeObj.nodeInfoDTO?this.processNodeObj.nodeInfoDTO.name&&ss.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.nodeInfoDTO.name} \u5904\u7406\u4EBA`):this.processNodeObj.name&&ss.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.name} \u5904\u7406\u4EBA`),!1}else this.processNodeObj.incomingConditionItemList&&this.processNodeObj.incomingConditionItemList.length>0&&(n.vars[this.processNodeObj.incomingConditionItemList[0].itemName]=this.processNodeObj.incomingConditionItemList[0].compareValue);else for(let i in this.userTaskListData){let a=this.userTaskListData[i],s=this.$refs[a];if(s=Array.isArray(s)?s[0]:s,s){let c=s.getValue();if(!c)e=!1;else{if(this.processNodeObj.nodeType=="exclusiveGateway")if(this.radioModel&&this.radioModel.id)this.radioModel.incomingConditionItemList&&this.radioModel.incomingConditionItemList.length>0&&(n.vars[this.radioModel.incomingConditionItemList[0].itemName]=this.radioModel.incomingConditionItemList[0].compareValue);else return this.processNodeObj.name&&ss.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.name} \u4E0B\u4E00\u8282\u70B9`),!1;else if(this.processNodeObj.nodeType=="inclusiveGateway")if(this.resultList&&this.resultList.length>0)this.resultList.forEach(p=>{p.incomingConditionItemList.length!==0&&p.incomingConditionItemList.forEach(m=>{m.itemName&&(n.vars[m.itemName]=m.compareValue)})});else return this.processNodeObj.name&&ss.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.name} `),!1;n.multiNodeParticipant={...n.multiNodeParticipant,...c.multiNodeParticipant},n.vars={...n.vars,...c.vars}}}}return e&&n},getLabel(e){let n="";return e.incomingConditionItemList.length>0&&(n=e.incomingConditionItemList[0].compareValue),n||e.name||"\u540E\u7EED\u8282\u70B9"}}},L4={};var YF=qt(UF,HF,VF,!1,WF,null,null,null);function WF(e){for(let n in L4)this[n]=L4[n]}const py=function(){return YF.exports}();var GF=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"sign-container",style:e.setDynamicVars},[i("div",{staticClass:"content-area"},[i("div",{staticClass:"canvas-container"},[i("canvas",{ref:"canvasRef",attrs:{id:"canvas-id","canvas-id":"canvas-id"},on:{mousemove:e.draw,mousedown:e.startDrawing,mouseup:e.finishDrawing}})]),i("div",{staticClass:"history"},[i("div",{staticClass:"img-grid",on:{click:function(a){return e.useHistory(0)}}},[e.historyPics[0]?i("el-image",{attrs:{src:e.historyPics[0]?e.historyPics[0].url:"",fit:"scale-down"}}):e._e()],1),i("div",{staticClass:"img-grid",on:{click:function(a){return e.useHistory(1)}}},[e.historyPics[1]?i("el-image",{attrs:{src:e.historyPics[1]?e.historyPics[1].url:"",fit:"scale-down"}}):e._e()],1),i("div",{staticClass:"img-grid",on:{click:function(a){return e.useHistory(2)}}},[e.historyPics[2]?i("el-image",{attrs:{src:e.historyPics[2]?e.historyPics[2].url:"",fit:"scale-down"}}):e._e()],1)])]),i("div",{staticClass:"actions-box"},[i("button",{staticClass:"commn-btn",on:{click:e.clearCanvas}},[e._v("\u6E05\u9664")]),i("button",{staticClass:"commn-btn",on:{click:e.saveSignature}},[e._v("\u4FDD\u5B58")]),i("button",{staticClass:"commn-btn",on:{click:e.undo}},[e._v("\u64A4\u9500")])])])},JF=[];const EZ="",KF={upload:e=>new Promise((n,i)=>{Xe.getAjaxObj().post("/file/upload",e).then(a=>{n(a)})})},XF={data(){return{ctx:null,signatureImage:"",actionHeight:0,isDrawing:!1,paths:[],currentPath:[],historyPics:[]}},methods:{startDrawing(e){this.isDrawing=!0,this.currentPath=[];const n=this.$refs.canvasRef.getBoundingClientRect(),i=(e.clientX-n.left)*(this.$refs.canvasRef.width/n.width),a=(e.clientY-n.top)*(this.$refs.canvasRef.height/n.height);this.ctx.beginPath(),this.ctx.moveTo(i,a),this.currentPath.push({x:i,y:a})},draw(e){if(!!this.isDrawing&&this.currentPath.length>0){const n=this.$refs.canvasRef.getBoundingClientRect(),i=(e.clientX-n.left)*(this.$refs.canvasRef.width/n.width),a=(e.clientY-n.top)*(this.$refs.canvasRef.height/n.height);this.ctx.lineWidth=2,this.ctx.strokeStyle="#000000",this.ctx.lineTo(i,a),this.ctx.stroke(),this.currentPath.push({x:i,y:a})}},undo(){this.paths.pop(),this.ctx.clearRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height);for(let e of this.paths)for(let n=0;n<e.length-1;n++){const{x:i,y:a}=e[n];n===0?(this.ctx.beginPath(),this.ctx.moveTo(i,a)):(this.ctx.lineTo(i,a),this.ctx.stroke())}},finishDrawing(e){this.currentPath.length>0&&this.paths.push(this.currentPath),this.isDrawing=!1},clearCanvas(){this.ctx.clearRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.signatureImage="",this.paths=[],this.$emit("saveSignature","",!1)},saveSignature(){if(this.paths.length==0){this.$emit("validateFail","\u8BF7\u7B7E\u5B57");return}this.signatureImage=this.$refs.canvasRef.toBlob(e=>{this.uploadImage(e)},"image/png",.95)},async uploadImage(e,n){this.loading=!0;const i=new FormData;i.append("file",e,n||`signature-${Date.now()}.png`);const a=await KF.upload(i);if(this.loading=!1,!a.success)return;let s=JSON.parse(localStorage.getItem("signaturesArr"))||[];s.unshift(a.data),this.historyPics=s.slice(0,3),localStorage.setItem("signaturesArr",JSON.stringify(this.historyPics)),this.$emit("saveSignature",a.data,!0)},useHistory(e){this.historyPics[e]&&this.$confirm("\u662F\u5426\u4F7F\u7528\u5386\u53F2\u7B7E\u5B57","\u64CD\u4F5C\u4FE1\u606F\u63D0\u9192",{confirmButtonText:"\u7EE7\u7EED",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{this.$emit("saveSignature",this.historyPics[e],!0)})}},computed:{setDynamicVars(){return{"--action-height":`${this.actionHeight}px`}}},watch:{setDynamicVars(e){let n=document.querySelector(".canvas-container");n&&(this.$refs.canvasRef.width=n.offsetWidth,this.$refs.canvasRef.height=n.offsetHeight-this.actionHeight)}},mounted(){document.querySelector(".actions-box").offsetHeight?this.actionHeight=document.querySelector(".actions-box").offsetHeight:setTimeout(()=>{this.actionHeight=document.querySelector(".actions-box").offsetHeight},200),this.ctx=this.$refs.canvasRef.getContext("2d"),localStorage.getItem("signaturesArr")?this.historyPics=JSON.parse(localStorage.getItem("signaturesArr")):this.historyPics=[]}},z4={};var ZF=qt(XF,GF,JF,!1,$F,"9b1b2fcc",null,null);function $F(e){for(let n in z4)this[n]=z4[n]}const qF=function(){return ZF.exports}();var e9=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[e.param.ProcessInsObj.processDefId!="obj_94014ede99b6495d8f6d5977314faa15"?[i("el-form-item",{attrs:{label:"\u5FEB\u6377\u56DE\u590D"}},[i("el-radio-group",{model:{value:e.commentMsg,callback:function(a){e.commentMsg=a},expression:"commentMsg"}},[i("el-radio",{attrs:{label:"\u540C\u610F"}},[e._v("\u540C\u610F")]),e.param.showAsPlanned?i("el-radio",{attrs:{label:"\u5982\u62DF"}},[e._v("\u5982\u62DF")]):e._e(),i("el-radio",{attrs:{label:"\u5DF2\u9605"}},[e._v("\u5DF2\u9605")])],1)],1),e.param.showCommIdea?i("el-form-item",[i("commIdea",{ref:"commIdea",on:{change:function(a){return e.commentMsg=a}}})],1):e._e(),i("el-form-item",{attrs:{label:"\u5BA1\u6279\u610F\u89C1",rules:[{required:e.param.commentMsgRequired,message:"\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u4E3A\u7A7A"}]}},[i("el-input",{staticClass:"formInput",attrs:{rows:5,maxlength:"200","show-word-limit":"",type:"textarea",resize:"none",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"},model:{value:e.commentMsg,callback:function(a){e.commentMsg=a},expression:"commentMsg"}}),e.param.showCommIdea?i("div",{staticClass:"add-idea"},[i("span",{on:{click:function(a){return e.$refs.commIdea.addIdea(e.commentMsg)}}},[e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]):e._e()],1)]:e._e(),e._t("file"),e.param.nodeLoading&&!e.param.ProcessInsObj.taskParentId?[i("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9",size:"normal"}},[i("b",{staticStyle:{"font-size":"16px"}},[e._v("\u8282\u70B9\u52A0\u8F7D\u4E2D\uFF0C\u8BF7\u7A0D\u540E......")])])]:e.param.ProcessInsObj.taskParentId?e._e():[e.param.nextTaskNode&&e.param.nextTaskNode.id&&e.param.nextTaskNode.nodeType!="parallelGateway"&&e.param.nextTaskNode.nodeType!="exclusiveGateway"?[e.param.nextTaskNode.nodeType!="endEvent"?[i("userTask",{key:e.param.nextTaskNode.id,ref:e.setItemRef(e.param.nextTaskNode.id),attrs:{personType:e.param.nextTaskNode.personType||"",personEntity:{},"process-node":Object.assign({},e.param.nextTaskNode,{REQUIRED:!(e.param.nextTaskNode.setPersonnel==!0&&e.param.nextTaskNode.assignees&&e.param.nextTaskNode.assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]},on:{complete:e.complete}})]:[i("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0"}},[i("b",{staticStyle:{"font-size":"16px"}},[e._v("\u7ED3\u675F\u4E8B\u4EF6")])])]]:e.param.nextTaskNode.nodeType=="exclusiveGateway"&&e.param.outGatewayUserTaskModel&&e.param.outGatewayUserTaskModel.length>0?e._l(e.param.outGatewayUserTaskModel,function(a){return i("userTask",{key:a.id,ref:e.setItemRef(a.id),refInFor:!0,attrs:{personType:e.param.personType,personEntity:e.param.personEntity,processNode:Object.assign({},a,{pType:e.param.nextTaskNode.nodeType,REQUIRED:!(a.setPersonnel==!0&&a.assignees&&a.assignees.length>0)})},on:{complete:e.complete}})}):e.param.outGatewayUserTaskModel&&e.param.outGatewayUserTaskModel.length>0?e._l(e.param.outGatewayUserTaskModel,function(a){return i("userTask",{key:a.id,ref:e.setItemRef(a.id),refInFor:!0,attrs:{personType:e.param.personType,personEntity:e.param.personEntity,processNode:Object.assign({},a,{REQUIRED:!(a.setPersonnel==!0&&a.assignees&&a.assignees.length>0)})},on:{complete:e.complete}})}):e.param.nextTaskNode.nodeType=="exclusiveGateway"&&e.param.nextTaskNode.branches&&e.param.nextTaskNode.branches.length==1?[e.param.nextTaskNode.nodeType!="endEvent"?[e.param.nextTaskNode.branches[0].nodeInfoDTO&&e.param.nextTaskNode.branches[0].nodeInfoDTO.nodeType!="endEvent"?i("userTask",{key:e.param.nextTaskNode.branches[0].nodeInfoDTO.id,ref:e.setItemRef(e.param.nextTaskNode.branches[0].nodeInfoDTO.id),attrs:{personType:e.param.nextTaskNode.branches[0].nodeInfoDTO.personType||"",personEntity:{},"process-node":Object.assign({},e.param.nextTaskNode.branches[0].nodeInfoDTO,{REQUIRED:!(e.param.nextTaskNode.branches[0].nodeInfoDTO.setPersonnel==!0&&e.param.nextTaskNode.branches[0].nodeInfoDTO.assignees&&e.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]},on:{complete:e.complete}}):!e.param.nextTaskNode.branches[0].nodeInfoDTO&&e.param.nextTaskNode.branches[0].nodeType!="endEvent"?i("userTask",{key:e.param.nextTaskNode.branches[0].id,ref:e.setItemRef(e.param.nextTaskNode.branches[0].id),attrs:{personType:e.param.nextTaskNode.branches[0].personType||"",personEntity:{},"process-node":Object.assign({},e.param.nextTaskNode.branches[0],{REQUIRED:!(e.param.nextTaskNode.branches[0].setPersonnel==!0&&e.param.nextTaskNode.branches[0].assignees&&e.param.nextTaskNode.branches[0].assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]},on:{complete:e.complete}}):[i("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0"}},[i("b",{staticStyle:{"font-size":"16px"}},[e._v("\u7ED3\u675F\u4E8B\u4EF6")])])]]:[i("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0"}},[i("b",{staticStyle:{"font-size":"16px"}},[e._v("\u7ED3\u675F\u4E8B\u4EF6")])])]]:e.param.nextTaskNode.nodeType=="exclusiveGateway"&&e.param.nextTaskNode.branches&&e.param.nextTaskNode.branches.length>1?[e.param.nextTaskNode.nodeType!="endEvent"?[i("userTask",{key:e.param.nextTaskNode.id,ref:e.setItemRef(e.param.nextTaskNode.id),attrs:{personType:e.param.nextTaskNode.personType||"",personEntity:{},"process-node":Object.assign({},e.param.nextTaskNode,{REQUIRED:!(e.param.nextTaskNode.setPersonnel==!0&&e.param.nextTaskNode.assignees&&e.param.nextTaskNode.assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]},on:{complete:e.complete}})]:[i("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0"}},[i("b",{staticStyle:{"font-size":"16px"}},[e._v("\u7ED3\u675F\u4E8B\u4EF6")])])]]:e.param.nextTaskNode.nodeType=="parallelGateway"?e._l(e.param.nextTaskNode.branches,function(a){return i("userTask",{key:a.id,ref:e.setItemRef(a.id),refInFor:!0,attrs:{personType:e.param.personType||"",personEntity:e.param.personEntity||{},processNode:Object.assign({},a,{REQUIRED:!(a.setPersonnel==!0&&a.assignees&&a.assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]},on:{complete:e.complete}})}):e._e()],e._t("form"),i("el-dialog",{attrs:{title:"\u7B7E\u5B57",visible:e.signVisible,"append-to-body":"",width:"800px","close-on-click-modal":!1,top:"4vh","align-center":""},on:{"update:visible":function(a){e.signVisible=a},closed:e.closeSign},model:{value:e.signVisible,callback:function(a){e.signVisible=a},expression:"signVisible"}},[i("div",{staticClass:"sign-container"},[i("TopSign",{on:{saveSignature:e.handleSignature,validateFail:e.noticeFail}})],1)])],2)},t9=[];const CZ="";var Ul=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{Ul=e});const n9={components:{staffTree:ba,userTask:py,commIdea:fy,TopSign:qF},props:{param:Object},data(){return{nextTaskObj:{},commentMsg:"",targetUser:[],userTaskListData:{},outGatewayUserTaskModel:this.param.outGatewayUserTaskModel,Enum:Np,signVisible:!1,digitalSignature:"",confirmPreposition:!1,confirmLoading:()=>{}}},mounted(){this.param.ProcessInsObj.processDefId=="obj_94014ede99b6495d8f6d5977314faa15"&&(this.commentMsg="\u540C\u610F")},computed:{signRequired(){return!!this.param.extendedProperties.find(n=>n.name=="signature")}},methods:{complete(e){this.nextTaskObj=e},setItemRef(e){return this.userTaskListData[e]="userTask"+e,this.userTaskListData[e]},getProcessNode(e){let n={};return n.humanPerformerName=e.userTaskModelDTO.humanPerformer.name,n.id=e.id,n.loopCardinality=e.loopCardinality||e.userTaskModelDTO.loopCardinality,n.name=e.userTaskModelDTO.name,n.type=e.type,n.routeTxt=e.userTaskModelDTO.routeTxt,n.participantList=e.userTaskModelDTO.participantList,n.taskNode=this.param.taskNode,n},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u8D26\u6237"||e=="\u56FA\u5B9A\u5355\u4F4D"},getTreeData(e){if(this.param.nextTaskNode){if(e.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8")return e.userTaskModelDTO.routeTxt.departmentIds.map(n=>{let i={};return i.id=n.rangeId,i.leaf=!1,i.name=n.name,i.orgType=Wu.\u90E8\u95E8,i});if(e.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D")return e.userTaskModelDTO.routeTxt.companyIds.map(n=>{let i={};return i.id=n.rangeId,i.leaf=!1,i.name=n.name,i.orgType=Wu.\u4E3B\u4F53,i})}},getRes(){return{targetUser:this.targetUser}},confirm(e,n,i){if(Array.isArray(i)&&(this.param.attachment=i),this.param,this.userTaskListData,!this.commentMsg&&this.param.commentMsgRequired)return Ul.warning("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"),!1;if(this.commentMsg.length>200)return Ul.warning("\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u8D85\u8FC7200\u4E2A\u5B57"),!1;let a={taskId:this.param.taskInstId,processInstanceId:this.param.processInstId,commentMsg:this.commentMsg||" ",comment:this.commentMsg||" ",businessData:this.param.businessData,attachment:this.param.attachment};if(this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId){for(let g in this.userTaskListData){let y=this.userTaskListData[g];this.$refs[y];let O=this.$refs[y].$el?this.$refs[y]:this.$refs[y][0];O.getValue;let E=O.getValue();if(E&&E.vars&&this.param.incomingConditionItemList&&this.param.incomingConditionItemList.length>0&&this.param.incomingConditionItemList.forEach(S=>{E.vars[S.itemName]||(E.vars[S.itemName]="")}),!E&&this.nextTaskObj.type!="endEvent")return!1;let N=[];const _=this.param.nextTaskNode;_.setPersonnel?N=_.assignees||[]:N=(O.targetUserList||[]).map(S=>({id:S.id,name:S.name})),a.assignees=N,a.multiNodeParticipant={...a.multiNodeParticipant,...E.multiNodeParticipant},a.vars={...a.vars,...E.vars}}let s=this.param.nextTaskNode&&this.param.nextTaskNode.nodeType!="endEvent"&&(!this.param.nextTaskNode.branches||this.param.nextTaskNode.branches.length<=0),c=this.param.nextTaskNode&&this.param.nextTaskNode.nodeType!="endEvent"&&this.param.nextTaskNode.branches&&this.param.nextTaskNode.branches.length==1&&this.param.nextTaskNode.branches[0].nodeInfoDTO&&this.param.nextTaskNode.branches[0].nodeInfoDTO.nodeType!="endEvent",p=this.param.nextTaskNode&&this.param.nextTaskNode.nodeType!="endEvent"&&this.param.nextTaskNode.branches&&this.param.nextTaskNode.branches.length==1&&!this.param.nextTaskNode.branches[0].nodeInfoDTO&&this.param.nextTaskNode.branches[0].nodeType!="endEvent";if(s||c||p){if(this.param.nextTaskNode.nodeType=="exclusiveGateway"&&this.param.nextTaskNode.branches&&this.param.nextTaskNode.branches.length==1&&this.param.nextTaskNode.branches[0].nodeInfoDTO&&this.param.nextTaskNode.branches[0].nodeInfoDTO.setPersonnel==!0&&this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees&&this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.length>0)a.multiNodeParticipant={...a.multiNodeParticipant,[this.param.nextTaskNode.branches[0].nodeInfoDTO.id]:this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.map(g=>g.id)};else if(!Object.keys(a.multiNodeParticipant).length&&this.nextTaskObj.type!="endEvent")return Ul.warning("\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9"),!1}}if(a.pass=!0,Date.now()&&this.param,this.param.getVars){let s=this.param.getVars();if(s===!1&&this.nextTaskObj.type!="endEvent")return!1;a.vars={...a.vars,...s}}if(this.signRequired,this.signRequired){this.confirmPreposition=e,this.confirmLoading=n,this.signVisible=!0;return}n(),e?e().then(s=>{Xe.tis.complete(a).then(c=>{c.code==bt.success?(s&&s(),this.$emit("success")):this.$emit("fail",c.msg)}).catch(()=>{this.$emit("fail","")})}).catch(()=>{this.$emit("fail","")}):Xe.tis.complete(a).then(s=>{s.code==bt.success?this.$emit("success"):this.$emit("fail",s.msg)}).catch(s=>{this.$emit("fail",s.response?s.response.data?s.response.data.msg||s.response.data.message:"":s.message||s.msg||"")})},confirmWithSign(){let e={taskId:this.param.taskInstId,processInstanceId:this.param.processInstId,commentMsg:this.commentMsg||" ",comment:this.commentMsg||" ",businessData:this.param.businessData,digitalSignature:{name:this.param.digitalSignature.name,url:this.param.digitalSignature.url},attachment:this.param.attachment};if(this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId){for(let c in this.userTaskListData){let p=this.userTaskListData[c],m=this.$refs[p].$el?this.$refs[p]:this.$refs[p][0];m.getValue;let g=m.getValue();if(!g&&this.nextTaskObj.type!="endEvent")return!1;e.multiNodeParticipant={...e.multiNodeParticipant,...g.multiNodeParticipant},e.vars={...e.vars,...g.vars}}let n=this.param.nextTaskNode&&this.param.nextTaskNode.nodeType!="endEvent"&&(!this.param.nextTaskNode.branches||this.param.nextTaskNode.branches.length<=0),i=this.param.nextTaskNode&&this.param.nextTaskNode.nodeType!="endEvent"&&this.param.nextTaskNode.branches&&this.param.nextTaskNode.branches.length==1&&this.param.nextTaskNode.branches[0].nodeInfoDTO&&this.param.nextTaskNode.branches[0].nodeInfoDTO.nodeType!="endEvent",a=this.param.nextTaskNode&&this.param.nextTaskNode.nodeType!="endEvent"&&this.param.nextTaskNode.branches&&this.param.nextTaskNode.branches.length==1&&!this.param.nextTaskNode.branches[0].nodeInfoDTO&&this.param.nextTaskNode.branches[0].nodeType!="endEvent";if(n||i||a){if(this.param.nextTaskNode.nodeType=="exclusiveGateway"&&this.param.nextTaskNode.branches&&this.param.nextTaskNode.branches.length==1&&this.param.nextTaskNode.branches[0].nodeInfoDTO&&this.param.nextTaskNode.branches[0].nodeInfoDTO.setPersonnel==!0&&this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees&&this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.length>0)e.multiNodeParticipant={...e.multiNodeParticipant,[this.param.nextTaskNode.branches[0].nodeInfoDTO.id]:this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.map(c=>c.id)};else if(!Object.keys(e.multiNodeParticipant).length&&this.nextTaskObj.type!="endEvent")return Ul.warning("\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9"),!1}if(this.param.getVars){let c=this.param.getVars();if(c===!1&&this.nextTaskObj.type!="endEvent")return!1;e.vars={...e.vars,...c}}}e.pass=!0,this.confirmLoading(),this.confirmPreposition?this.confirmPreposition().then(n=>{Xe.tis.complete(e).then(i=>{i.code==bt.success?(n&&n(),this.$emit("success")):this.$emit("fail",i.msg)}).catch(()=>{this.$emit("fail","")})}).catch(()=>{this.$emit("fail","")}):Xe.tis.complete(e).then(n=>{n.code==bt.success?this.$emit("success"):this.$emit("fail",n.msg)}).catch(n=>{this.$emit("fail",n.response?n.response.data?n.response.data.msg||n.response.data.message:"":n.message||n.msg||"")})},handleSignature(e,n){this.param.digitalSignature=e,n&&(this.signVisible=!1,this.confirmWithSign())},closeSign(){this.signVisible=!1},noticeFail(e){Ul.warning(e)}}},Q4={};var i9=qt(n9,e9,t9,!1,r9,"7f9f1489",null,null);function r9(e){for(let n in Q4)this[n]=Q4[n]}const hy=function(){return i9.exports}();var a9=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[e.param.showCommIdea?i("el-form-item",{attrs:{label:"\u5E38\u7528\u610F\u89C1"}},[i("commIdea",{ref:"commIdea",on:{change:function(a){return e.commentMsg=a}}})],1):e._e(),i("el-form-item",{attrs:{label:"\u5BA1\u6279\u610F\u89C1",rules:[{required:!0,message:"\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u4E3A\u7A7A"}]}},[i("el-input",{attrs:{rows:5,type:"textarea",maxlength:"200","show-word-limit":"",resize:"none",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"},model:{value:e.commentMsg,callback:function(a){e.commentMsg=a},expression:"commentMsg"}}),e.param.showCommIdea?i("div",{staticClass:"add-idea"},[i("span",{on:{click:function(a){return e.$refs.commIdea.addIdea(e.commentMsg)}}},[e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]):e._e()],1),e._t("file"),e._t("form")],2)},o9=[];const kZ="";var H4=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{H4=e});const s9={components:{staffTree:ba,commIdea:fy},props:{param:Object},data(){return{commentMsg:""}},methods:{getRes(){return{commentMsg:this.commentMsg}},confirm(e,n){if(!this.commentMsg)return H4.warning("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"),!1;e&&e(),n();let i={taskId:this.param.taskInstId,processInstanceId:this.param.processInstId,commentMsg:this.commentMsg||" ",comment:this.commentMsg||" ",businessData:this.param.businessData};i.assignees=[],i.pass=!1,Xe.tis.complete(i).then(a=>{a.code==bt.success?this.$emit("success"):this.$emit("fail",a.msg)})}}},V4={};var l9=qt(s9,a9,o9,!1,c9,"02cb58a9",null,null);function c9(e){for(let n in V4)this[n]=V4[n]}const U4=function(){return l9.exports}();var u9=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[i("el-form-item",{attrs:{label:"\u9000\u56DE\u8282\u70B9",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9"}]}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"\u9000\u56DE\u8282\u70B9"},model:{value:e.nodeId,callback:function(a){e.nodeId=a},expression:"nodeId"}},e._l(e.nodesData,function(a){return i("el-option",{key:a.nodeId,attrs:{label:a.nodeName,value:a.nodeId}})}),1)],1),i("el-form-item",{attrs:{label:"\u9000\u56DE\u539F\u56E0",rules:[{required:!0,message:"\u9000\u56DE\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"}]}},[i("el-input",{attrs:{rows:5,maxlength:"200","show-word-limit":"",resize:"none",type:"textarea",placeholder:"\u9000\u56DE\u539F\u56E0"},model:{value:e.commentMsg,callback:function(a){e.commentMsg=a},expression:"commentMsg"}})],1),e._t("file"),e._t("form")],2)},d9=[];const SZ="";var my=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{my=e});const f9={components:{staffTree:ba},props:{param:Object},data(){return{commentMsg:"",nodeId:"",nodesData:[]}},mounted(){this.getReturnableNodes()},methods:{getReturnableNodes(){Xe.repository.backNodes({taskId:this.param.taskInstId}).then(e=>{e.code==bt.success&&(this.nodesData=(e.data||[]).filter(n=>!n.nodeId.includes("startEvent")))})},getRes(){return{commentMsg:this.commentMsg,nodeId:this.nodeId}},confirm(e,n){if(!this.nodeId)return my.warning("\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9"),!1;if(!this.commentMsg)return my.warning("\u8BF7\u8F93\u5165\u9000\u56DE\u539F\u56E0"),!1;e&&e(),n(),Xe.tis.rollback(this.param.taskInstId,this.nodeId,this.commentMsg).then(i=>{i.code==bt.success?this.$emit("success"):this.$emit("fail",i.msg)})}}},Y4={};var p9=qt(f9,u9,d9,!1,h9,"11b0e88d",null,null);function h9(e){for(let n in Y4)this[n]=Y4[n]}const W4=function(){return p9.exports}();var m9=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[i("el-form-item",{attrs:{label:"\u9009\u62E9\u64CD\u4F5C\u7C7B\u578B",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u64CD\u4F5C\u7C7B\u578B"}]}},[i("el-radio-group",{staticStyle:{width:"100%"},model:{value:e.type,callback:function(a){e.type=a},expression:"type"}},e._l(e.nodesData,function(a){return i("el-radio",{key:a.type,attrs:{label:a.type}},[e._v(e._s(a.label))])}),1)],1),i("el-form-item",{attrs:{label:"\u64CD\u4F5C\u8BF4\u660E"}},[i("div",[i("span",{staticStyle:{color:"red","font-weight":"600"}},[e._v("\u64A4\u9500")]),e._v("\uFF1A\u64A4\u9500\u7EC8\u6B62\u6B64\u6D41\u7A0B ")]),i("div",[i("span",{staticStyle:{color:"red","font-weight":"600"}},[e._v("\u64A4\u56DE")]),e._v("\uFF1A\u64A4\u56DE\u5230\u53D1\u8D77\u4EBA\u91CD\u65B0\u63D0\u4EA4\uFF0C\u82E5\u5F53\u524D\u6D41\u7A0B\u4E0D\u5B58\u5728\u53D1\u8D77\u4EBA\u8282\u70B9\uFF0C\u529F\u80FD\u540C\u64A4\u9500 ")])]),e._t("file"),e._t("form")],2)},g9=[];const DZ="";var G4=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{G4=e});const A9={components:{staffTree:ba},props:{param:Object},data(){return{commentMsg:"",nodeId:"",type:"",nodesData:[{type:"wf_withdraw_end",label:"\u64A4\u9500"},{type:"wf_withdraw_start",label:"\u64A4\u56DE"}]}},mounted(){this.getReturnableNodes()},methods:{getReturnableNodes(){},getRes(){return{commentMsg:this.commentMsg,nodeId:this.nodeId}},confirm(e,n){if(!this.type)return G4.warning("\u8BF7\u9009\u62E9\u64CD\u4F5C\u7C7B\u578B"),!1;e&&e(),n(),Xe.tis.withdrawTask({taskId:this.param.taskInstId,withdrawType:this.type}).then(i=>{i.code==bt.success?this.$emit("success"):this.$emit("fail",i.msg)})}}},J4={};var v9=qt(A9,m9,g9,!1,b9,"3e4dbd02",null,null);function b9(e){for(let n in J4)this[n]=J4[n]}const _9=function(){return v9.exports}();var y9=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[i("el-form-item",{attrs:{label:"\u6284\u9001\u4EBA\u5458",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6284\u9001\u4EBA\u5458"}]}},[i("staffTree",{ref:"staffTree",attrs:{personType:e.param.personType,personEntity:e.param.personEntity,multiple:"",max:5e3,disable:e.isOperLoading},model:{value:e.targetUser,callback:function(a){e.targetUser=a},expression:"targetUser"}})],1),e._t("file"),e._t("form")],2)},x9=[];const IZ="";var K4=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{K4=e});const w9={components:{staffTree:ba},props:{param:Object,isOperLoading:!1},data(){return{reason:"",targetUser:[]}},methods:{getRes(){return{targetUser:this.targetUser}},confirm(e,n){if(!this.targetUser||this.targetUser.length==0)return K4.warning("\u8BF7\u9009\u62E9\u6284\u9001\u4EBA"),!1;let i=this.targetUser.join(" ")||"";e&&e({userList:this.$refs.staffTree.userList}),n(),Xe.tis.createCCTask({processInstId:this.param.processInstId,participant:i,taskId:this.param.taskInstId,title:""}).then(a=>{a.code==bt.success?this.$emit("success",!1):this.$emit("fail",a.msg)})}}},X4={};var E9=qt(w9,y9,x9,!1,C9,"3881f760",null,null);function C9(e){for(let n in X4)this[n]=X4[n]}const Z4=function(){return E9.exports}(),$4=Object.freeze(Object.defineProperty({__proto__:null,counterSign:F4,delegateTask:j4,complete:hy,cancel:U4,roolback:W4,withdrawTask:_9,ccTask:Z4},Symbol.toStringTag,{value:"Module"})),q4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANQAAACSCAYAAAA93+RpAAAABHNCSVQICAgIfAhkiAAACiVJREFUeF7tnVtsFFUYgH/aqAWrLbTloiiKFxQS0AAJ8QHx0Xh5MBo1+mCMxkt88QF5EgM+GUx80ChGYzAxGqPxwRuPKibGG94SSCSG0IjIzSLSy7alxXO6DJ1uZ/f8s3tmdrvnm4QEyn/OzHzn//qfOTOzO+uM2YQNAhDwQmAWQnnhSCcQmCCAUCQCBDwSQCiPMOkKAghFDkDAIwGE8giTriCAUOQABDwSQCiPMOkKAghFDkDAIwGE8giTriCAUOQABDwSQCiPMOkKAghFDkDAIwGE8giTriCAUOQABDwSQCiPMOkKAghFDkDAIwGE8giTriCAUOQABDwSQCiPMOkKAghFDkDAIwGE8giTriCAUOQABDwSQCiPMOkKAghFDkDAIwGE8giTriCAUBVyYGCgIIXhYZkJn63b+9dhGTefAbz0soXSNa+DzK4TAYQqA/7Ev6dkbGy8TsOSfrcHjFCDg4WJhgt65smyqy5L3wktaiaAUAkIB0xiDg0N1ww3zw7iQiFVnuSn7guhEtj39f1npk8z6zsUSoVCqvpIhVAJ3I//c7I+o1HDXpOEQqoagFbZFKGaXCh7evO758p1V19eZYrQLA0BhApAKKRKo0RtsQgViFBIVZso2tYIFZBQSKXVovo4hApMKKSqXhZNS4QKUCik0qhRXQxCBSoUUlUnjKsVQgUsFFK59Ej//wgVuFBIlV6aSi0QCqEmCHDz149YCIVQ5wggVe1SIRRCTSGAVLVJhVAINY0AUlUvFUIhVGL2IFV1UiEUQpXNHKRKLxVCIVTFrEGqdFIhFEI5MwapnIjOBSAUQqmyBalUmAShEEqXKdz8VXFCKIRSJUoURKWqjAuhECqVUDYYqcojQ6gmEarvxH9y+HhfajmqbbD8miXS3dVZbfOmbYdQTSLU2Pi47O89JKOnT+eSrLPb2mTtDcty2ddM2glCNYlQ9jRGRk/LoaPHz30kc9aJuH7dqqx3MeP6R6gmEio6laHhERk2f7KuVtebaR/bVAII1YRC5ZXk3V18y0cpa4RCqKr9Q6jp6BAKoRCqagIIpUI3E78sQHVinoOoUAilSimEUmEy96G4huIaSpErCKWAZEIQigqlyhSEUmFCqARMLEqwKKGzJyGKCkWFUiUPFUqFiQpFhdIlCkLpOFGhqFCqTEEoFSYqFBXKnSgj+36Tf0/2S8vSFe7ggCPG9++Rzo52Of/alQFToEJVHHwr09+P3yptz74prStvIlEqEBj77RspPP+ILNq+E6linFjlOwsjkmm8/6TMeeEDhHL8OrFCDW66R1raO5AKoaZmS1wm+z8I5S7OkVA2EqkmeQVfoUplQii3TDYiLhRSIdQEgSSZEKo6oZCqyC3YClXYvUuObLxf7DVT6caUzy1VaYWKWtjp34Jt70nb6vXuTpowIkih+j99R45tfbzscCKUO9PLCRW17Nm8Xdpvf9DdUZNFBCeUSyamfLoMdwllewlRquCEKnz0pjNjCnMvkVmz251xIQecGeqXthOHnAja7nrEGdNMAcEJJffe2Ezj1/jn8v7PjX+MHo8QoTzCpKsEAgjV5GlBhcp3gBEqX9657w2h8kWOUPnyzn1vWQl1j1mGv/uxyqdzzFzEH/hdZOe7Int+nBq74U6Rm+8o3/6oaRu1//HL8nGufpJafvWJyJcfZzMUCJUN14bptZ5CxSHYBH7tucmfaISMoq1Yb78o8sMX07Gm6Sdq/eHrIh9sz2aIECobrg3Ta6MIZYHEE7kaEayQpZWlmn4Qylt6ssrnC2U8kcslaM8lIk9uFVm+urjXgVMiD599RCfefu9ukS0l928uvEhk7S1mWmmmlj2LJo96033FaWS0xfvp3Wcq2Tb3GUbTSXdk+ggqVHpmM6pFHhWq0m98K8ZbuyaRbX20eD3lEipqYdtbKddsKP5kr2m7xfSRJFSSmHkPFkLlTTzn/dVbKHu68SRLK5RtbyvdK58lVymtmHlhR6i8SNdpP/UWasUakc1vTJ78U7cVV+/SimCrVLQqWO5ajAqVe5JxDeULeVwIu1DwVcky9BXm6zOXmD/2OshO2yama7FrpbRC2eXxJ7YU+7HL6NueLv493o+9RuuNXV+VO1eWzX1lQYDvQ+VRoTTDM9hfXHiIFhTSChWvdOXE1ByHjWGVT0vKGUeFciJSBqRZrj72t8iLpqKUW53TTNUQSjkw+YYhlC/ecaGsMKVTvmg/dlWu9CmJ0qmaRijNlI9lc1+jq+4HodSoHIFpp2yl3aVtz6KEr5Hz2g9C+cKZVohahLKLGi+bZfNocSN+c7fW4/DFI+qHZXPfRBusvzwWJTRTtlqEsqt7dspnNzute+beyd4Qqq4JR4Xyhb/WRNa0t09H3PaAeXTJ3MuKtujGcPRvTT++zlnTDxVKQ2kGx8yECqXFa+8fvbp5ajRCaellEkeF8oW11kROs+xuj/lz805V0oOvtR6HLx5cQ/km2aD9ZVWh7H2haCpmHyVK+8KeRih7M9i+A2WX5JOW3i3yiRcMz15f2ftcmqfNsxwqpnxZ0m2AvrMSqgFOreEOwX4U246vG+6wsjyg8KZ89pm3Sq+QZ0k7tL7tIsrGl4I66/CEslMluzLGlj0B+1S9nQoHtIUnlB1ce32zw7zJaj79lC0DAnaq99DGyXtlGeyiUbsMUyg7Gnbh4HtzgT9oXnEo2QYHC406Xg11XHPmtE0/njnmKQ67MBI9xdFQR5z9wYQrVAW2fAu8LvG6uzp0gQFFIVTCYCOUzgCEms4JoRBKZ09CFEIhlCp5qFAqTIJQCKXKFIRSYUKoBExM+Zjy6exhyqfihFAIpUqUpCCmfEz5VMnDlE+FiSkfUz5doiCUjhMVigqlyhSEcmMaP3NG5nd3ugMDi+AaKmHA//zrqMxuuyCwVEh3uoXCsCy+dH66RgFEI1TCIP+y5w9ZvLAngOGv/hQPHDwsa1aZj5Zmm0IAoRISYte3v0r3vE7pmnuxtLa0kDIxAnaqd+RYn5w4eUrWr1sFmxICCFVGKPvj1tZW6exolwvOO4/EMQRGRkeNSP0yNjY2wQOhWJRQifHdT3tleGRUFRtq0IXm1Y3VK5nylY4/FSrBiF5zfdB78EiorqjOe8niBbJk8UJVbEhBCJUw2qfNlOZXszAxwIuGiS7Ya8sVy64MyRP1uSJUBVS2Uh0+2sf07ywjO83rntdBZaqQMwil/t1DIATcBBDKzYgICKgJIJQaFYEQcBNAKDcjIiCgJoBQalQEQsBNAKHcjIiAgJoAQqlREQgBNwGEcjMiAgJqAgilRkUgBNwEEMrNiAgIqAkglBoVgRBwE0AoNyMiIKAmgFBqVARCwE0AodyMiICAmgBCqVERCAE3AYRyMyICAmoCCKVGRSAE3AQQys2ICAioCSCUGhWBEHATQCg3IyIgoCaAUGpUBELATQCh3IyIgICaAEKpUREIATcBhHIzIgICagL/A5aq8pai8ohoAAAAAElFTkSuQmCC",e3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAABKCAYAAADjcueTAAAFw0lEQVR4Xu2c3XHbRhDH/wclQ2UITZwKLFcQqQKLFViqIHQFpl5i8snKE6m8WK4gVAWmKzBVgckKolQQcgjGTmxzMwsQEL5xd/ggiDEeReAOv9u9xe7d/yRQxPW7dYIN3gI4LqI5xTamEBjjpXmr8pxQuTn2Xhua3gPiUe628jUwQ6vdwaVYyDSTD3xodSHwh0xHFd0zQ988lelLH7x+0A4v4TkG5jgLXg88C5qog8HRNKvz3L87sYUhf/a1JWV1dfAsaHvUKwLnvhz4D4FB7JuZXJk3BBocWS8A3EQtRUtA/Oj9vUpw7nRkUXngI4uDWDcCzXMK1IUQT5sHngbNgWS4mjYPPBaaliDR86Jn48CToA1xhl/NmefajQF/TY/wL89pcR6c07REGJpvaAS4Db1+D+BECroR4DrQew+eCI05DHQDczr8TRut/g4UKXvzHU+DbrXPUiueuExOInPKna76G9BKYNJraY7caWUel6LBWEB0h8HRWaFgWY1pgY8sznNDgSyrp5Tf49ycPerzJ38hodbB94fzVK/TBA/muWqvFAr8MSXh8OMxxJcP+RYqaAH67hSDH+5jX29n4IS/YIgeXrYnkRcbrq4gxKs842k/S/QbBkdX5YGzq6pcB2KRGvFlyliZ/tIWGAqxeBkR+drqYUOhLFCG1rtnmmht7bJUY7SUXrmKmzUYhE4RXwWLUh/fwLfDJTFdv1nccy2J0VJywypuLt3VORkxvj4FRHVbRcTJy8G7xOSl9KheSAama35awBCdxHyhVIsXlYFps5eduSXN8eHqDELwysxuLiEuYlPi0l2dO7hen4M2XRCq2xkVWIDEJHU/LOjqc/TNzGqzaZ+zObIWTrb+2iRwaWhmbwo4iwLSl8hCkakZ4LzCI6mEcPmbAa7xnVEDtzO3zS8a/eR7ZGPcpmZuGq3Lg8dtwGt0qP1IwWv18uB1ztw0RlMFfLeZ284szqPKaStQ7WaBY01ec4sXE3FE/2/9LFAxckVn4C5tEVTe4hruVOojTsx5nWGIewhcxake9xP8ev0KRPFr7PGjHVE97h94WKXBe3UQYxy2J14S4yyYnGODHgQeb8fiHnTQcT+L+wUegKYlhNFNLFVdyw+tMQTc3MOz/P6Ah6HjJClJQWVksTaPNXreVpQaOEd1w3jQs5UTveYRK2ZB25H9nxcg4i8OB7RpJKB5Oh1nA1IevJoVmGhpmQWdLBufotW+eJj3vhUkgUsV8GJ2PZO9pEhot5c36Js9r8uhxd7wGKB38uDl5ur5oQm3GJhdOKvBM09b619DfJCl3cuD25nbx2PgS1TPmneuH5o3gXpa1b1daPc9/MGs1f7J5+6e16qB5wWUeT4vtCNkYnmLs+nht/hoNQHEM/5zvcCLgX4QJ0Y94U97QIju6gNeNDRoiZZ5HMjmxFcG5+tNPcDLgA4nOKPVW0+bS9TZPXgV0H4dzlaHt1vwqqHZyQ2ccp2+O/CAGipGDh7OyMKBKiJDjWkjrLjyKad2B27nBVw50XlEA18ydD0+Z5wU+RWLFUDXA9yf1FQEXT/wkeUkGHbdvM293YHJOafDSWN0jm+jnkx2Weg9rH4ke/EwCu125K2mqAWyuPdkcNak+yTVNEHLfK66CZd7EDz5eCjjCjfMBYiBcfAUVOhUs8TBWgH/SOd+e9tc6UKdpD5cVUPYxbPeKSoSDtbgCc8L8Nz5tJ75ViOzupL4XQPeA08R+YR7jn6nnZpc4nIO1TrRdBo4GCvxcPotivCqFs8B7UT1YNS8sg/I+k8G5xoABXivVqYFWuYTpQNAqtMjAO4HdFZailEvZgn53X5tRRXxP9jgODFB/+gidsxzWtptU+38eC7rSzwcPKo5hYFLL3q7ogT/1pGGpesJ7iQpvCsaOrFEi5jDPFLRO2m462VxfkvnK3Pj2/YJvnvawR8Jp6qnxcNxxtn4OwGI480UhjHL3CuThP8fruFfjjCGtMkAAAAASUVORK5CYII=";var k9=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("ul",{staticClass:"file-wrap"},[e._l(e.fileList,function(a,s){return i("li",{key:s,staticClass:"file-item"},[e.isImage(a)?i("section",{class:[e.isText?"TextWrapper":"image-wrapper"]},[i("el-image",{ref:"images",refInFor:!0,attrs:{src:a,"preview-src-list":e.previewSrcList}}),i("div",{staticClass:"action-area"},[i("span",{staticClass:"action-preview",on:{click:function(c){return e.onPreview(s)}}},[i("i",{staticClass:"el-icon-zoom-in",attrs:{title:"\u9884\u89C8"}})]),e.isDisabled?e._e():i("span",{staticClass:"action-upload",on:{click:function(c){return e.selectFile(s)}}},[i("i",{staticClass:"el-icon-upload2",attrs:{title:"\u4E0A\u4F20"}})]),e.isDisabled?e._e():i("span",{staticClass:"action-delete",on:{click:function(c){return e.onDelete(s)}}},[i("i",{staticClass:"el-icon-delete",attrs:{title:"\u5220\u9664"}})])])],1):e.isDw(a)?i("section",{staticClass:"image-wrapper"},[e.isPdf(a)?i("div",{staticClass:"el-image"},[i("img",{staticClass:"el-image__inner",attrs:{src:q4,alt:""}})]):i("div",{staticClass:"el-image el-attach"},[i("img",{staticClass:"el-image__inner",attrs:{src:e3,alt:""}})]),i("div",{staticClass:"action-area"},[i("span",{staticClass:"action-preview",on:{click:function(c){return e.onDownload(s)}}},[i("i",{staticClass:"el-icon-download",attrs:{title:"\u4E0B\u8F7D"}})]),e.isDisabled?e._e():i("span",{staticClass:"action-upload",on:{click:function(c){return e.selectFile(s)}}},[i("i",{staticClass:"el-icon-upload2",attrs:{title:"\u4E0A\u4F20"}})]),e.isDisabled?e._e():i("span",{staticClass:"action-delete",on:{click:function(c){return e.onDelete(s)}}},[i("i",{staticClass:"el-icon-delete",attrs:{title:"\u5220\u9664"}})])])]):a?i("section",{staticClass:"image-wrapper"},[e.isPdf(a)?i("div",{staticClass:"el-image"},[i("img",{staticClass:"el-image__inner",attrs:{src:q4,alt:""}})]):i("div",{staticClass:"el-image el-attach"},[i("img",{staticClass:"el-image__inner",attrs:{src:e3,alt:""}})]),i("div",{staticClass:"action-area"},[i("span",{staticClass:"action-preview",on:{click:function(c){return e.onDownload(s)}}},[i("i",{staticClass:"el-icon-download",attrs:{title:"\u4E0B\u8F7D"}})]),i("span",{staticClass:"action-preview",on:{click:function(c){return e.onPreview(s)}}},[i("i",{staticClass:"el-icon-zoom-in",attrs:{title:"\u9884\u89C8"}})]),e.isDisabled?e._e():i("span",{staticClass:"action-upload",on:{click:function(c){return e.selectFile(s)}}},[i("i",{staticClass:"el-icon-upload2",attrs:{title:"\u4E0A\u4F20"}})]),e.isDisabled?e._e():i("span",{staticClass:"action-delete",on:{click:function(c){return e.onDelete(s)}}},[i("i",{staticClass:"el-icon-delete",attrs:{title:"\u5220\u9664"}})])])]):e._e(),!e.showFile&&e.showFileName?i("div",{attrs:{title:a.slice(a.lastIndexOf("&")+1)}},[i("div",{staticClass:"file_name"},[e._v(" "+e._s(a.slice(a.lastIndexOf("&")+1))+" ")])]):e._e(),e.showFile?i("div",{attrs:{title:a.slice(a.lastIndexOf("&")+1)}},[e._t("filename",function(){return[e.fullFileObject&&e.fullFileList[s].fileSize?i("div",{staticClass:"file_name",staticStyle:{"text-align":"center",height:"23px","line-height":"23px"}},[e._v(" "+e._s(e.fullFileList[s].fileSize>1024?(e.fullFileList[s].fileSize/(1024*1024)).toFixed(2):(e.fullFileList[s].fileSize/1024).toFixed(2))+" "+e._s(e.fullFileList[s].fileSize>1024?"M":"KB")+" ")]):e._e(),i("div",{staticClass:"file_name",staticStyle:{height:"25px","line-height":"25px"}},[e._v(" "+e._s(a.slice(a.lastIndexOf("&")+1))+" ")])]},{filename:a})],2):e._e()])}),e.showPlus?i("li",{staticClass:"file-item"},[i("div",{staticClass:"image-wrapper pointer",on:{click:function(a){return e.selectFile()}}},[i("el-icon",{attrs:{color:"#1389ff",size:"35"}},[i("Plus")],1)],1)]):e._e(),e.showEmpty?i("li",{staticClass:"empty-wrap"},[e._v("\u6682\u65E0\u6570\u636E")]):e._e()],2),e.remark!==""?i("div",{staticStyle:{color:"gray"}},[e._v(e._s(e.remark))]):e._e(),e.value?i("section",{staticClass:"value-wrap"}):e._e(),i("input",{ref:"file",staticClass:"file-input",attrs:{accept:e.acceptType,type:"file",multiple:e.multiple},on:{change:e.onUploadChange}})])},S9=[];const BZ="",gy={upload:e=>new Promise((n,i)=>{Xe.getAjaxObj().post("/file/upload",e).then(a=>{n(a)})})},D9={name:"JyrFileUpload",inject:{elForm:{default:""}},props:{acceptType:{type:String,default:""},showFileName:{type:Boolean,default:!0},value:{type:[String,Array],default:""},locked:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},fileMaxSize:{type:Number,default:200},hasFilename:{type:Boolean,default:!1},hasContainId:{type:Boolean,default:!1},fullFileObject:{type:Boolean,default:!1},isText:{type:Boolean,default:!1},viewCallBack:{type:Function},remark:{type:String,default:""},showFile:{type:Boolean,default:!1},limit:[String,Number]},data(){return{index:void 0,fileList:[],fullFileList:[],loading:!1}},computed:{previewSrcList(){return this.fileList.filter(e=>this.isImage(e))},showPlus(){return!this.isDisabled&&(this.multiple||this.fileList.length<1)},showEmpty(){return this.isDisabled&&this.fileList.length<1},isDisabled(){return this.locked||this.elForm&&this.elForm.disabled}},watch:{value(){this.composeFileList()}},created(){this.composeFileList()},methods:{async selectFile(){this.$refs.file.click()},onUploadChange(e){const n=e.target.files;if(this.limit!=-1&&n.length+this.fileList.length>this.limit)return this.$message.error("\u6700\u591A\u53EA\u80FD\u9009\u62E9"+this.limit+"\u4E2A\u6587\u4EF6"),!1;n.length;let i=this.fullFileList.map(a=>a.originFileName);for(let a=0;a<n.length;a++){const s=n[a];if(s.size==0)return this.$message.error("\u6587\u4EF6\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9"),!1;const c=1024*1024*this.fileMaxSize;if(s.size>c){this.$refs.file.value=null,this.$errorMessage(`\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7${this.fileMaxSize}M`);return}if(!s){this.$refs.file.value=null;return}const p=s.name.split(".");if(this.acceptType!=""&&this.acceptType.indexOf(p[p.length-1])<0){this.$refs.file.value=null,this.$errorMessage(`\u6587\u4EF6\u7C7B\u578B\u9650\u5236\u4E3A${this.acceptType}`);return}let m=0,g=s.name;for(;m<i.length&&i.includes(s.name);){const y=s.name.lastIndexOf(".");if(m=m+1,y>-1){const O=s.name.substring(0,y),E=s.name.substring(y);g=O+"("+m+")"+E}else g=s.name+"("+m+")"}i.push(g),this.doUpload(s,g)}},coputedFullFileList(e){this.$emit("input",e),this.$emit("change",e)},async doUpload(e,n){this.loading=!0;const i=new FormData;i.append("file",e,n);const a=await gy.upload(i);if(this.loading=!1,!a.success)return;if(this.$refs.file.value=null,!this.multiple){if(this.fullFileObject)this.$emit("input",[a.data]),this.$emit("change",[a.data]);else{const c=this.composeFilename(a.data);this.$emit("input",c),this.$emit("change",c)}return}this.index>=0?(this.fileList.splice(this.index,1,this.composeFilename(a.data)),this.fullFileList.splice(this.index,1,a.data)):(this.fileList.push(this.composeFilename(a.data)),this.fullFileList.push(a.data)),this.fileList;const s=this.fullFileObject?this.fullFileList:this.fileList.join(",");this.coputedFullFileList(s)},composeFileList(){if(this.fullFileObject){this.fileList=this.value&&this.value.length?this.value.map(e=>`${e.url}&${e.name}`):[],this.fullFileList=this.value&&this.value.length?this.value.map(e=>e):[];return}this.value?this.fileList=this.value.split(",").filter(e=>e):this.fileList=[]},composeFilename(e){return this.hasFilename?`${e.url}?filename=${e.fileName}`:this.hasContainId?e.id:`${e.url}&${e.name}`},isImage(e){const n=e.split("."),i=n[n.length-1];return["png","jpg","jpeg","gif","bmp"].includes(i)},isDw(e){const n=e.split("."),i=n[n.length-1];return["dwg","dwt"].includes(i)},isPdf(e){const n=e.split("."),i=n[n.length-1];return["pdf"].includes(i)},onDelete(e){if(this.multiple){this.fileList.splice(e,1),this.fullFileList.splice(e,1);const n=this.fullFileObject?this.fullFileList:this.fileList.join(",");this.coputedFullFileList(n)}else this.$emit("input",""),this.$emit("change","")},onPreview(e){if(this.viewCallBack){this.viewCallBack(e,this.fileList);return}let n=this.fileList[e].split("."),i=n[n.length-1],s=["png","jpg","jpeg","gif"].some(function(p){return p==i}),c=null;if(this.fileList.forEach((p,m)=>{this.isImage(p)&&m<=e&&(c==null?c=0:c=c+1)}),s)this.$refs.images[c].clickHandler();else{let p=`${this.fileList[e]}`,m=1;p.indexOf("https")!==-1||p.indexOf("http")!==-1?(m=p.indexOf("https")!==-1?1:0,window.open(`https://wdyl.ddzg.cn:8089/?ssl=${m}&furl=${p}`)):p.indexOf("http")===-1&&gy.list([p]).then(g=>{m=g.data[0].url.indexOf("https")!==-1?1:0,window.open(`https://wdyl.ddzg.cn:8089/?ssl=${m}&furl=${g.data[0].url}`)})}},onDownload(e){const n=this.fileList[e];n.indexOf("https")!==-1||n.indexOf("http")!==-1?this.downloadFile(n,n.slice(n.lastIndexOf("&")+1)):gy.list([n]).then(i=>{this.downloadFile(i.data[0].url,i.data[0].url.slice(i.data[0].url.lastIndexOf("&")+1))})},downloadFile:(e,n)=>{var i=document.createElement("a");i.download=n,i.style.display="none";var a=new Blob([e]);i.href=URL.createObjectURL(a),document.body.appendChild(i),i.click(),document.body.removeChild(i)}}},t3={};var I9=qt(D9,k9,S9,!1,B9,"628e6ebd",null,null);function B9(e){for(let n in t3)this[n]=t3[n]}const vh=function(){return I9.exports}();vh.install=e=>{e.component(vh.name,vh)};const O9='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',T9=e=>process.env.NODE_ENV==="test"?!0:getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,n3=e=>Array.from(e.querySelectorAll(O9)).filter(n=>N9(n)&&T9(n)),N9=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}};var i3;const hi=typeof window<"u",M9=e=>typeof e=="string",F9=()=>{};hi&&((i3=window==null?void 0:window.navigator)==null?void 0:i3.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Ay(e){return typeof e=="function"?e():QM(e)}function P9(e){return e}function vy(e){return a4()?(bM(e),!0):!1}function R9(e,n=!0){os()?ZM(e):n?e():sF(e)}function j9(e,n,i={}){const{immediate:a=!0}=i,s=ph(!1);let c=null;function p(){c&&(clearTimeout(c),c=null)}function m(){s.value=!1,p()}function g(...y){p(),s.value=!0,c=setTimeout(()=>{s.value=!1,c=null,e(...y)},Ay(n))}return a&&(s.value=!0,hi&&g()),vy(m),{isPending:WM(s),start:g,stop:m}}function r3(e){var n;const i=Ay(e);return(n=i==null?void 0:i.$el)!=null?n:i}const a3=hi?window:void 0;function o3(...e){let n,i,a,s;if(M9(e[0])||Array.isArray(e[0])?([i,a,s]=e,n=a3):[n,i,a,s]=e,!n)return F9;Array.isArray(i)||(i=[i]),Array.isArray(a)||(a=[a]);const c=[],p=()=>{c.forEach(O=>O()),c.length=0},m=(O,E,N,_)=>(O.addEventListener(E,N,_),()=>O.removeEventListener(E,N,_)),g=w4(()=>[r3(n),Ay(s)],([O,E])=>{p(),O&&c.push(...i.flatMap(N=>a.map(_=>m(O,N,_,E))))},{immediate:!0,flush:"post"}),y=()=>{g(),p()};return vy(y),y}function L9(e,n=!1){const i=ph(),a=()=>i.value=Boolean(e());return a(),R9(a,n),i}const by=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_y="__vueuse_ssr_handlers__";by[_y]=by[_y]||{},by[_y];var s3=Object.getOwnPropertySymbols,z9=Object.prototype.hasOwnProperty,Q9=Object.prototype.propertyIsEnumerable,H9=(e,n)=>{var i={};for(var a in e)z9.call(e,a)&&n.indexOf(a)<0&&(i[a]=e[a]);if(e!=null&&s3)for(var a of s3(e))n.indexOf(a)<0&&Q9.call(e,a)&&(i[a]=e[a]);return i};function l3(e,n,i={}){const a=i,{window:s=a3}=a,c=H9(a,["window"]);let p;const m=L9(()=>s&&"ResizeObserver"in s),g=()=>{p&&(p.disconnect(),p=void 0)},y=w4(()=>r3(e),E=>{g(),m.value&&s&&E&&(p=new ResizeObserver(n),p.observe(E,c))},{immediate:!0,flush:"post"}),O=()=>{g(),y()};return vy(O),{isSupported:m,stop:O}}var c3;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(c3||(c3={}));var V9=Object.defineProperty,u3=Object.getOwnPropertySymbols,U9=Object.prototype.hasOwnProperty,Y9=Object.prototype.propertyIsEnumerable,d3=(e,n,i)=>n in e?V9(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i,W9=(e,n)=>{for(var i in n||(n={}))U9.call(n,i)&&d3(e,i,n[i]);if(u3)for(var i of u3(n))Y9.call(n,i)&&d3(e,i,n[i]);return e};W9({linear:P9},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const G9=()=>hi&&/firefox/i.test(window.navigator.userAgent);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const Yl=()=>{},J9=Object.assign,K9=Object.prototype.hasOwnProperty,bh=(e,n)=>K9.call(e,n),X9=Array.isArray,ls=e=>typeof e=="function",yr=e=>typeof e=="string",cd=e=>e!==null&&typeof e=="object",Z9=e=>{const n=Object.create(null);return i=>n[i]||(n[i]=e(i))},$9=/-(\w)/g,q9=Z9(e=>e.replace($9,(n,i)=>i?i.toUpperCase():""));var e7=typeof global=="object"&&global&&global.Object===Object&&global;const t7=e7;var n7=typeof self=="object"&&self&&self.Object===Object&&self,i7=t7||n7||Function("return this")();const yy=i7;var r7=yy.Symbol;const Wl=r7;var f3=Object.prototype,a7=f3.hasOwnProperty,o7=f3.toString,ud=Wl?Wl.toStringTag:void 0;function s7(e){var n=a7.call(e,ud),i=e[ud];try{e[ud]=void 0;var a=!0}catch{}var s=o7.call(e);return a&&(n?e[ud]=i:delete e[ud]),s}var l7=Object.prototype,c7=l7.toString;function u7(e){return c7.call(e)}var d7="[object Null]",f7="[object Undefined]",p3=Wl?Wl.toStringTag:void 0;function h3(e){return e==null?e===void 0?f7:d7:p3&&p3 in Object(e)?s7(e):u7(e)}function p7(e){return e!=null&&typeof e=="object"}var h7="[object Symbol]";function xy(e){return typeof e=="symbol"||p7(e)&&h3(e)==h7}function m7(e,n){for(var i=-1,a=e==null?0:e.length,s=Array(a);++i<a;)s[i]=n(e[i],i,e);return s}var g7=Array.isArray;const wy=g7;var A7=1/0,m3=Wl?Wl.prototype:void 0,g3=m3?m3.toString:void 0;function A3(e){if(typeof e=="string")return e;if(wy(e))return m7(e,A3)+"";if(xy(e))return g3?g3.call(e):"";var n=e+"";return n=="0"&&1/e==-A7?"-0":n}function v3(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var v7="[object AsyncFunction]",b7="[object Function]",_7="[object GeneratorFunction]",y7="[object Proxy]";function x7(e){if(!v3(e))return!1;var n=h3(e);return n==b7||n==_7||n==v7||n==y7}var w7=yy["__core-js_shared__"];const Ey=w7;var b3=function(){var e=/[^.]+$/.exec(Ey&&Ey.keys&&Ey.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function E7(e){return!!b3&&b3 in e}var C7=Function.prototype,k7=C7.toString;function S7(e){if(e!=null){try{return k7.call(e)}catch{}try{return e+""}catch{}}return""}var D7=/[\\^$.*+?()[\]{}|]/g,I7=/^\[object .+?Constructor\]$/,B7=Function.prototype,O7=Object.prototype,T7=B7.toString,N7=O7.hasOwnProperty,M7=RegExp("^"+T7.call(N7).replace(D7,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function F7(e){if(!v3(e)||E7(e))return!1;var n=x7(e)?M7:I7;return n.test(S7(e))}function P7(e,n){return e==null?void 0:e[n]}function _3(e,n){var i=P7(e,n);return F7(i)?i:void 0}function R7(e,n){return e===n||e!==e&&n!==n}var j7=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,L7=/^\w*$/;function z7(e,n){if(wy(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="boolean"||e==null||xy(e)?!0:L7.test(e)||!j7.test(e)||n!=null&&e in Object(n)}var Q7=_3(Object,"create");const dd=Q7;function H7(){this.__data__=dd?dd(null):{},this.size=0}function V7(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var U7="__lodash_hash_undefined__",Y7=Object.prototype,W7=Y7.hasOwnProperty;function G7(e){var n=this.__data__;if(dd){var i=n[e];return i===U7?void 0:i}return W7.call(n,e)?n[e]:void 0}var J7=Object.prototype,K7=J7.hasOwnProperty;function X7(e){var n=this.__data__;return dd?n[e]!==void 0:K7.call(n,e)}var Z7="__lodash_hash_undefined__";function $7(e,n){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=dd&&n===void 0?Z7:n,this}function cs(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var a=e[n];this.set(a[0],a[1])}}cs.prototype.clear=H7,cs.prototype.delete=V7,cs.prototype.get=G7,cs.prototype.has=X7,cs.prototype.set=$7;function q7(){this.__data__=[],this.size=0}function _h(e,n){for(var i=e.length;i--;)if(R7(e[i][0],n))return i;return-1}var eP=Array.prototype,tP=eP.splice;function nP(e){var n=this.__data__,i=_h(n,e);if(i<0)return!1;var a=n.length-1;return i==a?n.pop():tP.call(n,i,1),--this.size,!0}function iP(e){var n=this.__data__,i=_h(n,e);return i<0?void 0:n[i][1]}function rP(e){return _h(this.__data__,e)>-1}function aP(e,n){var i=this.__data__,a=_h(i,e);return a<0?(++this.size,i.push([e,n])):i[a][1]=n,this}function Gl(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var a=e[n];this.set(a[0],a[1])}}Gl.prototype.clear=q7,Gl.prototype.delete=nP,Gl.prototype.get=iP,Gl.prototype.has=rP,Gl.prototype.set=aP;var oP=_3(yy,"Map");const sP=oP;function lP(){this.size=0,this.__data__={hash:new cs,map:new(sP||Gl),string:new cs}}function cP(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}function yh(e,n){var i=e.__data__;return cP(n)?i[typeof n=="string"?"string":"hash"]:i.map}function uP(e){var n=yh(this,e).delete(e);return this.size-=n?1:0,n}function dP(e){return yh(this,e).get(e)}function fP(e){return yh(this,e).has(e)}function pP(e,n){var i=yh(this,e),a=i.size;return i.set(e,n),this.size+=i.size==a?0:1,this}function us(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var a=e[n];this.set(a[0],a[1])}}us.prototype.clear=lP,us.prototype.delete=uP,us.prototype.get=dP,us.prototype.has=fP,us.prototype.set=pP;var hP="Expected a function";function Cy(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new TypeError(hP);var i=function(){var a=arguments,s=n?n.apply(this,a):a[0],c=i.cache;if(c.has(s))return c.get(s);var p=e.apply(this,a);return i.cache=c.set(s,p)||c,p};return i.cache=new(Cy.Cache||us),i}Cy.Cache=us;var mP=500;function gP(e){var n=Cy(e,function(a){return i.size===mP&&i.clear(),a}),i=n.cache;return n}var AP=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vP=/\\(\\)?/g,bP=gP(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(AP,function(i,a,s,c){n.push(s?c.replace(vP,"$1"):a||i)}),n});const _P=bP;function yP(e){return e==null?"":A3(e)}function xP(e,n){return wy(e)?e:z7(e,n)?[e]:_P(yP(e))}var wP=1/0;function EP(e){if(typeof e=="string"||xy(e))return e;var n=e+"";return n=="0"&&1/e==-wP?"-0":n}function CP(e,n){n=xP(n,e);for(var i=0,a=n.length;e!=null&&i<a;)e=e[EP(n[i++])];return i&&i==a?e:void 0}function kP(e,n,i){var a=e==null?void 0:CP(e,n);return a===void 0?i:a}function y3(e){for(var n=-1,i=e==null?0:e.length,a={};++n<i;){var s=e[n];a[s[0]]=s[1]}return a}function x3(e){return e==null}const w3=e=>e===void 0,ds=e=>typeof e=="number",ky=e=>typeof Element>"u"?!1:e instanceof Element,SP=e=>yr(e)?!Number.isNaN(Number(e)):!1,E3=e=>Object.keys(e);class C3 extends Error{constructor(n){super(n),this.name="ElementPlusError"}}function DP(e,n){throw new C3(`[${e}] ${n}`)}function Ur(e,n){if(process.env.NODE_ENV!=="production"){const i=yr(e)?new C3(`[${e}] ${n}`):e;console.warn(i)}}const IP="utils/dom/style",k3=(e="")=>e.split(" ").filter(n=>!!n.trim()),S3=(e,n)=>{if(!e||!n)return!1;if(n.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(n)},BP=(e,n)=>{!e||!n.trim()||e.classList.add(...k3(n))},OP=(e,n)=>{!e||!n.trim()||e.classList.remove(...k3(n))},TP=(e,n)=>{var i;if(!hi||!e||!n)return"";let a=q9(n);a==="float"&&(a="cssFloat");try{const s=e.style[a];if(s)return s;const c=(i=document.defaultView)==null?void 0:i.getComputedStyle(e,"");return c?c[a]:""}catch{return e.style[a]}};function Sy(e,n="px"){if(!e)return"";if(ds(e)||SP(e))return`${e}${n}`;if(yr(e))return e;Ur(IP,"binding value must be a string or number")}let xh;const NP=e=>{var n;if(!hi)return 0;if(xh!==void 0)return xh;const i=document.createElement("div");i.className=`${e}-scrollbar__wrap`,i.style.visibility="hidden",i.style.width="100px",i.style.position="absolute",i.style.top="-9999px",document.body.appendChild(i);const a=i.offsetWidth;i.style.overflow="scroll";const s=document.createElement("div");s.style.width="100%",i.appendChild(s);const c=s.offsetWidth;return(n=i.parentNode)==null||n.removeChild(i),xh=a-c,xh};/*! Element Plus Icons Vue v2.3.1 */var MP=x.defineComponent({name:"CircleCheck",__name:"circle-check",setup(e){return(n,i)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.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"}),x.createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),FP=MP,PP=x.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(n,i)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),D3=PP,RP=x.defineComponent({name:"CircleClose",__name:"circle-close",setup(e){return(n,i)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),x.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"})]))}}),I3=RP,jP=x.defineComponent({name:"Close",__name:"close",setup(e){return(n,i)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.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"})]))}}),LP=jP,zP=x.defineComponent({name:"Hide",__name:"hide",setup(e){return(n,i)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.createElementVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),x.createElementVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),QP=zP,HP=x.defineComponent({name:"InfoFilled",__name:"info-filled",setup(e){return(n,i)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),B3=HP,VP=x.defineComponent({name:"Loading",__name:"loading",setup(e){return(n,i)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),O3=VP,UP=x.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(e){return(n,i)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),T3=UP,YP=x.defineComponent({name:"View",__name:"view",setup(e){return(n,i)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.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"})]))}}),WP=YP,GP=x.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(e){return(n,i)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),N3=GP;const M3="__epPropKey",mi=e=>e,JP=e=>cd(e)&&!!e[M3],F3=(e,n)=>{if(!cd(e)||JP(e))return e;const{values:i,required:a,default:s,type:c,validator:p}=e,g={type:c,required:!!a,validator:i||p?y=>{let O=!1,E=[];if(i&&(E=Array.from(i),bh(e,"default")&&E.push(s),O||(O=E.includes(y))),p&&(O||(O=p(y))),!O&&E.length>0){const N=[...new Set(E)].map(_=>JSON.stringify(_)).join(", ");x.warn(`Invalid prop: validation failed${n?` for prop "${n}"`:""}. Expected one of [${N}], got value ${JSON.stringify(y)}.`)}return O}:void 0,[M3]:!0};return bh(e,"default")&&(g.default=s),g},fs=e=>y3(Object.entries(e).map(([n,i])=>[n,F3(i,n)])),fd=mi([String,Object,Function]),P3={Close:LP,SuccessFilled:T3,InfoFilled:B3,WarningFilled:N3,CircleCloseFilled:D3},wh={success:T3,warning:N3,error:D3,info:B3},KP={validating:O3,success:FP,error:I3},Eh=(e,n)=>{if(e.install=i=>{for(const a of[e,...Object.values(n!=null?n:{})])i.component(a.name,a)},n)for(const[i,a]of Object.entries(n))e[i]=a;return e},XP=(e,n)=>(e.install=i=>{e._context=i._context,i.config.globalProperties[n]=e},e),ZP=e=>(e.install=Yl,e),Ch={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},Dy="update:modelValue",R3=["","default","small","large"],$P=e=>["",...R3].includes(e);var kh=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(kh||{});const qP=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),j3=e=>e,eR=["class","style"],tR=/^on[A-Z]/,nR=(e={})=>{const{excludeListeners:n=!1,excludeKeys:i}=e,a=x.computed(()=>((i==null?void 0:i.value)||[]).concat(eR)),s=x.getCurrentInstance();return s?x.computed(()=>{var c;return y3(Object.entries((c=s.proxy)==null?void 0:c.$attrs).filter(([p])=>!a.value.includes(p)&&!(n&&tR.test(p))))}):(Ur("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),x.computed(()=>({})))},iR=({from:e,replacement:n,scope:i,version:a,ref:s,type:c="API"},p)=>{x.watch(()=>x.unref(p),m=>{m&&Ur(i,`[${c}] ${e} is about to be deprecated in version ${a}, please use ${n} instead.
21
21
  For more detail, please visit: ${s}
22
22
  `)},{immediate:!0})},rR=(e,n,i)=>{let a={offsetX:0,offsetY:0};const s=m=>{const g=m.clientX,y=m.clientY,{offsetX:O,offsetY:E}=a,N=e.value.getBoundingClientRect(),_=N.left,S=N.top,M=N.width,P=N.height,T=document.documentElement.clientWidth,R=document.documentElement.clientHeight,b=-_+O,w=-S+E,B=T-_-M+O,Q=R-S-P+E,F=ee=>{const ne=Math.min(Math.max(O+ee.clientX-g,b),B),se=Math.min(Math.max(E+ee.clientY-y,w),Q);a={offsetX:ne,offsetY:se},e.value&&(e.value.style.transform=`translate(${Sy(ne)}, ${Sy(se)})`)},H=()=>{document.removeEventListener("mousemove",F),document.removeEventListener("mouseup",H)};document.addEventListener("mousemove",F),document.addEventListener("mouseup",H)},c=()=>{n.value&&e.value&&n.value.addEventListener("mousedown",s)},p=()=>{n.value&&e.value&&n.value.removeEventListener("mousedown",s)};x.onMounted(()=>{x.watchEffect(()=>{i.value?c():p()})}),x.onBeforeUnmount(()=>{p()})};var aR={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const oR=e=>(n,i)=>sR(n,i,x.unref(e)),sR=(e,n,i)=>kP(i,e,e).replace(/\{(\w+)\}/g,(a,s)=>{var c;return`${(c=n==null?void 0:n[s])!=null?c:`{${s}}`}`}),lR=e=>{const n=x.computed(()=>x.unref(e).name),i=x.isRef(e)?e:x.ref(e);return{lang:n,locale:i,t:oR(e)}},L3=Symbol("localeContextKey"),cR=e=>{const n=e||x.inject(L3,x.ref());return lR(x.computed(()=>n.value||aR))};let uR;function dR(e,n=uR){n&&n.active&&n.effects.push(e)}const z3=e=>{const n=new Set(e);return n.w=0,n.n=0,n},Q3=e=>(e.w&Xa)>0,H3=e=>(e.n&Xa)>0,fR=({deps:e})=>{if(e.length)for(let n=0;n<e.length;n++)e[n].w|=Xa},pR=e=>{const{deps:n}=e;if(n.length){let i=0;for(let a=0;a<n.length;a++){const s=n[a];Q3(s)&&!H3(s)?s.delete(e):n[i++]=s,s.w&=~Xa,s.n&=~Xa}n.length=i}};let pd=0,Xa=1;const Iy=30;let Ri;Symbol(process.env.NODE_ENV!=="production"?"iterate":""),Symbol(process.env.NODE_ENV!=="production"?"Map key iterate":"");class hR{constructor(n,i=null,a){this.fn=n,this.scheduler=i,this.active=!0,this.deps=[],this.parent=void 0,dR(this,a)}run(){if(!this.active)return this.fn();let n=Ri,i=Sh;for(;n;){if(n===this)return;n=n.parent}try{return this.parent=Ri,Ri=this,Sh=!0,Xa=1<<++pd,pd<=Iy?fR(this):V3(this),this.fn()}finally{pd<=Iy&&pR(this),Xa=1<<--pd,Ri=this.parent,Sh=i,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Ri===this?this.deferStop=!0:this.active&&(V3(this),this.onStop&&this.onStop(),this.active=!1)}}function V3(e){const{deps:n}=e;if(n.length){for(let i=0;i<n.length;i++)n[i].delete(e);n.length=0}}let Sh=!0;function U3(e,n){let i=!1;pd<=Iy?H3(e)||(e.n|=Xa,i=!Q3(e)):i=!e.has(Ri),i&&(e.add(Ri),Ri.deps.push(e),process.env.NODE_ENV!=="production"&&Ri.onTrack&&Ri.onTrack(Object.assign({effect:Ri},n)))}function Y3(e,n){const i=X9(e)?e:[...e];for(const a of i)a.computed&&W3(a,n);for(const a of i)a.computed||W3(a,n)}function W3(e,n){(e!==Ri||e.allowRecurse)&&(process.env.NODE_ENV!=="production"&&e.onTrigger&&e.onTrigger(J9({effect:e},n)),e.scheduler?e.scheduler():e.run())}function Dh(e){const n=e&&e.__v_raw;return n?Dh(n):e}function mR(e){Sh&&Ri&&(e=Dh(e),process.env.NODE_ENV!=="production"?U3(e.dep||(e.dep=z3()),{target:e,type:"get",key:"value"}):U3(e.dep||(e.dep=z3())))}function gR(e,n){e=Dh(e);const i=e.dep;i&&(process.env.NODE_ENV!=="production"?Y3(i,{target:e,type:"set",key:"value",newValue:n}):Y3(i))}var G3;class AR{constructor(n,i,a,s){this._setter=i,this.dep=void 0,this.__v_isRef=!0,this[G3]=!1,this._dirty=!0,this.effect=new hR(n,()=>{this._dirty||(this._dirty=!0,gR(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=a}get value(){const n=Dh(this);return mR(n),(n._dirty||!n._cacheable)&&(n._dirty=!1,n._value=n.effect.run()),n._value}set value(n){this._setter(n)}}G3="__v_isReadonly";function vR(e,n,i=!1){let a,s;const c=ls(e);c?(a=e,s=process.env.NODE_ENV!=="production"?()=>{console.warn("Write operation failed: computed value is readonly")}:Yl):(a=e.get,s=e.set);const p=new AR(a,s,c||!s,i);return process.env.NODE_ENV!=="production"&&n&&!i&&(p.effect.onTrack=n.onTrack,p.effect.onTrigger=n.onTrigger),p}const Ih="el",bR="is-",ps=(e,n,i,a,s)=>{let c=`${e}-${n}`;return i&&(c+=`-${i}`),a&&(c+=`__${a}`),s&&(c+=`--${s}`),c},J3=Symbol("namespaceContextKey"),K3=e=>{const n=e||(x.getCurrentInstance()?x.inject(J3,x.ref(Ih)):x.ref(Ih));return x.computed(()=>x.unref(n)||Ih)},Yr=(e,n)=>{const i=K3(n);return{namespace:i,b:(M="")=>ps(i.value,e,M,"",""),e:M=>M?ps(i.value,e,"",M,""):"",m:M=>M?ps(i.value,e,"","",M):"",be:(M,P)=>M&&P?ps(i.value,e,M,P,""):"",em:(M,P)=>M&&P?ps(i.value,e,"",M,P):"",bm:(M,P)=>M&&P?ps(i.value,e,M,"",P):"",bem:(M,P,T)=>M&&P&&T?ps(i.value,e,M,P,T):"",is:(M,...P)=>{const T=P.length>=1?P[0]:!0;return M&&T?`${bR}${M}`:""},cssVar:M=>{const P={};for(const T in M)M[T]&&(P[`--${i.value}-${T}`]=M[T]);return P},cssVarName:M=>`--${i.value}-${M}`,cssVarBlock:M=>{const P={};for(const T in M)M[T]&&(P[`--${i.value}-${e}-${T}`]=M[T]);return P},cssVarBlockName:M=>`--${i.value}-${e}-${M}`}},_R=(e,n={})=>{x.isRef(e)||DP("[useLockscreen]","You need to pass a ref param to this function");const i=n.ns||Yr("popup"),a=vR(()=>i.bm("parent","hidden"));if(!hi||S3(document.body,a.value))return;let s=0,c=!1,p="0";const m=()=>{setTimeout(()=>{OP(document==null?void 0:document.body,a.value),c&&document&&(document.body.style.width=p)},200)};x.watch(e,g=>{if(!g){m();return}c=!S3(document.body,a.value),c&&(p=document.body.style.width),s=NP(i.namespace.value);const y=document.documentElement.clientHeight<document.body.scrollHeight,O=TP(document.body,"overflowY");s>0&&(y||O==="scroll")&&c&&(document.body.style.width=`calc(100% - ${s}px)`),BP(document.body,a.value)}),x.onScopeDispose(()=>m())},X3=e=>{const n=x.getCurrentInstance();return x.computed(()=>{var i,a;return(a=(i=n==null?void 0:n.proxy)==null?void 0:i.$props)==null?void 0:a[e]})},Z3=e=>{if(!e)return{onClick:Yl,onMousedown:Yl,onMouseup:Yl};let n=!1,i=!1;return{onClick:p=>{n&&i&&e(p),n=i=!1},onMousedown:p=>{n=p.target===p.currentTarget},onMouseup:p=>{i=p.target===p.currentTarget}}},By={prefix:Math.floor(Math.random()*1e4),current:0},yR=Symbol("elIdInjection"),xR=()=>x.getCurrentInstance()?x.inject(yR,By):By,Oy=e=>{const n=xR();!hi&&n===By&&Ur("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
23
23
  usage: app.provide(ID_INJECTION_KEY, {
@@ -31,7 +31,7 @@ usage: app.provide(ID_INJECTION_KEY, {
31
31
  z-index:-1000 !important;
32
32
  top:0 !important;
33
33
  right:0 !important;
34
- `,PR=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function RR(e){const n=window.getComputedStyle(e),i=n.getPropertyValue("box-sizing"),a=Number.parseFloat(n.getPropertyValue("padding-bottom"))+Number.parseFloat(n.getPropertyValue("padding-top")),s=Number.parseFloat(n.getPropertyValue("border-bottom-width"))+Number.parseFloat(n.getPropertyValue("border-top-width"));return{contextStyle:PR.map(p=>`${p}:${n.getPropertyValue(p)}`).join(";"),paddingSize:a,borderSize:s,boxSizing:i}}function c6(e,n=1,i){var a;xr||(xr=document.createElement("textarea"),document.body.appendChild(xr));const{paddingSize:s,borderSize:c,boxSizing:p,contextStyle:m}=RR(e);xr.setAttribute("style",`${m};${FR}`),xr.value=e.value||e.placeholder||"";let g=xr.scrollHeight;const y={};p==="border-box"?g=g+c:p==="content-box"&&(g=g-s),xr.value="";const O=xr.scrollHeight-s;if(ds(n)){let E=O*n;p==="border-box"&&(E=E+s+c),g=Math.max(E,g),y.minHeight=`${E}px`}if(ds(i)){let E=O*i;p==="border-box"&&(E=E+s+c),g=Math.min(E,g)}return y.height=`${g}px`,(a=xr.parentNode)==null||a.removeChild(xr),xr=void 0,y}const jR=fs({id:{type:String,default:void 0},size:Ty,disabled:Boolean,modelValue:{type:mi([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:mi([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:fd},prefixIcon:{type:fd},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:mi([Object,Array,String]),default:()=>j3({})},autofocus:{type:Boolean,default:!1}}),LR={[Dy]:e=>yr(e),input:e=>yr(e),change:e=>yr(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},zR=["role"],QR=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],HR=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],VR=x.defineComponent({name:"ElInput",inheritAttrs:!1}),UR=x.defineComponent({...VR,props:jR,emits:LR,setup(e,{expose:n,emit:i}){const a=e,s=x.useAttrs(),c=x.useSlots(),p=x.computed(()=>{const G={};return a.containerRole==="combobox"&&(G["aria-haspopup"]=s["aria-haspopup"],G["aria-owns"]=s["aria-owns"],G["aria-expanded"]=s["aria-expanded"]),G}),m=x.computed(()=>[a.type==="textarea"?P.b():M.b(),M.m(_.value),M.is("disabled",S.value),M.is("exceed",xe.value),{[M.b("group")]:c.prepend||c.append,[M.bm("group","append")]:c.append,[M.bm("group","prepend")]:c.prepend,[M.m("prefix")]:c.prefix||a.prefixIcon,[M.m("suffix")]:c.suffix||a.suffixIcon||a.clearable||a.showPassword,[M.bm("suffix","password-clear")]:ge.value&&Te.value},s.class]),g=x.computed(()=>[M.e("wrapper"),M.is("focus",ne.value)]),y=nR({excludeKeys:x.computed(()=>Object.keys(p.value))}),{form:O,formItem:E}=l6(),{inputId:N}=MR(a,{formItemContext:E}),_=s6(),S=Py(),M=Yr("input"),P=Yr("textarea"),T=x.shallowRef(),R=x.shallowRef(),b=x.ref(!1),w=x.ref(!1),B=x.ref(!1),Q=x.ref(),F=x.shallowRef(a.inputStyle),H=x.computed(()=>T.value||R.value),{wrapperRef:ee,isFocused:ne,handleFocus:se,handleBlur:me}=SR(H,{afterBlur(){var G;a.validateEvent&&((G=E==null?void 0:E.validate)==null||G.call(E,"blur").catch(ae=>Ur(ae)))}}),pe=x.computed(()=>{var G;return(G=O==null?void 0:O.statusIcon)!=null?G:!1}),Se=x.computed(()=>(E==null?void 0:E.validateState)||""),ye=x.computed(()=>Se.value&&KP[Se.value]),_e=x.computed(()=>B.value?WP:QP),W=x.computed(()=>[s.style,a.inputStyle]),J=x.computed(()=>[a.inputStyle,F.value,{resize:a.resize}]),re=x.computed(()=>x3(a.modelValue)?"":String(a.modelValue)),ge=x.computed(()=>a.clearable&&!S.value&&!a.readonly&&!!re.value&&(ne.value||b.value)),Te=x.computed(()=>a.showPassword&&!S.value&&!a.readonly&&!!re.value&&(!!re.value||ne.value)),le=x.computed(()=>a.showWordLimit&&!!y.value.maxlength&&(a.type==="text"||a.type==="textarea")&&!S.value&&!a.readonly&&!a.showPassword),he=x.computed(()=>re.value.length),xe=x.computed(()=>!!le.value&&he.value>Number(y.value.maxlength)),Fe=x.computed(()=>!!c.suffix||!!a.suffixIcon||ge.value||a.showPassword||le.value||!!Se.value&&pe.value),[K,j]=CR(T);l3(R,G=>{if(X(),!le.value||a.resize!=="both")return;const ae=G[0],{width:Ce}=ae.contentRect;Q.value={right:`calc(100% - ${Ce+15+6}px)`}});const C=()=>{const{type:G,autosize:ae}=a;if(!(!hi||G!=="textarea"||!R.value))if(ae){const Ce=cd(ae)?ae.minRows:void 0,je=cd(ae)?ae.maxRows:void 0,it=c6(R.value,Ce,je);F.value={overflowY:"hidden",...it},x.nextTick(()=>{R.value.offsetHeight,F.value=it})}else F.value={minHeight:c6(R.value).minHeight}},X=(G=>{let ae=!1;return()=>{var Ce;if(ae||!a.autosize)return;((Ce=R.value)==null?void 0:Ce.offsetParent)===null||(G(),ae=!0)}})(C),te=()=>{const G=H.value,ae=a.formatter?a.formatter(re.value):re.value;!G||G.value===ae||(G.value=ae)},fe=async G=>{K();let{value:ae}=G.target;if(a.formatter&&(ae=a.parser?a.parser(ae):ae),!w.value){if(ae===re.value){te();return}i(Dy,ae),i("input",ae),await x.nextTick(),te(),j()}},De=G=>{i("change",G.target.value)},Re=G=>{i("compositionstart",G),w.value=!0},Ke=G=>{var ae;i("compositionupdate",G);const Ce=(ae=G.target)==null?void 0:ae.value,je=Ce[Ce.length-1]||"";w.value=!qP(je)},_t=G=>{i("compositionend",G),w.value&&(w.value=!1,fe(G))},pt=()=>{B.value=!B.value,Bt()},Bt=async()=>{var G;await x.nextTick(),(G=H.value)==null||G.focus()},sn=()=>{var G;return(G=H.value)==null?void 0:G.blur()},ct=G=>{b.value=!1,i("mouseleave",G)},Ot=G=>{b.value=!0,i("mouseenter",G)},fn=G=>{i("keydown",G)},ve=()=>{var G;(G=H.value)==null||G.select()},q=()=>{i(Dy,""),i("change",""),i("clear"),i("input","")};return x.watch(()=>a.modelValue,()=>{var G;x.nextTick(()=>C()),a.validateEvent&&((G=E==null?void 0:E.validate)==null||G.call(E,"change").catch(ae=>Ur(ae)))}),x.watch(re,()=>te()),x.watch(()=>a.type,async()=>{await x.nextTick(),te(),C()}),x.onMounted(()=>{!a.formatter&&a.parser&&Ur("ElInput","If you set the parser, you also need to set the formatter."),te(),x.nextTick(C)}),n({input:T,textarea:R,ref:H,textareaStyle:J,autosize:x.toRef(a,"autosize"),focus:Bt,blur:sn,select:ve,clear:q,resizeTextarea:C}),(G,ae)=>x.withDirectives((x.openBlock(),x.createElementBlock("div",x.mergeProps(x.unref(p),{class:x.unref(m),style:x.unref(W),role:G.containerRole,onMouseenter:Ot,onMouseleave:ct}),[x.createCommentVNode(" input "),G.type!=="textarea"?(x.openBlock(),x.createElementBlock(x.Fragment,{key:0},[x.createCommentVNode(" prepend slot "),G.$slots.prepend?(x.openBlock(),x.createElementBlock("div",{key:0,class:x.normalizeClass(x.unref(M).be("group","prepend"))},[x.renderSlot(G.$slots,"prepend")],2)):x.createCommentVNode("v-if",!0),x.createElementVNode("div",{ref_key:"wrapperRef",ref:ee,class:x.normalizeClass(x.unref(g))},[x.createCommentVNode(" prefix slot "),G.$slots.prefix||G.prefixIcon?(x.openBlock(),x.createElementBlock("span",{key:0,class:x.normalizeClass(x.unref(M).e("prefix"))},[x.createElementVNode("span",{class:x.normalizeClass(x.unref(M).e("prefix-inner"))},[x.renderSlot(G.$slots,"prefix"),G.prefixIcon?(x.openBlock(),x.createBlock(x.unref(Wr),{key:0,class:x.normalizeClass(x.unref(M).e("icon"))},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(G.prefixIcon)))]),_:1},8,["class"])):x.createCommentVNode("v-if",!0)],2)],2)):x.createCommentVNode("v-if",!0),x.createElementVNode("input",x.mergeProps({id:x.unref(N),ref_key:"input",ref:T,class:x.unref(M).e("inner")},x.unref(y),{type:G.showPassword?B.value?"text":"password":G.type,disabled:x.unref(S),formatter:G.formatter,parser:G.parser,readonly:G.readonly,autocomplete:G.autocomplete,tabindex:G.tabindex,"aria-label":G.label,placeholder:G.placeholder,style:G.inputStyle,form:a.form,autofocus:a.autofocus,onCompositionstart:Re,onCompositionupdate:Ke,onCompositionend:_t,onInput:fe,onFocus:ae[0]||(ae[0]=(...Ce)=>x.unref(se)&&x.unref(se)(...Ce)),onBlur:ae[1]||(ae[1]=(...Ce)=>x.unref(me)&&x.unref(me)(...Ce)),onChange:De,onKeydown:fn}),null,16,QR),x.createCommentVNode(" suffix slot "),x.unref(Fe)?(x.openBlock(),x.createElementBlock("span",{key:1,class:x.normalizeClass(x.unref(M).e("suffix"))},[x.createElementVNode("span",{class:x.normalizeClass(x.unref(M).e("suffix-inner"))},[!x.unref(ge)||!x.unref(Te)||!x.unref(le)?(x.openBlock(),x.createElementBlock(x.Fragment,{key:0},[x.renderSlot(G.$slots,"suffix"),G.suffixIcon?(x.openBlock(),x.createBlock(x.unref(Wr),{key:0,class:x.normalizeClass(x.unref(M).e("icon"))},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(G.suffixIcon)))]),_:1},8,["class"])):x.createCommentVNode("v-if",!0)],64)):x.createCommentVNode("v-if",!0),x.unref(ge)?(x.openBlock(),x.createBlock(x.unref(Wr),{key:1,class:x.normalizeClass([x.unref(M).e("icon"),x.unref(M).e("clear")]),onMousedown:x.withModifiers(x.unref(Yl),["prevent"]),onClick:q},{default:x.withCtx(()=>[x.createVNode(x.unref(I3))]),_:1},8,["class","onMousedown"])):x.createCommentVNode("v-if",!0),x.unref(Te)?(x.openBlock(),x.createBlock(x.unref(Wr),{key:2,class:x.normalizeClass([x.unref(M).e("icon"),x.unref(M).e("password")]),onClick:pt},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(x.unref(_e))))]),_:1},8,["class"])):x.createCommentVNode("v-if",!0),x.unref(le)?(x.openBlock(),x.createElementBlock("span",{key:3,class:x.normalizeClass(x.unref(M).e("count"))},[x.createElementVNode("span",{class:x.normalizeClass(x.unref(M).e("count-inner"))},x.toDisplayString(x.unref(he))+" / "+x.toDisplayString(x.unref(y).maxlength),3)],2)):x.createCommentVNode("v-if",!0),x.unref(Se)&&x.unref(ye)&&x.unref(pe)?(x.openBlock(),x.createBlock(x.unref(Wr),{key:4,class:x.normalizeClass([x.unref(M).e("icon"),x.unref(M).e("validateIcon"),x.unref(M).is("loading",x.unref(Se)==="validating")])},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(x.unref(ye))))]),_:1},8,["class"])):x.createCommentVNode("v-if",!0)],2)],2)):x.createCommentVNode("v-if",!0)],2),x.createCommentVNode(" append slot "),G.$slots.append?(x.openBlock(),x.createElementBlock("div",{key:1,class:x.normalizeClass(x.unref(M).be("group","append"))},[x.renderSlot(G.$slots,"append")],2)):x.createCommentVNode("v-if",!0)],64)):(x.openBlock(),x.createElementBlock(x.Fragment,{key:1},[x.createCommentVNode(" textarea "),x.createElementVNode("textarea",x.mergeProps({id:x.unref(N),ref_key:"textarea",ref:R,class:x.unref(P).e("inner")},x.unref(y),{tabindex:G.tabindex,disabled:x.unref(S),readonly:G.readonly,autocomplete:G.autocomplete,style:x.unref(J),"aria-label":G.label,placeholder:G.placeholder,form:a.form,autofocus:a.autofocus,onCompositionstart:Re,onCompositionupdate:Ke,onCompositionend:_t,onInput:fe,onFocus:ae[2]||(ae[2]=(...Ce)=>x.unref(se)&&x.unref(se)(...Ce)),onBlur:ae[3]||(ae[3]=(...Ce)=>x.unref(me)&&x.unref(me)(...Ce)),onChange:De,onKeydown:fn}),null,16,HR),x.unref(le)?(x.openBlock(),x.createElementBlock("span",{key:0,style:x.normalizeStyle(Q.value),class:x.normalizeClass(x.unref(M).e("count"))},x.toDisplayString(x.unref(he))+" / "+x.toDisplayString(x.unref(y).maxlength),7)):x.createCommentVNode("v-if",!0)],64))],16,zR)),[[x.vShow,G.type!=="hidden"]])}});var YR=Za(UR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const WR=Eh(YR),Ry="focus-trap.focus-after-trapped",jy="focus-trap.focus-after-released",GR="focus-trap.focusout-prevented",u6={cancelable:!0,bubbles:!1},JR={cancelable:!0,bubbles:!1},d6="focusAfterTrapped",f6="focusAfterReleased",KR=Symbol("elFocusTrap"),Ly=x.ref(),Oh=x.ref(0),zy=x.ref(0);let Th=0;const p6=e=>{const n=[],i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const s=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||s?NodeFilter.FILTER_SKIP:a.tabIndex>=0||a===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)n.push(i.currentNode);return n},h6=(e,n)=>{for(const i of e)if(!XR(i,n))return i},XR=(e,n)=>{if(process.env.NODE_ENV==="test")return!1;if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},ZR=e=>{const n=p6(e),i=h6(n,e),a=h6(n.reverse(),e);return[i,a]},$R=e=>e instanceof HTMLInputElement&&"select"in e,$a=(e,n)=>{if(e&&e.focus){const i=document.activeElement;e.focus({preventScroll:!0}),zy.value=window.performance.now(),e!==i&&$R(e)&&n&&e.select()}};function m6(e,n){const i=[...e],a=e.indexOf(n);return a!==-1&&i.splice(a,1),i}const qR=()=>{let e=[];return{push:a=>{const s=e[0];s&&a!==s&&s.pause(),e=m6(e,a),e.unshift(a)},remove:a=>{var s,c;e=m6(e,a),(c=(s=e[0])==null?void 0:s.resume)==null||c.call(s)}}},ej=(e,n=!1)=>{const i=document.activeElement;for(const a of e)if($a(a,n),document.activeElement!==i)return},g6=qR(),tj=()=>Oh.value>zy.value,Nh=()=>{Ly.value="pointer",Oh.value=window.performance.now()},A6=()=>{Ly.value="keyboard",Oh.value=window.performance.now()},nj=()=>(x.onMounted(()=>{Th===0&&(document.addEventListener("mousedown",Nh),document.addEventListener("touchstart",Nh),document.addEventListener("keydown",A6)),Th++}),x.onBeforeUnmount(()=>{Th--,Th<=0&&(document.removeEventListener("mousedown",Nh),document.removeEventListener("touchstart",Nh),document.removeEventListener("keydown",A6))}),{focusReason:Ly,lastUserFocusTimestamp:Oh,lastAutomatedFocusTimestamp:zy}),Mh=e=>new CustomEvent(GR,{...JR,detail:e}),ij=x.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[d6,f6,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:n}){const i=x.ref();let a,s;const{focusReason:c}=nj();wR(S=>{e.trapped&&!p.paused&&n("release-requested",S)});const p={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},m=S=>{if(!e.loop&&!e.trapped||p.paused)return;const{key:M,altKey:P,ctrlKey:T,metaKey:R,currentTarget:b,shiftKey:w}=S,{loop:B}=e,Q=M===Ch.tab&&!P&&!T&&!R,F=document.activeElement;if(Q&&F){const H=b,[ee,ne]=ZR(H);if(ee&&ne){if(!w&&F===ne){const me=Mh({focusReason:c.value});n("focusout-prevented",me),me.defaultPrevented||(S.preventDefault(),B&&$a(ee,!0))}else if(w&&[ee,H].includes(F)){const me=Mh({focusReason:c.value});n("focusout-prevented",me),me.defaultPrevented||(S.preventDefault(),B&&$a(ne,!0))}}else if(F===H){const me=Mh({focusReason:c.value});n("focusout-prevented",me),me.defaultPrevented||S.preventDefault()}}};x.provide(KR,{focusTrapRef:i,onKeydown:m}),x.watch(()=>e.focusTrapEl,S=>{S&&(i.value=S)},{immediate:!0}),x.watch([i],([S],[M])=>{S&&(S.addEventListener("keydown",m),S.addEventListener("focusin",O),S.addEventListener("focusout",E)),M&&(M.removeEventListener("keydown",m),M.removeEventListener("focusin",O),M.removeEventListener("focusout",E))});const g=S=>{n(d6,S)},y=S=>n(f6,S),O=S=>{const M=x.unref(i);if(!M)return;const P=S.target,T=S.relatedTarget,R=P&&M.contains(P);e.trapped||T&&M.contains(T)||(a=T),R&&n("focusin",S),!p.paused&&e.trapped&&(R?s=P:$a(s,!0))},E=S=>{const M=x.unref(i);if(!(p.paused||!M))if(e.trapped){const P=S.relatedTarget;!x3(P)&&!M.contains(P)&&setTimeout(()=>{if(!p.paused&&e.trapped){const T=Mh({focusReason:c.value});n("focusout-prevented",T),T.defaultPrevented||$a(s,!0)}},0)}else{const P=S.target;P&&M.contains(P)||n("focusout",S)}};async function N(){await x.nextTick();const S=x.unref(i);if(S){g6.push(p);const M=S.contains(document.activeElement)?a:document.activeElement;if(a=M,!S.contains(M)){const T=new Event(Ry,u6);S.addEventListener(Ry,g),S.dispatchEvent(T),T.defaultPrevented||x.nextTick(()=>{let R=e.focusStartEl;yr(R)||($a(R),document.activeElement!==R&&(R="first")),R==="first"&&ej(p6(S),!0),(document.activeElement===M||R==="container")&&$a(S)})}}}function _(){const S=x.unref(i);if(S){S.removeEventListener(Ry,g);const M=new CustomEvent(jy,{...u6,detail:{focusReason:c.value}});S.addEventListener(jy,y),S.dispatchEvent(M),!M.defaultPrevented&&(c.value=="keyboard"||!tj()||S.contains(document.activeElement))&&$a(a!=null?a:document.body),S.removeEventListener(jy,y),g6.remove(p)}}return x.onMounted(()=>{e.trapped&&N(),x.watch(()=>e.trapped,S=>{S?N():_()})}),x.onBeforeUnmount(()=>{e.trapped&&_()}),{onKeydown:m}}});function rj(e,n,i,a,s,c){return x.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var aj=Za(ij,[["render",rj],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const oj=fs({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),sj=["textContent"],lj=x.defineComponent({name:"ElBadge"}),cj=x.defineComponent({...lj,props:oj,setup(e,{expose:n}){const i=e,a=Yr("badge"),s=x.computed(()=>i.isDot?"":ds(i.value)&&ds(i.max)?i.max<i.value?`${i.max}+`:`${i.value}`:`${i.value}`);return n({content:s}),(c,p)=>(x.openBlock(),x.createElementBlock("div",{class:x.normalizeClass(x.unref(a).b())},[x.renderSlot(c.$slots,"default"),x.createVNode(x.Transition,{name:`${x.unref(a).namespace.value}-zoom-in-center`,persisted:""},{default:x.withCtx(()=>[x.withDirectives(x.createElementVNode("sup",{class:x.normalizeClass([x.unref(a).e("content"),x.unref(a).em("content",c.type),x.unref(a).is("fixed",!!c.$slots.default),x.unref(a).is("dot",c.isDot)]),textContent:x.toDisplayString(x.unref(s))},null,10,sj),[[x.vShow,!c.hidden&&(x.unref(s)||c.isDot)]])]),_:1},8,["name"])],2))}});var uj=Za(cj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const dj=Eh(uj),v6=Symbol("buttonGroupContextKey"),fj=(e,n)=>{iR({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},x.computed(()=>e.type==="text"));const i=x.inject(v6,void 0),a=Ny("button"),{form:s}=l6(),c=s6(x.computed(()=>i==null?void 0:i.size)),p=Py(),m=x.ref(),g=x.useSlots(),y=x.computed(()=>e.type||(i==null?void 0:i.type)||""),O=x.computed(()=>{var S,M,P;return(P=(M=e.autoInsertSpace)!=null?M:(S=a.value)==null?void 0:S.autoInsertSpace)!=null?P:!1}),E=x.computed(()=>e.tag==="button"?{ariaDisabled:p.value||e.loading,disabled:p.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),N=x.computed(()=>{var S;const M=(S=g.default)==null?void 0:S.call(g);if(O.value&&(M==null?void 0:M.length)===1){const P=M[0];if((P==null?void 0:P.type)===x.Text){const T=P.children;return/^\p{Unified_Ideograph}{2}$/u.test(T.trim())}}return!1});return{_disabled:p,_size:c,_type:y,_ref:m,_props:E,shouldAddSpace:N,handleClick:S=>{e.nativeType==="reset"&&(s==null||s.resetFields()),n("click",S)}}},Qy=fs({size:Ty,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:fd},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:fd,default:()=>O3},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:mi([String,Object]),default:"button"}}),pj={click:e=>e instanceof MouseEvent};function On(e,n){hj(e)&&(e="100%");var i=mj(e);return e=n===360?e:Math.min(n,Math.max(0,parseFloat(e))),i&&(e=parseInt(String(e*n),10)/100),Math.abs(e-n)<1e-6?1:(n===360?e=(e<0?e%n+n:e%n)/parseFloat(String(n)):e=e%n/parseFloat(String(n)),e)}function Fh(e){return Math.min(1,Math.max(0,e))}function hj(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function mj(e){return typeof e=="string"&&e.indexOf("%")!==-1}function b6(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ph(e){return e<=1?"".concat(Number(e)*100,"%"):e}function hs(e){return e.length===1?"0"+e:String(e)}function gj(e,n,i){return{r:On(e,255)*255,g:On(n,255)*255,b:On(i,255)*255}}function _6(e,n,i){e=On(e,255),n=On(n,255),i=On(i,255);var a=Math.max(e,n,i),s=Math.min(e,n,i),c=0,p=0,m=(a+s)/2;if(a===s)p=0,c=0;else{var g=a-s;switch(p=m>.5?g/(2-a-s):g/(a+s),a){case e:c=(n-i)/g+(n<i?6:0);break;case n:c=(i-e)/g+2;break;case i:c=(e-n)/g+4;break}c/=6}return{h:c,s:p,l:m}}function Hy(e,n,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+(n-e)*(6*i):i<1/2?n:i<2/3?e+(n-e)*(2/3-i)*6:e}function Aj(e,n,i){var a,s,c;if(e=On(e,360),n=On(n,100),i=On(i,100),n===0)s=i,c=i,a=i;else{var p=i<.5?i*(1+n):i+n-i*n,m=2*i-p;a=Hy(m,p,e+1/3),s=Hy(m,p,e),c=Hy(m,p,e-1/3)}return{r:a*255,g:s*255,b:c*255}}function y6(e,n,i){e=On(e,255),n=On(n,255),i=On(i,255);var a=Math.max(e,n,i),s=Math.min(e,n,i),c=0,p=a,m=a-s,g=a===0?0:m/a;if(a===s)c=0;else{switch(a){case e:c=(n-i)/m+(n<i?6:0);break;case n:c=(i-e)/m+2;break;case i:c=(e-n)/m+4;break}c/=6}return{h:c,s:g,v:p}}function vj(e,n,i){e=On(e,360)*6,n=On(n,100),i=On(i,100);var a=Math.floor(e),s=e-a,c=i*(1-n),p=i*(1-s*n),m=i*(1-(1-s)*n),g=a%6,y=[i,p,c,c,m,i][g],O=[m,i,i,p,c,c][g],E=[c,c,m,i,i,p][g];return{r:y*255,g:O*255,b:E*255}}function x6(e,n,i,a){var s=[hs(Math.round(e).toString(16)),hs(Math.round(n).toString(16)),hs(Math.round(i).toString(16))];return a&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0):s.join("")}function bj(e,n,i,a,s){var c=[hs(Math.round(e).toString(16)),hs(Math.round(n).toString(16)),hs(Math.round(i).toString(16)),hs(_j(a))];return s&&c[0].startsWith(c[0].charAt(1))&&c[1].startsWith(c[1].charAt(1))&&c[2].startsWith(c[2].charAt(1))&&c[3].startsWith(c[3].charAt(1))?c[0].charAt(0)+c[1].charAt(0)+c[2].charAt(0)+c[3].charAt(0):c.join("")}function _j(e){return Math.round(parseFloat(e)*255).toString(16)}function w6(e){return ji(e)/255}function ji(e){return parseInt(e,16)}function yj(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Vy={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function xj(e){var n={r:0,g:0,b:0},i=1,a=null,s=null,c=null,p=!1,m=!1;return typeof e=="string"&&(e=Cj(e)),typeof e=="object"&&(_a(e.r)&&_a(e.g)&&_a(e.b)?(n=gj(e.r,e.g,e.b),p=!0,m=String(e.r).substr(-1)==="%"?"prgb":"rgb"):_a(e.h)&&_a(e.s)&&_a(e.v)?(a=Ph(e.s),s=Ph(e.v),n=vj(e.h,a,s),p=!0,m="hsv"):_a(e.h)&&_a(e.s)&&_a(e.l)&&(a=Ph(e.s),c=Ph(e.l),n=Aj(e.h,a,c),p=!0,m="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=b6(i),{ok:p,format:e.format||m,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:i}}var wj="[-\\+]?\\d+%?",Ej="[-\\+]?\\d*\\.\\d+%?",qa="(?:".concat(Ej,")|(?:").concat(wj,")"),Uy="[\\s|\\(]+(".concat(qa,")[,|\\s]+(").concat(qa,")[,|\\s]+(").concat(qa,")\\s*\\)?"),Yy="[\\s|\\(]+(".concat(qa,")[,|\\s]+(").concat(qa,")[,|\\s]+(").concat(qa,")[,|\\s]+(").concat(qa,")\\s*\\)?"),wr={CSS_UNIT:new RegExp(qa),rgb:new RegExp("rgb"+Uy),rgba:new RegExp("rgba"+Yy),hsl:new RegExp("hsl"+Uy),hsla:new RegExp("hsla"+Yy),hsv:new RegExp("hsv"+Uy),hsva:new RegExp("hsva"+Yy),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Cj(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(Vy[e])e=Vy[e],n=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var i=wr.rgb.exec(e);return i?{r:i[1],g:i[2],b:i[3]}:(i=wr.rgba.exec(e),i?{r:i[1],g:i[2],b:i[3],a:i[4]}:(i=wr.hsl.exec(e),i?{h:i[1],s:i[2],l:i[3]}:(i=wr.hsla.exec(e),i?{h:i[1],s:i[2],l:i[3],a:i[4]}:(i=wr.hsv.exec(e),i?{h:i[1],s:i[2],v:i[3]}:(i=wr.hsva.exec(e),i?{h:i[1],s:i[2],v:i[3],a:i[4]}:(i=wr.hex8.exec(e),i?{r:ji(i[1]),g:ji(i[2]),b:ji(i[3]),a:w6(i[4]),format:n?"name":"hex8"}:(i=wr.hex6.exec(e),i?{r:ji(i[1]),g:ji(i[2]),b:ji(i[3]),format:n?"name":"hex"}:(i=wr.hex4.exec(e),i?{r:ji(i[1]+i[1]),g:ji(i[2]+i[2]),b:ji(i[3]+i[3]),a:w6(i[4]+i[4]),format:n?"name":"hex8"}:(i=wr.hex3.exec(e),i?{r:ji(i[1]+i[1]),g:ji(i[2]+i[2]),b:ji(i[3]+i[3]),format:n?"name":"hex"}:!1)))))))))}function _a(e){return Boolean(wr.CSS_UNIT.exec(String(e)))}var kj=function(){function e(n,i){n===void 0&&(n=""),i===void 0&&(i={});var a;if(n instanceof e)return n;typeof n=="number"&&(n=yj(n)),this.originalInput=n;var s=xj(n);this.originalInput=n,this.r=s.r,this.g=s.g,this.b=s.b,this.a=s.a,this.roundA=Math.round(100*this.a)/100,this.format=(a=i.format)!==null&&a!==void 0?a:s.format,this.gradientType=i.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=s.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},e.prototype.getLuminance=function(){var n=this.toRgb(),i,a,s,c=n.r/255,p=n.g/255,m=n.b/255;return c<=.03928?i=c/12.92:i=Math.pow((c+.055)/1.055,2.4),p<=.03928?a=p/12.92:a=Math.pow((p+.055)/1.055,2.4),m<=.03928?s=m/12.92:s=Math.pow((m+.055)/1.055,2.4),.2126*i+.7152*a+.0722*s},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(n){return this.a=b6(n),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var n=this.toHsl().s;return n===0},e.prototype.toHsv=function(){var n=y6(this.r,this.g,this.b);return{h:n.h*360,s:n.s,v:n.v,a:this.a}},e.prototype.toHsvString=function(){var n=y6(this.r,this.g,this.b),i=Math.round(n.h*360),a=Math.round(n.s*100),s=Math.round(n.v*100);return this.a===1?"hsv(".concat(i,", ").concat(a,"%, ").concat(s,"%)"):"hsva(".concat(i,", ").concat(a,"%, ").concat(s,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var n=_6(this.r,this.g,this.b);return{h:n.h*360,s:n.s,l:n.l,a:this.a}},e.prototype.toHslString=function(){var n=_6(this.r,this.g,this.b),i=Math.round(n.h*360),a=Math.round(n.s*100),s=Math.round(n.l*100);return this.a===1?"hsl(".concat(i,", ").concat(a,"%, ").concat(s,"%)"):"hsla(".concat(i,", ").concat(a,"%, ").concat(s,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(n){return n===void 0&&(n=!1),x6(this.r,this.g,this.b,n)},e.prototype.toHexString=function(n){return n===void 0&&(n=!1),"#"+this.toHex(n)},e.prototype.toHex8=function(n){return n===void 0&&(n=!1),bj(this.r,this.g,this.b,this.a,n)},e.prototype.toHex8String=function(n){return n===void 0&&(n=!1),"#"+this.toHex8(n)},e.prototype.toHexShortString=function(n){return n===void 0&&(n=!1),this.a===1?this.toHexString(n):this.toHex8String(n)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var n=Math.round(this.r),i=Math.round(this.g),a=Math.round(this.b);return this.a===1?"rgb(".concat(n,", ").concat(i,", ").concat(a,")"):"rgba(".concat(n,", ").concat(i,", ").concat(a,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var n=function(i){return"".concat(Math.round(On(i,255)*100),"%")};return{r:n(this.r),g:n(this.g),b:n(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var n=function(i){return Math.round(On(i,255)*100)};return this.a===1?"rgb(".concat(n(this.r),"%, ").concat(n(this.g),"%, ").concat(n(this.b),"%)"):"rgba(".concat(n(this.r),"%, ").concat(n(this.g),"%, ").concat(n(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var n="#"+x6(this.r,this.g,this.b,!1),i=0,a=Object.entries(Vy);i<a.length;i++){var s=a[i],c=s[0],p=s[1];if(n===p)return c}return!1},e.prototype.toString=function(n){var i=Boolean(n);n=n!=null?n:this.format;var a=!1,s=this.a<1&&this.a>=0,c=!i&&s&&(n.startsWith("hex")||n==="name");return c?n==="name"&&this.a===0?this.toName():this.toRgbString():(n==="rgb"&&(a=this.toRgbString()),n==="prgb"&&(a=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(a=this.toHexString()),n==="hex3"&&(a=this.toHexString(!0)),n==="hex4"&&(a=this.toHex8String(!0)),n==="hex8"&&(a=this.toHex8String()),n==="name"&&(a=this.toName()),n==="hsl"&&(a=this.toHslString()),n==="hsv"&&(a=this.toHsvString()),a||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(n){n===void 0&&(n=10);var i=this.toHsl();return i.l+=n/100,i.l=Fh(i.l),new e(i)},e.prototype.brighten=function(n){n===void 0&&(n=10);var i=this.toRgb();return i.r=Math.max(0,Math.min(255,i.r-Math.round(255*-(n/100)))),i.g=Math.max(0,Math.min(255,i.g-Math.round(255*-(n/100)))),i.b=Math.max(0,Math.min(255,i.b-Math.round(255*-(n/100)))),new e(i)},e.prototype.darken=function(n){n===void 0&&(n=10);var i=this.toHsl();return i.l-=n/100,i.l=Fh(i.l),new e(i)},e.prototype.tint=function(n){return n===void 0&&(n=10),this.mix("white",n)},e.prototype.shade=function(n){return n===void 0&&(n=10),this.mix("black",n)},e.prototype.desaturate=function(n){n===void 0&&(n=10);var i=this.toHsl();return i.s-=n/100,i.s=Fh(i.s),new e(i)},e.prototype.saturate=function(n){n===void 0&&(n=10);var i=this.toHsl();return i.s+=n/100,i.s=Fh(i.s),new e(i)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(n){var i=this.toHsl(),a=(i.h+n)%360;return i.h=a<0?360+a:a,new e(i)},e.prototype.mix=function(n,i){i===void 0&&(i=50);var a=this.toRgb(),s=new e(n).toRgb(),c=i/100,p={r:(s.r-a.r)*c+a.r,g:(s.g-a.g)*c+a.g,b:(s.b-a.b)*c+a.b,a:(s.a-a.a)*c+a.a};return new e(p)},e.prototype.analogous=function(n,i){n===void 0&&(n=6),i===void 0&&(i=30);var a=this.toHsl(),s=360/i,c=[this];for(a.h=(a.h-(s*n>>1)+720)%360;--n;)a.h=(a.h+s)%360,c.push(new e(a));return c},e.prototype.complement=function(){var n=this.toHsl();return n.h=(n.h+180)%360,new e(n)},e.prototype.monochromatic=function(n){n===void 0&&(n=6);for(var i=this.toHsv(),a=i.h,s=i.s,c=i.v,p=[],m=1/n;n--;)p.push(new e({h:a,s,v:c})),c=(c+m)%1;return p},e.prototype.splitcomplement=function(){var n=this.toHsl(),i=n.h;return[this,new e({h:(i+72)%360,s:n.s,l:n.l}),new e({h:(i+216)%360,s:n.s,l:n.l})]},e.prototype.onBackground=function(n){var i=this.toRgb(),a=new e(n).toRgb(),s=i.a+a.a*(1-i.a);return new e({r:(i.r*i.a+a.r*a.a*(1-i.a))/s,g:(i.g*i.a+a.g*a.a*(1-i.a))/s,b:(i.b*i.a+a.b*a.a*(1-i.a))/s,a:s})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(n){for(var i=this.toHsl(),a=i.h,s=[this],c=360/n,p=1;p<n;p++)s.push(new e({h:(a+p*c)%360,s:i.s,l:i.l}));return s},e.prototype.equals=function(n){return this.toRgbString()===new e(n).toRgbString()},e}();function eo(e,n=20){return e.mix("#141414",n).toString()}function Sj(e){const n=Py(),i=Yr("button");return x.computed(()=>{let a={};const s=e.color;if(s){const c=new kj(s),p=e.dark?c.tint(20).toString():eo(c,20);if(e.plain)a=i.cssVarBlock({"bg-color":e.dark?eo(c,90):c.tint(90).toString(),"text-color":s,"border-color":e.dark?eo(c,50):c.tint(50).toString(),"hover-text-color":`var(${i.cssVarName("color-white")})`,"hover-bg-color":s,"hover-border-color":s,"active-bg-color":p,"active-text-color":`var(${i.cssVarName("color-white")})`,"active-border-color":p}),n.value&&(a[i.cssVarBlockName("disabled-bg-color")]=e.dark?eo(c,90):c.tint(90).toString(),a[i.cssVarBlockName("disabled-text-color")]=e.dark?eo(c,50):c.tint(50).toString(),a[i.cssVarBlockName("disabled-border-color")]=e.dark?eo(c,80):c.tint(80).toString());else{const m=e.dark?eo(c,30):c.tint(30).toString(),g=c.isDark()?`var(${i.cssVarName("color-white")})`:`var(${i.cssVarName("color-black")})`;if(a=i.cssVarBlock({"bg-color":s,"text-color":g,"border-color":s,"hover-bg-color":m,"hover-text-color":g,"hover-border-color":m,"active-bg-color":p,"active-border-color":p}),n.value){const y=e.dark?eo(c,50):c.tint(50).toString();a[i.cssVarBlockName("disabled-bg-color")]=y,a[i.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${i.cssVarName("color-white")})`,a[i.cssVarBlockName("disabled-border-color")]=y}}}return a})}const Dj=x.defineComponent({name:"ElButton"}),Ij=x.defineComponent({...Dj,props:Qy,emits:pj,setup(e,{expose:n,emit:i}){const a=e,s=Sj(a),c=Yr("button"),{_ref:p,_size:m,_type:g,_disabled:y,_props:O,shouldAddSpace:E,handleClick:N}=fj(a,i);return n({ref:p,size:m,type:g,disabled:y,shouldAddSpace:E}),(_,S)=>(x.openBlock(),x.createBlock(x.resolveDynamicComponent(_.tag),x.mergeProps({ref_key:"_ref",ref:p},x.unref(O),{class:[x.unref(c).b(),x.unref(c).m(x.unref(g)),x.unref(c).m(x.unref(m)),x.unref(c).is("disabled",x.unref(y)),x.unref(c).is("loading",_.loading),x.unref(c).is("plain",_.plain),x.unref(c).is("round",_.round),x.unref(c).is("circle",_.circle),x.unref(c).is("text",_.text),x.unref(c).is("link",_.link),x.unref(c).is("has-bg",_.bg)],style:x.unref(s),onClick:x.unref(N)}),{default:x.withCtx(()=>[_.loading?(x.openBlock(),x.createElementBlock(x.Fragment,{key:0},[_.$slots.loading?x.renderSlot(_.$slots,"loading",{key:0}):(x.openBlock(),x.createBlock(x.unref(Wr),{key:1,class:x.normalizeClass(x.unref(c).is("loading"))},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(_.loadingIcon)))]),_:1},8,["class"]))],64)):_.icon||_.$slots.icon?(x.openBlock(),x.createBlock(x.unref(Wr),{key:1},{default:x.withCtx(()=>[_.icon?(x.openBlock(),x.createBlock(x.resolveDynamicComponent(_.icon),{key:0})):x.renderSlot(_.$slots,"icon",{key:1})]),_:3})):x.createCommentVNode("v-if",!0),_.$slots.default?(x.openBlock(),x.createElementBlock("span",{key:2,class:x.normalizeClass({[x.unref(c).em("text","expand")]:x.unref(E)})},[x.renderSlot(_.$slots,"default")],2)):x.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var Bj=Za(Ij,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const Oj={size:Qy.size,type:Qy.type},Tj=x.defineComponent({name:"ElButtonGroup"}),Nj=x.defineComponent({...Tj,props:Oj,setup(e){const n=e;x.provide(v6,x.reactive({size:x.toRef(n,"size"),type:x.toRef(n,"type")}));const i=Yr("button");return(a,s)=>(x.openBlock(),x.createElementBlock("div",{class:x.normalizeClass(`${x.unref(i).b("group")}`)},[x.renderSlot(a.$slots,"default")],2))}});var E6=Za(Nj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const Mj=Eh(Bj,{ButtonGroup:E6});ZP(E6);const Wy="_trap-focus-children",ms=[],C6=e=>{var n;if(ms.length===0)return;const i=ms[ms.length-1][Wy];if(i.length>0&&e.code===Ch.tab){if(i.length===1){e.preventDefault(),document.activeElement!==i[0]&&i[0].focus();return}const a=e.shiftKey,s=e.target===i[0],c=e.target===i[i.length-1];if(s&&a&&(e.preventDefault(),i[i.length-1].focus()),c&&!a&&(e.preventDefault(),i[0].focus()),process.env.NODE_ENV==="test"){const p=i.indexOf(e.target);p!==-1&&((n=i[a?p-1:p+1])==null||n.focus())}}},Fj={beforeMount(e){e[Wy]=n3(e),ms.push(e),ms.length<=1&&document.addEventListener("keydown",C6)},updated(e){x.nextTick(()=>{e[Wy]=n3(e)})},unmounted(){ms.shift(),ms.length===0&&document.removeEventListener("keydown",C6)}},Pj=fs({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:mi([String,Array,Object])},zIndex:{type:mi([String,Number])}}),Rj={click:e=>e instanceof MouseEvent},jj="overlay";var Lj=x.defineComponent({name:"ElOverlay",props:Pj,emits:Rj,setup(e,{slots:n,emit:i}){const a=Yr(jj),s=g=>{i("click",g)},{onClick:c,onMousedown:p,onMouseup:m}=Z3(e.customMaskEvent?void 0:s);return()=>e.mask?x.createVNode("div",{class:[a.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:c,onMousedown:p,onMouseup:m},[x.renderSlot(n,"default")],kh.STYLE|kh.CLASS|kh.PROPS,["onClick","onMouseup","onMousedown"]):x.h("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[x.renderSlot(n,"default")])}});const zj=Lj,k6=["success","info","warning","error"],gi=j3({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:hi?document.body:void 0}),Qj=fs({customClass:{type:String,default:gi.customClass},center:{type:Boolean,default:gi.center},dangerouslyUseHTMLString:{type:Boolean,default:gi.dangerouslyUseHTMLString},duration:{type:Number,default:gi.duration},icon:{type:fd,default:gi.icon},id:{type:String,default:gi.id},message:{type:mi([String,Object,Function]),default:gi.message},onClose:{type:mi(Function),required:!1},showClose:{type:Boolean,default:gi.showClose},type:{type:String,values:k6,default:gi.type},offset:{type:Number,default:gi.offset},zIndex:{type:Number,default:gi.zIndex},grouping:{type:Boolean,default:gi.grouping},repeatNum:{type:Number,default:gi.repeatNum}}),Hj={destroy:()=>!0},Er=x.shallowReactive([]),Vj=e=>{const n=Er.findIndex(s=>s.id===e),i=Er[n];let a;return n>0&&(a=Er[n-1]),{current:i,prev:a}},Uj=e=>{const{prev:n}=Vj(e);return n?n.vm.exposed.bottom.value:0},Yj=(e,n)=>Er.findIndex(a=>a.id===e)>0?20:n,Wj=["id"],Gj=["innerHTML"],Jj=x.defineComponent({name:"ElMessage"}),Kj=x.defineComponent({...Jj,props:Qj,emits:Hj,setup(e,{expose:n}){const i=e,{Close:a}=P3,{ns:s,zIndex:c}=r6("message"),{currentZIndex:p,nextZIndex:m}=c,g=x.ref(),y=x.ref(!1),O=x.ref(0);let E;const N=x.computed(()=>i.type?i.type==="error"?"danger":i.type:"info"),_=x.computed(()=>{const F=i.type;return{[s.bm("icon",F)]:F&&wh[F]}}),S=x.computed(()=>i.icon||wh[i.type]||""),M=x.computed(()=>Uj(i.id)),P=x.computed(()=>Yj(i.id,i.offset)+M.value),T=x.computed(()=>O.value+P.value),R=x.computed(()=>({top:`${P.value}px`,zIndex:p.value}));function b(){i.duration!==0&&({stop:E}=j9(()=>{B()},i.duration))}function w(){E==null||E()}function B(){y.value=!1}function Q({code:F}){F===Ch.esc&&B()}return x.onMounted(()=>{b(),m(),y.value=!0}),x.watch(()=>i.repeatNum,()=>{w(),b()}),o3(document,"keydown",Q),l3(g,()=>{O.value=g.value.getBoundingClientRect().height}),n({visible:y,bottom:T,close:B}),(F,H)=>(x.openBlock(),x.createBlock(x.Transition,{name:x.unref(s).b("fade"),onBeforeLeave:F.onClose,onAfterLeave:H[0]||(H[0]=ee=>F.$emit("destroy")),persisted:""},{default:x.withCtx(()=>[x.withDirectives(x.createElementVNode("div",{id:F.id,ref_key:"messageRef",ref:g,class:x.normalizeClass([x.unref(s).b(),{[x.unref(s).m(F.type)]:F.type&&!F.icon},x.unref(s).is("center",F.center),x.unref(s).is("closable",F.showClose),F.customClass]),style:x.normalizeStyle(x.unref(R)),role:"alert",onMouseenter:w,onMouseleave:b},[F.repeatNum>1?(x.openBlock(),x.createBlock(x.unref(dj),{key:0,value:F.repeatNum,type:x.unref(N),class:x.normalizeClass(x.unref(s).e("badge"))},null,8,["value","type","class"])):x.createCommentVNode("v-if",!0),x.unref(S)?(x.openBlock(),x.createBlock(x.unref(Wr),{key:1,class:x.normalizeClass([x.unref(s).e("icon"),x.unref(_)])},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(x.unref(S))))]),_:1},8,["class"])):x.createCommentVNode("v-if",!0),x.renderSlot(F.$slots,"default",{},()=>[F.dangerouslyUseHTMLString?(x.openBlock(),x.createElementBlock(x.Fragment,{key:1},[x.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),x.createElementVNode("p",{class:x.normalizeClass(x.unref(s).e("content")),innerHTML:F.message},null,10,Gj)],2112)):(x.openBlock(),x.createElementBlock("p",{key:0,class:x.normalizeClass(x.unref(s).e("content"))},x.toDisplayString(F.message),3))]),F.showClose?(x.openBlock(),x.createBlock(x.unref(Wr),{key:2,class:x.normalizeClass(x.unref(s).e("closeBtn")),onClick:x.withModifiers(B,["stop"])},{default:x.withCtx(()=>[x.createVNode(x.unref(a))]),_:1},8,["class","onClick"])):x.createCommentVNode("v-if",!0)],46,Wj),[[x.vShow,y.value]])]),_:3},8,["name","onBeforeLeave"]))}});var Xj=Za(Kj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let Zj=1;const S6=e=>{const n=!e||yr(e)||x.isVNode(e)||ls(e)?{message:e}:e,i={...gi,...n};if(!i.appendTo)i.appendTo=document.body;else if(yr(i.appendTo)){let a=document.querySelector(i.appendTo);ky(a)||(Ur("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),a=document.body),i.appendTo=a}return i},$j=e=>{const n=Er.indexOf(e);if(n===-1)return;Er.splice(n,1);const{handler:i}=e;i.close()},qj=({appendTo:e,...n},i)=>{const a=`message_${Zj++}`,s=n.onClose,c=document.createElement("div"),p={...n,id:a,onClose:()=>{s==null||s(),$j(O)},onDestroy:()=>{x.render(null,c)}},m=x.createVNode(Xj,p,ls(p.message)||x.isVNode(p.message)?{default:ls(p.message)?p.message:()=>p.message}:null);m.appContext=i||Kl._context,x.render(m,c),e.appendChild(c.firstElementChild);const g=m.component,O={id:a,vnode:m,vm:g,handler:{close:()=>{g.exposed.visible.value=!1}},props:m.component.props};return O},Kl=(e={},n)=>{if(!hi)return{close:()=>{}};if(ds(My.max)&&Er.length>=My.max)return{close:()=>{}};const i=S6(e);if(i.grouping&&Er.length){const s=Er.find(({vnode:c})=>{var p;return((p=c.props)==null?void 0:p.message)===i.message});if(s)return s.props.repeatNum+=1,s.props.type=i.type,s.handler}const a=qj(i,n);return Er.push(a),a.handler};k6.forEach(e=>{Kl[e]=(n={},i)=>{const a=S6(n);return Kl({...a,type:e},i)}});function eL(e){for(const n of Er)(!e||e===n.props.type)&&n.handler.close()}Kl.closeAll=eL,Kl._context=null;const hd=XP(Kl,"$message"),tL=x.defineComponent({name:"ElMessageBox",directives:{TrapFocus:Fj},components:{ElButton:Mj,ElFocusTrap:aj,ElInput:WR,ElOverlay:zj,ElIcon:Wr,...P3},inheritAttrs:!1,props:{buttonSize:{type:String,validator:$P},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:n}){const{locale:i,zIndex:a,ns:s,size:c}=r6("message-box",x.computed(()=>e.buttonSize)),{t:p}=i,{nextZIndex:m}=a,g=x.ref(!1),y=x.reactive({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:m()}),O=x.computed(()=>{const ye=y.type;return{[s.bm("icon",ye)]:ye&&wh[ye]}}),E=Oy(),N=Oy(),_=x.computed(()=>y.icon||wh[y.type]||""),S=x.computed(()=>!!y.message),M=x.ref(),P=x.ref(),T=x.ref(),R=x.ref(),b=x.ref(),w=x.computed(()=>y.confirmButtonClass);x.watch(()=>y.inputValue,async ye=>{await x.nextTick(),e.boxType==="prompt"&&ye!==null&&se()},{immediate:!0}),x.watch(()=>g.value,ye=>{var _e,W;ye&&(e.boxType!=="prompt"&&(y.autofocus?T.value=(W=(_e=b.value)==null?void 0:_e.$el)!=null?W:M.value:T.value=M.value),y.zIndex=m()),e.boxType==="prompt"&&(ye?x.nextTick().then(()=>{var J;R.value&&R.value.$el&&(y.autofocus?T.value=(J=me())!=null?J:M.value:T.value=M.value)}):(y.editorErrorMessage="",y.validateError=!1))});const B=x.computed(()=>e.draggable);rR(M,P,B),x.onMounted(async()=>{await x.nextTick(),e.closeOnHashChange&&window.addEventListener("hashchange",Q)}),x.onBeforeUnmount(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",Q)});function Q(){!g.value||(g.value=!1,x.nextTick(()=>{y.action&&n("action",y.action)}))}const F=()=>{e.closeOnClickModal&&ne(y.distinguishCancelAndClose?"close":"cancel")},H=Z3(F),ee=ye=>{if(y.inputType!=="textarea")return ye.preventDefault(),ne("confirm")},ne=ye=>{var _e;e.boxType==="prompt"&&ye==="confirm"&&!se()||(y.action=ye,y.beforeClose?(_e=y.beforeClose)==null||_e.call(y,ye,y,Q):Q())},se=()=>{if(e.boxType==="prompt"){const ye=y.inputPattern;if(ye&&!ye.test(y.inputValue||""))return y.editorErrorMessage=y.inputErrorMessage||p("el.messagebox.error"),y.validateError=!0,!1;const _e=y.inputValidator;if(typeof _e=="function"){const W=_e(y.inputValue);if(W===!1)return y.editorErrorMessage=y.inputErrorMessage||p("el.messagebox.error"),y.validateError=!0,!1;if(typeof W=="string")return y.editorErrorMessage=W,y.validateError=!0,!1}}return y.editorErrorMessage="",y.validateError=!1,!0},me=()=>{const ye=R.value.$refs;return ye.input||ye.textarea},pe=()=>{ne("close")},Se=()=>{e.closeOnPressEscape&&pe()};return e.lockScroll&&_R(g),{...x.toRefs(y),ns:s,overlayEvent:H,visible:g,hasMessage:S,typeClass:O,contentId:E,inputId:N,btnSize:c,iconComponent:_,confirmButtonClasses:w,rootRef:M,focusStartRef:T,headerRef:P,inputRef:R,confirmRef:b,doClose:Q,handleClose:pe,onCloseRequested:Se,handleWrapperClick:F,handleInputEnter:ee,handleAction:ne,t:p}}}),nL=["aria-label","aria-describedby"],iL=["aria-label"],rL=["id"];function aL(e,n,i,a,s,c){const p=x.resolveComponent("el-icon"),m=x.resolveComponent("close"),g=x.resolveComponent("el-input"),y=x.resolveComponent("el-button"),O=x.resolveComponent("el-focus-trap"),E=x.resolveComponent("el-overlay");return x.openBlock(),x.createBlock(x.Transition,{name:"fade-in-linear",onAfterLeave:n[11]||(n[11]=N=>e.$emit("vanish")),persisted:""},{default:x.withCtx(()=>[x.withDirectives(x.createVNode(E,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:x.withCtx(()=>[x.createElementVNode("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:x.normalizeClass(`${e.ns.namespace.value}-overlay-message-box`),onClick:n[8]||(n[8]=(...N)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...N)),onMousedown:n[9]||(n[9]=(...N)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...N)),onMouseup:n[10]||(n[10]=(...N)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...N))},[x.createVNode(O,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:x.withCtx(()=>[x.createElementVNode("div",{ref:"rootRef",class:x.normalizeClass([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:x.normalizeStyle(e.customStyle),tabindex:"-1",onClick:n[7]||(n[7]=x.withModifiers(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(x.openBlock(),x.createElementBlock("div",{key:0,ref:"headerRef",class:x.normalizeClass(e.ns.e("header"))},[x.createElementVNode("div",{class:x.normalizeClass(e.ns.e("title"))},[e.iconComponent&&e.center?(x.openBlock(),x.createBlock(p,{key:0,class:x.normalizeClass([e.ns.e("status"),e.typeClass])},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):x.createCommentVNode("v-if",!0),x.createElementVNode("span",null,x.toDisplayString(e.title),1)],2),e.showClose?(x.openBlock(),x.createElementBlock("button",{key:0,type:"button",class:x.normalizeClass(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:n[0]||(n[0]=N=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:n[1]||(n[1]=x.withKeys(x.withModifiers(N=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[x.createVNode(p,{class:x.normalizeClass(e.ns.e("close"))},{default:x.withCtx(()=>[x.createVNode(m)]),_:1},8,["class"])],42,iL)):x.createCommentVNode("v-if",!0)],2)):x.createCommentVNode("v-if",!0),x.createElementVNode("div",{id:e.contentId,class:x.normalizeClass(e.ns.e("content"))},[x.createElementVNode("div",{class:x.normalizeClass(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(x.openBlock(),x.createBlock(p,{key:0,class:x.normalizeClass([e.ns.e("status"),e.typeClass])},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):x.createCommentVNode("v-if",!0),e.hasMessage?(x.openBlock(),x.createElementBlock("div",{key:1,class:x.normalizeClass(e.ns.e("message"))},[x.renderSlot(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(x.openBlock(),x.createBlock(x.resolveDynamicComponent(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(x.openBlock(),x.createBlock(x.resolveDynamicComponent(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):x.createCommentVNode("v-if",!0)],2),x.withDirectives(x.createElementVNode("div",{class:x.normalizeClass(e.ns.e("input"))},[x.createVNode(g,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":n[2]||(n[2]=N=>e.inputValue=N),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:x.normalizeClass({invalid:e.validateError}),onKeydown:x.withKeys(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),x.createElementVNode("div",{class:x.normalizeClass(e.ns.e("errormsg")),style:x.normalizeStyle({visibility:e.editorErrorMessage?"visible":"hidden"})},x.toDisplayString(e.editorErrorMessage),7)],2),[[x.vShow,e.showInput]])],10,rL),x.createElementVNode("div",{class:x.normalizeClass(e.ns.e("btns"))},[e.showCancelButton?(x.openBlock(),x.createBlock(y,{key:0,loading:e.cancelButtonLoading,class:x.normalizeClass([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:n[3]||(n[3]=N=>e.handleAction("cancel")),onKeydown:n[4]||(n[4]=x.withKeys(x.withModifiers(N=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):x.createCommentVNode("v-if",!0),x.withDirectives(x.createVNode(y,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:x.normalizeClass([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:n[5]||(n[5]=N=>e.handleAction("confirm")),onKeydown:n[6]||(n[6]=x.withKeys(x.withModifiers(N=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[x.vShow,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,nL)]),_:3},8,["z-index","overlay-class","mask"]),[[x.vShow,e.visible]])]),_:3})}var oL=Za(tL,[["render",aL],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const md=new Map,sL=e=>{let n=document.body;return e.appendTo&&(yr(e.appendTo)&&(n=document.querySelector(e.appendTo)),ky(e.appendTo)&&(n=e.appendTo),ky(n)||(Ur("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),n=document.body)),n},lL=(e,n,i=null)=>{const a=x.createVNode(oL,e,ls(e.message)||x.isVNode(e.message)?{default:ls(e.message)?e.message:()=>e.message}:null);return a.appContext=i,x.render(a,n),sL(e).appendChild(n.firstElementChild),a.component},cL=()=>document.createElement("div"),uL=(e,n)=>{const i=cL();e.onVanish=()=>{x.render(null,i),md.delete(s)},e.onAction=c=>{const p=md.get(s);let m;e.showInput?m={value:s.inputValue,action:c}:m=c,e.callback?e.callback(m,a.proxy):c==="cancel"||c==="close"?e.distinguishCancelAndClose&&c!=="cancel"?p.reject("close"):p.reject("cancel"):p.resolve(m)};const a=lL(e,i,n),s=a.proxy;for(const c in e)bh(e,c)&&!bh(s.$props,c)&&(s[c]=e[c]);return s.visible=!0,s};function Xl(e,n=null){if(!hi)return Promise.reject();let i;return yr(e)||x.isVNode(e)?e={message:e}:i=e.callback,new Promise((a,s)=>{const c=uL(e,n!=null?n:Xl._context);md.set(c,{options:e,callback:i,resolve:a,reject:s})})}const dL=["alert","confirm","prompt"],fL={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};dL.forEach(e=>{Xl[e]=pL(e)});function pL(e){return(n,i,a,s)=>{let c="";return cd(i)?(a=i,c=""):w3(i)?c="":c=i,Xl(Object.assign({title:c,message:n,type:"",...fL[e]},a,{boxType:e}),s)}}Xl.close=()=>{md.forEach((e,n)=>{n.doClose()}),md.clear()},Xl._context=null;const to=Xl;to.install=e=>{to._context=e._context,e.config.globalProperties.$msgbox=to,e.config.globalProperties.$messageBox=to,e.config.globalProperties.$alert=to.alert,e.config.globalProperties.$confirm=to.confirm,e.config.globalProperties.$prompt=to.prompt};const D6=to;var hL=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",[i("el-row",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"foot-item",style:{}},[e.process.status=="todo"?[e.getButton("wf_pass")?i("el-button",{attrs:{type:"success",size:"default",disabled:e.loading},on:{click:function(a){e.$emit("examine",!0,e.getButton("wf_pass").name)}}},[i("span",[e._v(e._s(e.getButton("wf_pass").name))])]):e._e(),e.getButton("wf_reject")?i("el-button",{attrs:{type:"danger",size:"default",disabled:e.loading},on:{click:function(a){e.$emit("examine",!1,e.getButton("wf_reject").name)}}},[i("span",[e._v(e._s(e.getButton("wf_reject").name))])]):e._e(),e.userId==e.process.variables.applyUserId?i("el-button",{attrs:{size:"default",disabled:e.loading},on:{click:function(a){return e.$emit("reminders")}}},[i("span",[e._v("\u50AC\u529E")])]):e._e(),e.getButton("wf_transfer")?i("el-button",{attrs:{type:"primary",size:"default",disabled:e.loading},on:{click:function(a){e.$emit("user-select",{type:"transfer",checkType:"radio",name:e.getButton("wf_transfer").name})}}},[e._v(e._s(e.getButton("wf_transfer").name))]):e._e(),e.getButton("wf_delegate")?i("el-button",{attrs:{type:"warning",size:"default",disabled:e.loading},on:{click:function(a){e.$emit("user-select",{type:"delegate",checkType:"radio",name:e.getButton("wf_delegate").name})}}},[e._v(" "+e._s(e.getButton("wf_delegate").name)+" ")]):e._e(),e.getButton("wf_rollback")?i("el-button",{attrs:{type:"success",size:"default",disabled:e.loading},on:{click:function(a){e.$emit("rollback",e.getButton("wf_rollback").name)}}},[e._v(" "+e._s(e.getButton("wf_rollback").name)+" ")]):e._e(),e.getButton("wf_terminate")?i("el-button",{attrs:{type:"danger",size:"default",disabled:e.loading},on:{click:function(a){return e.$emit("terminate")}}},[e._v(" "+e._s(e.getButton("wf_terminate").name)+" ")]):e._e(),e.process.isMultiInstance&&e.getButton("wf_add_instance")?i("el-button",{attrs:{type:"primary",size:"default",disabled:e.loading},on:{click:function(a){e.$emit("user-select",{type:"addInstance",checkType:"checkbox",name:e.getButton("wf_add_instance").name})}}},[e._v(" "+e._s(e.getButton("wf_add_instance").name)+" ")]):e._e(),e.getButton("wf_cctask")?i("el-button",{attrs:{size:"default",disabled:e.loading},on:{click:function(a){e.$emit("circulate",e.getButton("wf_cctask").name)}}},[i("span",[e._v(e._s(e.getButton("wf_cctask").name))])]):e._e()]:e._e(),e.process.isOwner&&e.process.isReturnable&&!["deleted"].includes(e.process.processIsFinished)?i("el-button",{attrs:{type:"warning",size:"default",disabled:e.loading},on:{click:function(a){return e.$emit("withdraw","\u64A4\u9500")}}},[e._v(" \u64A4\u9500 ")]):e._e(),e.getButton("wf_print")?i("el-button",{attrs:{type:"info",size:"default",disabled:e.loading},on:{click:function(a){return e.$emit("print")}}},[e._v(" "+e._s(e.getButton("wf_print").name)+" ")]):e._e()],2)],1)},mL=[];const MZ="",gL={name:"nf-button",props:{userId:{type:String,default:""},loading:{type:Boolean,default:!1},buttonList:{type:Array,default:()=>[]},process:Object,comment:String},data(){return{isCollapse:!0,nodeForm:{},nodeOption:{column:[{label:"\u8282\u70B9",prop:"nodeId",type:"select",props:{label:"nodeName",value:"nodeId"},span:24,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u56DE\u9000\u8282\u70B9",trigger:"change"}]}]},backNodes:[]}},watch:{"process.taskId":{handler(e){e&&Xe.repository.backNodes({taskId:e}).then(n=>{const i=n.data;this.backNodes=i})},immediate:!0}},methods:{getButton(e){return this.buttonList.find(n=>n.buttonKey==e)}}},I6={};var AL=qt(gL,hL,mL,!1,vL,"1d36c4be",null,null);function vL(e){for(let n in I6)this[n]=I6[n]}const bL=function(){return AL.exports}(),_L=e=>{var n=Object.prototype.toString,i={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"};return e instanceof Element?"element":i[n.call(e)]},Gy=e=>{var n=_L(e),i;if(n==="array")i=[];else if(n==="object")i={};else return e;if(n==="array")for(var a=0,s=e.length;a<s;a++)i.push(Gy(e[a]));else if(n==="object")for(var c in e)i[c]=Gy(e[c]);return i};function B6(e,n="YYYY-MM-DD HH:mm:ss"){return ld(e).format(n)}function yL(e){e=Gy(e);const n={};e.forEach(a=>{n[a.historyActivityId]?n[a.historyActivityId].push(a):n[a.historyActivityId]=[a]});for(let a in n){const s=n[a];if(s.length>1){const c=e.findLast(p=>p.historyActivityId==a);c.assigneeName=Array.from(new Set(s.map(p=>p.assigneeName))).join("/")}}const i=[];return e.forEach(a=>{let{assigneeName:s,createTime:c,endTime:p,comments:m}=a;/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&(c=c.replace(/-/g,"/"),p=p.replace(/-/g,"/"));const g={id:a.historyActivityId,class:!p&&a.historyActivityType!="candidate"?"nodePrimary":""};let y="";if(s||m&&m.length>0){if(y=`<span title='${s}'>${s}</span><br>`,c&&(y+=`<span title='${c}'>${B6(c,"YYYY-MM-DD HH:mm")}</span><br>`),m&&m.length>0){let E,{type:N,fullMessage:_}=m.find(S=>S.action=="AddComment")||{};N=="assigneeComment"&&(E="\u53D8\u66F4\u5BA1\u6838\u4EBA\uFF1A"+_,g.class="nodeWarn"),N=="dispatchComment"&&(E="\u8C03\u5EA6\uFF1A"+_,g.class="nodeWarn"),N=="transferComment"&&(E="\u8F6C\u529E\uFF1A"+_,g.class="nodeWarn"),N=="delegateComment"&&(E="\u59D4\u6258\uFF1A"+_,g.class="nodeWarn"),N=="rollbackComment"&&(E="\u6307\u5B9A\u56DE\u9000\uFF1A"+_,g.class="nodeError"),N=="terminateComment"&&(E="\u7EC8\u6B62\uFF1A"+_,g.class="nodeError"),(N=="addMultiInstanceComment"||(N||"").includes("\u52A0\u7B7E"))&&(E="\u52A0\u7B7E\uFF1A"+_,g.class="nodeWarn"),N=="deleteMultiInstanceComment"&&(E="\u51CF\u7B7E\uFF1A"+_,g.class="nodeError"),N=="withdrawComment"&&(E="\u64A4\u9500\uFF1A"+_,g.class="nodeWarn"),N=="deleteProcessComment"&&(E="\u5220\u9664\u6D41\u7A0B\uFF1A"+_,g.class="nodeError"),N=="cancelProcessComment"&&(E="\u62D2\u7EDD\uFF1A"+_,g.class="nodeError"),N=="comment"&&(E="\u5BA1\u6279\uFF1A"+_,g.class="nodeSuccess"),E&&(y+=`<span title='${E}'>${E}</span>`)}g.tooltip=y}a.historyActivityType=="sequenceFlow"?g.class="lineWarn":!g.class&&a.historyActivityType!="candidate"&&(g.class="nodeSuccess");const O=i.findIndex(E=>E.id==a.historyActivityId);O!=-1?i.splice(O,1,g):i.push(g)}),i}function Jy(e){const n=[],i=[],a=[];return e.routeTxt&&e.routeTxt.length>0&&e.routeTxt.forEach(s=>{s.type==="user"?n.push(...s.ids.filter(c=>c&&c.trim()!=="")):s.type==="post"?i.push(...s.ids):s.type==="dept"&&a.push(...s.ids)}),{intersection:e.assigneeRetain=="true"?1:0,userIds:[...new Set(n)],postIds:[...new Set(i)],deptIds:[...new Set(a)]}}function Ky(e){const n=[];return e.forEach(i=>{let{assigneeName:a,createTime:s,endTime:c,comments:p}=i;/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&(s=s.replace(/-/g,"/"),c=c.replace(/-/g,"/"));const m={id:i.historyActivityId,class:!c&&i.historyActivityType!="candidate"?"nodePrimary":""};let g="";if(a||p&&p.length>0){if(g=`<span title='${a}'>${a}</span><br>`,s&&(g+=`<span title='${s}'>${B6(s,"YYYY-MM-DD HH:mm")}</span><br>`),p&&p.length>0){let O,{type:E,fullMessage:N}=p.find(_=>_.action=="AddComment")||{};E=="assigneeComment"&&(O="\u53D8\u66F4\u5BA1\u6838\u4EBA\uFF1A"+N,m.class="nodeWarn"),E=="dispatchComment"&&(O="\u8C03\u5EA6\uFF1A"+N,m.class="nodeWarn"),E=="transferComment"&&(O="\u8F6C\u529E\uFF1A"+N,m.class="nodeWarn"),E=="delegateComment"&&(O="\u59D4\u6258\uFF1A"+N,m.class="nodeWarn"),E=="rollbackComment"&&(O="\u6307\u5B9A\u56DE\u9000\uFF1A"+N,m.class="nodeError"),E=="terminateComment"&&(O="\u7EC8\u6B62\uFF1A"+N,m.class="nodeError"),(E=="addMultiInstanceComment"||(E||"").includes("\u52A0\u7B7E"))&&(O="\u52A0\u7B7E\uFF1A"+N,m.class="nodeWarn"),E=="deleteMultiInstanceComment"&&(O="\u51CF\u7B7E\uFF1A"+N,m.class="nodeError"),E=="withdrawComment"&&(O="\u64A4\u9500\uFF1A"+N,m.class="nodeWarn"),E=="deleteProcessComment"&&(O="\u5220\u9664\u6D41\u7A0B\uFF1A"+N,m.class="nodeError"),E=="cancelProcessComment"&&(O="\u62D2\u7EDD\uFF1A"+N,m.class="nodeError"),E=="comment"&&(O="\u5BA1\u6279\uFF1A"+N,m.class="nodeSuccess"),O&&(g+=`<span title='${O}'>${O}</span>`)}m.tooltip=g}i.historyActivityType=="sequenceFlow"?m.class="lineWarn":!m.class&&i.historyActivityType!="candidate"&&(m.class="nodeSuccess");const y=n.findIndex(O=>O.id==i.historyActivityId);y!=-1?n.splice(y,1,m):n.push({...i,...m})}),n}var xL=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-row",{attrs:{type:"flex"}},[i("el-timeline",[e._l(e.getColors(e.flowList),function(a,s){return[["candidate","sequenceFlow"].includes(a.historyActivityType)?e._e():i("el-timeline-item",{key:a.id,attrs:{timestamp:a.endTime||a.createTime,placement:"top"}},[i("el-card",{class:[a.endTime?"":"cur-process",e.isHistory?"cur-process-history":"",e.isActive?"cur-process-isActive":""]},[e.isHistory?i("div",{staticClass:"cur-process-history-icon"},[i("svg",{staticClass:"icon",attrs:{t:"1766388445844",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"23729"}},[i("path",{attrs:{d:"M664.064 162.304c-2.56 6.144-0.512 15.36-3.072 22.528-6.656 5.12-12.8 10.752-17.92 16.384 7.68 1.536 15.872 3.072 23.552 6.656 4.096 6.144 6.656 12.288 10.24 18.432 6.144-5.632 11.264-11.776 16.384-17.92 8.704-2.048 16.896-2.56 25.6-5.12-6.144-6.144-8.192-10.24-13.312-16.896 1.536-7.68 4.608-14.848 4.096-22.016-8.192 3.072-15.872 5.12-24.064 7.68-7.68-4.608-14.336-6.144-21.504-9.728z m223.744 386.56c7.168-5.12 13.312-9.728 18.944-15.36-7.68-2.048-15.36-4.096-23.04-7.68-3.584-6.144-5.632-12.288-9.216-18.432-6.144 5.12-11.776 11.264-16.896 16.896-8.704 1.536-16.896 1.024-26.112 3.584 5.632 6.656 7.68 10.752 12.288 17.92-2.048 7.68-5.632 14.848-5.632 22.016 8.192-2.56 16.384-4.096 24.576-6.144 6.656 4.096 14.336 6.656 20.992 10.24 3.072-6.656 1.024-15.872 4.096-23.04z m-302.592-462.848c37.376 7.168 74.752 18.432 111.616 36.352 1.024-1.024 3.072 0 4.096-1.536-2.048-1.024-4.096 0.512-6.144-1.024 2.56-4.096 5.632-3.584 8.704-4.608-1.536-5.632-7.168-0.512-9.728 0-0.512 1.536-0.512 2.56-1.024 3.584-1.536-1.024-3.072 0-4.608-2.048 1.024-3.584 5.12-2.56 7.168-4.608-1.024-0.512 0.512-1.536 0-2.048-35.84-15.872-72.192-28.16-108.032-34.304-1.024 2.048 0.512 4.608 2.048 6.656 1.024 0.512 3.072-1.024 2.56 0-1.024 0.512 1.024 1.536 0 2.048-2.56-0.512-4.608 1.024-6.656 1.536zM329.728 835.584c6.656 4.096 14.336 6.656 20.992 10.24 3.072-6.144 1.536-15.36 4.096-22.528 7.168-5.12 13.312-9.728 18.944-15.36-7.68-2.048-15.36-4.096-23.04-7.68-3.584-6.144-5.632-12.288-9.216-18.432-6.144 5.12-11.776 11.264-16.896 16.896-8.704 1.536-16.896 1.024-26.112 3.584 5.632 6.656 7.68 10.752 12.288 17.92-2.048 7.68-5.632 14.848-5.632 22.016 8.192-3.072 16.384-4.608 24.576-6.656z m174.08 48.128c6.656 4.096 14.336 6.656 20.992 10.24 3.072-6.144 1.536-15.36 4.096-22.528 7.168-5.12 13.312-9.728 18.944-15.36-7.68-2.048-15.36-4.096-23.04-7.68-3.584-6.144-5.632-12.288-9.216-18.432-6.144 5.12-11.776 11.264-16.896 16.896-8.704 1.536-16.896 1.024-26.112 3.584 5.12 6.656 7.168 10.24 12.288 17.92-2.048 7.68-5.632 14.848-5.632 22.016 8.704-3.072 16.384-4.096 24.576-6.656zM82.432 485.888c-3.072-0.512-6.144-3.072-10.24-2.048-3.072 38.912 0 81.92 10.24 123.392 2.048-2.56 3.584-6.144 7.168-6.144 0-1.536 0.512-2.56 1.536-4.096-7.68-37.376-9.728-74.24-8.704-111.104zM695.808 829.44c6.656 4.096 14.336 6.656 20.992 10.24 3.072-6.144 1.536-15.36 4.096-22.528 7.168-5.12 13.312-9.728 18.944-15.36-7.68-2.048-15.36-4.096-23.04-7.68-3.584-6.144-5.632-12.288-9.216-18.432-6.144 5.12-11.776 11.264-16.896 16.896-8.704 1.536-16.896 1.024-26.112 3.584 5.12 6.144 7.168 10.24 12.288 17.92-2.048 7.68-5.632 14.848-5.632 22.016 8.192-3.072 16.384-4.608 24.576-6.656z m-256-749.056c1.536 1.024 4.096-1.536 3.584 0.512 1.024 1.536-1.536 2.56-0.512 4.096 39.424-4.096 79.36-5.632 118.272-1.024 3.584-3.072 7.68-6.144 10.752-9.216-9.216-2.56-21.504-3.072-32.256-4.608-10.752-1.024-22.016-1.024-32.768-1.024-22.016 0.512-44.544 1.536-67.072 5.632 0 0-0.512-0.512-0.512 0 1.536 1.536-1.024 3.584 0.512 5.632zM112.64 351.232c14.848-38.4 35.328-75.776 64.512-111.616 28.672-35.84 68.608-71.68 109.568-96.256 41.472-25.088 81.92-40.96 122.368-50.688 2.56-4.096 6.144-8.704 7.68-13.312-6.656 2.048-14.336 2.048-19.968 6.144-7.168-1.024-14.848 3.584-22.016 5.12-7.68 2.048-14.848 4.608-22.528 7.68-14.848 5.632-30.208 12.288-45.056 20.48-30.72 16.384-60.928 35.84-90.624 62.976-89.6 81.408-126.464 172.544-141.312 263.168-0.512 1.536 1.024 2.048 1.024 2.56-2.048 2.048-1.536 4.608-2.048 6.656 1.536 1.536 4.608 3.072 5.12 4.608-1.024 1.536-3.072 3.584-4.096 4.096-2.048-1.024 1.024-2.56-0.512-3.584-1.536 2.56-1.536 7.168-1.536 10.752 0 3.072-2.048 8.192 0.512 9.728 4.608-1.024 0-5.12 0-7.68 4.096-1.536 6.144-4.096 9.728-5.632 3.584-9.728 2.56-19.456 5.12-29.184 1.024-9.728 3.584-18.944 5.632-29.184 5.12-18.432 10.24-37.888 18.432-56.832z m-31.744 108.544c1.024 0 2.56 1.024 2.56 2.048-1.536 1.536-2.048 0-2.56-2.048z m715.776-268.288c29.184 25.088 59.904 62.976 80.384 96.256 41.984 68.096 58.368 134.144 63.488 199.168 3.072 0 6.656 2.56 10.752 5.12 2.048-2.56 0-8.704 0.512-12.288-0.512-4.096-0.512-8.704-1.536-12.8-0.512-8.704-1.536-17.408-3.072-25.6-2.56-17.408-6.656-34.816-11.776-52.224-10.752-34.304-24.576-70.144-47.104-105.472-20.48-34.304-53.76-74.752-84.48-101.376-31.232-28.16-62.976-48.64-95.232-65.024 0 0-0.512-0.512-0.512 0 1.024 4.096-1.024 8.192-1.024 12.288 30.208 14.848 60.416 34.816 89.6 61.952z m24.576 513.024c6.656 4.096 14.336 6.656 20.992 10.24 3.072-6.144 1.536-15.36 4.096-22.528 7.168-5.12 13.312-9.728 18.944-15.36-7.68-2.048-15.36-4.096-23.04-7.68-3.584-6.144-5.632-12.288-9.216-18.432-6.144 5.12-11.776 11.264-16.896 16.896-8.704 1.536-16.896 1.024-26.112 3.584 5.12 6.656 7.168 10.752 12.288 17.92-2.048 7.68-5.632 14.848-5.632 22.016 8.192-3.072 16.384-4.608 24.576-6.656zM701.952 126.464c0-0.512-1.024-3.072-2.048-2.56 0.512 0 0 0.512-0.512 1.536 0.512 0 1.536 0.512 2.56 1.024zM417.792 68.608c-0.512 0-1.536-2.048-2.56-2.56-1.024-4.096 4.096-7.68 1.024-12.288-1.024-0.512-2.048 0-3.072 0 0.512 5.632-2.56 11.776-3.072 17.408 2.56-1.024 6.144-0.512 7.68-2.56z m12.8 19.456c-1.536-4.096 2.56-7.68 1.536-11.776-3.584 0.512-7.168 0.512-10.24 3.072 0 2.56-0.512 5.12-1.536 7.68-2.048 1.024-2.56 2.56-2.048 4.096 4.608-1.536 8.192-2.048 12.288-3.072z m-30.72-29.184c2.56-0.512 3.584 0.512 5.12 2.048 3.584-2.048 2.56-6.656 3.584-9.216-6.144 1.536-12.288 2.56-19.456 5.12-2.048 7.168-6.144 13.824-5.632 21.504 4.096-1.536 8.192-2.048 12.288-4.096 1.536-4.608 2.048-10.24 4.096-15.36z m28.672 8.192c-0.512-1.024-1.536-3.584-3.072-3.072 0 1.536-1.536 2.56-1.024 4.608 1.536-1.024 2.56 0 4.096-1.536z m110.592 56.832c-8.192 3.072-15.872 5.12-24.064 7.68-7.168-3.584-14.336-5.632-21.504-9.216-2.56 6.144-0.512 15.36-3.072 22.528-6.656 5.12-12.8 10.752-17.92 16.384 7.68 1.536 15.872 3.072 23.552 6.656 4.096 6.144 6.656 12.288 10.24 18.432 6.144-5.632 11.264-11.776 16.384-17.92 8.704-2.048 16.896-2.56 25.6-5.12-6.144-6.144-8.192-10.752-13.312-16.896 1.024-7.68 4.096-15.36 4.096-22.528z m44.032-58.368c6.144-4.608 12.288-10.24 16.384-15.36-16.896-4.608-34.304-5.632-51.2-7.168-1.536 0.512-3.072 1.536-4.608 2.048-1.536-1.024 0-1.536-1.024-2.56-30.72-2.56-62.464-2.048-93.696 2.56-0.512 2.56-4.608 5.12-5.632 8.192 0 1.536 3.072 3.072 2.048 4.608-2.56 3.072-4.608 0-7.168 2.56-1.536 2.048-1.024 4.096-2.56 6.144 49.664-7.68 98.816-7.68 147.456-1.024z m358.4 432.128c2.56 0.512 5.632 4.096 8.192 3.584 0.512-2.048 2.048-2.56 2.048-4.096-3.584-1.024-7.168-4.608-10.752-6.656 0.512 2.56-0.512 5.12 0.512 7.168z m-468.992 286.208c0.512-1.536 2.56-3.072 4.096-3.072 0-3.072-0.512-4.608-2.048-6.656-32.768-5.632-65.024-16.896-96.768-34.816-1.536 3.072-3.584 6.144-3.072 9.728 31.744 18.944 64.512 29.696 97.792 34.816z m-311.808-252.928c6.144-5.632 11.264-11.776 16.384-17.92 8.704-2.048 16.896-2.56 25.6-5.12-6.144-6.144-8.192-10.24-13.312-16.896 1.536-7.68 4.608-14.848 4.096-22.016-8.192 3.072-15.872 5.12-24.064 7.68-7.168-3.584-14.336-5.632-21.504-9.216-2.56 6.144-0.512 15.36-3.072 22.528-6.656 5.12-12.8 10.752-17.92 16.384 7.68 1.536 15.872 3.072 23.552 6.656 4.096 5.632 7.168 11.776 10.24 17.92z m505.344 210.944c-3.072 0-6.656-3.584-8.192-6.656-14.848 9.728-28.672 15.872-43.52 23.04 0.512 0.512 0 0.512 0.512 1.024 0 3.584-3.072 6.656-3.584 10.752 17.92-7.168 37.376-15.36 54.784-28.16zM243.712 347.136c-5.632-6.144-8.192-10.752-13.312-16.896 1.536-7.68 4.608-14.848 4.096-22.016-8.192 3.072-15.872 5.12-24.064 7.68-7.168-3.584-14.336-5.632-21.504-9.216-2.56 6.144-0.512 15.36-3.072 22.528-6.656 5.12-12.8 10.752-17.92 16.384 7.68 1.536 15.872 3.072 23.552 6.656 4.096 6.144 6.656 12.288 10.24 18.432 6.144-5.632 11.264-11.776 16.384-17.92 8.704-2.56 16.896-3.072 25.6-5.632z m351.744 417.28c-36.864 12.288-73.728 14.336-109.568 11.264 0.512 3.072 1.024 6.144 3.072 9.728 34.816 4.608 70.144 1.024 106.496-10.24 1.024-3.584 1.536-7.168 0-10.752z m-229.376-20.48c1.536-3.072 2.56-7.168 3.072-10.24-6.144-4.096-12.8-8.704-18.944-13.824-3.584-1.024-8.192 3.072-6.656 7.168 7.168 7.68 14.848 11.776 22.528 16.896z m612.864-176.64c1.024-14.848 2.56-29.696 2.56-45.056-1.536-2.56-1.536-4.608-2.048-6.656-5.632-6.144-11.776-7.68-17.92-9.216 1.536 55.808-8.704 110.08-26.112 164.864 5.632 2.048 10.752 5.12 16.896 7.68 12.8-34.816 21.504-69.12 25.088-104.448 1.536-1.536-1.536-1.536-0.512-3.072 0-2.048 1.536-2.048 2.048-4.096z m-368.64 386.048c-136.192 26.112-267.776 1.536-392.192-100.864 1.024 8.192-1.536 16.384 0 25.6 21.504 17.408 43.008 31.744 65.536 44.544 22.528 11.776 44.544 23.552 67.584 30.208 3.072 0 4.608-5.12 7.168-5.12 3.072 3.072 7.168 6.656 6.144 10.752 10.752 3.584 20.992 6.144 31.232 9.216 5.12 1.024 10.24 2.56 15.36 3.584 5.632 1.024 10.752 3.584 15.872 2.048 1.024-2.048-1.536-3.072-1.536-5.12 3.072-3.584 6.656-7.68 10.24-6.656 0.512 2.048 1.536 4.608 1.024 6.144-4.096 1.536-5.632 5.12-8.192 7.168 16.896 3.072 34.304 5.632 51.2 6.656-0.512-3.072 4.096-5.12 5.632-7.68 6.656 2.048 13.312 1.536 19.456 4.096-0.512 1.536-0.512 3.072-1.024 4.608 13.824 1.536 27.136 0 40.96-0.512 1.024-2.048 1.536-1.536 3.072-1.536 0.512-2.56-1.536-6.144 0-9.216 3.584-0.512 7.68 0 9.728 3.072-2.048 2.56 0 4.096 0 7.168 15.872-1.024 31.744-3.584 47.616-7.168-1.536-4.096 1.024-8.192 0-11.776 1.536-0.512 2.56 0 4.096-1.536 2.56-2.56 0-5.12 1.024-7.68z m145.408-327.68s0-0.512 0 0l-1.024 1.024c-5.12 12.288-14.848 25.088-19.968 36.352-0.512 2.048-2.56 1.024-3.072 2.56-14.336 19.968-32.768 39.424-55.808 57.344 1.536 1.536 2.56 2.56 3.072 4.096 1.024 1.536 0 5.12 1.024 5.12 38.912-29.184 65.536-65.024 81.92-98.304-1.024-2.56-3.584-7.168-6.144-8.192zM264.704 409.088c7.68-20.992 19.456-40.96 34.816-61.44-1.024-4.096 0.512-7.68-0.512-11.264-1.536 0.512-2.56 0-4.096 0.512-18.432 23.552-31.744 47.616-41.472 71.68 1.536 1.024 1.536 2.56 2.048 3.584-1.536 11.264-5.632 23.04-9.728 34.304-1.024 1.024-3.584 2.048-3.072 4.608-0.512 1.024-1.024-1.536-1.536 0-4.096 14.848-5.632 29.696-6.656 45.056v22.528c1.024 8.192-0.512 15.36 2.56 23.552 2.56 2.048 5.632 2.048 8.704-1.024 1.024-7.68-1.024-15.872-1.024-23.04-11.264-3.584-11.264-20.48 0.512-22.528 0-4.608 2.048-9.728 0.512-13.824 2.048-3.584 1.536-10.752 3.584-15.872 1.024-5.632 1.536-11.776 3.584-17.408 2.048-11.264 5.632-23.04 10.24-33.792 0.512-1.024 0-2.56 0-3.072 0.512-1.024 1.024-1.536 1.536-2.56z m61.44-169.984c6.144-5.632 11.264-11.776 16.384-17.92 8.704-2.048 16.896-2.56 25.6-5.12-6.144-6.144-8.192-10.752-13.312-16.896 1.536-7.68 4.608-14.848 4.096-22.016-8.192 3.072-15.872 5.12-24.064 7.68-7.168-3.584-14.336-5.632-21.504-9.216-2.56 6.144-0.512 15.36-3.072 22.528-6.656 5.12-12.8 10.752-17.92 16.384 7.68 1.536 15.872 3.072 23.552 6.656 4.096 5.632 7.168 12.288 10.24 17.92z m201.728 4.096c28.16 1.536 55.808 8.704 82.944 18.432 2.56-1.024 5.632-4.096 8.192-6.656-29.696-12.288-59.392-19.968-90.112-21.504-1.536 2.048-1.024 6.144-1.024 9.728z m-172.032 39.936c-3.584 1.024-7.68 1.536-9.216 5.632 2.56 0.512-1.536 7.168-4.096 4.608 1.024-1.536 3.584-2.56 4.096-4.096-4.096-1.024-9.728 6.144-12.288 9.216-1.024-1.536-2.56 0-3.584 0.512-9.728 8.704-17.92 16.896-25.6 25.088 2.048 2.56 3.584 6.656 5.12 9.728 9.728-10.752 20.992-20.992 32.256-31.232 0.512-1.024-2.56 0-2.048-1.024 1.024-1.536 3.072-2.048 3.584-3.584 0.512-0.512-3.072 0.512-2.56-0.512 2.048-1.024 3.584-4.096 5.12-3.584-2.56 3.072-1.024 3.584-1.536 7.168 52.736-40.448 102.4-54.272 152.064-57.344 4.096-3.072 5.12-6.656 4.608-10.752-47.104 2.56-94.208 13.824-143.36 46.08-1.024 1.024-0.512 2.56-2.56 4.096z m433.664 268.288c1.536-12.288 3.072-24.576 3.072-36.864 0.512-6.144 0.512-12.288 0-18.432-1.024-6.656 1.536-12.8-3.584-18.944-2.56-0.512-4.096-1.024-6.656 1.024-0.512 0.512-0.512 1.024-1.024 1.536-0.512 11.776 1.536 23.552 1.024 35.328s-1.536 23.552-3.072 35.328c-3.584 23.552-10.752 46.08-19.968 69.12 3.072 0 6.144 2.048 8.704 4.096 10.24-23.552 16.896-47.616 21.504-72.192zM367.104 202.24c0.512-1.024-1.024-2.56-1.024-2.56 0 0.512 0 0.512-0.512 1.024 0.512 0.512 1.024 2.048 1.536 1.536z m299.52 91.136c2.048-0.512 3.072 0 4.608-1.536 1.024-2.048 1.536-4.096 1.024-6.144-10.24-8.704-20.48-15.36-31.744-19.968 0.512 3.584-0.512 7.168-0.512 10.752 9.216 5.12 17.92 11.264 26.624 16.896z m-38.4 642.048c1.024 1.536-1.536 5.12-0.512 4.096 40.448-9.728 80.896-27.136 121.856-53.248-1.024-1.536-3.072-3.072-2.048-4.096 1.024-0.512 2.048 0.512 3.072 0-1.024-1.536-3.072-3.584-3.584-5.12 1.024-1.024 3.584 1.024 3.072-0.512-1.024-0.512-1.536-1.536-2.048-2.56-44.032 27.648-87.552 45.056-130.048 56.32-2.048 2.56-3.584 5.12-6.144 7.68-1.536-1.536-0.512-3.584-2.56-4.608-8.704-1.024-18.432 3.072-27.648 3.584-9.728 1.024-18.944 2.56-28.16 3.072-18.432 1.536-36.352 2.56-54.784 1.536-36.352-1.024-72.192-7.68-108.032-17.92-71.168-22.528-140.8-60.416-207.36-137.728-1.536-1.536-4.096-5.632-6.144-7.168-3.584-0.512-6.144 3.584-9.216 3.072-0.512-5.12 0-10.24-0.512-15.872-38.4-52.736-59.392-103.936-72.704-154.624-2.56-1.024-5.12-5.12-9.216-5.632-1.536 1.536-2.56 2.048-3.072 3.072 1.024 1.536 2.048-1.024 2.56 0-1.536 1.536-1.024 2.048-1.024 3.584 14.336 58.368 40.96 119.808 90.624 180.224 67.072 79.36 141.824 120.32 216.064 142.848 74.752 21.504 151.552 24.064 229.376 5.632 0.512-2.048 4.608-7.68 8.192-5.632z m298.496-269.312c18.432-52.736 27.648-105.984 25.6-160.768-1.536 0.512-4.608 1.024-2.56-1.024-3.072 1.536-5.12-0.512-8.192-1.024 0.512 118.272-34.816 237.568-155.136 341.504-0.512 2.56 0.512 5.632-1.024 8.704-1.024 0-2.56 1.024-3.584 1.024-2.048-0.512-2.048-1.536-3.072-3.584-5.12 4.096-10.24 7.68-15.872 11.776-1.024 2.56-2.56 7.168-5.12 4.608 0.512-0.512 2.048-1.024 1.536-1.536-3.584 3.072-7.168 5.12-10.752 7.68 1.024 2.048 0.512 3.584 2.048 5.12-2.048 1.024 0.512 3.072 0.512 4.608 0 1.024-2.56 0-0.512 1.536 18.944-10.752 40.96-28.672 59.392-45.056 57.856-53.248 92.672-111.104 114.688-169.472 0-1.024-2.048-1.024-1.024-2.56 1.536-1.536 2.048 0 3.072-1.536z m-167.936 210.944c-0.512-1.024 1.024-1.536 2.048-2.56 0 1.024-1.024 1.536-2.048 2.56z m0-5.12c0-1.536 3.072-2.56 4.096-4.096-0.512 2.048-2.048 5.12-4.096 4.096z m125.952-122.88c-1.024 0.512-1.024 0-1.536-1.536 1.024-1.024 1.536-0.512 2.56-1.024 0.512 1.024-1.536 1.536-1.024 2.56z m0-14.336c-0.512 0.512-1.024-1.024-1.536-0.512-1.024-1.024 1.536-1.536 2.048-3.072 1.024 1.536 0 2.56-0.512 3.584zM128 745.984c-22.016-37.376-38.4-74.24-48.128-110.592-20.992-72.704-23.04-143.36-9.728-212.48s41.984-136.704 95.744-202.24c26.624-32.256 61.952-64 99.328-88.576s73.728-40.448 110.08-52.224c4.096-6.656 4.096-13.824 3.072-20.992-55.808 16.384-113.664 44.032-170.496 92.16-72.704 61.44-114.176 132.096-139.264 201.728 4.608 8.704 3.072 18.432-8.192 25.6-3.072 12.288-7.168 24.064-8.704 36.352 1.024 1.536 3.072 0.512 2.048 2.56-1.024 0-1.536-1.536-2.048-1.536C46.08 442.368 43.52 469.504 43.008 496.64c-0.512 13.312-0.512 27.136 0.512 40.96 0.512 13.312 1.024 28.16 4.608 40.448 2.048-3.072 2.048-6.656 5.12-9.728 3.072 3.584 0.512 7.168-0.512 10.752l-0.512 8.704c0 2.048-3.072 1.024-3.072 2.56 1.536 9.728 3.584 19.456 6.144 29.184 5.632-1.536 11.264-2.56 16.896-8.192 0.512 3.584-3.072 4.608-3.584 7.168 1.024-1.024 2.56-3.584 4.096-2.56-0.512 3.584-1.024 7.68 1.536 10.752-1.024 3.072-5.12 3.584-7.168 6.656 0 3.072-1.536 5.632-5.12 8.192 15.872 57.856 46.592 119.296 96.768 178.176 7.68 8.192 17.408 18.432 25.6 27.136 4.608 3.584 8.192 8.192 12.8 11.776 2.048 2.56 4.608 4.096 6.656 6.144 1.024 1.024 2.048 2.048 3.072 2.56 0.512 0 1.024 1.536 1.536 1.024 0.512 1.024 1.536 2.048 1.024 0.512-1.024-0.512 2.048-1.536 2.56-2.048 1.536-5.632 1.024-12.288 4.608-16.896-32.256-27.136-65.024-66.56-88.576-103.936zM363.008 66.56c1.024 1.024-0.512 1.536 0 2.56-0.512 1.024-1.024-0.512-1.536-1.024l1.536-1.536z m-3.584 2.56c1.024 1.024 0 2.56 0.512 3.584-0.512 0.512-1.536-1.024-2.048-2.048l1.536-1.536zM65.024 610.816c-0.512-0.512-1.024-0.512-1.536-1.024 1.024-1.024 2.56-2.048 4.096-2.56 1.024 1.536-2.048 2.048-2.56 3.584z m135.68 243.2c-1.024 1.024-2.048 1.024-1.536 2.048-5.12-4.608-10.24-12.288-15.36-17.92 1.024-2.048 2.048 0 3.072-0.512 1.024 6.656 10.24 13.312 13.824 16.384z m404.992-781.824c1.536-0.512 3.072 0 4.096 1.024 3.072-0.512 5.632 1.536 8.192 1.536 6.144 1.536 11.776 3.072 17.408 4.608 11.264 3.584 22.528 6.656 33.792 11.264 22.528 8.192 44.544 18.944 66.56 31.232 43.008 25.088 88.576 61.44 126.976 110.08C931.84 319.488 955.392 408.064 961.024 491.52c6.656 1.536 12.288 6.656 18.944 8.704 1.536-12.8-1.024-26.624-2.048-38.912 0 2.56-1.536 4.608-4.608 3.072l4.608-3.584c-1.024-4.608 0.512-13.312-3.584-14.336 1.536-1.024 2.048-1.536 2.048-2.56-8.704-54.784-26.624-112.64-60.928-170.496-34.304-58.368-89.6-116.224-139.776-148.992-17.408-12.288-34.304-22.016-51.712-31.232-8.704-4.608-17.408-8.704-26.112-12.288-4.608-2.048-8.704-4.096-13.312-5.632-4.096-1.024-9.728-4.608-12.8-3.584-1.536-2.048-3.072-2.048-4.608-2.56-1.536-1.024-2.56 1.024-4.096 1.024-0.512-1.536 1.024-2.048-0.512-3.072-12.8-4.096-26.112-9.216-39.936-11.264 2.048 0.512-0.512 1.536-2.048 2.56-1.536 1.536-2.56-0.512-4.096 1.024-2.048 4.096-9.216 5.632-11.776 10.24-0.512 0.512 0 2.048-1.024 1.536-2.56 0.512 1.024 0 2.048 1.024z m367.616 386.56c1.024 1.536 1.024 2.56 0 3.584-1.536 0.512-2.56 0-3.584 0 0-1.024 2.56-2.56 3.584-3.584z m-4.096-2.048c0 1.024 0.512 2.048 0 3.072-1.536 1.024-2.56 1.024-3.584 0.512 0-1.536 2.56-2.048 3.584-3.584z m-4.096-3.072c0.512 1.024 0.512 2.56 0 3.072-1.536 1.024-2.56 0-3.072 0-0.512-1.024 2.048-1.536 3.072-3.072z m-303.616-383.488l1.024 1.024c-0.512 1.024-1.024 0-2.048 0.512 0-1.024 0.512-1.536 1.024-1.536z m270.848 611.328c2.048-1.536 3.072 1.536 6.144 1.024-1.536-2.56-4.096-4.096-5.12-7.168l-0.512 0.512c-10.752 30.72-28.672 61.44-46.592 92.672-27.136 37.376-59.392 74.24-102.4 107.008-10.752 7.168-20.992 14.848-30.72 20.992-1.536 1.024 0.512 2.048-0.512 2.56-0.512-0.512-1.024-1.536-1.536-0.512 1.536 0.512 1.536 3.584 2.048 5.12-1.024-0.512-2.56-3.072-4.096-4.608-40.96 25.6-80.896 40.448-120.32 51.712-0.512 2.56-4.096 5.632-1.536 8.704 2.56-2.048 7.168-12.8 12.288-10.24-1.024 7.68-11.264 12.8-11.776 20.48 5.12-1.024 10.752-2.048 16.384-4.608 1.536-2.048 4.096-6.656 7.68-6.144 2.048 0.512 0.512 3.072 2.048 4.096 46.592-14.336 95.232-37.376 142.848-73.216 36.864-28.16 68.608-60.928 91.648-92.16-1.536-1.536-4.096-1.024-6.144-3.584-0.512-3.584 2.048-7.68 1.024-11.264l3.072-2.56c1.024 2.56 4.608 5.12 6.144 3.072 1.024-3.584-0.512-7.68 1.024-10.752 4.096 0.512 8.192-2.56 12.288-3.584 1.024-5.12 0-9.728 1.536-14.848-0.512-3.584-1.536-6.656 0-9.728 5.632 1.024 3.072 9.216 5.632 13.824 12.8-20.48 22.528-40.96 31.232-61.44-3.584-3.584-12.8-8.192-11.776-15.36z m-183.296 231.936c-1.024-1.024-0.512-1.536-1.024-2.56 1.024 0 2.048 0.512 3.072 0 0.512 1.536-1.536 2.048-2.048 2.56z m-0.512-6.656c1.024-0.512 2.048 0 3.072 0 0.512 1.536 0.512 3.584 1.024 4.096-2.048 1.024-3.072-3.072-4.096-4.096z m-1.024-5.12c1.024-0.512 2.56 0 3.072 0 1.024 1.536 0.512 3.584 1.536 4.608-1.536 0-3.072-3.072-4.608-4.608z m137.216-123.904c-1.024 0.512-1.536 0-2.048-1.024 1.536-1.024 2.56-1.536 3.584-2.56-0.512 1.536-1.536 2.56-1.536 3.584z m-407.552-142.336l18.432 4.096","p-id":"23730",fill:"#cdcdcd"}}),i("path",{attrs:{d:"M393.216 575.488l-108.032 61.44 27.648 48.128c3.584 6.656 8.704 8.192 15.36 4.096l88.064-49.664c3.072-1.536 5.12-4.096 6.656-7.68 1.024-4.096-3.072-15.872-12.288-34.816l19.456-4.096c10.24 23.04 14.848 37.888 13.824 44.032-2.048 6.144-6.656 11.776-13.312 15.872l-97.28 55.296c-14.336 8.192-26.112 4.608-34.816-10.24L245.76 606.72l16.896-9.728 13.312 24.064 91.136-51.712-23.552-41.472L227.328 593.92l-9.216-15.872 133.12-75.264 41.984 72.704zM439.808 531.456c-1.536 8.192-3.584 16.896-6.144 26.624l-15.872-14.848c6.656-29.696 7.168-60.416 0.512-91.648l19.968-1.536c3.072 15.872 4.608 31.744 4.096 47.616l66.56 117.76-16.896 9.728-52.224-93.696z m43.52-62.976c1.536 20.992 0.512 40.96-2.56 58.88l-19.968-7.68c5.12-25.088 4.096-55.808-2.56-91.136l18.944-5.632c1.536 7.68 3.072 15.872 4.096 25.6l72.192-40.96 9.216 16.384-56.32 31.744 14.336 25.088 49.152-28.16 9.216 15.872-49.152 28.16 14.848 25.6 49.664-28.16 9.216 15.872-49.664 28.16 22.528 39.424-16.896 9.728-70.144-122.368-6.144 3.584zM646.144 322.56c4.608 3.072 9.728 7.168 14.848 11.264l61.44-34.816 9.216 15.872-128 72.704 21.504 38.4c21.504 39.424 32.768 73.728 34.304 102.912l-19.456-4.096c-1.536-25.088-11.776-54.784-31.232-89.6l-30.72-54.272 65.024-36.864c-5.12-3.584-9.728-6.656-13.824-8.704l16.896-12.8zM640 433.152l-10.752-47.104 16.896-6.656 5.632 27.648 18.432-10.752c-3.072-10.752-6.144-22.016-10.752-33.28l16.896-7.168c4.096 10.24 7.168 20.48 9.728 30.72l63.488-35.84 8.192 14.848-67.584 38.912c0.512 2.56 1.536 7.68 2.56 14.848l58.88-33.28 7.68 13.312c2.048 12.8 0 26.624-6.144 41.984 12.8-0.512 28.16-3.072 45.056-6.656v17.408c-20.992 3.584-38.4 5.632-53.248 5.12-7.68 13.312-18.432 27.136-31.744 42.496l-14.848-9.216c11.264-12.8 20.48-24.064 27.648-34.816-12.288-2.048-23.04-5.12-31.232-9.728 0.512 25.6-3.584 48.64-12.8 69.632l-15.872-9.728c10.752-27.648 13.312-58.368 7.68-91.648l-33.792 18.944z m57.856-93.184c11.264 1.024 21.504 2.56 30.72 5.12l-5.12 16.896c-8.192-2.56-18.432-4.608-30.72-6.144l5.12-15.872z m3.584 92.672c9.216 4.608 19.968 7.168 32.768 8.192 5.632-11.264 8.704-22.016 8.704-31.744l-41.472 23.552z","p-id":"23731",fill:"#cdcdcd"}})])]):e._e(),e.isActive?i("div",{staticClass:"cur-process-history-icon"},[i("svg",{attrs:{viewBox:"0 0 200 200",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[i("title",[e._v("\u91CD\u65B0\u6FC0\u6D3B")]),i("g",{attrs:{id:"\u91CD\u65B0\u6FC0\u6D3B",stroke:"none",fill:"none","fill-rule":"evenodd","stroke-width":"1"}},[i("g",{attrs:{id:"\u7F16\u7EC4",fill:"#0088FF"}},[i("path",{attrs:{d:"M129.7,31.7 C129.2,32.9 129.6,34.7 129.1,36.1 C127.8,37.1 126.6,38.2 125.6,39.3 C127.1,39.6 128.7,39.9 130.2,40.6 C131,41.8 131.5,43 132.2,44.2 C133.4,43.1 134.4,41.9 135.4,40.7 C137.1,40.3 138.7,40.2 140.4,39.7 C139.2,38.5 138.8,37.7 137.8,36.4 C138.1,34.9 138.7,33.5 138.6,32.1 C137,32.7 135.5,33.1 133.9,33.6 C132.4,32.7 131.1,32.4 129.7,31.7 L129.7,31.7 Z M173.4,107.2 C174.8,106.2 176,105.3 177.1,104.2 C175.6,103.8 174.1,103.4 172.6,102.7 C171.9,101.5 171.5,100.3 170.8,99.1 C169.6,100.1 168.5,101.3 167.5,102.4 C165.8,102.7 164.2,102.6 162.4,103.1 C163.5,104.4 163.9,105.2 164.8,106.6 C164.4,108.1 163.7,109.5 163.7,110.9 C165.3,110.4 166.9,110.1 168.5,109.7 C169.8,110.5 171.3,111 172.6,111.7 C173.2,110.4 172.8,108.6 173.4,107.2 L173.4,107.2 Z M114.3,16.8 C121.6,18.2 128.9,20.4 136.1,23.9 C136.3,23.7 136.7,23.9 136.9,23.6 C136.5,23.4 136.1,23.7 135.7,23.4 C136.2,22.6 136.8,22.7 137.4,22.5 C137.1,21.4 136,22.4 135.5,22.5 C135.4,22.8 135.4,23 135.3,23.2 C135,23 134.7,23.2 134.4,22.8 C134.6,22.1 135.4,22.3 135.8,21.9 C135.6,21.8 135.9,21.6 135.8,21.5 C128.8,18.4 121.7,16 114.7,14.8 C114.5,15.2 114.8,15.7 115.1,16.1 C115.3,16.2 115.7,15.9 115.6,16.1 C115.4,16.2 115.8,16.4 115.6,16.5 C115.1,16.4 114.7,16.7 114.3,16.8 Z M64.4,163.2 C65.7,164 67.2,164.5 68.5,165.2 C69.1,164 68.8,162.2 69.3,160.8 C70.7,159.8 71.9,158.9 73,157.8 C71.5,157.4 70,157 68.5,156.3 C67.8,155.1 67.4,153.9 66.7,152.7 C65.5,153.7 64.4,154.9 63.4,156 C61.7,156.3 60.1,156.2 58.3,156.7 C59.4,158 59.8,158.8 60.7,160.2 C60.3,161.7 59.6,163.1 59.6,164.5 C61.2,163.9 62.8,163.6 64.4,163.2 L64.4,163.2 Z M98.4,172.6 C99.7,173.4 101.2,173.9 102.5,174.6 C103.1,173.4 102.8,171.6 103.3,170.2 C104.7,169.2 105.9,168.3 107,167.2 C105.5,166.8 104,166.4 102.5,165.7 C101.8,164.5 101.4,163.3 100.7,162.1 C99.5,163.1 98.4,164.3 97.4,165.4 C95.7,165.7 94.1,165.6 92.3,166.1 C93.3,167.4 93.7,168.1 94.7,169.6 C94.3,171.1 93.6,172.5 93.6,173.9 C95.3,173.3 96.8,173.1 98.4,172.6 L98.4,172.6 Z M16.1,94.9 C15.5,94.8 14.9,94.3 14.1,94.5 C13.5,102.1 14.1,110.5 16.1,118.6 C16.5,118.1 16.8,117.4 17.5,117.4 C17.5,117.1 17.6,116.9 17.8,116.6 C16.3,109.3 15.9,102.1 16.1,94.9 L16.1,94.9 Z M135.9,162 C137.2,162.8 138.7,163.3 140,164 C140.6,162.8 140.3,161 140.8,159.6 C142.2,158.6 143.4,157.7 144.5,156.6 C143,156.2 141.5,155.8 140,155.1 C139.3,153.9 138.9,152.7 138.2,151.5 C137,152.5 135.9,153.7 134.9,154.8 C133.2,155.1 131.6,155 129.8,155.5 C130.8,156.7 131.2,157.5 132.2,159 C131.8,160.5 131.1,161.9 131.1,163.3 C132.7,162.7 134.3,162.4 135.9,162 L135.9,162 Z M85.9,15.7 C86.2,15.9 86.7,15.4 86.6,15.8 C86.8,16.1 86.3,16.3 86.5,16.6 C94.2,15.8 102,15.5 109.6,16.4 C110.3,15.8 111.1,15.2 111.7,14.6 C109.9,14.1 107.5,14 105.4,13.7 C103.3,13.5 101.1,13.5 99,13.5 C94.7,13.6 90.3,13.8 85.9,14.6 C85.9,14.6 85.8,14.5 85.8,14.6 C86.1,14.9 85.6,15.3 85.9,15.7 L85.9,15.7 Z M22,68.6 C24.9,61.1 28.9,53.8 34.6,46.8 C40.2,39.8 48,32.8 56,28 C64.1,23.1 72,20 79.9,18.1 C80.4,17.3 81.1,16.4 81.4,15.5 C80.1,15.9 78.6,15.9 77.5,16.7 C76.1,16.5 74.6,17.4 73.2,17.7 C71.7,18.1 70.3,18.6 68.8,19.2 C65.9,20.3 62.9,21.6 60,23.2 C54,26.4 48.1,30.2 42.3,35.5 C24.8,51.4 17.6,69.2 14.7,86.9 C14.6,87.2 14.9,87.3 14.9,87.4 C14.5,87.8 14.6,88.3 14.5,88.7 C14.8,89 15.4,89.3 15.5,89.6 C15.3,89.9 14.9,90.3 14.7,90.4 C14.3,90.2 14.9,89.9 14.6,89.7 C14.3,90.2 14.3,91.1 14.3,91.8 C14.3,92.4 13.9,93.4 14.4,93.7 C15.3,93.5 14.4,92.7 14.4,92.2 C15.2,91.9 15.6,91.4 16.3,91.1 C17,89.2 16.8,87.3 17.3,85.4 C17.5,83.5 18,81.7 18.4,79.7 C19.4,76.1 20.4,72.3 22,68.6 Z M15.8,89.8 C16,89.8 16.3,90 16.3,90.2 C16,90.5 15.9,90.2 15.8,89.8 Z M155.6,37.4 C161.3,42.3 167.3,49.7 171.3,56.2 C179.5,69.5 182.7,82.4 183.7,95.1 C184.3,95.1 185,95.6 185.8,96.1 C186.2,95.6 185.8,94.4 185.9,93.7 C185.8,92.9 185.8,92 185.6,91.2 C185.5,89.5 185.3,87.8 185,86.2 C184.5,82.8 183.7,79.4 182.7,76 C180.6,69.3 177.9,62.3 173.5,55.4 C169.5,48.7 163,40.8 157,35.6 C150.9,30.1 144.7,26.1 138.4,22.9 C138.4,22.9 138.3,22.8 138.3,22.9 C138.5,23.7 138.1,24.5 138.1,25.3 C144,28.2 149.9,32.1 155.6,37.4 Z M160.4,137.6 C161.7,138.4 163.2,138.9 164.5,139.6 C165.1,138.4 164.8,136.6 165.3,135.2 C166.7,134.2 167.9,133.3 169,132.2 C167.5,131.8 166,131.4 164.5,130.7 C163.8,129.5 163.4,128.3 162.7,127.1 C161.5,128.1 160.4,129.3 159.4,130.4 C157.7,130.7 156.1,130.6 154.3,131.1 C155.3,132.4 155.7,133.2 156.7,134.6 C156.3,136.1 155.6,137.5 155.6,138.9 C157.2,138.3 158.8,138 160.4,137.6 L160.4,137.6 Z M137.1,24.7 C137.1,24.6 136.9,24.1 136.7,24.2 C136.8,24.2 136.7,24.3 136.6,24.5 C136.7,24.5 136.9,24.6 137.1,24.7 Z M81.6,13.4 C81.5,13.4 81.3,13 81.1,12.9 C80.9,12.1 81.9,11.4 81.3,10.5 C81.1,10.4 80.9,10.5 80.7,10.5 C80.8,11.6 80.2,12.8 80.1,13.9 C80.6,13.7 81.3,13.8 81.6,13.4 Z M84.1,17.2 C83.8,16.4 84.6,15.7 84.4,14.9 C83.7,15 83,15 82.4,15.5 C82.4,16 82.3,16.5 82.1,17 C81.7,17.2 81.6,17.5 81.7,17.8 C82.6,17.5 83.3,17.4 84.1,17.2 L84.1,17.2 Z M78.1,11.5 C78.6,11.4 78.8,11.6 79.1,11.9 C79.8,11.5 79.6,10.6 79.8,10.1 C78.6,10.4 77.4,10.6 76,11.1 C75.6,12.5 74.8,13.8 74.9,15.3 C75.7,15 76.5,14.9 77.3,14.5 C77.6,13.6 77.7,12.5 78.1,11.5 Z M83.7,13.1 C83.6,12.9 83.4,12.4 83.1,12.5 C83.1,12.8 82.8,13 82.9,13.4 C83.2,13.2 83.4,13.4 83.7,13.1 Z M105.3,24.2 C103.7,24.8 102.2,25.2 100.6,25.7 C99.2,25 97.8,24.6 96.4,23.9 C95.9,25.1 96.3,26.9 95.8,28.3 C94.5,29.3 93.3,30.4 92.3,31.5 C93.8,31.8 95.4,32.1 96.9,32.8 C97.7,34 98.2,35.2 98.9,36.4 C100.1,35.3 101.1,34.1 102.1,32.9 C103.8,32.5 105.4,32.4 107.1,31.9 C105.9,30.7 105.5,29.8 104.5,28.6 C104.7,27.1 105.3,25.6 105.3,24.2 L105.3,24.2 Z M113.9,12.8 C115.1,11.9 116.3,10.8 117.1,9.8 C113.8,8.9 110.4,8.7 107.1,8.4 C106.8,8.5 106.5,8.7 106.2,8.8 C105.9,8.6 106.2,8.5 106,8.3 C100,7.8 93.8,7.9 87.7,8.8 C87.6,9.3 86.8,9.8 86.6,10.4 C86.6,10.7 87.2,11 87,11.3 C86.5,11.9 86.1,11.3 85.6,11.8 C85.3,12.2 85.4,12.6 85.1,13 C94.8,11.5 104.4,11.5 113.9,12.8 Z M183.9,97.2 C184.4,97.3 185,98 185.5,97.9 C185.6,97.5 185.9,97.4 185.9,97.1 C185.2,96.9 184.5,96.2 183.8,95.8 C183.9,96.3 183.7,96.8 183.9,97.2 Z M92.3,153.1 C92.4,152.8 92.8,152.5 93.1,152.5 C93.1,151.9 93,151.6 92.7,151.2 C86.3,150.1 80,147.9 73.8,144.4 C73.5,145 73.1,145.6 73.2,146.3 C79.4,150 85.8,152.1 92.3,153.1 L92.3,153.1 Z M31.4,103.7 C32.6,102.6 33.6,101.4 34.6,100.2 C36.3,99.8 37.9,99.7 39.6,99.2 C38.4,98 38,97.2 37,95.9 C37.3,94.4 37.9,93 37.8,91.6 C36.2,92.2 34.7,92.6 33.1,93.1 C31.7,92.4 30.3,92 28.9,91.3 C28.4,92.5 28.8,94.3 28.3,95.7 C27,96.7 25.8,97.8 24.8,98.9 C26.3,99.2 27.9,99.5 29.4,100.2 C30.2,101.3 30.8,102.5 31.4,103.7 L31.4,103.7 Z M130.1,144.9 C129.5,144.9 128.8,144.2 128.5,143.6 C125.6,145.5 122.9,146.7 120,148.1 C120.1,148.2 120,148.2 120.1,148.3 C120.1,149 119.5,149.6 119.4,150.4 C122.9,149 126.7,147.4 130.1,144.9 Z M47.6,67.8 C46.5,66.6 46,65.7 45,64.5 C45.3,63 45.9,61.6 45.8,60.2 C44.2,60.8 42.7,61.2 41.1,61.7 C39.7,61 38.3,60.6 36.9,59.9 C36.4,61.1 36.8,62.9 36.3,64.3 C35,65.3 33.8,66.4 32.8,67.5 C34.3,67.8 35.9,68.1 37.4,68.8 C38.2,70 38.7,71.2 39.4,72.4 C40.6,71.3 41.6,70.1 42.6,68.9 C44.3,68.4 45.9,68.3 47.6,67.8 L47.6,67.8 Z M116.3,149.3 C109.1,151.7 101.9,152.1 94.9,151.5 C95,152.1 95.1,152.7 95.5,153.4 C102.3,154.3 109.2,153.6 116.3,151.4 C116.5,150.7 116.6,150 116.3,149.3 Z M71.5,145.3 C71.8,144.7 72,143.9 72.1,143.3 C70.9,142.5 69.6,141.6 68.4,140.6 C67.7,140.4 66.8,141.2 67.1,142 C68.5,143.5 70,144.3 71.5,145.3 Z M191.2,110.8 C191.4,107.9 191.7,105 191.7,102 C191.4,101.5 191.4,101.1 191.3,100.7 C190.2,99.5 189,99.2 187.8,98.9 C188.1,109.8 186.1,120.4 182.7,131.1 C183.8,131.5 184.8,132.1 186,132.6 C188.5,125.8 190.2,119.1 190.9,112.2 C191.2,111.9 190.6,111.9 190.8,111.6 C190.8,111.2 191.1,111.2 191.2,110.8 Z M119.2,186.2 C92.6,191.3 66.9,186.5 42.6,166.5 C42.8,168.1 42.3,169.7 42.6,171.5 C46.8,174.9 51,177.7 55.4,180.2 C59.8,182.5 64.1,184.8 68.6,186.1 C69.2,186.1 69.5,185.1 70,185.1 C70.6,185.7 71.4,186.4 71.2,187.2 C73.3,187.9 75.3,188.4 77.3,189 C78.3,189.2 79.3,189.5 80.3,189.7 C81.4,189.9 82.4,190.4 83.4,190.1 C83.6,189.7 83.1,189.5 83.1,189.1 C83.7,188.4 84.4,187.6 85.1,187.8 C85.2,188.2 85.4,188.7 85.3,189 C84.5,189.3 84.2,190 83.7,190.4 C87,191 90.4,191.5 93.7,191.7 C93.6,191.1 94.5,190.7 94.8,190.2 C96.1,190.6 97.4,190.5 98.6,191 C98.5,191.3 98.5,191.6 98.4,191.9 C101.1,192.2 103.7,191.9 106.4,191.8 C106.6,191.4 106.7,191.5 107,191.5 C107.1,191 106.7,190.3 107,189.7 C107.7,189.6 108.5,189.7 108.9,190.3 C108.5,190.8 108.9,191.1 108.9,191.7 C112,191.5 115.1,191 118.2,190.3 C117.9,189.5 118.4,188.7 118.2,188 C118.5,187.9 118.7,188 119,187.7 C119.5,187.2 119,186.7 119.2,186.2 L119.2,186.2 Z M147.6,122.2 C147.6,122.2 147.6,122.1 147.6,122.2 L147.4,122.4 C146.4,124.8 144.5,127.3 143.5,129.5 C143.4,129.9 143,129.7 142.9,130 C140.1,133.9 136.5,137.7 132,141.2 C132.3,141.5 132.5,141.7 132.6,142 C132.8,142.3 132.6,143 132.8,143 C140.4,137.3 145.6,130.3 148.8,123.8 C148.6,123.3 148.1,122.4 147.6,122.2 Z M51.7,79.9 C53.2,75.8 55.5,71.9 58.5,67.9 C58.3,67.1 58.6,66.4 58.4,65.7 C58.1,65.8 57.9,65.7 57.6,65.8 C54,70.4 51.4,75.1 49.5,79.8 C49.8,80 49.8,80.3 49.9,80.5 C49.6,82.7 48.8,85 48,87.2 C47.8,87.4 47.3,87.6 47.4,88.1 C47.3,88.3 47.2,87.8 47.1,88.1 C46.3,91 46,93.9 45.8,96.9 L45.8,101.3 C46,102.9 45.7,104.3 46.3,105.9 C46.8,106.3 47.4,106.3 48,105.7 C48.2,104.2 47.8,102.6 47.8,101.2 C45.6,100.5 45.6,97.2 47.9,96.8 C47.9,95.9 48.3,94.9 48,94.1 C48.4,93.4 48.3,92 48.7,91 C48.9,89.9 49,88.7 49.4,87.6 C49.8,85.4 50.5,83.1 51.4,81 C51.5,80.8 51.4,80.5 51.4,80.4 C51.5,80.2 51.6,80.1 51.7,79.9 L51.7,79.9 Z M63.7,46.7 C64.9,45.6 65.9,44.4 66.9,43.2 C68.6,42.8 70.2,42.7 71.9,42.2 C70.7,41 70.3,40.1 69.3,38.9 C69.6,37.4 70.2,36 70.1,34.6 C68.5,35.2 67,35.6 65.4,36.1 C64,35.4 62.6,35 61.2,34.3 C60.7,35.5 61.1,37.3 60.6,38.7 C59.3,39.7 58.1,40.8 57.1,41.9 C58.6,42.2 60.2,42.5 61.7,43.2 C62.5,44.3 63.1,45.6 63.7,46.7 L63.7,46.7 Z M103.1,47.5 C108.6,47.8 114,49.2 119.3,51.1 C119.8,50.9 120.4,50.3 120.9,49.8 C115.1,47.4 109.3,45.9 103.3,45.6 C103,46 103.1,46.8 103.1,47.5 Z M69.5,55.3 C68.8,55.5 68,55.6 67.7,56.4 C68.2,56.5 67.4,57.8 66.9,57.3 C67.1,57 67.6,56.8 67.7,56.5 C66.9,56.3 65.8,57.7 65.3,58.3 C65.1,58 64.8,58.3 64.6,58.4 C62.7,60.1 61.1,61.7 59.6,63.3 C60,63.8 60.3,64.6 60.6,65.2 C62.5,63.1 64.7,61.1 66.9,59.1 C67,58.9 66.4,59.1 66.5,58.9 C66.7,58.6 67.1,58.5 67.2,58.2 C67.3,58.1 66.6,58.3 66.7,58.1 C67.1,57.9 67.4,57.3 67.7,57.4 C67.2,58 67.5,58.1 67.4,58.8 C77.7,50.9 87.4,48.2 97.1,47.6 C97.9,47 98.1,46.3 98,45.5 C88.8,46 79.6,48.2 70,54.5 C69.8,54.7 69.9,55 69.5,55.3 L69.5,55.3 Z M154.2,107.7 C154.5,105.3 154.8,102.9 154.8,100.5 C154.9,99.3 154.9,98.1 154.8,96.9 C154.6,95.6 155.1,94.4 154.1,93.2 C153.6,93.1 153.3,93 152.8,93.4 C152.7,93.5 152.7,93.6 152.6,93.7 C152.5,96 152.9,98.3 152.8,100.6 C152.7,102.9 152.5,105.2 152.2,107.5 C151.5,112.1 150.1,116.5 148.3,121 C148.9,121 149.5,121.4 150,121.8 C152,117.2 153.3,112.5 154.2,107.7 L154.2,107.7 Z M71.7,39.5 C71.8,39.3 71.5,39 71.5,39 C71.5,39.1 71.5,39.1 71.4,39.2 C71.5,39.3 71.6,39.6 71.7,39.5 Z M130.2,57.3 C130.6,57.2 130.8,57.3 131.1,57 C131.3,56.6 131.4,56.2 131.3,55.8 C129.3,54.1 127.3,52.8 125.1,51.9 C125.2,52.6 125,53.3 125,54 C126.8,55 128.5,56.2 130.2,57.3 Z M122.7,182.7 C122.9,183 122.4,183.7 122.6,183.5 C130.5,181.6 138.4,178.2 146.4,173.1 C146.2,172.8 145.8,172.5 146,172.3 C146.2,172.2 146.4,172.4 146.6,172.3 C146.4,172 146,171.6 145.9,171.3 C146.1,171.1 146.6,171.5 146.5,171.2 C146.3,171.1 146.2,170.9 146.1,170.7 C137.5,176.1 129,179.5 120.7,181.7 C120.3,182.2 120,182.7 119.5,183.2 C119.2,182.9 119.4,182.5 119,182.3 C117.3,182.1 115.4,182.9 113.6,183 C111.7,183.2 109.9,183.5 108.1,183.6 C104.5,183.9 101,184.1 97.4,183.9 C90.3,183.7 83.3,182.4 76.3,180.4 C62.4,176 48.8,168.6 35.8,153.5 C35.5,153.2 35,152.4 34.6,152.1 C33.9,152 33.4,152.8 32.8,152.7 C32.7,151.7 32.8,150.7 32.7,149.6 C25.2,139.3 21.1,129.3 18.5,119.4 C18,119.2 17.5,118.4 16.7,118.3 C16.4,118.6 16.2,118.7 16.1,118.9 C16.3,119.2 16.5,118.7 16.6,118.9 C16.3,119.2 16.4,119.3 16.4,119.6 C19.2,131 24.4,143 34.1,154.8 C47.2,170.3 61.8,178.3 76.3,182.7 C90.9,186.9 105.9,187.4 121.1,183.8 C121.2,183.4 122,182.3 122.7,182.7 L122.7,182.7 Z M181,130.1 C184.6,119.8 186.4,109.4 186,98.7 C185.7,98.8 185.1,98.9 185.5,98.5 C184.9,98.8 184.5,98.4 183.9,98.3 C184,121.4 177.1,144.7 153.6,165 C153.5,165.5 153.7,166.1 153.4,166.7 C153.2,166.7 152.9,166.9 152.7,166.9 C152.3,166.8 152.3,166.6 152.1,166.2 C151.1,167 150.1,167.7 149,168.5 C148.8,169 148.5,169.9 148,169.4 C148.1,169.3 148.4,169.2 148.3,169.1 C147.6,169.7 146.9,170.1 146.2,170.6 C146.4,171 146.3,171.3 146.6,171.6 C146.2,171.8 146.7,172.2 146.7,172.5 C146.7,172.7 146.2,172.5 146.6,172.8 C150.3,170.7 154.6,167.2 158.2,164 C169.5,153.6 176.3,142.3 180.6,130.9 C180.6,130.7 180.2,130.7 180.4,130.4 C180.7,130.1 180.8,130.4 181,130.1 L181,130.1 Z M148.2,171.3 C148.1,171.1 148.4,171 148.6,170.8 C148.6,171 148.4,171.1 148.2,171.3 Z M148.2,170.3 C148.2,170 148.8,169.8 149,169.5 C148.9,169.9 148.6,170.5 148.2,170.3 Z M172.8,146.3 C172.6,146.4 172.6,146.3 172.5,146 C172.7,145.8 172.8,145.9 173,145.8 C173.1,146 172.7,146.1 172.8,146.3 Z M172.8,143.5 C172.7,143.6 172.6,143.3 172.5,143.4 C172.3,143.2 172.8,143.1 172.9,142.8 C173.1,143.1 172.9,143.3 172.8,143.5 L172.8,143.5 Z M25,145.7 C20.7,138.4 17.5,131.2 15.6,124.1 C11.5,109.9 11.1,96.1 13.7,82.6 C16.3,69.1 21.9,55.9 32.4,43.1 C37.6,36.8 44.5,30.6 51.8,25.8 C59.1,21 66.2,17.9 73.3,15.6 C74.1,14.3 74.1,12.9 73.9,11.5 C63,14.7 51.7,20.1 40.6,29.5 C26.4,41.5 18.3,55.3 13.4,68.9 C14.3,70.6 14,72.5 11.8,73.9 C11.2,76.3 10.4,78.6 10.1,81 C10.3,81.3 10.7,81.1 10.5,81.5 C10.3,81.5 10.2,81.2 10.1,81.2 C9,86.4 8.5,91.7 8.4,97 C8.3,99.6 8.3,102.3 8.5,105 C8.6,107.6 8.7,110.5 9.4,112.9 C9.8,112.3 9.8,111.6 10.4,111 C11,111.7 10.5,112.4 10.3,113.1 L10.2,114.8 C10.2,115.2 9.6,115 9.6,115.3 C9.9,117.2 10.3,119.1 10.8,121 C11.9,120.7 13,120.5 14.1,119.4 C14.2,120.1 13.5,120.3 13.4,120.8 C13.6,120.6 13.9,120.1 14.2,120.3 C14.1,121 14,121.8 14.5,122.4 C14.3,123 13.5,123.1 13.1,123.7 C13.1,124.3 12.8,124.8 12.1,125.3 C15.2,136.6 21.2,148.6 31,160.1 C32.5,161.7 34.4,163.7 36,165.4 C36.9,166.1 37.6,167 38.5,167.7 C38.9,168.2 39.4,168.5 39.8,168.9 C40,169.1 40.2,169.3 40.4,169.4 C40.5,169.4 40.6,169.7 40.7,169.6 C40.8,169.8 41,170 40.9,169.7 C40.7,169.6 41.3,169.4 41.4,169.3 C41.7,168.2 41.6,166.9 42.3,166 C36,160.7 29.6,153 25,145.7 L25,145.7 Z M70.9,13 C71.1,13.2 70.8,13.3 70.9,13.5 C70.8,13.7 70.7,13.4 70.6,13.3 L70.9,13 Z M70.2,13.5 C70.4,13.7 70.2,14 70.3,14.2 C70.2,14.3 70,14 69.9,13.8 L70.2,13.5 Z M12.7,119.3 C12.6,119.2 12.5,119.2 12.4,119.1 C12.6,118.9 12.9,118.7 13.2,118.6 C13.4,118.9 12.8,119 12.7,119.3 Z M39.2,166.8 C39,167 38.8,167 38.9,167.2 C37.9,166.3 36.9,164.8 35.9,163.7 C36.1,163.3 36.3,163.7 36.5,163.6 C36.7,164.9 38.5,166.2 39.2,166.8 L39.2,166.8 Z M118.3,14.1 C118.6,14 118.9,14.1 119.1,14.3 C119.7,14.2 120.2,14.6 120.7,14.6 C121.9,14.9 123,15.2 124.1,15.5 C126.3,16.2 128.5,16.8 130.7,17.7 C135.1,19.3 139.4,21.4 143.7,23.8 C152.1,28.7 161,35.8 168.5,45.3 C182,62.4 186.6,79.7 187.7,96 C189,96.3 190.1,97.3 191.4,97.7 C191.7,95.2 191.2,92.5 191,90.1 C191,90.6 190.7,91 190.1,90.7 L191,90 C190.8,89.1 191.1,87.4 190.3,87.2 C190.6,87 190.7,86.9 190.7,86.7 C189,76 185.5,64.7 178.8,53.4 C172.1,42 161.3,30.7 151.5,24.3 C148.1,21.9 144.8,20 141.4,18.2 C139.7,17.3 138,16.5 136.3,15.8 C135.4,15.4 134.6,15 133.7,14.7 C132.9,14.5 131.8,13.8 131.2,14 C130.9,13.6 130.6,13.6 130.3,13.5 C130,13.3 129.8,13.7 129.5,13.7 C129.4,13.4 129.7,13.3 129.4,13.1 C126.9,12.3 124.3,11.3 121.6,10.9 C122,11 121.5,11.2 121.2,11.4 C120.9,11.7 120.7,11.3 120.4,11.6 C120,12.4 118.6,12.7 118.1,13.6 C118,13.7 118.1,14 117.9,13.9 C117.4,14 118.1,13.9 118.3,14.1 L118.3,14.1 Z M190.1,89.6 C190.3,89.9 190.3,90.1 190.1,90.3 C189.8,90.4 189.6,90.3 189.4,90.3 C189.4,90.1 189.9,89.8 190.1,89.6 Z M189.3,89.2 C189.3,89.4 189.4,89.6 189.3,89.8 C189,90 188.8,90 188.6,89.9 C188.6,89.6 189.1,89.5 189.3,89.2 Z M188.5,88.6 C188.6,88.8 188.6,89.1 188.5,89.2 C188.2,89.4 188,89.2 187.9,89.2 C187.8,89 188.3,88.9 188.5,88.6 Z M129.2,13.7 L129.4,13.9 C129.3,14.1 129.2,13.9 129,14 C129,13.8 129.1,13.7 129.2,13.7 Z M182.1,133.1 C182.5,132.8 182.7,133.4 183.3,133.3 C183,132.8 182.5,132.5 182.3,131.9 L182.2,132 C180.1,138 176.6,144 173.1,150.1 C167.8,157.4 161.5,164.6 153.1,171 C151,172.4 149,173.9 147.1,175.1 C146.8,175.3 147.2,175.5 147,175.6 C146.9,175.5 146.8,175.3 146.7,175.5 C147,175.6 147,176.2 147.1,176.5 C146.9,176.4 146.6,175.9 146.3,175.6 C138.3,180.6 130.5,183.5 122.8,185.7 C122.7,186.2 122,186.8 122.5,187.4 C123,187 123.9,184.9 124.9,185.4 C124.7,186.9 122.7,187.9 122.6,189.4 C123.6,189.2 124.7,189 125.8,188.5 C126.1,188.1 126.6,187.2 127.3,187.3 C127.7,187.4 127.4,187.9 127.7,188.1 C136.8,185.3 146.3,180.8 155.6,173.8 C162.8,168.3 169,161.9 173.5,155.8 C173.2,155.5 172.7,155.6 172.3,155.1 C172.2,154.4 172.7,153.6 172.5,152.9 L173.1,152.4 C173.3,152.9 174,153.4 174.3,153 C174.5,152.3 174.2,151.5 174.5,150.9 C175.3,151 176.1,150.4 176.9,150.2 C177.1,149.2 176.9,148.3 177.2,147.3 C177.1,146.6 176.9,146 177.2,145.4 C178.3,145.6 177.8,147.2 178.3,148.1 C180.8,144.1 182.7,140.1 184.4,136.1 C183.7,135.4 181.9,134.5 182.1,133.1 L182.1,133.1 Z M146.3,178.4 C146.1,178.2 146.2,178.1 146.1,177.9 C146.3,177.9 146.5,178 146.7,177.9 C146.8,178.2 146.4,178.3 146.3,178.4 Z M146.2,177.1 C146.4,177 146.6,177.1 146.8,177.1 C146.9,177.4 146.9,177.8 147,177.9 C146.6,178.1 146.4,177.3 146.2,177.1 Z M146,176.1 C146.2,176 146.5,176.1 146.6,176.1 C146.8,176.4 146.7,176.8 146.9,177 C146.6,177 146.3,176.4 146,176.1 Z M172.8,151.9 C172.6,152 172.5,151.9 172.4,151.7 C172.7,151.5 172.9,151.4 173.1,151.2 C173,151.5 172.8,151.7 172.8,151.9 Z M93.2,124.1 L96.8,124.9",id:"\u5F62\u72B6","fill-rule":"nonzero"}}),i("text",{attrs:{id:"\u91CD\u65B0\u6FC0\u6D3B",transform:"translate(99.1901, 99.5228) rotate(-30) translate(-99.1901, -99.5228)","font-family":"PingFangSC-Medium, PingFang SC","font-size":"39","font-weight":"400","letter-spacing":"0.4"}},[i("tspan",{attrs:{x:"20.3900543",y:"113.522759"}},[e._v("\u91CD\u65B0\u6FC0\u6D3B")])])])])])]):e._e(),a.historyActivityType=="endEvent"?i("p",[i("b",[e._v("\u6D41\u7A0B\u5DF2\u7ED3\u675F")])]):a.historyActivityType=="startEvent"?i("p",[i("span",{staticClass:"flow-name"},[e._v(e._s(a.assigneeName||(a.comments&&a.comments.length>0?e.my(a):"")))]),e._v(" \u5728 "),i("span",{staticClass:"flow-time"},[e._v(e._s(a.createTime))]),e._v(" \u53D1\u8D77\u4E86\u6D41\u7A0B ")]):i("p",[i("span",{staticClass:"flow-name"},[e._v(e._s(a.assigneeName||(a.comments&&a.comments.length>0?e.my(a):"")))]),e._v(" \u5728 "),i("span",{staticClass:"flow-time"},[e._v(e._s(a.createTime))]),e._v(" \u5F00\u59CB\u5904\u7406 "),i("span",{staticClass:"flow-node"},[e._v(e._s(a.historyActivityType=="endEvent"?"\u7ED3\u675F":a.historyActivityName||"\u672A\u547D\u540D"))]),e._v(" \u73AF\u8282 ")]),a.historyActivityDurationTime?i("p",{staticClass:"flow-time"},[e._v(" \u4EFB\u52A1\u5386\u65F6 "+e._s(a.historyActivityDurationTime)+" ")]):e._e(),a.comments&&a.comments.length>0?[e._l(a.comments.filter(function(c){return c.action==="AddComment"}),function(c,p){return i("p",{key:p},[p<1?[i("span",{class:["comment-type",a.class]},[e._v(e._s(e.commentMap[c.type]||c.type))]),i("span",{staticClass:"comment-user"},[e._v(e._s(c.userId))]),e._v(": "),i("span",[e._v(" "+e._s(c.fullMessage)+" ")]),a.comments.filter(function(m){return m.action==="AddComment"}).length>1?i("span",{staticStyle:{color:"#1989fa",float:"right"},on:{click:e.handleClick}},[e._v(" "+e._s(e.toggleText)+" "),i("i",{class:[e.isFlag?"el-icon-arrow-up":"el-icon-arrow-down"]}),i("el-icon",[e.isFlag?i("el-icon-arrow-up"):i("el-icon-arrow-down")],1)],1):e._e(),c.time&&e.isFlag?i("p",{staticStyle:{color:"gray","font-size":"12px"}},[e._v(e._s(c.time))]):e._e()]:e._e(),p>0&&e.isFlag?[i("span",{staticClass:"comment-type"},[e._v(e._s(e.commentMap[c.type]||c.type))]),i("span",{staticClass:"comment-user"},[e._v(e._s(c.userId))]),e._v(": "),i("span",[e._v(" "+e._s(c.fullMessage)+" ")]),c.time?i("p",{staticStyle:{color:"gray","font-size":"12px"}},[e._v(e._s(c.time))]):e._e()]:e._e()],2)}),a.attachmentsQianzi&&a.attachmentsQianzi.length>0?[i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[i("span",[e._v("\u7B7E\u5B57: ")]),i("div",{staticStyle:{flex:"1",margin:"-15px 0 0 4px"}},[i("jyr-file-upload",{ref:"fileUpload",refInFor:!0,attrs:{locked:"",fullFileObject:"",showFileName:""},model:{value:a.attachmentsQianzi,callback:function(c){e.$set(a,"attachmentsQianzi",c)},expression:"item.attachmentsQianzi"}})],1)])]:e._e(),a.attachmentsFujian&&a.attachmentsFujian.length>0?[i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[i("span",[e._v("\u9644\u4EF6: ")]),i("div",{staticStyle:{flex:"1",margin:"-15px 0 0 4px"}},[i("jyr-file-upload",{ref:"fileUpload",refInFor:!0,attrs:{locked:"",fullFileObject:"",showFileName:""},model:{value:a.attachmentsFujian,callback:function(c){e.$set(a,"attachmentsFujian",c)},expression:"item.attachmentsFujian"}})],1)])]:e._e()]:e._e(),a.endTime&&a.historyActivityType!="startEvent"?i("p",{staticClass:"flow-time"},[e._v("\u7ED3\u675F\u65F6\u95F4: "+e._s(a.endTime))]):e._e()],2)],1)]})],2)],1)},wL=[];const FZ="",EL={name:"nf-flow",props:{isHistory:{type:Boolean,default:!1},isActive:{type:Boolean,default:!1},flowList:{type:Array,default:()=>[]}},data(){return{getColors:Ky,isFlag:!0,toggleText:"\u6536\u8D77",commentMap:{assigneeComment:"\u53D8\u66F4",dispatchComment:"\u8C03\u5EA6",transferComment:"\u8F6C\u529E",delegateComment:"\u59D4\u6258",rollbackComment:"\u56DE\u9000",terminateComment:"\u7EC8\u6B62",addMultiInstanceComment:"\u52A0\u7B7E",deleteMultiInstanceComment:"\u51CF\u7B7E",withdrawComment:"\u64A4\u9500",recallComment:"\u64A4\u56DE",deleteProcessComment:"\u5220\u9664",skipComment:"\u8DF3\u8FC7",cancelProcessComment:"\u62D2\u7EDD",comment:"\u5BA1\u6279",\u524D\u52A0\u7B7E:"\u52A0\u7B7E",\u540E\u52A0\u7B7E:"\u52A0\u7B7E"}}},methods:{my(e){return e.comments[e.comments.length-1].userId||""},handleClick(){this.isFlag=!this.isFlag,this.toggleText=this.isFlag?"\u6536\u8D77":"\u5C55\u5F00"}}},O6={};var CL=qt(EL,xL,wL,!1,kL,"f93978e6",null,null);function kL(e){for(let n in O6)this[n]=O6[n]}const SL=function(){return CL.exports}();function Gr(e,n){n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}const gd=Object.prototype.toString,DL=Object.prototype.hasOwnProperty;function Xy(e){return e===void 0}function Zl(e){return e!==void 0}function T6(e){return e==null}function Cr(e){return gd.call(e)==="[object Array]"}function gs(e){return gd.call(e)==="[object Object]"}function no(e){return gd.call(e)==="[object Number]"}function As(e){const n=gd.call(e);return n==="[object Function]"||n==="[object AsyncFunction]"||n==="[object GeneratorFunction]"||n==="[object AsyncGeneratorFunction]"||n==="[object Proxy]"}function kr(e){return gd.call(e)==="[object String]"}function $l(e,n){return!T6(e)&&DL.call(e,n)}function Sr(e,n){const i=Zy(n);let a;return We(e,function(s,c){if(i(s,c))return a=s,!1}),a}function IL(e,n){const i=Zy(n);let a=Cr(e)?-1:void 0;return We(e,function(s,c){if(i(s,c))return a=c,!1}),a}function ql(e,n){const i=Zy(n);let a=[];return We(e,function(s,c){i(s,c)&&a.push(s)}),a}function We(e,n){let i,a;if(Xy(e))return;const s=Cr(e)?TL:OL;for(let c in e)if($l(e,c)&&(i=e[c],a=n(i,s(c)),a===!1))return i}function ec(e,n,i){return We(e,function(a,s){i=n(i,a,s)}),i}function N6(e,n){return!!ec(e,function(i,a,s){return i&&n(a,s)},!0)}function M6(e,n){return!!Sr(e,n)}function BL(e,n){let i=[];return We(e,function(a,s){i.push(n(a,s))}),i}function F6(e){return function(n){return N6(e,function(i,a){return n[a]===i})}}function Zy(e){return As(e)?e:n=>n===e}function OL(e){return e}function TL(e){return Number(e)}function NL(e,n){let i,a,s,c;function p(E){let N=Date.now(),_=E?0:c+n-N;if(_>0)return m(_);e.apply(s,a),g()}function m(E){i=setTimeout(p,E)}function g(){i&&clearTimeout(i),i=c=a=s=void 0}function y(){i&&p(!0),g()}function O(...E){c=Date.now(),a=E,s=this,i||m(n)}return O.flush=y,O.cancel=g,O}function io(e,n){return e.bind(n)}function Je(e,...n){return Object.assign(e,...n)}function ML(e,n,i){let a=e;return We(n,function(s,c){if(typeof s!="number"&&typeof s!="string")throw new Error("illegal key type: "+typeof s+". Key should be of type number or string.");if(s==="constructor")throw new Error("illegal key: constructor");if(s==="__proto__")throw new Error("illegal key: __proto__");let p=n[c+1],m=a[s];Zl(p)&&T6(m)&&(m=a[s]=isNaN(+p)?{}:[]),Xy(p)?Xy(i)?delete a[s]:a[s]=i:a=m}),e}function FL(e,n){let i={},a=Object(e);return We(n,function(s){s in a&&(i[s]=e[s])}),i}function PL(e,n){let i={},a=Object(e);return We(a,function(s,c){n.indexOf(c)===-1&&(i[c]=s)}),i}var RL=1e3;function ya(e,n){var i=this;n=n||RL,e.on(["render.shape","render.connection"],n,function(a,s){var c=a.type,p=s.element,m=s.gfx,g=s.attrs;if(i.canRender(p))return c==="render.shape"?i.drawShape(m,p,g):i.drawConnection(m,p,g)}),e.on(["render.getShapePath","render.getConnectionPath"],n,function(a,s){if(i.canRender(s))return a.type==="render.getShapePath"?i.getShapePath(s):i.getConnectionPath(s)})}ya.prototype.canRender=function(e){},ya.prototype.drawShape=function(e,n){},ya.prototype.drawConnection=function(e,n){},ya.prototype.getShapePath=function(e){},ya.prototype.getConnectionPath=function(e){};function Ge(e,n){var i=Ut(e);return i&&typeof i.$instanceOf=="function"&&i.$instanceOf(n)}function jL(e,n){return M6(n,function(i){return Ge(e,i)})}function Ut(e){return e&&e.businessObject||e}function vs(e){return e&&e.di}function bs(e,n){return Ge(e,"bpmn:CallActivity")?!1:Ge(e,"bpmn:SubProcess")?(n=n||vs(e),n&&Ge(n,"bpmndi:BPMNPlane")?!0:n&&!!n.isExpanded):Ge(e,"bpmn:Participant")?!!Ut(e).processRef:!0}function P6(e){if(!(!Ge(e,"bpmn:Participant")&&!Ge(e,"bpmn:Lane"))){var n=vs(e).isHorizontal;return n===void 0?!0:n}}function LL(e){return e&&!!Ut(e).triggeredByEvent}function zL(e){return gs(e)&&$l(e,"waypoints")}var Rh={width:90,height:20},R6=15;function QL(e){return Ge(e,"bpmn:Event")||Ge(e,"bpmn:Gateway")||Ge(e,"bpmn:DataStoreReference")||Ge(e,"bpmn:DataObjectReference")||Ge(e,"bpmn:DataInput")||Ge(e,"bpmn:DataOutput")||Ge(e,"bpmn:SequenceFlow")||Ge(e,"bpmn:MessageFlow")||Ge(e,"bpmn:Group")}function HL(e){var n=e.length/2-1,i=e[Math.floor(n)],a=e[Math.ceil(n+.01)],s=VL(e),c=Math.atan((a.y-i.y)/(a.x-i.x)),p=s.x,m=s.y;return Math.abs(c)<Math.PI/2?m-=R6:p+=R6,{x:p,y:m}}function VL(e){var n=e.length/2-1,i=e[Math.floor(n)],a=e[Math.ceil(n+.01)];return{x:i.x+(a.x-i.x)/2,y:i.y+(a.y-i.y)/2}}function UL(e){return e.waypoints?HL(e.waypoints):Ge(e,"bpmn:Group")?{x:e.x+e.width/2,y:e.y+Rh.height/2}:{x:e.x+e.width/2,y:e.y+e.height+Rh.height/2}}function YL(e,n){var i,a,s,c=e.label;return c&&c.bounds?(s=c.bounds,a={width:Math.max(Rh.width,s.width),height:s.height},i={x:s.x+s.width/2,y:s.y+s.height/2}):(i=UL(n),a=Rh),Je({x:i.x-a.width/2,y:i.y-a.height/2},a)}function WL(e){if(Ge(e,"bpmn:FlowElement")||Ge(e,"bpmn:Participant")||Ge(e,"bpmn:Lane")||Ge(e,"bpmn:SequenceFlow")||Ge(e,"bpmn:MessageFlow")||Ge(e,"bpmn:DataInput")||Ge(e,"bpmn:DataOutput"))return"name";if(Ge(e,"bpmn:TextAnnotation"))return"text";if(Ge(e,"bpmn:Group"))return"categoryValueRef"}function GL(e){var n=e.categoryValueRef;return n&&n.value||""}function jh(e){var n=e.businessObject,i=WL(n);if(i)return i==="categoryValueRef"?GL(n):n[i]||""}function JL(e,n){if(e.ownerDocument!==n.ownerDocument)try{return n.ownerDocument.importNode(e,!0)}catch{}return e}function j6(e,n){return n.appendChild(JL(e,n))}function yn(e,n){return j6(n,e),e}var $y=2,L6={"alignment-baseline":1,"baseline-shift":1,clip:1,"clip-path":1,"clip-rule":1,color:1,"color-interpolation":1,"color-interpolation-filters":1,"color-profile":1,"color-rendering":1,cursor:1,direction:1,display:1,"dominant-baseline":1,"enable-background":1,fill:1,"fill-opacity":1,"fill-rule":1,filter:1,"flood-color":1,"flood-opacity":1,font:1,"font-family":1,"font-size":$y,"font-size-adjust":1,"font-stretch":1,"font-style":1,"font-variant":1,"font-weight":1,"glyph-orientation-horizontal":1,"glyph-orientation-vertical":1,"image-rendering":1,kerning:1,"letter-spacing":1,"lighting-color":1,marker:1,"marker-end":1,"marker-mid":1,"marker-start":1,mask:1,opacity:1,overflow:1,"pointer-events":1,"shape-rendering":1,"stop-color":1,"stop-opacity":1,stroke:1,"stroke-dasharray":1,"stroke-dashoffset":1,"stroke-linecap":1,"stroke-linejoin":1,"stroke-miterlimit":1,"stroke-opacity":1,"stroke-width":$y,"text-anchor":1,"text-decoration":1,"text-rendering":1,"unicode-bidi":1,visibility:1,"word-spacing":1,"writing-mode":1};function KL(e,n){return L6[n]?e.style[n]:e.getAttributeNS(null,n)}function z6(e,n,i){var a=n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),s=L6[a];s?(s===$y&&typeof i=="number"&&(i=String(i)+"px"),e.style[a]=i):e.setAttributeNS(null,n,i)}function XL(e,n){var i=Object.keys(n),a,s;for(a=0,s;s=i[a];a++)z6(e,s,n[s])}function Pt(e,n,i){if(typeof n=="string")if(i!==void 0)z6(e,n,i);else return KL(e,n);else XL(e,n);return e}const ZL=Object.prototype.toString;function Jr(e){return new ro(e)}function ro(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}ro.prototype.add=function(e){return this.list.add(e),this},ro.prototype.remove=function(e){return ZL.call(e)=="[object RegExp]"?this.removeMatching(e):(this.list.remove(e),this)},ro.prototype.removeMatching=function(e){const n=this.array();for(let i=0;i<n.length;i++)e.test(n[i])&&this.remove(n[i]);return this},ro.prototype.toggle=function(e,n){return typeof n<"u"?n!==this.list.toggle(e,n)&&this.list.toggle(e):this.list.toggle(e),this},ro.prototype.array=function(){return Array.from(this.list)},ro.prototype.has=ro.prototype.contains=function(e){return this.list.contains(e)};function $L(e){for(var n;n=e.firstChild;)e.removeChild(n);return e}var qy={svg:"http://www.w3.org/2000/svg"},Q6='<svg xmlns="'+qy.svg+'"';function H6(e){var n=!1;e.substring(0,4)==="<svg"?e.indexOf(qy.svg)===-1&&(e=Q6+e.substring(4)):(e=Q6+">"+e+"</svg>",n=!0);var i=qL(e);if(!n)return i;for(var a=document.createDocumentFragment(),s=i.firstChild;s.firstChild;)a.appendChild(s.firstChild);return a}function qL(e){var n;return n=new DOMParser,n.async=!1,n.parseFromString(e,"text/xml")}function Rt(e,n){var i;return e=e.trim(),e.charAt(0)==="<"?(i=H6(e).firstChild,i=document.importNode(i,!0)):i=document.createElementNS(qy.svg,e),n&&Pt(i,n),i}var e0=null;function t0(){return e0===null&&(e0=Rt("svg")),e0}function V6(e,n){var i,a,s=Object.keys(n);for(i=0;a=s[i];i++)e[a]=n[a];return e}function ez(e,n,i,a,s,c){var p=t0().createSVGMatrix();switch(arguments.length){case 0:return p;case 1:return V6(p,e);case 6:return V6(p,{a:e,b:n,c:i,d:a,e:s,f:c})}}function Ad(e){return e?t0().createSVGTransformFromMatrix(e):t0().createSVGTransform()}var U6=/([&<>]{1})/g,tz=/([&<>\n\r"]{1})/g,nz={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"'"};function n0(e,n){function i(a,s){return nz[s]||s}return e.replace(n,i)}function Y6(e,n){var i,a,s,c,p;switch(e.nodeType){case 3:n.push(n0(e.textContent,U6));break;case 1:if(n.push("<",e.tagName),e.hasAttributes())for(s=e.attributes,i=0,a=s.length;i<a;++i)c=s.item(i),n.push(" ",c.name,'="',n0(c.value,tz),'"');if(e.hasChildNodes()){for(n.push(">"),p=e.childNodes,i=0,a=p.length;i<a;++i)Y6(p.item(i),n);n.push("</",e.tagName,">")}else n.push("/>");break;case 8:n.push("<!--",n0(e.nodeValue,U6),"-->");break;case 4:n.push("<![CDATA[",e.nodeValue,"]]>");break;default:throw new Error("unable to handle node "+e.nodeType)}return n}function iz(e,n){var i=H6(n);if($L(e),!!n){az(i)||(i=i.documentElement);for(var a=oz(i.childNodes),s=0;s<a.length;s++)j6(a[s],e)}}function rz(e){for(var n=e.firstChild,i=[];n;)Y6(n,i),n=n.nextSibling;return i.join("")}function az(e){return e.nodeName==="#document-fragment"}function W6(e,n){if(n!==void 0){try{iz(e,n)}catch(i){throw new Error("error parsing SVG: "+i.message)}return e}else return rz(e)}function oz(e){return Array.prototype.slice.call(e)}function vd(e){var n=e.parentNode;return n&&n.removeChild(e),e}function sz(e,n){return n instanceof SVGMatrix?e.createSVGTransformFromMatrix(n):n}function lz(e,n){var i,a;for(e.clear(),i=0;a=n[i];i++)e.appendItem(sz(e,a))}function bd(e,n){var i=e.transform.baseVal;return n&&(Array.isArray(n)||(n=[n]),lz(i,n)),i.consolidate()}function _s(e){return e.flat().join(",").replace(/,?([A-Za-z]),?/g,"$1")}function cz(e){return["M",e.x,e.y]}function i0(e){return["L",e.x,e.y]}function uz(e,n,i){return["C",e.x,e.y,n.x,n.y,i.x,i.y]}function dz(e,n){const i=e.length,a=[cz(e[0])];for(let s=1;s<i;s++){const c=e[s-1],p=e[s],m=e[s+1];if(!m||!n){a.push(i0(p));continue}const g=Math.min(n,r0(p.x-c.x,p.y-c.y),r0(m.x-p.x,m.y-p.y));if(!g){a.push(i0(p));continue}const y=Lh(p,c,g),O=Lh(p,c,g*.5),E=Lh(p,m,g),N=Lh(p,m,g*.5);a.push(i0(y)),a.push(uz(O,N,E))}return a}function Lh(e,n,i){const a=n.x-e.x,s=n.y-e.y,c=r0(a,s),p=i/c;return{x:e.x+a*p,y:e.y+s*p}}function r0(e,n){return Math.sqrt(Math.pow(e,2)+Math.pow(n,2))}function a0(e,n,i){no(n)&&(i=n,n=null),n||(n={});const a=Rt("path",n);return no(i)&&(a.dataset.cornerRadius=String(i)),G6(a,e)}function G6(e,n){const i=parseInt(e.dataset.cornerRadius,10)||0;return Pt(e,{d:_s(dz(n,i))}),e}var o0="hsl(225, 10%, 15%)",fz="white";function Kr(e,n){return M6(e.eventDefinitions,function(i){return i.$type===n})}function pz(e){return e.$type==="bpmn:IntermediateThrowEvent"||e.$type==="bpmn:EndEvent"}function hz(e){var n=e.dataObjectRef;return e.isCollection||n&&n.isCollection}function st(e,n,i){var a=vs(e);return i||a.get("color:background-color")||a.get("bioc:fill")||n||fz}function ze(e,n,i){var a=vs(e);return i||a.get("color:border-color")||a.get("bioc:stroke")||n||o0}function _d(e,n,i,a){var s=vs(e),c=s.get("label");return a||c&&c.get("color:color")||n||ze(e,i)}function mz(e){var n=e.x+e.width/2,i=e.y+e.height/2,a=e.width/2,s=[["M",n,i],["m",0,-a],["a",a,a,0,1,1,0,2*a],["a",a,a,0,1,1,0,-2*a],["z"]];return _s(s)}function gz(e,n){var i=e.x,a=e.y,s=e.width,c=e.height,p=[["M",i+n,a],["l",s-n*2,0],["a",n,n,0,0,1,n,n],["l",0,c-n*2],["a",n,n,0,0,1,-n,n],["l",n*2-s,0],["a",n,n,0,0,1,-n,-n],["l",0,n*2-c],["a",n,n,0,0,1,n,-n],["z"]];return _s(p)}function Az(e){var n=e.width,i=e.height,a=e.x,s=e.y,c=n/2,p=i/2,m=[["M",a+c,s],["l",c,p],["l",-c,p],["l",-c,-p],["z"]];return _s(m)}function vz(e){var n=e.x,i=e.y,a=e.width,s=e.height,c=[["M",n,i],["l",a,0],["l",0,s],["l",-a,0],["z"]];return _s(c)}function yd(e,n={}){return{width:er(e,n),height:Ai(e,n)}}function er(e,n={}){return $l(n,"width")?n.width:e.width}function Ai(e,n={}){return $l(n,"height")?n.height:e.height}function bz(e,n){return n.forEach(function(i){i&&typeof i!="string"&&!Array.isArray(i)&&Object.keys(i).forEach(function(a){if(a!=="default"&&!(a in e)){var s=Object.getOwnPropertyDescriptor(i,a);Object.defineProperty(e,a,s.get?s:{enumerable:!0,get:function(){return i[a]}})}})}),Object.freeze(e)}const _z=Object.prototype.toString,yz=Object.prototype.hasOwnProperty;function xz(e){return e===void 0}function wz(e){return _z.call(e)==="[object Array]"}function Ez(e,n){return yz.call(e,n)}function J6(e,n){let i,a;if(xz(e))return;const s=wz(e)?kz:Cz;for(let c in e)if(Ez(e,c)&&(i=e[c],a=n(i,s(c)),a===!1))return i}function Cz(e){return e}function kz(e){return Number(e)}function Tn(e,...n){const i=e.style;return J6(n,function(a){!a||J6(a,function(s,c){i[c]=s})}),e}function s0(e,n,i){return arguments.length==2?e.getAttribute(n):i===null?e.removeAttribute(n):(e.setAttribute(n,i),e)}const Sz=Object.prototype.toString;function ys(e){return new ao(e)}function ao(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}ao.prototype.add=function(e){return this.list.add(e),this},ao.prototype.remove=function(e){return Sz.call(e)=="[object RegExp]"?this.removeMatching(e):(this.list.remove(e),this)},ao.prototype.removeMatching=function(e){const n=this.array();for(let i=0;i<n.length;i++)e.test(n[i])&&this.remove(n[i]);return this},ao.prototype.toggle=function(e,n){return typeof n<"u"?n!==this.list.toggle(e,n)&&this.list.toggle(e):this.list.toggle(e),this},ao.prototype.array=function(){return Array.from(this.list)},ao.prototype.has=ao.prototype.contains=function(e){return this.list.contains(e)};function K6(e){for(var n;n=e.firstChild;)e.removeChild(n);return e}function X6(e,n,i){var a=i?e:e.parentNode;return a&&typeof a.closest=="function"&&a.closest(n)||null}var zh={},Qh,l0,c0;function Z6(){Qh=window.addEventListener?"addEventListener":"attachEvent",l0=window.removeEventListener?"removeEventListener":"detachEvent",c0=Qh!=="addEventListener"?"on":""}var Dz=zh.bind=function(e,n,i,a){return Qh||Z6(),e[Qh](c0+n,i,a||!1),i},Iz=zh.unbind=function(e,n,i,a){return l0||Z6(),e[l0](c0+n,i,a||!1),i},xs=bz({__proto__:null,bind:Dz,unbind:Iz,default:zh},[zh]),$6=["focus","blur"];function Bz(e,n,i,a,s){return $6.indexOf(i)!==-1&&(s=!0),xs.bind(e,i,function(c){var p=c.target||c.srcElement;c.delegateTarget=X6(p,n,!0),c.delegateTarget&&a.call(e,c)},s)}function Oz(e,n,i,a){return $6.indexOf(n)!==-1&&(a=!0),xs.unbind(e,n,i,a)}var tc={bind:Bz,unbind:Oz},Tz=Nz,q6=!1,Hh;typeof document<"u"&&(Hh=document.createElement("div"),Hh.innerHTML=' <link/><table></table><a href="/a">a</a><input type="checkbox"/>',q6=!Hh.getElementsByTagName("link").length,Hh=void 0);var an={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:q6?[1,"X<div>","</div>"]:[0,"",""]};an.td=an.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],an.option=an.optgroup=[1,'<select multiple="multiple">',"</select>"],an.thead=an.tbody=an.colgroup=an.caption=an.tfoot=[1,"<table>","</table>"],an.polyline=an.ellipse=an.polygon=an.circle=an.text=an.line=an.path=an.rect=an.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"];function Nz(e,n){if(typeof e!="string")throw new TypeError("String expected");n||(n=document);var i=/<([\w:]+)/.exec(e);if(!i)return n.createTextNode(e);e=e.replace(/^\s+|\s+$/g,"");var a=i[1];if(a=="body"){var g=n.createElement("html");return g.innerHTML=e,g.removeChild(g.lastChild)}var s=Object.prototype.hasOwnProperty.call(an,a)?an[a]:an._default,c=s[0],p=s[1],m=s[2],g=n.createElement("div");for(g.innerHTML=p+e+m;c--;)g=g.lastChild;if(g.firstChild==g.lastChild)return g.removeChild(g.firstChild);for(var y=n.createDocumentFragment();g.firstChild;)y.appendChild(g.removeChild(g.firstChild));return y}var Li=Tz;function xa(e,n){return n=n||document,n.querySelector(e)}function Mz(e,n){return n=n||document,n.querySelectorAll(e)}function nc(e){e.parentNode&&e.parentNode.removeChild(e)}function u0(e,n,i,a,s){var c=Ad();c.setTranslate(n,i);var p=Ad();p.setRotate(a||0,0,0);var m=Ad();m.setScale(s||1,s||1),bd(e,[c,p,m])}function eS(e,n,i){var a=Ad();a.setTranslate(n,i),bd(e,a)}function Fz(e,n){var i=Ad();i.setRotate(n,0,0),bd(e,i)}function Pz(e,n){return n={exports:{}},e(n,n.exports),n.exports}var Rz=Pz(function(e){var n=e.exports=function(i,a){if(a||(a=16),i===void 0&&(i=128),i<=0)return"0";for(var s=Math.log(Math.pow(2,i))/Math.log(a),c=2;s===1/0;c*=2)s=Math.log(Math.pow(2,i/c))/Math.log(a)*c;for(var p=s-Math.floor(s),m="",c=0;c<Math.floor(s);c++){var g=Math.floor(Math.random()*a).toString(a);m=g+m}if(p){var y=Math.pow(a,p),g=Math.floor(Math.random()*y).toString(a);m=g+m}var O=parseInt(m,a);return O!==1/0&&O>=Math.pow(2,i)?n(i,a):m};n.rack=function(i,a,s){var c=function(m){var g=0;do{if(g++>10)if(s)i+=s;else throw new Error("too many ID collisions, use more bits");var y=n(i,a)}while(Object.hasOwnProperty.call(p,y));return p[y]=m,y},p=c.hats={};return c.get=function(m){return c.hats[m]},c.set=function(m,g){return c.hats[m]=g,c},c.bits=i||128,c.base=a||16,c}});function wa(e){if(!(this instanceof wa))return new wa(e);e=e||[128,36,1],this._seed=e.length?Rz.rack(e[0],e[1],e[2]):e}wa.prototype.next=function(e){return this._seed(e||!0)},wa.prototype.nextPrefixed=function(e,n){var i;do i=e+this.next(!0);while(this.assigned(i));return this.claim(i,n),i},wa.prototype.claim=function(e,n){this._seed.set(e,n||!0)},wa.prototype.assigned=function(e){return this._seed.get(e)||!1},wa.prototype.unclaim=function(e){delete this._seed.hats[e]},wa.prototype.clear=function(){var e=this._seed.hats,n;for(n in e)this.unclaim(n)};var jz=new wa,Lz=10,Vh=3,zz=1.5,Uh=10,ic=.95,Qz=1,Hz=.25;function ws(e,n,i,a,s,c,p){ya.call(this,n,p);var m=e&&e.defaultFillColor,g=e&&e.defaultStrokeColor,y=e&&e.defaultLabelColor;function O(j){return i.computeStyle(j,{strokeLinecap:"round",strokeLinejoin:"round",stroke:o0,strokeWidth:2,fill:"white"})}function E(j){return i.computeStyle(j,["no-fill"],{strokeLinecap:"round",strokeLinejoin:"round",stroke:o0,strokeWidth:2})}function N(j,C){var{ref:k={x:0,y:0},scale:X=1,element:te,parentGfx:fe=s._svg}=C,De=Rt("marker",{id:j,viewBox:"0 0 20 20",refX:k.x,refY:k.y,markerWidth:20*X,markerHeight:20*X,orient:"auto"});yn(De,te);var Re=xa(":scope > defs",fe);Re||(Re=Rt("defs"),yn(fe,Re)),yn(Re,De)}function _(j,C,k,X){var te=jz.nextPrefixed("marker-");return S(j,te,C,k,X),"url(#"+te+")"}function S(j,C,k,X,te){if(k==="sequenceflow-end"){var fe=Rt("path",{d:"M 1 5 L 11 10 L 1 15 Z",...O({fill:te,stroke:te,strokeWidth:1})});N(C,{element:fe,ref:{x:11,y:10},scale:.5,parentGfx:j})}if(k==="messageflow-start"){var De=Rt("circle",{cx:6,cy:6,r:3.5,...O({fill:X,stroke:te,strokeWidth:1,strokeDasharray:[1e4,1]})});N(C,{element:De,ref:{x:6,y:6},parentGfx:j})}if(k==="messageflow-end"){var Re=Rt("path",{d:"m 1 5 l 0 -3 l 7 3 l -7 3 z",...O({fill:X,stroke:te,strokeWidth:1,strokeDasharray:[1e4,1]})});N(C,{element:Re,ref:{x:8.5,y:5},parentGfx:j})}if(k==="association-start"){var Ke=Rt("path",{d:"M 11 5 L 1 10 L 11 15",...E({fill:"none",stroke:te,strokeWidth:1.5,strokeDasharray:[1e4,1]})});N(C,{element:Ke,ref:{x:1,y:10},scale:.5,parentGfx:j})}if(k==="association-end"){var _t=Rt("path",{d:"M 1 5 L 11 10 L 1 15",...E({fill:"none",stroke:te,strokeWidth:1.5,strokeDasharray:[1e4,1]})});N(C,{element:_t,ref:{x:11,y:10},scale:.5,parentGfx:j})}if(k==="conditional-flow-marker"){var pt=Rt("path",{d:"M 0 10 L 8 6 L 16 10 L 8 14 Z",...O({fill:X,stroke:te})});N(C,{element:pt,ref:{x:-1,y:10},scale:.5,parentGfx:j})}if(k==="conditional-default-flow-marker"){var Bt=Rt("path",{d:"M 6 4 L 10 16",...O({stroke:te,fill:"none"})});N(C,{element:Bt,ref:{x:0,y:10},scale:.5,parentGfx:j})}}function M(j,C,k,X,te={}){gs(X)&&(te=X,X=0),X=X||0,te=O(te);var fe=C/2,De=k/2,Re=Rt("circle",{cx:fe,cy:De,r:Math.round((C+k)/4-X),...te});return yn(j,Re),Re}function P(j,C,k,X,te,fe){gs(te)&&(fe=te,te=0),te=te||0,fe=O(fe);var De=Rt("rect",{x:te,y:te,width:C-te*2,height:k-te*2,rx:X,ry:X,...fe});return yn(j,De),De}function T(j,C,k,X){var te=C/2,fe=k/2,De=[{x:te,y:0},{x:C,y:fe},{x:te,y:k},{x:0,y:fe}],Re=De.map(function(_t){return _t.x+","+_t.y}).join(" ");X=O(X);var Ke=Rt("polygon",{...X,points:Re});return yn(j,Ke),Ke}function R(j,C,k,X){k=E(k);var te=a0(C,k,X);return yn(j,te),te}function b(j,C,k){return R(j,C,k,5)}function w(j,C,k){k=E(k);var X=Rt("path",{...k,d:C});return yn(j,X),X}function B(j,C,k,X){return w(C,k,Je({"data-marker":j},X))}function Q(j){return K[j]}function F(j){return function(C,k,X){return Q(j)(C,k,X)}}var H={"bpmn:MessageEventDefinition":function(j,C,k={},X){var te=a.getScaledPath("EVENT_MESSAGE",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:k.width||C.width,containerHeight:k.height||C.height,position:{mx:.235,my:.315}}),fe=X?ze(C,g,k.stroke):st(C,m,k.fill),De=X?st(C,m,k.fill):ze(C,g,k.stroke),Re=w(j,te,{fill:fe,stroke:De,strokeWidth:1});return Re},"bpmn:TimerEventDefinition":function(j,C,k={}){var X=k.width||C.width,te=k.height||C.height,fe=k.width?1:2,De=M(j,X,te,.2*te,{fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke),strokeWidth:fe}),Re=a.getScaledPath("EVENT_TIMER_WH",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:X,containerHeight:te,position:{mx:.5,my:.5}});w(j,Re,{stroke:ze(C,g,k.stroke),strokeWidth:fe});for(var Ke=0;Ke<12;Ke++){var _t=a.getScaledPath("EVENT_TIMER_LINE",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:X,containerHeight:te,position:{mx:.5,my:.5}}),pt=X/2,Bt=te/2;w(j,_t,{strokeWidth:1,stroke:ze(C,g,k.stroke),transform:"rotate("+Ke*30+","+Bt+","+pt+")"})}return De},"bpmn:EscalationEventDefinition":function(j,C,k={},X){var te=a.getScaledPath("EVENT_ESCALATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:k.width||C.width,containerHeight:k.height||C.height,position:{mx:.5,my:.2}}),fe=X?ze(C,g,k.stroke):st(C,m,k.fill);return w(j,te,{fill:fe,stroke:ze(C,g,k.stroke),strokeWidth:1})},"bpmn:ConditionalEventDefinition":function(j,C,k={}){var X=a.getScaledPath("EVENT_CONDITIONAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:k.width||C.width,containerHeight:k.height||C.height,position:{mx:.5,my:.222}});return w(j,X,{fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke),strokeWidth:1})},"bpmn:LinkEventDefinition":function(j,C,k={},X){var te=a.getScaledPath("EVENT_LINK",{xScaleFactor:1,yScaleFactor:1,containerWidth:C.width,containerHeight:C.height,position:{mx:.57,my:.263}}),fe=X?ze(C,g,k.stroke):st(C,m,k.fill);return w(j,te,{fill:fe,stroke:ze(C,g,k.stroke),strokeWidth:1})},"bpmn:ErrorEventDefinition":function(j,C,k={},X){var te=a.getScaledPath("EVENT_ERROR",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:k.width||C.width,containerHeight:k.height||C.height,position:{mx:.2,my:.722}}),fe=X?ze(C,g,k.stroke):st(C,m,k.fill);return w(j,te,{fill:fe,stroke:ze(C,g,k.stroke),strokeWidth:1})},"bpmn:CancelEventDefinition":function(j,C,k={},X){var te=a.getScaledPath("EVENT_CANCEL_45",{xScaleFactor:1,yScaleFactor:1,containerWidth:C.width,containerHeight:C.height,position:{mx:.638,my:-.055}}),fe=X?ze(C,g,k.stroke):"none",De=w(j,te,{fill:fe,stroke:ze(C,g,k.stroke),strokeWidth:1});return Fz(De,45),De},"bpmn:CompensateEventDefinition":function(j,C,k={},X){var te=a.getScaledPath("EVENT_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:k.width||C.width,containerHeight:k.height||C.height,position:{mx:.22,my:.5}}),fe=X?ze(C,g,k.stroke):st(C,m,k.fill);return w(j,te,{fill:fe,stroke:ze(C,g,k.stroke),strokeWidth:1})},"bpmn:SignalEventDefinition":function(j,C,k={},X){var te=a.getScaledPath("EVENT_SIGNAL",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:k.width||C.width,containerHeight:k.height||C.height,position:{mx:.5,my:.2}}),fe=X?ze(C,g,k.stroke):st(C,m,k.fill);return w(j,te,{strokeWidth:1,fill:fe,stroke:ze(C,g,k.stroke)})},"bpmn:MultipleEventDefinition":function(j,C,k={},X){var te=a.getScaledPath("EVENT_MULTIPLE",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:k.width||C.width,containerHeight:k.height||C.height,position:{mx:.211,my:.36}}),fe=X?ze(C,g,k.stroke):st(C,m,k.fill);return w(j,te,{fill:fe,stroke:ze(C,g,k.stroke),strokeWidth:1})},"bpmn:ParallelMultipleEventDefinition":function(j,C,k={}){var X=a.getScaledPath("EVENT_PARALLEL_MULTIPLE",{xScaleFactor:1.2,yScaleFactor:1.2,containerWidth:k.width||C.width,containerHeight:k.height||C.height,position:{mx:.458,my:.194}});return w(j,X,{fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke),strokeWidth:1})},"bpmn:TerminateEventDefinition":function(j,C,k={}){var X=M(j,C.width,C.height,8,{fill:ze(C,g,k.stroke),stroke:ze(C,g,k.stroke),strokeWidth:4});return X}};function ee(j,C,k={},X){var te=Ut(j),fe=pz(te),De=X||j;return te.get("eventDefinitions")&&te.get("eventDefinitions").length>1?te.get("parallelMultiple")?H["bpmn:ParallelMultipleEventDefinition"](C,De,k,fe):H["bpmn:MultipleEventDefinition"](C,De,k,fe):Kr(te,"bpmn:MessageEventDefinition")?H["bpmn:MessageEventDefinition"](C,De,k,fe):Kr(te,"bpmn:TimerEventDefinition")?H["bpmn:TimerEventDefinition"](C,De,k,fe):Kr(te,"bpmn:ConditionalEventDefinition")?H["bpmn:ConditionalEventDefinition"](C,De,k,fe):Kr(te,"bpmn:SignalEventDefinition")?H["bpmn:SignalEventDefinition"](C,De,k,fe):Kr(te,"bpmn:EscalationEventDefinition")?H["bpmn:EscalationEventDefinition"](C,De,k,fe):Kr(te,"bpmn:LinkEventDefinition")?H["bpmn:LinkEventDefinition"](C,De,k,fe):Kr(te,"bpmn:ErrorEventDefinition")?H["bpmn:ErrorEventDefinition"](C,De,k,fe):Kr(te,"bpmn:CancelEventDefinition")?H["bpmn:CancelEventDefinition"](C,De,k,fe):Kr(te,"bpmn:CompensateEventDefinition")?H["bpmn:CompensateEventDefinition"](C,De,k,fe):Kr(te,"bpmn:TerminateEventDefinition")?H["bpmn:TerminateEventDefinition"](C,De,k,fe):null}var ne={ParticipantMultiplicityMarker:function(j,C,k={}){var X=er(C,k),te=Ai(C,k),fe=a.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:X,containerHeight:te,position:{mx:(X/2-6)/X,my:(te-15)/te}});B("participant-multiplicity",j,fe,{strokeWidth:2,fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke)})},SubProcessMarker:function(j,C,k={}){var X=P(j,14,14,0,{strokeWidth:1,fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke)});eS(X,C.width/2-7.5,C.height-20);var te=a.getScaledPath("MARKER_SUB_PROCESS",{xScaleFactor:1.5,yScaleFactor:1.5,containerWidth:C.width,containerHeight:C.height,position:{mx:(C.width/2-7.5)/C.width,my:(C.height-20)/C.height}});B("sub-process",j,te,{fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke)})},ParallelMarker:function(j,C,k){var X=er(C,k),te=Ai(C,k),fe=a.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:X,containerHeight:te,position:{mx:(X/2+k.parallel)/X,my:(te-20)/te}});B("parallel",j,fe,{fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke)})},SequentialMarker:function(j,C,k){var X=a.getScaledPath("MARKER_SEQUENTIAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:C.width,containerHeight:C.height,position:{mx:(C.width/2+k.seq)/C.width,my:(C.height-19)/C.height}});B("sequential",j,X,{fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke)})},CompensationMarker:function(j,C,k){var X=a.getScaledPath("MARKER_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:C.width,containerHeight:C.height,position:{mx:(C.width/2+k.compensation)/C.width,my:(C.height-13)/C.height}});B("compensation",j,X,{strokeWidth:1,fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke)})},LoopMarker:function(j,C,k){var X=er(C,k),te=Ai(C,k),fe=a.getScaledPath("MARKER_LOOP",{xScaleFactor:1,yScaleFactor:1,containerWidth:X,containerHeight:te,position:{mx:(X/2+k.loop)/X,my:(te-7)/te}});B("loop",j,fe,{strokeWidth:1.5,fill:"none",stroke:ze(C,g,k.stroke),strokeMiterlimit:.5})},AdhocMarker:function(j,C,k){var X=er(C,k),te=Ai(C,k),fe=a.getScaledPath("MARKER_ADHOC",{xScaleFactor:1,yScaleFactor:1,containerWidth:X,containerHeight:te,position:{mx:(X/2+k.adhoc)/X,my:(te-15)/te}});B("adhoc",j,fe,{strokeWidth:1,fill:ze(C,g,k.stroke),stroke:ze(C,g,k.stroke)})}};function se(j,C,k,X){ne[j](C,k,X)}function me(j,C,k=[],X={}){X={fill:X.fill,stroke:X.stroke,width:er(C,X),height:Ai(C,X)};var te=Ut(C),fe=k.includes("SubProcessMarker");fe?X={...X,seq:-21,parallel:-22,compensation:-25,loop:-18,adhoc:10}:X={...X,seq:-5,parallel:-6,compensation:-7,loop:0,adhoc:-8},te.get("isForCompensation")&&k.push("CompensationMarker"),Ge(te,"bpmn:AdHocSubProcess")&&(k.push("AdhocMarker"),fe||Je(X,{compensation:X.compensation-18}));var De=te.get("loopCharacteristics"),Re=De&&De.get("isSequential");De&&(Je(X,{compensation:X.compensation-18}),k.includes("AdhocMarker")&&Je(X,{seq:-23,loop:-18,parallel:-24}),Re===void 0&&k.push("LoopMarker"),Re===!1&&k.push("ParallelMarker"),Re===!0&&k.push("SequentialMarker")),k.includes("CompensationMarker")&&k.length===1&&Je(X,{compensation:-8}),We(k,function(Ke){se(Ke,j,C,X)})}function pe(j,C,k={}){k=Je({size:{width:100}},k);var X=c.createText(C||"",k);return Jr(X).add("djs-label"),yn(j,X),X}function Se(j,C,k,X={}){var te=Ut(C),fe=yd({x:C.x,y:C.y,width:C.width,height:C.height},X);return pe(j,te.name,{align:k,box:fe,padding:7,style:{fill:_d(C,y,g,X.stroke)}})}function ye(j,C,k={}){var X={width:90,height:30,x:C.width/2+C.x,y:C.height/2+C.y};return pe(j,jh(C),{box:X,fitBox:!0,style:Je({},c.getExternalStyle(),{fill:_d(C,y,g,k.stroke)})})}function _e(j,C,k,X={}){var te=P6(k),fe=pe(j,C,{box:{height:30,width:te?Ai(k,X):er(k,X)},align:"center-middle",style:{fill:_d(k,y,g,X.stroke)}});if(te){var De=-1*Ai(k,X);u0(fe,0,-De,270)}}function W(j,C,k={}){var{width:X,height:te}=yd(C,k);return P(j,X,te,Uh,{...k,fill:st(C,m,k.fill),fillOpacity:ic,stroke:ze(C,g,k.stroke)})}function J(j,C,k={}){var X=Ut(C),te=st(C,m,k.fill),fe=ze(C,g,k.stroke);return(X.get("associationDirection")==="One"||X.get("associationDirection")==="Both")&&(k.markerEnd=_(j,"association-end",te,fe)),X.get("associationDirection")==="Both"&&(k.markerStart=_(j,"association-start",te,fe)),k=gt(k,["markerStart","markerEnd"]),b(j,C.waypoints,{...k,stroke:fe,strokeDasharray:"0, 5"})}function re(j,C,k={}){var X=st(C,m,k.fill),te=ze(C,g,k.stroke),fe=a.getScaledPath("DATA_OBJECT_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:C.width,containerHeight:C.height,position:{mx:.474,my:.296}}),De=w(j,fe,{fill:X,fillOpacity:ic,stroke:te}),Re=Ut(C);if(hz(Re)){var Ke=a.getScaledPath("DATA_OBJECT_COLLECTION_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:C.width,containerHeight:C.height,position:{mx:.33,my:(C.height-18)/C.height}});w(j,Ke,{strokeWidth:2,fill:X,stroke:te})}return De}function ge(j,C,k={}){return M(j,C.width,C.height,{fillOpacity:ic,...k,fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke)})}function Te(j,C,k={}){return T(j,C.width,C.height,{fill:st(C,m,k.fill),fillOpacity:ic,stroke:ze(C,g,k.stroke)})}function le(j,C,k={}){var X=P(j,er(C,k),Ai(C,k),0,{fill:st(C,m,k.fill),fillOpacity:k.fillOpacity||ic,stroke:ze(C,g,k.stroke),strokeWidth:1.5}),te=Ut(C);if(Ge(te,"bpmn:Lane")){var fe=te.get("name");_e(j,fe,C,k)}return X}function he(j,C,k={}){var X=W(j,C,k),te=bs(C);if(LL(C)&&(Pt(X,{strokeDasharray:"0, 5.5",strokeWidth:2.5}),!te)){var fe=Ut(C).flowElements||[],De=fe.filter(Re=>Ge(Re,"bpmn:StartEvent"));De.length===1&&xe(De[0],j,k,C)}return Se(j,C,te?"center-top":"center-middle",k),te?me(j,C,void 0,k):me(j,C,["SubProcessMarker"],k),X}function xe(j,C,k,X){var te=22,fe={fill:st(X,m,k.fill),stroke:ze(X,g,k.stroke),width:te,height:te},De=Ut(j).isInterrupting,Re=De?0:3,Ke=De?1:1.2,_t=20,pt=(te-_t)/2,Bt="translate("+pt+","+pt+")";M(C,_t,_t,{fill:fe.fill,stroke:fe.stroke,strokeWidth:Ke,strokeDasharray:Re,transform:Bt}),ee(j,C,fe,X)}function Fe(j,C,k={}){var X=W(j,C,k);return Se(j,C,"center-middle",k),me(j,C,void 0,k),X}var K=this.handlers={"bpmn:AdHocSubProcess":function(j,C,k={}){return bs(C)?k=gt(k,["fill","stroke","width","height"]):k=gt(k,["fill","stroke"]),he(j,C,k)},"bpmn:Association":function(j,C,k={}){return k=gt(k,["fill","stroke"]),J(j,C,k)},"bpmn:BoundaryEvent":function(j,C,k={}){var{renderIcon:X=!0}=k;k=gt(k,["fill","stroke"]);var te=Ut(C),fe=te.get("cancelActivity");k={strokeWidth:1.5,fill:st(C,m,k.fill),fillOpacity:Qz,stroke:ze(C,g,k.stroke)},fe||(k.strokeDasharray="6");var De=ge(j,C,k);return M(j,C.width,C.height,Vh,{...k,fill:"none"}),X&&ee(C,j,k),De},"bpmn:BusinessRuleTask":function(j,C,k={}){k=gt(k,["fill","stroke"]);var X=Fe(j,C,k),te=a.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN",{abspos:{x:8,y:8}}),fe=w(j,te);Pt(fe,{fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke),strokeWidth:1});var De=a.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER",{abspos:{x:8,y:8}}),Re=w(j,De);return Pt(Re,{fill:ze(C,g,k.stroke),stroke:ze(C,g,k.stroke),strokeWidth:1}),X},"bpmn:CallActivity":function(j,C,k={}){return k=gt(k,["fill","stroke"]),he(j,C,{strokeWidth:5,...k})},"bpmn:ComplexGateway":function(j,C,k={}){k=gt(k,["fill","stroke"]);var X=Te(j,C,k),te=a.getScaledPath("GATEWAY_COMPLEX",{xScaleFactor:.5,yScaleFactor:.5,containerWidth:C.width,containerHeight:C.height,position:{mx:.46,my:.26}});return w(j,te,{fill:ze(C,g,k.stroke),stroke:ze(C,g,k.stroke),strokeWidth:1}),X},"bpmn:DataInput":function(j,C,k={}){k=gt(k,["fill","stroke"]);var X=a.getRawPath("DATA_ARROW"),te=re(j,C,k);return w(j,X,{fill:"none",stroke:ze(C,g,k.stroke),strokeWidth:1}),te},"bpmn:DataInputAssociation":function(j,C,k={}){return k=gt(k,["fill","stroke"]),J(j,C,{...k,markerEnd:_(j,"association-end",st(C,m,k.fill),ze(C,g,k.stroke))})},"bpmn:DataObject":function(j,C,k={}){return k=gt(k,["fill","stroke"]),re(j,C,k)},"bpmn:DataObjectReference":F("bpmn:DataObject"),"bpmn:DataOutput":function(j,C,k={}){k=gt(k,["fill","stroke"]);var X=a.getRawPath("DATA_ARROW"),te=re(j,C,k);return w(j,X,{strokeWidth:1,fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke)}),te},"bpmn:DataOutputAssociation":function(j,C,k={}){return k=gt(k,["fill","stroke"]),J(j,C,{...k,markerEnd:_(j,"association-end",st(C,m,k.fill),ze(C,g,k.stroke))})},"bpmn:DataStoreReference":function(j,C,k={}){k=gt(k,["fill","stroke"]);var X=a.getScaledPath("DATA_STORE",{xScaleFactor:1,yScaleFactor:1,containerWidth:C.width,containerHeight:C.height,position:{mx:0,my:.133}});return w(j,X,{fill:st(C,m,k.fill),fillOpacity:ic,stroke:ze(C,g,k.stroke),strokeWidth:2})},"bpmn:EndEvent":function(j,C,k={}){var{renderIcon:X=!0}=k;k=gt(k,["fill","stroke"]);var te=ge(j,C,{...k,strokeWidth:4});return X&&ee(C,j,k),te},"bpmn:EventBasedGateway":function(j,C,k={}){k=gt(k,["fill","stroke"]);var X=Ut(C),te=Te(j,C,k);M(j,C.width,C.height,C.height*.2,{fill:st(C,"none",k.fill),stroke:ze(C,g,k.stroke),strokeWidth:1});var fe=X.get("eventGatewayType"),De=!!X.get("instantiate");function Re(){var _t=a.getScaledPath("GATEWAY_EVENT_BASED",{xScaleFactor:.18,yScaleFactor:.18,containerWidth:C.width,containerHeight:C.height,position:{mx:.36,my:.44}});w(j,_t,{fill:"none",stroke:ze(C,g,k.stroke),strokeWidth:2})}if(fe==="Parallel"){var Ke=a.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:C.width,containerHeight:C.height,position:{mx:.474,my:.296}});w(j,Ke,{fill:"none",stroke:ze(C,g,k.stroke),strokeWidth:1})}else fe==="Exclusive"&&(De||M(j,C.width,C.height,C.height*.26,{fill:"none",stroke:ze(C,g,k.stroke),strokeWidth:1}),Re());return te},"bpmn:ExclusiveGateway":function(j,C,k={}){k=gt(k,["fill","stroke"]);var X=Te(j,C,k),te=a.getScaledPath("GATEWAY_EXCLUSIVE",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:C.width,containerHeight:C.height,position:{mx:.32,my:.3}}),fe=vs(C);return fe.get("isMarkerVisible")&&w(j,te,{fill:ze(C,g,k.stroke),stroke:ze(C,g,k.stroke),strokeWidth:1}),X},"bpmn:Gateway":function(j,C,k={}){return k=gt(k,["fill","stroke"]),Te(j,C,k)},"bpmn:Group":function(j,C,k={}){return k=gt(k,["fill","stroke","width","height"]),P(j,C.width,C.height,Uh,{stroke:ze(C,g,k.stroke),strokeWidth:1.5,strokeDasharray:"10, 6, 0, 6",fill:"none",pointerEvents:"none",width:er(C,k),height:Ai(C,k)})},"bpmn:InclusiveGateway":function(j,C,k={}){k=gt(k,["fill","stroke"]);var X=Te(j,C,k);return M(j,C.width,C.height,C.height*.24,{fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke),strokeWidth:2.5}),X},"bpmn:IntermediateEvent":function(j,C,k={}){var{renderIcon:X=!0}=k;k=gt(k,["fill","stroke"]);var te=ge(j,C,{...k,strokeWidth:1.5});return M(j,C.width,C.height,Vh,{fill:"none",stroke:ze(C,g,k.stroke),strokeWidth:1.5}),X&&ee(C,j,k),te},"bpmn:IntermediateCatchEvent":F("bpmn:IntermediateEvent"),"bpmn:IntermediateThrowEvent":F("bpmn:IntermediateEvent"),"bpmn:Lane":function(j,C,k={}){return k=gt(k,["fill","stroke","width","height"]),le(j,C,{...k,fillOpacity:Hz})},"bpmn:ManualTask":function(j,C,k={}){k=gt(k,["fill","stroke"]);var X=Fe(j,C,k),te=a.getScaledPath("TASK_TYPE_MANUAL",{abspos:{x:17,y:15}});return w(j,te,{fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke),strokeWidth:.5}),X},"bpmn:MessageFlow":function(j,C,k={}){k=gt(k,["fill","stroke"]);var X=Ut(C),te=vs(C),fe=st(C,m,k.fill),De=ze(C,g,k.stroke),Re=b(j,C.waypoints,{markerEnd:_(j,"messageflow-end",fe,De),markerStart:_(j,"messageflow-start",fe,De),stroke:De,strokeDasharray:"10, 11",strokeWidth:1.5});if(X.get("messageRef")){var Ke=Re.getPointAtLength(Re.getTotalLength()/2),_t=a.getScaledPath("MESSAGE_FLOW_MARKER",{abspos:{x:Ke.x,y:Ke.y}}),pt={strokeWidth:1};te.get("messageVisibleKind")==="initiating"?(pt.fill=fe,pt.stroke=De):(pt.fill=De,pt.stroke=fe);var Bt=w(j,_t,pt),sn=X.get("messageRef"),ct=sn.get("name"),Ot=pe(j,ct,{align:"center-top",fitBox:!0,style:{fill:De}}),fn=Bt.getBBox(),ve=Ot.getBBox(),q=Ke.x-ve.width/2,G=Ke.y+fn.height/2+Lz;u0(Ot,q,G,0)}return Re},"bpmn:ParallelGateway":function(j,C,k={}){k=gt(k,["fill","stroke"]);var X=Te(j,C,k),te=a.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.6,yScaleFactor:.6,containerWidth:C.width,containerHeight:C.height,position:{mx:.46,my:.2}});return w(j,te,{fill:ze(C,g,k.stroke),stroke:ze(C,g,k.stroke),strokeWidth:1}),X},"bpmn:Participant":function(j,C,k={}){k=gt(k,["fill","stroke","width","height"]);var X=le(j,C,k),te=bs(C),fe=P6(C),De=Ut(C),Re=De.get("name");if(te){var Ke=fe?[{x:30,y:0},{x:30,y:Ai(C,k)}]:[{x:0,y:30},{x:er(C,k),y:30}];R(j,Ke,{stroke:ze(C,g,k.stroke),strokeWidth:zz}),_e(j,Re,C,k)}else{var _t=yd(C,k);fe||(_t.height=er(C,k),_t.width=Ai(C,k));var pt=pe(j,Re,{box:_t,align:"center-middle",style:{fill:_d(C,y,g,k.stroke)}});if(!fe){var Bt=-1*Ai(C,k);u0(pt,0,-Bt,270)}}return De.get("participantMultiplicity")&&se("ParticipantMultiplicityMarker",j,C,k),X},"bpmn:ReceiveTask":function(j,C,k={}){k=gt(k,["fill","stroke"]);var X=Ut(C),te=Fe(j,C,k),fe;return X.get("instantiate")?(M(j,28,28,20*.22,{fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke),strokeWidth:1}),fe=a.getScaledPath("TASK_TYPE_INSTANTIATING_SEND",{abspos:{x:7.77,y:9.52}})):fe=a.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:21,containerHeight:14,position:{mx:.3,my:.4}}),w(j,fe,{fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke),strokeWidth:1}),te},"bpmn:ScriptTask":function(j,C,k={}){k=gt(k,["fill","stroke"]);var X=Fe(j,C,k),te=a.getScaledPath("TASK_TYPE_SCRIPT",{abspos:{x:15,y:20}});return w(j,te,{fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke),strokeWidth:1}),X},"bpmn:SendTask":function(j,C,k={}){k=gt(k,["fill","stroke"]);var X=Fe(j,C,k),te=a.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:1,yScaleFactor:1,containerWidth:21,containerHeight:14,position:{mx:.285,my:.357}});return w(j,te,{fill:ze(C,g,k.stroke),stroke:st(C,m,k.fill),strokeWidth:1}),X},"bpmn:SequenceFlow":function(j,C,k={}){k=gt(k,["fill","stroke"]);var X=st(C,m,k.fill),te=ze(C,g,k.stroke),fe=b(j,C.waypoints,{markerEnd:_(j,"sequenceflow-end",X,te),stroke:te}),De=Ut(C),{source:Re}=C;if(Re){var Ke=Ut(Re);De.get("conditionExpression")&&Ge(Ke,"bpmn:Activity")&&Pt(fe,{markerStart:_(j,"conditional-flow-marker",X,te)}),Ke.get("default")&&(Ge(Ke,"bpmn:Gateway")||Ge(Ke,"bpmn:Activity"))&&Ke.get("default")===De&&Pt(fe,{markerStart:_(j,"conditional-default-flow-marker",X,te)})}return fe},"bpmn:ServiceTask":function(j,C,k={}){k=gt(k,["fill","stroke"]);var X=Fe(j,C,k);M(j,10,10,{fill:st(C,m,k.fill),stroke:"none",transform:"translate(6, 6)"});var te=a.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:12,y:18}});w(j,te,{fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke),strokeWidth:1}),M(j,10,10,{fill:st(C,m,k.fill),stroke:"none",transform:"translate(11, 10)"});var fe=a.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:17,y:22}});return w(j,fe,{fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke),strokeWidth:1}),X},"bpmn:StartEvent":function(j,C,k={}){var{renderIcon:X=!0}=k;k=gt(k,["fill","stroke"]);var te=Ut(C);te.get("isInterrupting")||(k={...k,strokeDasharray:"6"});var fe=ge(j,C,k);return X&&ee(C,j,k),fe},"bpmn:SubProcess":function(j,C,k={}){return bs(C)?k=gt(k,["fill","stroke","width","height"]):k=gt(k,["fill","stroke"]),he(j,C,k)},"bpmn:Task":function(j,C,k={}){return k=gt(k,["fill","stroke"]),Fe(j,C,k)},"bpmn:TextAnnotation":function(j,C,k={}){k=gt(k,["fill","stroke","width","height"]);var{width:X,height:te}=yd(C,k),fe=P(j,X,te,0,0,{fill:"none",stroke:"none"}),De=a.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:X,containerHeight:te,position:{mx:0,my:0}});w(j,De,{stroke:ze(C,g,k.stroke)});var Re=Ut(C),Ke=Re.get("text")||"";return pe(j,Ke,{align:"left-top",box:yd(C,k),padding:7,style:{fill:_d(C,y,g,k.stroke)}}),fe},"bpmn:Transaction":function(j,C,k={}){bs(C)?k=gt(k,["fill","stroke","width","height"]):k=gt(k,["fill","stroke"]);var X=he(j,C,{strokeWidth:1.5,...k}),te=i.style(["no-fill","no-events"],{stroke:ze(C,g,k.stroke),strokeWidth:1.5}),fe=bs(C);return fe||(k={}),P(j,er(C,k),Ai(C,k),Uh-Vh,Vh,te),X},"bpmn:UserTask":function(j,C,k={}){k=gt(k,["fill","stroke"]);var X=Fe(j,C,k),te=15,fe=12,De=a.getScaledPath("TASK_TYPE_USER_1",{abspos:{x:te,y:fe}});w(j,De,{fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke),strokeWidth:.5});var Re=a.getScaledPath("TASK_TYPE_USER_2",{abspos:{x:te,y:fe}});w(j,Re,{fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke),strokeWidth:.5});var Ke=a.getScaledPath("TASK_TYPE_USER_3",{abspos:{x:te,y:fe}});return w(j,Ke,{fill:ze(C,g,k.stroke),stroke:ze(C,g,k.stroke),strokeWidth:.5}),X},label:function(j,C,k={}){return ye(j,C,k)}};this._drawPath=w,this._renderer=Q}Gr(ws,ya),ws.$inject=["config.bpmnRenderer","eventBus","styles","pathMap","canvas","textRenderer"],ws.prototype.canRender=function(e){return Ge(e,"bpmn:BaseElement")},ws.prototype.drawShape=function(e,n,i={}){var{type:a}=n,s=this._renderer(a);return s(e,n,i)},ws.prototype.drawConnection=function(e,n,i={}){var{type:a}=n,s=this._renderer(a);return s(e,n,i)},ws.prototype.getShapePath=function(e){return Ge(e,"bpmn:Event")?mz(e):Ge(e,"bpmn:Activity")?gz(e,Uh):Ge(e,"bpmn:Gateway")?Az(e):vz(e)};function gt(e,n=[]){return n.reduce((i,a)=>(e[a]&&(i[a]=e[a]),i),{})}var Vz=0,Uz={width:150,height:50};function Yz(e){var n=e.split("-");return{horizontal:n[0]||"center",vertical:n[1]||"top"}}function Wz(e){return gs(e)?Je({top:0,left:0,right:0,bottom:0},e):{top:e,left:e,right:e,bottom:e}}function Gz(e,n){n.textContent=e;var i;try{var a,s=e==="";return n.textContent=s?"dummy":e,i=n.getBBox(),a={width:i.width+i.x*2,height:i.height},s&&(a.width=0),a}catch(c){return{width:0,height:0}}}function Jz(e,n,i){for(var a=e.shift(),s=a,c;;){if(c=Gz(s,i),c.width=s?c.width:0,s===" "||s===""||c.width<Math.round(n)||s.length<2)return Kz(e,s,a,c);s=Zz(s,c.width,n)}}function Kz(e,n,i,a){if(n.length<i.length){var s=i.slice(n.length).trim();e.unshift(s)}return{width:a.width,height:a.height,text:n}}var tS="\xAD";function Xz(e,n){var i=e.split(/(\s|-|\u00AD)/g),a,s=[],c=0;if(i.length>1)for(;a=i.shift();)if(a.length+c<n)s.push(a),c+=a.length;else{(a==="-"||a===tS)&&s.pop();break}var p=s[s.length-1];return p&&p===tS&&(s[s.length-1]="-"),s.join("")}function Zz(e,n,i){var a=Math.max(e.length*(i/n),1),s=Xz(e,a);return s||(s=e.slice(0,Math.max(Math.round(a-1),1))),s}function $z(){var e=document.getElementById("helper-svg");return e||(e=Rt("svg"),Pt(e,{id:"helper-svg"}),Tn(e,{visibility:"hidden",position:"fixed",width:0,height:0}),document.body.appendChild(e)),e}function Yh(e){this._config=Je({},{size:Uz,padding:Vz,style:{},align:"center-top"},e||{})}Yh.prototype.createText=function(e,n){return this.layoutText(e,n).element},Yh.prototype.getDimensions=function(e,n){return this.layoutText(e,n).dimensions},Yh.prototype.layoutText=function(e,n){var i=Je({},this._config.size,n.box),a=Je({},this._config.style,n.style),s=Yz(n.align||this._config.align),c=Wz(n.padding!==void 0?n.padding:this._config.padding),p=n.fitBox||!1,m=qz(a),g=e.split(/\u00AD?\r?\n/),y=[],O=i.width-c.left-c.right,E=Rt("text");Pt(E,{x:0,y:0}),Pt(E,a);var N=$z();for(yn(N,E);g.length;)y.push(Jz(g,O,E));s.vertical==="middle"&&(c.top=c.bottom=0);var _=ec(y,function(R,b,w){return R+(m||b.height)},0)+c.top+c.bottom,S=ec(y,function(R,b,w){return b.width>R?b.width:R},0),M=c.top;s.vertical==="middle"&&(M+=(i.height-_)/2),M-=(m||y[0].height)/4;var P=Rt("text");Pt(P,a),We(y,function(R){var b;switch(M+=m||R.height,s.horizontal){case"left":b=c.left;break;case"right":b=(p?S:O)-c.right-R.width;break;default:b=Math.max(((p?S:O)-R.width)/2+c.left,0)}var w=Rt("tspan");Pt(w,{x:b,y:M}),w.textContent=R.text,yn(P,w)}),vd(E);var T={width:S,height:_};return{dimensions:T,element:P}};function qz(e){if("fontSize"in e&&"lineHeight"in e)return e.lineHeight*parseInt(e.fontSize,10)}var eQ=12,tQ=1.2,nQ=30;function nS(e){var n=Je({fontFamily:"Arial, sans-serif",fontSize:eQ,fontWeight:"normal",lineHeight:tQ},e&&e.defaultStyle||{}),i=parseInt(n.fontSize,10)-1,a=Je({},n,{fontSize:i},e&&e.externalStyle||{}),s=new Yh({style:n});this.getExternalLabelBounds=function(c,p){var m=s.getDimensions(p,{box:{width:90,height:30},style:a});return{x:Math.round(c.x+c.width/2-m.width/2),y:Math.round(c.y),width:Math.ceil(m.width),height:Math.ceil(m.height)}},this.getTextAnnotationBounds=function(c,p){var m=s.getDimensions(p,{box:c,style:n,align:"left-top",padding:5});return{x:c.x,y:c.y,width:c.width,height:Math.max(nQ,Math.round(m.height))}},this.createText=function(c,p){return s.createText(c,p||{})},this.getDefaultStyle=function(){return n},this.getExternalStyle=function(){return a}}nS.$inject=["config.textRenderer"];function iQ(){this.pathMap={EVENT_MESSAGE:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:36,width:36,heightElements:[6,14],widthElements:[10.5,21]},EVENT_SIGNAL:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x1},0 Z",height:36,width:36,heightElements:[18],widthElements:[10,20]},EVENT_ESCALATION:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x0},-{e.y1} l -{e.x0},{e.y1} Z",height:36,width:36,heightElements:[20,7],widthElements:[8]},EVENT_CONDITIONAL:{d:"M {e.x0},{e.y0} l {e.x1},0 l 0,{e.y2} l -{e.x1},0 Z M {e.x2},{e.y3} l {e.x0},0 M {e.x2},{e.y4} l {e.x0},0 M {e.x2},{e.y5} l {e.x0},0 M {e.x2},{e.y6} l {e.x0},0 M {e.x2},{e.y7} l {e.x0},0 M {e.x2},{e.y8} l {e.x0},0 ",height:36,width:36,heightElements:[8.5,14.5,18,11.5,14.5,17.5,20.5,23.5,26.5],widthElements:[10.5,14.5,12.5]},EVENT_LINK:{d:"m {mx},{my} 0,{e.y0} -{e.x1},0 0,{e.y1} {e.x1},0 0,{e.y0} {e.x0},-{e.y2} -{e.x0},-{e.y2} z",height:36,width:36,heightElements:[4.4375,6.75,7.8125],widthElements:[9.84375,13.5]},EVENT_ERROR:{d:"m {mx},{my} {e.x0},-{e.y0} {e.x1},-{e.y1} {e.x2},{e.y2} {e.x3},-{e.y3} -{e.x4},{e.y4} -{e.x5},-{e.y5} z",height:36,width:36,heightElements:[.023,8.737,8.151,16.564,10.591,8.714],widthElements:[.085,6.672,6.97,4.273,5.337,6.636]},EVENT_CANCEL_45:{d:"m {mx},{my} -{e.x1},0 0,{e.x0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:36,width:36,heightElements:[4.75,8.5],widthElements:[4.75,8.5]},EVENT_COMPENSATION:{d:"m {mx},{my} {e.x0},-{e.y0} 0,{e.y1} z m {e.x1},-{e.y2} {e.x2},-{e.y3} 0,{e.y1} -{e.x2},-{e.y3} z",height:36,width:36,heightElements:[6.5,13,.4,6.1],widthElements:[9,9.3,8.7]},EVENT_TIMER_WH:{d:"M {mx},{my} l {e.x0},-{e.y0} m -{e.x0},{e.y0} l {e.x1},{e.y1} ",height:36,width:36,heightElements:[10,2],widthElements:[3,7]},EVENT_TIMER_LINE:{d:"M {mx},{my} m {e.x0},{e.y0} l -{e.x1},{e.y1} ",height:36,width:36,heightElements:[10,3],widthElements:[0,0]},EVENT_MULTIPLE:{d:"m {mx},{my} {e.x1},-{e.y0} {e.x1},{e.y0} -{e.x0},{e.y1} -{e.x2},0 z",height:36,width:36,heightElements:[6.28099,12.56199],widthElements:[3.1405,9.42149,12.56198]},EVENT_PARALLEL_MULTIPLE:{d:"m {mx},{my} {e.x0},0 0,{e.y1} {e.x1},0 0,{e.y0} -{e.x1},0 0,{e.y1} -{e.x0},0 0,-{e.y1} -{e.x1},0 0,-{e.y0} {e.x1},0 z",height:36,width:36,heightElements:[2.56228,7.68683],widthElements:[2.56228,7.68683]},GATEWAY_EXCLUSIVE:{d:"m {mx},{my} {e.x0},{e.y0} {e.x1},{e.y0} {e.x2},0 {e.x4},{e.y2} {e.x4},{e.y1} {e.x2},0 {e.x1},{e.y3} {e.x0},{e.y3} {e.x3},0 {e.x5},{e.y1} {e.x5},{e.y2} {e.x3},0 z",height:17.5,width:17.5,heightElements:[8.5,6.5312,-6.5312,-8.5],widthElements:[6.5,-6.5,3,-3,5,-5]},GATEWAY_PARALLEL:{d:"m {mx},{my} 0,{e.y1} -{e.x1},0 0,{e.y0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:30,width:30,heightElements:[5,12.5],widthElements:[5,12.5]},GATEWAY_EVENT_BASED:{d:"m {mx},{my} {e.x0},{e.y0} {e.x0},{e.y1} {e.x1},{e.y2} {e.x2},0 z",height:11,width:11,heightElements:[-6,6,12,-12],widthElements:[9,-3,-12]},GATEWAY_COMPLEX:{d:"m {mx},{my} 0,{e.y0} -{e.x0},-{e.y1} -{e.x1},{e.y2} {e.x0},{e.y1} -{e.x2},0 0,{e.y3} {e.x2},0 -{e.x0},{e.y1} l {e.x1},{e.y2} {e.x0},-{e.y1} 0,{e.y0} {e.x3},0 0,-{e.y0} {e.x0},{e.y1} {e.x1},-{e.y2} -{e.x0},-{e.y1} {e.x2},0 0,-{e.y3} -{e.x2},0 {e.x0},-{e.y1} -{e.x1},-{e.y2} -{e.x0},{e.y1} 0,-{e.y0} -{e.x3},0 z",height:17.125,width:17.125,heightElements:[4.875,3.4375,2.125,3],widthElements:[3.4375,2.125,4.875,3]},DATA_OBJECT_PATH:{d:"m 0,0 {e.x1},0 {e.x0},{e.y0} 0,{e.y1} -{e.x2},0 0,-{e.y2} {e.x1},0 0,{e.y0} {e.x0},0",height:61,width:51,heightElements:[10,50,60],widthElements:[10,40,50,60]},DATA_OBJECT_COLLECTION_PATH:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},DATA_ARROW:{d:"m 5,9 9,0 0,-3 5,5 -5,5 0,-3 -9,0 z",height:61,width:51,heightElements:[],widthElements:[]},DATA_STORE:{d:"m {mx},{my} l 0,{e.y2} c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 l 0,-{e.y2} c -{e.x0},-{e.y1} -{e.x1},-{e.y1} -{e.x2},0c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0",height:61,width:61,heightElements:[7,10,45],widthElements:[2,58,60]},TEXT_ANNOTATION:{d:"m {mx}, {my} m 10,0 l -10,0 l 0,{e.y0} l 10,0",height:30,width:10,heightElements:[30],widthElements:[10]},MARKER_SUB_PROCESS:{d:"m{mx},{my} m 7,2 l 0,10 m -5,-5 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_PARALLEL:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},MARKER_SEQUENTIAL:{d:"m{mx},{my} m 0,3 l 10,0 m -10,3 l 10,0 m -10,3 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_COMPENSATION:{d:"m {mx},{my} 7,-5 0,10 z m 7.1,-0.3 6.9,-4.7 0,10 -6.9,-4.7 z",height:10,width:21,heightElements:[],widthElements:[]},MARKER_LOOP:{d:"m {mx},{my} c 3.526979,0 6.386161,-2.829858 6.386161,-6.320661 0,-3.490806 -2.859182,-6.320661 -6.386161,-6.320661 -3.526978,0 -6.38616,2.829855 -6.38616,6.320661 0,1.745402 0.714797,3.325567 1.870463,4.469381 0.577834,0.571908 1.265885,1.034728 2.029916,1.35457 l -0.718163,-3.909793 m 0.718163,3.909793 -3.885211,0.802902",height:13.9,width:13.7,heightElements:[],widthElements:[]},MARKER_ADHOC:{d:"m {mx},{my} m 0.84461,2.64411 c 1.05533,-1.23780996 2.64337,-2.07882 4.29653,-1.97997996 2.05163,0.0805 3.85579,1.15803 5.76082,1.79107 1.06385,0.34139996 2.24454,0.1438 3.18759,-0.43767 0.61743,-0.33642 1.2775,-0.64078 1.7542,-1.17511 0,0.56023 0,1.12046 0,1.6807 -0.98706,0.96237996 -2.29792,1.62393996 -3.6918,1.66181996 -1.24459,0.0927 -2.46671,-0.2491 -3.59505,-0.74812 -1.35789,-0.55965 -2.75133,-1.33436996 -4.27027,-1.18121996 -1.37741,0.14601 -2.41842,1.13685996 -3.44288,1.96782996 z",height:4,width:15,heightElements:[],widthElements:[]},TASK_TYPE_SEND:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:14,width:21,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_SCRIPT:{d:"m {mx},{my} c 9.966553,-6.27276 -8.000926,-7.91932 2.968968,-14.938 l -8.802728,0 c -10.969894,7.01868 6.997585,8.66524 -2.968967,14.938 z m -7,-12 l 5,0 m -4.5,3 l 4.5,0 m -3,3 l 5,0m -4,3 l 5,0",height:15,width:12.6,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_USER_1:{d:"m {mx},{my} c 0.909,-0.845 1.594,-2.049 1.594,-3.385 0,-2.554 -1.805,-4.62199999 -4.357,-4.62199999 -2.55199998,0 -4.28799998,2.06799999 -4.28799998,4.62199999 0,1.348 0.974,2.562 1.89599998,3.405 -0.52899998,0.187 -5.669,2.097 -5.794,4.7560005 v 6.718 h 17 v -6.718 c 0,-2.2980005 -5.5279996,-4.5950005 -6.0509996,-4.7760005 zm -8,6 l 0,5.5 m 11,0 l 0,-5"},TASK_TYPE_USER_2:{d:"m {mx},{my} m 2.162,1.009 c 0,2.4470005 -2.158,4.4310005 -4.821,4.4310005 -2.66499998,0 -4.822,-1.981 -4.822,-4.4310005 "},TASK_TYPE_USER_3:{d:"m {mx},{my} m -6.9,-3.80 c 0,0 2.25099998,-2.358 4.27399998,-1.177 2.024,1.181 4.221,1.537 4.124,0.965 -0.098,-0.57 -0.117,-3.79099999 -4.191,-4.13599999 -3.57499998,0.001 -4.20799998,3.36699999 -4.20699998,4.34799999 z"},TASK_TYPE_MANUAL:{d:"m {mx},{my} c 0.234,-0.01 5.604,0.008 8.029,0.004 0.808,0 1.271,-0.172 1.417,-0.752 0.227,-0.898 -0.334,-1.314 -1.338,-1.316 -2.467,-0.01 -7.886,-0.004 -8.108,-0.004 -0.014,-0.079 0.016,-0.533 0,-0.61 0.195,-0.042 8.507,0.006 9.616,0.002 0.877,-0.007 1.35,-0.438 1.353,-1.208 0.003,-0.768 -0.479,-1.09 -1.35,-1.091 -2.968,-0.002 -9.619,-0.013 -9.619,-0.013 v -0.591 c 0,0 5.052,-0.016 7.225,-0.016 0.888,-0.002 1.354,-0.416 1.351,-1.193 -0.006,-0.761 -0.492,-1.196 -1.361,-1.196 -3.473,-0.005 -10.86,-0.003 -11.0829995,-0.003 -0.022,-0.047 -0.045,-0.094 -0.069,-0.139 0.3939995,-0.319 2.0409995,-1.626 2.4149995,-2.017 0.469,-0.4870005 0.519,-1.1650005 0.162,-1.6040005 -0.414,-0.511 -0.973,-0.5 -1.48,-0.236 -1.4609995,0.764 -6.5999995,3.6430005 -7.7329995,4.2710005 -0.9,0.499 -1.516,1.253 -1.882,2.19 -0.37000002,0.95 -0.17,2.01 -0.166,2.979 0.004,0.718 -0.27300002,1.345 -0.055,2.063 0.629,2.087 2.425,3.312 4.859,3.318 4.6179995,0.014 9.2379995,-0.139 13.8569995,-0.158 0.755,-0.004 1.171,-0.301 1.182,-1.033 0.012,-0.754 -0.423,-0.969 -1.183,-0.973 -1.778,-0.01 -5.824,-0.004 -6.04,-0.004 10e-4,-0.084 0.003,-0.586 10e-4,-0.67 z"},TASK_TYPE_INSTANTIATING_SEND:{d:"m {mx},{my} l 0,8.4 l 12.6,0 l 0,-8.4 z l 6.3,3.6 l 6.3,-3.6"},TASK_TYPE_SERVICE:{d:"m {mx},{my} v -1.71335 c 0.352326,-0.0705 0.703932,-0.17838 1.047628,-0.32133 0.344416,-0.14465 0.665822,-0.32133 0.966377,-0.52145 l 1.19431,1.18005 1.567487,-1.57688 -1.195028,-1.18014 c 0.403376,-0.61394 0.683079,-1.29908 0.825447,-2.01824 l 1.622133,-0.01 v -2.2196 l -1.636514,0.01 c -0.07333,-0.35153 -0.178319,-0.70024 -0.323564,-1.04372 -0.145244,-0.34406 -0.321407,-0.6644 -0.522735,-0.96217 l 1.131035,-1.13631 -1.583305,-1.56293 -1.129598,1.13589 c -0.614052,-0.40108 -1.302883,-0.68093 -2.022633,-0.82247 l 0.0093,-1.61852 h -2.241173 l 0.0042,1.63124 c -0.353763,0.0736 -0.705369,0.17977 -1.049785,0.32371 -0.344415,0.14437 -0.665102,0.32092 -0.9635006,0.52046 l -1.1698628,-1.15823 -1.5667691,1.5792 1.1684265,1.15669 c -0.4026573,0.61283 -0.68308,1.29797 -0.8247287,2.01713 l -1.6588041,0.003 v 2.22174 l 1.6724648,-0.006 c 0.073327,0.35077 0.1797598,0.70243 0.3242851,1.04472 0.1452428,0.34448 0.3214064,0.6644 0.5227339,0.96066 l -1.1993431,1.19723 1.5840256,1.56011 1.1964668,-1.19348 c 0.6140517,0.40346 1.3028827,0.68232 2.0233517,0.82331 l 7.19e-4,1.69892 h 2.226848 z m 0.221462,-3.9957 c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_SERVICE_FILL:{d:"m {mx},{my} c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_BUSINESS_RULE_HEADER:{d:"m {mx},{my} 0,4 20,0 0,-4 z"},TASK_TYPE_BUSINESS_RULE_MAIN:{d:"m {mx},{my} 0,12 20,0 0,-12 zm 0,8 l 20,0 m -13,-4 l 0,8"},MESSAGE_FLOW_MARKER:{d:"m {mx},{my} m -10.5 ,-7 l 0,14 l 21,0 l 0,-14 z l 10.5,6 l 10.5,-6"}},this.getRawPath=function(n){return this.pathMap[n].d},this.getScaledPath=function(n,i){var a=this.pathMap[n],s,c;i.abspos?(s=i.abspos.x,c=i.abspos.y):(s=i.containerWidth*i.position.mx,c=i.containerHeight*i.position.my);var p={};if(i.position){for(var m=i.containerHeight/a.height*i.yScaleFactor,g=i.containerWidth/a.width*i.xScaleFactor,y=0;y<a.heightElements.length;y++)p["y"+y]=a.heightElements[y]*m;for(var O=0;O<a.widthElements.length;O++)p["x"+O]=a.widthElements[O]*g}var E=sQ(a.d,{mx:s,my:c,e:p});return E}}var rQ=/\{([^{}]+)\}/g,aQ=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g;function oQ(e,n,i){var a=i;return n.replace(aQ,function(s,c,p,m,g){c=c||m,a&&(c in a&&(a=a[c]),typeof a=="function"&&g&&(a=a()))}),a=(a==null||a==i?e:a)+"",a}function sQ(e,n){return String(e).replace(rQ,function(i,a){return oQ(i,a,n)})}const lQ={__init__:["bpmnRenderer"],bpmnRenderer:["type",ws],textRenderer:["type",nS],pathMap:["type",iQ]};function cQ(e,n){return n=n||{},e.replace(/{([^}]+)}/g,function(i,a){return n[a]||"{"+a+"}"})}const iS={translate:["value",cQ]};function uQ(e){return{x:Math.round(e.x),y:Math.round(e.y)}}function d0(e){return{top:e.y,right:e.x+(e.width||0),bottom:e.y+(e.height||0),left:e.x}}function dQ(e){return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}function fQ(e){return uQ({x:e.x+(e.width||0)/2,y:e.y+(e.height||0)/2})}function pQ(e){for(var n=e.waypoints,i=n.reduce(function(y,O,E){var N=n[E-1];if(N){var _=y[y.length-1],S=_&&_.endLength||0,M=hQ(N,O);y.push({start:N,end:O,startLength:S,endLength:S+M,length:M})}return y},[]),a=i.reduce(function(y,O){return y+O.length},0),s=a/2,c=0,p=i[c];p.endLength<s;)p=i[++c];var m=(s-p.startLength)/p.length,g={x:p.start.x+(p.end.x-p.start.x)*m,y:p.start.y+(p.end.y-p.start.y)*m};return g}function f0(e){return zL(e)?pQ(e):fQ(e)}function hQ(e,n){return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function Nn(e){return e?"<"+e.$type+(e.id?' id="'+e.id:"")+'" />':"<null>"}function Wh(e,n,i){return Je({id:e.id,type:e.$type,businessObject:e,di:n},i)}function mQ(e,n,i){var a=e.waypoint;return!a||a.length<2?[f0(n),f0(i)]:a.map(function(s){return{x:s.x,y:s.y}})}function rS(e,n,i){return new Error(`element ${Nn(n)} referenced by ${Nn(e)}#${i} not yet drawn`)}function Ea(e,n,i,a,s){this._eventBus=e,this._canvas=n,this._elementFactory=i,this._elementRegistry=a,this._textRenderer=s}Ea.$inject=["eventBus","canvas","elementFactory","elementRegistry","textRenderer"],Ea.prototype.add=function(e,n,i){var a,s,c;if(Ge(n,"bpmndi:BPMNPlane")){var p=Ge(e,"bpmn:SubProcess")?{id:e.id+"_plane"}:{};a=this._elementFactory.createRoot(Wh(e,n,p)),this._canvas.addRootElement(a)}else if(Ge(n,"bpmndi:BPMNShape")){var m=!bs(e,n),g=AQ(e);s=i&&(i.hidden||i.collapsed);var y=n.bounds;a=this._elementFactory.createShape(Wh(e,n,{collapsed:m,hidden:s,x:Math.round(y.x),y:Math.round(y.y),width:Math.round(y.width),height:Math.round(y.height),isFrame:g})),Ge(e,"bpmn:BoundaryEvent")&&this._attachBoundary(e,a),Ge(e,"bpmn:Lane")&&(c=0),Ge(e,"bpmn:DataStoreReference")&&(gQ(i,f0(y))||(i=this._canvas.findRoot(i))),this._canvas.addShape(a,i,c)}else if(Ge(n,"bpmndi:BPMNEdge")){var O=this._getSource(e),E=this._getTarget(e);s=i&&(i.hidden||i.collapsed),a=this._elementFactory.createConnection(Wh(e,n,{hidden:s,source:O,target:E,waypoints:mQ(n,O,E)})),Ge(e,"bpmn:DataAssociation")&&(i=this._canvas.findRoot(i)),this._canvas.addConnection(a,i,c)}else throw new Error(`unknown di ${Nn(n)} for element ${Nn(e)}`);return QL(e)&&jh(a)&&this.addLabel(e,n,a),this._eventBus.fire("bpmnElement.added",{element:a}),a},Ea.prototype._attachBoundary=function(e,n){var i=e.attachedToRef;if(!i)throw new Error(`missing ${Nn(e)}#attachedToRef`);var a=this._elementRegistry.get(i.id),s=a&&a.attachers;if(!a)throw rS(e,i,"attachedToRef");n.host=a,s||(a.attachers=s=[]),s.indexOf(n)===-1&&s.push(n)},Ea.prototype.addLabel=function(e,n,i){var a,s,c;return a=YL(n,i),s=jh(i),s&&(a=this._textRenderer.getExternalLabelBounds(a,s)),c=this._elementFactory.createLabel(Wh(e,n,{id:e.id+"_label",labelTarget:i,type:"label",hidden:i.hidden||!jh(i),x:Math.round(a.x),y:Math.round(a.y),width:Math.round(a.width),height:Math.round(a.height)})),this._canvas.addShape(c,i.parent)},Ea.prototype._getConnectedElement=function(e,n){var i,a,s=e.$type;if(a=e[n+"Ref"],n==="source"&&s==="bpmn:DataInputAssociation"&&(a=a&&a[0]),(n==="source"&&s==="bpmn:DataOutputAssociation"||n==="target"&&s==="bpmn:DataInputAssociation")&&(a=e.$parent),i=a&&this._getElement(a),i)return i;throw a?rS(e,a,n+"Ref"):new Error(`${Nn(e)}#${n} Ref not specified`)},Ea.prototype._getSource=function(e){return this._getConnectedElement(e,"source")},Ea.prototype._getTarget=function(e){return this._getConnectedElement(e,"target")},Ea.prototype._getElement=function(e){return this._elementRegistry.get(e.id)};function gQ(e,n){var i=n.x,a=n.y;return i>=e.x&&i<=e.x+e.width&&a>=e.y&&a<=e.y+e.height}function AQ(e){return Ge(e,"bpmn:Group")}const vQ={__depends__:[lQ,{__depends__:[iS],bpmnImporter:["type",Ea]}]};function xd(e,n){n=!!n,Cr(e)||(e=[e]);var i,a,s,c;return We(e,function(p){var m=p;p.waypoints&&!n&&(m=xd(p.waypoints,!0));var g=m.x,y=m.y,O=m.height||0,E=m.width||0;(g<i||i===void 0)&&(i=g),(y<a||a===void 0)&&(a=y),(g+E>s||s===void 0)&&(s=g+E),(y+O>c||c===void 0)&&(c=y+O)}),{x:i,y:a,height:c-a,width:s-i}}function aS(e){return"waypoints"in e?"connection":"x"in e?"shape":"root"}function oS(e){return!!(e&&e.isFrame)}function p0(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(Math.random()*1e9)+"-"}p0.prototype.next=function(){return this._prefix+ ++this._counter};var bQ=new p0("ov"),_Q=500;function xn(e,n,i,a){this._eventBus=n,this._canvas=i,this._elementRegistry=a,this._ids=bQ,this._overlayDefaults=Je({show:null,scale:!0},e&&e.defaults),this._overlays={},this._overlayContainers=[],this._overlayRoot=yQ(i.getContainer()),this._init()}xn.$inject=["config.overlays","eventBus","canvas","elementRegistry"],xn.prototype.get=function(e){if(kr(e)&&(e={id:e}),kr(e.element)&&(e.element=this._elementRegistry.get(e.element)),e.element){var n=this._getOverlayContainer(e.element,!0);return n?e.type?ql(n.overlays,F6({type:e.type})):n.overlays.slice():[]}else return e.type?ql(this._overlays,F6({type:e.type})):e.id?this._overlays[e.id]:null},xn.prototype.add=function(e,n,i){if(gs(n)&&(i=n,n=null),e.id||(e=this._elementRegistry.get(e)),!i.position)throw new Error("must specifiy overlay position");if(!i.html)throw new Error("must specifiy overlay html");if(!e)throw new Error("invalid element specified");var a=this._ids.next();return i=Je({},this._overlayDefaults,i,{id:a,type:n,element:e,html:i.html}),this._addOverlay(i),a},xn.prototype.remove=function(e){var n=this.get(e)||[];Cr(n)||(n=[n]);var i=this;We(n,function(a){var s=i._getOverlayContainer(a.element,!0);if(a&&(nc(a.html),nc(a.htmlContainer),delete a.htmlContainer,delete a.element,delete i._overlays[a.id]),s){var c=s.overlays.indexOf(a);c!==-1&&s.overlays.splice(c,1)}})},xn.prototype.isShown=function(){return this._overlayRoot.style.display!=="none"},xn.prototype.show=function(){Gh(this._overlayRoot)},xn.prototype.hide=function(){Gh(this._overlayRoot,!1)},xn.prototype.clear=function(){this._overlays={},this._overlayContainers=[],K6(this._overlayRoot)},xn.prototype._updateOverlayContainer=function(e){var n=e.element,i=e.html,a=n.x,s=n.y;if(n.waypoints){var c=xd(n);a=c.x,s=c.y}sS(i,a,s),s0(e.html,"data-container-id",n.id)},xn.prototype._updateOverlay=function(e){var n=e.position,i=e.htmlContainer,a=e.element,s=n.left,c=n.top;if(n.right!==void 0){var p;a.waypoints?p=xd(a).width:p=a.width,s=n.right*-1+p}if(n.bottom!==void 0){var m;a.waypoints?m=xd(a).height:m=a.height,c=n.bottom*-1+m}sS(i,s||0,c||0),this._updateOverlayVisibilty(e,this._canvas.viewbox())},xn.prototype._createOverlayContainer=function(e){var n=Li('<div class="djs-overlays" />');Tn(n,{position:"absolute"}),this._overlayRoot.appendChild(n);var i={html:n,element:e,overlays:[]};return this._updateOverlayContainer(i),this._overlayContainers.push(i),i},xn.prototype._updateRoot=function(e){var n=e.scale||1,i="matrix("+[n,0,0,n,-1*e.x*n,-1*e.y*n].join(",")+")";lS(this._overlayRoot,i)},xn.prototype._getOverlayContainer=function(e,n){var i=Sr(this._overlayContainers,function(a){return a.element===e});return!i&&!n?this._createOverlayContainer(e):i},xn.prototype._addOverlay=function(e){var n=e.id,i=e.element,a=e.html,s,c;a.get&&a.constructor.prototype.jquery&&(a=a.get(0)),kr(a)&&(a=Li(a)),c=this._getOverlayContainer(i),s=Li('<div class="djs-overlay" data-overlay-id="'+n+'">'),Tn(s,{position:"absolute"}),s.appendChild(a),e.type&&ys(s).add("djs-overlay-"+e.type);var p=this._canvas.findRoot(i),m=this._canvas.getRootElement();Gh(s,p===m),e.htmlContainer=s,c.overlays.push(e),c.html.appendChild(s),this._overlays[n]=e,this._updateOverlay(e),this._updateOverlayVisibilty(e,this._canvas.viewbox())},xn.prototype._updateOverlayVisibilty=function(e,n){var i=e.show,a=this._canvas.findRoot(e.element),s=i&&i.minZoom,c=i&&i.maxZoom,p=e.htmlContainer,m=this._canvas.getRootElement(),g=!0;(a!==m||i&&(Zl(s)&&s>n.scale||Zl(c)&&c<n.scale))&&(g=!1),Gh(p,g),this._updateOverlayScale(e,n)},xn.prototype._updateOverlayScale=function(e,n){var i=e.scale,a,s,c=e.htmlContainer,p,m="";i!==!0&&(i===!1?(a=1,s=1):(a=i.min,s=i.max),Zl(a)&&n.scale<a&&(p=(1/n.scale||1)*a),Zl(s)&&n.scale>s&&(p=(1/n.scale||1)*s)),Zl(p)&&(m="scale("+p+","+p+")"),lS(c,m)},xn.prototype._updateOverlaysVisibilty=function(e){var n=this;We(this._overlays,function(i){n._updateOverlayVisibilty(i,e)})},xn.prototype._init=function(){var e=this._eventBus,n=this;function i(a){n._updateRoot(a),n._updateOverlaysVisibilty(a),n.show()}e.on("canvas.viewbox.changing",function(a){n.hide()}),e.on("canvas.viewbox.changed",function(a){i(a.viewbox)}),e.on(["shape.remove","connection.remove"],function(a){var s=a.element,c=n.get({element:s});We(c,function(g){n.remove(g.id)});var p=n._getOverlayContainer(s);if(p){nc(p.html);var m=n._overlayContainers.indexOf(p);m!==-1&&n._overlayContainers.splice(m,1)}}),e.on("element.changed",_Q,function(a){var s=a.element,c=n._getOverlayContainer(s,!0);c&&(We(c.overlays,function(p){n._updateOverlay(p)}),n._updateOverlayContainer(c))}),e.on("element.marker.update",function(a){var s=n._getOverlayContainer(a.element,!0);s&&ys(s.html)[a.add?"add":"remove"](a.marker)}),e.on("root.set",function(){n._updateOverlaysVisibilty(n._canvas.viewbox())}),e.on("diagram.clear",this.clear,this)};function yQ(e){var n=Li('<div class="djs-overlay-container" />');return Tn(n,{position:"absolute",width:0,height:0}),e.insertBefore(n,e.firstChild),n}function sS(e,n,i){Tn(e,{left:n+"px",top:i+"px"})}function Gh(e,n){e.style.display=n===!1?"none":""}function lS(e,n){e.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach(function(i){e.style[i+"transform"]=n})}const cS={__init__:["overlays"],overlays:["type",xn]};function uS(e,n,i,a){e.on("element.changed",function(s){var c=s.element;(c.parent||c===n.getRootElement())&&(s.gfx=i.getGraphics(c)),s.gfx&&e.fire(aS(c)+".changed",s)}),e.on("elements.changed",function(s){var c=s.elements;c.forEach(function(p){e.fire("element.changed",{element:p})}),a.updateContainments(c)}),e.on("shape.changed",function(s){a.update("shape",s.element,s.gfx)}),e.on("connection.changed",function(s){a.update("connection",s.element,s.gfx)})}uS.$inject=["eventBus","canvas","elementRegistry","graphicsFactory"];const xQ={__init__:["changeSupport"],changeSupport:["type",uS]};var wQ=1e3;function $n(e){this._eventBus=e}$n.$inject=["eventBus"];function EQ(e,n){return function(i){return e.call(n||null,i.context,i.command,i)}}$n.prototype.on=function(e,n,i,a,s,c){if((As(n)||no(n))&&(c=s,s=a,a=i,i=n,n=null),As(i)&&(c=s,s=a,a=i,i=wQ),gs(s)&&(c=s,s=!1),!As(a))throw new Error("handlerFn must be a function");Cr(e)||(e=[e]);var p=this._eventBus;We(e,function(m){var g=["commandStack",m,n].filter(function(y){return y}).join(".");p.on(g,i,s?EQ(a,c):a,c)})},$n.prototype.canExecute=Ca("canExecute"),$n.prototype.preExecute=Ca("preExecute"),$n.prototype.preExecuted=Ca("preExecuted"),$n.prototype.execute=Ca("execute"),$n.prototype.executed=Ca("executed"),$n.prototype.postExecute=Ca("postExecute"),$n.prototype.postExecuted=Ca("postExecuted"),$n.prototype.revert=Ca("revert"),$n.prototype.reverted=Ca("reverted");function Ca(e){return function(i,a,s,c,p){(As(i)||no(i))&&(p=c,c=s,s=a,a=i,i=null),this.on(i,e,a,s,c,p)}}function h0(e,n){n.invoke($n,this),this.executed(function(i){var a=i.context;a.rootElement?e.setRootElement(a.rootElement):a.rootElement=e.getRootElement()}),this.revert(function(i){var a=i.context;a.rootElement&&e.setRootElement(a.rootElement)})}Gr(h0,$n),h0.$inject=["canvas","injector"];const CQ={__init__:["rootElementsBehavior"],rootElementsBehavior:["type",h0]};var kQ={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function SQ(e){return e=""+e,e&&e.replace(/[&<>"']/g,function(n){return kQ[n]})}var DQ="_plane";function m0(e){var n=e.id;return Ge(e,"bpmn:SubProcess")?IQ(n):n}function IQ(e){return e+DQ}var BQ="bjs-breadcrumbs-shown";function dS(e,n,i){var a=Li('<ul class="bjs-breadcrumbs"></ul>'),s=i.getContainer(),c=ys(s);s.appendChild(a);var p=[];e.on("element.changed",function(g){var y=g.element,O=Ut(y),E=Sr(p,function(N){return N===O});!E||m()});function m(g){g&&(p=OQ(g));var y=p.flatMap(function(E){var N=i.findRoot(m0(E))||i.findRoot(E.id);if(!N&&Ge(E,"bpmn:Process")){var _=n.find(function(P){var T=Ut(P);return T&&T.get("processRef")===E});N=_&&i.findRoot(_.id)}if(!N)return[];var S=SQ(E.name||E.id),M=Li('<li><span class="bjs-crumb"><a title="'+S+'">'+S+"</a></span></li>");return M.addEventListener("click",function(){i.setRootElement(N)}),M});a.innerHTML="";var O=y.length>1;c.toggle(BQ,O),y.forEach(function(E){a.appendChild(E)})}e.on("root.set",function(g){m(g.element)})}dS.$inject=["eventBus","elementRegistry","canvas"];function OQ(e){for(var n=Ut(e),i=[],a=n;a;a=a.$parent)(Ge(a,"bpmn:SubProcess")||Ge(a,"bpmn:Process"))&&i.push(a);return i.reverse()}function fS(e,n){var i=null,a=new TQ;e.on("root.set",function(s){var c=s.element,p=n.viewbox(),m=a.get(c);if(a.set(i,{x:p.x,y:p.y,zoom:p.scale}),i=c,!(!Ge(c,"bpmn:SubProcess")&&!m)){m=m||{x:0,y:0,zoom:1};var g=(p.x-m.x)*p.scale,y=(p.y-m.y)*p.scale;(g!==0||y!==0)&&n.scroll({dx:g,dy:y}),m.zoom!==p.scale&&n.zoom(m.zoom,{x:0,y:0})}}),e.on("diagram.clear",function(){a.clear(),i=null})}fS.$inject=["eventBus","canvas"];function TQ(){this._entries=[],this.set=function(e,n){var i=!1;for(var a in this._entries)if(this._entries[a][0]===e){this._entries[a][1]=n,i=!0;break}i||this._entries.push([e,n])},this.get=function(e){for(var n in this._entries)if(this._entries[n][0]===e)return this._entries[n][1];return null},this.clear=function(){this._entries.length=0},this.remove=function(e){var n=-1;for(var i in this._entries)if(this._entries[i][0]===e){n=i;break}n!==-1&&this._entries.splice(n,1)}}var pS={x:180,y:160};function Es(e,n){this._eventBus=e,this._moddle=n;var i=this;e.on("import.render.start",1500,function(a,s){i._handleImport(s.definitions)})}Es.prototype._handleImport=function(e){if(!!e.diagrams){var n=this;this._definitions=e,this._processToDiagramMap={},e.diagrams.forEach(function(a){!a.plane||!a.plane.bpmnElement||(n._processToDiagramMap[a.plane.bpmnElement.id]=a)});var i=e.diagrams.filter(a=>a.plane).flatMap(a=>n._createNewDiagrams(a.plane));i.forEach(function(a){n._movePlaneElementsToOrigin(a.plane)})}},Es.prototype._createNewDiagrams=function(e){var n=this,i=[],a=[];e.get("planeElement").forEach(function(c){var p=c.bpmnElement;if(!!p){var m=p.$parent;Ge(p,"bpmn:SubProcess")&&!c.isExpanded&&i.push(p),MQ(p,e)&&a.push({diElement:c,parent:m})}});var s=[];return i.forEach(function(c){if(!n._processToDiagramMap[c.id]){var p=n._createDiagram(c);n._processToDiagramMap[c.id]=p,s.push(p)}}),a.forEach(function(c){for(var p=c.diElement,m=c.parent;m&&i.indexOf(m)===-1;)m=m.$parent;if(!!m){var g=n._processToDiagramMap[m.id];n._moveToDiPlane(p,g.plane)}}),s},Es.prototype._movePlaneElementsToOrigin=function(e){var n=e.get("planeElement"),i=NQ(e),a={x:i.x-pS.x,y:i.y-pS.y};n.forEach(function(s){s.waypoint?s.waypoint.forEach(function(c){c.x=c.x-a.x,c.y=c.y-a.y}):s.bounds&&(s.bounds.x=s.bounds.x-a.x,s.bounds.y=s.bounds.y-a.y)})},Es.prototype._moveToDiPlane=function(e,n){var i=hS(e),a=i.plane.get("planeElement");a.splice(a.indexOf(e),1),n.get("planeElement").push(e)},Es.prototype._createDiagram=function(e){var n=this._moddle.create("bpmndi:BPMNPlane",{bpmnElement:e}),i=this._moddle.create("bpmndi:BPMNDiagram",{plane:n});return n.$parent=i,n.bpmnElement=e,i.$parent=this._definitions,this._definitions.diagrams.push(i),i},Es.$inject=["eventBus","moddle"];function hS(e){return Ge(e,"bpmndi:BPMNDiagram")?e:hS(e.$parent)}function NQ(e){var n={top:1/0,right:-1/0,bottom:-1/0,left:1/0};return e.planeElement.forEach(function(i){if(!!i.bounds){var a=d0(i.bounds);n.top=Math.min(a.top,n.top),n.left=Math.min(a.left,n.left)}}),dQ(n)}function MQ(e,n){var i=e.$parent;return!(!Ge(i,"bpmn:SubProcess")||i===n.bpmnElement||jL(e,["bpmn:DataInputAssociation","bpmn:DataOutputAssociation"]))}var Jh=250,FQ='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4.81801948,3.50735931 L10.4996894,9.1896894 L10.5,4 L12,4 L12,12 L4,12 L4,10.5 L9.6896894,10.4996894 L3.75735931,4.56801948 C3.46446609,4.27512627 3.46446609,3.80025253 3.75735931,3.50735931 C4.05025253,3.21446609 4.52512627,3.21446609 4.81801948,3.50735931 Z"/></svg>',PQ="bjs-drilldown-empty";function oo(e,n,i,a,s){$n.call(this,n),this._canvas=e,this._eventBus=n,this._elementRegistry=i,this._overlays=a,this._translate=s;var c=this;this.executed("shape.toggleCollapse",Jh,function(p){var m=p.shape;c._canDrillDown(m)?c._addOverlay(m):c._removeOverlay(m)},!0),this.reverted("shape.toggleCollapse",Jh,function(p){var m=p.shape;c._canDrillDown(m)?c._addOverlay(m):c._removeOverlay(m)},!0),this.executed(["shape.create","shape.move","shape.delete"],Jh,function(p){var m=p.oldParent,g=p.newParent||p.parent,y=p.shape;c._canDrillDown(y)&&c._addOverlay(y),c._updateDrilldownOverlay(m),c._updateDrilldownOverlay(g),c._updateDrilldownOverlay(y)},!0),this.reverted(["shape.create","shape.move","shape.delete"],Jh,function(p){var m=p.oldParent,g=p.newParent||p.parent,y=p.shape;c._canDrillDown(y)&&c._addOverlay(y),c._updateDrilldownOverlay(m),c._updateDrilldownOverlay(g),c._updateDrilldownOverlay(y)},!0),n.on("import.render.complete",function(){i.filter(function(p){return c._canDrillDown(p)}).map(function(p){c._addOverlay(p)})})}Gr(oo,$n),oo.prototype._updateDrilldownOverlay=function(e){var n=this._canvas;if(!!e){var i=n.findRoot(e);i&&this._updateOverlayVisibility(i)}},oo.prototype._canDrillDown=function(e){var n=this._canvas;return Ge(e,"bpmn:SubProcess")&&n.findRoot(m0(e))},oo.prototype._updateOverlayVisibility=function(e){var n=this._overlays,i=Ut(e),a=n.get({element:i.id,type:"drilldown"})[0];if(!!a){var s=i&&i.get("flowElements")&&i.get("flowElements").length;ys(a.html).toggle(PQ,!s)}},oo.prototype._addOverlay=function(e){var n=this._canvas,i=this._overlays,a=Ut(e),s=i.get({element:e,type:"drilldown"});s.length&&this._removeOverlay(e);var c=Li('<button type="button" class="bjs-drilldown">'+FQ+"</button>"),p=a.get("name")||a.get("id"),m=this._translate("Open {element}",{element:p});c.setAttribute("title",m),c.addEventListener("click",function(){n.setRootElement(n.findRoot(m0(e)))}),i.add(e,"drilldown",{position:{bottom:-7,right:-8},html:c}),this._updateOverlayVisibility(e)},oo.prototype._removeOverlay=function(e){var n=this._overlays;n.remove({element:e,type:"drilldown"})},oo.$inject=["canvas","eventBus","elementRegistry","overlays","translate"];const RQ={__depends__:[cS,xQ,CQ],__init__:["drilldownBreadcrumbs","drilldownOverlayBehavior","drilldownCentering","subprocessCompatibility"],drilldownBreadcrumbs:["type",dS],drilldownCentering:["type",fS],drilldownOverlayBehavior:["type",oo],subprocessCompatibility:["type",Es]};function mS(e){return e.originalEvent||e.srcEvent}function gS(e){return e.pointers&&e.pointers.length&&(e=e.pointers[0]),e.touches&&e.touches.length&&(e=e.touches[0]),e?{x:e.clientX,y:e.clientY}:null}function AS(e,n){return(mS(e)||e).button===n}function Kh(e){return AS(e,0)}function jQ(e){return AS(e,1)}function LQ(e){var n=mS(e)||e;return Kh(e)&&n.shiftKey}function zQ(e){return!0}function Xh(e){return Kh(e)||jQ(e)}var vS=500;function bS(e,n,i){var a=this;function s(H,ee,ne){if(!m(H,ee)){var se,me,pe;ne?me=n.getGraphics(ne):(se=ee.delegateTarget||ee.target,se&&(me=se,ne=n.get(me))),!(!me||!ne)&&(pe=e.fire(H,{element:ne,gfx:me,originalEvent:ee}),pe===!1&&(ee.stopPropagation(),ee.preventDefault()))}}var c={};function p(H){return c[H]}function m(H,ee){var ne=y[H]||Kh;return!ne(ee)}var g={click:"element.click",contextmenu:"element.contextmenu",dblclick:"element.dblclick",mousedown:"element.mousedown",mousemove:"element.mousemove",mouseover:"element.hover",mouseout:"element.out",mouseup:"element.mouseup"},y={"element.contextmenu":zQ,"element.mousedown":Xh,"element.mouseup":Xh,"element.click":Xh,"element.dblclick":Xh};function O(H,ee,ne){var se=g[H];if(!se)throw new Error("unmapped DOM event name <"+H+">");return s(se,ee,ne)}var E="svg, .djs-element";function N(H,ee,ne,se){var me=c[ne]=function(pe){s(ne,pe)};se&&(y[ne]=se),me.$delegate=tc.bind(H,E,ee,me)}function _(H,ee,ne){var se=p(ne);!se||tc.unbind(H,ee,se.$delegate)}function S(H){We(g,function(ee,ne){N(H,ne,ee)})}function M(H){We(g,function(ee,ne){_(H,ne,ee)})}e.on("canvas.destroy",function(H){M(H.svg)}),e.on("canvas.init",function(H){S(H.svg)}),e.on(["shape.added","connection.added"],function(H){var ee=H.element,ne=H.gfx;e.fire("interactionEvents.createHit",{element:ee,gfx:ne})}),e.on(["shape.changed","connection.changed"],vS,function(H){var ee=H.element,ne=H.gfx;e.fire("interactionEvents.updateHit",{element:ee,gfx:ne})}),e.on("interactionEvents.createHit",vS,function(H){var ee=H.element,ne=H.gfx;a.createDefaultHit(ee,ne)}),e.on("interactionEvents.updateHit",function(H){var ee=H.element,ne=H.gfx;a.updateDefaultHit(ee,ne)});var P=B("djs-hit djs-hit-stroke"),T=B("djs-hit djs-hit-click-stroke"),R=B("djs-hit djs-hit-all"),b=B("djs-hit djs-hit-no-move"),w={all:R,"click-stroke":T,stroke:P,"no-move":b};function B(H,ee){return ee=Je({stroke:"white",strokeWidth:15},ee||{}),i.cls(H,["no-fill","no-border"],ee)}function Q(H,ee){var ne=w[ee];if(!ne)throw new Error("invalid hit type <"+ee+">");return Pt(H,ne),H}function F(H,ee){yn(H,ee)}this.removeHits=function(H){var ee=Mz(".djs-hit",H);We(ee,vd)},this.createDefaultHit=function(H,ee){var ne=H.waypoints,se=H.isFrame,me;return ne?this.createWaypointsHit(ee,ne):(me=se?"stroke":"all",this.createBoxHit(ee,me,{width:H.width,height:H.height}))},this.createWaypointsHit=function(H,ee){var ne=a0(ee);return Q(ne,"stroke"),F(H,ne),ne},this.createBoxHit=function(H,ee,ne){ne=Je({x:0,y:0},ne);var se=Rt("rect");return Q(se,ee),Pt(se,ne),F(H,se),se},this.updateDefaultHit=function(H,ee){var ne=xa(".djs-hit",ee);if(!!ne)return H.waypoints?G6(ne,H.waypoints):Pt(ne,{width:H.width,height:H.height}),ne},this.fire=s,this.triggerMouseEvent=O,this.mouseHandler=p,this.registerEvent=N,this.unregisterEvent=_}bS.$inject=["eventBus","elementRegistry","styles"];const QQ={__init__:["interactionEvents"],interactionEvents:["type",bS]};function rc(e,n){this._eventBus=e,this._canvas=n,this._selectedElements=[];var i=this;e.on(["shape.remove","connection.remove"],function(a){var s=a.element;i.deselect(s)}),e.on(["diagram.clear","root.set"],function(a){i.select(null)})}rc.$inject=["eventBus","canvas"],rc.prototype.deselect=function(e){var n=this._selectedElements,i=n.indexOf(e);if(i!==-1){var a=n.slice();n.splice(i,1),this._eventBus.fire("selection.changed",{oldSelection:a,newSelection:n})}},rc.prototype.get=function(){return this._selectedElements},rc.prototype.isSelected=function(e){return this._selectedElements.indexOf(e)!==-1},rc.prototype.select=function(e,n){var i=this._selectedElements,a=i.slice();Cr(e)||(e=e?[e]:[]);var s=this._canvas,c=s.getRootElement();e=e.filter(function(p){var m=s.findRoot(p);return c===m}),n?We(e,function(p){i.indexOf(p)===-1&&i.push(p)}):this._selectedElements=i=e.slice(),this._eventBus.fire("selection.changed",{oldSelection:a,newSelection:i})};var _S="hover",yS="selected";function xS(e,n){this._canvas=e;function i(s,c){e.addMarker(s,c)}function a(s,c){e.removeMarker(s,c)}n.on("element.hover",function(s){i(s.element,_S)}),n.on("element.out",function(s){a(s.element,_S)}),n.on("selection.changed",function(s){function c(y){a(y,yS)}function p(y){i(y,yS)}var m=s.oldSelection,g=s.newSelection;We(m,function(y){g.indexOf(y)===-1&&c(y)}),We(g,function(y){m.indexOf(y)===-1&&p(y)})})}xS.$inject=["canvas","eventBus"];function wS(e,n,i,a){e.on("create.end",500,function(s){var c=s.context,p=c.canExecute,m=c.elements,g=c.hints||{},y=g.autoSelect;if(p){if(y===!1)return;Cr(y)?n.select(y):n.select(m.filter(HQ))}}),e.on("connect.end",500,function(s){var c=s.context,p=c.connection;p&&n.select(p)}),e.on("shape.move.end",500,function(s){var c=s.previousSelection||[],p=a.get(s.context.shape.id),m=Sr(c,function(g){return p.id===g.id});m||n.select(p)}),e.on("element.click",function(s){if(!!Kh(s)){var c=s.element;c===i.getRootElement()&&(c=null);var p=n.isSelected(c),m=n.get().length>1,g=LQ(s);if(p&&m)return g?n.deselect(c):n.select(c);p?n.deselect(c):n.select(c,g)}})}wS.$inject=["eventBus","selection","canvas","elementRegistry"];function HQ(e){return!e.hidden}const VQ={__init__:["selectionVisuals","selectionBehavior"],__depends__:[QQ],selection:["type",rc],selectionVisuals:["type",xS],selectionBehavior:["type",wS]},UQ=/^class[ {]/;function YQ(e){return UQ.test(e.toString())}function g0(e){return Array.isArray(e)}function A0(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function Zh(...e){e.length===1&&g0(e[0])&&(e=e[0]),e=[...e];const n=e.pop();return n.$inject=e,n}const WQ=/constructor\s*[^(]*\(\s*([^)]*)\)/m,GQ=/^(?:async\s+)?(?:function\s*[^(]*)?(?:\(\s*([^)]*)\)|(\w+))/m,JQ=/\/\*([^*]*)\*\//m;function KQ(e){if(typeof e!="function")throw new Error(`Cannot annotate "${e}". Expected a function!`);const n=e.toString().match(YQ(e)?WQ:GQ);if(!n)return[];const i=n[1]||n[2];return i&&i.split(",").map(a=>{const s=a.match(JQ);return(s&&s[1]||a).trim()})||[]}function ES(e,n){const i=n||{get:function(b,w){if(a.push(b),w===!1)return null;throw m(`No provider for "${b}"!`)}},a=[],s=this._providers=Object.create(i._providers||null),c=this._instances=Object.create(null),p=c.injector=this,m=function(b){const w=a.join(" -> ");return a.length=0,new Error(w?`${b} (Resolving: ${w})`:b)};function g(b,w){if(!s[b]&&b.includes(".")){const B=b.split(".");let Q=g(B.shift());for(;B.length;)Q=Q[B.shift()];return Q}if(A0(c,b))return c[b];if(A0(s,b)){if(a.indexOf(b)!==-1)throw a.push(b),m("Cannot resolve circular dependency!");return a.push(b),c[b]=s[b][0](s[b][1]),a.pop(),c[b]}return i.get(b,w)}function y(b,w){if(typeof w>"u"&&(w={}),typeof b!="function")if(g0(b))b=Zh(b.slice());else throw m(`Cannot invoke "${b}". Expected a function!`);const Q=(b.$inject||KQ(b)).map(F=>A0(w,F)?w[F]:g(F));return{fn:b,dependencies:Q}}function O(b){const{fn:w,dependencies:B}=y(b),Q=Function.prototype.bind.call(w,null,...B);return new Q}function E(b,w,B){const{fn:Q,dependencies:F}=y(b,B);return Q.apply(w,F)}function N(b){return Zh(w=>b.get(w))}function _(b,w){if(w&&w.length){const B=Object.create(null),Q=Object.create(null),F=[],H=[],ee=[];let ne,se,me,pe;for(let Se in s)ne=s[Se],w.indexOf(Se)!==-1&&(ne[2]==="private"?(se=F.indexOf(ne[3]),se===-1?(me=ne[3].createChild([],w),pe=N(me),F.push(ne[3]),H.push(me),ee.push(pe),B[Se]=[pe,Se,"private",me]):B[Se]=[ee[se],Se,"private",H[se]]):B[Se]=[ne[2],ne[1]],Q[Se]=!0),(ne[2]==="factory"||ne[2]==="type")&&ne[1].$scope&&w.forEach(ye=>{ne[1].$scope.indexOf(ye)!==-1&&(B[Se]=[ne[2],ne[1]],Q[ye]=!0)});w.forEach(Se=>{if(!Q[Se])throw new Error('No provider for "'+Se+'". Cannot use provider from the parent!')}),b.unshift(B)}return new ES(b,p)}const S={factory:E,type:O,value:function(b){return b}};function M(b,w){const B=b.__init__||[];return function(){B.forEach(Q=>{typeof Q=="string"?w.get(Q):w.invoke(Q)})}}function P(b){const w=b.__exports__;if(w){const B=b.__modules__,Q=Object.keys(b).reduce((se,me)=>(me!=="__exports__"&&me!=="__modules__"&&me!=="__init__"&&me!=="__depends__"&&(se[me]=b[me]),se),Object.create(null)),F=(B||[]).concat(Q),H=_(F),ee=Zh(function(se){return H.get(se)});w.forEach(function(se){s[se]=[ee,se,"private",H]});const ne=(b.__init__||[]).slice();return ne.unshift(function(){H.init()}),b=Object.assign({},b,{__init__:ne}),M(b,H)}return Object.keys(b).forEach(function(B){if(B==="__init__"||B==="__depends__")return;const Q=b[B];if(Q[2]==="private"){s[B]=Q;return}const F=Q[0],H=Q[1];s[B]=[S[F],XQ(F,H),F]}),M(b,p)}function T(b,w){return b.indexOf(w)!==-1||(b=(w.__depends__||[]).reduce(T,b),b.indexOf(w)!==-1)?b:b.concat(w)}function R(b){const w=b.reduce(T,[]).map(P);let B=!1;return function(){B||(B=!0,w.forEach(Q=>Q()))}}this.get=g,this.invoke=E,this.instantiate=O,this.createChild=_,this.init=R(e)}function XQ(e,n){return e!=="value"&&g0(n)&&(n=Zh(n.slice())),n}var ZQ=1;function so(e,n){ya.call(this,e,ZQ),this.CONNECTION_STYLE=n.style(["no-fill"],{strokeWidth:5,stroke:"fuchsia"}),this.SHAPE_STYLE=n.style({fill:"white",stroke:"fuchsia",strokeWidth:2}),this.FRAME_STYLE=n.style(["no-fill"],{stroke:"fuchsia",strokeDasharray:4,strokeWidth:2})}Gr(so,ya),so.prototype.canRender=function(){return!0},so.prototype.drawShape=function(n,i,a){var s=Rt("rect");return Pt(s,{x:0,y:0,width:i.width||0,height:i.height||0}),oS(i)?Pt(s,Je({},this.FRAME_STYLE,a||{})):Pt(s,Je({},this.SHAPE_STYLE,a||{})),yn(n,s),s},so.prototype.drawConnection=function(n,i,a){var s=a0(i.waypoints,Je({},this.CONNECTION_STYLE,a||{}));return yn(n,s),s},so.prototype.getShapePath=function(n){var i=n.x,a=n.y,s=n.width,c=n.height,p=[["M",i,a],["l",s,0],["l",0,c],["l",-s,0],["z"]];return _s(p)},so.prototype.getConnectionPath=function(n){var i=n.waypoints,a,s,c=[];for(a=0;s=i[a];a++)s=s.original||s,c.push([a===0?"M":"L",s.x,s.y]);return _s(c)},so.$inject=["eventBus","styles"];function $Q(){var e={"no-fill":{fill:"none"},"no-border":{strokeOpacity:0},"no-events":{pointerEvents:"none"}},n=this;this.cls=function(i,a,s){var c=this.style(a,s);return Je(c,{class:i})},this.style=function(i,a){!Cr(i)&&!a&&(a=i,i=[]);var s=ec(i,function(c,p){return Je(c,e[p]||{})},{});return a?Je(s,a):s},this.computeStyle=function(i,a,s){return Cr(a)||(s=a,a=[]),n.style(a||[],Je({},s,i||{}))}}const qQ={__init__:["defaultRenderer"],defaultRenderer:["type",so],styles:["type",$Q]};function eH(e,n){if(!e||!n)return-1;var i=e.indexOf(n);return i!==-1&&e.splice(i,1),i}function tH(e,n,i){if(!(!e||!n)){typeof i!="number"&&(i=-1);var a=e.indexOf(n);if(a!==-1){if(a===i)return;if(i!==-1)e.splice(a,1);else return}i!==-1?e.splice(i,0,n):e.push(n)}}function $h(e,n){return Math.round(e*n)/n}function CS(e){return no(e)?e+"px":e}function nH(e){for(;e.parent;)e=e.parent;return e}function iH(e){e=Je({},{width:"100%",height:"100%"},e);const n=e.container||document.body,i=document.createElement("div");return i.setAttribute("class","djs-container djs-parent"),Tn(i,{position:"relative",overflow:"hidden",width:CS(e.width),height:CS(e.height)}),n.appendChild(i),i}function kS(e,n,i){const a=Rt("g");Jr(a).add(n);const s=i!==void 0?i:e.childNodes.length-1;return e.insertBefore(a,e.childNodes[s]||null),a}const rH="base",SS=0,aH=1,oH={shape:["x","y","width","height"],connection:["waypoints"]};function qe(e,n,i,a){this._eventBus=n,this._elementRegistry=a,this._graphicsFactory=i,this._rootsIdx=0,this._layers={},this._planes=[],this._rootElement=null,this._focused=!1,this._init(e||{})}qe.$inject=["config.canvas","eventBus","graphicsFactory","elementRegistry"],qe.prototype._init=function(e){const n=this._eventBus,i=this._container=iH(e),a=this._svg=Rt("svg");Pt(a,{width:"100%",height:"100%"}),s0(a,"tabindex",0),e.autoFocus&&n.on("element.hover",()=>{this.restoreFocus()}),n.on("element.mousedown",500,c=>{this.focus()}),a.addEventListener("focusin",()=>{this._setFocused(!0)}),a.addEventListener("focusout",()=>{this._setFocused(!1)}),yn(i,a);const s=this._viewport=kS(a,"viewport");e.deferUpdate&&(this._viewboxChanged=NL(io(this._viewboxChanged,this),300)),n.on("diagram.init",()=>{n.fire("canvas.init",{svg:a,viewport:s})}),n.on(["shape.added","connection.added","shape.removed","connection.removed","elements.changed","root.set"],()=>{delete this._cachedViewbox}),n.on("diagram.destroy",500,this._destroy,this),n.on("diagram.clear",500,this._clear,this)},qe.prototype._destroy=function(){this._eventBus.fire("canvas.destroy",{svg:this._svg,viewport:this._viewport});const e=this._container.parentNode;e&&e.removeChild(this._container),delete this._svg,delete this._container,delete this._layers,delete this._planes,delete this._rootElement,delete this._viewport},qe.prototype._setFocused=function(e){e!=this._focused&&(this._focused=e,this._eventBus.fire("canvas.focus.changed",{focused:e}))},qe.prototype._clear=function(){this._elementRegistry.getAll().forEach(n=>{const i=aS(n);i==="root"?this.removeRootElement(n):this._removeElement(n,i)}),this._planes=[],this._rootElement=null,delete this._cachedViewbox},qe.prototype.focus=function(){this._svg.focus({preventScroll:!0}),this._setFocused(!0)},qe.prototype.restoreFocus=function(){document.activeElement===document.body&&this.focus()},qe.prototype.isFocused=function(){return this._focused},qe.prototype.getDefaultLayer=function(){return this.getLayer(rH,SS)},qe.prototype.getLayer=function(e,n){if(!e)throw new Error("must specify a name");let i=this._layers[e];if(i||(i=this._layers[e]=this._createLayer(e,n)),typeof n<"u"&&i.index!==n)throw new Error("layer <"+e+"> already created at index <"+n+">");return i.group},qe.prototype._getChildIndex=function(e){return ec(this._layers,function(n,i){return i.visible&&e>=i.index&&n++,n},0)},qe.prototype._createLayer=function(e,n){typeof n>"u"&&(n=aH);const i=this._getChildIndex(n);return{group:kS(this._viewport,"layer-"+e,i),index:n,visible:!0}},qe.prototype.showLayer=function(e){if(!e)throw new Error("must specify a name");const n=this._layers[e];if(!n)throw new Error("layer <"+e+"> does not exist");const i=this._viewport,a=n.group,s=n.index;if(n.visible)return a;const c=this._getChildIndex(s);return i.insertBefore(a,i.childNodes[c]||null),n.visible=!0,a},qe.prototype.hideLayer=function(e){if(!e)throw new Error("must specify a name");const n=this._layers[e];if(!n)throw new Error("layer <"+e+"> does not exist");const i=n.group;return n.visible&&(vd(i),n.visible=!1),i},qe.prototype._removeLayer=function(e){const n=this._layers[e];n&&(delete this._layers[e],vd(n.group))},qe.prototype.getActiveLayer=function(){const e=this._findPlaneForRoot(this.getRootElement());return e?e.layer:null},qe.prototype.findRoot=function(e){return typeof e=="string"&&(e=this._elementRegistry.get(e)),e?(this._findPlaneForRoot(nH(e))||{}).rootElement:void 0},qe.prototype.getRootElements=function(){return this._planes.map(function(e){return e.rootElement})},qe.prototype._findPlaneForRoot=function(e){return Sr(this._planes,function(n){return n.rootElement===e})},qe.prototype.getContainer=function(){return this._container},qe.prototype._updateMarker=function(e,n,i){let a;e.id||(e=this._elementRegistry.get(e)),e.markers=e.markers||new Set,a=this._elementRegistry._elements[e.id],a&&(We([a.gfx,a.secondaryGfx],function(s){s&&(i?(e.markers.add(n),Jr(s).add(n)):(e.markers.delete(n),Jr(s).remove(n)))}),this._eventBus.fire("element.marker.update",{element:e,gfx:a.gfx,marker:n,add:!!i}))},qe.prototype.addMarker=function(e,n){this._updateMarker(e,n,!0)},qe.prototype.removeMarker=function(e,n){this._updateMarker(e,n,!1)},qe.prototype.hasMarker=function(e,n){return e.id||(e=this._elementRegistry.get(e)),e.markers?e.markers.has(n):!1},qe.prototype.toggleMarker=function(e,n){this.hasMarker(e,n)?this.removeMarker(e,n):this.addMarker(e,n)},qe.prototype.getRootElement=function(){const e=this._rootElement;return e||this._planes.length?e:this.setRootElement(this.addRootElement(null))},qe.prototype.addRootElement=function(e){const n=this._rootsIdx++;e||(e={id:"__implicitroot_"+n,children:[],isImplicit:!0});const i=e.layer="root-"+n;this._ensureValid("root",e);const a=this.getLayer(i,SS);return this.hideLayer(i),this._addRoot(e,a),this._planes.push({rootElement:e,layer:a}),e},qe.prototype.removeRootElement=function(e){if(typeof e=="string"&&(e=this._elementRegistry.get(e)),!!this._findPlaneForRoot(e))return this._removeRoot(e),this._removeLayer(e.layer),this._planes=this._planes.filter(function(i){return i.rootElement!==e}),this._rootElement===e&&(this._rootElement=null),e},qe.prototype.setRootElement=function(e){if(e===this._rootElement)return e;let n;if(!e)throw new Error("rootElement required");return n=this._findPlaneForRoot(e),n||(e=this.addRootElement(e)),this._setRoot(e),e},qe.prototype._removeRoot=function(e){const n=this._elementRegistry,i=this._eventBus;i.fire("root.remove",{element:e}),i.fire("root.removed",{element:e}),n.remove(e)},qe.prototype._addRoot=function(e,n){const i=this._elementRegistry,a=this._eventBus;a.fire("root.add",{element:e}),i.add(e,n),a.fire("root.added",{element:e,gfx:n})},qe.prototype._setRoot=function(e,n){const i=this._rootElement;i&&(this._elementRegistry.updateGraphics(i,null,!0),this.hideLayer(i.layer)),e&&(n||(n=this._findPlaneForRoot(e).layer),this._elementRegistry.updateGraphics(e,this._svg,!0),this.showLayer(e.layer)),this._rootElement=e,this._eventBus.fire("root.set",{element:e})},qe.prototype._ensureValid=function(e,n){if(!n.id)throw new Error("element must have an id");if(this._elementRegistry.get(n.id))throw new Error("element <"+n.id+"> already exists");const i=oH[e];if(!N6(i,function(s){return typeof n[s]<"u"}))throw new Error("must supply { "+i.join(", ")+" } with "+e)},qe.prototype._setParent=function(e,n,i){tH(n.children,e,i),e.parent=n},qe.prototype._addElement=function(e,n,i,a){i=i||this.getRootElement();const s=this._eventBus,c=this._graphicsFactory;this._ensureValid(e,n),s.fire(e+".add",{element:n,parent:i}),this._setParent(n,i,a);const p=c.create(e,n,a);return this._elementRegistry.add(n,p),c.update(e,n,p),s.fire(e+".added",{element:n,gfx:p}),n},qe.prototype.addShape=function(e,n,i){return this._addElement("shape",e,n,i)},qe.prototype.addConnection=function(e,n,i){return this._addElement("connection",e,n,i)},qe.prototype._removeElement=function(e,n){const i=this._elementRegistry,a=this._graphicsFactory,s=this._eventBus;if(e=i.get(e.id||e),!!e)return s.fire(n+".remove",{element:e}),a.remove(e),eH(e.parent&&e.parent.children,e),e.parent=null,s.fire(n+".removed",{element:e}),i.remove(e),e},qe.prototype.removeShape=function(e){return this._removeElement(e,"shape")},qe.prototype.removeConnection=function(e){return this._removeElement(e,"connection")},qe.prototype.getGraphics=function(e,n){return this._elementRegistry.getGraphics(e,n)},qe.prototype._changeViewbox=function(e){this._eventBus.fire("canvas.viewbox.changing"),e.apply(this),this._cachedViewbox=null,this._viewboxChanged()},qe.prototype._viewboxChanged=function(){this._eventBus.fire("canvas.viewbox.changed",{viewbox:this.viewbox()})},qe.prototype.viewbox=function(e){if(e===void 0&&this._cachedViewbox)return structuredClone(this._cachedViewbox);const n=this._viewport,i=this.getSize();let a,s,c,p,m,g,y;if(e)this._changeViewbox(function(){m=Math.min(i.width/e.width,i.height/e.height);const O=this._svg.createSVGMatrix().scale(m).translate(-e.x,-e.y);bd(n,O)});else return c=this._rootElement?this.getActiveLayer():null,a=c&&c.getBBox()||{},p=bd(n),s=p?p.matrix:ez(),m=$h(s.a,1e3),g=$h(-s.e||0,1e3),y=$h(-s.f||0,1e3),e=this._cachedViewbox={x:g?g/m:0,y:y?y/m:0,width:i.width/m,height:i.height/m,scale:m,inner:{width:a.width||0,height:a.height||0,x:a.x||0,y:a.y||0},outer:i},e;return e},qe.prototype.scroll=function(e){const n=this._viewport;let i=n.getCTM();return e&&this._changeViewbox(function(){e=Je({dx:0,dy:0},e||{}),i=this._svg.createSVGMatrix().translate(e.dx,e.dy).multiply(i),DS(n,i)}),{x:i.e,y:i.f}},qe.prototype.scrollToElement=function(e,n){let i=100;typeof e=="string"&&(e=this._elementRegistry.get(e));const a=this.findRoot(e);if(a!==this.getRootElement()&&this.setRootElement(a),a===e)return;n||(n={}),typeof n=="number"&&(i=n),n={top:n.top||i,right:n.right||i,bottom:n.bottom||i,left:n.left||i};const s=xd(e),c=d0(s),p=this.viewbox(),m=this.zoom();let g,y;p.y+=n.top/m,p.x+=n.left/m,p.width-=(n.right+n.left)/m,p.height-=(n.bottom+n.top)/m;const O=d0(p);if(!(s.width<p.width&&s.height<p.height))g=s.x-p.x,y=s.y-p.y;else{const N=Math.max(0,c.right-O.right),_=Math.min(0,c.left-O.left),S=Math.max(0,c.bottom-O.bottom),M=Math.min(0,c.top-O.top);g=N||_,y=S||M}this.scroll({dx:-g*m,dy:-y*m})},qe.prototype.zoom=function(e,n){if(!e)return this.viewbox(e).scale;if(e==="fit-viewport")return this._fitViewport(n);let i,a;return this._changeViewbox(function(){typeof n!="object"&&(i=this.viewbox().outer,n={x:i.width/2,y:i.height/2}),a=this._setZoom(e,n)}),$h(a.a,1e3)};function DS(e,n){const i="matrix("+n.a+","+n.b+","+n.c+","+n.d+","+n.e+","+n.f+")";e.setAttribute("transform",i)}qe.prototype._fitViewport=function(e){const n=this.viewbox(),i=n.outer,a=n.inner;let s,c;return a.x>=0&&a.y>=0&&a.x+a.width<=i.width&&a.y+a.height<=i.height&&!e?c={x:0,y:0,width:Math.max(a.width+a.x,i.width),height:Math.max(a.height+a.y,i.height)}:(s=Math.min(1,i.width/a.width,i.height/a.height),c={x:a.x+(e?a.width/2-i.width/s/2:0),y:a.y+(e?a.height/2-i.height/s/2:0),width:i.width/s,height:i.height/s}),this.viewbox(c),this.viewbox(!1).scale},qe.prototype._setZoom=function(e,n){const i=this._svg,a=this._viewport,s=i.createSVGMatrix(),c=i.createSVGPoint();let p,m,g,y,O;g=a.getCTM();const E=g.a;return n?(p=Je(c,n),m=p.matrixTransform(g.inverse()),y=s.translate(m.x,m.y).scale(1/E*e).translate(-m.x,-m.y),O=g.multiply(y)):O=s.scale(e),DS(this._viewport,O),O},qe.prototype.getSize=function(){return{width:this._container.clientWidth,height:this._container.clientHeight}},qe.prototype.getAbsoluteBBox=function(e){const n=this.viewbox();let i;e.waypoints?i=this.getGraphics(e).getBBox():i=e;const a=i.x*n.scale-n.x*n.scale,s=i.y*n.scale-n.y*n.scale,c=i.width*n.scale,p=i.height*n.scale;return{x:a,y:s,width:c,height:p}},qe.prototype.resized=function(){delete this._cachedViewbox,this._eventBus.fire("canvas.resized")};var ac="data-element-id";function zi(e){this._elements={},this._eventBus=e}zi.$inject=["eventBus"],zi.prototype.add=function(e,n,i){var a=e.id;this._validateId(a),Pt(n,ac,a),i&&Pt(i,ac,a),this._elements[a]={element:e,gfx:n,secondaryGfx:i}},zi.prototype.remove=function(e){var n=this._elements,i=e.id||e,a=i&&n[i];a&&(Pt(a.gfx,ac,""),a.secondaryGfx&&Pt(a.secondaryGfx,ac,""),delete n[i])},zi.prototype.updateId=function(e,n){this._validateId(n),typeof e=="string"&&(e=this.get(e)),this._eventBus.fire("element.updateId",{element:e,newId:n});var i=this.getGraphics(e),a=this.getGraphics(e,!0);this.remove(e),e.id=n,this.add(e,i,a)},zi.prototype.updateGraphics=function(e,n,i){var a=e.id||e,s=this._elements[a];return i?s.secondaryGfx=n:s.gfx=n,n&&Pt(n,ac,a),n},zi.prototype.get=function(e){var n;typeof e=="string"?n=e:n=e&&Pt(e,ac);var i=this._elements[n];return i&&i.element},zi.prototype.filter=function(e){var n=[];return this.forEach(function(i,a){e(i,a)&&n.push(i)}),n},zi.prototype.find=function(e){for(var n=this._elements,i=Object.keys(n),a=0;a<i.length;a++){var s=i[a],c=n[s],p=c.element,m=c.gfx;if(e(p,m))return p}},zi.prototype.getAll=function(){return this.filter(function(e){return e})},zi.prototype.forEach=function(e){var n=this._elements;Object.keys(n).forEach(function(i){var a=n[i],s=a.element,c=a.gfx;return e(s,c)})},zi.prototype.getGraphics=function(e,n){var i=e.id||e,a=this._elements[i];return a&&(n?a.secondaryGfx:a.gfx)},zi.prototype._validateId=function(e){if(!e)throw new Error("element must have an id");if(this._elements[e])throw new Error("element with id "+e+" already added")};function sH(e,n,i,a){var s=i.inverse;return Object.defineProperty(e,"remove",{value:function(c){var p=this.indexOf(c);return p!==-1&&(this.splice(p,1),n.unset(c,s,a)),c}}),Object.defineProperty(e,"contains",{value:function(c){return this.indexOf(c)!==-1}}),Object.defineProperty(e,"add",{value:function(c,p){var m=this.indexOf(c);if(typeof p>"u"){if(m!==-1)return;p=this.length}m!==-1&&this.splice(m,1),this.splice(p,0,c),m===-1&&n.set(c,s,a)}}),Object.defineProperty(e,"__refs_collection",{value:!0}),e}function lH(e){return e.__refs_collection===!0}function cH(e,n){return Object.prototype.hasOwnProperty.call(e,n.name||n)}function IS(e,n,i){var a=sH(i[n.name]||[],e,n,i);Object.defineProperty(i,n.name,{enumerable:n.enumerable,value:a}),a.length&&a.forEach(function(s){e.set(s,n.inverse,i)})}function uH(e,n,i){var a=n.inverse,s=i[n.name];Object.defineProperty(i,n.name,{configurable:n.configurable,enumerable:n.enumerable,get:function(){return s},set:function(c){if(c!==s){var p=s;s=null,p&&e.unset(p,a,i),s=c,e.set(s,a,i)}}})}function tr(e,n){if(!(this instanceof tr))return new tr(e,n);e.inverse=n,n.inverse=e,this.props={},this.props[e.name]=e,this.props[n.name]=n}tr.prototype.bind=function(e,n){if(typeof n=="string"){if(!this.props[n])throw new Error("no property <"+n+"> in ref");n=this.props[n]}n.collection?IS(this,n,e):uH(this,n,e)},tr.prototype.ensureRefsCollection=function(e,n){var i=e[n.name];return lH(i)||IS(this,n,e),i},tr.prototype.ensureBound=function(e,n){cH(e,n)||this.bind(e,n)},tr.prototype.unset=function(e,n,i){e&&(this.ensureBound(e,n),n.collection?this.ensureRefsCollection(e,n).remove(i):e[n.name]=void 0)},tr.prototype.set=function(e,n,i){e&&(this.ensureBound(e,n),n.collection?this.ensureRefsCollection(e,n).add(i):e[n.name]=i)};var v0=new tr({name:"children",enumerable:!0,collection:!0},{name:"parent"}),BS=new tr({name:"labels",enumerable:!0,collection:!0},{name:"labelTarget"}),OS=new tr({name:"attachers",collection:!0},{name:"host"}),TS=new tr({name:"outgoing",collection:!0},{name:"source"}),NS=new tr({name:"incoming",collection:!0},{name:"target"});function wd(){Object.defineProperty(this,"businessObject",{writable:!0}),Object.defineProperty(this,"label",{get:function(){return this.labels[0]},set:function(e){var n=this.label,i=this.labels;!e&&n?i.remove(n):i.add(e,0)}}),v0.bind(this,"parent"),BS.bind(this,"labels"),TS.bind(this,"outgoing"),NS.bind(this,"incoming")}function Ed(){wd.call(this),v0.bind(this,"children"),OS.bind(this,"host"),OS.bind(this,"attachers")}Gr(Ed,wd);function MS(){wd.call(this),v0.bind(this,"children")}Gr(MS,Ed);function FS(){Ed.call(this),BS.bind(this,"labelTarget")}Gr(FS,Ed);function PS(){wd.call(this),TS.bind(this,"source"),NS.bind(this,"target")}Gr(PS,wd);var dH={connection:PS,shape:Ed,label:FS,root:MS};function fH(e,n){var i=dH[e];if(!i)throw new Error("unknown type: <"+e+">");return Je(new i,n)}function oc(){this._uid=12}oc.prototype.createRoot=function(e){return this.create("root",e)},oc.prototype.createLabel=function(e){return this.create("label",e)},oc.prototype.createShape=function(e){return this.create("shape",e)},oc.prototype.createConnection=function(e){return this.create("connection",e)},oc.prototype.create=function(e,n){return n=Je({},n||{}),n.id||(n.id=e+"_"+this._uid++),fH(e,n)};var qh="__fn",RS=1e3,pH=Array.prototype.slice;function vi(){this._listeners={},this.on("diagram.destroy",1,this._destroy,this)}vi.prototype.on=function(e,n,i,a){if(e=Cr(e)?e:[e],As(n)&&(a=i,i=n,n=RS),!no(n))throw new Error("priority must be a number");var s=i;a&&(s=io(i,a),s[qh]=i[qh]||i);var c=this;e.forEach(function(p){c._addListener(p,{priority:n,callback:s,next:null})})},vi.prototype.once=function(e,n,i,a){var s=this;if(As(n)&&(a=i,i=n,n=RS),!no(n))throw new Error("priority must be a number");function c(){c.__isTomb=!0;var p=i.apply(a,arguments);return s.off(e,c),p}c[qh]=i,this.on(e,n,c)},vi.prototype.off=function(e,n){e=Cr(e)?e:[e];var i=this;e.forEach(function(a){i._removeListener(a,n)})},vi.prototype.createEvent=function(e){var n=new Cd;return n.init(e),n},vi.prototype.fire=function(e,n){var i,a,s,c;if(c=pH.call(arguments),typeof e=="object"&&(n=e,e=n.type),!e)throw new Error("no event type specified");if(a=this._listeners[e],!!a){n instanceof Cd?i=n:i=this.createEvent(n),c[0]=i;var p=i.type;e!==p&&(i.type=e);try{s=this._invokeListeners(i,c,a)}finally{e!==p&&(i.type=p)}return s===void 0&&i.defaultPrevented&&(s=!1),s}},vi.prototype.handleError=function(e){return this.fire("error",{error:e})===!1},vi.prototype._destroy=function(){this._listeners={}},vi.prototype._invokeListeners=function(e,n,i){for(var a;i&&!e.cancelBubble;)a=this._invokeListener(e,n,i),i=i.next;return a},vi.prototype._invokeListener=function(e,n,i){var a;if(i.callback.__isTomb)return a;try{a=hH(i.callback,n),a!==void 0&&(e.returnValue=a,e.stopPropagation()),a===!1&&e.preventDefault()}catch(s){if(!this.handleError(s))throw console.error("unhandled error in event listener",s),s}return a},vi.prototype._addListener=function(e,n){var i=this._getListeners(e),a;if(!i){this._setListeners(e,n);return}for(;i;){if(i.priority<n.priority){n.next=i,a?a.next=n:this._setListeners(e,n);return}a=i,i=i.next}a.next=n},vi.prototype._getListeners=function(e){return this._listeners[e]},vi.prototype._setListeners=function(e,n){this._listeners[e]=n},vi.prototype._removeListener=function(e,n){var i=this._getListeners(e),a,s,c;if(!n){this._setListeners(e,null);return}for(;i;)a=i.next,c=i.callback,(c===n||c[qh]===n)&&(s?s.next=a:this._setListeners(e,a)),s=i,i=a};function Cd(){}Cd.prototype.stopPropagation=function(){this.cancelBubble=!0},Cd.prototype.preventDefault=function(){this.defaultPrevented=!0},Cd.prototype.init=function(e){Je(this,e||{})};function hH(e,n){return e.apply(null,n)}function mH(e){return e.childNodes[0]}function gH(e){return e.parentNode.childNodes[1]}function Qi(e,n){this._eventBus=e,this._elementRegistry=n}Qi.$inject=["eventBus","elementRegistry"],Qi.prototype._getChildrenContainer=function(e){var n=this._elementRegistry.getGraphics(e),i;return e.parent?(i=gH(n),i||(i=Rt("g"),Jr(i).add("djs-children"),yn(n.parentNode,i))):i=n,i},Qi.prototype._clear=function(e){var n=mH(e);return K6(n),n},Qi.prototype._createContainer=function(e,n,i,a){var s=Rt("g");Jr(s).add("djs-group"),typeof i<"u"?jS(s,n,n.childNodes[i]):yn(n,s);var c=Rt("g");Jr(c).add("djs-element"),Jr(c).add("djs-"+e),a&&Jr(c).add("djs-frame"),yn(s,c);var p=Rt("g");return Jr(p).add("djs-visual"),yn(c,p),c},Qi.prototype.create=function(e,n,i){var a=this._getChildrenContainer(n.parent);return this._createContainer(e,a,i,oS(n))},Qi.prototype.updateContainments=function(e){var n=this,i=this._elementRegistry,a;a=ec(e,function(s,c){return c.parent&&(s[c.parent.id]=c.parent),s},{}),We(a,function(s){var c=s.children;if(!!c){var p=n._getChildrenContainer(s);We(c.slice().reverse(),function(m){var g=i.getGraphics(m);jS(g.parentNode,p)})}})},Qi.prototype.drawShape=function(e,n,i={}){var a=this._eventBus;return a.fire("render.shape",{gfx:e,element:n,attrs:i})},Qi.prototype.getShapePath=function(e){var n=this._eventBus;return n.fire("render.getShapePath",e)},Qi.prototype.drawConnection=function(e,n,i={}){var a=this._eventBus;return a.fire("render.connection",{gfx:e,element:n,attrs:i})},Qi.prototype.getConnectionPath=function(e){var n=this._eventBus;return n.fire("render.getConnectionPath",e)},Qi.prototype.update=function(e,n,i){if(!!n.parent){var a=this._clear(i);if(e==="shape")this.drawShape(a,n),eS(i,n.x,n.y);else if(e==="connection")this.drawConnection(a,n);else throw new Error("unknown type: "+e);n.hidden?Pt(i,"display","none"):Pt(i,"display","block")}},Qi.prototype.remove=function(e){var n=this._elementRegistry.getGraphics(e);vd(n.parentNode)};function jS(e,n,i){var a=i||n.firstChild;e!==a&&n.insertBefore(e,a)}const AH={__depends__:[qQ],__init__:["canvas"],canvas:["type",qe],elementRegistry:["type",zi],elementFactory:["type",oc],eventBus:["type",vi],graphicsFactory:["type",Qi]};function vH(e){var n=new ES(e);return n.init(),n}function bH(e){e=e||{};var n={config:["value",e]},i=[n,AH].concat(e.modules||[]);return vH(i)}function lo(e,n){this._injector=n||bH(e),this.get("eventBus").fire("diagram.init")}lo.prototype.get=function(e,n){return this._injector.get(e,n)},lo.prototype.invoke=function(e,n,i){return this._injector.invoke(e,n,i)},lo.prototype.destroy=function(){this.get("eventBus").fire("diagram.destroy")},lo.prototype.clear=function(){this.get("eventBus").fire("diagram.clear")};function b0(){}b0.prototype.get=function(e){return this.$model.properties.get(this,e)},b0.prototype.set=function(e,n){this.$model.properties.set(this,e,n)};function LS(e,n){this.model=e,this.properties=n}LS.prototype.createType=function(e){var n=this.model,i=this.properties,a=Object.create(b0.prototype);We(e.properties,function(p){!p.isMany&&p.default!==void 0&&(a[p.name]=p.default)}),i.defineModel(a,n),i.defineDescriptor(a,e);var s=e.ns.name;function c(p){i.define(this,"$type",{value:s,enumerable:!0}),i.define(this,"$attrs",{value:{}}),i.define(this,"$parent",{writable:!0}),We(p,io(function(m,g){this.set(g,m)},this))}return c.prototype=a,c.hasType=a.$instanceOf=this.model.hasType,i.defineModel(c,n),i.defineDescriptor(c,e),c};var _H={String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0},zS={String:function(e){return e},Boolean:function(e){return e==="true"},Integer:function(e){return parseInt(e,10)},Real:function(e){return parseFloat(e)}};function _0(e,n){var i=zS[e];return i?i(n):n}function y0(e){return!!_H[e]}function QS(e){return!!zS[e]}function Mn(e,n){var i=e.split(/:/),a,s;if(i.length===1)a=e,s=n;else if(i.length===2)a=i[1],s=i[0];else throw new Error("expected <prefix:localName> or <localName>, got "+e);return e=(s?s+":":"")+a,{name:e,prefix:s,localName:a}}function Hi(e){this.ns=e,this.name=e.name,this.allTypes=[],this.allTypesByName={},this.properties=[],this.propertiesByName={}}Hi.prototype.build=function(){return FL(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])},Hi.prototype.addProperty=function(e,n,i){typeof n=="boolean"&&(i=n,n=void 0),this.addNamedProperty(e,i!==!1);var a=this.properties;n!==void 0?a.splice(n,0,e):a.push(e)},Hi.prototype.replaceProperty=function(e,n,i){var a=e.ns,s=this.properties,c=this.propertiesByName,p=e.name!==n.name;if(e.isId){if(!n.isId)throw new Error("property <"+n.ns.name+"> must be id property to refine <"+e.ns.name+">");this.setIdProperty(n,!1)}if(e.isBody){if(!n.isBody)throw new Error("property <"+n.ns.name+"> must be body property to refine <"+e.ns.name+">");this.setBodyProperty(n,!1)}var m=s.indexOf(e);if(m===-1)throw new Error("property <"+a.name+"> not found in property list");s.splice(m,1),this.addProperty(n,i?void 0:m,p),c[a.name]=c[a.localName]=n},Hi.prototype.redefineProperty=function(e,n,i){var a=e.ns.prefix,s=n.split("#"),c=Mn(s[0],a),p=Mn(s[1],c.prefix).name,m=this.propertiesByName[p];if(m)this.replaceProperty(m,e,i);else throw new Error("refined property <"+p+"> not found");delete e.redefines},Hi.prototype.addNamedProperty=function(e,n){var i=e.ns,a=this.propertiesByName;n&&(this.assertNotDefined(e,i.name),this.assertNotDefined(e,i.localName)),a[i.name]=a[i.localName]=e},Hi.prototype.removeNamedProperty=function(e){var n=e.ns,i=this.propertiesByName;delete i[n.name],delete i[n.localName]},Hi.prototype.setBodyProperty=function(e,n){if(n&&this.bodyProperty)throw new Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+e.ns.name+">)");this.bodyProperty=e},Hi.prototype.setIdProperty=function(e,n){if(n&&this.idProperty)throw new Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+e.ns.name+">)");this.idProperty=e},Hi.prototype.assertNotTrait=function(e){if((e.extends||[]).length)throw new Error(`cannot create <${e.name}> extending <${e.extends}>`)},Hi.prototype.assertNotDefined=function(e,n){var i=e.name,a=this.propertiesByName[i];if(a)throw new Error("property <"+i+"> already defined; override of <"+a.definedBy.ns.name+"#"+a.ns.name+"> by <"+e.definedBy.ns.name+"#"+e.ns.name+"> not allowed without redefines")},Hi.prototype.hasProperty=function(e){return this.propertiesByName[e]},Hi.prototype.addTrait=function(e,n){n&&this.assertNotTrait(e);var i=this.allTypesByName,a=this.allTypes,s=e.name;s in i||(We(e.properties,io(function(c){c=Je({},c,{name:c.ns.localName,inherited:n}),Object.defineProperty(c,"definedBy",{value:e});var p=c.replaces,m=c.redefines;p||m?this.redefineProperty(c,p||m,p):(c.isBody&&this.setBodyProperty(c),c.isId&&this.setIdProperty(c),this.addProperty(c))},this)),a.push(e),i[s]=e)};function co(e,n){this.packageMap={},this.typeMap={},this.packages=[],this.properties=n,We(e,io(this.registerPackage,this))}co.prototype.getPackage=function(e){return this.packageMap[e]},co.prototype.getPackages=function(){return this.packages},co.prototype.registerPackage=function(e){e=Je({},e);var n=this.packageMap;HS(n,e,"prefix"),HS(n,e,"uri"),We(e.types,io(function(i){this.registerType(i,e)},this)),n[e.uri]=n[e.prefix]=e,this.packages.push(e)},co.prototype.registerType=function(e,n){e=Je({},e,{superClass:(e.superClass||[]).slice(),extends:(e.extends||[]).slice(),properties:(e.properties||[]).slice(),meta:Je(e.meta||{})});var i=Mn(e.name,n.prefix),a=i.name,s={};We(e.properties,io(function(c){var p=Mn(c.name,i.prefix),m=p.name;y0(c.type)||(c.type=Mn(c.type,p.prefix).name),Je(c,{ns:p,name:m}),s[m]=c},this)),Je(e,{ns:i,name:a,propertiesByName:s}),We(e.extends,io(function(c){var p=Mn(c,i.prefix),m=this.typeMap[p.name];m.traits=m.traits||[],m.traits.push(a)},this)),this.definePackage(e,n),this.typeMap[a]=e},co.prototype.mapTypes=function(e,n,i){var a=y0(e.name)?{name:e.name}:this.typeMap[e.name],s=this;function c(g,y){var O=Mn(g,y0(g)?"":e.prefix);s.mapTypes(O,n,y)}function p(g){return c(g,!0)}function m(g){return c(g,!1)}if(!a)throw new Error("unknown type <"+e.name+">");We(a.superClass,i?p:m),n(a,!i),We(a.traits,p)},co.prototype.getEffectiveDescriptor=function(e){var n=Mn(e),i=new Hi(n);this.mapTypes(n,function(s,c){i.addTrait(s,c)});var a=i.build();return this.definePackage(a,a.allTypes[a.allTypes.length-1].$pkg),a},co.prototype.definePackage=function(e,n){this.properties.define(e,"$pkg",{value:n})};function HS(e,n,i){var a=n[i];if(a in e)throw new Error("package with "+i+" <"+a+"> already defined")}function Cs(e){this.model=e}Cs.prototype.set=function(e,n,i){if(!kr(n)||!n.length)throw new TypeError("property name must be a non-empty string");var a=this.getProperty(e,n),s=a&&a.name;yH(i)?a?delete e[s]:delete e.$attrs[x0(n)]:a?s in e?e[s]=i:VS(e,a,i):e.$attrs[x0(n)]=i},Cs.prototype.get=function(e,n){var i=this.getProperty(e,n);if(!i)return e.$attrs[x0(n)];var a=i.name;return!e[a]&&i.isMany&&VS(e,i,[]),e[a]},Cs.prototype.define=function(e,n,i){if(!i.writable){var a=i.value;i=Je({},i,{get:function(){return a}}),delete i.value}Object.defineProperty(e,n,i)},Cs.prototype.defineDescriptor=function(e,n){this.define(e,"$descriptor",{value:n})},Cs.prototype.defineModel=function(e,n){this.define(e,"$model",{value:n})},Cs.prototype.getProperty=function(e,n){var i=this.model,a=i.getPropertyDescriptor(e,n);if(a)return a;if(n.includes(":"))return null;const s=i.config.strict;if(typeof s<"u"){const c=new TypeError(`unknown property <${n}> on <${e.$type}>`);if(s)throw c;typeof console<"u"&&console.warn(c)}return null};function yH(e){return typeof e>"u"}function VS(e,n,i){Object.defineProperty(e,n.name,{enumerable:!n.isReference,writable:!0,value:i,configurable:!0})}function x0(e){return e.replace(/^:/,"")}function nr(e,n={}){this.properties=new Cs(this),this.factory=new LS(this,this.properties),this.registry=new co(e,this.properties),this.typeCache={},this.config=n}nr.prototype.create=function(e,n){var i=this.getType(e);if(!i)throw new Error("unknown type <"+e+">");return new i(n)},nr.prototype.getType=function(e){var n=this.typeCache,i=kr(e)?e:e.ns.name,a=n[i];return a||(e=this.registry.getEffectiveDescriptor(i),a=n[i]=this.factory.createType(e)),a},nr.prototype.createAny=function(e,n,i){var a=Mn(e),s={$type:e,$instanceOf:function(p){return p===this.$type},get:function(p){return this[p]},set:function(p,m){ML(this,[p],m)}},c={name:e,isGeneric:!0,ns:{prefix:a.prefix,localName:a.localName,uri:n}};return this.properties.defineDescriptor(s,c),this.properties.defineModel(s,this),this.properties.define(s,"get",{enumerable:!1,writable:!0}),this.properties.define(s,"set",{enumerable:!1,writable:!0}),this.properties.define(s,"$parent",{enumerable:!1,writable:!0}),this.properties.define(s,"$instanceOf",{enumerable:!1,writable:!0}),We(i,function(p,m){gs(p)&&p.value!==void 0?s[p.name]=p.value:s[m]=p}),s},nr.prototype.getPackage=function(e){return this.registry.getPackage(e)},nr.prototype.getPackages=function(){return this.registry.getPackages()},nr.prototype.getElementDescriptor=function(e){return e.$descriptor},nr.prototype.hasType=function(e,n){n===void 0&&(n=e,e=this);var i=e.$model.getElementDescriptor(e);return n in i.allTypesByName},nr.prototype.getPropertyDescriptor=function(e,n){return this.getElementDescriptor(e).propertiesByName[n]},nr.prototype.getTypeDescriptor=function(e){return this.registry.typeMap[e]};var US=String.fromCharCode,xH=Object.prototype.hasOwnProperty,wH=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/ig,kd={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};Object.keys(kd).forEach(function(e){kd[e.toUpperCase()]=kd[e]});function EH(e,n,i,a){return a?xH.call(kd,a)?kd[a]:"&"+a+";":US(n||parseInt(i,16))}function ks(e){return e.length>3&&e.indexOf("&")!==-1?e.replace(wH,EH):e}var YS="non-whitespace outside of root node";function sc(e){return new Error(e)}function WS(e){return"missing namespace for prefix <"+e+">"}function em(e){return{get:e,enumerable:!0}}function CH(e){var n={},i;for(i in e)n[i]=e[i];return n}function w0(e){return e+"$uri"}function kH(e){var n={},i,a;for(i in e)a=e[i],n[a]=a,n[w0(a)]=i;return n}function GS(){return{line:0,column:0}}function SH(e){throw e}function JS(e){if(!this)return new JS(e);var n=e&&e.proxy,i,a,s,c,p=SH,m,g,y,O,E=GS,N=!1,_=!1,S=null,M=!1,P;function T(w){w instanceof Error||(w=sc(w)),S=w,p(w,E)}function R(w){!m||(w instanceof Error||(w=sc(w)),m(w,E))}this.on=function(w,B){if(typeof B!="function")throw sc("required args <name, cb>");switch(w){case"openTag":a=B;break;case"text":i=B;break;case"closeTag":s=B;break;case"error":p=B;break;case"warn":m=B;break;case"cdata":c=B;break;case"attention":O=B;break;case"question":y=B;break;case"comment":g=B;break;default:throw sc("unsupported event: "+w)}return this},this.ns=function(w){if(typeof w>"u"&&(w={}),typeof w!="object")throw sc("required args <nsMap={}>");var B={},Q;for(Q in w)B[Q]=w[Q];return _=!0,P=B,this},this.parse=function(w){if(typeof w!="string")throw sc("required args <xml=string>");return S=null,b(w),E=GS,M=!1,S},this.stop=function(){M=!0};function b(w){var B=_?[]:null,Q=_?kH(P):null,F,H=[],ee=0,ne=!1,se=!1,me=0,pe=0,Se,ye,_e,W,J,re,ge,Te,le,he="",xe=0,Fe;function K(){if(Fe!==null)return Fe;var C,k,X,te=_&&Q.xmlns,fe=_&&N?[]:null,De=xe,Re=he,Ke=Re.length,_t,pt,Bt,sn,ct,Ot={},fn={},ve,q,G;e:for(;De<Ke;De++)if(ve=!1,q=Re.charCodeAt(De),!(q===32||q<14&&q>8)){for((q<65||q>122||q>90&&q<97)&&q!==95&&q!==58&&(R("illegal first char attribute name"),ve=!0),G=De+1;G<Ke;G++)if(q=Re.charCodeAt(G),!(q>96&&q<123||q>64&&q<91||q>47&&q<59||q===46||q===45||q===95)){if(q===32||q<14&&q>8){R("missing attribute value"),De=G;continue e}if(q===61)break;R("illegal attribute name char"),ve=!0}if(ct=Re.substring(De,G),ct==="xmlns:xmlns"&&(R("illegal declaration of xmlns"),ve=!0),q=Re.charCodeAt(G+1),q===34)G=Re.indexOf('"',De=G+2),G===-1&&(G=Re.indexOf("'",De),G!==-1&&(R("attribute value quote missmatch"),ve=!0));else if(q===39)G=Re.indexOf("'",De=G+2),G===-1&&(G=Re.indexOf('"',De),G!==-1&&(R("attribute value quote missmatch"),ve=!0));else for(R("missing attribute value quotes"),ve=!0,G=G+1;G<Ke&&(q=Re.charCodeAt(G+1),!(q===32||q<14&&q>8));G++);for(G===-1&&(R("missing closing quotes"),G=Ke,ve=!0),ve||(Bt=Re.substring(De,G)),De=G;G+1<Ke&&(q=Re.charCodeAt(G+1),!(q===32||q<14&&q>8));G++)De===G&&(R("illegal character after attribute end"),ve=!0);if(De=G+1,ve)continue e;if(ct in fn){R("attribute <"+ct+"> already defined");continue}if(fn[ct]=!0,!_){Ot[ct]=Bt;continue}if(N){if(pt=ct==="xmlns"?"xmlns":ct.charCodeAt(0)===120&&ct.substr(0,6)==="xmlns:"?ct.substr(6):null,pt!==null){if(C=ks(Bt),k=w0(pt),sn=P[C],!sn){if(pt==="xmlns"||k in Q&&Q[k]!==C)do sn="ns"+ee++;while(typeof Q[sn]<"u");else sn=pt;P[C]=sn}Q[pt]!==sn&&(_t||(Q=CH(Q),_t=!0),Q[pt]=sn,pt==="xmlns"&&(Q[w0(sn)]=C,te=sn),Q[k]=C),Ot[ct]=Bt;continue}fe.push(ct,Bt);continue}if(q=ct.indexOf(":"),q===-1){Ot[ct]=Bt;continue}if(!(X=Q[ct.substring(0,q)])){R(WS(ct.substring(0,q)));continue}ct=te===X?ct.substr(q+1):X+ct.substr(q),Ot[ct]=Bt}if(N)for(De=0,Ke=fe.length;De<Ke;De++){if(ct=fe[De++],Bt=fe[De],q=ct.indexOf(":"),q!==-1){if(!(X=Q[ct.substring(0,q)])){R(WS(ct.substring(0,q)));continue}ct=te===X?ct.substr(q+1):X+ct.substr(q)}Ot[ct]=Bt}return Fe=Ot}function j(){for(var C=/(\r\n|\r|\n)/g,k=0,X=0,te=0,fe=pe,De,Re;me>=te&&(De=C.exec(w),!(!De||(fe=De[0].length+De.index,fe>me)));)k+=1,te=fe;return me==-1?(X=fe,Re=w.substring(pe)):pe===0?Re=w.substring(pe,me):(X=me-te,Re=pe==-1?w.substring(me):w.substring(me,pe+1)),{data:Re,line:k,column:X}}for(E=j,n&&(le=Object.create({},{name:em(function(){return ge}),originalName:em(function(){return Te}),attrs:em(K),ns:em(function(){return Q})}));pe!==-1;){if(w.charCodeAt(pe)===60?me=pe:me=w.indexOf("<",pe),me===-1){if(H.length)return T("unexpected end of file");if(pe===0)return T("missing start tag");pe<w.length&&w.substring(pe).trim()&&R(YS);return}if(pe!==me){if(H.length){if(i&&(i(w.substring(pe,me),ks,E),M))return}else if(w.substring(pe,me).trim()&&(R(YS),M))return}if(W=w.charCodeAt(me+1),W===33){if(_e=w.charCodeAt(me+2),_e===91&&w.substr(me+3,6)==="CDATA["){if(pe=w.indexOf("]]>",me),pe===-1)return T("unclosed cdata");if(c&&(c(w.substring(me+9,pe),E),M))return;pe+=3;continue}if(_e===45&&w.charCodeAt(me+3)===45){if(pe=w.indexOf("-->",me),pe===-1)return T("unclosed comment");if(g&&(g(w.substring(me+4,pe),ks,E),M))return;pe+=3;continue}}if(W===63){if(pe=w.indexOf("?>",me),pe===-1)return T("unclosed question");if(y&&(y(w.substring(me,pe+2),E),M))return;pe+=2;continue}for(Se=me+1;;Se++){if(J=w.charCodeAt(Se),isNaN(J))return pe=-1,T("unclosed tag");if(J===34)_e=w.indexOf('"',Se+1),Se=_e!==-1?_e:Se;else if(J===39)_e=w.indexOf("'",Se+1),Se=_e!==-1?_e:Se;else if(J===62){pe=Se;break}}if(W===33){if(O&&(O(w.substring(me,pe+1),ks,E),M))return;pe+=1;continue}if(Fe={},W===47){if(ne=!1,se=!0,!H.length)return T("missing open tag");if(Se=ge=H.pop(),_e=me+2+Se.length,w.substring(me+2,_e)!==Se)return T("closing tag mismatch");for(;_e<pe;_e++)if(W=w.charCodeAt(_e),!(W===32||W>8&&W<14))return T("close tag")}else{if(w.charCodeAt(pe-1)===47?(Se=ge=w.substring(me+1,pe-1),ne=!0,se=!0):(Se=ge=w.substring(me+1,pe),ne=!0,se=!1),!(W>96&&W<123||W>64&&W<91||W===95||W===58))return T("illegal first char nodeName");for(_e=1,ye=Se.length;_e<ye;_e++)if(W=Se.charCodeAt(_e),!(W>96&&W<123||W>64&&W<91||W>47&&W<59||W===45||W===95||W==46)){if(W===32||W<14&&W>8){ge=Se.substring(0,_e),Fe=null;break}return T("invalid nodeName")}se||H.push(ge)}if(_){if(F=Q,ne&&(se||B.push(F),Fe===null&&(N=Se.indexOf("xmlns",_e)!==-1)&&(xe=_e,he=Se,K(),N=!1)),Te=ge,W=ge.indexOf(":"),W!==-1){if(re=Q[ge.substring(0,W)],!re)return T("missing namespace on <"+Te+">");ge=ge.substr(W+1)}else re=Q.xmlns;re&&(ge=re+":"+ge)}if(ne&&(xe=_e,he=Se,a&&(n?a(le,ks,se,E):a(ge,K,ks,se,E),M)))return;if(se){if(s&&(s(n?le:ge,ks,ne,E),M))return;_&&(ne?Q=F:Q=B.pop())}pe+=1}}}function KS(e){return e.xml&&e.xml.tagAlias==="lowerCase"}var E0={xsi:"http://www.w3.org/2001/XMLSchema-instance",xml:"http://www.w3.org/XML/1998/namespace"},XS="property";function ZS(e){return e.xml&&e.xml.serialize}function DH(e){const n=ZS(e);return n!==XS&&(n||null)}function IH(e){return e.charAt(0).toUpperCase()+e.slice(1)}function $S(e,n){return KS(n)?e.prefix+":"+IH(e.localName):e.name}function BH(e,n){var i=e.name,a=e.localName,s=n&&n.xml&&n.xml.typePrefix;return s&&a.indexOf(s)===0?e.prefix+":"+a.slice(s.length):i}function OH(e,n,i){const a=Mn(e,n.xmlns),s=`${n[a.prefix]||a.prefix}:${a.localName}`,c=Mn(s);var p=i.getPackage(c.prefix);return BH(c,p)}function uo(e){return new Error(e)}function ka(e){return e.$descriptor}function TH(e){Je(this,e),this.elementsById={},this.references=[],this.warnings=[],this.addReference=function(n){this.references.push(n)},this.addElement=function(n){if(!n)throw uo("expected element");var i=this.elementsById,a=ka(n),s=a.idProperty,c;if(s&&(c=n.get(s.name),c)){if(!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(c))throw new Error("illegal ID <"+c+">");if(i[c])throw uo("duplicate ID <"+c+">");i[c]=n}},this.addWarning=function(n){this.warnings.push(n)}}function Sd(){}Sd.prototype.handleEnd=function(){},Sd.prototype.handleText=function(){},Sd.prototype.handleNode=function(){};function C0(){}C0.prototype=Object.create(Sd.prototype),C0.prototype.handleNode=function(){return this};function lc(){}lc.prototype=Object.create(Sd.prototype),lc.prototype.handleText=function(e){this.body=(this.body||"")+e};function Dd(e,n){this.property=e,this.context=n}Dd.prototype=Object.create(lc.prototype),Dd.prototype.handleNode=function(e){if(this.element)throw uo("expected no sub nodes");return this.element=this.createReference(e),this},Dd.prototype.handleEnd=function(){this.element.id=this.body},Dd.prototype.createReference=function(e){return{property:this.property.ns.name,id:""}};function k0(e,n){this.element=n,this.propertyDesc=e}k0.prototype=Object.create(lc.prototype),k0.prototype.handleEnd=function(){var e=this.body||"",n=this.element,i=this.propertyDesc;e=_0(i.type,e),i.isMany?n.get(i.name).push(e):n.set(i.name,e)};function tm(){}tm.prototype=Object.create(lc.prototype),tm.prototype.handleNode=function(e){var n=this,i=this.element;return i?n=this.handleChild(e):(i=this.element=this.createElement(e),this.context.addElement(i)),n};function Hn(e,n,i){this.model=e,this.type=e.getType(n),this.context=i}Hn.prototype=Object.create(tm.prototype),Hn.prototype.addReference=function(e){this.context.addReference(e)},Hn.prototype.handleText=function(e){var n=this.element,i=ka(n),a=i.bodyProperty;if(!a)throw uo("unexpected body text <"+e+">");lc.prototype.handleText.call(this,e)},Hn.prototype.handleEnd=function(){var e=this.body,n=this.element,i=ka(n),a=i.bodyProperty;a&&e!==void 0&&(e=_0(a.type,e),n.set(a.name,e))},Hn.prototype.createElement=function(e){var n=e.attributes,i=this.type,a=ka(i),s=this.context,c=new i({}),p=this.model,m;return We(n,function(g,y){var O=a.propertiesByName[y],E;O&&O.isReference?O.isMany?(E=g.split(" "),We(E,function(N){s.addReference({element:c,property:O.ns.name,id:N})})):s.addReference({element:c,property:O.ns.name,id:g}):(O?g=_0(O.type,g):y==="xmlns"?y=":"+y:(m=Mn(y,a.ns.prefix),p.getPackage(m.prefix)&&s.addWarning({message:"unknown attribute <"+y+">",element:c,property:y,value:g})),c.set(y,g))}),c},Hn.prototype.getPropertyForNode=function(e){var n=e.name,i=Mn(n),a=this.type,s=this.model,c=ka(a),p=i.name,m=c.propertiesByName[p];if(m&&!m.isAttr){const y=DH(m);if(y){const O=e.attributes[y];if(O){const E=OH(O,e.ns,s),N=s.getType(E);return Je({},m,{effectiveType:ka(N).name})}}return m}var g=s.getPackage(i.prefix);if(g){const y=$S(i,g),O=s.getType(y);if(m=Sr(c.properties,function(E){return!E.isVirtual&&!E.isReference&&!E.isAttribute&&O.hasType(E.type)}),m)return Je({},m,{effectiveType:ka(O).name})}else if(m=Sr(c.properties,function(y){return!y.isReference&&!y.isAttribute&&y.type==="Element"}),m)return m;throw uo("unrecognized element <"+i.name+">")},Hn.prototype.toString=function(){return"ElementDescriptor["+ka(this.type).name+"]"},Hn.prototype.valueHandler=function(e,n){return new k0(e,n)},Hn.prototype.referenceHandler=function(e){return new Dd(e,this.context)},Hn.prototype.handler=function(e){return e==="Element"?new cc(this.model,e,this.context):new Hn(this.model,e,this.context)},Hn.prototype.handleChild=function(e){var n,i,a,s;if(n=this.getPropertyForNode(e),a=this.element,i=n.effectiveType||n.type,QS(i))return this.valueHandler(n,a);n.isReference?s=this.referenceHandler(n).handleNode(e):s=this.handler(i).handleNode(e);var c=s.element;return c!==void 0&&(n.isMany?a.get(n.name).push(c):a.set(n.name,c),n.isReference?(Je(c,{element:a}),this.context.addReference(c)):c.$parent=a),s};function S0(e,n,i){Hn.call(this,e,n,i)}S0.prototype=Object.create(Hn.prototype),S0.prototype.createElement=function(e){var n=e.name,i=Mn(n),a=this.model,s=this.type,c=a.getPackage(i.prefix),p=c&&$S(i,c)||n;if(!s.hasType(p))throw uo("unexpected element <"+e.originalName+">");return Hn.prototype.createElement.call(this,e)};function cc(e,n,i){this.model=e,this.context=i}cc.prototype=Object.create(tm.prototype),cc.prototype.createElement=function(e){var n=e.name,i=Mn(n),a=i.prefix,s=e.ns[a+"$uri"],c=e.attributes;return this.model.createAny(n,s,c)},cc.prototype.handleChild=function(e){var n=new cc(this.model,"Element",this.context).handleNode(e),i=this.element,a=n.element,s;return a!==void 0&&(s=i.$children=i.$children||[],s.push(a),a.$parent=i),n},cc.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)};function D0(e){e instanceof nr&&(e={model:e}),Je(this,{lax:!1},e)}D0.prototype.fromXML=function(e,n,i){var a=n.rootHandler;n instanceof Hn?(a=n,n={}):typeof n=="string"?(a=this.handler(n),n={}):typeof a=="string"&&(a=this.handler(a));var s=this.model,c=this.lax,p=new TH(Je({},n,{rootHandler:a})),m=new JS({proxy:!0}),g=NH();a.context=p,g.push(a);function y(B,Q,F){var H=Q(),ee=H.line,ne=H.column,se=H.data;se.charAt(0)==="<"&&se.indexOf(" ")!==-1&&(se=se.slice(0,se.indexOf(" "))+">");var me="unparsable content "+(se?se+" ":"")+`detected
34
+ `,PR=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function RR(e){const n=window.getComputedStyle(e),i=n.getPropertyValue("box-sizing"),a=Number.parseFloat(n.getPropertyValue("padding-bottom"))+Number.parseFloat(n.getPropertyValue("padding-top")),s=Number.parseFloat(n.getPropertyValue("border-bottom-width"))+Number.parseFloat(n.getPropertyValue("border-top-width"));return{contextStyle:PR.map(p=>`${p}:${n.getPropertyValue(p)}`).join(";"),paddingSize:a,borderSize:s,boxSizing:i}}function c6(e,n=1,i){var a;xr||(xr=document.createElement("textarea"),document.body.appendChild(xr));const{paddingSize:s,borderSize:c,boxSizing:p,contextStyle:m}=RR(e);xr.setAttribute("style",`${m};${FR}`),xr.value=e.value||e.placeholder||"";let g=xr.scrollHeight;const y={};p==="border-box"?g=g+c:p==="content-box"&&(g=g-s),xr.value="";const O=xr.scrollHeight-s;if(ds(n)){let E=O*n;p==="border-box"&&(E=E+s+c),g=Math.max(E,g),y.minHeight=`${E}px`}if(ds(i)){let E=O*i;p==="border-box"&&(E=E+s+c),g=Math.min(E,g)}return y.height=`${g}px`,(a=xr.parentNode)==null||a.removeChild(xr),xr=void 0,y}const jR=fs({id:{type:String,default:void 0},size:Ty,disabled:Boolean,modelValue:{type:mi([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:mi([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:fd},prefixIcon:{type:fd},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:mi([Object,Array,String]),default:()=>j3({})},autofocus:{type:Boolean,default:!1}}),LR={[Dy]:e=>yr(e),input:e=>yr(e),change:e=>yr(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},zR=["role"],QR=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],HR=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],VR=x.defineComponent({name:"ElInput",inheritAttrs:!1}),UR=x.defineComponent({...VR,props:jR,emits:LR,setup(e,{expose:n,emit:i}){const a=e,s=x.useAttrs(),c=x.useSlots(),p=x.computed(()=>{const G={};return a.containerRole==="combobox"&&(G["aria-haspopup"]=s["aria-haspopup"],G["aria-owns"]=s["aria-owns"],G["aria-expanded"]=s["aria-expanded"]),G}),m=x.computed(()=>[a.type==="textarea"?P.b():M.b(),M.m(_.value),M.is("disabled",S.value),M.is("exceed",xe.value),{[M.b("group")]:c.prepend||c.append,[M.bm("group","append")]:c.append,[M.bm("group","prepend")]:c.prepend,[M.m("prefix")]:c.prefix||a.prefixIcon,[M.m("suffix")]:c.suffix||a.suffixIcon||a.clearable||a.showPassword,[M.bm("suffix","password-clear")]:ge.value&&Te.value},s.class]),g=x.computed(()=>[M.e("wrapper"),M.is("focus",ne.value)]),y=nR({excludeKeys:x.computed(()=>Object.keys(p.value))}),{form:O,formItem:E}=l6(),{inputId:N}=MR(a,{formItemContext:E}),_=s6(),S=Py(),M=Yr("input"),P=Yr("textarea"),T=x.shallowRef(),R=x.shallowRef(),b=x.ref(!1),w=x.ref(!1),B=x.ref(!1),Q=x.ref(),F=x.shallowRef(a.inputStyle),H=x.computed(()=>T.value||R.value),{wrapperRef:ee,isFocused:ne,handleFocus:se,handleBlur:me}=SR(H,{afterBlur(){var G;a.validateEvent&&((G=E==null?void 0:E.validate)==null||G.call(E,"blur").catch(ae=>Ur(ae)))}}),pe=x.computed(()=>{var G;return(G=O==null?void 0:O.statusIcon)!=null?G:!1}),Se=x.computed(()=>(E==null?void 0:E.validateState)||""),ye=x.computed(()=>Se.value&&KP[Se.value]),_e=x.computed(()=>B.value?WP:QP),W=x.computed(()=>[s.style,a.inputStyle]),J=x.computed(()=>[a.inputStyle,F.value,{resize:a.resize}]),re=x.computed(()=>x3(a.modelValue)?"":String(a.modelValue)),ge=x.computed(()=>a.clearable&&!S.value&&!a.readonly&&!!re.value&&(ne.value||b.value)),Te=x.computed(()=>a.showPassword&&!S.value&&!a.readonly&&!!re.value&&(!!re.value||ne.value)),le=x.computed(()=>a.showWordLimit&&!!y.value.maxlength&&(a.type==="text"||a.type==="textarea")&&!S.value&&!a.readonly&&!a.showPassword),he=x.computed(()=>re.value.length),xe=x.computed(()=>!!le.value&&he.value>Number(y.value.maxlength)),Fe=x.computed(()=>!!c.suffix||!!a.suffixIcon||ge.value||a.showPassword||le.value||!!Se.value&&pe.value),[K,j]=CR(T);l3(R,G=>{if(X(),!le.value||a.resize!=="both")return;const ae=G[0],{width:Ce}=ae.contentRect;Q.value={right:`calc(100% - ${Ce+15+6}px)`}});const C=()=>{const{type:G,autosize:ae}=a;if(!(!hi||G!=="textarea"||!R.value))if(ae){const Ce=cd(ae)?ae.minRows:void 0,je=cd(ae)?ae.maxRows:void 0,it=c6(R.value,Ce,je);F.value={overflowY:"hidden",...it},x.nextTick(()=>{R.value.offsetHeight,F.value=it})}else F.value={minHeight:c6(R.value).minHeight}},X=(G=>{let ae=!1;return()=>{var Ce;if(ae||!a.autosize)return;((Ce=R.value)==null?void 0:Ce.offsetParent)===null||(G(),ae=!0)}})(C),te=()=>{const G=H.value,ae=a.formatter?a.formatter(re.value):re.value;!G||G.value===ae||(G.value=ae)},fe=async G=>{K();let{value:ae}=G.target;if(a.formatter&&(ae=a.parser?a.parser(ae):ae),!w.value){if(ae===re.value){te();return}i(Dy,ae),i("input",ae),await x.nextTick(),te(),j()}},De=G=>{i("change",G.target.value)},Re=G=>{i("compositionstart",G),w.value=!0},Ke=G=>{var ae;i("compositionupdate",G);const Ce=(ae=G.target)==null?void 0:ae.value,je=Ce[Ce.length-1]||"";w.value=!qP(je)},_t=G=>{i("compositionend",G),w.value&&(w.value=!1,fe(G))},pt=()=>{B.value=!B.value,Bt()},Bt=async()=>{var G;await x.nextTick(),(G=H.value)==null||G.focus()},sn=()=>{var G;return(G=H.value)==null?void 0:G.blur()},ct=G=>{b.value=!1,i("mouseleave",G)},Ot=G=>{b.value=!0,i("mouseenter",G)},fn=G=>{i("keydown",G)},ve=()=>{var G;(G=H.value)==null||G.select()},q=()=>{i(Dy,""),i("change",""),i("clear"),i("input","")};return x.watch(()=>a.modelValue,()=>{var G;x.nextTick(()=>C()),a.validateEvent&&((G=E==null?void 0:E.validate)==null||G.call(E,"change").catch(ae=>Ur(ae)))}),x.watch(re,()=>te()),x.watch(()=>a.type,async()=>{await x.nextTick(),te(),C()}),x.onMounted(()=>{!a.formatter&&a.parser&&Ur("ElInput","If you set the parser, you also need to set the formatter."),te(),x.nextTick(C)}),n({input:T,textarea:R,ref:H,textareaStyle:J,autosize:x.toRef(a,"autosize"),focus:Bt,blur:sn,select:ve,clear:q,resizeTextarea:C}),(G,ae)=>x.withDirectives((x.openBlock(),x.createElementBlock("div",x.mergeProps(x.unref(p),{class:x.unref(m),style:x.unref(W),role:G.containerRole,onMouseenter:Ot,onMouseleave:ct}),[x.createCommentVNode(" input "),G.type!=="textarea"?(x.openBlock(),x.createElementBlock(x.Fragment,{key:0},[x.createCommentVNode(" prepend slot "),G.$slots.prepend?(x.openBlock(),x.createElementBlock("div",{key:0,class:x.normalizeClass(x.unref(M).be("group","prepend"))},[x.renderSlot(G.$slots,"prepend")],2)):x.createCommentVNode("v-if",!0),x.createElementVNode("div",{ref_key:"wrapperRef",ref:ee,class:x.normalizeClass(x.unref(g))},[x.createCommentVNode(" prefix slot "),G.$slots.prefix||G.prefixIcon?(x.openBlock(),x.createElementBlock("span",{key:0,class:x.normalizeClass(x.unref(M).e("prefix"))},[x.createElementVNode("span",{class:x.normalizeClass(x.unref(M).e("prefix-inner"))},[x.renderSlot(G.$slots,"prefix"),G.prefixIcon?(x.openBlock(),x.createBlock(x.unref(Wr),{key:0,class:x.normalizeClass(x.unref(M).e("icon"))},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(G.prefixIcon)))]),_:1},8,["class"])):x.createCommentVNode("v-if",!0)],2)],2)):x.createCommentVNode("v-if",!0),x.createElementVNode("input",x.mergeProps({id:x.unref(N),ref_key:"input",ref:T,class:x.unref(M).e("inner")},x.unref(y),{type:G.showPassword?B.value?"text":"password":G.type,disabled:x.unref(S),formatter:G.formatter,parser:G.parser,readonly:G.readonly,autocomplete:G.autocomplete,tabindex:G.tabindex,"aria-label":G.label,placeholder:G.placeholder,style:G.inputStyle,form:a.form,autofocus:a.autofocus,onCompositionstart:Re,onCompositionupdate:Ke,onCompositionend:_t,onInput:fe,onFocus:ae[0]||(ae[0]=(...Ce)=>x.unref(se)&&x.unref(se)(...Ce)),onBlur:ae[1]||(ae[1]=(...Ce)=>x.unref(me)&&x.unref(me)(...Ce)),onChange:De,onKeydown:fn}),null,16,QR),x.createCommentVNode(" suffix slot "),x.unref(Fe)?(x.openBlock(),x.createElementBlock("span",{key:1,class:x.normalizeClass(x.unref(M).e("suffix"))},[x.createElementVNode("span",{class:x.normalizeClass(x.unref(M).e("suffix-inner"))},[!x.unref(ge)||!x.unref(Te)||!x.unref(le)?(x.openBlock(),x.createElementBlock(x.Fragment,{key:0},[x.renderSlot(G.$slots,"suffix"),G.suffixIcon?(x.openBlock(),x.createBlock(x.unref(Wr),{key:0,class:x.normalizeClass(x.unref(M).e("icon"))},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(G.suffixIcon)))]),_:1},8,["class"])):x.createCommentVNode("v-if",!0)],64)):x.createCommentVNode("v-if",!0),x.unref(ge)?(x.openBlock(),x.createBlock(x.unref(Wr),{key:1,class:x.normalizeClass([x.unref(M).e("icon"),x.unref(M).e("clear")]),onMousedown:x.withModifiers(x.unref(Yl),["prevent"]),onClick:q},{default:x.withCtx(()=>[x.createVNode(x.unref(I3))]),_:1},8,["class","onMousedown"])):x.createCommentVNode("v-if",!0),x.unref(Te)?(x.openBlock(),x.createBlock(x.unref(Wr),{key:2,class:x.normalizeClass([x.unref(M).e("icon"),x.unref(M).e("password")]),onClick:pt},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(x.unref(_e))))]),_:1},8,["class"])):x.createCommentVNode("v-if",!0),x.unref(le)?(x.openBlock(),x.createElementBlock("span",{key:3,class:x.normalizeClass(x.unref(M).e("count"))},[x.createElementVNode("span",{class:x.normalizeClass(x.unref(M).e("count-inner"))},x.toDisplayString(x.unref(he))+" / "+x.toDisplayString(x.unref(y).maxlength),3)],2)):x.createCommentVNode("v-if",!0),x.unref(Se)&&x.unref(ye)&&x.unref(pe)?(x.openBlock(),x.createBlock(x.unref(Wr),{key:4,class:x.normalizeClass([x.unref(M).e("icon"),x.unref(M).e("validateIcon"),x.unref(M).is("loading",x.unref(Se)==="validating")])},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(x.unref(ye))))]),_:1},8,["class"])):x.createCommentVNode("v-if",!0)],2)],2)):x.createCommentVNode("v-if",!0)],2),x.createCommentVNode(" append slot "),G.$slots.append?(x.openBlock(),x.createElementBlock("div",{key:1,class:x.normalizeClass(x.unref(M).be("group","append"))},[x.renderSlot(G.$slots,"append")],2)):x.createCommentVNode("v-if",!0)],64)):(x.openBlock(),x.createElementBlock(x.Fragment,{key:1},[x.createCommentVNode(" textarea "),x.createElementVNode("textarea",x.mergeProps({id:x.unref(N),ref_key:"textarea",ref:R,class:x.unref(P).e("inner")},x.unref(y),{tabindex:G.tabindex,disabled:x.unref(S),readonly:G.readonly,autocomplete:G.autocomplete,style:x.unref(J),"aria-label":G.label,placeholder:G.placeholder,form:a.form,autofocus:a.autofocus,onCompositionstart:Re,onCompositionupdate:Ke,onCompositionend:_t,onInput:fe,onFocus:ae[2]||(ae[2]=(...Ce)=>x.unref(se)&&x.unref(se)(...Ce)),onBlur:ae[3]||(ae[3]=(...Ce)=>x.unref(me)&&x.unref(me)(...Ce)),onChange:De,onKeydown:fn}),null,16,HR),x.unref(le)?(x.openBlock(),x.createElementBlock("span",{key:0,style:x.normalizeStyle(Q.value),class:x.normalizeClass(x.unref(M).e("count"))},x.toDisplayString(x.unref(he))+" / "+x.toDisplayString(x.unref(y).maxlength),7)):x.createCommentVNode("v-if",!0)],64))],16,zR)),[[x.vShow,G.type!=="hidden"]])}});var YR=Za(UR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const WR=Eh(YR),Ry="focus-trap.focus-after-trapped",jy="focus-trap.focus-after-released",GR="focus-trap.focusout-prevented",u6={cancelable:!0,bubbles:!1},JR={cancelable:!0,bubbles:!1},d6="focusAfterTrapped",f6="focusAfterReleased",KR=Symbol("elFocusTrap"),Ly=x.ref(),Oh=x.ref(0),zy=x.ref(0);let Th=0;const p6=e=>{const n=[],i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const s=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||s?NodeFilter.FILTER_SKIP:a.tabIndex>=0||a===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)n.push(i.currentNode);return n},h6=(e,n)=>{for(const i of e)if(!XR(i,n))return i},XR=(e,n)=>{if(process.env.NODE_ENV==="test")return!1;if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},ZR=e=>{const n=p6(e),i=h6(n,e),a=h6(n.reverse(),e);return[i,a]},$R=e=>e instanceof HTMLInputElement&&"select"in e,$a=(e,n)=>{if(e&&e.focus){const i=document.activeElement;e.focus({preventScroll:!0}),zy.value=window.performance.now(),e!==i&&$R(e)&&n&&e.select()}};function m6(e,n){const i=[...e],a=e.indexOf(n);return a!==-1&&i.splice(a,1),i}const qR=()=>{let e=[];return{push:a=>{const s=e[0];s&&a!==s&&s.pause(),e=m6(e,a),e.unshift(a)},remove:a=>{var s,c;e=m6(e,a),(c=(s=e[0])==null?void 0:s.resume)==null||c.call(s)}}},ej=(e,n=!1)=>{const i=document.activeElement;for(const a of e)if($a(a,n),document.activeElement!==i)return},g6=qR(),tj=()=>Oh.value>zy.value,Nh=()=>{Ly.value="pointer",Oh.value=window.performance.now()},A6=()=>{Ly.value="keyboard",Oh.value=window.performance.now()},nj=()=>(x.onMounted(()=>{Th===0&&(document.addEventListener("mousedown",Nh),document.addEventListener("touchstart",Nh),document.addEventListener("keydown",A6)),Th++}),x.onBeforeUnmount(()=>{Th--,Th<=0&&(document.removeEventListener("mousedown",Nh),document.removeEventListener("touchstart",Nh),document.removeEventListener("keydown",A6))}),{focusReason:Ly,lastUserFocusTimestamp:Oh,lastAutomatedFocusTimestamp:zy}),Mh=e=>new CustomEvent(GR,{...JR,detail:e}),ij=x.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[d6,f6,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:n}){const i=x.ref();let a,s;const{focusReason:c}=nj();wR(S=>{e.trapped&&!p.paused&&n("release-requested",S)});const p={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},m=S=>{if(!e.loop&&!e.trapped||p.paused)return;const{key:M,altKey:P,ctrlKey:T,metaKey:R,currentTarget:b,shiftKey:w}=S,{loop:B}=e,Q=M===Ch.tab&&!P&&!T&&!R,F=document.activeElement;if(Q&&F){const H=b,[ee,ne]=ZR(H);if(ee&&ne){if(!w&&F===ne){const me=Mh({focusReason:c.value});n("focusout-prevented",me),me.defaultPrevented||(S.preventDefault(),B&&$a(ee,!0))}else if(w&&[ee,H].includes(F)){const me=Mh({focusReason:c.value});n("focusout-prevented",me),me.defaultPrevented||(S.preventDefault(),B&&$a(ne,!0))}}else if(F===H){const me=Mh({focusReason:c.value});n("focusout-prevented",me),me.defaultPrevented||S.preventDefault()}}};x.provide(KR,{focusTrapRef:i,onKeydown:m}),x.watch(()=>e.focusTrapEl,S=>{S&&(i.value=S)},{immediate:!0}),x.watch([i],([S],[M])=>{S&&(S.addEventListener("keydown",m),S.addEventListener("focusin",O),S.addEventListener("focusout",E)),M&&(M.removeEventListener("keydown",m),M.removeEventListener("focusin",O),M.removeEventListener("focusout",E))});const g=S=>{n(d6,S)},y=S=>n(f6,S),O=S=>{const M=x.unref(i);if(!M)return;const P=S.target,T=S.relatedTarget,R=P&&M.contains(P);e.trapped||T&&M.contains(T)||(a=T),R&&n("focusin",S),!p.paused&&e.trapped&&(R?s=P:$a(s,!0))},E=S=>{const M=x.unref(i);if(!(p.paused||!M))if(e.trapped){const P=S.relatedTarget;!x3(P)&&!M.contains(P)&&setTimeout(()=>{if(!p.paused&&e.trapped){const T=Mh({focusReason:c.value});n("focusout-prevented",T),T.defaultPrevented||$a(s,!0)}},0)}else{const P=S.target;P&&M.contains(P)||n("focusout",S)}};async function N(){await x.nextTick();const S=x.unref(i);if(S){g6.push(p);const M=S.contains(document.activeElement)?a:document.activeElement;if(a=M,!S.contains(M)){const T=new Event(Ry,u6);S.addEventListener(Ry,g),S.dispatchEvent(T),T.defaultPrevented||x.nextTick(()=>{let R=e.focusStartEl;yr(R)||($a(R),document.activeElement!==R&&(R="first")),R==="first"&&ej(p6(S),!0),(document.activeElement===M||R==="container")&&$a(S)})}}}function _(){const S=x.unref(i);if(S){S.removeEventListener(Ry,g);const M=new CustomEvent(jy,{...u6,detail:{focusReason:c.value}});S.addEventListener(jy,y),S.dispatchEvent(M),!M.defaultPrevented&&(c.value=="keyboard"||!tj()||S.contains(document.activeElement))&&$a(a!=null?a:document.body),S.removeEventListener(jy,y),g6.remove(p)}}return x.onMounted(()=>{e.trapped&&N(),x.watch(()=>e.trapped,S=>{S?N():_()})}),x.onBeforeUnmount(()=>{e.trapped&&_()}),{onKeydown:m}}});function rj(e,n,i,a,s,c){return x.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var aj=Za(ij,[["render",rj],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const oj=fs({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),sj=["textContent"],lj=x.defineComponent({name:"ElBadge"}),cj=x.defineComponent({...lj,props:oj,setup(e,{expose:n}){const i=e,a=Yr("badge"),s=x.computed(()=>i.isDot?"":ds(i.value)&&ds(i.max)?i.max<i.value?`${i.max}+`:`${i.value}`:`${i.value}`);return n({content:s}),(c,p)=>(x.openBlock(),x.createElementBlock("div",{class:x.normalizeClass(x.unref(a).b())},[x.renderSlot(c.$slots,"default"),x.createVNode(x.Transition,{name:`${x.unref(a).namespace.value}-zoom-in-center`,persisted:""},{default:x.withCtx(()=>[x.withDirectives(x.createElementVNode("sup",{class:x.normalizeClass([x.unref(a).e("content"),x.unref(a).em("content",c.type),x.unref(a).is("fixed",!!c.$slots.default),x.unref(a).is("dot",c.isDot)]),textContent:x.toDisplayString(x.unref(s))},null,10,sj),[[x.vShow,!c.hidden&&(x.unref(s)||c.isDot)]])]),_:1},8,["name"])],2))}});var uj=Za(cj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const dj=Eh(uj),v6=Symbol("buttonGroupContextKey"),fj=(e,n)=>{iR({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},x.computed(()=>e.type==="text"));const i=x.inject(v6,void 0),a=Ny("button"),{form:s}=l6(),c=s6(x.computed(()=>i==null?void 0:i.size)),p=Py(),m=x.ref(),g=x.useSlots(),y=x.computed(()=>e.type||(i==null?void 0:i.type)||""),O=x.computed(()=>{var S,M,P;return(P=(M=e.autoInsertSpace)!=null?M:(S=a.value)==null?void 0:S.autoInsertSpace)!=null?P:!1}),E=x.computed(()=>e.tag==="button"?{ariaDisabled:p.value||e.loading,disabled:p.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),N=x.computed(()=>{var S;const M=(S=g.default)==null?void 0:S.call(g);if(O.value&&(M==null?void 0:M.length)===1){const P=M[0];if((P==null?void 0:P.type)===x.Text){const T=P.children;return/^\p{Unified_Ideograph}{2}$/u.test(T.trim())}}return!1});return{_disabled:p,_size:c,_type:y,_ref:m,_props:E,shouldAddSpace:N,handleClick:S=>{e.nativeType==="reset"&&(s==null||s.resetFields()),n("click",S)}}},Qy=fs({size:Ty,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:fd},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:fd,default:()=>O3},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:mi([String,Object]),default:"button"}}),pj={click:e=>e instanceof MouseEvent};function On(e,n){hj(e)&&(e="100%");var i=mj(e);return e=n===360?e:Math.min(n,Math.max(0,parseFloat(e))),i&&(e=parseInt(String(e*n),10)/100),Math.abs(e-n)<1e-6?1:(n===360?e=(e<0?e%n+n:e%n)/parseFloat(String(n)):e=e%n/parseFloat(String(n)),e)}function Fh(e){return Math.min(1,Math.max(0,e))}function hj(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function mj(e){return typeof e=="string"&&e.indexOf("%")!==-1}function b6(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ph(e){return e<=1?"".concat(Number(e)*100,"%"):e}function hs(e){return e.length===1?"0"+e:String(e)}function gj(e,n,i){return{r:On(e,255)*255,g:On(n,255)*255,b:On(i,255)*255}}function _6(e,n,i){e=On(e,255),n=On(n,255),i=On(i,255);var a=Math.max(e,n,i),s=Math.min(e,n,i),c=0,p=0,m=(a+s)/2;if(a===s)p=0,c=0;else{var g=a-s;switch(p=m>.5?g/(2-a-s):g/(a+s),a){case e:c=(n-i)/g+(n<i?6:0);break;case n:c=(i-e)/g+2;break;case i:c=(e-n)/g+4;break}c/=6}return{h:c,s:p,l:m}}function Hy(e,n,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+(n-e)*(6*i):i<1/2?n:i<2/3?e+(n-e)*(2/3-i)*6:e}function Aj(e,n,i){var a,s,c;if(e=On(e,360),n=On(n,100),i=On(i,100),n===0)s=i,c=i,a=i;else{var p=i<.5?i*(1+n):i+n-i*n,m=2*i-p;a=Hy(m,p,e+1/3),s=Hy(m,p,e),c=Hy(m,p,e-1/3)}return{r:a*255,g:s*255,b:c*255}}function y6(e,n,i){e=On(e,255),n=On(n,255),i=On(i,255);var a=Math.max(e,n,i),s=Math.min(e,n,i),c=0,p=a,m=a-s,g=a===0?0:m/a;if(a===s)c=0;else{switch(a){case e:c=(n-i)/m+(n<i?6:0);break;case n:c=(i-e)/m+2;break;case i:c=(e-n)/m+4;break}c/=6}return{h:c,s:g,v:p}}function vj(e,n,i){e=On(e,360)*6,n=On(n,100),i=On(i,100);var a=Math.floor(e),s=e-a,c=i*(1-n),p=i*(1-s*n),m=i*(1-(1-s)*n),g=a%6,y=[i,p,c,c,m,i][g],O=[m,i,i,p,c,c][g],E=[c,c,m,i,i,p][g];return{r:y*255,g:O*255,b:E*255}}function x6(e,n,i,a){var s=[hs(Math.round(e).toString(16)),hs(Math.round(n).toString(16)),hs(Math.round(i).toString(16))];return a&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0):s.join("")}function bj(e,n,i,a,s){var c=[hs(Math.round(e).toString(16)),hs(Math.round(n).toString(16)),hs(Math.round(i).toString(16)),hs(_j(a))];return s&&c[0].startsWith(c[0].charAt(1))&&c[1].startsWith(c[1].charAt(1))&&c[2].startsWith(c[2].charAt(1))&&c[3].startsWith(c[3].charAt(1))?c[0].charAt(0)+c[1].charAt(0)+c[2].charAt(0)+c[3].charAt(0):c.join("")}function _j(e){return Math.round(parseFloat(e)*255).toString(16)}function w6(e){return ji(e)/255}function ji(e){return parseInt(e,16)}function yj(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Vy={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function xj(e){var n={r:0,g:0,b:0},i=1,a=null,s=null,c=null,p=!1,m=!1;return typeof e=="string"&&(e=Cj(e)),typeof e=="object"&&(_a(e.r)&&_a(e.g)&&_a(e.b)?(n=gj(e.r,e.g,e.b),p=!0,m=String(e.r).substr(-1)==="%"?"prgb":"rgb"):_a(e.h)&&_a(e.s)&&_a(e.v)?(a=Ph(e.s),s=Ph(e.v),n=vj(e.h,a,s),p=!0,m="hsv"):_a(e.h)&&_a(e.s)&&_a(e.l)&&(a=Ph(e.s),c=Ph(e.l),n=Aj(e.h,a,c),p=!0,m="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=b6(i),{ok:p,format:e.format||m,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:i}}var wj="[-\\+]?\\d+%?",Ej="[-\\+]?\\d*\\.\\d+%?",qa="(?:".concat(Ej,")|(?:").concat(wj,")"),Uy="[\\s|\\(]+(".concat(qa,")[,|\\s]+(").concat(qa,")[,|\\s]+(").concat(qa,")\\s*\\)?"),Yy="[\\s|\\(]+(".concat(qa,")[,|\\s]+(").concat(qa,")[,|\\s]+(").concat(qa,")[,|\\s]+(").concat(qa,")\\s*\\)?"),wr={CSS_UNIT:new RegExp(qa),rgb:new RegExp("rgb"+Uy),rgba:new RegExp("rgba"+Yy),hsl:new RegExp("hsl"+Uy),hsla:new RegExp("hsla"+Yy),hsv:new RegExp("hsv"+Uy),hsva:new RegExp("hsva"+Yy),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Cj(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(Vy[e])e=Vy[e],n=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var i=wr.rgb.exec(e);return i?{r:i[1],g:i[2],b:i[3]}:(i=wr.rgba.exec(e),i?{r:i[1],g:i[2],b:i[3],a:i[4]}:(i=wr.hsl.exec(e),i?{h:i[1],s:i[2],l:i[3]}:(i=wr.hsla.exec(e),i?{h:i[1],s:i[2],l:i[3],a:i[4]}:(i=wr.hsv.exec(e),i?{h:i[1],s:i[2],v:i[3]}:(i=wr.hsva.exec(e),i?{h:i[1],s:i[2],v:i[3],a:i[4]}:(i=wr.hex8.exec(e),i?{r:ji(i[1]),g:ji(i[2]),b:ji(i[3]),a:w6(i[4]),format:n?"name":"hex8"}:(i=wr.hex6.exec(e),i?{r:ji(i[1]),g:ji(i[2]),b:ji(i[3]),format:n?"name":"hex"}:(i=wr.hex4.exec(e),i?{r:ji(i[1]+i[1]),g:ji(i[2]+i[2]),b:ji(i[3]+i[3]),a:w6(i[4]+i[4]),format:n?"name":"hex8"}:(i=wr.hex3.exec(e),i?{r:ji(i[1]+i[1]),g:ji(i[2]+i[2]),b:ji(i[3]+i[3]),format:n?"name":"hex"}:!1)))))))))}function _a(e){return Boolean(wr.CSS_UNIT.exec(String(e)))}var kj=function(){function e(n,i){n===void 0&&(n=""),i===void 0&&(i={});var a;if(n instanceof e)return n;typeof n=="number"&&(n=yj(n)),this.originalInput=n;var s=xj(n);this.originalInput=n,this.r=s.r,this.g=s.g,this.b=s.b,this.a=s.a,this.roundA=Math.round(100*this.a)/100,this.format=(a=i.format)!==null&&a!==void 0?a:s.format,this.gradientType=i.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=s.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},e.prototype.getLuminance=function(){var n=this.toRgb(),i,a,s,c=n.r/255,p=n.g/255,m=n.b/255;return c<=.03928?i=c/12.92:i=Math.pow((c+.055)/1.055,2.4),p<=.03928?a=p/12.92:a=Math.pow((p+.055)/1.055,2.4),m<=.03928?s=m/12.92:s=Math.pow((m+.055)/1.055,2.4),.2126*i+.7152*a+.0722*s},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(n){return this.a=b6(n),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var n=this.toHsl().s;return n===0},e.prototype.toHsv=function(){var n=y6(this.r,this.g,this.b);return{h:n.h*360,s:n.s,v:n.v,a:this.a}},e.prototype.toHsvString=function(){var n=y6(this.r,this.g,this.b),i=Math.round(n.h*360),a=Math.round(n.s*100),s=Math.round(n.v*100);return this.a===1?"hsv(".concat(i,", ").concat(a,"%, ").concat(s,"%)"):"hsva(".concat(i,", ").concat(a,"%, ").concat(s,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var n=_6(this.r,this.g,this.b);return{h:n.h*360,s:n.s,l:n.l,a:this.a}},e.prototype.toHslString=function(){var n=_6(this.r,this.g,this.b),i=Math.round(n.h*360),a=Math.round(n.s*100),s=Math.round(n.l*100);return this.a===1?"hsl(".concat(i,", ").concat(a,"%, ").concat(s,"%)"):"hsla(".concat(i,", ").concat(a,"%, ").concat(s,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(n){return n===void 0&&(n=!1),x6(this.r,this.g,this.b,n)},e.prototype.toHexString=function(n){return n===void 0&&(n=!1),"#"+this.toHex(n)},e.prototype.toHex8=function(n){return n===void 0&&(n=!1),bj(this.r,this.g,this.b,this.a,n)},e.prototype.toHex8String=function(n){return n===void 0&&(n=!1),"#"+this.toHex8(n)},e.prototype.toHexShortString=function(n){return n===void 0&&(n=!1),this.a===1?this.toHexString(n):this.toHex8String(n)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var n=Math.round(this.r),i=Math.round(this.g),a=Math.round(this.b);return this.a===1?"rgb(".concat(n,", ").concat(i,", ").concat(a,")"):"rgba(".concat(n,", ").concat(i,", ").concat(a,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var n=function(i){return"".concat(Math.round(On(i,255)*100),"%")};return{r:n(this.r),g:n(this.g),b:n(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var n=function(i){return Math.round(On(i,255)*100)};return this.a===1?"rgb(".concat(n(this.r),"%, ").concat(n(this.g),"%, ").concat(n(this.b),"%)"):"rgba(".concat(n(this.r),"%, ").concat(n(this.g),"%, ").concat(n(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var n="#"+x6(this.r,this.g,this.b,!1),i=0,a=Object.entries(Vy);i<a.length;i++){var s=a[i],c=s[0],p=s[1];if(n===p)return c}return!1},e.prototype.toString=function(n){var i=Boolean(n);n=n!=null?n:this.format;var a=!1,s=this.a<1&&this.a>=0,c=!i&&s&&(n.startsWith("hex")||n==="name");return c?n==="name"&&this.a===0?this.toName():this.toRgbString():(n==="rgb"&&(a=this.toRgbString()),n==="prgb"&&(a=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(a=this.toHexString()),n==="hex3"&&(a=this.toHexString(!0)),n==="hex4"&&(a=this.toHex8String(!0)),n==="hex8"&&(a=this.toHex8String()),n==="name"&&(a=this.toName()),n==="hsl"&&(a=this.toHslString()),n==="hsv"&&(a=this.toHsvString()),a||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(n){n===void 0&&(n=10);var i=this.toHsl();return i.l+=n/100,i.l=Fh(i.l),new e(i)},e.prototype.brighten=function(n){n===void 0&&(n=10);var i=this.toRgb();return i.r=Math.max(0,Math.min(255,i.r-Math.round(255*-(n/100)))),i.g=Math.max(0,Math.min(255,i.g-Math.round(255*-(n/100)))),i.b=Math.max(0,Math.min(255,i.b-Math.round(255*-(n/100)))),new e(i)},e.prototype.darken=function(n){n===void 0&&(n=10);var i=this.toHsl();return i.l-=n/100,i.l=Fh(i.l),new e(i)},e.prototype.tint=function(n){return n===void 0&&(n=10),this.mix("white",n)},e.prototype.shade=function(n){return n===void 0&&(n=10),this.mix("black",n)},e.prototype.desaturate=function(n){n===void 0&&(n=10);var i=this.toHsl();return i.s-=n/100,i.s=Fh(i.s),new e(i)},e.prototype.saturate=function(n){n===void 0&&(n=10);var i=this.toHsl();return i.s+=n/100,i.s=Fh(i.s),new e(i)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(n){var i=this.toHsl(),a=(i.h+n)%360;return i.h=a<0?360+a:a,new e(i)},e.prototype.mix=function(n,i){i===void 0&&(i=50);var a=this.toRgb(),s=new e(n).toRgb(),c=i/100,p={r:(s.r-a.r)*c+a.r,g:(s.g-a.g)*c+a.g,b:(s.b-a.b)*c+a.b,a:(s.a-a.a)*c+a.a};return new e(p)},e.prototype.analogous=function(n,i){n===void 0&&(n=6),i===void 0&&(i=30);var a=this.toHsl(),s=360/i,c=[this];for(a.h=(a.h-(s*n>>1)+720)%360;--n;)a.h=(a.h+s)%360,c.push(new e(a));return c},e.prototype.complement=function(){var n=this.toHsl();return n.h=(n.h+180)%360,new e(n)},e.prototype.monochromatic=function(n){n===void 0&&(n=6);for(var i=this.toHsv(),a=i.h,s=i.s,c=i.v,p=[],m=1/n;n--;)p.push(new e({h:a,s,v:c})),c=(c+m)%1;return p},e.prototype.splitcomplement=function(){var n=this.toHsl(),i=n.h;return[this,new e({h:(i+72)%360,s:n.s,l:n.l}),new e({h:(i+216)%360,s:n.s,l:n.l})]},e.prototype.onBackground=function(n){var i=this.toRgb(),a=new e(n).toRgb(),s=i.a+a.a*(1-i.a);return new e({r:(i.r*i.a+a.r*a.a*(1-i.a))/s,g:(i.g*i.a+a.g*a.a*(1-i.a))/s,b:(i.b*i.a+a.b*a.a*(1-i.a))/s,a:s})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(n){for(var i=this.toHsl(),a=i.h,s=[this],c=360/n,p=1;p<n;p++)s.push(new e({h:(a+p*c)%360,s:i.s,l:i.l}));return s},e.prototype.equals=function(n){return this.toRgbString()===new e(n).toRgbString()},e}();function eo(e,n=20){return e.mix("#141414",n).toString()}function Sj(e){const n=Py(),i=Yr("button");return x.computed(()=>{let a={};const s=e.color;if(s){const c=new kj(s),p=e.dark?c.tint(20).toString():eo(c,20);if(e.plain)a=i.cssVarBlock({"bg-color":e.dark?eo(c,90):c.tint(90).toString(),"text-color":s,"border-color":e.dark?eo(c,50):c.tint(50).toString(),"hover-text-color":`var(${i.cssVarName("color-white")})`,"hover-bg-color":s,"hover-border-color":s,"active-bg-color":p,"active-text-color":`var(${i.cssVarName("color-white")})`,"active-border-color":p}),n.value&&(a[i.cssVarBlockName("disabled-bg-color")]=e.dark?eo(c,90):c.tint(90).toString(),a[i.cssVarBlockName("disabled-text-color")]=e.dark?eo(c,50):c.tint(50).toString(),a[i.cssVarBlockName("disabled-border-color")]=e.dark?eo(c,80):c.tint(80).toString());else{const m=e.dark?eo(c,30):c.tint(30).toString(),g=c.isDark()?`var(${i.cssVarName("color-white")})`:`var(${i.cssVarName("color-black")})`;if(a=i.cssVarBlock({"bg-color":s,"text-color":g,"border-color":s,"hover-bg-color":m,"hover-text-color":g,"hover-border-color":m,"active-bg-color":p,"active-border-color":p}),n.value){const y=e.dark?eo(c,50):c.tint(50).toString();a[i.cssVarBlockName("disabled-bg-color")]=y,a[i.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${i.cssVarName("color-white")})`,a[i.cssVarBlockName("disabled-border-color")]=y}}}return a})}const Dj=x.defineComponent({name:"ElButton"}),Ij=x.defineComponent({...Dj,props:Qy,emits:pj,setup(e,{expose:n,emit:i}){const a=e,s=Sj(a),c=Yr("button"),{_ref:p,_size:m,_type:g,_disabled:y,_props:O,shouldAddSpace:E,handleClick:N}=fj(a,i);return n({ref:p,size:m,type:g,disabled:y,shouldAddSpace:E}),(_,S)=>(x.openBlock(),x.createBlock(x.resolveDynamicComponent(_.tag),x.mergeProps({ref_key:"_ref",ref:p},x.unref(O),{class:[x.unref(c).b(),x.unref(c).m(x.unref(g)),x.unref(c).m(x.unref(m)),x.unref(c).is("disabled",x.unref(y)),x.unref(c).is("loading",_.loading),x.unref(c).is("plain",_.plain),x.unref(c).is("round",_.round),x.unref(c).is("circle",_.circle),x.unref(c).is("text",_.text),x.unref(c).is("link",_.link),x.unref(c).is("has-bg",_.bg)],style:x.unref(s),onClick:x.unref(N)}),{default:x.withCtx(()=>[_.loading?(x.openBlock(),x.createElementBlock(x.Fragment,{key:0},[_.$slots.loading?x.renderSlot(_.$slots,"loading",{key:0}):(x.openBlock(),x.createBlock(x.unref(Wr),{key:1,class:x.normalizeClass(x.unref(c).is("loading"))},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(_.loadingIcon)))]),_:1},8,["class"]))],64)):_.icon||_.$slots.icon?(x.openBlock(),x.createBlock(x.unref(Wr),{key:1},{default:x.withCtx(()=>[_.icon?(x.openBlock(),x.createBlock(x.resolveDynamicComponent(_.icon),{key:0})):x.renderSlot(_.$slots,"icon",{key:1})]),_:3})):x.createCommentVNode("v-if",!0),_.$slots.default?(x.openBlock(),x.createElementBlock("span",{key:2,class:x.normalizeClass({[x.unref(c).em("text","expand")]:x.unref(E)})},[x.renderSlot(_.$slots,"default")],2)):x.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var Bj=Za(Ij,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const Oj={size:Qy.size,type:Qy.type},Tj=x.defineComponent({name:"ElButtonGroup"}),Nj=x.defineComponent({...Tj,props:Oj,setup(e){const n=e;x.provide(v6,x.reactive({size:x.toRef(n,"size"),type:x.toRef(n,"type")}));const i=Yr("button");return(a,s)=>(x.openBlock(),x.createElementBlock("div",{class:x.normalizeClass(`${x.unref(i).b("group")}`)},[x.renderSlot(a.$slots,"default")],2))}});var E6=Za(Nj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const Mj=Eh(Bj,{ButtonGroup:E6});ZP(E6);const Wy="_trap-focus-children",ms=[],C6=e=>{var n;if(ms.length===0)return;const i=ms[ms.length-1][Wy];if(i.length>0&&e.code===Ch.tab){if(i.length===1){e.preventDefault(),document.activeElement!==i[0]&&i[0].focus();return}const a=e.shiftKey,s=e.target===i[0],c=e.target===i[i.length-1];if(s&&a&&(e.preventDefault(),i[i.length-1].focus()),c&&!a&&(e.preventDefault(),i[0].focus()),process.env.NODE_ENV==="test"){const p=i.indexOf(e.target);p!==-1&&((n=i[a?p-1:p+1])==null||n.focus())}}},Fj={beforeMount(e){e[Wy]=n3(e),ms.push(e),ms.length<=1&&document.addEventListener("keydown",C6)},updated(e){x.nextTick(()=>{e[Wy]=n3(e)})},unmounted(){ms.shift(),ms.length===0&&document.removeEventListener("keydown",C6)}},Pj=fs({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:mi([String,Array,Object])},zIndex:{type:mi([String,Number])}}),Rj={click:e=>e instanceof MouseEvent},jj="overlay";var Lj=x.defineComponent({name:"ElOverlay",props:Pj,emits:Rj,setup(e,{slots:n,emit:i}){const a=Yr(jj),s=g=>{i("click",g)},{onClick:c,onMousedown:p,onMouseup:m}=Z3(e.customMaskEvent?void 0:s);return()=>e.mask?x.createVNode("div",{class:[a.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:c,onMousedown:p,onMouseup:m},[x.renderSlot(n,"default")],kh.STYLE|kh.CLASS|kh.PROPS,["onClick","onMouseup","onMousedown"]):x.h("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[x.renderSlot(n,"default")])}});const zj=Lj,k6=["success","info","warning","error"],gi=j3({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:hi?document.body:void 0}),Qj=fs({customClass:{type:String,default:gi.customClass},center:{type:Boolean,default:gi.center},dangerouslyUseHTMLString:{type:Boolean,default:gi.dangerouslyUseHTMLString},duration:{type:Number,default:gi.duration},icon:{type:fd,default:gi.icon},id:{type:String,default:gi.id},message:{type:mi([String,Object,Function]),default:gi.message},onClose:{type:mi(Function),required:!1},showClose:{type:Boolean,default:gi.showClose},type:{type:String,values:k6,default:gi.type},offset:{type:Number,default:gi.offset},zIndex:{type:Number,default:gi.zIndex},grouping:{type:Boolean,default:gi.grouping},repeatNum:{type:Number,default:gi.repeatNum}}),Hj={destroy:()=>!0},Er=x.shallowReactive([]),Vj=e=>{const n=Er.findIndex(s=>s.id===e),i=Er[n];let a;return n>0&&(a=Er[n-1]),{current:i,prev:a}},Uj=e=>{const{prev:n}=Vj(e);return n?n.vm.exposed.bottom.value:0},Yj=(e,n)=>Er.findIndex(a=>a.id===e)>0?20:n,Wj=["id"],Gj=["innerHTML"],Jj=x.defineComponent({name:"ElMessage"}),Kj=x.defineComponent({...Jj,props:Qj,emits:Hj,setup(e,{expose:n}){const i=e,{Close:a}=P3,{ns:s,zIndex:c}=r6("message"),{currentZIndex:p,nextZIndex:m}=c,g=x.ref(),y=x.ref(!1),O=x.ref(0);let E;const N=x.computed(()=>i.type?i.type==="error"?"danger":i.type:"info"),_=x.computed(()=>{const F=i.type;return{[s.bm("icon",F)]:F&&wh[F]}}),S=x.computed(()=>i.icon||wh[i.type]||""),M=x.computed(()=>Uj(i.id)),P=x.computed(()=>Yj(i.id,i.offset)+M.value),T=x.computed(()=>O.value+P.value),R=x.computed(()=>({top:`${P.value}px`,zIndex:p.value}));function b(){i.duration!==0&&({stop:E}=j9(()=>{B()},i.duration))}function w(){E==null||E()}function B(){y.value=!1}function Q({code:F}){F===Ch.esc&&B()}return x.onMounted(()=>{b(),m(),y.value=!0}),x.watch(()=>i.repeatNum,()=>{w(),b()}),o3(document,"keydown",Q),l3(g,()=>{O.value=g.value.getBoundingClientRect().height}),n({visible:y,bottom:T,close:B}),(F,H)=>(x.openBlock(),x.createBlock(x.Transition,{name:x.unref(s).b("fade"),onBeforeLeave:F.onClose,onAfterLeave:H[0]||(H[0]=ee=>F.$emit("destroy")),persisted:""},{default:x.withCtx(()=>[x.withDirectives(x.createElementVNode("div",{id:F.id,ref_key:"messageRef",ref:g,class:x.normalizeClass([x.unref(s).b(),{[x.unref(s).m(F.type)]:F.type&&!F.icon},x.unref(s).is("center",F.center),x.unref(s).is("closable",F.showClose),F.customClass]),style:x.normalizeStyle(x.unref(R)),role:"alert",onMouseenter:w,onMouseleave:b},[F.repeatNum>1?(x.openBlock(),x.createBlock(x.unref(dj),{key:0,value:F.repeatNum,type:x.unref(N),class:x.normalizeClass(x.unref(s).e("badge"))},null,8,["value","type","class"])):x.createCommentVNode("v-if",!0),x.unref(S)?(x.openBlock(),x.createBlock(x.unref(Wr),{key:1,class:x.normalizeClass([x.unref(s).e("icon"),x.unref(_)])},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(x.unref(S))))]),_:1},8,["class"])):x.createCommentVNode("v-if",!0),x.renderSlot(F.$slots,"default",{},()=>[F.dangerouslyUseHTMLString?(x.openBlock(),x.createElementBlock(x.Fragment,{key:1},[x.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),x.createElementVNode("p",{class:x.normalizeClass(x.unref(s).e("content")),innerHTML:F.message},null,10,Gj)],2112)):(x.openBlock(),x.createElementBlock("p",{key:0,class:x.normalizeClass(x.unref(s).e("content"))},x.toDisplayString(F.message),3))]),F.showClose?(x.openBlock(),x.createBlock(x.unref(Wr),{key:2,class:x.normalizeClass(x.unref(s).e("closeBtn")),onClick:x.withModifiers(B,["stop"])},{default:x.withCtx(()=>[x.createVNode(x.unref(a))]),_:1},8,["class","onClick"])):x.createCommentVNode("v-if",!0)],46,Wj),[[x.vShow,y.value]])]),_:3},8,["name","onBeforeLeave"]))}});var Xj=Za(Kj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let Zj=1;const S6=e=>{const n=!e||yr(e)||x.isVNode(e)||ls(e)?{message:e}:e,i={...gi,...n};if(!i.appendTo)i.appendTo=document.body;else if(yr(i.appendTo)){let a=document.querySelector(i.appendTo);ky(a)||(Ur("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),a=document.body),i.appendTo=a}return i},$j=e=>{const n=Er.indexOf(e);if(n===-1)return;Er.splice(n,1);const{handler:i}=e;i.close()},qj=({appendTo:e,...n},i)=>{const a=`message_${Zj++}`,s=n.onClose,c=document.createElement("div"),p={...n,id:a,onClose:()=>{s==null||s(),$j(O)},onDestroy:()=>{x.render(null,c)}},m=x.createVNode(Xj,p,ls(p.message)||x.isVNode(p.message)?{default:ls(p.message)?p.message:()=>p.message}:null);m.appContext=i||Kl._context,x.render(m,c),e.appendChild(c.firstElementChild);const g=m.component,O={id:a,vnode:m,vm:g,handler:{close:()=>{g.exposed.visible.value=!1}},props:m.component.props};return O},Kl=(e={},n)=>{if(!hi)return{close:()=>{}};if(ds(My.max)&&Er.length>=My.max)return{close:()=>{}};const i=S6(e);if(i.grouping&&Er.length){const s=Er.find(({vnode:c})=>{var p;return((p=c.props)==null?void 0:p.message)===i.message});if(s)return s.props.repeatNum+=1,s.props.type=i.type,s.handler}const a=qj(i,n);return Er.push(a),a.handler};k6.forEach(e=>{Kl[e]=(n={},i)=>{const a=S6(n);return Kl({...a,type:e},i)}});function eL(e){for(const n of Er)(!e||e===n.props.type)&&n.handler.close()}Kl.closeAll=eL,Kl._context=null;const hd=XP(Kl,"$message"),tL=x.defineComponent({name:"ElMessageBox",directives:{TrapFocus:Fj},components:{ElButton:Mj,ElFocusTrap:aj,ElInput:WR,ElOverlay:zj,ElIcon:Wr,...P3},inheritAttrs:!1,props:{buttonSize:{type:String,validator:$P},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:n}){const{locale:i,zIndex:a,ns:s,size:c}=r6("message-box",x.computed(()=>e.buttonSize)),{t:p}=i,{nextZIndex:m}=a,g=x.ref(!1),y=x.reactive({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:m()}),O=x.computed(()=>{const ye=y.type;return{[s.bm("icon",ye)]:ye&&wh[ye]}}),E=Oy(),N=Oy(),_=x.computed(()=>y.icon||wh[y.type]||""),S=x.computed(()=>!!y.message),M=x.ref(),P=x.ref(),T=x.ref(),R=x.ref(),b=x.ref(),w=x.computed(()=>y.confirmButtonClass);x.watch(()=>y.inputValue,async ye=>{await x.nextTick(),e.boxType==="prompt"&&ye!==null&&se()},{immediate:!0}),x.watch(()=>g.value,ye=>{var _e,W;ye&&(e.boxType!=="prompt"&&(y.autofocus?T.value=(W=(_e=b.value)==null?void 0:_e.$el)!=null?W:M.value:T.value=M.value),y.zIndex=m()),e.boxType==="prompt"&&(ye?x.nextTick().then(()=>{var J;R.value&&R.value.$el&&(y.autofocus?T.value=(J=me())!=null?J:M.value:T.value=M.value)}):(y.editorErrorMessage="",y.validateError=!1))});const B=x.computed(()=>e.draggable);rR(M,P,B),x.onMounted(async()=>{await x.nextTick(),e.closeOnHashChange&&window.addEventListener("hashchange",Q)}),x.onBeforeUnmount(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",Q)});function Q(){!g.value||(g.value=!1,x.nextTick(()=>{y.action&&n("action",y.action)}))}const F=()=>{e.closeOnClickModal&&ne(y.distinguishCancelAndClose?"close":"cancel")},H=Z3(F),ee=ye=>{if(y.inputType!=="textarea")return ye.preventDefault(),ne("confirm")},ne=ye=>{var _e;e.boxType==="prompt"&&ye==="confirm"&&!se()||(y.action=ye,y.beforeClose?(_e=y.beforeClose)==null||_e.call(y,ye,y,Q):Q())},se=()=>{if(e.boxType==="prompt"){const ye=y.inputPattern;if(ye&&!ye.test(y.inputValue||""))return y.editorErrorMessage=y.inputErrorMessage||p("el.messagebox.error"),y.validateError=!0,!1;const _e=y.inputValidator;if(typeof _e=="function"){const W=_e(y.inputValue);if(W===!1)return y.editorErrorMessage=y.inputErrorMessage||p("el.messagebox.error"),y.validateError=!0,!1;if(typeof W=="string")return y.editorErrorMessage=W,y.validateError=!0,!1}}return y.editorErrorMessage="",y.validateError=!1,!0},me=()=>{const ye=R.value.$refs;return ye.input||ye.textarea},pe=()=>{ne("close")},Se=()=>{e.closeOnPressEscape&&pe()};return e.lockScroll&&_R(g),{...x.toRefs(y),ns:s,overlayEvent:H,visible:g,hasMessage:S,typeClass:O,contentId:E,inputId:N,btnSize:c,iconComponent:_,confirmButtonClasses:w,rootRef:M,focusStartRef:T,headerRef:P,inputRef:R,confirmRef:b,doClose:Q,handleClose:pe,onCloseRequested:Se,handleWrapperClick:F,handleInputEnter:ee,handleAction:ne,t:p}}}),nL=["aria-label","aria-describedby"],iL=["aria-label"],rL=["id"];function aL(e,n,i,a,s,c){const p=x.resolveComponent("el-icon"),m=x.resolveComponent("close"),g=x.resolveComponent("el-input"),y=x.resolveComponent("el-button"),O=x.resolveComponent("el-focus-trap"),E=x.resolveComponent("el-overlay");return x.openBlock(),x.createBlock(x.Transition,{name:"fade-in-linear",onAfterLeave:n[11]||(n[11]=N=>e.$emit("vanish")),persisted:""},{default:x.withCtx(()=>[x.withDirectives(x.createVNode(E,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:x.withCtx(()=>[x.createElementVNode("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:x.normalizeClass(`${e.ns.namespace.value}-overlay-message-box`),onClick:n[8]||(n[8]=(...N)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...N)),onMousedown:n[9]||(n[9]=(...N)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...N)),onMouseup:n[10]||(n[10]=(...N)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...N))},[x.createVNode(O,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:x.withCtx(()=>[x.createElementVNode("div",{ref:"rootRef",class:x.normalizeClass([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:x.normalizeStyle(e.customStyle),tabindex:"-1",onClick:n[7]||(n[7]=x.withModifiers(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(x.openBlock(),x.createElementBlock("div",{key:0,ref:"headerRef",class:x.normalizeClass(e.ns.e("header"))},[x.createElementVNode("div",{class:x.normalizeClass(e.ns.e("title"))},[e.iconComponent&&e.center?(x.openBlock(),x.createBlock(p,{key:0,class:x.normalizeClass([e.ns.e("status"),e.typeClass])},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):x.createCommentVNode("v-if",!0),x.createElementVNode("span",null,x.toDisplayString(e.title),1)],2),e.showClose?(x.openBlock(),x.createElementBlock("button",{key:0,type:"button",class:x.normalizeClass(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:n[0]||(n[0]=N=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:n[1]||(n[1]=x.withKeys(x.withModifiers(N=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[x.createVNode(p,{class:x.normalizeClass(e.ns.e("close"))},{default:x.withCtx(()=>[x.createVNode(m)]),_:1},8,["class"])],42,iL)):x.createCommentVNode("v-if",!0)],2)):x.createCommentVNode("v-if",!0),x.createElementVNode("div",{id:e.contentId,class:x.normalizeClass(e.ns.e("content"))},[x.createElementVNode("div",{class:x.normalizeClass(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(x.openBlock(),x.createBlock(p,{key:0,class:x.normalizeClass([e.ns.e("status"),e.typeClass])},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):x.createCommentVNode("v-if",!0),e.hasMessage?(x.openBlock(),x.createElementBlock("div",{key:1,class:x.normalizeClass(e.ns.e("message"))},[x.renderSlot(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(x.openBlock(),x.createBlock(x.resolveDynamicComponent(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(x.openBlock(),x.createBlock(x.resolveDynamicComponent(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):x.createCommentVNode("v-if",!0)],2),x.withDirectives(x.createElementVNode("div",{class:x.normalizeClass(e.ns.e("input"))},[x.createVNode(g,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":n[2]||(n[2]=N=>e.inputValue=N),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:x.normalizeClass({invalid:e.validateError}),onKeydown:x.withKeys(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),x.createElementVNode("div",{class:x.normalizeClass(e.ns.e("errormsg")),style:x.normalizeStyle({visibility:e.editorErrorMessage?"visible":"hidden"})},x.toDisplayString(e.editorErrorMessage),7)],2),[[x.vShow,e.showInput]])],10,rL),x.createElementVNode("div",{class:x.normalizeClass(e.ns.e("btns"))},[e.showCancelButton?(x.openBlock(),x.createBlock(y,{key:0,loading:e.cancelButtonLoading,class:x.normalizeClass([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:n[3]||(n[3]=N=>e.handleAction("cancel")),onKeydown:n[4]||(n[4]=x.withKeys(x.withModifiers(N=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):x.createCommentVNode("v-if",!0),x.withDirectives(x.createVNode(y,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:x.normalizeClass([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:n[5]||(n[5]=N=>e.handleAction("confirm")),onKeydown:n[6]||(n[6]=x.withKeys(x.withModifiers(N=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[x.vShow,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,nL)]),_:3},8,["z-index","overlay-class","mask"]),[[x.vShow,e.visible]])]),_:3})}var oL=Za(tL,[["render",aL],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const md=new Map,sL=e=>{let n=document.body;return e.appendTo&&(yr(e.appendTo)&&(n=document.querySelector(e.appendTo)),ky(e.appendTo)&&(n=e.appendTo),ky(n)||(Ur("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),n=document.body)),n},lL=(e,n,i=null)=>{const a=x.createVNode(oL,e,ls(e.message)||x.isVNode(e.message)?{default:ls(e.message)?e.message:()=>e.message}:null);return a.appContext=i,x.render(a,n),sL(e).appendChild(n.firstElementChild),a.component},cL=()=>document.createElement("div"),uL=(e,n)=>{const i=cL();e.onVanish=()=>{x.render(null,i),md.delete(s)},e.onAction=c=>{const p=md.get(s);let m;e.showInput?m={value:s.inputValue,action:c}:m=c,e.callback?e.callback(m,a.proxy):c==="cancel"||c==="close"?e.distinguishCancelAndClose&&c!=="cancel"?p.reject("close"):p.reject("cancel"):p.resolve(m)};const a=lL(e,i,n),s=a.proxy;for(const c in e)bh(e,c)&&!bh(s.$props,c)&&(s[c]=e[c]);return s.visible=!0,s};function Xl(e,n=null){if(!hi)return Promise.reject();let i;return yr(e)||x.isVNode(e)?e={message:e}:i=e.callback,new Promise((a,s)=>{const c=uL(e,n!=null?n:Xl._context);md.set(c,{options:e,callback:i,resolve:a,reject:s})})}const dL=["alert","confirm","prompt"],fL={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};dL.forEach(e=>{Xl[e]=pL(e)});function pL(e){return(n,i,a,s)=>{let c="";return cd(i)?(a=i,c=""):w3(i)?c="":c=i,Xl(Object.assign({title:c,message:n,type:"",...fL[e]},a,{boxType:e}),s)}}Xl.close=()=>{md.forEach((e,n)=>{n.doClose()}),md.clear()},Xl._context=null;const to=Xl;to.install=e=>{to._context=e._context,e.config.globalProperties.$msgbox=to,e.config.globalProperties.$messageBox=to,e.config.globalProperties.$alert=to.alert,e.config.globalProperties.$confirm=to.confirm,e.config.globalProperties.$prompt=to.prompt};const D6=to;var hL=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",[i("el-row",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"foot-item",style:{}},[e.process.status=="todo"?[e.getButton("wf_pass")?i("el-button",{attrs:{type:"success",size:"default",disabled:e.loading},on:{click:function(a){e.$emit("examine",!0,e.getButton("wf_pass").name)}}},[i("span",[e._v(e._s(e.getButton("wf_pass").name))])]):e._e(),e.getButton("wf_reject")?i("el-button",{attrs:{type:"danger",size:"default",disabled:e.loading},on:{click:function(a){e.$emit("examine",!1,e.getButton("wf_reject").name)}}},[i("span",[e._v(e._s(e.getButton("wf_reject").name))])]):e._e(),e.userId==e.process.variables.applyUserId?i("el-button",{attrs:{size:"default",disabled:e.loading},on:{click:function(a){return e.$emit("reminders")}}},[i("span",[e._v("\u50AC\u529E")])]):e._e(),e.getButton("wf_transfer")?i("el-button",{attrs:{type:"primary",size:"default",disabled:e.loading},on:{click:function(a){e.$emit("user-select",{type:"transfer",checkType:"radio",name:e.getButton("wf_transfer").name})}}},[e._v(e._s(e.getButton("wf_transfer").name))]):e._e(),e.getButton("wf_delegate")?i("el-button",{attrs:{type:"warning",size:"default",disabled:e.loading},on:{click:function(a){e.$emit("user-select",{type:"delegate",checkType:"radio",name:e.getButton("wf_delegate").name})}}},[e._v(" "+e._s(e.getButton("wf_delegate").name)+" ")]):e._e(),e.getButton("wf_rollback")?i("el-button",{attrs:{type:"success",size:"default",disabled:e.loading},on:{click:function(a){e.$emit("rollback",e.getButton("wf_rollback").name)}}},[e._v(" "+e._s(e.getButton("wf_rollback").name)+" ")]):e._e(),e.getButton("wf_terminate")?i("el-button",{attrs:{type:"danger",size:"default",disabled:e.loading},on:{click:function(a){return e.$emit("terminate")}}},[e._v(" "+e._s(e.getButton("wf_terminate").name)+" ")]):e._e(),e.process.isMultiInstance&&e.getButton("wf_add_instance")?i("el-button",{attrs:{type:"primary",size:"default",disabled:e.loading},on:{click:function(a){e.$emit("user-select",{type:"addInstance",checkType:"checkbox",name:e.getButton("wf_add_instance").name})}}},[e._v(" "+e._s(e.getButton("wf_add_instance").name)+" ")]):e._e(),e.getButton("wf_cctask")?i("el-button",{attrs:{size:"default",disabled:e.loading},on:{click:function(a){e.$emit("circulate",e.getButton("wf_cctask").name)}}},[i("span",[e._v(e._s(e.getButton("wf_cctask").name))])]):e._e()]:e._e(),e.process.isOwner&&e.process.isReturnable&&!["deleted"].includes(e.process.processIsFinished)?i("el-button",{attrs:{type:"warning",size:"default",disabled:e.loading},on:{click:function(a){return e.$emit("withdraw","\u64A4\u9500")}}},[e._v(" \u64A4\u9500 ")]):e._e(),e.getButton("wf_print")?i("el-button",{attrs:{type:"info",size:"default",disabled:e.loading},on:{click:function(a){return e.$emit("print")}}},[e._v(" "+e._s(e.getButton("wf_print").name)+" ")]):e._e()],2)],1)},mL=[];const MZ="",gL={name:"nf-button",props:{userId:{type:String,default:""},loading:{type:Boolean,default:!1},buttonList:{type:Array,default:()=>[]},process:Object,comment:String},data(){return{isCollapse:!0,nodeForm:{},nodeOption:{column:[{label:"\u8282\u70B9",prop:"nodeId",type:"select",props:{label:"nodeName",value:"nodeId"},span:24,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u56DE\u9000\u8282\u70B9",trigger:"change"}]}]},backNodes:[]}},watch:{"process.taskId":{handler(e){e&&Xe.repository.backNodes({taskId:e}).then(n=>{const i=n.data;this.backNodes=i})},immediate:!0}},methods:{getButton(e){return this.buttonList.find(n=>n.buttonKey==e)}}},I6={};var AL=qt(gL,hL,mL,!1,vL,"1d36c4be",null,null);function vL(e){for(let n in I6)this[n]=I6[n]}const bL=function(){return AL.exports}(),_L=e=>{var n=Object.prototype.toString,i={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"};return e instanceof Element?"element":i[n.call(e)]},Gy=e=>{var n=_L(e),i;if(n==="array")i=[];else if(n==="object")i={};else return e;if(n==="array")for(var a=0,s=e.length;a<s;a++)i.push(Gy(e[a]));else if(n==="object")for(var c in e)i[c]=Gy(e[c]);return i};function B6(e,n="YYYY-MM-DD HH:mm:ss"){return ld(e).format(n)}function yL(e){e=Gy(e);const n={};e.forEach(a=>{n[a.historyActivityId]?n[a.historyActivityId].push(a):n[a.historyActivityId]=[a]});for(let a in n){const s=n[a];if(s.length>1){const c=e.findLast(p=>p.historyActivityId==a);c.assigneeName=Array.from(new Set(s.map(p=>p.assigneeName))).join("/")}}const i=[];return e.forEach(a=>{let{assigneeName:s,createTime:c,endTime:p,comments:m}=a;/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&(c=c.replace(/-/g,"/"),p=p.replace(/-/g,"/"));const g={id:a.historyActivityId,class:!p&&a.historyActivityType!="candidate"?"nodePrimary":""};let y="";if(s||m&&m.length>0){if(y=`<span title='${s}'>${s}</span><br>`,c&&(y+=`<span title='${c}'>${B6(c,"YYYY-MM-DD HH:mm")}</span><br>`),m&&m.length>0){let E,{type:N,fullMessage:_}=m.find(S=>S.action=="AddComment")||{};N=="assigneeComment"&&(E="\u53D8\u66F4\u5BA1\u6838\u4EBA\uFF1A"+_,g.class="nodeWarn"),N=="dispatchComment"&&(E="\u8C03\u5EA6\uFF1A"+_,g.class="nodeWarn"),N=="transferComment"&&(E="\u8F6C\u529E\uFF1A"+_,g.class="nodeWarn"),N=="delegateComment"&&(E="\u59D4\u6258\uFF1A"+_,g.class="nodeWarn"),N=="rollbackComment"&&(E="\u6307\u5B9A\u56DE\u9000\uFF1A"+_,g.class="nodeError"),N=="terminateComment"&&(E="\u7EC8\u6B62\uFF1A"+_,g.class="nodeError"),(N=="addMultiInstanceComment"||(N||"").includes("\u52A0\u7B7E"))&&(E="\u52A0\u7B7E\uFF1A"+_,g.class="nodeWarn"),N=="deleteMultiInstanceComment"&&(E="\u51CF\u7B7E\uFF1A"+_,g.class="nodeError"),N=="withdrawComment"&&(E="\u64A4\u9500\uFF1A"+_,g.class="nodeWarn"),N=="deleteProcessComment"&&(E="\u5220\u9664\u6D41\u7A0B\uFF1A"+_,g.class="nodeError"),N=="cancelProcessComment"&&(E="\u62D2\u7EDD\uFF1A"+_,g.class="nodeError"),N=="comment"&&(E="\u5BA1\u6279\uFF1A"+_,g.class="nodeSuccess"),E&&(y+=`<span title='${E}'>${E}</span>`)}g.tooltip=y}a.historyActivityType=="sequenceFlow"?g.class="lineWarn":!g.class&&a.historyActivityType!="candidate"&&(g.class="nodeSuccess");const O=i.findIndex(E=>E.id==a.historyActivityId);O!=-1?i.splice(O,1,g):i.push(g)}),i}function Jy(e){const n=[],i=[],a=[];return e.routeTxt&&e.routeTxt.length>0&&e.routeTxt.forEach(s=>{s.type==="user"?n.push(...s.ids.filter(c=>c&&c.trim()!=="")):s.type==="post"?i.push(...s.ids):s.type==="dept"&&a.push(...s.ids)}),{intersection:e.assigneeRetain=="true"?1:0,userIds:[...new Set(n)],postIds:[...new Set(i)],deptIds:[...new Set(a)]}}function Ky(e){const n=[];return e.forEach(i=>{let{assigneeName:a,createTime:s,endTime:c,comments:p}=i;/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&(s=s.replace(/-/g,"/"),c=c.replace(/-/g,"/"));const m={id:i.historyActivityId,class:!c&&i.historyActivityType!="candidate"?"nodePrimary":""};let g="";if(a||p&&p.length>0){if(g=`<span title='${a}'>${a}</span><br>`,s&&(g+=`<span title='${s}'>${B6(s,"YYYY-MM-DD HH:mm")}</span><br>`),p&&p.length>0){let y,{type:O,fullMessage:E}=p.find(N=>N.action=="AddComment")||{};O=="assigneeComment"&&(y="\u53D8\u66F4\u5BA1\u6838\u4EBA\uFF1A"+E,m.class="nodeWarn"),O=="dispatchComment"&&(y="\u8C03\u5EA6\uFF1A"+E,m.class="nodeWarn"),O=="transferComment"&&(y="\u8F6C\u529E\uFF1A"+E,m.class="nodeWarn"),O=="delegateComment"&&(y="\u59D4\u6258\uFF1A"+E,m.class="nodeWarn"),O=="rollbackComment"&&(y="\u6307\u5B9A\u56DE\u9000\uFF1A"+E,m.class="nodeError"),O=="terminateComment"&&(y="\u7EC8\u6B62\uFF1A"+E,m.class="nodeError"),(O=="addMultiInstanceComment"||(O||"").includes("\u52A0\u7B7E"))&&(y="\u52A0\u7B7E\uFF1A"+E,m.class="nodeWarn"),O=="deleteMultiInstanceComment"&&(y="\u51CF\u7B7E\uFF1A"+E,m.class="nodeError"),O=="withdrawComment"&&(y="\u64A4\u9500\uFF1A"+E,m.class="nodeWarn"),O=="deleteProcessComment"&&(y="\u5220\u9664\u6D41\u7A0B\uFF1A"+E,m.class="nodeError"),O=="cancelProcessComment"&&(y="\u62D2\u7EDD\uFF1A"+E,m.class="nodeError"),O=="comment"&&(y="\u5BA1\u6279\uFF1A"+E,m.class="nodeSuccess"),y&&(g+=`<span title='${y}'>${y}</span>`)}m.tooltip=g}i.historyActivityType=="sequenceFlow"?m.class="lineWarn":!m.class&&i.historyActivityType!="candidate"&&(m.class="nodeSuccess"),n.push({...i,...m})}),n}var xL=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-row",{attrs:{type:"flex"}},[i("el-timeline",[e._l(e.getColors(e.flowList),function(a,s){return[["candidate","sequenceFlow"].includes(a.historyActivityType)?e._e():i("el-timeline-item",{key:a.id,attrs:{timestamp:a.endTime||a.createTime,placement:"top"}},[i("el-card",{class:[a.endTime?"":"cur-process",e.isHistory?"cur-process-history":"",e.isActive?"cur-process-isActive":""]},[e.isHistory?i("div",{staticClass:"cur-process-history-icon"},[i("svg",{staticClass:"icon",attrs:{t:"1766388445844",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"23729"}},[i("path",{attrs:{d:"M664.064 162.304c-2.56 6.144-0.512 15.36-3.072 22.528-6.656 5.12-12.8 10.752-17.92 16.384 7.68 1.536 15.872 3.072 23.552 6.656 4.096 6.144 6.656 12.288 10.24 18.432 6.144-5.632 11.264-11.776 16.384-17.92 8.704-2.048 16.896-2.56 25.6-5.12-6.144-6.144-8.192-10.24-13.312-16.896 1.536-7.68 4.608-14.848 4.096-22.016-8.192 3.072-15.872 5.12-24.064 7.68-7.68-4.608-14.336-6.144-21.504-9.728z m223.744 386.56c7.168-5.12 13.312-9.728 18.944-15.36-7.68-2.048-15.36-4.096-23.04-7.68-3.584-6.144-5.632-12.288-9.216-18.432-6.144 5.12-11.776 11.264-16.896 16.896-8.704 1.536-16.896 1.024-26.112 3.584 5.632 6.656 7.68 10.752 12.288 17.92-2.048 7.68-5.632 14.848-5.632 22.016 8.192-2.56 16.384-4.096 24.576-6.144 6.656 4.096 14.336 6.656 20.992 10.24 3.072-6.656 1.024-15.872 4.096-23.04z m-302.592-462.848c37.376 7.168 74.752 18.432 111.616 36.352 1.024-1.024 3.072 0 4.096-1.536-2.048-1.024-4.096 0.512-6.144-1.024 2.56-4.096 5.632-3.584 8.704-4.608-1.536-5.632-7.168-0.512-9.728 0-0.512 1.536-0.512 2.56-1.024 3.584-1.536-1.024-3.072 0-4.608-2.048 1.024-3.584 5.12-2.56 7.168-4.608-1.024-0.512 0.512-1.536 0-2.048-35.84-15.872-72.192-28.16-108.032-34.304-1.024 2.048 0.512 4.608 2.048 6.656 1.024 0.512 3.072-1.024 2.56 0-1.024 0.512 1.024 1.536 0 2.048-2.56-0.512-4.608 1.024-6.656 1.536zM329.728 835.584c6.656 4.096 14.336 6.656 20.992 10.24 3.072-6.144 1.536-15.36 4.096-22.528 7.168-5.12 13.312-9.728 18.944-15.36-7.68-2.048-15.36-4.096-23.04-7.68-3.584-6.144-5.632-12.288-9.216-18.432-6.144 5.12-11.776 11.264-16.896 16.896-8.704 1.536-16.896 1.024-26.112 3.584 5.632 6.656 7.68 10.752 12.288 17.92-2.048 7.68-5.632 14.848-5.632 22.016 8.192-3.072 16.384-4.608 24.576-6.656z m174.08 48.128c6.656 4.096 14.336 6.656 20.992 10.24 3.072-6.144 1.536-15.36 4.096-22.528 7.168-5.12 13.312-9.728 18.944-15.36-7.68-2.048-15.36-4.096-23.04-7.68-3.584-6.144-5.632-12.288-9.216-18.432-6.144 5.12-11.776 11.264-16.896 16.896-8.704 1.536-16.896 1.024-26.112 3.584 5.12 6.656 7.168 10.24 12.288 17.92-2.048 7.68-5.632 14.848-5.632 22.016 8.704-3.072 16.384-4.096 24.576-6.656zM82.432 485.888c-3.072-0.512-6.144-3.072-10.24-2.048-3.072 38.912 0 81.92 10.24 123.392 2.048-2.56 3.584-6.144 7.168-6.144 0-1.536 0.512-2.56 1.536-4.096-7.68-37.376-9.728-74.24-8.704-111.104zM695.808 829.44c6.656 4.096 14.336 6.656 20.992 10.24 3.072-6.144 1.536-15.36 4.096-22.528 7.168-5.12 13.312-9.728 18.944-15.36-7.68-2.048-15.36-4.096-23.04-7.68-3.584-6.144-5.632-12.288-9.216-18.432-6.144 5.12-11.776 11.264-16.896 16.896-8.704 1.536-16.896 1.024-26.112 3.584 5.12 6.144 7.168 10.24 12.288 17.92-2.048 7.68-5.632 14.848-5.632 22.016 8.192-3.072 16.384-4.608 24.576-6.656z m-256-749.056c1.536 1.024 4.096-1.536 3.584 0.512 1.024 1.536-1.536 2.56-0.512 4.096 39.424-4.096 79.36-5.632 118.272-1.024 3.584-3.072 7.68-6.144 10.752-9.216-9.216-2.56-21.504-3.072-32.256-4.608-10.752-1.024-22.016-1.024-32.768-1.024-22.016 0.512-44.544 1.536-67.072 5.632 0 0-0.512-0.512-0.512 0 1.536 1.536-1.024 3.584 0.512 5.632zM112.64 351.232c14.848-38.4 35.328-75.776 64.512-111.616 28.672-35.84 68.608-71.68 109.568-96.256 41.472-25.088 81.92-40.96 122.368-50.688 2.56-4.096 6.144-8.704 7.68-13.312-6.656 2.048-14.336 2.048-19.968 6.144-7.168-1.024-14.848 3.584-22.016 5.12-7.68 2.048-14.848 4.608-22.528 7.68-14.848 5.632-30.208 12.288-45.056 20.48-30.72 16.384-60.928 35.84-90.624 62.976-89.6 81.408-126.464 172.544-141.312 263.168-0.512 1.536 1.024 2.048 1.024 2.56-2.048 2.048-1.536 4.608-2.048 6.656 1.536 1.536 4.608 3.072 5.12 4.608-1.024 1.536-3.072 3.584-4.096 4.096-2.048-1.024 1.024-2.56-0.512-3.584-1.536 2.56-1.536 7.168-1.536 10.752 0 3.072-2.048 8.192 0.512 9.728 4.608-1.024 0-5.12 0-7.68 4.096-1.536 6.144-4.096 9.728-5.632 3.584-9.728 2.56-19.456 5.12-29.184 1.024-9.728 3.584-18.944 5.632-29.184 5.12-18.432 10.24-37.888 18.432-56.832z m-31.744 108.544c1.024 0 2.56 1.024 2.56 2.048-1.536 1.536-2.048 0-2.56-2.048z m715.776-268.288c29.184 25.088 59.904 62.976 80.384 96.256 41.984 68.096 58.368 134.144 63.488 199.168 3.072 0 6.656 2.56 10.752 5.12 2.048-2.56 0-8.704 0.512-12.288-0.512-4.096-0.512-8.704-1.536-12.8-0.512-8.704-1.536-17.408-3.072-25.6-2.56-17.408-6.656-34.816-11.776-52.224-10.752-34.304-24.576-70.144-47.104-105.472-20.48-34.304-53.76-74.752-84.48-101.376-31.232-28.16-62.976-48.64-95.232-65.024 0 0-0.512-0.512-0.512 0 1.024 4.096-1.024 8.192-1.024 12.288 30.208 14.848 60.416 34.816 89.6 61.952z m24.576 513.024c6.656 4.096 14.336 6.656 20.992 10.24 3.072-6.144 1.536-15.36 4.096-22.528 7.168-5.12 13.312-9.728 18.944-15.36-7.68-2.048-15.36-4.096-23.04-7.68-3.584-6.144-5.632-12.288-9.216-18.432-6.144 5.12-11.776 11.264-16.896 16.896-8.704 1.536-16.896 1.024-26.112 3.584 5.12 6.656 7.168 10.752 12.288 17.92-2.048 7.68-5.632 14.848-5.632 22.016 8.192-3.072 16.384-4.608 24.576-6.656zM701.952 126.464c0-0.512-1.024-3.072-2.048-2.56 0.512 0 0 0.512-0.512 1.536 0.512 0 1.536 0.512 2.56 1.024zM417.792 68.608c-0.512 0-1.536-2.048-2.56-2.56-1.024-4.096 4.096-7.68 1.024-12.288-1.024-0.512-2.048 0-3.072 0 0.512 5.632-2.56 11.776-3.072 17.408 2.56-1.024 6.144-0.512 7.68-2.56z m12.8 19.456c-1.536-4.096 2.56-7.68 1.536-11.776-3.584 0.512-7.168 0.512-10.24 3.072 0 2.56-0.512 5.12-1.536 7.68-2.048 1.024-2.56 2.56-2.048 4.096 4.608-1.536 8.192-2.048 12.288-3.072z m-30.72-29.184c2.56-0.512 3.584 0.512 5.12 2.048 3.584-2.048 2.56-6.656 3.584-9.216-6.144 1.536-12.288 2.56-19.456 5.12-2.048 7.168-6.144 13.824-5.632 21.504 4.096-1.536 8.192-2.048 12.288-4.096 1.536-4.608 2.048-10.24 4.096-15.36z m28.672 8.192c-0.512-1.024-1.536-3.584-3.072-3.072 0 1.536-1.536 2.56-1.024 4.608 1.536-1.024 2.56 0 4.096-1.536z m110.592 56.832c-8.192 3.072-15.872 5.12-24.064 7.68-7.168-3.584-14.336-5.632-21.504-9.216-2.56 6.144-0.512 15.36-3.072 22.528-6.656 5.12-12.8 10.752-17.92 16.384 7.68 1.536 15.872 3.072 23.552 6.656 4.096 6.144 6.656 12.288 10.24 18.432 6.144-5.632 11.264-11.776 16.384-17.92 8.704-2.048 16.896-2.56 25.6-5.12-6.144-6.144-8.192-10.752-13.312-16.896 1.024-7.68 4.096-15.36 4.096-22.528z m44.032-58.368c6.144-4.608 12.288-10.24 16.384-15.36-16.896-4.608-34.304-5.632-51.2-7.168-1.536 0.512-3.072 1.536-4.608 2.048-1.536-1.024 0-1.536-1.024-2.56-30.72-2.56-62.464-2.048-93.696 2.56-0.512 2.56-4.608 5.12-5.632 8.192 0 1.536 3.072 3.072 2.048 4.608-2.56 3.072-4.608 0-7.168 2.56-1.536 2.048-1.024 4.096-2.56 6.144 49.664-7.68 98.816-7.68 147.456-1.024z m358.4 432.128c2.56 0.512 5.632 4.096 8.192 3.584 0.512-2.048 2.048-2.56 2.048-4.096-3.584-1.024-7.168-4.608-10.752-6.656 0.512 2.56-0.512 5.12 0.512 7.168z m-468.992 286.208c0.512-1.536 2.56-3.072 4.096-3.072 0-3.072-0.512-4.608-2.048-6.656-32.768-5.632-65.024-16.896-96.768-34.816-1.536 3.072-3.584 6.144-3.072 9.728 31.744 18.944 64.512 29.696 97.792 34.816z m-311.808-252.928c6.144-5.632 11.264-11.776 16.384-17.92 8.704-2.048 16.896-2.56 25.6-5.12-6.144-6.144-8.192-10.24-13.312-16.896 1.536-7.68 4.608-14.848 4.096-22.016-8.192 3.072-15.872 5.12-24.064 7.68-7.168-3.584-14.336-5.632-21.504-9.216-2.56 6.144-0.512 15.36-3.072 22.528-6.656 5.12-12.8 10.752-17.92 16.384 7.68 1.536 15.872 3.072 23.552 6.656 4.096 5.632 7.168 11.776 10.24 17.92z m505.344 210.944c-3.072 0-6.656-3.584-8.192-6.656-14.848 9.728-28.672 15.872-43.52 23.04 0.512 0.512 0 0.512 0.512 1.024 0 3.584-3.072 6.656-3.584 10.752 17.92-7.168 37.376-15.36 54.784-28.16zM243.712 347.136c-5.632-6.144-8.192-10.752-13.312-16.896 1.536-7.68 4.608-14.848 4.096-22.016-8.192 3.072-15.872 5.12-24.064 7.68-7.168-3.584-14.336-5.632-21.504-9.216-2.56 6.144-0.512 15.36-3.072 22.528-6.656 5.12-12.8 10.752-17.92 16.384 7.68 1.536 15.872 3.072 23.552 6.656 4.096 6.144 6.656 12.288 10.24 18.432 6.144-5.632 11.264-11.776 16.384-17.92 8.704-2.56 16.896-3.072 25.6-5.632z m351.744 417.28c-36.864 12.288-73.728 14.336-109.568 11.264 0.512 3.072 1.024 6.144 3.072 9.728 34.816 4.608 70.144 1.024 106.496-10.24 1.024-3.584 1.536-7.168 0-10.752z m-229.376-20.48c1.536-3.072 2.56-7.168 3.072-10.24-6.144-4.096-12.8-8.704-18.944-13.824-3.584-1.024-8.192 3.072-6.656 7.168 7.168 7.68 14.848 11.776 22.528 16.896z m612.864-176.64c1.024-14.848 2.56-29.696 2.56-45.056-1.536-2.56-1.536-4.608-2.048-6.656-5.632-6.144-11.776-7.68-17.92-9.216 1.536 55.808-8.704 110.08-26.112 164.864 5.632 2.048 10.752 5.12 16.896 7.68 12.8-34.816 21.504-69.12 25.088-104.448 1.536-1.536-1.536-1.536-0.512-3.072 0-2.048 1.536-2.048 2.048-4.096z m-368.64 386.048c-136.192 26.112-267.776 1.536-392.192-100.864 1.024 8.192-1.536 16.384 0 25.6 21.504 17.408 43.008 31.744 65.536 44.544 22.528 11.776 44.544 23.552 67.584 30.208 3.072 0 4.608-5.12 7.168-5.12 3.072 3.072 7.168 6.656 6.144 10.752 10.752 3.584 20.992 6.144 31.232 9.216 5.12 1.024 10.24 2.56 15.36 3.584 5.632 1.024 10.752 3.584 15.872 2.048 1.024-2.048-1.536-3.072-1.536-5.12 3.072-3.584 6.656-7.68 10.24-6.656 0.512 2.048 1.536 4.608 1.024 6.144-4.096 1.536-5.632 5.12-8.192 7.168 16.896 3.072 34.304 5.632 51.2 6.656-0.512-3.072 4.096-5.12 5.632-7.68 6.656 2.048 13.312 1.536 19.456 4.096-0.512 1.536-0.512 3.072-1.024 4.608 13.824 1.536 27.136 0 40.96-0.512 1.024-2.048 1.536-1.536 3.072-1.536 0.512-2.56-1.536-6.144 0-9.216 3.584-0.512 7.68 0 9.728 3.072-2.048 2.56 0 4.096 0 7.168 15.872-1.024 31.744-3.584 47.616-7.168-1.536-4.096 1.024-8.192 0-11.776 1.536-0.512 2.56 0 4.096-1.536 2.56-2.56 0-5.12 1.024-7.68z m145.408-327.68s0-0.512 0 0l-1.024 1.024c-5.12 12.288-14.848 25.088-19.968 36.352-0.512 2.048-2.56 1.024-3.072 2.56-14.336 19.968-32.768 39.424-55.808 57.344 1.536 1.536 2.56 2.56 3.072 4.096 1.024 1.536 0 5.12 1.024 5.12 38.912-29.184 65.536-65.024 81.92-98.304-1.024-2.56-3.584-7.168-6.144-8.192zM264.704 409.088c7.68-20.992 19.456-40.96 34.816-61.44-1.024-4.096 0.512-7.68-0.512-11.264-1.536 0.512-2.56 0-4.096 0.512-18.432 23.552-31.744 47.616-41.472 71.68 1.536 1.024 1.536 2.56 2.048 3.584-1.536 11.264-5.632 23.04-9.728 34.304-1.024 1.024-3.584 2.048-3.072 4.608-0.512 1.024-1.024-1.536-1.536 0-4.096 14.848-5.632 29.696-6.656 45.056v22.528c1.024 8.192-0.512 15.36 2.56 23.552 2.56 2.048 5.632 2.048 8.704-1.024 1.024-7.68-1.024-15.872-1.024-23.04-11.264-3.584-11.264-20.48 0.512-22.528 0-4.608 2.048-9.728 0.512-13.824 2.048-3.584 1.536-10.752 3.584-15.872 1.024-5.632 1.536-11.776 3.584-17.408 2.048-11.264 5.632-23.04 10.24-33.792 0.512-1.024 0-2.56 0-3.072 0.512-1.024 1.024-1.536 1.536-2.56z m61.44-169.984c6.144-5.632 11.264-11.776 16.384-17.92 8.704-2.048 16.896-2.56 25.6-5.12-6.144-6.144-8.192-10.752-13.312-16.896 1.536-7.68 4.608-14.848 4.096-22.016-8.192 3.072-15.872 5.12-24.064 7.68-7.168-3.584-14.336-5.632-21.504-9.216-2.56 6.144-0.512 15.36-3.072 22.528-6.656 5.12-12.8 10.752-17.92 16.384 7.68 1.536 15.872 3.072 23.552 6.656 4.096 5.632 7.168 12.288 10.24 17.92z m201.728 4.096c28.16 1.536 55.808 8.704 82.944 18.432 2.56-1.024 5.632-4.096 8.192-6.656-29.696-12.288-59.392-19.968-90.112-21.504-1.536 2.048-1.024 6.144-1.024 9.728z m-172.032 39.936c-3.584 1.024-7.68 1.536-9.216 5.632 2.56 0.512-1.536 7.168-4.096 4.608 1.024-1.536 3.584-2.56 4.096-4.096-4.096-1.024-9.728 6.144-12.288 9.216-1.024-1.536-2.56 0-3.584 0.512-9.728 8.704-17.92 16.896-25.6 25.088 2.048 2.56 3.584 6.656 5.12 9.728 9.728-10.752 20.992-20.992 32.256-31.232 0.512-1.024-2.56 0-2.048-1.024 1.024-1.536 3.072-2.048 3.584-3.584 0.512-0.512-3.072 0.512-2.56-0.512 2.048-1.024 3.584-4.096 5.12-3.584-2.56 3.072-1.024 3.584-1.536 7.168 52.736-40.448 102.4-54.272 152.064-57.344 4.096-3.072 5.12-6.656 4.608-10.752-47.104 2.56-94.208 13.824-143.36 46.08-1.024 1.024-0.512 2.56-2.56 4.096z m433.664 268.288c1.536-12.288 3.072-24.576 3.072-36.864 0.512-6.144 0.512-12.288 0-18.432-1.024-6.656 1.536-12.8-3.584-18.944-2.56-0.512-4.096-1.024-6.656 1.024-0.512 0.512-0.512 1.024-1.024 1.536-0.512 11.776 1.536 23.552 1.024 35.328s-1.536 23.552-3.072 35.328c-3.584 23.552-10.752 46.08-19.968 69.12 3.072 0 6.144 2.048 8.704 4.096 10.24-23.552 16.896-47.616 21.504-72.192zM367.104 202.24c0.512-1.024-1.024-2.56-1.024-2.56 0 0.512 0 0.512-0.512 1.024 0.512 0.512 1.024 2.048 1.536 1.536z m299.52 91.136c2.048-0.512 3.072 0 4.608-1.536 1.024-2.048 1.536-4.096 1.024-6.144-10.24-8.704-20.48-15.36-31.744-19.968 0.512 3.584-0.512 7.168-0.512 10.752 9.216 5.12 17.92 11.264 26.624 16.896z m-38.4 642.048c1.024 1.536-1.536 5.12-0.512 4.096 40.448-9.728 80.896-27.136 121.856-53.248-1.024-1.536-3.072-3.072-2.048-4.096 1.024-0.512 2.048 0.512 3.072 0-1.024-1.536-3.072-3.584-3.584-5.12 1.024-1.024 3.584 1.024 3.072-0.512-1.024-0.512-1.536-1.536-2.048-2.56-44.032 27.648-87.552 45.056-130.048 56.32-2.048 2.56-3.584 5.12-6.144 7.68-1.536-1.536-0.512-3.584-2.56-4.608-8.704-1.024-18.432 3.072-27.648 3.584-9.728 1.024-18.944 2.56-28.16 3.072-18.432 1.536-36.352 2.56-54.784 1.536-36.352-1.024-72.192-7.68-108.032-17.92-71.168-22.528-140.8-60.416-207.36-137.728-1.536-1.536-4.096-5.632-6.144-7.168-3.584-0.512-6.144 3.584-9.216 3.072-0.512-5.12 0-10.24-0.512-15.872-38.4-52.736-59.392-103.936-72.704-154.624-2.56-1.024-5.12-5.12-9.216-5.632-1.536 1.536-2.56 2.048-3.072 3.072 1.024 1.536 2.048-1.024 2.56 0-1.536 1.536-1.024 2.048-1.024 3.584 14.336 58.368 40.96 119.808 90.624 180.224 67.072 79.36 141.824 120.32 216.064 142.848 74.752 21.504 151.552 24.064 229.376 5.632 0.512-2.048 4.608-7.68 8.192-5.632z m298.496-269.312c18.432-52.736 27.648-105.984 25.6-160.768-1.536 0.512-4.608 1.024-2.56-1.024-3.072 1.536-5.12-0.512-8.192-1.024 0.512 118.272-34.816 237.568-155.136 341.504-0.512 2.56 0.512 5.632-1.024 8.704-1.024 0-2.56 1.024-3.584 1.024-2.048-0.512-2.048-1.536-3.072-3.584-5.12 4.096-10.24 7.68-15.872 11.776-1.024 2.56-2.56 7.168-5.12 4.608 0.512-0.512 2.048-1.024 1.536-1.536-3.584 3.072-7.168 5.12-10.752 7.68 1.024 2.048 0.512 3.584 2.048 5.12-2.048 1.024 0.512 3.072 0.512 4.608 0 1.024-2.56 0-0.512 1.536 18.944-10.752 40.96-28.672 59.392-45.056 57.856-53.248 92.672-111.104 114.688-169.472 0-1.024-2.048-1.024-1.024-2.56 1.536-1.536 2.048 0 3.072-1.536z m-167.936 210.944c-0.512-1.024 1.024-1.536 2.048-2.56 0 1.024-1.024 1.536-2.048 2.56z m0-5.12c0-1.536 3.072-2.56 4.096-4.096-0.512 2.048-2.048 5.12-4.096 4.096z m125.952-122.88c-1.024 0.512-1.024 0-1.536-1.536 1.024-1.024 1.536-0.512 2.56-1.024 0.512 1.024-1.536 1.536-1.024 2.56z m0-14.336c-0.512 0.512-1.024-1.024-1.536-0.512-1.024-1.024 1.536-1.536 2.048-3.072 1.024 1.536 0 2.56-0.512 3.584zM128 745.984c-22.016-37.376-38.4-74.24-48.128-110.592-20.992-72.704-23.04-143.36-9.728-212.48s41.984-136.704 95.744-202.24c26.624-32.256 61.952-64 99.328-88.576s73.728-40.448 110.08-52.224c4.096-6.656 4.096-13.824 3.072-20.992-55.808 16.384-113.664 44.032-170.496 92.16-72.704 61.44-114.176 132.096-139.264 201.728 4.608 8.704 3.072 18.432-8.192 25.6-3.072 12.288-7.168 24.064-8.704 36.352 1.024 1.536 3.072 0.512 2.048 2.56-1.024 0-1.536-1.536-2.048-1.536C46.08 442.368 43.52 469.504 43.008 496.64c-0.512 13.312-0.512 27.136 0.512 40.96 0.512 13.312 1.024 28.16 4.608 40.448 2.048-3.072 2.048-6.656 5.12-9.728 3.072 3.584 0.512 7.168-0.512 10.752l-0.512 8.704c0 2.048-3.072 1.024-3.072 2.56 1.536 9.728 3.584 19.456 6.144 29.184 5.632-1.536 11.264-2.56 16.896-8.192 0.512 3.584-3.072 4.608-3.584 7.168 1.024-1.024 2.56-3.584 4.096-2.56-0.512 3.584-1.024 7.68 1.536 10.752-1.024 3.072-5.12 3.584-7.168 6.656 0 3.072-1.536 5.632-5.12 8.192 15.872 57.856 46.592 119.296 96.768 178.176 7.68 8.192 17.408 18.432 25.6 27.136 4.608 3.584 8.192 8.192 12.8 11.776 2.048 2.56 4.608 4.096 6.656 6.144 1.024 1.024 2.048 2.048 3.072 2.56 0.512 0 1.024 1.536 1.536 1.024 0.512 1.024 1.536 2.048 1.024 0.512-1.024-0.512 2.048-1.536 2.56-2.048 1.536-5.632 1.024-12.288 4.608-16.896-32.256-27.136-65.024-66.56-88.576-103.936zM363.008 66.56c1.024 1.024-0.512 1.536 0 2.56-0.512 1.024-1.024-0.512-1.536-1.024l1.536-1.536z m-3.584 2.56c1.024 1.024 0 2.56 0.512 3.584-0.512 0.512-1.536-1.024-2.048-2.048l1.536-1.536zM65.024 610.816c-0.512-0.512-1.024-0.512-1.536-1.024 1.024-1.024 2.56-2.048 4.096-2.56 1.024 1.536-2.048 2.048-2.56 3.584z m135.68 243.2c-1.024 1.024-2.048 1.024-1.536 2.048-5.12-4.608-10.24-12.288-15.36-17.92 1.024-2.048 2.048 0 3.072-0.512 1.024 6.656 10.24 13.312 13.824 16.384z m404.992-781.824c1.536-0.512 3.072 0 4.096 1.024 3.072-0.512 5.632 1.536 8.192 1.536 6.144 1.536 11.776 3.072 17.408 4.608 11.264 3.584 22.528 6.656 33.792 11.264 22.528 8.192 44.544 18.944 66.56 31.232 43.008 25.088 88.576 61.44 126.976 110.08C931.84 319.488 955.392 408.064 961.024 491.52c6.656 1.536 12.288 6.656 18.944 8.704 1.536-12.8-1.024-26.624-2.048-38.912 0 2.56-1.536 4.608-4.608 3.072l4.608-3.584c-1.024-4.608 0.512-13.312-3.584-14.336 1.536-1.024 2.048-1.536 2.048-2.56-8.704-54.784-26.624-112.64-60.928-170.496-34.304-58.368-89.6-116.224-139.776-148.992-17.408-12.288-34.304-22.016-51.712-31.232-8.704-4.608-17.408-8.704-26.112-12.288-4.608-2.048-8.704-4.096-13.312-5.632-4.096-1.024-9.728-4.608-12.8-3.584-1.536-2.048-3.072-2.048-4.608-2.56-1.536-1.024-2.56 1.024-4.096 1.024-0.512-1.536 1.024-2.048-0.512-3.072-12.8-4.096-26.112-9.216-39.936-11.264 2.048 0.512-0.512 1.536-2.048 2.56-1.536 1.536-2.56-0.512-4.096 1.024-2.048 4.096-9.216 5.632-11.776 10.24-0.512 0.512 0 2.048-1.024 1.536-2.56 0.512 1.024 0 2.048 1.024z m367.616 386.56c1.024 1.536 1.024 2.56 0 3.584-1.536 0.512-2.56 0-3.584 0 0-1.024 2.56-2.56 3.584-3.584z m-4.096-2.048c0 1.024 0.512 2.048 0 3.072-1.536 1.024-2.56 1.024-3.584 0.512 0-1.536 2.56-2.048 3.584-3.584z m-4.096-3.072c0.512 1.024 0.512 2.56 0 3.072-1.536 1.024-2.56 0-3.072 0-0.512-1.024 2.048-1.536 3.072-3.072z m-303.616-383.488l1.024 1.024c-0.512 1.024-1.024 0-2.048 0.512 0-1.024 0.512-1.536 1.024-1.536z m270.848 611.328c2.048-1.536 3.072 1.536 6.144 1.024-1.536-2.56-4.096-4.096-5.12-7.168l-0.512 0.512c-10.752 30.72-28.672 61.44-46.592 92.672-27.136 37.376-59.392 74.24-102.4 107.008-10.752 7.168-20.992 14.848-30.72 20.992-1.536 1.024 0.512 2.048-0.512 2.56-0.512-0.512-1.024-1.536-1.536-0.512 1.536 0.512 1.536 3.584 2.048 5.12-1.024-0.512-2.56-3.072-4.096-4.608-40.96 25.6-80.896 40.448-120.32 51.712-0.512 2.56-4.096 5.632-1.536 8.704 2.56-2.048 7.168-12.8 12.288-10.24-1.024 7.68-11.264 12.8-11.776 20.48 5.12-1.024 10.752-2.048 16.384-4.608 1.536-2.048 4.096-6.656 7.68-6.144 2.048 0.512 0.512 3.072 2.048 4.096 46.592-14.336 95.232-37.376 142.848-73.216 36.864-28.16 68.608-60.928 91.648-92.16-1.536-1.536-4.096-1.024-6.144-3.584-0.512-3.584 2.048-7.68 1.024-11.264l3.072-2.56c1.024 2.56 4.608 5.12 6.144 3.072 1.024-3.584-0.512-7.68 1.024-10.752 4.096 0.512 8.192-2.56 12.288-3.584 1.024-5.12 0-9.728 1.536-14.848-0.512-3.584-1.536-6.656 0-9.728 5.632 1.024 3.072 9.216 5.632 13.824 12.8-20.48 22.528-40.96 31.232-61.44-3.584-3.584-12.8-8.192-11.776-15.36z m-183.296 231.936c-1.024-1.024-0.512-1.536-1.024-2.56 1.024 0 2.048 0.512 3.072 0 0.512 1.536-1.536 2.048-2.048 2.56z m-0.512-6.656c1.024-0.512 2.048 0 3.072 0 0.512 1.536 0.512 3.584 1.024 4.096-2.048 1.024-3.072-3.072-4.096-4.096z m-1.024-5.12c1.024-0.512 2.56 0 3.072 0 1.024 1.536 0.512 3.584 1.536 4.608-1.536 0-3.072-3.072-4.608-4.608z m137.216-123.904c-1.024 0.512-1.536 0-2.048-1.024 1.536-1.024 2.56-1.536 3.584-2.56-0.512 1.536-1.536 2.56-1.536 3.584z m-407.552-142.336l18.432 4.096","p-id":"23730",fill:"#cdcdcd"}}),i("path",{attrs:{d:"M393.216 575.488l-108.032 61.44 27.648 48.128c3.584 6.656 8.704 8.192 15.36 4.096l88.064-49.664c3.072-1.536 5.12-4.096 6.656-7.68 1.024-4.096-3.072-15.872-12.288-34.816l19.456-4.096c10.24 23.04 14.848 37.888 13.824 44.032-2.048 6.144-6.656 11.776-13.312 15.872l-97.28 55.296c-14.336 8.192-26.112 4.608-34.816-10.24L245.76 606.72l16.896-9.728 13.312 24.064 91.136-51.712-23.552-41.472L227.328 593.92l-9.216-15.872 133.12-75.264 41.984 72.704zM439.808 531.456c-1.536 8.192-3.584 16.896-6.144 26.624l-15.872-14.848c6.656-29.696 7.168-60.416 0.512-91.648l19.968-1.536c3.072 15.872 4.608 31.744 4.096 47.616l66.56 117.76-16.896 9.728-52.224-93.696z m43.52-62.976c1.536 20.992 0.512 40.96-2.56 58.88l-19.968-7.68c5.12-25.088 4.096-55.808-2.56-91.136l18.944-5.632c1.536 7.68 3.072 15.872 4.096 25.6l72.192-40.96 9.216 16.384-56.32 31.744 14.336 25.088 49.152-28.16 9.216 15.872-49.152 28.16 14.848 25.6 49.664-28.16 9.216 15.872-49.664 28.16 22.528 39.424-16.896 9.728-70.144-122.368-6.144 3.584zM646.144 322.56c4.608 3.072 9.728 7.168 14.848 11.264l61.44-34.816 9.216 15.872-128 72.704 21.504 38.4c21.504 39.424 32.768 73.728 34.304 102.912l-19.456-4.096c-1.536-25.088-11.776-54.784-31.232-89.6l-30.72-54.272 65.024-36.864c-5.12-3.584-9.728-6.656-13.824-8.704l16.896-12.8zM640 433.152l-10.752-47.104 16.896-6.656 5.632 27.648 18.432-10.752c-3.072-10.752-6.144-22.016-10.752-33.28l16.896-7.168c4.096 10.24 7.168 20.48 9.728 30.72l63.488-35.84 8.192 14.848-67.584 38.912c0.512 2.56 1.536 7.68 2.56 14.848l58.88-33.28 7.68 13.312c2.048 12.8 0 26.624-6.144 41.984 12.8-0.512 28.16-3.072 45.056-6.656v17.408c-20.992 3.584-38.4 5.632-53.248 5.12-7.68 13.312-18.432 27.136-31.744 42.496l-14.848-9.216c11.264-12.8 20.48-24.064 27.648-34.816-12.288-2.048-23.04-5.12-31.232-9.728 0.512 25.6-3.584 48.64-12.8 69.632l-15.872-9.728c10.752-27.648 13.312-58.368 7.68-91.648l-33.792 18.944z m57.856-93.184c11.264 1.024 21.504 2.56 30.72 5.12l-5.12 16.896c-8.192-2.56-18.432-4.608-30.72-6.144l5.12-15.872z m3.584 92.672c9.216 4.608 19.968 7.168 32.768 8.192 5.632-11.264 8.704-22.016 8.704-31.744l-41.472 23.552z","p-id":"23731",fill:"#cdcdcd"}})])]):e._e(),e.isActive?i("div",{staticClass:"cur-process-history-icon"},[i("svg",{attrs:{viewBox:"0 0 200 200",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[i("title",[e._v("\u91CD\u65B0\u6FC0\u6D3B")]),i("g",{attrs:{id:"\u91CD\u65B0\u6FC0\u6D3B",stroke:"none",fill:"none","fill-rule":"evenodd","stroke-width":"1"}},[i("g",{attrs:{id:"\u7F16\u7EC4",fill:"#0088FF"}},[i("path",{attrs:{d:"M129.7,31.7 C129.2,32.9 129.6,34.7 129.1,36.1 C127.8,37.1 126.6,38.2 125.6,39.3 C127.1,39.6 128.7,39.9 130.2,40.6 C131,41.8 131.5,43 132.2,44.2 C133.4,43.1 134.4,41.9 135.4,40.7 C137.1,40.3 138.7,40.2 140.4,39.7 C139.2,38.5 138.8,37.7 137.8,36.4 C138.1,34.9 138.7,33.5 138.6,32.1 C137,32.7 135.5,33.1 133.9,33.6 C132.4,32.7 131.1,32.4 129.7,31.7 L129.7,31.7 Z M173.4,107.2 C174.8,106.2 176,105.3 177.1,104.2 C175.6,103.8 174.1,103.4 172.6,102.7 C171.9,101.5 171.5,100.3 170.8,99.1 C169.6,100.1 168.5,101.3 167.5,102.4 C165.8,102.7 164.2,102.6 162.4,103.1 C163.5,104.4 163.9,105.2 164.8,106.6 C164.4,108.1 163.7,109.5 163.7,110.9 C165.3,110.4 166.9,110.1 168.5,109.7 C169.8,110.5 171.3,111 172.6,111.7 C173.2,110.4 172.8,108.6 173.4,107.2 L173.4,107.2 Z M114.3,16.8 C121.6,18.2 128.9,20.4 136.1,23.9 C136.3,23.7 136.7,23.9 136.9,23.6 C136.5,23.4 136.1,23.7 135.7,23.4 C136.2,22.6 136.8,22.7 137.4,22.5 C137.1,21.4 136,22.4 135.5,22.5 C135.4,22.8 135.4,23 135.3,23.2 C135,23 134.7,23.2 134.4,22.8 C134.6,22.1 135.4,22.3 135.8,21.9 C135.6,21.8 135.9,21.6 135.8,21.5 C128.8,18.4 121.7,16 114.7,14.8 C114.5,15.2 114.8,15.7 115.1,16.1 C115.3,16.2 115.7,15.9 115.6,16.1 C115.4,16.2 115.8,16.4 115.6,16.5 C115.1,16.4 114.7,16.7 114.3,16.8 Z M64.4,163.2 C65.7,164 67.2,164.5 68.5,165.2 C69.1,164 68.8,162.2 69.3,160.8 C70.7,159.8 71.9,158.9 73,157.8 C71.5,157.4 70,157 68.5,156.3 C67.8,155.1 67.4,153.9 66.7,152.7 C65.5,153.7 64.4,154.9 63.4,156 C61.7,156.3 60.1,156.2 58.3,156.7 C59.4,158 59.8,158.8 60.7,160.2 C60.3,161.7 59.6,163.1 59.6,164.5 C61.2,163.9 62.8,163.6 64.4,163.2 L64.4,163.2 Z M98.4,172.6 C99.7,173.4 101.2,173.9 102.5,174.6 C103.1,173.4 102.8,171.6 103.3,170.2 C104.7,169.2 105.9,168.3 107,167.2 C105.5,166.8 104,166.4 102.5,165.7 C101.8,164.5 101.4,163.3 100.7,162.1 C99.5,163.1 98.4,164.3 97.4,165.4 C95.7,165.7 94.1,165.6 92.3,166.1 C93.3,167.4 93.7,168.1 94.7,169.6 C94.3,171.1 93.6,172.5 93.6,173.9 C95.3,173.3 96.8,173.1 98.4,172.6 L98.4,172.6 Z M16.1,94.9 C15.5,94.8 14.9,94.3 14.1,94.5 C13.5,102.1 14.1,110.5 16.1,118.6 C16.5,118.1 16.8,117.4 17.5,117.4 C17.5,117.1 17.6,116.9 17.8,116.6 C16.3,109.3 15.9,102.1 16.1,94.9 L16.1,94.9 Z M135.9,162 C137.2,162.8 138.7,163.3 140,164 C140.6,162.8 140.3,161 140.8,159.6 C142.2,158.6 143.4,157.7 144.5,156.6 C143,156.2 141.5,155.8 140,155.1 C139.3,153.9 138.9,152.7 138.2,151.5 C137,152.5 135.9,153.7 134.9,154.8 C133.2,155.1 131.6,155 129.8,155.5 C130.8,156.7 131.2,157.5 132.2,159 C131.8,160.5 131.1,161.9 131.1,163.3 C132.7,162.7 134.3,162.4 135.9,162 L135.9,162 Z M85.9,15.7 C86.2,15.9 86.7,15.4 86.6,15.8 C86.8,16.1 86.3,16.3 86.5,16.6 C94.2,15.8 102,15.5 109.6,16.4 C110.3,15.8 111.1,15.2 111.7,14.6 C109.9,14.1 107.5,14 105.4,13.7 C103.3,13.5 101.1,13.5 99,13.5 C94.7,13.6 90.3,13.8 85.9,14.6 C85.9,14.6 85.8,14.5 85.8,14.6 C86.1,14.9 85.6,15.3 85.9,15.7 L85.9,15.7 Z M22,68.6 C24.9,61.1 28.9,53.8 34.6,46.8 C40.2,39.8 48,32.8 56,28 C64.1,23.1 72,20 79.9,18.1 C80.4,17.3 81.1,16.4 81.4,15.5 C80.1,15.9 78.6,15.9 77.5,16.7 C76.1,16.5 74.6,17.4 73.2,17.7 C71.7,18.1 70.3,18.6 68.8,19.2 C65.9,20.3 62.9,21.6 60,23.2 C54,26.4 48.1,30.2 42.3,35.5 C24.8,51.4 17.6,69.2 14.7,86.9 C14.6,87.2 14.9,87.3 14.9,87.4 C14.5,87.8 14.6,88.3 14.5,88.7 C14.8,89 15.4,89.3 15.5,89.6 C15.3,89.9 14.9,90.3 14.7,90.4 C14.3,90.2 14.9,89.9 14.6,89.7 C14.3,90.2 14.3,91.1 14.3,91.8 C14.3,92.4 13.9,93.4 14.4,93.7 C15.3,93.5 14.4,92.7 14.4,92.2 C15.2,91.9 15.6,91.4 16.3,91.1 C17,89.2 16.8,87.3 17.3,85.4 C17.5,83.5 18,81.7 18.4,79.7 C19.4,76.1 20.4,72.3 22,68.6 Z M15.8,89.8 C16,89.8 16.3,90 16.3,90.2 C16,90.5 15.9,90.2 15.8,89.8 Z M155.6,37.4 C161.3,42.3 167.3,49.7 171.3,56.2 C179.5,69.5 182.7,82.4 183.7,95.1 C184.3,95.1 185,95.6 185.8,96.1 C186.2,95.6 185.8,94.4 185.9,93.7 C185.8,92.9 185.8,92 185.6,91.2 C185.5,89.5 185.3,87.8 185,86.2 C184.5,82.8 183.7,79.4 182.7,76 C180.6,69.3 177.9,62.3 173.5,55.4 C169.5,48.7 163,40.8 157,35.6 C150.9,30.1 144.7,26.1 138.4,22.9 C138.4,22.9 138.3,22.8 138.3,22.9 C138.5,23.7 138.1,24.5 138.1,25.3 C144,28.2 149.9,32.1 155.6,37.4 Z M160.4,137.6 C161.7,138.4 163.2,138.9 164.5,139.6 C165.1,138.4 164.8,136.6 165.3,135.2 C166.7,134.2 167.9,133.3 169,132.2 C167.5,131.8 166,131.4 164.5,130.7 C163.8,129.5 163.4,128.3 162.7,127.1 C161.5,128.1 160.4,129.3 159.4,130.4 C157.7,130.7 156.1,130.6 154.3,131.1 C155.3,132.4 155.7,133.2 156.7,134.6 C156.3,136.1 155.6,137.5 155.6,138.9 C157.2,138.3 158.8,138 160.4,137.6 L160.4,137.6 Z M137.1,24.7 C137.1,24.6 136.9,24.1 136.7,24.2 C136.8,24.2 136.7,24.3 136.6,24.5 C136.7,24.5 136.9,24.6 137.1,24.7 Z M81.6,13.4 C81.5,13.4 81.3,13 81.1,12.9 C80.9,12.1 81.9,11.4 81.3,10.5 C81.1,10.4 80.9,10.5 80.7,10.5 C80.8,11.6 80.2,12.8 80.1,13.9 C80.6,13.7 81.3,13.8 81.6,13.4 Z M84.1,17.2 C83.8,16.4 84.6,15.7 84.4,14.9 C83.7,15 83,15 82.4,15.5 C82.4,16 82.3,16.5 82.1,17 C81.7,17.2 81.6,17.5 81.7,17.8 C82.6,17.5 83.3,17.4 84.1,17.2 L84.1,17.2 Z M78.1,11.5 C78.6,11.4 78.8,11.6 79.1,11.9 C79.8,11.5 79.6,10.6 79.8,10.1 C78.6,10.4 77.4,10.6 76,11.1 C75.6,12.5 74.8,13.8 74.9,15.3 C75.7,15 76.5,14.9 77.3,14.5 C77.6,13.6 77.7,12.5 78.1,11.5 Z M83.7,13.1 C83.6,12.9 83.4,12.4 83.1,12.5 C83.1,12.8 82.8,13 82.9,13.4 C83.2,13.2 83.4,13.4 83.7,13.1 Z M105.3,24.2 C103.7,24.8 102.2,25.2 100.6,25.7 C99.2,25 97.8,24.6 96.4,23.9 C95.9,25.1 96.3,26.9 95.8,28.3 C94.5,29.3 93.3,30.4 92.3,31.5 C93.8,31.8 95.4,32.1 96.9,32.8 C97.7,34 98.2,35.2 98.9,36.4 C100.1,35.3 101.1,34.1 102.1,32.9 C103.8,32.5 105.4,32.4 107.1,31.9 C105.9,30.7 105.5,29.8 104.5,28.6 C104.7,27.1 105.3,25.6 105.3,24.2 L105.3,24.2 Z M113.9,12.8 C115.1,11.9 116.3,10.8 117.1,9.8 C113.8,8.9 110.4,8.7 107.1,8.4 C106.8,8.5 106.5,8.7 106.2,8.8 C105.9,8.6 106.2,8.5 106,8.3 C100,7.8 93.8,7.9 87.7,8.8 C87.6,9.3 86.8,9.8 86.6,10.4 C86.6,10.7 87.2,11 87,11.3 C86.5,11.9 86.1,11.3 85.6,11.8 C85.3,12.2 85.4,12.6 85.1,13 C94.8,11.5 104.4,11.5 113.9,12.8 Z M183.9,97.2 C184.4,97.3 185,98 185.5,97.9 C185.6,97.5 185.9,97.4 185.9,97.1 C185.2,96.9 184.5,96.2 183.8,95.8 C183.9,96.3 183.7,96.8 183.9,97.2 Z M92.3,153.1 C92.4,152.8 92.8,152.5 93.1,152.5 C93.1,151.9 93,151.6 92.7,151.2 C86.3,150.1 80,147.9 73.8,144.4 C73.5,145 73.1,145.6 73.2,146.3 C79.4,150 85.8,152.1 92.3,153.1 L92.3,153.1 Z M31.4,103.7 C32.6,102.6 33.6,101.4 34.6,100.2 C36.3,99.8 37.9,99.7 39.6,99.2 C38.4,98 38,97.2 37,95.9 C37.3,94.4 37.9,93 37.8,91.6 C36.2,92.2 34.7,92.6 33.1,93.1 C31.7,92.4 30.3,92 28.9,91.3 C28.4,92.5 28.8,94.3 28.3,95.7 C27,96.7 25.8,97.8 24.8,98.9 C26.3,99.2 27.9,99.5 29.4,100.2 C30.2,101.3 30.8,102.5 31.4,103.7 L31.4,103.7 Z M130.1,144.9 C129.5,144.9 128.8,144.2 128.5,143.6 C125.6,145.5 122.9,146.7 120,148.1 C120.1,148.2 120,148.2 120.1,148.3 C120.1,149 119.5,149.6 119.4,150.4 C122.9,149 126.7,147.4 130.1,144.9 Z M47.6,67.8 C46.5,66.6 46,65.7 45,64.5 C45.3,63 45.9,61.6 45.8,60.2 C44.2,60.8 42.7,61.2 41.1,61.7 C39.7,61 38.3,60.6 36.9,59.9 C36.4,61.1 36.8,62.9 36.3,64.3 C35,65.3 33.8,66.4 32.8,67.5 C34.3,67.8 35.9,68.1 37.4,68.8 C38.2,70 38.7,71.2 39.4,72.4 C40.6,71.3 41.6,70.1 42.6,68.9 C44.3,68.4 45.9,68.3 47.6,67.8 L47.6,67.8 Z M116.3,149.3 C109.1,151.7 101.9,152.1 94.9,151.5 C95,152.1 95.1,152.7 95.5,153.4 C102.3,154.3 109.2,153.6 116.3,151.4 C116.5,150.7 116.6,150 116.3,149.3 Z M71.5,145.3 C71.8,144.7 72,143.9 72.1,143.3 C70.9,142.5 69.6,141.6 68.4,140.6 C67.7,140.4 66.8,141.2 67.1,142 C68.5,143.5 70,144.3 71.5,145.3 Z M191.2,110.8 C191.4,107.9 191.7,105 191.7,102 C191.4,101.5 191.4,101.1 191.3,100.7 C190.2,99.5 189,99.2 187.8,98.9 C188.1,109.8 186.1,120.4 182.7,131.1 C183.8,131.5 184.8,132.1 186,132.6 C188.5,125.8 190.2,119.1 190.9,112.2 C191.2,111.9 190.6,111.9 190.8,111.6 C190.8,111.2 191.1,111.2 191.2,110.8 Z M119.2,186.2 C92.6,191.3 66.9,186.5 42.6,166.5 C42.8,168.1 42.3,169.7 42.6,171.5 C46.8,174.9 51,177.7 55.4,180.2 C59.8,182.5 64.1,184.8 68.6,186.1 C69.2,186.1 69.5,185.1 70,185.1 C70.6,185.7 71.4,186.4 71.2,187.2 C73.3,187.9 75.3,188.4 77.3,189 C78.3,189.2 79.3,189.5 80.3,189.7 C81.4,189.9 82.4,190.4 83.4,190.1 C83.6,189.7 83.1,189.5 83.1,189.1 C83.7,188.4 84.4,187.6 85.1,187.8 C85.2,188.2 85.4,188.7 85.3,189 C84.5,189.3 84.2,190 83.7,190.4 C87,191 90.4,191.5 93.7,191.7 C93.6,191.1 94.5,190.7 94.8,190.2 C96.1,190.6 97.4,190.5 98.6,191 C98.5,191.3 98.5,191.6 98.4,191.9 C101.1,192.2 103.7,191.9 106.4,191.8 C106.6,191.4 106.7,191.5 107,191.5 C107.1,191 106.7,190.3 107,189.7 C107.7,189.6 108.5,189.7 108.9,190.3 C108.5,190.8 108.9,191.1 108.9,191.7 C112,191.5 115.1,191 118.2,190.3 C117.9,189.5 118.4,188.7 118.2,188 C118.5,187.9 118.7,188 119,187.7 C119.5,187.2 119,186.7 119.2,186.2 L119.2,186.2 Z M147.6,122.2 C147.6,122.2 147.6,122.1 147.6,122.2 L147.4,122.4 C146.4,124.8 144.5,127.3 143.5,129.5 C143.4,129.9 143,129.7 142.9,130 C140.1,133.9 136.5,137.7 132,141.2 C132.3,141.5 132.5,141.7 132.6,142 C132.8,142.3 132.6,143 132.8,143 C140.4,137.3 145.6,130.3 148.8,123.8 C148.6,123.3 148.1,122.4 147.6,122.2 Z M51.7,79.9 C53.2,75.8 55.5,71.9 58.5,67.9 C58.3,67.1 58.6,66.4 58.4,65.7 C58.1,65.8 57.9,65.7 57.6,65.8 C54,70.4 51.4,75.1 49.5,79.8 C49.8,80 49.8,80.3 49.9,80.5 C49.6,82.7 48.8,85 48,87.2 C47.8,87.4 47.3,87.6 47.4,88.1 C47.3,88.3 47.2,87.8 47.1,88.1 C46.3,91 46,93.9 45.8,96.9 L45.8,101.3 C46,102.9 45.7,104.3 46.3,105.9 C46.8,106.3 47.4,106.3 48,105.7 C48.2,104.2 47.8,102.6 47.8,101.2 C45.6,100.5 45.6,97.2 47.9,96.8 C47.9,95.9 48.3,94.9 48,94.1 C48.4,93.4 48.3,92 48.7,91 C48.9,89.9 49,88.7 49.4,87.6 C49.8,85.4 50.5,83.1 51.4,81 C51.5,80.8 51.4,80.5 51.4,80.4 C51.5,80.2 51.6,80.1 51.7,79.9 L51.7,79.9 Z M63.7,46.7 C64.9,45.6 65.9,44.4 66.9,43.2 C68.6,42.8 70.2,42.7 71.9,42.2 C70.7,41 70.3,40.1 69.3,38.9 C69.6,37.4 70.2,36 70.1,34.6 C68.5,35.2 67,35.6 65.4,36.1 C64,35.4 62.6,35 61.2,34.3 C60.7,35.5 61.1,37.3 60.6,38.7 C59.3,39.7 58.1,40.8 57.1,41.9 C58.6,42.2 60.2,42.5 61.7,43.2 C62.5,44.3 63.1,45.6 63.7,46.7 L63.7,46.7 Z M103.1,47.5 C108.6,47.8 114,49.2 119.3,51.1 C119.8,50.9 120.4,50.3 120.9,49.8 C115.1,47.4 109.3,45.9 103.3,45.6 C103,46 103.1,46.8 103.1,47.5 Z M69.5,55.3 C68.8,55.5 68,55.6 67.7,56.4 C68.2,56.5 67.4,57.8 66.9,57.3 C67.1,57 67.6,56.8 67.7,56.5 C66.9,56.3 65.8,57.7 65.3,58.3 C65.1,58 64.8,58.3 64.6,58.4 C62.7,60.1 61.1,61.7 59.6,63.3 C60,63.8 60.3,64.6 60.6,65.2 C62.5,63.1 64.7,61.1 66.9,59.1 C67,58.9 66.4,59.1 66.5,58.9 C66.7,58.6 67.1,58.5 67.2,58.2 C67.3,58.1 66.6,58.3 66.7,58.1 C67.1,57.9 67.4,57.3 67.7,57.4 C67.2,58 67.5,58.1 67.4,58.8 C77.7,50.9 87.4,48.2 97.1,47.6 C97.9,47 98.1,46.3 98,45.5 C88.8,46 79.6,48.2 70,54.5 C69.8,54.7 69.9,55 69.5,55.3 L69.5,55.3 Z M154.2,107.7 C154.5,105.3 154.8,102.9 154.8,100.5 C154.9,99.3 154.9,98.1 154.8,96.9 C154.6,95.6 155.1,94.4 154.1,93.2 C153.6,93.1 153.3,93 152.8,93.4 C152.7,93.5 152.7,93.6 152.6,93.7 C152.5,96 152.9,98.3 152.8,100.6 C152.7,102.9 152.5,105.2 152.2,107.5 C151.5,112.1 150.1,116.5 148.3,121 C148.9,121 149.5,121.4 150,121.8 C152,117.2 153.3,112.5 154.2,107.7 L154.2,107.7 Z M71.7,39.5 C71.8,39.3 71.5,39 71.5,39 C71.5,39.1 71.5,39.1 71.4,39.2 C71.5,39.3 71.6,39.6 71.7,39.5 Z M130.2,57.3 C130.6,57.2 130.8,57.3 131.1,57 C131.3,56.6 131.4,56.2 131.3,55.8 C129.3,54.1 127.3,52.8 125.1,51.9 C125.2,52.6 125,53.3 125,54 C126.8,55 128.5,56.2 130.2,57.3 Z M122.7,182.7 C122.9,183 122.4,183.7 122.6,183.5 C130.5,181.6 138.4,178.2 146.4,173.1 C146.2,172.8 145.8,172.5 146,172.3 C146.2,172.2 146.4,172.4 146.6,172.3 C146.4,172 146,171.6 145.9,171.3 C146.1,171.1 146.6,171.5 146.5,171.2 C146.3,171.1 146.2,170.9 146.1,170.7 C137.5,176.1 129,179.5 120.7,181.7 C120.3,182.2 120,182.7 119.5,183.2 C119.2,182.9 119.4,182.5 119,182.3 C117.3,182.1 115.4,182.9 113.6,183 C111.7,183.2 109.9,183.5 108.1,183.6 C104.5,183.9 101,184.1 97.4,183.9 C90.3,183.7 83.3,182.4 76.3,180.4 C62.4,176 48.8,168.6 35.8,153.5 C35.5,153.2 35,152.4 34.6,152.1 C33.9,152 33.4,152.8 32.8,152.7 C32.7,151.7 32.8,150.7 32.7,149.6 C25.2,139.3 21.1,129.3 18.5,119.4 C18,119.2 17.5,118.4 16.7,118.3 C16.4,118.6 16.2,118.7 16.1,118.9 C16.3,119.2 16.5,118.7 16.6,118.9 C16.3,119.2 16.4,119.3 16.4,119.6 C19.2,131 24.4,143 34.1,154.8 C47.2,170.3 61.8,178.3 76.3,182.7 C90.9,186.9 105.9,187.4 121.1,183.8 C121.2,183.4 122,182.3 122.7,182.7 L122.7,182.7 Z M181,130.1 C184.6,119.8 186.4,109.4 186,98.7 C185.7,98.8 185.1,98.9 185.5,98.5 C184.9,98.8 184.5,98.4 183.9,98.3 C184,121.4 177.1,144.7 153.6,165 C153.5,165.5 153.7,166.1 153.4,166.7 C153.2,166.7 152.9,166.9 152.7,166.9 C152.3,166.8 152.3,166.6 152.1,166.2 C151.1,167 150.1,167.7 149,168.5 C148.8,169 148.5,169.9 148,169.4 C148.1,169.3 148.4,169.2 148.3,169.1 C147.6,169.7 146.9,170.1 146.2,170.6 C146.4,171 146.3,171.3 146.6,171.6 C146.2,171.8 146.7,172.2 146.7,172.5 C146.7,172.7 146.2,172.5 146.6,172.8 C150.3,170.7 154.6,167.2 158.2,164 C169.5,153.6 176.3,142.3 180.6,130.9 C180.6,130.7 180.2,130.7 180.4,130.4 C180.7,130.1 180.8,130.4 181,130.1 L181,130.1 Z M148.2,171.3 C148.1,171.1 148.4,171 148.6,170.8 C148.6,171 148.4,171.1 148.2,171.3 Z M148.2,170.3 C148.2,170 148.8,169.8 149,169.5 C148.9,169.9 148.6,170.5 148.2,170.3 Z M172.8,146.3 C172.6,146.4 172.6,146.3 172.5,146 C172.7,145.8 172.8,145.9 173,145.8 C173.1,146 172.7,146.1 172.8,146.3 Z M172.8,143.5 C172.7,143.6 172.6,143.3 172.5,143.4 C172.3,143.2 172.8,143.1 172.9,142.8 C173.1,143.1 172.9,143.3 172.8,143.5 L172.8,143.5 Z M25,145.7 C20.7,138.4 17.5,131.2 15.6,124.1 C11.5,109.9 11.1,96.1 13.7,82.6 C16.3,69.1 21.9,55.9 32.4,43.1 C37.6,36.8 44.5,30.6 51.8,25.8 C59.1,21 66.2,17.9 73.3,15.6 C74.1,14.3 74.1,12.9 73.9,11.5 C63,14.7 51.7,20.1 40.6,29.5 C26.4,41.5 18.3,55.3 13.4,68.9 C14.3,70.6 14,72.5 11.8,73.9 C11.2,76.3 10.4,78.6 10.1,81 C10.3,81.3 10.7,81.1 10.5,81.5 C10.3,81.5 10.2,81.2 10.1,81.2 C9,86.4 8.5,91.7 8.4,97 C8.3,99.6 8.3,102.3 8.5,105 C8.6,107.6 8.7,110.5 9.4,112.9 C9.8,112.3 9.8,111.6 10.4,111 C11,111.7 10.5,112.4 10.3,113.1 L10.2,114.8 C10.2,115.2 9.6,115 9.6,115.3 C9.9,117.2 10.3,119.1 10.8,121 C11.9,120.7 13,120.5 14.1,119.4 C14.2,120.1 13.5,120.3 13.4,120.8 C13.6,120.6 13.9,120.1 14.2,120.3 C14.1,121 14,121.8 14.5,122.4 C14.3,123 13.5,123.1 13.1,123.7 C13.1,124.3 12.8,124.8 12.1,125.3 C15.2,136.6 21.2,148.6 31,160.1 C32.5,161.7 34.4,163.7 36,165.4 C36.9,166.1 37.6,167 38.5,167.7 C38.9,168.2 39.4,168.5 39.8,168.9 C40,169.1 40.2,169.3 40.4,169.4 C40.5,169.4 40.6,169.7 40.7,169.6 C40.8,169.8 41,170 40.9,169.7 C40.7,169.6 41.3,169.4 41.4,169.3 C41.7,168.2 41.6,166.9 42.3,166 C36,160.7 29.6,153 25,145.7 L25,145.7 Z M70.9,13 C71.1,13.2 70.8,13.3 70.9,13.5 C70.8,13.7 70.7,13.4 70.6,13.3 L70.9,13 Z M70.2,13.5 C70.4,13.7 70.2,14 70.3,14.2 C70.2,14.3 70,14 69.9,13.8 L70.2,13.5 Z M12.7,119.3 C12.6,119.2 12.5,119.2 12.4,119.1 C12.6,118.9 12.9,118.7 13.2,118.6 C13.4,118.9 12.8,119 12.7,119.3 Z M39.2,166.8 C39,167 38.8,167 38.9,167.2 C37.9,166.3 36.9,164.8 35.9,163.7 C36.1,163.3 36.3,163.7 36.5,163.6 C36.7,164.9 38.5,166.2 39.2,166.8 L39.2,166.8 Z M118.3,14.1 C118.6,14 118.9,14.1 119.1,14.3 C119.7,14.2 120.2,14.6 120.7,14.6 C121.9,14.9 123,15.2 124.1,15.5 C126.3,16.2 128.5,16.8 130.7,17.7 C135.1,19.3 139.4,21.4 143.7,23.8 C152.1,28.7 161,35.8 168.5,45.3 C182,62.4 186.6,79.7 187.7,96 C189,96.3 190.1,97.3 191.4,97.7 C191.7,95.2 191.2,92.5 191,90.1 C191,90.6 190.7,91 190.1,90.7 L191,90 C190.8,89.1 191.1,87.4 190.3,87.2 C190.6,87 190.7,86.9 190.7,86.7 C189,76 185.5,64.7 178.8,53.4 C172.1,42 161.3,30.7 151.5,24.3 C148.1,21.9 144.8,20 141.4,18.2 C139.7,17.3 138,16.5 136.3,15.8 C135.4,15.4 134.6,15 133.7,14.7 C132.9,14.5 131.8,13.8 131.2,14 C130.9,13.6 130.6,13.6 130.3,13.5 C130,13.3 129.8,13.7 129.5,13.7 C129.4,13.4 129.7,13.3 129.4,13.1 C126.9,12.3 124.3,11.3 121.6,10.9 C122,11 121.5,11.2 121.2,11.4 C120.9,11.7 120.7,11.3 120.4,11.6 C120,12.4 118.6,12.7 118.1,13.6 C118,13.7 118.1,14 117.9,13.9 C117.4,14 118.1,13.9 118.3,14.1 L118.3,14.1 Z M190.1,89.6 C190.3,89.9 190.3,90.1 190.1,90.3 C189.8,90.4 189.6,90.3 189.4,90.3 C189.4,90.1 189.9,89.8 190.1,89.6 Z M189.3,89.2 C189.3,89.4 189.4,89.6 189.3,89.8 C189,90 188.8,90 188.6,89.9 C188.6,89.6 189.1,89.5 189.3,89.2 Z M188.5,88.6 C188.6,88.8 188.6,89.1 188.5,89.2 C188.2,89.4 188,89.2 187.9,89.2 C187.8,89 188.3,88.9 188.5,88.6 Z M129.2,13.7 L129.4,13.9 C129.3,14.1 129.2,13.9 129,14 C129,13.8 129.1,13.7 129.2,13.7 Z M182.1,133.1 C182.5,132.8 182.7,133.4 183.3,133.3 C183,132.8 182.5,132.5 182.3,131.9 L182.2,132 C180.1,138 176.6,144 173.1,150.1 C167.8,157.4 161.5,164.6 153.1,171 C151,172.4 149,173.9 147.1,175.1 C146.8,175.3 147.2,175.5 147,175.6 C146.9,175.5 146.8,175.3 146.7,175.5 C147,175.6 147,176.2 147.1,176.5 C146.9,176.4 146.6,175.9 146.3,175.6 C138.3,180.6 130.5,183.5 122.8,185.7 C122.7,186.2 122,186.8 122.5,187.4 C123,187 123.9,184.9 124.9,185.4 C124.7,186.9 122.7,187.9 122.6,189.4 C123.6,189.2 124.7,189 125.8,188.5 C126.1,188.1 126.6,187.2 127.3,187.3 C127.7,187.4 127.4,187.9 127.7,188.1 C136.8,185.3 146.3,180.8 155.6,173.8 C162.8,168.3 169,161.9 173.5,155.8 C173.2,155.5 172.7,155.6 172.3,155.1 C172.2,154.4 172.7,153.6 172.5,152.9 L173.1,152.4 C173.3,152.9 174,153.4 174.3,153 C174.5,152.3 174.2,151.5 174.5,150.9 C175.3,151 176.1,150.4 176.9,150.2 C177.1,149.2 176.9,148.3 177.2,147.3 C177.1,146.6 176.9,146 177.2,145.4 C178.3,145.6 177.8,147.2 178.3,148.1 C180.8,144.1 182.7,140.1 184.4,136.1 C183.7,135.4 181.9,134.5 182.1,133.1 L182.1,133.1 Z M146.3,178.4 C146.1,178.2 146.2,178.1 146.1,177.9 C146.3,177.9 146.5,178 146.7,177.9 C146.8,178.2 146.4,178.3 146.3,178.4 Z M146.2,177.1 C146.4,177 146.6,177.1 146.8,177.1 C146.9,177.4 146.9,177.8 147,177.9 C146.6,178.1 146.4,177.3 146.2,177.1 Z M146,176.1 C146.2,176 146.5,176.1 146.6,176.1 C146.8,176.4 146.7,176.8 146.9,177 C146.6,177 146.3,176.4 146,176.1 Z M172.8,151.9 C172.6,152 172.5,151.9 172.4,151.7 C172.7,151.5 172.9,151.4 173.1,151.2 C173,151.5 172.8,151.7 172.8,151.9 Z M93.2,124.1 L96.8,124.9",id:"\u5F62\u72B6","fill-rule":"nonzero"}}),i("text",{attrs:{id:"\u91CD\u65B0\u6FC0\u6D3B",transform:"translate(99.1901, 99.5228) rotate(-30) translate(-99.1901, -99.5228)","font-family":"PingFangSC-Medium, PingFang SC","font-size":"39","font-weight":"400","letter-spacing":"0.4"}},[i("tspan",{attrs:{x:"20.3900543",y:"113.522759"}},[e._v("\u91CD\u65B0\u6FC0\u6D3B")])])])])])]):e._e(),a.historyActivityType=="endEvent"?i("p",[i("b",[e._v("\u6D41\u7A0B\u5DF2\u7ED3\u675F")])]):a.historyActivityType=="startEvent"?i("p",[i("span",{staticClass:"flow-name"},[e._v(e._s(a.assigneeName||(a.comments&&a.comments.length>0?e.my(a):"")))]),e._v(" \u5728 "),i("span",{staticClass:"flow-time"},[e._v(e._s(a.createTime))]),e._v(" \u53D1\u8D77\u4E86\u6D41\u7A0B ")]):i("p",[i("span",{staticClass:"flow-name"},[e._v(e._s(a.assigneeName||(a.comments&&a.comments.length>0?e.my(a):"")))]),e._v(" \u5728 "),i("span",{staticClass:"flow-time"},[e._v(e._s(a.createTime))]),e._v(" \u5F00\u59CB\u5904\u7406 "),i("span",{staticClass:"flow-node"},[e._v(e._s(a.historyActivityType=="endEvent"?"\u7ED3\u675F":a.historyActivityName||"\u672A\u547D\u540D"))]),e._v(" \u73AF\u8282 ")]),a.historyActivityDurationTime?i("p",{staticClass:"flow-time"},[e._v(" \u4EFB\u52A1\u5386\u65F6 "+e._s(a.historyActivityDurationTime)+" ")]):e._e(),a.comments&&a.comments.length>0?[e._l(a.comments.filter(function(c){return c.action==="AddComment"}),function(c,p){return i("p",{key:p},[p<1?[i("span",{class:["comment-type",a.class]},[e._v(e._s(e.commentMap[c.type]||c.type))]),i("span",{staticClass:"comment-user"},[e._v(e._s(c.userId))]),e._v(": "),i("span",[e._v(" "+e._s(c.fullMessage)+" ")]),a.comments.filter(function(m){return m.action==="AddComment"}).length>1?i("span",{staticStyle:{color:"#1989fa",float:"right"},on:{click:e.handleClick}},[e._v(" "+e._s(e.toggleText)+" "),i("i",{class:[e.isFlag?"el-icon-arrow-up":"el-icon-arrow-down"]}),i("el-icon",[e.isFlag?i("el-icon-arrow-up"):i("el-icon-arrow-down")],1)],1):e._e(),c.time&&e.isFlag?i("p",{staticStyle:{color:"gray","font-size":"12px"}},[e._v(e._s(c.time))]):e._e()]:e._e(),p>0&&e.isFlag?[i("span",{staticClass:"comment-type"},[e._v(e._s(e.commentMap[c.type]||c.type))]),i("span",{staticClass:"comment-user"},[e._v(e._s(c.userId))]),e._v(": "),i("span",[e._v(" "+e._s(c.fullMessage)+" ")]),c.time?i("p",{staticStyle:{color:"gray","font-size":"12px"}},[e._v(e._s(c.time))]):e._e()]:e._e()],2)}),a.attachmentsQianzi&&a.attachmentsQianzi.length>0?[i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[i("span",[e._v("\u7B7E\u5B57: ")]),i("div",{staticStyle:{flex:"1",margin:"-15px 0 0 4px"}},[i("jyr-file-upload",{ref:"fileUpload",refInFor:!0,attrs:{locked:"",fullFileObject:"",showFileName:""},model:{value:a.attachmentsQianzi,callback:function(c){e.$set(a,"attachmentsQianzi",c)},expression:"item.attachmentsQianzi"}})],1)])]:e._e(),a.attachmentsFujian&&a.attachmentsFujian.length>0?[i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[i("span",[e._v("\u9644\u4EF6: ")]),i("div",{staticStyle:{flex:"1",margin:"-15px 0 0 4px"}},[i("jyr-file-upload",{ref:"fileUpload",refInFor:!0,attrs:{locked:"",fullFileObject:"",showFileName:""},model:{value:a.attachmentsFujian,callback:function(c){e.$set(a,"attachmentsFujian",c)},expression:"item.attachmentsFujian"}})],1)])]:e._e()]:e._e(),a.endTime&&a.historyActivityType!="startEvent"?i("p",{staticClass:"flow-time"},[e._v("\u7ED3\u675F\u65F6\u95F4: "+e._s(a.endTime))]):e._e()],2)],1)]})],2)],1)},wL=[];const FZ="",EL={name:"nf-flow",props:{isHistory:{type:Boolean,default:!1},isActive:{type:Boolean,default:!1},flowList:{type:Array,default:()=>[]}},data(){return{getColors:Ky,isFlag:!0,toggleText:"\u6536\u8D77",commentMap:{assigneeComment:"\u53D8\u66F4",dispatchComment:"\u8C03\u5EA6",transferComment:"\u8F6C\u529E",delegateComment:"\u59D4\u6258",rollbackComment:"\u56DE\u9000",terminateComment:"\u7EC8\u6B62",addMultiInstanceComment:"\u52A0\u7B7E",deleteMultiInstanceComment:"\u51CF\u7B7E",withdrawComment:"\u64A4\u9500",recallComment:"\u64A4\u56DE",deleteProcessComment:"\u5220\u9664",skipComment:"\u8DF3\u8FC7",cancelProcessComment:"\u62D2\u7EDD",comment:"\u5BA1\u6279",\u524D\u52A0\u7B7E:"\u52A0\u7B7E",\u540E\u52A0\u7B7E:"\u52A0\u7B7E"}}},methods:{my(e){return e.comments[e.comments.length-1].userId||""},handleClick(){this.isFlag=!this.isFlag,this.toggleText=this.isFlag?"\u6536\u8D77":"\u5C55\u5F00"}}},O6={};var CL=qt(EL,xL,wL,!1,kL,"f93978e6",null,null);function kL(e){for(let n in O6)this[n]=O6[n]}const SL=function(){return CL.exports}();function Gr(e,n){n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}const gd=Object.prototype.toString,DL=Object.prototype.hasOwnProperty;function Xy(e){return e===void 0}function Zl(e){return e!==void 0}function T6(e){return e==null}function Cr(e){return gd.call(e)==="[object Array]"}function gs(e){return gd.call(e)==="[object Object]"}function no(e){return gd.call(e)==="[object Number]"}function As(e){const n=gd.call(e);return n==="[object Function]"||n==="[object AsyncFunction]"||n==="[object GeneratorFunction]"||n==="[object AsyncGeneratorFunction]"||n==="[object Proxy]"}function kr(e){return gd.call(e)==="[object String]"}function $l(e,n){return!T6(e)&&DL.call(e,n)}function Sr(e,n){const i=Zy(n);let a;return We(e,function(s,c){if(i(s,c))return a=s,!1}),a}function IL(e,n){const i=Zy(n);let a=Cr(e)?-1:void 0;return We(e,function(s,c){if(i(s,c))return a=c,!1}),a}function ql(e,n){const i=Zy(n);let a=[];return We(e,function(s,c){i(s,c)&&a.push(s)}),a}function We(e,n){let i,a;if(Xy(e))return;const s=Cr(e)?TL:OL;for(let c in e)if($l(e,c)&&(i=e[c],a=n(i,s(c)),a===!1))return i}function ec(e,n,i){return We(e,function(a,s){i=n(i,a,s)}),i}function N6(e,n){return!!ec(e,function(i,a,s){return i&&n(a,s)},!0)}function M6(e,n){return!!Sr(e,n)}function BL(e,n){let i=[];return We(e,function(a,s){i.push(n(a,s))}),i}function F6(e){return function(n){return N6(e,function(i,a){return n[a]===i})}}function Zy(e){return As(e)?e:n=>n===e}function OL(e){return e}function TL(e){return Number(e)}function NL(e,n){let i,a,s,c;function p(E){let N=Date.now(),_=E?0:c+n-N;if(_>0)return m(_);e.apply(s,a),g()}function m(E){i=setTimeout(p,E)}function g(){i&&clearTimeout(i),i=c=a=s=void 0}function y(){i&&p(!0),g()}function O(...E){c=Date.now(),a=E,s=this,i||m(n)}return O.flush=y,O.cancel=g,O}function io(e,n){return e.bind(n)}function Je(e,...n){return Object.assign(e,...n)}function ML(e,n,i){let a=e;return We(n,function(s,c){if(typeof s!="number"&&typeof s!="string")throw new Error("illegal key type: "+typeof s+". Key should be of type number or string.");if(s==="constructor")throw new Error("illegal key: constructor");if(s==="__proto__")throw new Error("illegal key: __proto__");let p=n[c+1],m=a[s];Zl(p)&&T6(m)&&(m=a[s]=isNaN(+p)?{}:[]),Xy(p)?Xy(i)?delete a[s]:a[s]=i:a=m}),e}function FL(e,n){let i={},a=Object(e);return We(n,function(s){s in a&&(i[s]=e[s])}),i}function PL(e,n){let i={},a=Object(e);return We(a,function(s,c){n.indexOf(c)===-1&&(i[c]=s)}),i}var RL=1e3;function ya(e,n){var i=this;n=n||RL,e.on(["render.shape","render.connection"],n,function(a,s){var c=a.type,p=s.element,m=s.gfx,g=s.attrs;if(i.canRender(p))return c==="render.shape"?i.drawShape(m,p,g):i.drawConnection(m,p,g)}),e.on(["render.getShapePath","render.getConnectionPath"],n,function(a,s){if(i.canRender(s))return a.type==="render.getShapePath"?i.getShapePath(s):i.getConnectionPath(s)})}ya.prototype.canRender=function(e){},ya.prototype.drawShape=function(e,n){},ya.prototype.drawConnection=function(e,n){},ya.prototype.getShapePath=function(e){},ya.prototype.getConnectionPath=function(e){};function Ge(e,n){var i=Ut(e);return i&&typeof i.$instanceOf=="function"&&i.$instanceOf(n)}function jL(e,n){return M6(n,function(i){return Ge(e,i)})}function Ut(e){return e&&e.businessObject||e}function vs(e){return e&&e.di}function bs(e,n){return Ge(e,"bpmn:CallActivity")?!1:Ge(e,"bpmn:SubProcess")?(n=n||vs(e),n&&Ge(n,"bpmndi:BPMNPlane")?!0:n&&!!n.isExpanded):Ge(e,"bpmn:Participant")?!!Ut(e).processRef:!0}function P6(e){if(!(!Ge(e,"bpmn:Participant")&&!Ge(e,"bpmn:Lane"))){var n=vs(e).isHorizontal;return n===void 0?!0:n}}function LL(e){return e&&!!Ut(e).triggeredByEvent}function zL(e){return gs(e)&&$l(e,"waypoints")}var Rh={width:90,height:20},R6=15;function QL(e){return Ge(e,"bpmn:Event")||Ge(e,"bpmn:Gateway")||Ge(e,"bpmn:DataStoreReference")||Ge(e,"bpmn:DataObjectReference")||Ge(e,"bpmn:DataInput")||Ge(e,"bpmn:DataOutput")||Ge(e,"bpmn:SequenceFlow")||Ge(e,"bpmn:MessageFlow")||Ge(e,"bpmn:Group")}function HL(e){var n=e.length/2-1,i=e[Math.floor(n)],a=e[Math.ceil(n+.01)],s=VL(e),c=Math.atan((a.y-i.y)/(a.x-i.x)),p=s.x,m=s.y;return Math.abs(c)<Math.PI/2?m-=R6:p+=R6,{x:p,y:m}}function VL(e){var n=e.length/2-1,i=e[Math.floor(n)],a=e[Math.ceil(n+.01)];return{x:i.x+(a.x-i.x)/2,y:i.y+(a.y-i.y)/2}}function UL(e){return e.waypoints?HL(e.waypoints):Ge(e,"bpmn:Group")?{x:e.x+e.width/2,y:e.y+Rh.height/2}:{x:e.x+e.width/2,y:e.y+e.height+Rh.height/2}}function YL(e,n){var i,a,s,c=e.label;return c&&c.bounds?(s=c.bounds,a={width:Math.max(Rh.width,s.width),height:s.height},i={x:s.x+s.width/2,y:s.y+s.height/2}):(i=UL(n),a=Rh),Je({x:i.x-a.width/2,y:i.y-a.height/2},a)}function WL(e){if(Ge(e,"bpmn:FlowElement")||Ge(e,"bpmn:Participant")||Ge(e,"bpmn:Lane")||Ge(e,"bpmn:SequenceFlow")||Ge(e,"bpmn:MessageFlow")||Ge(e,"bpmn:DataInput")||Ge(e,"bpmn:DataOutput"))return"name";if(Ge(e,"bpmn:TextAnnotation"))return"text";if(Ge(e,"bpmn:Group"))return"categoryValueRef"}function GL(e){var n=e.categoryValueRef;return n&&n.value||""}function jh(e){var n=e.businessObject,i=WL(n);if(i)return i==="categoryValueRef"?GL(n):n[i]||""}function JL(e,n){if(e.ownerDocument!==n.ownerDocument)try{return n.ownerDocument.importNode(e,!0)}catch{}return e}function j6(e,n){return n.appendChild(JL(e,n))}function yn(e,n){return j6(n,e),e}var $y=2,L6={"alignment-baseline":1,"baseline-shift":1,clip:1,"clip-path":1,"clip-rule":1,color:1,"color-interpolation":1,"color-interpolation-filters":1,"color-profile":1,"color-rendering":1,cursor:1,direction:1,display:1,"dominant-baseline":1,"enable-background":1,fill:1,"fill-opacity":1,"fill-rule":1,filter:1,"flood-color":1,"flood-opacity":1,font:1,"font-family":1,"font-size":$y,"font-size-adjust":1,"font-stretch":1,"font-style":1,"font-variant":1,"font-weight":1,"glyph-orientation-horizontal":1,"glyph-orientation-vertical":1,"image-rendering":1,kerning:1,"letter-spacing":1,"lighting-color":1,marker:1,"marker-end":1,"marker-mid":1,"marker-start":1,mask:1,opacity:1,overflow:1,"pointer-events":1,"shape-rendering":1,"stop-color":1,"stop-opacity":1,stroke:1,"stroke-dasharray":1,"stroke-dashoffset":1,"stroke-linecap":1,"stroke-linejoin":1,"stroke-miterlimit":1,"stroke-opacity":1,"stroke-width":$y,"text-anchor":1,"text-decoration":1,"text-rendering":1,"unicode-bidi":1,visibility:1,"word-spacing":1,"writing-mode":1};function KL(e,n){return L6[n]?e.style[n]:e.getAttributeNS(null,n)}function z6(e,n,i){var a=n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),s=L6[a];s?(s===$y&&typeof i=="number"&&(i=String(i)+"px"),e.style[a]=i):e.setAttributeNS(null,n,i)}function XL(e,n){var i=Object.keys(n),a,s;for(a=0,s;s=i[a];a++)z6(e,s,n[s])}function Pt(e,n,i){if(typeof n=="string")if(i!==void 0)z6(e,n,i);else return KL(e,n);else XL(e,n);return e}const ZL=Object.prototype.toString;function Jr(e){return new ro(e)}function ro(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}ro.prototype.add=function(e){return this.list.add(e),this},ro.prototype.remove=function(e){return ZL.call(e)=="[object RegExp]"?this.removeMatching(e):(this.list.remove(e),this)},ro.prototype.removeMatching=function(e){const n=this.array();for(let i=0;i<n.length;i++)e.test(n[i])&&this.remove(n[i]);return this},ro.prototype.toggle=function(e,n){return typeof n<"u"?n!==this.list.toggle(e,n)&&this.list.toggle(e):this.list.toggle(e),this},ro.prototype.array=function(){return Array.from(this.list)},ro.prototype.has=ro.prototype.contains=function(e){return this.list.contains(e)};function $L(e){for(var n;n=e.firstChild;)e.removeChild(n);return e}var qy={svg:"http://www.w3.org/2000/svg"},Q6='<svg xmlns="'+qy.svg+'"';function H6(e){var n=!1;e.substring(0,4)==="<svg"?e.indexOf(qy.svg)===-1&&(e=Q6+e.substring(4)):(e=Q6+">"+e+"</svg>",n=!0);var i=qL(e);if(!n)return i;for(var a=document.createDocumentFragment(),s=i.firstChild;s.firstChild;)a.appendChild(s.firstChild);return a}function qL(e){var n;return n=new DOMParser,n.async=!1,n.parseFromString(e,"text/xml")}function Rt(e,n){var i;return e=e.trim(),e.charAt(0)==="<"?(i=H6(e).firstChild,i=document.importNode(i,!0)):i=document.createElementNS(qy.svg,e),n&&Pt(i,n),i}var e0=null;function t0(){return e0===null&&(e0=Rt("svg")),e0}function V6(e,n){var i,a,s=Object.keys(n);for(i=0;a=s[i];i++)e[a]=n[a];return e}function ez(e,n,i,a,s,c){var p=t0().createSVGMatrix();switch(arguments.length){case 0:return p;case 1:return V6(p,e);case 6:return V6(p,{a:e,b:n,c:i,d:a,e:s,f:c})}}function Ad(e){return e?t0().createSVGTransformFromMatrix(e):t0().createSVGTransform()}var U6=/([&<>]{1})/g,tz=/([&<>\n\r"]{1})/g,nz={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"'"};function n0(e,n){function i(a,s){return nz[s]||s}return e.replace(n,i)}function Y6(e,n){var i,a,s,c,p;switch(e.nodeType){case 3:n.push(n0(e.textContent,U6));break;case 1:if(n.push("<",e.tagName),e.hasAttributes())for(s=e.attributes,i=0,a=s.length;i<a;++i)c=s.item(i),n.push(" ",c.name,'="',n0(c.value,tz),'"');if(e.hasChildNodes()){for(n.push(">"),p=e.childNodes,i=0,a=p.length;i<a;++i)Y6(p.item(i),n);n.push("</",e.tagName,">")}else n.push("/>");break;case 8:n.push("<!--",n0(e.nodeValue,U6),"-->");break;case 4:n.push("<![CDATA[",e.nodeValue,"]]>");break;default:throw new Error("unable to handle node "+e.nodeType)}return n}function iz(e,n){var i=H6(n);if($L(e),!!n){az(i)||(i=i.documentElement);for(var a=oz(i.childNodes),s=0;s<a.length;s++)j6(a[s],e)}}function rz(e){for(var n=e.firstChild,i=[];n;)Y6(n,i),n=n.nextSibling;return i.join("")}function az(e){return e.nodeName==="#document-fragment"}function W6(e,n){if(n!==void 0){try{iz(e,n)}catch(i){throw new Error("error parsing SVG: "+i.message)}return e}else return rz(e)}function oz(e){return Array.prototype.slice.call(e)}function vd(e){var n=e.parentNode;return n&&n.removeChild(e),e}function sz(e,n){return n instanceof SVGMatrix?e.createSVGTransformFromMatrix(n):n}function lz(e,n){var i,a;for(e.clear(),i=0;a=n[i];i++)e.appendItem(sz(e,a))}function bd(e,n){var i=e.transform.baseVal;return n&&(Array.isArray(n)||(n=[n]),lz(i,n)),i.consolidate()}function _s(e){return e.flat().join(",").replace(/,?([A-Za-z]),?/g,"$1")}function cz(e){return["M",e.x,e.y]}function i0(e){return["L",e.x,e.y]}function uz(e,n,i){return["C",e.x,e.y,n.x,n.y,i.x,i.y]}function dz(e,n){const i=e.length,a=[cz(e[0])];for(let s=1;s<i;s++){const c=e[s-1],p=e[s],m=e[s+1];if(!m||!n){a.push(i0(p));continue}const g=Math.min(n,r0(p.x-c.x,p.y-c.y),r0(m.x-p.x,m.y-p.y));if(!g){a.push(i0(p));continue}const y=Lh(p,c,g),O=Lh(p,c,g*.5),E=Lh(p,m,g),N=Lh(p,m,g*.5);a.push(i0(y)),a.push(uz(O,N,E))}return a}function Lh(e,n,i){const a=n.x-e.x,s=n.y-e.y,c=r0(a,s),p=i/c;return{x:e.x+a*p,y:e.y+s*p}}function r0(e,n){return Math.sqrt(Math.pow(e,2)+Math.pow(n,2))}function a0(e,n,i){no(n)&&(i=n,n=null),n||(n={});const a=Rt("path",n);return no(i)&&(a.dataset.cornerRadius=String(i)),G6(a,e)}function G6(e,n){const i=parseInt(e.dataset.cornerRadius,10)||0;return Pt(e,{d:_s(dz(n,i))}),e}var o0="hsl(225, 10%, 15%)",fz="white";function Kr(e,n){return M6(e.eventDefinitions,function(i){return i.$type===n})}function pz(e){return e.$type==="bpmn:IntermediateThrowEvent"||e.$type==="bpmn:EndEvent"}function hz(e){var n=e.dataObjectRef;return e.isCollection||n&&n.isCollection}function st(e,n,i){var a=vs(e);return i||a.get("color:background-color")||a.get("bioc:fill")||n||fz}function ze(e,n,i){var a=vs(e);return i||a.get("color:border-color")||a.get("bioc:stroke")||n||o0}function _d(e,n,i,a){var s=vs(e),c=s.get("label");return a||c&&c.get("color:color")||n||ze(e,i)}function mz(e){var n=e.x+e.width/2,i=e.y+e.height/2,a=e.width/2,s=[["M",n,i],["m",0,-a],["a",a,a,0,1,1,0,2*a],["a",a,a,0,1,1,0,-2*a],["z"]];return _s(s)}function gz(e,n){var i=e.x,a=e.y,s=e.width,c=e.height,p=[["M",i+n,a],["l",s-n*2,0],["a",n,n,0,0,1,n,n],["l",0,c-n*2],["a",n,n,0,0,1,-n,n],["l",n*2-s,0],["a",n,n,0,0,1,-n,-n],["l",0,n*2-c],["a",n,n,0,0,1,n,-n],["z"]];return _s(p)}function Az(e){var n=e.width,i=e.height,a=e.x,s=e.y,c=n/2,p=i/2,m=[["M",a+c,s],["l",c,p],["l",-c,p],["l",-c,-p],["z"]];return _s(m)}function vz(e){var n=e.x,i=e.y,a=e.width,s=e.height,c=[["M",n,i],["l",a,0],["l",0,s],["l",-a,0],["z"]];return _s(c)}function yd(e,n={}){return{width:er(e,n),height:Ai(e,n)}}function er(e,n={}){return $l(n,"width")?n.width:e.width}function Ai(e,n={}){return $l(n,"height")?n.height:e.height}function bz(e,n){return n.forEach(function(i){i&&typeof i!="string"&&!Array.isArray(i)&&Object.keys(i).forEach(function(a){if(a!=="default"&&!(a in e)){var s=Object.getOwnPropertyDescriptor(i,a);Object.defineProperty(e,a,s.get?s:{enumerable:!0,get:function(){return i[a]}})}})}),Object.freeze(e)}const _z=Object.prototype.toString,yz=Object.prototype.hasOwnProperty;function xz(e){return e===void 0}function wz(e){return _z.call(e)==="[object Array]"}function Ez(e,n){return yz.call(e,n)}function J6(e,n){let i,a;if(xz(e))return;const s=wz(e)?kz:Cz;for(let c in e)if(Ez(e,c)&&(i=e[c],a=n(i,s(c)),a===!1))return i}function Cz(e){return e}function kz(e){return Number(e)}function Tn(e,...n){const i=e.style;return J6(n,function(a){!a||J6(a,function(s,c){i[c]=s})}),e}function s0(e,n,i){return arguments.length==2?e.getAttribute(n):i===null?e.removeAttribute(n):(e.setAttribute(n,i),e)}const Sz=Object.prototype.toString;function ys(e){return new ao(e)}function ao(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}ao.prototype.add=function(e){return this.list.add(e),this},ao.prototype.remove=function(e){return Sz.call(e)=="[object RegExp]"?this.removeMatching(e):(this.list.remove(e),this)},ao.prototype.removeMatching=function(e){const n=this.array();for(let i=0;i<n.length;i++)e.test(n[i])&&this.remove(n[i]);return this},ao.prototype.toggle=function(e,n){return typeof n<"u"?n!==this.list.toggle(e,n)&&this.list.toggle(e):this.list.toggle(e),this},ao.prototype.array=function(){return Array.from(this.list)},ao.prototype.has=ao.prototype.contains=function(e){return this.list.contains(e)};function K6(e){for(var n;n=e.firstChild;)e.removeChild(n);return e}function X6(e,n,i){var a=i?e:e.parentNode;return a&&typeof a.closest=="function"&&a.closest(n)||null}var zh={},Qh,l0,c0;function Z6(){Qh=window.addEventListener?"addEventListener":"attachEvent",l0=window.removeEventListener?"removeEventListener":"detachEvent",c0=Qh!=="addEventListener"?"on":""}var Dz=zh.bind=function(e,n,i,a){return Qh||Z6(),e[Qh](c0+n,i,a||!1),i},Iz=zh.unbind=function(e,n,i,a){return l0||Z6(),e[l0](c0+n,i,a||!1),i},xs=bz({__proto__:null,bind:Dz,unbind:Iz,default:zh},[zh]),$6=["focus","blur"];function Bz(e,n,i,a,s){return $6.indexOf(i)!==-1&&(s=!0),xs.bind(e,i,function(c){var p=c.target||c.srcElement;c.delegateTarget=X6(p,n,!0),c.delegateTarget&&a.call(e,c)},s)}function Oz(e,n,i,a){return $6.indexOf(n)!==-1&&(a=!0),xs.unbind(e,n,i,a)}var tc={bind:Bz,unbind:Oz},Tz=Nz,q6=!1,Hh;typeof document<"u"&&(Hh=document.createElement("div"),Hh.innerHTML=' <link/><table></table><a href="/a">a</a><input type="checkbox"/>',q6=!Hh.getElementsByTagName("link").length,Hh=void 0);var an={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:q6?[1,"X<div>","</div>"]:[0,"",""]};an.td=an.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],an.option=an.optgroup=[1,'<select multiple="multiple">',"</select>"],an.thead=an.tbody=an.colgroup=an.caption=an.tfoot=[1,"<table>","</table>"],an.polyline=an.ellipse=an.polygon=an.circle=an.text=an.line=an.path=an.rect=an.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"];function Nz(e,n){if(typeof e!="string")throw new TypeError("String expected");n||(n=document);var i=/<([\w:]+)/.exec(e);if(!i)return n.createTextNode(e);e=e.replace(/^\s+|\s+$/g,"");var a=i[1];if(a=="body"){var g=n.createElement("html");return g.innerHTML=e,g.removeChild(g.lastChild)}var s=Object.prototype.hasOwnProperty.call(an,a)?an[a]:an._default,c=s[0],p=s[1],m=s[2],g=n.createElement("div");for(g.innerHTML=p+e+m;c--;)g=g.lastChild;if(g.firstChild==g.lastChild)return g.removeChild(g.firstChild);for(var y=n.createDocumentFragment();g.firstChild;)y.appendChild(g.removeChild(g.firstChild));return y}var Li=Tz;function xa(e,n){return n=n||document,n.querySelector(e)}function Mz(e,n){return n=n||document,n.querySelectorAll(e)}function nc(e){e.parentNode&&e.parentNode.removeChild(e)}function u0(e,n,i,a,s){var c=Ad();c.setTranslate(n,i);var p=Ad();p.setRotate(a||0,0,0);var m=Ad();m.setScale(s||1,s||1),bd(e,[c,p,m])}function eS(e,n,i){var a=Ad();a.setTranslate(n,i),bd(e,a)}function Fz(e,n){var i=Ad();i.setRotate(n,0,0),bd(e,i)}function Pz(e,n){return n={exports:{}},e(n,n.exports),n.exports}var Rz=Pz(function(e){var n=e.exports=function(i,a){if(a||(a=16),i===void 0&&(i=128),i<=0)return"0";for(var s=Math.log(Math.pow(2,i))/Math.log(a),c=2;s===1/0;c*=2)s=Math.log(Math.pow(2,i/c))/Math.log(a)*c;for(var p=s-Math.floor(s),m="",c=0;c<Math.floor(s);c++){var g=Math.floor(Math.random()*a).toString(a);m=g+m}if(p){var y=Math.pow(a,p),g=Math.floor(Math.random()*y).toString(a);m=g+m}var O=parseInt(m,a);return O!==1/0&&O>=Math.pow(2,i)?n(i,a):m};n.rack=function(i,a,s){var c=function(m){var g=0;do{if(g++>10)if(s)i+=s;else throw new Error("too many ID collisions, use more bits");var y=n(i,a)}while(Object.hasOwnProperty.call(p,y));return p[y]=m,y},p=c.hats={};return c.get=function(m){return c.hats[m]},c.set=function(m,g){return c.hats[m]=g,c},c.bits=i||128,c.base=a||16,c}});function wa(e){if(!(this instanceof wa))return new wa(e);e=e||[128,36,1],this._seed=e.length?Rz.rack(e[0],e[1],e[2]):e}wa.prototype.next=function(e){return this._seed(e||!0)},wa.prototype.nextPrefixed=function(e,n){var i;do i=e+this.next(!0);while(this.assigned(i));return this.claim(i,n),i},wa.prototype.claim=function(e,n){this._seed.set(e,n||!0)},wa.prototype.assigned=function(e){return this._seed.get(e)||!1},wa.prototype.unclaim=function(e){delete this._seed.hats[e]},wa.prototype.clear=function(){var e=this._seed.hats,n;for(n in e)this.unclaim(n)};var jz=new wa,Lz=10,Vh=3,zz=1.5,Uh=10,ic=.95,Qz=1,Hz=.25;function ws(e,n,i,a,s,c,p){ya.call(this,n,p);var m=e&&e.defaultFillColor,g=e&&e.defaultStrokeColor,y=e&&e.defaultLabelColor;function O(j){return i.computeStyle(j,{strokeLinecap:"round",strokeLinejoin:"round",stroke:o0,strokeWidth:2,fill:"white"})}function E(j){return i.computeStyle(j,["no-fill"],{strokeLinecap:"round",strokeLinejoin:"round",stroke:o0,strokeWidth:2})}function N(j,C){var{ref:k={x:0,y:0},scale:X=1,element:te,parentGfx:fe=s._svg}=C,De=Rt("marker",{id:j,viewBox:"0 0 20 20",refX:k.x,refY:k.y,markerWidth:20*X,markerHeight:20*X,orient:"auto"});yn(De,te);var Re=xa(":scope > defs",fe);Re||(Re=Rt("defs"),yn(fe,Re)),yn(Re,De)}function _(j,C,k,X){var te=jz.nextPrefixed("marker-");return S(j,te,C,k,X),"url(#"+te+")"}function S(j,C,k,X,te){if(k==="sequenceflow-end"){var fe=Rt("path",{d:"M 1 5 L 11 10 L 1 15 Z",...O({fill:te,stroke:te,strokeWidth:1})});N(C,{element:fe,ref:{x:11,y:10},scale:.5,parentGfx:j})}if(k==="messageflow-start"){var De=Rt("circle",{cx:6,cy:6,r:3.5,...O({fill:X,stroke:te,strokeWidth:1,strokeDasharray:[1e4,1]})});N(C,{element:De,ref:{x:6,y:6},parentGfx:j})}if(k==="messageflow-end"){var Re=Rt("path",{d:"m 1 5 l 0 -3 l 7 3 l -7 3 z",...O({fill:X,stroke:te,strokeWidth:1,strokeDasharray:[1e4,1]})});N(C,{element:Re,ref:{x:8.5,y:5},parentGfx:j})}if(k==="association-start"){var Ke=Rt("path",{d:"M 11 5 L 1 10 L 11 15",...E({fill:"none",stroke:te,strokeWidth:1.5,strokeDasharray:[1e4,1]})});N(C,{element:Ke,ref:{x:1,y:10},scale:.5,parentGfx:j})}if(k==="association-end"){var _t=Rt("path",{d:"M 1 5 L 11 10 L 1 15",...E({fill:"none",stroke:te,strokeWidth:1.5,strokeDasharray:[1e4,1]})});N(C,{element:_t,ref:{x:11,y:10},scale:.5,parentGfx:j})}if(k==="conditional-flow-marker"){var pt=Rt("path",{d:"M 0 10 L 8 6 L 16 10 L 8 14 Z",...O({fill:X,stroke:te})});N(C,{element:pt,ref:{x:-1,y:10},scale:.5,parentGfx:j})}if(k==="conditional-default-flow-marker"){var Bt=Rt("path",{d:"M 6 4 L 10 16",...O({stroke:te,fill:"none"})});N(C,{element:Bt,ref:{x:0,y:10},scale:.5,parentGfx:j})}}function M(j,C,k,X,te={}){gs(X)&&(te=X,X=0),X=X||0,te=O(te);var fe=C/2,De=k/2,Re=Rt("circle",{cx:fe,cy:De,r:Math.round((C+k)/4-X),...te});return yn(j,Re),Re}function P(j,C,k,X,te,fe){gs(te)&&(fe=te,te=0),te=te||0,fe=O(fe);var De=Rt("rect",{x:te,y:te,width:C-te*2,height:k-te*2,rx:X,ry:X,...fe});return yn(j,De),De}function T(j,C,k,X){var te=C/2,fe=k/2,De=[{x:te,y:0},{x:C,y:fe},{x:te,y:k},{x:0,y:fe}],Re=De.map(function(_t){return _t.x+","+_t.y}).join(" ");X=O(X);var Ke=Rt("polygon",{...X,points:Re});return yn(j,Ke),Ke}function R(j,C,k,X){k=E(k);var te=a0(C,k,X);return yn(j,te),te}function b(j,C,k){return R(j,C,k,5)}function w(j,C,k){k=E(k);var X=Rt("path",{...k,d:C});return yn(j,X),X}function B(j,C,k,X){return w(C,k,Je({"data-marker":j},X))}function Q(j){return K[j]}function F(j){return function(C,k,X){return Q(j)(C,k,X)}}var H={"bpmn:MessageEventDefinition":function(j,C,k={},X){var te=a.getScaledPath("EVENT_MESSAGE",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:k.width||C.width,containerHeight:k.height||C.height,position:{mx:.235,my:.315}}),fe=X?ze(C,g,k.stroke):st(C,m,k.fill),De=X?st(C,m,k.fill):ze(C,g,k.stroke),Re=w(j,te,{fill:fe,stroke:De,strokeWidth:1});return Re},"bpmn:TimerEventDefinition":function(j,C,k={}){var X=k.width||C.width,te=k.height||C.height,fe=k.width?1:2,De=M(j,X,te,.2*te,{fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke),strokeWidth:fe}),Re=a.getScaledPath("EVENT_TIMER_WH",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:X,containerHeight:te,position:{mx:.5,my:.5}});w(j,Re,{stroke:ze(C,g,k.stroke),strokeWidth:fe});for(var Ke=0;Ke<12;Ke++){var _t=a.getScaledPath("EVENT_TIMER_LINE",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:X,containerHeight:te,position:{mx:.5,my:.5}}),pt=X/2,Bt=te/2;w(j,_t,{strokeWidth:1,stroke:ze(C,g,k.stroke),transform:"rotate("+Ke*30+","+Bt+","+pt+")"})}return De},"bpmn:EscalationEventDefinition":function(j,C,k={},X){var te=a.getScaledPath("EVENT_ESCALATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:k.width||C.width,containerHeight:k.height||C.height,position:{mx:.5,my:.2}}),fe=X?ze(C,g,k.stroke):st(C,m,k.fill);return w(j,te,{fill:fe,stroke:ze(C,g,k.stroke),strokeWidth:1})},"bpmn:ConditionalEventDefinition":function(j,C,k={}){var X=a.getScaledPath("EVENT_CONDITIONAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:k.width||C.width,containerHeight:k.height||C.height,position:{mx:.5,my:.222}});return w(j,X,{fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke),strokeWidth:1})},"bpmn:LinkEventDefinition":function(j,C,k={},X){var te=a.getScaledPath("EVENT_LINK",{xScaleFactor:1,yScaleFactor:1,containerWidth:C.width,containerHeight:C.height,position:{mx:.57,my:.263}}),fe=X?ze(C,g,k.stroke):st(C,m,k.fill);return w(j,te,{fill:fe,stroke:ze(C,g,k.stroke),strokeWidth:1})},"bpmn:ErrorEventDefinition":function(j,C,k={},X){var te=a.getScaledPath("EVENT_ERROR",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:k.width||C.width,containerHeight:k.height||C.height,position:{mx:.2,my:.722}}),fe=X?ze(C,g,k.stroke):st(C,m,k.fill);return w(j,te,{fill:fe,stroke:ze(C,g,k.stroke),strokeWidth:1})},"bpmn:CancelEventDefinition":function(j,C,k={},X){var te=a.getScaledPath("EVENT_CANCEL_45",{xScaleFactor:1,yScaleFactor:1,containerWidth:C.width,containerHeight:C.height,position:{mx:.638,my:-.055}}),fe=X?ze(C,g,k.stroke):"none",De=w(j,te,{fill:fe,stroke:ze(C,g,k.stroke),strokeWidth:1});return Fz(De,45),De},"bpmn:CompensateEventDefinition":function(j,C,k={},X){var te=a.getScaledPath("EVENT_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:k.width||C.width,containerHeight:k.height||C.height,position:{mx:.22,my:.5}}),fe=X?ze(C,g,k.stroke):st(C,m,k.fill);return w(j,te,{fill:fe,stroke:ze(C,g,k.stroke),strokeWidth:1})},"bpmn:SignalEventDefinition":function(j,C,k={},X){var te=a.getScaledPath("EVENT_SIGNAL",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:k.width||C.width,containerHeight:k.height||C.height,position:{mx:.5,my:.2}}),fe=X?ze(C,g,k.stroke):st(C,m,k.fill);return w(j,te,{strokeWidth:1,fill:fe,stroke:ze(C,g,k.stroke)})},"bpmn:MultipleEventDefinition":function(j,C,k={},X){var te=a.getScaledPath("EVENT_MULTIPLE",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:k.width||C.width,containerHeight:k.height||C.height,position:{mx:.211,my:.36}}),fe=X?ze(C,g,k.stroke):st(C,m,k.fill);return w(j,te,{fill:fe,stroke:ze(C,g,k.stroke),strokeWidth:1})},"bpmn:ParallelMultipleEventDefinition":function(j,C,k={}){var X=a.getScaledPath("EVENT_PARALLEL_MULTIPLE",{xScaleFactor:1.2,yScaleFactor:1.2,containerWidth:k.width||C.width,containerHeight:k.height||C.height,position:{mx:.458,my:.194}});return w(j,X,{fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke),strokeWidth:1})},"bpmn:TerminateEventDefinition":function(j,C,k={}){var X=M(j,C.width,C.height,8,{fill:ze(C,g,k.stroke),stroke:ze(C,g,k.stroke),strokeWidth:4});return X}};function ee(j,C,k={},X){var te=Ut(j),fe=pz(te),De=X||j;return te.get("eventDefinitions")&&te.get("eventDefinitions").length>1?te.get("parallelMultiple")?H["bpmn:ParallelMultipleEventDefinition"](C,De,k,fe):H["bpmn:MultipleEventDefinition"](C,De,k,fe):Kr(te,"bpmn:MessageEventDefinition")?H["bpmn:MessageEventDefinition"](C,De,k,fe):Kr(te,"bpmn:TimerEventDefinition")?H["bpmn:TimerEventDefinition"](C,De,k,fe):Kr(te,"bpmn:ConditionalEventDefinition")?H["bpmn:ConditionalEventDefinition"](C,De,k,fe):Kr(te,"bpmn:SignalEventDefinition")?H["bpmn:SignalEventDefinition"](C,De,k,fe):Kr(te,"bpmn:EscalationEventDefinition")?H["bpmn:EscalationEventDefinition"](C,De,k,fe):Kr(te,"bpmn:LinkEventDefinition")?H["bpmn:LinkEventDefinition"](C,De,k,fe):Kr(te,"bpmn:ErrorEventDefinition")?H["bpmn:ErrorEventDefinition"](C,De,k,fe):Kr(te,"bpmn:CancelEventDefinition")?H["bpmn:CancelEventDefinition"](C,De,k,fe):Kr(te,"bpmn:CompensateEventDefinition")?H["bpmn:CompensateEventDefinition"](C,De,k,fe):Kr(te,"bpmn:TerminateEventDefinition")?H["bpmn:TerminateEventDefinition"](C,De,k,fe):null}var ne={ParticipantMultiplicityMarker:function(j,C,k={}){var X=er(C,k),te=Ai(C,k),fe=a.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:X,containerHeight:te,position:{mx:(X/2-6)/X,my:(te-15)/te}});B("participant-multiplicity",j,fe,{strokeWidth:2,fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke)})},SubProcessMarker:function(j,C,k={}){var X=P(j,14,14,0,{strokeWidth:1,fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke)});eS(X,C.width/2-7.5,C.height-20);var te=a.getScaledPath("MARKER_SUB_PROCESS",{xScaleFactor:1.5,yScaleFactor:1.5,containerWidth:C.width,containerHeight:C.height,position:{mx:(C.width/2-7.5)/C.width,my:(C.height-20)/C.height}});B("sub-process",j,te,{fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke)})},ParallelMarker:function(j,C,k){var X=er(C,k),te=Ai(C,k),fe=a.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:X,containerHeight:te,position:{mx:(X/2+k.parallel)/X,my:(te-20)/te}});B("parallel",j,fe,{fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke)})},SequentialMarker:function(j,C,k){var X=a.getScaledPath("MARKER_SEQUENTIAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:C.width,containerHeight:C.height,position:{mx:(C.width/2+k.seq)/C.width,my:(C.height-19)/C.height}});B("sequential",j,X,{fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke)})},CompensationMarker:function(j,C,k){var X=a.getScaledPath("MARKER_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:C.width,containerHeight:C.height,position:{mx:(C.width/2+k.compensation)/C.width,my:(C.height-13)/C.height}});B("compensation",j,X,{strokeWidth:1,fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke)})},LoopMarker:function(j,C,k){var X=er(C,k),te=Ai(C,k),fe=a.getScaledPath("MARKER_LOOP",{xScaleFactor:1,yScaleFactor:1,containerWidth:X,containerHeight:te,position:{mx:(X/2+k.loop)/X,my:(te-7)/te}});B("loop",j,fe,{strokeWidth:1.5,fill:"none",stroke:ze(C,g,k.stroke),strokeMiterlimit:.5})},AdhocMarker:function(j,C,k){var X=er(C,k),te=Ai(C,k),fe=a.getScaledPath("MARKER_ADHOC",{xScaleFactor:1,yScaleFactor:1,containerWidth:X,containerHeight:te,position:{mx:(X/2+k.adhoc)/X,my:(te-15)/te}});B("adhoc",j,fe,{strokeWidth:1,fill:ze(C,g,k.stroke),stroke:ze(C,g,k.stroke)})}};function se(j,C,k,X){ne[j](C,k,X)}function me(j,C,k=[],X={}){X={fill:X.fill,stroke:X.stroke,width:er(C,X),height:Ai(C,X)};var te=Ut(C),fe=k.includes("SubProcessMarker");fe?X={...X,seq:-21,parallel:-22,compensation:-25,loop:-18,adhoc:10}:X={...X,seq:-5,parallel:-6,compensation:-7,loop:0,adhoc:-8},te.get("isForCompensation")&&k.push("CompensationMarker"),Ge(te,"bpmn:AdHocSubProcess")&&(k.push("AdhocMarker"),fe||Je(X,{compensation:X.compensation-18}));var De=te.get("loopCharacteristics"),Re=De&&De.get("isSequential");De&&(Je(X,{compensation:X.compensation-18}),k.includes("AdhocMarker")&&Je(X,{seq:-23,loop:-18,parallel:-24}),Re===void 0&&k.push("LoopMarker"),Re===!1&&k.push("ParallelMarker"),Re===!0&&k.push("SequentialMarker")),k.includes("CompensationMarker")&&k.length===1&&Je(X,{compensation:-8}),We(k,function(Ke){se(Ke,j,C,X)})}function pe(j,C,k={}){k=Je({size:{width:100}},k);var X=c.createText(C||"",k);return Jr(X).add("djs-label"),yn(j,X),X}function Se(j,C,k,X={}){var te=Ut(C),fe=yd({x:C.x,y:C.y,width:C.width,height:C.height},X);return pe(j,te.name,{align:k,box:fe,padding:7,style:{fill:_d(C,y,g,X.stroke)}})}function ye(j,C,k={}){var X={width:90,height:30,x:C.width/2+C.x,y:C.height/2+C.y};return pe(j,jh(C),{box:X,fitBox:!0,style:Je({},c.getExternalStyle(),{fill:_d(C,y,g,k.stroke)})})}function _e(j,C,k,X={}){var te=P6(k),fe=pe(j,C,{box:{height:30,width:te?Ai(k,X):er(k,X)},align:"center-middle",style:{fill:_d(k,y,g,X.stroke)}});if(te){var De=-1*Ai(k,X);u0(fe,0,-De,270)}}function W(j,C,k={}){var{width:X,height:te}=yd(C,k);return P(j,X,te,Uh,{...k,fill:st(C,m,k.fill),fillOpacity:ic,stroke:ze(C,g,k.stroke)})}function J(j,C,k={}){var X=Ut(C),te=st(C,m,k.fill),fe=ze(C,g,k.stroke);return(X.get("associationDirection")==="One"||X.get("associationDirection")==="Both")&&(k.markerEnd=_(j,"association-end",te,fe)),X.get("associationDirection")==="Both"&&(k.markerStart=_(j,"association-start",te,fe)),k=gt(k,["markerStart","markerEnd"]),b(j,C.waypoints,{...k,stroke:fe,strokeDasharray:"0, 5"})}function re(j,C,k={}){var X=st(C,m,k.fill),te=ze(C,g,k.stroke),fe=a.getScaledPath("DATA_OBJECT_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:C.width,containerHeight:C.height,position:{mx:.474,my:.296}}),De=w(j,fe,{fill:X,fillOpacity:ic,stroke:te}),Re=Ut(C);if(hz(Re)){var Ke=a.getScaledPath("DATA_OBJECT_COLLECTION_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:C.width,containerHeight:C.height,position:{mx:.33,my:(C.height-18)/C.height}});w(j,Ke,{strokeWidth:2,fill:X,stroke:te})}return De}function ge(j,C,k={}){return M(j,C.width,C.height,{fillOpacity:ic,...k,fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke)})}function Te(j,C,k={}){return T(j,C.width,C.height,{fill:st(C,m,k.fill),fillOpacity:ic,stroke:ze(C,g,k.stroke)})}function le(j,C,k={}){var X=P(j,er(C,k),Ai(C,k),0,{fill:st(C,m,k.fill),fillOpacity:k.fillOpacity||ic,stroke:ze(C,g,k.stroke),strokeWidth:1.5}),te=Ut(C);if(Ge(te,"bpmn:Lane")){var fe=te.get("name");_e(j,fe,C,k)}return X}function he(j,C,k={}){var X=W(j,C,k),te=bs(C);if(LL(C)&&(Pt(X,{strokeDasharray:"0, 5.5",strokeWidth:2.5}),!te)){var fe=Ut(C).flowElements||[],De=fe.filter(Re=>Ge(Re,"bpmn:StartEvent"));De.length===1&&xe(De[0],j,k,C)}return Se(j,C,te?"center-top":"center-middle",k),te?me(j,C,void 0,k):me(j,C,["SubProcessMarker"],k),X}function xe(j,C,k,X){var te=22,fe={fill:st(X,m,k.fill),stroke:ze(X,g,k.stroke),width:te,height:te},De=Ut(j).isInterrupting,Re=De?0:3,Ke=De?1:1.2,_t=20,pt=(te-_t)/2,Bt="translate("+pt+","+pt+")";M(C,_t,_t,{fill:fe.fill,stroke:fe.stroke,strokeWidth:Ke,strokeDasharray:Re,transform:Bt}),ee(j,C,fe,X)}function Fe(j,C,k={}){var X=W(j,C,k);return Se(j,C,"center-middle",k),me(j,C,void 0,k),X}var K=this.handlers={"bpmn:AdHocSubProcess":function(j,C,k={}){return bs(C)?k=gt(k,["fill","stroke","width","height"]):k=gt(k,["fill","stroke"]),he(j,C,k)},"bpmn:Association":function(j,C,k={}){return k=gt(k,["fill","stroke"]),J(j,C,k)},"bpmn:BoundaryEvent":function(j,C,k={}){var{renderIcon:X=!0}=k;k=gt(k,["fill","stroke"]);var te=Ut(C),fe=te.get("cancelActivity");k={strokeWidth:1.5,fill:st(C,m,k.fill),fillOpacity:Qz,stroke:ze(C,g,k.stroke)},fe||(k.strokeDasharray="6");var De=ge(j,C,k);return M(j,C.width,C.height,Vh,{...k,fill:"none"}),X&&ee(C,j,k),De},"bpmn:BusinessRuleTask":function(j,C,k={}){k=gt(k,["fill","stroke"]);var X=Fe(j,C,k),te=a.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN",{abspos:{x:8,y:8}}),fe=w(j,te);Pt(fe,{fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke),strokeWidth:1});var De=a.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER",{abspos:{x:8,y:8}}),Re=w(j,De);return Pt(Re,{fill:ze(C,g,k.stroke),stroke:ze(C,g,k.stroke),strokeWidth:1}),X},"bpmn:CallActivity":function(j,C,k={}){return k=gt(k,["fill","stroke"]),he(j,C,{strokeWidth:5,...k})},"bpmn:ComplexGateway":function(j,C,k={}){k=gt(k,["fill","stroke"]);var X=Te(j,C,k),te=a.getScaledPath("GATEWAY_COMPLEX",{xScaleFactor:.5,yScaleFactor:.5,containerWidth:C.width,containerHeight:C.height,position:{mx:.46,my:.26}});return w(j,te,{fill:ze(C,g,k.stroke),stroke:ze(C,g,k.stroke),strokeWidth:1}),X},"bpmn:DataInput":function(j,C,k={}){k=gt(k,["fill","stroke"]);var X=a.getRawPath("DATA_ARROW"),te=re(j,C,k);return w(j,X,{fill:"none",stroke:ze(C,g,k.stroke),strokeWidth:1}),te},"bpmn:DataInputAssociation":function(j,C,k={}){return k=gt(k,["fill","stroke"]),J(j,C,{...k,markerEnd:_(j,"association-end",st(C,m,k.fill),ze(C,g,k.stroke))})},"bpmn:DataObject":function(j,C,k={}){return k=gt(k,["fill","stroke"]),re(j,C,k)},"bpmn:DataObjectReference":F("bpmn:DataObject"),"bpmn:DataOutput":function(j,C,k={}){k=gt(k,["fill","stroke"]);var X=a.getRawPath("DATA_ARROW"),te=re(j,C,k);return w(j,X,{strokeWidth:1,fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke)}),te},"bpmn:DataOutputAssociation":function(j,C,k={}){return k=gt(k,["fill","stroke"]),J(j,C,{...k,markerEnd:_(j,"association-end",st(C,m,k.fill),ze(C,g,k.stroke))})},"bpmn:DataStoreReference":function(j,C,k={}){k=gt(k,["fill","stroke"]);var X=a.getScaledPath("DATA_STORE",{xScaleFactor:1,yScaleFactor:1,containerWidth:C.width,containerHeight:C.height,position:{mx:0,my:.133}});return w(j,X,{fill:st(C,m,k.fill),fillOpacity:ic,stroke:ze(C,g,k.stroke),strokeWidth:2})},"bpmn:EndEvent":function(j,C,k={}){var{renderIcon:X=!0}=k;k=gt(k,["fill","stroke"]);var te=ge(j,C,{...k,strokeWidth:4});return X&&ee(C,j,k),te},"bpmn:EventBasedGateway":function(j,C,k={}){k=gt(k,["fill","stroke"]);var X=Ut(C),te=Te(j,C,k);M(j,C.width,C.height,C.height*.2,{fill:st(C,"none",k.fill),stroke:ze(C,g,k.stroke),strokeWidth:1});var fe=X.get("eventGatewayType"),De=!!X.get("instantiate");function Re(){var _t=a.getScaledPath("GATEWAY_EVENT_BASED",{xScaleFactor:.18,yScaleFactor:.18,containerWidth:C.width,containerHeight:C.height,position:{mx:.36,my:.44}});w(j,_t,{fill:"none",stroke:ze(C,g,k.stroke),strokeWidth:2})}if(fe==="Parallel"){var Ke=a.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:C.width,containerHeight:C.height,position:{mx:.474,my:.296}});w(j,Ke,{fill:"none",stroke:ze(C,g,k.stroke),strokeWidth:1})}else fe==="Exclusive"&&(De||M(j,C.width,C.height,C.height*.26,{fill:"none",stroke:ze(C,g,k.stroke),strokeWidth:1}),Re());return te},"bpmn:ExclusiveGateway":function(j,C,k={}){k=gt(k,["fill","stroke"]);var X=Te(j,C,k),te=a.getScaledPath("GATEWAY_EXCLUSIVE",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:C.width,containerHeight:C.height,position:{mx:.32,my:.3}}),fe=vs(C);return fe.get("isMarkerVisible")&&w(j,te,{fill:ze(C,g,k.stroke),stroke:ze(C,g,k.stroke),strokeWidth:1}),X},"bpmn:Gateway":function(j,C,k={}){return k=gt(k,["fill","stroke"]),Te(j,C,k)},"bpmn:Group":function(j,C,k={}){return k=gt(k,["fill","stroke","width","height"]),P(j,C.width,C.height,Uh,{stroke:ze(C,g,k.stroke),strokeWidth:1.5,strokeDasharray:"10, 6, 0, 6",fill:"none",pointerEvents:"none",width:er(C,k),height:Ai(C,k)})},"bpmn:InclusiveGateway":function(j,C,k={}){k=gt(k,["fill","stroke"]);var X=Te(j,C,k);return M(j,C.width,C.height,C.height*.24,{fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke),strokeWidth:2.5}),X},"bpmn:IntermediateEvent":function(j,C,k={}){var{renderIcon:X=!0}=k;k=gt(k,["fill","stroke"]);var te=ge(j,C,{...k,strokeWidth:1.5});return M(j,C.width,C.height,Vh,{fill:"none",stroke:ze(C,g,k.stroke),strokeWidth:1.5}),X&&ee(C,j,k),te},"bpmn:IntermediateCatchEvent":F("bpmn:IntermediateEvent"),"bpmn:IntermediateThrowEvent":F("bpmn:IntermediateEvent"),"bpmn:Lane":function(j,C,k={}){return k=gt(k,["fill","stroke","width","height"]),le(j,C,{...k,fillOpacity:Hz})},"bpmn:ManualTask":function(j,C,k={}){k=gt(k,["fill","stroke"]);var X=Fe(j,C,k),te=a.getScaledPath("TASK_TYPE_MANUAL",{abspos:{x:17,y:15}});return w(j,te,{fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke),strokeWidth:.5}),X},"bpmn:MessageFlow":function(j,C,k={}){k=gt(k,["fill","stroke"]);var X=Ut(C),te=vs(C),fe=st(C,m,k.fill),De=ze(C,g,k.stroke),Re=b(j,C.waypoints,{markerEnd:_(j,"messageflow-end",fe,De),markerStart:_(j,"messageflow-start",fe,De),stroke:De,strokeDasharray:"10, 11",strokeWidth:1.5});if(X.get("messageRef")){var Ke=Re.getPointAtLength(Re.getTotalLength()/2),_t=a.getScaledPath("MESSAGE_FLOW_MARKER",{abspos:{x:Ke.x,y:Ke.y}}),pt={strokeWidth:1};te.get("messageVisibleKind")==="initiating"?(pt.fill=fe,pt.stroke=De):(pt.fill=De,pt.stroke=fe);var Bt=w(j,_t,pt),sn=X.get("messageRef"),ct=sn.get("name"),Ot=pe(j,ct,{align:"center-top",fitBox:!0,style:{fill:De}}),fn=Bt.getBBox(),ve=Ot.getBBox(),q=Ke.x-ve.width/2,G=Ke.y+fn.height/2+Lz;u0(Ot,q,G,0)}return Re},"bpmn:ParallelGateway":function(j,C,k={}){k=gt(k,["fill","stroke"]);var X=Te(j,C,k),te=a.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.6,yScaleFactor:.6,containerWidth:C.width,containerHeight:C.height,position:{mx:.46,my:.2}});return w(j,te,{fill:ze(C,g,k.stroke),stroke:ze(C,g,k.stroke),strokeWidth:1}),X},"bpmn:Participant":function(j,C,k={}){k=gt(k,["fill","stroke","width","height"]);var X=le(j,C,k),te=bs(C),fe=P6(C),De=Ut(C),Re=De.get("name");if(te){var Ke=fe?[{x:30,y:0},{x:30,y:Ai(C,k)}]:[{x:0,y:30},{x:er(C,k),y:30}];R(j,Ke,{stroke:ze(C,g,k.stroke),strokeWidth:zz}),_e(j,Re,C,k)}else{var _t=yd(C,k);fe||(_t.height=er(C,k),_t.width=Ai(C,k));var pt=pe(j,Re,{box:_t,align:"center-middle",style:{fill:_d(C,y,g,k.stroke)}});if(!fe){var Bt=-1*Ai(C,k);u0(pt,0,-Bt,270)}}return De.get("participantMultiplicity")&&se("ParticipantMultiplicityMarker",j,C,k),X},"bpmn:ReceiveTask":function(j,C,k={}){k=gt(k,["fill","stroke"]);var X=Ut(C),te=Fe(j,C,k),fe;return X.get("instantiate")?(M(j,28,28,20*.22,{fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke),strokeWidth:1}),fe=a.getScaledPath("TASK_TYPE_INSTANTIATING_SEND",{abspos:{x:7.77,y:9.52}})):fe=a.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:21,containerHeight:14,position:{mx:.3,my:.4}}),w(j,fe,{fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke),strokeWidth:1}),te},"bpmn:ScriptTask":function(j,C,k={}){k=gt(k,["fill","stroke"]);var X=Fe(j,C,k),te=a.getScaledPath("TASK_TYPE_SCRIPT",{abspos:{x:15,y:20}});return w(j,te,{fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke),strokeWidth:1}),X},"bpmn:SendTask":function(j,C,k={}){k=gt(k,["fill","stroke"]);var X=Fe(j,C,k),te=a.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:1,yScaleFactor:1,containerWidth:21,containerHeight:14,position:{mx:.285,my:.357}});return w(j,te,{fill:ze(C,g,k.stroke),stroke:st(C,m,k.fill),strokeWidth:1}),X},"bpmn:SequenceFlow":function(j,C,k={}){k=gt(k,["fill","stroke"]);var X=st(C,m,k.fill),te=ze(C,g,k.stroke),fe=b(j,C.waypoints,{markerEnd:_(j,"sequenceflow-end",X,te),stroke:te}),De=Ut(C),{source:Re}=C;if(Re){var Ke=Ut(Re);De.get("conditionExpression")&&Ge(Ke,"bpmn:Activity")&&Pt(fe,{markerStart:_(j,"conditional-flow-marker",X,te)}),Ke.get("default")&&(Ge(Ke,"bpmn:Gateway")||Ge(Ke,"bpmn:Activity"))&&Ke.get("default")===De&&Pt(fe,{markerStart:_(j,"conditional-default-flow-marker",X,te)})}return fe},"bpmn:ServiceTask":function(j,C,k={}){k=gt(k,["fill","stroke"]);var X=Fe(j,C,k);M(j,10,10,{fill:st(C,m,k.fill),stroke:"none",transform:"translate(6, 6)"});var te=a.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:12,y:18}});w(j,te,{fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke),strokeWidth:1}),M(j,10,10,{fill:st(C,m,k.fill),stroke:"none",transform:"translate(11, 10)"});var fe=a.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:17,y:22}});return w(j,fe,{fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke),strokeWidth:1}),X},"bpmn:StartEvent":function(j,C,k={}){var{renderIcon:X=!0}=k;k=gt(k,["fill","stroke"]);var te=Ut(C);te.get("isInterrupting")||(k={...k,strokeDasharray:"6"});var fe=ge(j,C,k);return X&&ee(C,j,k),fe},"bpmn:SubProcess":function(j,C,k={}){return bs(C)?k=gt(k,["fill","stroke","width","height"]):k=gt(k,["fill","stroke"]),he(j,C,k)},"bpmn:Task":function(j,C,k={}){return k=gt(k,["fill","stroke"]),Fe(j,C,k)},"bpmn:TextAnnotation":function(j,C,k={}){k=gt(k,["fill","stroke","width","height"]);var{width:X,height:te}=yd(C,k),fe=P(j,X,te,0,0,{fill:"none",stroke:"none"}),De=a.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:X,containerHeight:te,position:{mx:0,my:0}});w(j,De,{stroke:ze(C,g,k.stroke)});var Re=Ut(C),Ke=Re.get("text")||"";return pe(j,Ke,{align:"left-top",box:yd(C,k),padding:7,style:{fill:_d(C,y,g,k.stroke)}}),fe},"bpmn:Transaction":function(j,C,k={}){bs(C)?k=gt(k,["fill","stroke","width","height"]):k=gt(k,["fill","stroke"]);var X=he(j,C,{strokeWidth:1.5,...k}),te=i.style(["no-fill","no-events"],{stroke:ze(C,g,k.stroke),strokeWidth:1.5}),fe=bs(C);return fe||(k={}),P(j,er(C,k),Ai(C,k),Uh-Vh,Vh,te),X},"bpmn:UserTask":function(j,C,k={}){k=gt(k,["fill","stroke"]);var X=Fe(j,C,k),te=15,fe=12,De=a.getScaledPath("TASK_TYPE_USER_1",{abspos:{x:te,y:fe}});w(j,De,{fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke),strokeWidth:.5});var Re=a.getScaledPath("TASK_TYPE_USER_2",{abspos:{x:te,y:fe}});w(j,Re,{fill:st(C,m,k.fill),stroke:ze(C,g,k.stroke),strokeWidth:.5});var Ke=a.getScaledPath("TASK_TYPE_USER_3",{abspos:{x:te,y:fe}});return w(j,Ke,{fill:ze(C,g,k.stroke),stroke:ze(C,g,k.stroke),strokeWidth:.5}),X},label:function(j,C,k={}){return ye(j,C,k)}};this._drawPath=w,this._renderer=Q}Gr(ws,ya),ws.$inject=["config.bpmnRenderer","eventBus","styles","pathMap","canvas","textRenderer"],ws.prototype.canRender=function(e){return Ge(e,"bpmn:BaseElement")},ws.prototype.drawShape=function(e,n,i={}){var{type:a}=n,s=this._renderer(a);return s(e,n,i)},ws.prototype.drawConnection=function(e,n,i={}){var{type:a}=n,s=this._renderer(a);return s(e,n,i)},ws.prototype.getShapePath=function(e){return Ge(e,"bpmn:Event")?mz(e):Ge(e,"bpmn:Activity")?gz(e,Uh):Ge(e,"bpmn:Gateway")?Az(e):vz(e)};function gt(e,n=[]){return n.reduce((i,a)=>(e[a]&&(i[a]=e[a]),i),{})}var Vz=0,Uz={width:150,height:50};function Yz(e){var n=e.split("-");return{horizontal:n[0]||"center",vertical:n[1]||"top"}}function Wz(e){return gs(e)?Je({top:0,left:0,right:0,bottom:0},e):{top:e,left:e,right:e,bottom:e}}function Gz(e,n){n.textContent=e;var i;try{var a,s=e==="";return n.textContent=s?"dummy":e,i=n.getBBox(),a={width:i.width+i.x*2,height:i.height},s&&(a.width=0),a}catch(c){return{width:0,height:0}}}function Jz(e,n,i){for(var a=e.shift(),s=a,c;;){if(c=Gz(s,i),c.width=s?c.width:0,s===" "||s===""||c.width<Math.round(n)||s.length<2)return Kz(e,s,a,c);s=Zz(s,c.width,n)}}function Kz(e,n,i,a){if(n.length<i.length){var s=i.slice(n.length).trim();e.unshift(s)}return{width:a.width,height:a.height,text:n}}var tS="\xAD";function Xz(e,n){var i=e.split(/(\s|-|\u00AD)/g),a,s=[],c=0;if(i.length>1)for(;a=i.shift();)if(a.length+c<n)s.push(a),c+=a.length;else{(a==="-"||a===tS)&&s.pop();break}var p=s[s.length-1];return p&&p===tS&&(s[s.length-1]="-"),s.join("")}function Zz(e,n,i){var a=Math.max(e.length*(i/n),1),s=Xz(e,a);return s||(s=e.slice(0,Math.max(Math.round(a-1),1))),s}function $z(){var e=document.getElementById("helper-svg");return e||(e=Rt("svg"),Pt(e,{id:"helper-svg"}),Tn(e,{visibility:"hidden",position:"fixed",width:0,height:0}),document.body.appendChild(e)),e}function Yh(e){this._config=Je({},{size:Uz,padding:Vz,style:{},align:"center-top"},e||{})}Yh.prototype.createText=function(e,n){return this.layoutText(e,n).element},Yh.prototype.getDimensions=function(e,n){return this.layoutText(e,n).dimensions},Yh.prototype.layoutText=function(e,n){var i=Je({},this._config.size,n.box),a=Je({},this._config.style,n.style),s=Yz(n.align||this._config.align),c=Wz(n.padding!==void 0?n.padding:this._config.padding),p=n.fitBox||!1,m=qz(a),g=e.split(/\u00AD?\r?\n/),y=[],O=i.width-c.left-c.right,E=Rt("text");Pt(E,{x:0,y:0}),Pt(E,a);var N=$z();for(yn(N,E);g.length;)y.push(Jz(g,O,E));s.vertical==="middle"&&(c.top=c.bottom=0);var _=ec(y,function(R,b,w){return R+(m||b.height)},0)+c.top+c.bottom,S=ec(y,function(R,b,w){return b.width>R?b.width:R},0),M=c.top;s.vertical==="middle"&&(M+=(i.height-_)/2),M-=(m||y[0].height)/4;var P=Rt("text");Pt(P,a),We(y,function(R){var b;switch(M+=m||R.height,s.horizontal){case"left":b=c.left;break;case"right":b=(p?S:O)-c.right-R.width;break;default:b=Math.max(((p?S:O)-R.width)/2+c.left,0)}var w=Rt("tspan");Pt(w,{x:b,y:M}),w.textContent=R.text,yn(P,w)}),vd(E);var T={width:S,height:_};return{dimensions:T,element:P}};function qz(e){if("fontSize"in e&&"lineHeight"in e)return e.lineHeight*parseInt(e.fontSize,10)}var eQ=12,tQ=1.2,nQ=30;function nS(e){var n=Je({fontFamily:"Arial, sans-serif",fontSize:eQ,fontWeight:"normal",lineHeight:tQ},e&&e.defaultStyle||{}),i=parseInt(n.fontSize,10)-1,a=Je({},n,{fontSize:i},e&&e.externalStyle||{}),s=new Yh({style:n});this.getExternalLabelBounds=function(c,p){var m=s.getDimensions(p,{box:{width:90,height:30},style:a});return{x:Math.round(c.x+c.width/2-m.width/2),y:Math.round(c.y),width:Math.ceil(m.width),height:Math.ceil(m.height)}},this.getTextAnnotationBounds=function(c,p){var m=s.getDimensions(p,{box:c,style:n,align:"left-top",padding:5});return{x:c.x,y:c.y,width:c.width,height:Math.max(nQ,Math.round(m.height))}},this.createText=function(c,p){return s.createText(c,p||{})},this.getDefaultStyle=function(){return n},this.getExternalStyle=function(){return a}}nS.$inject=["config.textRenderer"];function iQ(){this.pathMap={EVENT_MESSAGE:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:36,width:36,heightElements:[6,14],widthElements:[10.5,21]},EVENT_SIGNAL:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x1},0 Z",height:36,width:36,heightElements:[18],widthElements:[10,20]},EVENT_ESCALATION:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x0},-{e.y1} l -{e.x0},{e.y1} Z",height:36,width:36,heightElements:[20,7],widthElements:[8]},EVENT_CONDITIONAL:{d:"M {e.x0},{e.y0} l {e.x1},0 l 0,{e.y2} l -{e.x1},0 Z M {e.x2},{e.y3} l {e.x0},0 M {e.x2},{e.y4} l {e.x0},0 M {e.x2},{e.y5} l {e.x0},0 M {e.x2},{e.y6} l {e.x0},0 M {e.x2},{e.y7} l {e.x0},0 M {e.x2},{e.y8} l {e.x0},0 ",height:36,width:36,heightElements:[8.5,14.5,18,11.5,14.5,17.5,20.5,23.5,26.5],widthElements:[10.5,14.5,12.5]},EVENT_LINK:{d:"m {mx},{my} 0,{e.y0} -{e.x1},0 0,{e.y1} {e.x1},0 0,{e.y0} {e.x0},-{e.y2} -{e.x0},-{e.y2} z",height:36,width:36,heightElements:[4.4375,6.75,7.8125],widthElements:[9.84375,13.5]},EVENT_ERROR:{d:"m {mx},{my} {e.x0},-{e.y0} {e.x1},-{e.y1} {e.x2},{e.y2} {e.x3},-{e.y3} -{e.x4},{e.y4} -{e.x5},-{e.y5} z",height:36,width:36,heightElements:[.023,8.737,8.151,16.564,10.591,8.714],widthElements:[.085,6.672,6.97,4.273,5.337,6.636]},EVENT_CANCEL_45:{d:"m {mx},{my} -{e.x1},0 0,{e.x0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:36,width:36,heightElements:[4.75,8.5],widthElements:[4.75,8.5]},EVENT_COMPENSATION:{d:"m {mx},{my} {e.x0},-{e.y0} 0,{e.y1} z m {e.x1},-{e.y2} {e.x2},-{e.y3} 0,{e.y1} -{e.x2},-{e.y3} z",height:36,width:36,heightElements:[6.5,13,.4,6.1],widthElements:[9,9.3,8.7]},EVENT_TIMER_WH:{d:"M {mx},{my} l {e.x0},-{e.y0} m -{e.x0},{e.y0} l {e.x1},{e.y1} ",height:36,width:36,heightElements:[10,2],widthElements:[3,7]},EVENT_TIMER_LINE:{d:"M {mx},{my} m {e.x0},{e.y0} l -{e.x1},{e.y1} ",height:36,width:36,heightElements:[10,3],widthElements:[0,0]},EVENT_MULTIPLE:{d:"m {mx},{my} {e.x1},-{e.y0} {e.x1},{e.y0} -{e.x0},{e.y1} -{e.x2},0 z",height:36,width:36,heightElements:[6.28099,12.56199],widthElements:[3.1405,9.42149,12.56198]},EVENT_PARALLEL_MULTIPLE:{d:"m {mx},{my} {e.x0},0 0,{e.y1} {e.x1},0 0,{e.y0} -{e.x1},0 0,{e.y1} -{e.x0},0 0,-{e.y1} -{e.x1},0 0,-{e.y0} {e.x1},0 z",height:36,width:36,heightElements:[2.56228,7.68683],widthElements:[2.56228,7.68683]},GATEWAY_EXCLUSIVE:{d:"m {mx},{my} {e.x0},{e.y0} {e.x1},{e.y0} {e.x2},0 {e.x4},{e.y2} {e.x4},{e.y1} {e.x2},0 {e.x1},{e.y3} {e.x0},{e.y3} {e.x3},0 {e.x5},{e.y1} {e.x5},{e.y2} {e.x3},0 z",height:17.5,width:17.5,heightElements:[8.5,6.5312,-6.5312,-8.5],widthElements:[6.5,-6.5,3,-3,5,-5]},GATEWAY_PARALLEL:{d:"m {mx},{my} 0,{e.y1} -{e.x1},0 0,{e.y0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:30,width:30,heightElements:[5,12.5],widthElements:[5,12.5]},GATEWAY_EVENT_BASED:{d:"m {mx},{my} {e.x0},{e.y0} {e.x0},{e.y1} {e.x1},{e.y2} {e.x2},0 z",height:11,width:11,heightElements:[-6,6,12,-12],widthElements:[9,-3,-12]},GATEWAY_COMPLEX:{d:"m {mx},{my} 0,{e.y0} -{e.x0},-{e.y1} -{e.x1},{e.y2} {e.x0},{e.y1} -{e.x2},0 0,{e.y3} {e.x2},0 -{e.x0},{e.y1} l {e.x1},{e.y2} {e.x0},-{e.y1} 0,{e.y0} {e.x3},0 0,-{e.y0} {e.x0},{e.y1} {e.x1},-{e.y2} -{e.x0},-{e.y1} {e.x2},0 0,-{e.y3} -{e.x2},0 {e.x0},-{e.y1} -{e.x1},-{e.y2} -{e.x0},{e.y1} 0,-{e.y0} -{e.x3},0 z",height:17.125,width:17.125,heightElements:[4.875,3.4375,2.125,3],widthElements:[3.4375,2.125,4.875,3]},DATA_OBJECT_PATH:{d:"m 0,0 {e.x1},0 {e.x0},{e.y0} 0,{e.y1} -{e.x2},0 0,-{e.y2} {e.x1},0 0,{e.y0} {e.x0},0",height:61,width:51,heightElements:[10,50,60],widthElements:[10,40,50,60]},DATA_OBJECT_COLLECTION_PATH:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},DATA_ARROW:{d:"m 5,9 9,0 0,-3 5,5 -5,5 0,-3 -9,0 z",height:61,width:51,heightElements:[],widthElements:[]},DATA_STORE:{d:"m {mx},{my} l 0,{e.y2} c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 l 0,-{e.y2} c -{e.x0},-{e.y1} -{e.x1},-{e.y1} -{e.x2},0c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0",height:61,width:61,heightElements:[7,10,45],widthElements:[2,58,60]},TEXT_ANNOTATION:{d:"m {mx}, {my} m 10,0 l -10,0 l 0,{e.y0} l 10,0",height:30,width:10,heightElements:[30],widthElements:[10]},MARKER_SUB_PROCESS:{d:"m{mx},{my} m 7,2 l 0,10 m -5,-5 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_PARALLEL:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},MARKER_SEQUENTIAL:{d:"m{mx},{my} m 0,3 l 10,0 m -10,3 l 10,0 m -10,3 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_COMPENSATION:{d:"m {mx},{my} 7,-5 0,10 z m 7.1,-0.3 6.9,-4.7 0,10 -6.9,-4.7 z",height:10,width:21,heightElements:[],widthElements:[]},MARKER_LOOP:{d:"m {mx},{my} c 3.526979,0 6.386161,-2.829858 6.386161,-6.320661 0,-3.490806 -2.859182,-6.320661 -6.386161,-6.320661 -3.526978,0 -6.38616,2.829855 -6.38616,6.320661 0,1.745402 0.714797,3.325567 1.870463,4.469381 0.577834,0.571908 1.265885,1.034728 2.029916,1.35457 l -0.718163,-3.909793 m 0.718163,3.909793 -3.885211,0.802902",height:13.9,width:13.7,heightElements:[],widthElements:[]},MARKER_ADHOC:{d:"m {mx},{my} m 0.84461,2.64411 c 1.05533,-1.23780996 2.64337,-2.07882 4.29653,-1.97997996 2.05163,0.0805 3.85579,1.15803 5.76082,1.79107 1.06385,0.34139996 2.24454,0.1438 3.18759,-0.43767 0.61743,-0.33642 1.2775,-0.64078 1.7542,-1.17511 0,0.56023 0,1.12046 0,1.6807 -0.98706,0.96237996 -2.29792,1.62393996 -3.6918,1.66181996 -1.24459,0.0927 -2.46671,-0.2491 -3.59505,-0.74812 -1.35789,-0.55965 -2.75133,-1.33436996 -4.27027,-1.18121996 -1.37741,0.14601 -2.41842,1.13685996 -3.44288,1.96782996 z",height:4,width:15,heightElements:[],widthElements:[]},TASK_TYPE_SEND:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:14,width:21,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_SCRIPT:{d:"m {mx},{my} c 9.966553,-6.27276 -8.000926,-7.91932 2.968968,-14.938 l -8.802728,0 c -10.969894,7.01868 6.997585,8.66524 -2.968967,14.938 z m -7,-12 l 5,0 m -4.5,3 l 4.5,0 m -3,3 l 5,0m -4,3 l 5,0",height:15,width:12.6,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_USER_1:{d:"m {mx},{my} c 0.909,-0.845 1.594,-2.049 1.594,-3.385 0,-2.554 -1.805,-4.62199999 -4.357,-4.62199999 -2.55199998,0 -4.28799998,2.06799999 -4.28799998,4.62199999 0,1.348 0.974,2.562 1.89599998,3.405 -0.52899998,0.187 -5.669,2.097 -5.794,4.7560005 v 6.718 h 17 v -6.718 c 0,-2.2980005 -5.5279996,-4.5950005 -6.0509996,-4.7760005 zm -8,6 l 0,5.5 m 11,0 l 0,-5"},TASK_TYPE_USER_2:{d:"m {mx},{my} m 2.162,1.009 c 0,2.4470005 -2.158,4.4310005 -4.821,4.4310005 -2.66499998,0 -4.822,-1.981 -4.822,-4.4310005 "},TASK_TYPE_USER_3:{d:"m {mx},{my} m -6.9,-3.80 c 0,0 2.25099998,-2.358 4.27399998,-1.177 2.024,1.181 4.221,1.537 4.124,0.965 -0.098,-0.57 -0.117,-3.79099999 -4.191,-4.13599999 -3.57499998,0.001 -4.20799998,3.36699999 -4.20699998,4.34799999 z"},TASK_TYPE_MANUAL:{d:"m {mx},{my} c 0.234,-0.01 5.604,0.008 8.029,0.004 0.808,0 1.271,-0.172 1.417,-0.752 0.227,-0.898 -0.334,-1.314 -1.338,-1.316 -2.467,-0.01 -7.886,-0.004 -8.108,-0.004 -0.014,-0.079 0.016,-0.533 0,-0.61 0.195,-0.042 8.507,0.006 9.616,0.002 0.877,-0.007 1.35,-0.438 1.353,-1.208 0.003,-0.768 -0.479,-1.09 -1.35,-1.091 -2.968,-0.002 -9.619,-0.013 -9.619,-0.013 v -0.591 c 0,0 5.052,-0.016 7.225,-0.016 0.888,-0.002 1.354,-0.416 1.351,-1.193 -0.006,-0.761 -0.492,-1.196 -1.361,-1.196 -3.473,-0.005 -10.86,-0.003 -11.0829995,-0.003 -0.022,-0.047 -0.045,-0.094 -0.069,-0.139 0.3939995,-0.319 2.0409995,-1.626 2.4149995,-2.017 0.469,-0.4870005 0.519,-1.1650005 0.162,-1.6040005 -0.414,-0.511 -0.973,-0.5 -1.48,-0.236 -1.4609995,0.764 -6.5999995,3.6430005 -7.7329995,4.2710005 -0.9,0.499 -1.516,1.253 -1.882,2.19 -0.37000002,0.95 -0.17,2.01 -0.166,2.979 0.004,0.718 -0.27300002,1.345 -0.055,2.063 0.629,2.087 2.425,3.312 4.859,3.318 4.6179995,0.014 9.2379995,-0.139 13.8569995,-0.158 0.755,-0.004 1.171,-0.301 1.182,-1.033 0.012,-0.754 -0.423,-0.969 -1.183,-0.973 -1.778,-0.01 -5.824,-0.004 -6.04,-0.004 10e-4,-0.084 0.003,-0.586 10e-4,-0.67 z"},TASK_TYPE_INSTANTIATING_SEND:{d:"m {mx},{my} l 0,8.4 l 12.6,0 l 0,-8.4 z l 6.3,3.6 l 6.3,-3.6"},TASK_TYPE_SERVICE:{d:"m {mx},{my} v -1.71335 c 0.352326,-0.0705 0.703932,-0.17838 1.047628,-0.32133 0.344416,-0.14465 0.665822,-0.32133 0.966377,-0.52145 l 1.19431,1.18005 1.567487,-1.57688 -1.195028,-1.18014 c 0.403376,-0.61394 0.683079,-1.29908 0.825447,-2.01824 l 1.622133,-0.01 v -2.2196 l -1.636514,0.01 c -0.07333,-0.35153 -0.178319,-0.70024 -0.323564,-1.04372 -0.145244,-0.34406 -0.321407,-0.6644 -0.522735,-0.96217 l 1.131035,-1.13631 -1.583305,-1.56293 -1.129598,1.13589 c -0.614052,-0.40108 -1.302883,-0.68093 -2.022633,-0.82247 l 0.0093,-1.61852 h -2.241173 l 0.0042,1.63124 c -0.353763,0.0736 -0.705369,0.17977 -1.049785,0.32371 -0.344415,0.14437 -0.665102,0.32092 -0.9635006,0.52046 l -1.1698628,-1.15823 -1.5667691,1.5792 1.1684265,1.15669 c -0.4026573,0.61283 -0.68308,1.29797 -0.8247287,2.01713 l -1.6588041,0.003 v 2.22174 l 1.6724648,-0.006 c 0.073327,0.35077 0.1797598,0.70243 0.3242851,1.04472 0.1452428,0.34448 0.3214064,0.6644 0.5227339,0.96066 l -1.1993431,1.19723 1.5840256,1.56011 1.1964668,-1.19348 c 0.6140517,0.40346 1.3028827,0.68232 2.0233517,0.82331 l 7.19e-4,1.69892 h 2.226848 z m 0.221462,-3.9957 c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_SERVICE_FILL:{d:"m {mx},{my} c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_BUSINESS_RULE_HEADER:{d:"m {mx},{my} 0,4 20,0 0,-4 z"},TASK_TYPE_BUSINESS_RULE_MAIN:{d:"m {mx},{my} 0,12 20,0 0,-12 zm 0,8 l 20,0 m -13,-4 l 0,8"},MESSAGE_FLOW_MARKER:{d:"m {mx},{my} m -10.5 ,-7 l 0,14 l 21,0 l 0,-14 z l 10.5,6 l 10.5,-6"}},this.getRawPath=function(n){return this.pathMap[n].d},this.getScaledPath=function(n,i){var a=this.pathMap[n],s,c;i.abspos?(s=i.abspos.x,c=i.abspos.y):(s=i.containerWidth*i.position.mx,c=i.containerHeight*i.position.my);var p={};if(i.position){for(var m=i.containerHeight/a.height*i.yScaleFactor,g=i.containerWidth/a.width*i.xScaleFactor,y=0;y<a.heightElements.length;y++)p["y"+y]=a.heightElements[y]*m;for(var O=0;O<a.widthElements.length;O++)p["x"+O]=a.widthElements[O]*g}var E=sQ(a.d,{mx:s,my:c,e:p});return E}}var rQ=/\{([^{}]+)\}/g,aQ=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g;function oQ(e,n,i){var a=i;return n.replace(aQ,function(s,c,p,m,g){c=c||m,a&&(c in a&&(a=a[c]),typeof a=="function"&&g&&(a=a()))}),a=(a==null||a==i?e:a)+"",a}function sQ(e,n){return String(e).replace(rQ,function(i,a){return oQ(i,a,n)})}const lQ={__init__:["bpmnRenderer"],bpmnRenderer:["type",ws],textRenderer:["type",nS],pathMap:["type",iQ]};function cQ(e,n){return n=n||{},e.replace(/{([^}]+)}/g,function(i,a){return n[a]||"{"+a+"}"})}const iS={translate:["value",cQ]};function uQ(e){return{x:Math.round(e.x),y:Math.round(e.y)}}function d0(e){return{top:e.y,right:e.x+(e.width||0),bottom:e.y+(e.height||0),left:e.x}}function dQ(e){return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}function fQ(e){return uQ({x:e.x+(e.width||0)/2,y:e.y+(e.height||0)/2})}function pQ(e){for(var n=e.waypoints,i=n.reduce(function(y,O,E){var N=n[E-1];if(N){var _=y[y.length-1],S=_&&_.endLength||0,M=hQ(N,O);y.push({start:N,end:O,startLength:S,endLength:S+M,length:M})}return y},[]),a=i.reduce(function(y,O){return y+O.length},0),s=a/2,c=0,p=i[c];p.endLength<s;)p=i[++c];var m=(s-p.startLength)/p.length,g={x:p.start.x+(p.end.x-p.start.x)*m,y:p.start.y+(p.end.y-p.start.y)*m};return g}function f0(e){return zL(e)?pQ(e):fQ(e)}function hQ(e,n){return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function Nn(e){return e?"<"+e.$type+(e.id?' id="'+e.id:"")+'" />':"<null>"}function Wh(e,n,i){return Je({id:e.id,type:e.$type,businessObject:e,di:n},i)}function mQ(e,n,i){var a=e.waypoint;return!a||a.length<2?[f0(n),f0(i)]:a.map(function(s){return{x:s.x,y:s.y}})}function rS(e,n,i){return new Error(`element ${Nn(n)} referenced by ${Nn(e)}#${i} not yet drawn`)}function Ea(e,n,i,a,s){this._eventBus=e,this._canvas=n,this._elementFactory=i,this._elementRegistry=a,this._textRenderer=s}Ea.$inject=["eventBus","canvas","elementFactory","elementRegistry","textRenderer"],Ea.prototype.add=function(e,n,i){var a,s,c;if(Ge(n,"bpmndi:BPMNPlane")){var p=Ge(e,"bpmn:SubProcess")?{id:e.id+"_plane"}:{};a=this._elementFactory.createRoot(Wh(e,n,p)),this._canvas.addRootElement(a)}else if(Ge(n,"bpmndi:BPMNShape")){var m=!bs(e,n),g=AQ(e);s=i&&(i.hidden||i.collapsed);var y=n.bounds;a=this._elementFactory.createShape(Wh(e,n,{collapsed:m,hidden:s,x:Math.round(y.x),y:Math.round(y.y),width:Math.round(y.width),height:Math.round(y.height),isFrame:g})),Ge(e,"bpmn:BoundaryEvent")&&this._attachBoundary(e,a),Ge(e,"bpmn:Lane")&&(c=0),Ge(e,"bpmn:DataStoreReference")&&(gQ(i,f0(y))||(i=this._canvas.findRoot(i))),this._canvas.addShape(a,i,c)}else if(Ge(n,"bpmndi:BPMNEdge")){var O=this._getSource(e),E=this._getTarget(e);s=i&&(i.hidden||i.collapsed),a=this._elementFactory.createConnection(Wh(e,n,{hidden:s,source:O,target:E,waypoints:mQ(n,O,E)})),Ge(e,"bpmn:DataAssociation")&&(i=this._canvas.findRoot(i)),this._canvas.addConnection(a,i,c)}else throw new Error(`unknown di ${Nn(n)} for element ${Nn(e)}`);return QL(e)&&jh(a)&&this.addLabel(e,n,a),this._eventBus.fire("bpmnElement.added",{element:a}),a},Ea.prototype._attachBoundary=function(e,n){var i=e.attachedToRef;if(!i)throw new Error(`missing ${Nn(e)}#attachedToRef`);var a=this._elementRegistry.get(i.id),s=a&&a.attachers;if(!a)throw rS(e,i,"attachedToRef");n.host=a,s||(a.attachers=s=[]),s.indexOf(n)===-1&&s.push(n)},Ea.prototype.addLabel=function(e,n,i){var a,s,c;return a=YL(n,i),s=jh(i),s&&(a=this._textRenderer.getExternalLabelBounds(a,s)),c=this._elementFactory.createLabel(Wh(e,n,{id:e.id+"_label",labelTarget:i,type:"label",hidden:i.hidden||!jh(i),x:Math.round(a.x),y:Math.round(a.y),width:Math.round(a.width),height:Math.round(a.height)})),this._canvas.addShape(c,i.parent)},Ea.prototype._getConnectedElement=function(e,n){var i,a,s=e.$type;if(a=e[n+"Ref"],n==="source"&&s==="bpmn:DataInputAssociation"&&(a=a&&a[0]),(n==="source"&&s==="bpmn:DataOutputAssociation"||n==="target"&&s==="bpmn:DataInputAssociation")&&(a=e.$parent),i=a&&this._getElement(a),i)return i;throw a?rS(e,a,n+"Ref"):new Error(`${Nn(e)}#${n} Ref not specified`)},Ea.prototype._getSource=function(e){return this._getConnectedElement(e,"source")},Ea.prototype._getTarget=function(e){return this._getConnectedElement(e,"target")},Ea.prototype._getElement=function(e){return this._elementRegistry.get(e.id)};function gQ(e,n){var i=n.x,a=n.y;return i>=e.x&&i<=e.x+e.width&&a>=e.y&&a<=e.y+e.height}function AQ(e){return Ge(e,"bpmn:Group")}const vQ={__depends__:[lQ,{__depends__:[iS],bpmnImporter:["type",Ea]}]};function xd(e,n){n=!!n,Cr(e)||(e=[e]);var i,a,s,c;return We(e,function(p){var m=p;p.waypoints&&!n&&(m=xd(p.waypoints,!0));var g=m.x,y=m.y,O=m.height||0,E=m.width||0;(g<i||i===void 0)&&(i=g),(y<a||a===void 0)&&(a=y),(g+E>s||s===void 0)&&(s=g+E),(y+O>c||c===void 0)&&(c=y+O)}),{x:i,y:a,height:c-a,width:s-i}}function aS(e){return"waypoints"in e?"connection":"x"in e?"shape":"root"}function oS(e){return!!(e&&e.isFrame)}function p0(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(Math.random()*1e9)+"-"}p0.prototype.next=function(){return this._prefix+ ++this._counter};var bQ=new p0("ov"),_Q=500;function xn(e,n,i,a){this._eventBus=n,this._canvas=i,this._elementRegistry=a,this._ids=bQ,this._overlayDefaults=Je({show:null,scale:!0},e&&e.defaults),this._overlays={},this._overlayContainers=[],this._overlayRoot=yQ(i.getContainer()),this._init()}xn.$inject=["config.overlays","eventBus","canvas","elementRegistry"],xn.prototype.get=function(e){if(kr(e)&&(e={id:e}),kr(e.element)&&(e.element=this._elementRegistry.get(e.element)),e.element){var n=this._getOverlayContainer(e.element,!0);return n?e.type?ql(n.overlays,F6({type:e.type})):n.overlays.slice():[]}else return e.type?ql(this._overlays,F6({type:e.type})):e.id?this._overlays[e.id]:null},xn.prototype.add=function(e,n,i){if(gs(n)&&(i=n,n=null),e.id||(e=this._elementRegistry.get(e)),!i.position)throw new Error("must specifiy overlay position");if(!i.html)throw new Error("must specifiy overlay html");if(!e)throw new Error("invalid element specified");var a=this._ids.next();return i=Je({},this._overlayDefaults,i,{id:a,type:n,element:e,html:i.html}),this._addOverlay(i),a},xn.prototype.remove=function(e){var n=this.get(e)||[];Cr(n)||(n=[n]);var i=this;We(n,function(a){var s=i._getOverlayContainer(a.element,!0);if(a&&(nc(a.html),nc(a.htmlContainer),delete a.htmlContainer,delete a.element,delete i._overlays[a.id]),s){var c=s.overlays.indexOf(a);c!==-1&&s.overlays.splice(c,1)}})},xn.prototype.isShown=function(){return this._overlayRoot.style.display!=="none"},xn.prototype.show=function(){Gh(this._overlayRoot)},xn.prototype.hide=function(){Gh(this._overlayRoot,!1)},xn.prototype.clear=function(){this._overlays={},this._overlayContainers=[],K6(this._overlayRoot)},xn.prototype._updateOverlayContainer=function(e){var n=e.element,i=e.html,a=n.x,s=n.y;if(n.waypoints){var c=xd(n);a=c.x,s=c.y}sS(i,a,s),s0(e.html,"data-container-id",n.id)},xn.prototype._updateOverlay=function(e){var n=e.position,i=e.htmlContainer,a=e.element,s=n.left,c=n.top;if(n.right!==void 0){var p;a.waypoints?p=xd(a).width:p=a.width,s=n.right*-1+p}if(n.bottom!==void 0){var m;a.waypoints?m=xd(a).height:m=a.height,c=n.bottom*-1+m}sS(i,s||0,c||0),this._updateOverlayVisibilty(e,this._canvas.viewbox())},xn.prototype._createOverlayContainer=function(e){var n=Li('<div class="djs-overlays" />');Tn(n,{position:"absolute"}),this._overlayRoot.appendChild(n);var i={html:n,element:e,overlays:[]};return this._updateOverlayContainer(i),this._overlayContainers.push(i),i},xn.prototype._updateRoot=function(e){var n=e.scale||1,i="matrix("+[n,0,0,n,-1*e.x*n,-1*e.y*n].join(",")+")";lS(this._overlayRoot,i)},xn.prototype._getOverlayContainer=function(e,n){var i=Sr(this._overlayContainers,function(a){return a.element===e});return!i&&!n?this._createOverlayContainer(e):i},xn.prototype._addOverlay=function(e){var n=e.id,i=e.element,a=e.html,s,c;a.get&&a.constructor.prototype.jquery&&(a=a.get(0)),kr(a)&&(a=Li(a)),c=this._getOverlayContainer(i),s=Li('<div class="djs-overlay" data-overlay-id="'+n+'">'),Tn(s,{position:"absolute"}),s.appendChild(a),e.type&&ys(s).add("djs-overlay-"+e.type);var p=this._canvas.findRoot(i),m=this._canvas.getRootElement();Gh(s,p===m),e.htmlContainer=s,c.overlays.push(e),c.html.appendChild(s),this._overlays[n]=e,this._updateOverlay(e),this._updateOverlayVisibilty(e,this._canvas.viewbox())},xn.prototype._updateOverlayVisibilty=function(e,n){var i=e.show,a=this._canvas.findRoot(e.element),s=i&&i.minZoom,c=i&&i.maxZoom,p=e.htmlContainer,m=this._canvas.getRootElement(),g=!0;(a!==m||i&&(Zl(s)&&s>n.scale||Zl(c)&&c<n.scale))&&(g=!1),Gh(p,g),this._updateOverlayScale(e,n)},xn.prototype._updateOverlayScale=function(e,n){var i=e.scale,a,s,c=e.htmlContainer,p,m="";i!==!0&&(i===!1?(a=1,s=1):(a=i.min,s=i.max),Zl(a)&&n.scale<a&&(p=(1/n.scale||1)*a),Zl(s)&&n.scale>s&&(p=(1/n.scale||1)*s)),Zl(p)&&(m="scale("+p+","+p+")"),lS(c,m)},xn.prototype._updateOverlaysVisibilty=function(e){var n=this;We(this._overlays,function(i){n._updateOverlayVisibilty(i,e)})},xn.prototype._init=function(){var e=this._eventBus,n=this;function i(a){n._updateRoot(a),n._updateOverlaysVisibilty(a),n.show()}e.on("canvas.viewbox.changing",function(a){n.hide()}),e.on("canvas.viewbox.changed",function(a){i(a.viewbox)}),e.on(["shape.remove","connection.remove"],function(a){var s=a.element,c=n.get({element:s});We(c,function(g){n.remove(g.id)});var p=n._getOverlayContainer(s);if(p){nc(p.html);var m=n._overlayContainers.indexOf(p);m!==-1&&n._overlayContainers.splice(m,1)}}),e.on("element.changed",_Q,function(a){var s=a.element,c=n._getOverlayContainer(s,!0);c&&(We(c.overlays,function(p){n._updateOverlay(p)}),n._updateOverlayContainer(c))}),e.on("element.marker.update",function(a){var s=n._getOverlayContainer(a.element,!0);s&&ys(s.html)[a.add?"add":"remove"](a.marker)}),e.on("root.set",function(){n._updateOverlaysVisibilty(n._canvas.viewbox())}),e.on("diagram.clear",this.clear,this)};function yQ(e){var n=Li('<div class="djs-overlay-container" />');return Tn(n,{position:"absolute",width:0,height:0}),e.insertBefore(n,e.firstChild),n}function sS(e,n,i){Tn(e,{left:n+"px",top:i+"px"})}function Gh(e,n){e.style.display=n===!1?"none":""}function lS(e,n){e.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach(function(i){e.style[i+"transform"]=n})}const cS={__init__:["overlays"],overlays:["type",xn]};function uS(e,n,i,a){e.on("element.changed",function(s){var c=s.element;(c.parent||c===n.getRootElement())&&(s.gfx=i.getGraphics(c)),s.gfx&&e.fire(aS(c)+".changed",s)}),e.on("elements.changed",function(s){var c=s.elements;c.forEach(function(p){e.fire("element.changed",{element:p})}),a.updateContainments(c)}),e.on("shape.changed",function(s){a.update("shape",s.element,s.gfx)}),e.on("connection.changed",function(s){a.update("connection",s.element,s.gfx)})}uS.$inject=["eventBus","canvas","elementRegistry","graphicsFactory"];const xQ={__init__:["changeSupport"],changeSupport:["type",uS]};var wQ=1e3;function $n(e){this._eventBus=e}$n.$inject=["eventBus"];function EQ(e,n){return function(i){return e.call(n||null,i.context,i.command,i)}}$n.prototype.on=function(e,n,i,a,s,c){if((As(n)||no(n))&&(c=s,s=a,a=i,i=n,n=null),As(i)&&(c=s,s=a,a=i,i=wQ),gs(s)&&(c=s,s=!1),!As(a))throw new Error("handlerFn must be a function");Cr(e)||(e=[e]);var p=this._eventBus;We(e,function(m){var g=["commandStack",m,n].filter(function(y){return y}).join(".");p.on(g,i,s?EQ(a,c):a,c)})},$n.prototype.canExecute=Ca("canExecute"),$n.prototype.preExecute=Ca("preExecute"),$n.prototype.preExecuted=Ca("preExecuted"),$n.prototype.execute=Ca("execute"),$n.prototype.executed=Ca("executed"),$n.prototype.postExecute=Ca("postExecute"),$n.prototype.postExecuted=Ca("postExecuted"),$n.prototype.revert=Ca("revert"),$n.prototype.reverted=Ca("reverted");function Ca(e){return function(i,a,s,c,p){(As(i)||no(i))&&(p=c,c=s,s=a,a=i,i=null),this.on(i,e,a,s,c,p)}}function h0(e,n){n.invoke($n,this),this.executed(function(i){var a=i.context;a.rootElement?e.setRootElement(a.rootElement):a.rootElement=e.getRootElement()}),this.revert(function(i){var a=i.context;a.rootElement&&e.setRootElement(a.rootElement)})}Gr(h0,$n),h0.$inject=["canvas","injector"];const CQ={__init__:["rootElementsBehavior"],rootElementsBehavior:["type",h0]};var kQ={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function SQ(e){return e=""+e,e&&e.replace(/[&<>"']/g,function(n){return kQ[n]})}var DQ="_plane";function m0(e){var n=e.id;return Ge(e,"bpmn:SubProcess")?IQ(n):n}function IQ(e){return e+DQ}var BQ="bjs-breadcrumbs-shown";function dS(e,n,i){var a=Li('<ul class="bjs-breadcrumbs"></ul>'),s=i.getContainer(),c=ys(s);s.appendChild(a);var p=[];e.on("element.changed",function(g){var y=g.element,O=Ut(y),E=Sr(p,function(N){return N===O});!E||m()});function m(g){g&&(p=OQ(g));var y=p.flatMap(function(E){var N=i.findRoot(m0(E))||i.findRoot(E.id);if(!N&&Ge(E,"bpmn:Process")){var _=n.find(function(P){var T=Ut(P);return T&&T.get("processRef")===E});N=_&&i.findRoot(_.id)}if(!N)return[];var S=SQ(E.name||E.id),M=Li('<li><span class="bjs-crumb"><a title="'+S+'">'+S+"</a></span></li>");return M.addEventListener("click",function(){i.setRootElement(N)}),M});a.innerHTML="";var O=y.length>1;c.toggle(BQ,O),y.forEach(function(E){a.appendChild(E)})}e.on("root.set",function(g){m(g.element)})}dS.$inject=["eventBus","elementRegistry","canvas"];function OQ(e){for(var n=Ut(e),i=[],a=n;a;a=a.$parent)(Ge(a,"bpmn:SubProcess")||Ge(a,"bpmn:Process"))&&i.push(a);return i.reverse()}function fS(e,n){var i=null,a=new TQ;e.on("root.set",function(s){var c=s.element,p=n.viewbox(),m=a.get(c);if(a.set(i,{x:p.x,y:p.y,zoom:p.scale}),i=c,!(!Ge(c,"bpmn:SubProcess")&&!m)){m=m||{x:0,y:0,zoom:1};var g=(p.x-m.x)*p.scale,y=(p.y-m.y)*p.scale;(g!==0||y!==0)&&n.scroll({dx:g,dy:y}),m.zoom!==p.scale&&n.zoom(m.zoom,{x:0,y:0})}}),e.on("diagram.clear",function(){a.clear(),i=null})}fS.$inject=["eventBus","canvas"];function TQ(){this._entries=[],this.set=function(e,n){var i=!1;for(var a in this._entries)if(this._entries[a][0]===e){this._entries[a][1]=n,i=!0;break}i||this._entries.push([e,n])},this.get=function(e){for(var n in this._entries)if(this._entries[n][0]===e)return this._entries[n][1];return null},this.clear=function(){this._entries.length=0},this.remove=function(e){var n=-1;for(var i in this._entries)if(this._entries[i][0]===e){n=i;break}n!==-1&&this._entries.splice(n,1)}}var pS={x:180,y:160};function Es(e,n){this._eventBus=e,this._moddle=n;var i=this;e.on("import.render.start",1500,function(a,s){i._handleImport(s.definitions)})}Es.prototype._handleImport=function(e){if(!!e.diagrams){var n=this;this._definitions=e,this._processToDiagramMap={},e.diagrams.forEach(function(a){!a.plane||!a.plane.bpmnElement||(n._processToDiagramMap[a.plane.bpmnElement.id]=a)});var i=e.diagrams.filter(a=>a.plane).flatMap(a=>n._createNewDiagrams(a.plane));i.forEach(function(a){n._movePlaneElementsToOrigin(a.plane)})}},Es.prototype._createNewDiagrams=function(e){var n=this,i=[],a=[];e.get("planeElement").forEach(function(c){var p=c.bpmnElement;if(!!p){var m=p.$parent;Ge(p,"bpmn:SubProcess")&&!c.isExpanded&&i.push(p),MQ(p,e)&&a.push({diElement:c,parent:m})}});var s=[];return i.forEach(function(c){if(!n._processToDiagramMap[c.id]){var p=n._createDiagram(c);n._processToDiagramMap[c.id]=p,s.push(p)}}),a.forEach(function(c){for(var p=c.diElement,m=c.parent;m&&i.indexOf(m)===-1;)m=m.$parent;if(!!m){var g=n._processToDiagramMap[m.id];n._moveToDiPlane(p,g.plane)}}),s},Es.prototype._movePlaneElementsToOrigin=function(e){var n=e.get("planeElement"),i=NQ(e),a={x:i.x-pS.x,y:i.y-pS.y};n.forEach(function(s){s.waypoint?s.waypoint.forEach(function(c){c.x=c.x-a.x,c.y=c.y-a.y}):s.bounds&&(s.bounds.x=s.bounds.x-a.x,s.bounds.y=s.bounds.y-a.y)})},Es.prototype._moveToDiPlane=function(e,n){var i=hS(e),a=i.plane.get("planeElement");a.splice(a.indexOf(e),1),n.get("planeElement").push(e)},Es.prototype._createDiagram=function(e){var n=this._moddle.create("bpmndi:BPMNPlane",{bpmnElement:e}),i=this._moddle.create("bpmndi:BPMNDiagram",{plane:n});return n.$parent=i,n.bpmnElement=e,i.$parent=this._definitions,this._definitions.diagrams.push(i),i},Es.$inject=["eventBus","moddle"];function hS(e){return Ge(e,"bpmndi:BPMNDiagram")?e:hS(e.$parent)}function NQ(e){var n={top:1/0,right:-1/0,bottom:-1/0,left:1/0};return e.planeElement.forEach(function(i){if(!!i.bounds){var a=d0(i.bounds);n.top=Math.min(a.top,n.top),n.left=Math.min(a.left,n.left)}}),dQ(n)}function MQ(e,n){var i=e.$parent;return!(!Ge(i,"bpmn:SubProcess")||i===n.bpmnElement||jL(e,["bpmn:DataInputAssociation","bpmn:DataOutputAssociation"]))}var Jh=250,FQ='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4.81801948,3.50735931 L10.4996894,9.1896894 L10.5,4 L12,4 L12,12 L4,12 L4,10.5 L9.6896894,10.4996894 L3.75735931,4.56801948 C3.46446609,4.27512627 3.46446609,3.80025253 3.75735931,3.50735931 C4.05025253,3.21446609 4.52512627,3.21446609 4.81801948,3.50735931 Z"/></svg>',PQ="bjs-drilldown-empty";function oo(e,n,i,a,s){$n.call(this,n),this._canvas=e,this._eventBus=n,this._elementRegistry=i,this._overlays=a,this._translate=s;var c=this;this.executed("shape.toggleCollapse",Jh,function(p){var m=p.shape;c._canDrillDown(m)?c._addOverlay(m):c._removeOverlay(m)},!0),this.reverted("shape.toggleCollapse",Jh,function(p){var m=p.shape;c._canDrillDown(m)?c._addOverlay(m):c._removeOverlay(m)},!0),this.executed(["shape.create","shape.move","shape.delete"],Jh,function(p){var m=p.oldParent,g=p.newParent||p.parent,y=p.shape;c._canDrillDown(y)&&c._addOverlay(y),c._updateDrilldownOverlay(m),c._updateDrilldownOverlay(g),c._updateDrilldownOverlay(y)},!0),this.reverted(["shape.create","shape.move","shape.delete"],Jh,function(p){var m=p.oldParent,g=p.newParent||p.parent,y=p.shape;c._canDrillDown(y)&&c._addOverlay(y),c._updateDrilldownOverlay(m),c._updateDrilldownOverlay(g),c._updateDrilldownOverlay(y)},!0),n.on("import.render.complete",function(){i.filter(function(p){return c._canDrillDown(p)}).map(function(p){c._addOverlay(p)})})}Gr(oo,$n),oo.prototype._updateDrilldownOverlay=function(e){var n=this._canvas;if(!!e){var i=n.findRoot(e);i&&this._updateOverlayVisibility(i)}},oo.prototype._canDrillDown=function(e){var n=this._canvas;return Ge(e,"bpmn:SubProcess")&&n.findRoot(m0(e))},oo.prototype._updateOverlayVisibility=function(e){var n=this._overlays,i=Ut(e),a=n.get({element:i.id,type:"drilldown"})[0];if(!!a){var s=i&&i.get("flowElements")&&i.get("flowElements").length;ys(a.html).toggle(PQ,!s)}},oo.prototype._addOverlay=function(e){var n=this._canvas,i=this._overlays,a=Ut(e),s=i.get({element:e,type:"drilldown"});s.length&&this._removeOverlay(e);var c=Li('<button type="button" class="bjs-drilldown">'+FQ+"</button>"),p=a.get("name")||a.get("id"),m=this._translate("Open {element}",{element:p});c.setAttribute("title",m),c.addEventListener("click",function(){n.setRootElement(n.findRoot(m0(e)))}),i.add(e,"drilldown",{position:{bottom:-7,right:-8},html:c}),this._updateOverlayVisibility(e)},oo.prototype._removeOverlay=function(e){var n=this._overlays;n.remove({element:e,type:"drilldown"})},oo.$inject=["canvas","eventBus","elementRegistry","overlays","translate"];const RQ={__depends__:[cS,xQ,CQ],__init__:["drilldownBreadcrumbs","drilldownOverlayBehavior","drilldownCentering","subprocessCompatibility"],drilldownBreadcrumbs:["type",dS],drilldownCentering:["type",fS],drilldownOverlayBehavior:["type",oo],subprocessCompatibility:["type",Es]};function mS(e){return e.originalEvent||e.srcEvent}function gS(e){return e.pointers&&e.pointers.length&&(e=e.pointers[0]),e.touches&&e.touches.length&&(e=e.touches[0]),e?{x:e.clientX,y:e.clientY}:null}function AS(e,n){return(mS(e)||e).button===n}function Kh(e){return AS(e,0)}function jQ(e){return AS(e,1)}function LQ(e){var n=mS(e)||e;return Kh(e)&&n.shiftKey}function zQ(e){return!0}function Xh(e){return Kh(e)||jQ(e)}var vS=500;function bS(e,n,i){var a=this;function s(H,ee,ne){if(!m(H,ee)){var se,me,pe;ne?me=n.getGraphics(ne):(se=ee.delegateTarget||ee.target,se&&(me=se,ne=n.get(me))),!(!me||!ne)&&(pe=e.fire(H,{element:ne,gfx:me,originalEvent:ee}),pe===!1&&(ee.stopPropagation(),ee.preventDefault()))}}var c={};function p(H){return c[H]}function m(H,ee){var ne=y[H]||Kh;return!ne(ee)}var g={click:"element.click",contextmenu:"element.contextmenu",dblclick:"element.dblclick",mousedown:"element.mousedown",mousemove:"element.mousemove",mouseover:"element.hover",mouseout:"element.out",mouseup:"element.mouseup"},y={"element.contextmenu":zQ,"element.mousedown":Xh,"element.mouseup":Xh,"element.click":Xh,"element.dblclick":Xh};function O(H,ee,ne){var se=g[H];if(!se)throw new Error("unmapped DOM event name <"+H+">");return s(se,ee,ne)}var E="svg, .djs-element";function N(H,ee,ne,se){var me=c[ne]=function(pe){s(ne,pe)};se&&(y[ne]=se),me.$delegate=tc.bind(H,E,ee,me)}function _(H,ee,ne){var se=p(ne);!se||tc.unbind(H,ee,se.$delegate)}function S(H){We(g,function(ee,ne){N(H,ne,ee)})}function M(H){We(g,function(ee,ne){_(H,ne,ee)})}e.on("canvas.destroy",function(H){M(H.svg)}),e.on("canvas.init",function(H){S(H.svg)}),e.on(["shape.added","connection.added"],function(H){var ee=H.element,ne=H.gfx;e.fire("interactionEvents.createHit",{element:ee,gfx:ne})}),e.on(["shape.changed","connection.changed"],vS,function(H){var ee=H.element,ne=H.gfx;e.fire("interactionEvents.updateHit",{element:ee,gfx:ne})}),e.on("interactionEvents.createHit",vS,function(H){var ee=H.element,ne=H.gfx;a.createDefaultHit(ee,ne)}),e.on("interactionEvents.updateHit",function(H){var ee=H.element,ne=H.gfx;a.updateDefaultHit(ee,ne)});var P=B("djs-hit djs-hit-stroke"),T=B("djs-hit djs-hit-click-stroke"),R=B("djs-hit djs-hit-all"),b=B("djs-hit djs-hit-no-move"),w={all:R,"click-stroke":T,stroke:P,"no-move":b};function B(H,ee){return ee=Je({stroke:"white",strokeWidth:15},ee||{}),i.cls(H,["no-fill","no-border"],ee)}function Q(H,ee){var ne=w[ee];if(!ne)throw new Error("invalid hit type <"+ee+">");return Pt(H,ne),H}function F(H,ee){yn(H,ee)}this.removeHits=function(H){var ee=Mz(".djs-hit",H);We(ee,vd)},this.createDefaultHit=function(H,ee){var ne=H.waypoints,se=H.isFrame,me;return ne?this.createWaypointsHit(ee,ne):(me=se?"stroke":"all",this.createBoxHit(ee,me,{width:H.width,height:H.height}))},this.createWaypointsHit=function(H,ee){var ne=a0(ee);return Q(ne,"stroke"),F(H,ne),ne},this.createBoxHit=function(H,ee,ne){ne=Je({x:0,y:0},ne);var se=Rt("rect");return Q(se,ee),Pt(se,ne),F(H,se),se},this.updateDefaultHit=function(H,ee){var ne=xa(".djs-hit",ee);if(!!ne)return H.waypoints?G6(ne,H.waypoints):Pt(ne,{width:H.width,height:H.height}),ne},this.fire=s,this.triggerMouseEvent=O,this.mouseHandler=p,this.registerEvent=N,this.unregisterEvent=_}bS.$inject=["eventBus","elementRegistry","styles"];const QQ={__init__:["interactionEvents"],interactionEvents:["type",bS]};function rc(e,n){this._eventBus=e,this._canvas=n,this._selectedElements=[];var i=this;e.on(["shape.remove","connection.remove"],function(a){var s=a.element;i.deselect(s)}),e.on(["diagram.clear","root.set"],function(a){i.select(null)})}rc.$inject=["eventBus","canvas"],rc.prototype.deselect=function(e){var n=this._selectedElements,i=n.indexOf(e);if(i!==-1){var a=n.slice();n.splice(i,1),this._eventBus.fire("selection.changed",{oldSelection:a,newSelection:n})}},rc.prototype.get=function(){return this._selectedElements},rc.prototype.isSelected=function(e){return this._selectedElements.indexOf(e)!==-1},rc.prototype.select=function(e,n){var i=this._selectedElements,a=i.slice();Cr(e)||(e=e?[e]:[]);var s=this._canvas,c=s.getRootElement();e=e.filter(function(p){var m=s.findRoot(p);return c===m}),n?We(e,function(p){i.indexOf(p)===-1&&i.push(p)}):this._selectedElements=i=e.slice(),this._eventBus.fire("selection.changed",{oldSelection:a,newSelection:i})};var _S="hover",yS="selected";function xS(e,n){this._canvas=e;function i(s,c){e.addMarker(s,c)}function a(s,c){e.removeMarker(s,c)}n.on("element.hover",function(s){i(s.element,_S)}),n.on("element.out",function(s){a(s.element,_S)}),n.on("selection.changed",function(s){function c(y){a(y,yS)}function p(y){i(y,yS)}var m=s.oldSelection,g=s.newSelection;We(m,function(y){g.indexOf(y)===-1&&c(y)}),We(g,function(y){m.indexOf(y)===-1&&p(y)})})}xS.$inject=["canvas","eventBus"];function wS(e,n,i,a){e.on("create.end",500,function(s){var c=s.context,p=c.canExecute,m=c.elements,g=c.hints||{},y=g.autoSelect;if(p){if(y===!1)return;Cr(y)?n.select(y):n.select(m.filter(HQ))}}),e.on("connect.end",500,function(s){var c=s.context,p=c.connection;p&&n.select(p)}),e.on("shape.move.end",500,function(s){var c=s.previousSelection||[],p=a.get(s.context.shape.id),m=Sr(c,function(g){return p.id===g.id});m||n.select(p)}),e.on("element.click",function(s){if(!!Kh(s)){var c=s.element;c===i.getRootElement()&&(c=null);var p=n.isSelected(c),m=n.get().length>1,g=LQ(s);if(p&&m)return g?n.deselect(c):n.select(c);p?n.deselect(c):n.select(c,g)}})}wS.$inject=["eventBus","selection","canvas","elementRegistry"];function HQ(e){return!e.hidden}const VQ={__init__:["selectionVisuals","selectionBehavior"],__depends__:[QQ],selection:["type",rc],selectionVisuals:["type",xS],selectionBehavior:["type",wS]},UQ=/^class[ {]/;function YQ(e){return UQ.test(e.toString())}function g0(e){return Array.isArray(e)}function A0(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function Zh(...e){e.length===1&&g0(e[0])&&(e=e[0]),e=[...e];const n=e.pop();return n.$inject=e,n}const WQ=/constructor\s*[^(]*\(\s*([^)]*)\)/m,GQ=/^(?:async\s+)?(?:function\s*[^(]*)?(?:\(\s*([^)]*)\)|(\w+))/m,JQ=/\/\*([^*]*)\*\//m;function KQ(e){if(typeof e!="function")throw new Error(`Cannot annotate "${e}". Expected a function!`);const n=e.toString().match(YQ(e)?WQ:GQ);if(!n)return[];const i=n[1]||n[2];return i&&i.split(",").map(a=>{const s=a.match(JQ);return(s&&s[1]||a).trim()})||[]}function ES(e,n){const i=n||{get:function(b,w){if(a.push(b),w===!1)return null;throw m(`No provider for "${b}"!`)}},a=[],s=this._providers=Object.create(i._providers||null),c=this._instances=Object.create(null),p=c.injector=this,m=function(b){const w=a.join(" -> ");return a.length=0,new Error(w?`${b} (Resolving: ${w})`:b)};function g(b,w){if(!s[b]&&b.includes(".")){const B=b.split(".");let Q=g(B.shift());for(;B.length;)Q=Q[B.shift()];return Q}if(A0(c,b))return c[b];if(A0(s,b)){if(a.indexOf(b)!==-1)throw a.push(b),m("Cannot resolve circular dependency!");return a.push(b),c[b]=s[b][0](s[b][1]),a.pop(),c[b]}return i.get(b,w)}function y(b,w){if(typeof w>"u"&&(w={}),typeof b!="function")if(g0(b))b=Zh(b.slice());else throw m(`Cannot invoke "${b}". Expected a function!`);const Q=(b.$inject||KQ(b)).map(F=>A0(w,F)?w[F]:g(F));return{fn:b,dependencies:Q}}function O(b){const{fn:w,dependencies:B}=y(b),Q=Function.prototype.bind.call(w,null,...B);return new Q}function E(b,w,B){const{fn:Q,dependencies:F}=y(b,B);return Q.apply(w,F)}function N(b){return Zh(w=>b.get(w))}function _(b,w){if(w&&w.length){const B=Object.create(null),Q=Object.create(null),F=[],H=[],ee=[];let ne,se,me,pe;for(let Se in s)ne=s[Se],w.indexOf(Se)!==-1&&(ne[2]==="private"?(se=F.indexOf(ne[3]),se===-1?(me=ne[3].createChild([],w),pe=N(me),F.push(ne[3]),H.push(me),ee.push(pe),B[Se]=[pe,Se,"private",me]):B[Se]=[ee[se],Se,"private",H[se]]):B[Se]=[ne[2],ne[1]],Q[Se]=!0),(ne[2]==="factory"||ne[2]==="type")&&ne[1].$scope&&w.forEach(ye=>{ne[1].$scope.indexOf(ye)!==-1&&(B[Se]=[ne[2],ne[1]],Q[ye]=!0)});w.forEach(Se=>{if(!Q[Se])throw new Error('No provider for "'+Se+'". Cannot use provider from the parent!')}),b.unshift(B)}return new ES(b,p)}const S={factory:E,type:O,value:function(b){return b}};function M(b,w){const B=b.__init__||[];return function(){B.forEach(Q=>{typeof Q=="string"?w.get(Q):w.invoke(Q)})}}function P(b){const w=b.__exports__;if(w){const B=b.__modules__,Q=Object.keys(b).reduce((se,me)=>(me!=="__exports__"&&me!=="__modules__"&&me!=="__init__"&&me!=="__depends__"&&(se[me]=b[me]),se),Object.create(null)),F=(B||[]).concat(Q),H=_(F),ee=Zh(function(se){return H.get(se)});w.forEach(function(se){s[se]=[ee,se,"private",H]});const ne=(b.__init__||[]).slice();return ne.unshift(function(){H.init()}),b=Object.assign({},b,{__init__:ne}),M(b,H)}return Object.keys(b).forEach(function(B){if(B==="__init__"||B==="__depends__")return;const Q=b[B];if(Q[2]==="private"){s[B]=Q;return}const F=Q[0],H=Q[1];s[B]=[S[F],XQ(F,H),F]}),M(b,p)}function T(b,w){return b.indexOf(w)!==-1||(b=(w.__depends__||[]).reduce(T,b),b.indexOf(w)!==-1)?b:b.concat(w)}function R(b){const w=b.reduce(T,[]).map(P);let B=!1;return function(){B||(B=!0,w.forEach(Q=>Q()))}}this.get=g,this.invoke=E,this.instantiate=O,this.createChild=_,this.init=R(e)}function XQ(e,n){return e!=="value"&&g0(n)&&(n=Zh(n.slice())),n}var ZQ=1;function so(e,n){ya.call(this,e,ZQ),this.CONNECTION_STYLE=n.style(["no-fill"],{strokeWidth:5,stroke:"fuchsia"}),this.SHAPE_STYLE=n.style({fill:"white",stroke:"fuchsia",strokeWidth:2}),this.FRAME_STYLE=n.style(["no-fill"],{stroke:"fuchsia",strokeDasharray:4,strokeWidth:2})}Gr(so,ya),so.prototype.canRender=function(){return!0},so.prototype.drawShape=function(n,i,a){var s=Rt("rect");return Pt(s,{x:0,y:0,width:i.width||0,height:i.height||0}),oS(i)?Pt(s,Je({},this.FRAME_STYLE,a||{})):Pt(s,Je({},this.SHAPE_STYLE,a||{})),yn(n,s),s},so.prototype.drawConnection=function(n,i,a){var s=a0(i.waypoints,Je({},this.CONNECTION_STYLE,a||{}));return yn(n,s),s},so.prototype.getShapePath=function(n){var i=n.x,a=n.y,s=n.width,c=n.height,p=[["M",i,a],["l",s,0],["l",0,c],["l",-s,0],["z"]];return _s(p)},so.prototype.getConnectionPath=function(n){var i=n.waypoints,a,s,c=[];for(a=0;s=i[a];a++)s=s.original||s,c.push([a===0?"M":"L",s.x,s.y]);return _s(c)},so.$inject=["eventBus","styles"];function $Q(){var e={"no-fill":{fill:"none"},"no-border":{strokeOpacity:0},"no-events":{pointerEvents:"none"}},n=this;this.cls=function(i,a,s){var c=this.style(a,s);return Je(c,{class:i})},this.style=function(i,a){!Cr(i)&&!a&&(a=i,i=[]);var s=ec(i,function(c,p){return Je(c,e[p]||{})},{});return a?Je(s,a):s},this.computeStyle=function(i,a,s){return Cr(a)||(s=a,a=[]),n.style(a||[],Je({},s,i||{}))}}const qQ={__init__:["defaultRenderer"],defaultRenderer:["type",so],styles:["type",$Q]};function eH(e,n){if(!e||!n)return-1;var i=e.indexOf(n);return i!==-1&&e.splice(i,1),i}function tH(e,n,i){if(!(!e||!n)){typeof i!="number"&&(i=-1);var a=e.indexOf(n);if(a!==-1){if(a===i)return;if(i!==-1)e.splice(a,1);else return}i!==-1?e.splice(i,0,n):e.push(n)}}function $h(e,n){return Math.round(e*n)/n}function CS(e){return no(e)?e+"px":e}function nH(e){for(;e.parent;)e=e.parent;return e}function iH(e){e=Je({},{width:"100%",height:"100%"},e);const n=e.container||document.body,i=document.createElement("div");return i.setAttribute("class","djs-container djs-parent"),Tn(i,{position:"relative",overflow:"hidden",width:CS(e.width),height:CS(e.height)}),n.appendChild(i),i}function kS(e,n,i){const a=Rt("g");Jr(a).add(n);const s=i!==void 0?i:e.childNodes.length-1;return e.insertBefore(a,e.childNodes[s]||null),a}const rH="base",SS=0,aH=1,oH={shape:["x","y","width","height"],connection:["waypoints"]};function qe(e,n,i,a){this._eventBus=n,this._elementRegistry=a,this._graphicsFactory=i,this._rootsIdx=0,this._layers={},this._planes=[],this._rootElement=null,this._focused=!1,this._init(e||{})}qe.$inject=["config.canvas","eventBus","graphicsFactory","elementRegistry"],qe.prototype._init=function(e){const n=this._eventBus,i=this._container=iH(e),a=this._svg=Rt("svg");Pt(a,{width:"100%",height:"100%"}),s0(a,"tabindex",0),e.autoFocus&&n.on("element.hover",()=>{this.restoreFocus()}),n.on("element.mousedown",500,c=>{this.focus()}),a.addEventListener("focusin",()=>{this._setFocused(!0)}),a.addEventListener("focusout",()=>{this._setFocused(!1)}),yn(i,a);const s=this._viewport=kS(a,"viewport");e.deferUpdate&&(this._viewboxChanged=NL(io(this._viewboxChanged,this),300)),n.on("diagram.init",()=>{n.fire("canvas.init",{svg:a,viewport:s})}),n.on(["shape.added","connection.added","shape.removed","connection.removed","elements.changed","root.set"],()=>{delete this._cachedViewbox}),n.on("diagram.destroy",500,this._destroy,this),n.on("diagram.clear",500,this._clear,this)},qe.prototype._destroy=function(){this._eventBus.fire("canvas.destroy",{svg:this._svg,viewport:this._viewport});const e=this._container.parentNode;e&&e.removeChild(this._container),delete this._svg,delete this._container,delete this._layers,delete this._planes,delete this._rootElement,delete this._viewport},qe.prototype._setFocused=function(e){e!=this._focused&&(this._focused=e,this._eventBus.fire("canvas.focus.changed",{focused:e}))},qe.prototype._clear=function(){this._elementRegistry.getAll().forEach(n=>{const i=aS(n);i==="root"?this.removeRootElement(n):this._removeElement(n,i)}),this._planes=[],this._rootElement=null,delete this._cachedViewbox},qe.prototype.focus=function(){this._svg.focus({preventScroll:!0}),this._setFocused(!0)},qe.prototype.restoreFocus=function(){document.activeElement===document.body&&this.focus()},qe.prototype.isFocused=function(){return this._focused},qe.prototype.getDefaultLayer=function(){return this.getLayer(rH,SS)},qe.prototype.getLayer=function(e,n){if(!e)throw new Error("must specify a name");let i=this._layers[e];if(i||(i=this._layers[e]=this._createLayer(e,n)),typeof n<"u"&&i.index!==n)throw new Error("layer <"+e+"> already created at index <"+n+">");return i.group},qe.prototype._getChildIndex=function(e){return ec(this._layers,function(n,i){return i.visible&&e>=i.index&&n++,n},0)},qe.prototype._createLayer=function(e,n){typeof n>"u"&&(n=aH);const i=this._getChildIndex(n);return{group:kS(this._viewport,"layer-"+e,i),index:n,visible:!0}},qe.prototype.showLayer=function(e){if(!e)throw new Error("must specify a name");const n=this._layers[e];if(!n)throw new Error("layer <"+e+"> does not exist");const i=this._viewport,a=n.group,s=n.index;if(n.visible)return a;const c=this._getChildIndex(s);return i.insertBefore(a,i.childNodes[c]||null),n.visible=!0,a},qe.prototype.hideLayer=function(e){if(!e)throw new Error("must specify a name");const n=this._layers[e];if(!n)throw new Error("layer <"+e+"> does not exist");const i=n.group;return n.visible&&(vd(i),n.visible=!1),i},qe.prototype._removeLayer=function(e){const n=this._layers[e];n&&(delete this._layers[e],vd(n.group))},qe.prototype.getActiveLayer=function(){const e=this._findPlaneForRoot(this.getRootElement());return e?e.layer:null},qe.prototype.findRoot=function(e){return typeof e=="string"&&(e=this._elementRegistry.get(e)),e?(this._findPlaneForRoot(nH(e))||{}).rootElement:void 0},qe.prototype.getRootElements=function(){return this._planes.map(function(e){return e.rootElement})},qe.prototype._findPlaneForRoot=function(e){return Sr(this._planes,function(n){return n.rootElement===e})},qe.prototype.getContainer=function(){return this._container},qe.prototype._updateMarker=function(e,n,i){let a;e.id||(e=this._elementRegistry.get(e)),e.markers=e.markers||new Set,a=this._elementRegistry._elements[e.id],a&&(We([a.gfx,a.secondaryGfx],function(s){s&&(i?(e.markers.add(n),Jr(s).add(n)):(e.markers.delete(n),Jr(s).remove(n)))}),this._eventBus.fire("element.marker.update",{element:e,gfx:a.gfx,marker:n,add:!!i}))},qe.prototype.addMarker=function(e,n){this._updateMarker(e,n,!0)},qe.prototype.removeMarker=function(e,n){this._updateMarker(e,n,!1)},qe.prototype.hasMarker=function(e,n){return e.id||(e=this._elementRegistry.get(e)),e.markers?e.markers.has(n):!1},qe.prototype.toggleMarker=function(e,n){this.hasMarker(e,n)?this.removeMarker(e,n):this.addMarker(e,n)},qe.prototype.getRootElement=function(){const e=this._rootElement;return e||this._planes.length?e:this.setRootElement(this.addRootElement(null))},qe.prototype.addRootElement=function(e){const n=this._rootsIdx++;e||(e={id:"__implicitroot_"+n,children:[],isImplicit:!0});const i=e.layer="root-"+n;this._ensureValid("root",e);const a=this.getLayer(i,SS);return this.hideLayer(i),this._addRoot(e,a),this._planes.push({rootElement:e,layer:a}),e},qe.prototype.removeRootElement=function(e){if(typeof e=="string"&&(e=this._elementRegistry.get(e)),!!this._findPlaneForRoot(e))return this._removeRoot(e),this._removeLayer(e.layer),this._planes=this._planes.filter(function(i){return i.rootElement!==e}),this._rootElement===e&&(this._rootElement=null),e},qe.prototype.setRootElement=function(e){if(e===this._rootElement)return e;let n;if(!e)throw new Error("rootElement required");return n=this._findPlaneForRoot(e),n||(e=this.addRootElement(e)),this._setRoot(e),e},qe.prototype._removeRoot=function(e){const n=this._elementRegistry,i=this._eventBus;i.fire("root.remove",{element:e}),i.fire("root.removed",{element:e}),n.remove(e)},qe.prototype._addRoot=function(e,n){const i=this._elementRegistry,a=this._eventBus;a.fire("root.add",{element:e}),i.add(e,n),a.fire("root.added",{element:e,gfx:n})},qe.prototype._setRoot=function(e,n){const i=this._rootElement;i&&(this._elementRegistry.updateGraphics(i,null,!0),this.hideLayer(i.layer)),e&&(n||(n=this._findPlaneForRoot(e).layer),this._elementRegistry.updateGraphics(e,this._svg,!0),this.showLayer(e.layer)),this._rootElement=e,this._eventBus.fire("root.set",{element:e})},qe.prototype._ensureValid=function(e,n){if(!n.id)throw new Error("element must have an id");if(this._elementRegistry.get(n.id))throw new Error("element <"+n.id+"> already exists");const i=oH[e];if(!N6(i,function(s){return typeof n[s]<"u"}))throw new Error("must supply { "+i.join(", ")+" } with "+e)},qe.prototype._setParent=function(e,n,i){tH(n.children,e,i),e.parent=n},qe.prototype._addElement=function(e,n,i,a){i=i||this.getRootElement();const s=this._eventBus,c=this._graphicsFactory;this._ensureValid(e,n),s.fire(e+".add",{element:n,parent:i}),this._setParent(n,i,a);const p=c.create(e,n,a);return this._elementRegistry.add(n,p),c.update(e,n,p),s.fire(e+".added",{element:n,gfx:p}),n},qe.prototype.addShape=function(e,n,i){return this._addElement("shape",e,n,i)},qe.prototype.addConnection=function(e,n,i){return this._addElement("connection",e,n,i)},qe.prototype._removeElement=function(e,n){const i=this._elementRegistry,a=this._graphicsFactory,s=this._eventBus;if(e=i.get(e.id||e),!!e)return s.fire(n+".remove",{element:e}),a.remove(e),eH(e.parent&&e.parent.children,e),e.parent=null,s.fire(n+".removed",{element:e}),i.remove(e),e},qe.prototype.removeShape=function(e){return this._removeElement(e,"shape")},qe.prototype.removeConnection=function(e){return this._removeElement(e,"connection")},qe.prototype.getGraphics=function(e,n){return this._elementRegistry.getGraphics(e,n)},qe.prototype._changeViewbox=function(e){this._eventBus.fire("canvas.viewbox.changing"),e.apply(this),this._cachedViewbox=null,this._viewboxChanged()},qe.prototype._viewboxChanged=function(){this._eventBus.fire("canvas.viewbox.changed",{viewbox:this.viewbox()})},qe.prototype.viewbox=function(e){if(e===void 0&&this._cachedViewbox)return structuredClone(this._cachedViewbox);const n=this._viewport,i=this.getSize();let a,s,c,p,m,g,y;if(e)this._changeViewbox(function(){m=Math.min(i.width/e.width,i.height/e.height);const O=this._svg.createSVGMatrix().scale(m).translate(-e.x,-e.y);bd(n,O)});else return c=this._rootElement?this.getActiveLayer():null,a=c&&c.getBBox()||{},p=bd(n),s=p?p.matrix:ez(),m=$h(s.a,1e3),g=$h(-s.e||0,1e3),y=$h(-s.f||0,1e3),e=this._cachedViewbox={x:g?g/m:0,y:y?y/m:0,width:i.width/m,height:i.height/m,scale:m,inner:{width:a.width||0,height:a.height||0,x:a.x||0,y:a.y||0},outer:i},e;return e},qe.prototype.scroll=function(e){const n=this._viewport;let i=n.getCTM();return e&&this._changeViewbox(function(){e=Je({dx:0,dy:0},e||{}),i=this._svg.createSVGMatrix().translate(e.dx,e.dy).multiply(i),DS(n,i)}),{x:i.e,y:i.f}},qe.prototype.scrollToElement=function(e,n){let i=100;typeof e=="string"&&(e=this._elementRegistry.get(e));const a=this.findRoot(e);if(a!==this.getRootElement()&&this.setRootElement(a),a===e)return;n||(n={}),typeof n=="number"&&(i=n),n={top:n.top||i,right:n.right||i,bottom:n.bottom||i,left:n.left||i};const s=xd(e),c=d0(s),p=this.viewbox(),m=this.zoom();let g,y;p.y+=n.top/m,p.x+=n.left/m,p.width-=(n.right+n.left)/m,p.height-=(n.bottom+n.top)/m;const O=d0(p);if(!(s.width<p.width&&s.height<p.height))g=s.x-p.x,y=s.y-p.y;else{const N=Math.max(0,c.right-O.right),_=Math.min(0,c.left-O.left),S=Math.max(0,c.bottom-O.bottom),M=Math.min(0,c.top-O.top);g=N||_,y=S||M}this.scroll({dx:-g*m,dy:-y*m})},qe.prototype.zoom=function(e,n){if(!e)return this.viewbox(e).scale;if(e==="fit-viewport")return this._fitViewport(n);let i,a;return this._changeViewbox(function(){typeof n!="object"&&(i=this.viewbox().outer,n={x:i.width/2,y:i.height/2}),a=this._setZoom(e,n)}),$h(a.a,1e3)};function DS(e,n){const i="matrix("+n.a+","+n.b+","+n.c+","+n.d+","+n.e+","+n.f+")";e.setAttribute("transform",i)}qe.prototype._fitViewport=function(e){const n=this.viewbox(),i=n.outer,a=n.inner;let s,c;return a.x>=0&&a.y>=0&&a.x+a.width<=i.width&&a.y+a.height<=i.height&&!e?c={x:0,y:0,width:Math.max(a.width+a.x,i.width),height:Math.max(a.height+a.y,i.height)}:(s=Math.min(1,i.width/a.width,i.height/a.height),c={x:a.x+(e?a.width/2-i.width/s/2:0),y:a.y+(e?a.height/2-i.height/s/2:0),width:i.width/s,height:i.height/s}),this.viewbox(c),this.viewbox(!1).scale},qe.prototype._setZoom=function(e,n){const i=this._svg,a=this._viewport,s=i.createSVGMatrix(),c=i.createSVGPoint();let p,m,g,y,O;g=a.getCTM();const E=g.a;return n?(p=Je(c,n),m=p.matrixTransform(g.inverse()),y=s.translate(m.x,m.y).scale(1/E*e).translate(-m.x,-m.y),O=g.multiply(y)):O=s.scale(e),DS(this._viewport,O),O},qe.prototype.getSize=function(){return{width:this._container.clientWidth,height:this._container.clientHeight}},qe.prototype.getAbsoluteBBox=function(e){const n=this.viewbox();let i;e.waypoints?i=this.getGraphics(e).getBBox():i=e;const a=i.x*n.scale-n.x*n.scale,s=i.y*n.scale-n.y*n.scale,c=i.width*n.scale,p=i.height*n.scale;return{x:a,y:s,width:c,height:p}},qe.prototype.resized=function(){delete this._cachedViewbox,this._eventBus.fire("canvas.resized")};var ac="data-element-id";function zi(e){this._elements={},this._eventBus=e}zi.$inject=["eventBus"],zi.prototype.add=function(e,n,i){var a=e.id;this._validateId(a),Pt(n,ac,a),i&&Pt(i,ac,a),this._elements[a]={element:e,gfx:n,secondaryGfx:i}},zi.prototype.remove=function(e){var n=this._elements,i=e.id||e,a=i&&n[i];a&&(Pt(a.gfx,ac,""),a.secondaryGfx&&Pt(a.secondaryGfx,ac,""),delete n[i])},zi.prototype.updateId=function(e,n){this._validateId(n),typeof e=="string"&&(e=this.get(e)),this._eventBus.fire("element.updateId",{element:e,newId:n});var i=this.getGraphics(e),a=this.getGraphics(e,!0);this.remove(e),e.id=n,this.add(e,i,a)},zi.prototype.updateGraphics=function(e,n,i){var a=e.id||e,s=this._elements[a];return i?s.secondaryGfx=n:s.gfx=n,n&&Pt(n,ac,a),n},zi.prototype.get=function(e){var n;typeof e=="string"?n=e:n=e&&Pt(e,ac);var i=this._elements[n];return i&&i.element},zi.prototype.filter=function(e){var n=[];return this.forEach(function(i,a){e(i,a)&&n.push(i)}),n},zi.prototype.find=function(e){for(var n=this._elements,i=Object.keys(n),a=0;a<i.length;a++){var s=i[a],c=n[s],p=c.element,m=c.gfx;if(e(p,m))return p}},zi.prototype.getAll=function(){return this.filter(function(e){return e})},zi.prototype.forEach=function(e){var n=this._elements;Object.keys(n).forEach(function(i){var a=n[i],s=a.element,c=a.gfx;return e(s,c)})},zi.prototype.getGraphics=function(e,n){var i=e.id||e,a=this._elements[i];return a&&(n?a.secondaryGfx:a.gfx)},zi.prototype._validateId=function(e){if(!e)throw new Error("element must have an id");if(this._elements[e])throw new Error("element with id "+e+" already added")};function sH(e,n,i,a){var s=i.inverse;return Object.defineProperty(e,"remove",{value:function(c){var p=this.indexOf(c);return p!==-1&&(this.splice(p,1),n.unset(c,s,a)),c}}),Object.defineProperty(e,"contains",{value:function(c){return this.indexOf(c)!==-1}}),Object.defineProperty(e,"add",{value:function(c,p){var m=this.indexOf(c);if(typeof p>"u"){if(m!==-1)return;p=this.length}m!==-1&&this.splice(m,1),this.splice(p,0,c),m===-1&&n.set(c,s,a)}}),Object.defineProperty(e,"__refs_collection",{value:!0}),e}function lH(e){return e.__refs_collection===!0}function cH(e,n){return Object.prototype.hasOwnProperty.call(e,n.name||n)}function IS(e,n,i){var a=sH(i[n.name]||[],e,n,i);Object.defineProperty(i,n.name,{enumerable:n.enumerable,value:a}),a.length&&a.forEach(function(s){e.set(s,n.inverse,i)})}function uH(e,n,i){var a=n.inverse,s=i[n.name];Object.defineProperty(i,n.name,{configurable:n.configurable,enumerable:n.enumerable,get:function(){return s},set:function(c){if(c!==s){var p=s;s=null,p&&e.unset(p,a,i),s=c,e.set(s,a,i)}}})}function tr(e,n){if(!(this instanceof tr))return new tr(e,n);e.inverse=n,n.inverse=e,this.props={},this.props[e.name]=e,this.props[n.name]=n}tr.prototype.bind=function(e,n){if(typeof n=="string"){if(!this.props[n])throw new Error("no property <"+n+"> in ref");n=this.props[n]}n.collection?IS(this,n,e):uH(this,n,e)},tr.prototype.ensureRefsCollection=function(e,n){var i=e[n.name];return lH(i)||IS(this,n,e),i},tr.prototype.ensureBound=function(e,n){cH(e,n)||this.bind(e,n)},tr.prototype.unset=function(e,n,i){e&&(this.ensureBound(e,n),n.collection?this.ensureRefsCollection(e,n).remove(i):e[n.name]=void 0)},tr.prototype.set=function(e,n,i){e&&(this.ensureBound(e,n),n.collection?this.ensureRefsCollection(e,n).add(i):e[n.name]=i)};var v0=new tr({name:"children",enumerable:!0,collection:!0},{name:"parent"}),BS=new tr({name:"labels",enumerable:!0,collection:!0},{name:"labelTarget"}),OS=new tr({name:"attachers",collection:!0},{name:"host"}),TS=new tr({name:"outgoing",collection:!0},{name:"source"}),NS=new tr({name:"incoming",collection:!0},{name:"target"});function wd(){Object.defineProperty(this,"businessObject",{writable:!0}),Object.defineProperty(this,"label",{get:function(){return this.labels[0]},set:function(e){var n=this.label,i=this.labels;!e&&n?i.remove(n):i.add(e,0)}}),v0.bind(this,"parent"),BS.bind(this,"labels"),TS.bind(this,"outgoing"),NS.bind(this,"incoming")}function Ed(){wd.call(this),v0.bind(this,"children"),OS.bind(this,"host"),OS.bind(this,"attachers")}Gr(Ed,wd);function MS(){wd.call(this),v0.bind(this,"children")}Gr(MS,Ed);function FS(){Ed.call(this),BS.bind(this,"labelTarget")}Gr(FS,Ed);function PS(){wd.call(this),TS.bind(this,"source"),NS.bind(this,"target")}Gr(PS,wd);var dH={connection:PS,shape:Ed,label:FS,root:MS};function fH(e,n){var i=dH[e];if(!i)throw new Error("unknown type: <"+e+">");return Je(new i,n)}function oc(){this._uid=12}oc.prototype.createRoot=function(e){return this.create("root",e)},oc.prototype.createLabel=function(e){return this.create("label",e)},oc.prototype.createShape=function(e){return this.create("shape",e)},oc.prototype.createConnection=function(e){return this.create("connection",e)},oc.prototype.create=function(e,n){return n=Je({},n||{}),n.id||(n.id=e+"_"+this._uid++),fH(e,n)};var qh="__fn",RS=1e3,pH=Array.prototype.slice;function vi(){this._listeners={},this.on("diagram.destroy",1,this._destroy,this)}vi.prototype.on=function(e,n,i,a){if(e=Cr(e)?e:[e],As(n)&&(a=i,i=n,n=RS),!no(n))throw new Error("priority must be a number");var s=i;a&&(s=io(i,a),s[qh]=i[qh]||i);var c=this;e.forEach(function(p){c._addListener(p,{priority:n,callback:s,next:null})})},vi.prototype.once=function(e,n,i,a){var s=this;if(As(n)&&(a=i,i=n,n=RS),!no(n))throw new Error("priority must be a number");function c(){c.__isTomb=!0;var p=i.apply(a,arguments);return s.off(e,c),p}c[qh]=i,this.on(e,n,c)},vi.prototype.off=function(e,n){e=Cr(e)?e:[e];var i=this;e.forEach(function(a){i._removeListener(a,n)})},vi.prototype.createEvent=function(e){var n=new Cd;return n.init(e),n},vi.prototype.fire=function(e,n){var i,a,s,c;if(c=pH.call(arguments),typeof e=="object"&&(n=e,e=n.type),!e)throw new Error("no event type specified");if(a=this._listeners[e],!!a){n instanceof Cd?i=n:i=this.createEvent(n),c[0]=i;var p=i.type;e!==p&&(i.type=e);try{s=this._invokeListeners(i,c,a)}finally{e!==p&&(i.type=p)}return s===void 0&&i.defaultPrevented&&(s=!1),s}},vi.prototype.handleError=function(e){return this.fire("error",{error:e})===!1},vi.prototype._destroy=function(){this._listeners={}},vi.prototype._invokeListeners=function(e,n,i){for(var a;i&&!e.cancelBubble;)a=this._invokeListener(e,n,i),i=i.next;return a},vi.prototype._invokeListener=function(e,n,i){var a;if(i.callback.__isTomb)return a;try{a=hH(i.callback,n),a!==void 0&&(e.returnValue=a,e.stopPropagation()),a===!1&&e.preventDefault()}catch(s){if(!this.handleError(s))throw console.error("unhandled error in event listener",s),s}return a},vi.prototype._addListener=function(e,n){var i=this._getListeners(e),a;if(!i){this._setListeners(e,n);return}for(;i;){if(i.priority<n.priority){n.next=i,a?a.next=n:this._setListeners(e,n);return}a=i,i=i.next}a.next=n},vi.prototype._getListeners=function(e){return this._listeners[e]},vi.prototype._setListeners=function(e,n){this._listeners[e]=n},vi.prototype._removeListener=function(e,n){var i=this._getListeners(e),a,s,c;if(!n){this._setListeners(e,null);return}for(;i;)a=i.next,c=i.callback,(c===n||c[qh]===n)&&(s?s.next=a:this._setListeners(e,a)),s=i,i=a};function Cd(){}Cd.prototype.stopPropagation=function(){this.cancelBubble=!0},Cd.prototype.preventDefault=function(){this.defaultPrevented=!0},Cd.prototype.init=function(e){Je(this,e||{})};function hH(e,n){return e.apply(null,n)}function mH(e){return e.childNodes[0]}function gH(e){return e.parentNode.childNodes[1]}function Qi(e,n){this._eventBus=e,this._elementRegistry=n}Qi.$inject=["eventBus","elementRegistry"],Qi.prototype._getChildrenContainer=function(e){var n=this._elementRegistry.getGraphics(e),i;return e.parent?(i=gH(n),i||(i=Rt("g"),Jr(i).add("djs-children"),yn(n.parentNode,i))):i=n,i},Qi.prototype._clear=function(e){var n=mH(e);return K6(n),n},Qi.prototype._createContainer=function(e,n,i,a){var s=Rt("g");Jr(s).add("djs-group"),typeof i<"u"?jS(s,n,n.childNodes[i]):yn(n,s);var c=Rt("g");Jr(c).add("djs-element"),Jr(c).add("djs-"+e),a&&Jr(c).add("djs-frame"),yn(s,c);var p=Rt("g");return Jr(p).add("djs-visual"),yn(c,p),c},Qi.prototype.create=function(e,n,i){var a=this._getChildrenContainer(n.parent);return this._createContainer(e,a,i,oS(n))},Qi.prototype.updateContainments=function(e){var n=this,i=this._elementRegistry,a;a=ec(e,function(s,c){return c.parent&&(s[c.parent.id]=c.parent),s},{}),We(a,function(s){var c=s.children;if(!!c){var p=n._getChildrenContainer(s);We(c.slice().reverse(),function(m){var g=i.getGraphics(m);jS(g.parentNode,p)})}})},Qi.prototype.drawShape=function(e,n,i={}){var a=this._eventBus;return a.fire("render.shape",{gfx:e,element:n,attrs:i})},Qi.prototype.getShapePath=function(e){var n=this._eventBus;return n.fire("render.getShapePath",e)},Qi.prototype.drawConnection=function(e,n,i={}){var a=this._eventBus;return a.fire("render.connection",{gfx:e,element:n,attrs:i})},Qi.prototype.getConnectionPath=function(e){var n=this._eventBus;return n.fire("render.getConnectionPath",e)},Qi.prototype.update=function(e,n,i){if(!!n.parent){var a=this._clear(i);if(e==="shape")this.drawShape(a,n),eS(i,n.x,n.y);else if(e==="connection")this.drawConnection(a,n);else throw new Error("unknown type: "+e);n.hidden?Pt(i,"display","none"):Pt(i,"display","block")}},Qi.prototype.remove=function(e){var n=this._elementRegistry.getGraphics(e);vd(n.parentNode)};function jS(e,n,i){var a=i||n.firstChild;e!==a&&n.insertBefore(e,a)}const AH={__depends__:[qQ],__init__:["canvas"],canvas:["type",qe],elementRegistry:["type",zi],elementFactory:["type",oc],eventBus:["type",vi],graphicsFactory:["type",Qi]};function vH(e){var n=new ES(e);return n.init(),n}function bH(e){e=e||{};var n={config:["value",e]},i=[n,AH].concat(e.modules||[]);return vH(i)}function lo(e,n){this._injector=n||bH(e),this.get("eventBus").fire("diagram.init")}lo.prototype.get=function(e,n){return this._injector.get(e,n)},lo.prototype.invoke=function(e,n,i){return this._injector.invoke(e,n,i)},lo.prototype.destroy=function(){this.get("eventBus").fire("diagram.destroy")},lo.prototype.clear=function(){this.get("eventBus").fire("diagram.clear")};function b0(){}b0.prototype.get=function(e){return this.$model.properties.get(this,e)},b0.prototype.set=function(e,n){this.$model.properties.set(this,e,n)};function LS(e,n){this.model=e,this.properties=n}LS.prototype.createType=function(e){var n=this.model,i=this.properties,a=Object.create(b0.prototype);We(e.properties,function(p){!p.isMany&&p.default!==void 0&&(a[p.name]=p.default)}),i.defineModel(a,n),i.defineDescriptor(a,e);var s=e.ns.name;function c(p){i.define(this,"$type",{value:s,enumerable:!0}),i.define(this,"$attrs",{value:{}}),i.define(this,"$parent",{writable:!0}),We(p,io(function(m,g){this.set(g,m)},this))}return c.prototype=a,c.hasType=a.$instanceOf=this.model.hasType,i.defineModel(c,n),i.defineDescriptor(c,e),c};var _H={String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0},zS={String:function(e){return e},Boolean:function(e){return e==="true"},Integer:function(e){return parseInt(e,10)},Real:function(e){return parseFloat(e)}};function _0(e,n){var i=zS[e];return i?i(n):n}function y0(e){return!!_H[e]}function QS(e){return!!zS[e]}function Mn(e,n){var i=e.split(/:/),a,s;if(i.length===1)a=e,s=n;else if(i.length===2)a=i[1],s=i[0];else throw new Error("expected <prefix:localName> or <localName>, got "+e);return e=(s?s+":":"")+a,{name:e,prefix:s,localName:a}}function Hi(e){this.ns=e,this.name=e.name,this.allTypes=[],this.allTypesByName={},this.properties=[],this.propertiesByName={}}Hi.prototype.build=function(){return FL(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])},Hi.prototype.addProperty=function(e,n,i){typeof n=="boolean"&&(i=n,n=void 0),this.addNamedProperty(e,i!==!1);var a=this.properties;n!==void 0?a.splice(n,0,e):a.push(e)},Hi.prototype.replaceProperty=function(e,n,i){var a=e.ns,s=this.properties,c=this.propertiesByName,p=e.name!==n.name;if(e.isId){if(!n.isId)throw new Error("property <"+n.ns.name+"> must be id property to refine <"+e.ns.name+">");this.setIdProperty(n,!1)}if(e.isBody){if(!n.isBody)throw new Error("property <"+n.ns.name+"> must be body property to refine <"+e.ns.name+">");this.setBodyProperty(n,!1)}var m=s.indexOf(e);if(m===-1)throw new Error("property <"+a.name+"> not found in property list");s.splice(m,1),this.addProperty(n,i?void 0:m,p),c[a.name]=c[a.localName]=n},Hi.prototype.redefineProperty=function(e,n,i){var a=e.ns.prefix,s=n.split("#"),c=Mn(s[0],a),p=Mn(s[1],c.prefix).name,m=this.propertiesByName[p];if(m)this.replaceProperty(m,e,i);else throw new Error("refined property <"+p+"> not found");delete e.redefines},Hi.prototype.addNamedProperty=function(e,n){var i=e.ns,a=this.propertiesByName;n&&(this.assertNotDefined(e,i.name),this.assertNotDefined(e,i.localName)),a[i.name]=a[i.localName]=e},Hi.prototype.removeNamedProperty=function(e){var n=e.ns,i=this.propertiesByName;delete i[n.name],delete i[n.localName]},Hi.prototype.setBodyProperty=function(e,n){if(n&&this.bodyProperty)throw new Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+e.ns.name+">)");this.bodyProperty=e},Hi.prototype.setIdProperty=function(e,n){if(n&&this.idProperty)throw new Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+e.ns.name+">)");this.idProperty=e},Hi.prototype.assertNotTrait=function(e){if((e.extends||[]).length)throw new Error(`cannot create <${e.name}> extending <${e.extends}>`)},Hi.prototype.assertNotDefined=function(e,n){var i=e.name,a=this.propertiesByName[i];if(a)throw new Error("property <"+i+"> already defined; override of <"+a.definedBy.ns.name+"#"+a.ns.name+"> by <"+e.definedBy.ns.name+"#"+e.ns.name+"> not allowed without redefines")},Hi.prototype.hasProperty=function(e){return this.propertiesByName[e]},Hi.prototype.addTrait=function(e,n){n&&this.assertNotTrait(e);var i=this.allTypesByName,a=this.allTypes,s=e.name;s in i||(We(e.properties,io(function(c){c=Je({},c,{name:c.ns.localName,inherited:n}),Object.defineProperty(c,"definedBy",{value:e});var p=c.replaces,m=c.redefines;p||m?this.redefineProperty(c,p||m,p):(c.isBody&&this.setBodyProperty(c),c.isId&&this.setIdProperty(c),this.addProperty(c))},this)),a.push(e),i[s]=e)};function co(e,n){this.packageMap={},this.typeMap={},this.packages=[],this.properties=n,We(e,io(this.registerPackage,this))}co.prototype.getPackage=function(e){return this.packageMap[e]},co.prototype.getPackages=function(){return this.packages},co.prototype.registerPackage=function(e){e=Je({},e);var n=this.packageMap;HS(n,e,"prefix"),HS(n,e,"uri"),We(e.types,io(function(i){this.registerType(i,e)},this)),n[e.uri]=n[e.prefix]=e,this.packages.push(e)},co.prototype.registerType=function(e,n){e=Je({},e,{superClass:(e.superClass||[]).slice(),extends:(e.extends||[]).slice(),properties:(e.properties||[]).slice(),meta:Je(e.meta||{})});var i=Mn(e.name,n.prefix),a=i.name,s={};We(e.properties,io(function(c){var p=Mn(c.name,i.prefix),m=p.name;y0(c.type)||(c.type=Mn(c.type,p.prefix).name),Je(c,{ns:p,name:m}),s[m]=c},this)),Je(e,{ns:i,name:a,propertiesByName:s}),We(e.extends,io(function(c){var p=Mn(c,i.prefix),m=this.typeMap[p.name];m.traits=m.traits||[],m.traits.push(a)},this)),this.definePackage(e,n),this.typeMap[a]=e},co.prototype.mapTypes=function(e,n,i){var a=y0(e.name)?{name:e.name}:this.typeMap[e.name],s=this;function c(g,y){var O=Mn(g,y0(g)?"":e.prefix);s.mapTypes(O,n,y)}function p(g){return c(g,!0)}function m(g){return c(g,!1)}if(!a)throw new Error("unknown type <"+e.name+">");We(a.superClass,i?p:m),n(a,!i),We(a.traits,p)},co.prototype.getEffectiveDescriptor=function(e){var n=Mn(e),i=new Hi(n);this.mapTypes(n,function(s,c){i.addTrait(s,c)});var a=i.build();return this.definePackage(a,a.allTypes[a.allTypes.length-1].$pkg),a},co.prototype.definePackage=function(e,n){this.properties.define(e,"$pkg",{value:n})};function HS(e,n,i){var a=n[i];if(a in e)throw new Error("package with "+i+" <"+a+"> already defined")}function Cs(e){this.model=e}Cs.prototype.set=function(e,n,i){if(!kr(n)||!n.length)throw new TypeError("property name must be a non-empty string");var a=this.getProperty(e,n),s=a&&a.name;yH(i)?a?delete e[s]:delete e.$attrs[x0(n)]:a?s in e?e[s]=i:VS(e,a,i):e.$attrs[x0(n)]=i},Cs.prototype.get=function(e,n){var i=this.getProperty(e,n);if(!i)return e.$attrs[x0(n)];var a=i.name;return!e[a]&&i.isMany&&VS(e,i,[]),e[a]},Cs.prototype.define=function(e,n,i){if(!i.writable){var a=i.value;i=Je({},i,{get:function(){return a}}),delete i.value}Object.defineProperty(e,n,i)},Cs.prototype.defineDescriptor=function(e,n){this.define(e,"$descriptor",{value:n})},Cs.prototype.defineModel=function(e,n){this.define(e,"$model",{value:n})},Cs.prototype.getProperty=function(e,n){var i=this.model,a=i.getPropertyDescriptor(e,n);if(a)return a;if(n.includes(":"))return null;const s=i.config.strict;if(typeof s<"u"){const c=new TypeError(`unknown property <${n}> on <${e.$type}>`);if(s)throw c;typeof console<"u"&&console.warn(c)}return null};function yH(e){return typeof e>"u"}function VS(e,n,i){Object.defineProperty(e,n.name,{enumerable:!n.isReference,writable:!0,value:i,configurable:!0})}function x0(e){return e.replace(/^:/,"")}function nr(e,n={}){this.properties=new Cs(this),this.factory=new LS(this,this.properties),this.registry=new co(e,this.properties),this.typeCache={},this.config=n}nr.prototype.create=function(e,n){var i=this.getType(e);if(!i)throw new Error("unknown type <"+e+">");return new i(n)},nr.prototype.getType=function(e){var n=this.typeCache,i=kr(e)?e:e.ns.name,a=n[i];return a||(e=this.registry.getEffectiveDescriptor(i),a=n[i]=this.factory.createType(e)),a},nr.prototype.createAny=function(e,n,i){var a=Mn(e),s={$type:e,$instanceOf:function(p){return p===this.$type},get:function(p){return this[p]},set:function(p,m){ML(this,[p],m)}},c={name:e,isGeneric:!0,ns:{prefix:a.prefix,localName:a.localName,uri:n}};return this.properties.defineDescriptor(s,c),this.properties.defineModel(s,this),this.properties.define(s,"get",{enumerable:!1,writable:!0}),this.properties.define(s,"set",{enumerable:!1,writable:!0}),this.properties.define(s,"$parent",{enumerable:!1,writable:!0}),this.properties.define(s,"$instanceOf",{enumerable:!1,writable:!0}),We(i,function(p,m){gs(p)&&p.value!==void 0?s[p.name]=p.value:s[m]=p}),s},nr.prototype.getPackage=function(e){return this.registry.getPackage(e)},nr.prototype.getPackages=function(){return this.registry.getPackages()},nr.prototype.getElementDescriptor=function(e){return e.$descriptor},nr.prototype.hasType=function(e,n){n===void 0&&(n=e,e=this);var i=e.$model.getElementDescriptor(e);return n in i.allTypesByName},nr.prototype.getPropertyDescriptor=function(e,n){return this.getElementDescriptor(e).propertiesByName[n]},nr.prototype.getTypeDescriptor=function(e){return this.registry.typeMap[e]};var US=String.fromCharCode,xH=Object.prototype.hasOwnProperty,wH=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/ig,kd={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};Object.keys(kd).forEach(function(e){kd[e.toUpperCase()]=kd[e]});function EH(e,n,i,a){return a?xH.call(kd,a)?kd[a]:"&"+a+";":US(n||parseInt(i,16))}function ks(e){return e.length>3&&e.indexOf("&")!==-1?e.replace(wH,EH):e}var YS="non-whitespace outside of root node";function sc(e){return new Error(e)}function WS(e){return"missing namespace for prefix <"+e+">"}function em(e){return{get:e,enumerable:!0}}function CH(e){var n={},i;for(i in e)n[i]=e[i];return n}function w0(e){return e+"$uri"}function kH(e){var n={},i,a;for(i in e)a=e[i],n[a]=a,n[w0(a)]=i;return n}function GS(){return{line:0,column:0}}function SH(e){throw e}function JS(e){if(!this)return new JS(e);var n=e&&e.proxy,i,a,s,c,p=SH,m,g,y,O,E=GS,N=!1,_=!1,S=null,M=!1,P;function T(w){w instanceof Error||(w=sc(w)),S=w,p(w,E)}function R(w){!m||(w instanceof Error||(w=sc(w)),m(w,E))}this.on=function(w,B){if(typeof B!="function")throw sc("required args <name, cb>");switch(w){case"openTag":a=B;break;case"text":i=B;break;case"closeTag":s=B;break;case"error":p=B;break;case"warn":m=B;break;case"cdata":c=B;break;case"attention":O=B;break;case"question":y=B;break;case"comment":g=B;break;default:throw sc("unsupported event: "+w)}return this},this.ns=function(w){if(typeof w>"u"&&(w={}),typeof w!="object")throw sc("required args <nsMap={}>");var B={},Q;for(Q in w)B[Q]=w[Q];return _=!0,P=B,this},this.parse=function(w){if(typeof w!="string")throw sc("required args <xml=string>");return S=null,b(w),E=GS,M=!1,S},this.stop=function(){M=!0};function b(w){var B=_?[]:null,Q=_?kH(P):null,F,H=[],ee=0,ne=!1,se=!1,me=0,pe=0,Se,ye,_e,W,J,re,ge,Te,le,he="",xe=0,Fe;function K(){if(Fe!==null)return Fe;var C,k,X,te=_&&Q.xmlns,fe=_&&N?[]:null,De=xe,Re=he,Ke=Re.length,_t,pt,Bt,sn,ct,Ot={},fn={},ve,q,G;e:for(;De<Ke;De++)if(ve=!1,q=Re.charCodeAt(De),!(q===32||q<14&&q>8)){for((q<65||q>122||q>90&&q<97)&&q!==95&&q!==58&&(R("illegal first char attribute name"),ve=!0),G=De+1;G<Ke;G++)if(q=Re.charCodeAt(G),!(q>96&&q<123||q>64&&q<91||q>47&&q<59||q===46||q===45||q===95)){if(q===32||q<14&&q>8){R("missing attribute value"),De=G;continue e}if(q===61)break;R("illegal attribute name char"),ve=!0}if(ct=Re.substring(De,G),ct==="xmlns:xmlns"&&(R("illegal declaration of xmlns"),ve=!0),q=Re.charCodeAt(G+1),q===34)G=Re.indexOf('"',De=G+2),G===-1&&(G=Re.indexOf("'",De),G!==-1&&(R("attribute value quote missmatch"),ve=!0));else if(q===39)G=Re.indexOf("'",De=G+2),G===-1&&(G=Re.indexOf('"',De),G!==-1&&(R("attribute value quote missmatch"),ve=!0));else for(R("missing attribute value quotes"),ve=!0,G=G+1;G<Ke&&(q=Re.charCodeAt(G+1),!(q===32||q<14&&q>8));G++);for(G===-1&&(R("missing closing quotes"),G=Ke,ve=!0),ve||(Bt=Re.substring(De,G)),De=G;G+1<Ke&&(q=Re.charCodeAt(G+1),!(q===32||q<14&&q>8));G++)De===G&&(R("illegal character after attribute end"),ve=!0);if(De=G+1,ve)continue e;if(ct in fn){R("attribute <"+ct+"> already defined");continue}if(fn[ct]=!0,!_){Ot[ct]=Bt;continue}if(N){if(pt=ct==="xmlns"?"xmlns":ct.charCodeAt(0)===120&&ct.substr(0,6)==="xmlns:"?ct.substr(6):null,pt!==null){if(C=ks(Bt),k=w0(pt),sn=P[C],!sn){if(pt==="xmlns"||k in Q&&Q[k]!==C)do sn="ns"+ee++;while(typeof Q[sn]<"u");else sn=pt;P[C]=sn}Q[pt]!==sn&&(_t||(Q=CH(Q),_t=!0),Q[pt]=sn,pt==="xmlns"&&(Q[w0(sn)]=C,te=sn),Q[k]=C),Ot[ct]=Bt;continue}fe.push(ct,Bt);continue}if(q=ct.indexOf(":"),q===-1){Ot[ct]=Bt;continue}if(!(X=Q[ct.substring(0,q)])){R(WS(ct.substring(0,q)));continue}ct=te===X?ct.substr(q+1):X+ct.substr(q),Ot[ct]=Bt}if(N)for(De=0,Ke=fe.length;De<Ke;De++){if(ct=fe[De++],Bt=fe[De],q=ct.indexOf(":"),q!==-1){if(!(X=Q[ct.substring(0,q)])){R(WS(ct.substring(0,q)));continue}ct=te===X?ct.substr(q+1):X+ct.substr(q)}Ot[ct]=Bt}return Fe=Ot}function j(){for(var C=/(\r\n|\r|\n)/g,k=0,X=0,te=0,fe=pe,De,Re;me>=te&&(De=C.exec(w),!(!De||(fe=De[0].length+De.index,fe>me)));)k+=1,te=fe;return me==-1?(X=fe,Re=w.substring(pe)):pe===0?Re=w.substring(pe,me):(X=me-te,Re=pe==-1?w.substring(me):w.substring(me,pe+1)),{data:Re,line:k,column:X}}for(E=j,n&&(le=Object.create({},{name:em(function(){return ge}),originalName:em(function(){return Te}),attrs:em(K),ns:em(function(){return Q})}));pe!==-1;){if(w.charCodeAt(pe)===60?me=pe:me=w.indexOf("<",pe),me===-1){if(H.length)return T("unexpected end of file");if(pe===0)return T("missing start tag");pe<w.length&&w.substring(pe).trim()&&R(YS);return}if(pe!==me){if(H.length){if(i&&(i(w.substring(pe,me),ks,E),M))return}else if(w.substring(pe,me).trim()&&(R(YS),M))return}if(W=w.charCodeAt(me+1),W===33){if(_e=w.charCodeAt(me+2),_e===91&&w.substr(me+3,6)==="CDATA["){if(pe=w.indexOf("]]>",me),pe===-1)return T("unclosed cdata");if(c&&(c(w.substring(me+9,pe),E),M))return;pe+=3;continue}if(_e===45&&w.charCodeAt(me+3)===45){if(pe=w.indexOf("-->",me),pe===-1)return T("unclosed comment");if(g&&(g(w.substring(me+4,pe),ks,E),M))return;pe+=3;continue}}if(W===63){if(pe=w.indexOf("?>",me),pe===-1)return T("unclosed question");if(y&&(y(w.substring(me,pe+2),E),M))return;pe+=2;continue}for(Se=me+1;;Se++){if(J=w.charCodeAt(Se),isNaN(J))return pe=-1,T("unclosed tag");if(J===34)_e=w.indexOf('"',Se+1),Se=_e!==-1?_e:Se;else if(J===39)_e=w.indexOf("'",Se+1),Se=_e!==-1?_e:Se;else if(J===62){pe=Se;break}}if(W===33){if(O&&(O(w.substring(me,pe+1),ks,E),M))return;pe+=1;continue}if(Fe={},W===47){if(ne=!1,se=!0,!H.length)return T("missing open tag");if(Se=ge=H.pop(),_e=me+2+Se.length,w.substring(me+2,_e)!==Se)return T("closing tag mismatch");for(;_e<pe;_e++)if(W=w.charCodeAt(_e),!(W===32||W>8&&W<14))return T("close tag")}else{if(w.charCodeAt(pe-1)===47?(Se=ge=w.substring(me+1,pe-1),ne=!0,se=!0):(Se=ge=w.substring(me+1,pe),ne=!0,se=!1),!(W>96&&W<123||W>64&&W<91||W===95||W===58))return T("illegal first char nodeName");for(_e=1,ye=Se.length;_e<ye;_e++)if(W=Se.charCodeAt(_e),!(W>96&&W<123||W>64&&W<91||W>47&&W<59||W===45||W===95||W==46)){if(W===32||W<14&&W>8){ge=Se.substring(0,_e),Fe=null;break}return T("invalid nodeName")}se||H.push(ge)}if(_){if(F=Q,ne&&(se||B.push(F),Fe===null&&(N=Se.indexOf("xmlns",_e)!==-1)&&(xe=_e,he=Se,K(),N=!1)),Te=ge,W=ge.indexOf(":"),W!==-1){if(re=Q[ge.substring(0,W)],!re)return T("missing namespace on <"+Te+">");ge=ge.substr(W+1)}else re=Q.xmlns;re&&(ge=re+":"+ge)}if(ne&&(xe=_e,he=Se,a&&(n?a(le,ks,se,E):a(ge,K,ks,se,E),M)))return;if(se){if(s&&(s(n?le:ge,ks,ne,E),M))return;_&&(ne?Q=F:Q=B.pop())}pe+=1}}}function KS(e){return e.xml&&e.xml.tagAlias==="lowerCase"}var E0={xsi:"http://www.w3.org/2001/XMLSchema-instance",xml:"http://www.w3.org/XML/1998/namespace"},XS="property";function ZS(e){return e.xml&&e.xml.serialize}function DH(e){const n=ZS(e);return n!==XS&&(n||null)}function IH(e){return e.charAt(0).toUpperCase()+e.slice(1)}function $S(e,n){return KS(n)?e.prefix+":"+IH(e.localName):e.name}function BH(e,n){var i=e.name,a=e.localName,s=n&&n.xml&&n.xml.typePrefix;return s&&a.indexOf(s)===0?e.prefix+":"+a.slice(s.length):i}function OH(e,n,i){const a=Mn(e,n.xmlns),s=`${n[a.prefix]||a.prefix}:${a.localName}`,c=Mn(s);var p=i.getPackage(c.prefix);return BH(c,p)}function uo(e){return new Error(e)}function ka(e){return e.$descriptor}function TH(e){Je(this,e),this.elementsById={},this.references=[],this.warnings=[],this.addReference=function(n){this.references.push(n)},this.addElement=function(n){if(!n)throw uo("expected element");var i=this.elementsById,a=ka(n),s=a.idProperty,c;if(s&&(c=n.get(s.name),c)){if(!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(c))throw new Error("illegal ID <"+c+">");if(i[c])throw uo("duplicate ID <"+c+">");i[c]=n}},this.addWarning=function(n){this.warnings.push(n)}}function Sd(){}Sd.prototype.handleEnd=function(){},Sd.prototype.handleText=function(){},Sd.prototype.handleNode=function(){};function C0(){}C0.prototype=Object.create(Sd.prototype),C0.prototype.handleNode=function(){return this};function lc(){}lc.prototype=Object.create(Sd.prototype),lc.prototype.handleText=function(e){this.body=(this.body||"")+e};function Dd(e,n){this.property=e,this.context=n}Dd.prototype=Object.create(lc.prototype),Dd.prototype.handleNode=function(e){if(this.element)throw uo("expected no sub nodes");return this.element=this.createReference(e),this},Dd.prototype.handleEnd=function(){this.element.id=this.body},Dd.prototype.createReference=function(e){return{property:this.property.ns.name,id:""}};function k0(e,n){this.element=n,this.propertyDesc=e}k0.prototype=Object.create(lc.prototype),k0.prototype.handleEnd=function(){var e=this.body||"",n=this.element,i=this.propertyDesc;e=_0(i.type,e),i.isMany?n.get(i.name).push(e):n.set(i.name,e)};function tm(){}tm.prototype=Object.create(lc.prototype),tm.prototype.handleNode=function(e){var n=this,i=this.element;return i?n=this.handleChild(e):(i=this.element=this.createElement(e),this.context.addElement(i)),n};function Hn(e,n,i){this.model=e,this.type=e.getType(n),this.context=i}Hn.prototype=Object.create(tm.prototype),Hn.prototype.addReference=function(e){this.context.addReference(e)},Hn.prototype.handleText=function(e){var n=this.element,i=ka(n),a=i.bodyProperty;if(!a)throw uo("unexpected body text <"+e+">");lc.prototype.handleText.call(this,e)},Hn.prototype.handleEnd=function(){var e=this.body,n=this.element,i=ka(n),a=i.bodyProperty;a&&e!==void 0&&(e=_0(a.type,e),n.set(a.name,e))},Hn.prototype.createElement=function(e){var n=e.attributes,i=this.type,a=ka(i),s=this.context,c=new i({}),p=this.model,m;return We(n,function(g,y){var O=a.propertiesByName[y],E;O&&O.isReference?O.isMany?(E=g.split(" "),We(E,function(N){s.addReference({element:c,property:O.ns.name,id:N})})):s.addReference({element:c,property:O.ns.name,id:g}):(O?g=_0(O.type,g):y==="xmlns"?y=":"+y:(m=Mn(y,a.ns.prefix),p.getPackage(m.prefix)&&s.addWarning({message:"unknown attribute <"+y+">",element:c,property:y,value:g})),c.set(y,g))}),c},Hn.prototype.getPropertyForNode=function(e){var n=e.name,i=Mn(n),a=this.type,s=this.model,c=ka(a),p=i.name,m=c.propertiesByName[p];if(m&&!m.isAttr){const y=DH(m);if(y){const O=e.attributes[y];if(O){const E=OH(O,e.ns,s),N=s.getType(E);return Je({},m,{effectiveType:ka(N).name})}}return m}var g=s.getPackage(i.prefix);if(g){const y=$S(i,g),O=s.getType(y);if(m=Sr(c.properties,function(E){return!E.isVirtual&&!E.isReference&&!E.isAttribute&&O.hasType(E.type)}),m)return Je({},m,{effectiveType:ka(O).name})}else if(m=Sr(c.properties,function(y){return!y.isReference&&!y.isAttribute&&y.type==="Element"}),m)return m;throw uo("unrecognized element <"+i.name+">")},Hn.prototype.toString=function(){return"ElementDescriptor["+ka(this.type).name+"]"},Hn.prototype.valueHandler=function(e,n){return new k0(e,n)},Hn.prototype.referenceHandler=function(e){return new Dd(e,this.context)},Hn.prototype.handler=function(e){return e==="Element"?new cc(this.model,e,this.context):new Hn(this.model,e,this.context)},Hn.prototype.handleChild=function(e){var n,i,a,s;if(n=this.getPropertyForNode(e),a=this.element,i=n.effectiveType||n.type,QS(i))return this.valueHandler(n,a);n.isReference?s=this.referenceHandler(n).handleNode(e):s=this.handler(i).handleNode(e);var c=s.element;return c!==void 0&&(n.isMany?a.get(n.name).push(c):a.set(n.name,c),n.isReference?(Je(c,{element:a}),this.context.addReference(c)):c.$parent=a),s};function S0(e,n,i){Hn.call(this,e,n,i)}S0.prototype=Object.create(Hn.prototype),S0.prototype.createElement=function(e){var n=e.name,i=Mn(n),a=this.model,s=this.type,c=a.getPackage(i.prefix),p=c&&$S(i,c)||n;if(!s.hasType(p))throw uo("unexpected element <"+e.originalName+">");return Hn.prototype.createElement.call(this,e)};function cc(e,n,i){this.model=e,this.context=i}cc.prototype=Object.create(tm.prototype),cc.prototype.createElement=function(e){var n=e.name,i=Mn(n),a=i.prefix,s=e.ns[a+"$uri"],c=e.attributes;return this.model.createAny(n,s,c)},cc.prototype.handleChild=function(e){var n=new cc(this.model,"Element",this.context).handleNode(e),i=this.element,a=n.element,s;return a!==void 0&&(s=i.$children=i.$children||[],s.push(a),a.$parent=i),n},cc.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)};function D0(e){e instanceof nr&&(e={model:e}),Je(this,{lax:!1},e)}D0.prototype.fromXML=function(e,n,i){var a=n.rootHandler;n instanceof Hn?(a=n,n={}):typeof n=="string"?(a=this.handler(n),n={}):typeof a=="string"&&(a=this.handler(a));var s=this.model,c=this.lax,p=new TH(Je({},n,{rootHandler:a})),m=new JS({proxy:!0}),g=NH();a.context=p,g.push(a);function y(B,Q,F){var H=Q(),ee=H.line,ne=H.column,se=H.data;se.charAt(0)==="<"&&se.indexOf(" ")!==-1&&(se=se.slice(0,se.indexOf(" "))+">");var me="unparsable content "+(se?se+" ":"")+`detected
35
35
  line: `+ee+`
36
36
  column: `+ne+`
37
37
  nested error: `+B.message;if(F)return p.addWarning({message:me,error:B}),!0;throw uo(me)}function O(B,Q){return y(B,Q,!0)}function E(){var B=p.elementsById,Q=p.references,F,H;for(F=0;H=Q[F];F++){var ee=H.element,ne=B[H.id],se=ka(ee).propertiesByName[H.property];if(ne||p.addWarning({message:"unresolved reference <"+H.id+">",element:H.element,property:H.property,value:H.id}),se.isMany){var me=ee.get(se.name),pe=me.indexOf(H);pe===-1&&(pe=me.length),ne?me[pe]=ne:me.splice(pe,1)}else ee.set(se.name,ne)}}function N(){g.pop().handleEnd()}var _=/^<\?xml /i,S=/ encoding="([^"]+)"/i,M=/^utf-8$/i;function P(B){if(!!_.test(B)){var Q=S.exec(B),F=Q&&Q[1];!F||M.test(F)||p.addWarning({message:"unsupported document encoding <"+F+">, falling back to UTF-8"})}}function T(B,Q){var F=g.peek();try{g.push(F.handleNode(B))}catch(H){y(H,Q,c)&&g.push(new C0)}}function R(B,Q){try{g.peek().handleText(B)}catch(F){O(F,Q)}}function b(B,Q){!B.trim()||R(B,Q)}var w=s.getPackages().reduce(function(B,Q){return B[Q.uri]=Q.prefix,B},Object.entries(E0).reduce(function(B,[Q,F]){return B[F]=Q,B},s.config&&s.config.nsMap||{}));return m.ns(w).on("openTag",function(B,Q,F,H){var ee=B.attrs||{},ne=Object.keys(ee).reduce(function(me,pe){var Se=Q(ee[pe]);return me[pe]=Se,me},{}),se={name:B.name,originalName:B.originalName,attributes:ne,ns:B.ns};T(se,H)}).on("question",P).on("closeTag",N).on("cdata",R).on("text",function(B,Q,F){b(Q(B),F)}).on("error",y).on("warn",O),new Promise(function(B,Q){var F;try{m.parse(e),E()}catch(me){F=me}var H=a.element;!F&&!H&&(F=uo("failed to parse document as <"+a.type.$descriptor.name+">"));var ee=p.warnings,ne=p.references,se=p.elementsById;return F?(F.warnings=ee,Q(F)):B({rootElement:H,elementsById:se,references:ne,warnings:ee})})},D0.prototype.handler=function(e){return new S0(this.model,e)};function NH(){var e=[];return Object.defineProperty(e,"peek",{value:function(){return this[this.length-1]}}),e}var MH=`<?xml version="1.0" encoding="UTF-8"?>