ddy-process-h5 1.0.1-rc.3.3 → 1.0.1-rc.3.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/v2/ddy-process-h5.js +5121 -5088
- package/v2/ddy-process-h5.umd.cjs +15 -15
- package/v2/style.css +1 -1
- package/v2.7/ddy-process-h5.js +5016 -4983
- package/v2.7/ddy-process-h5.umd.cjs +15 -15
- package/v2.7/style.css +1 -1
- package/v3/ddy-process-h5.js +5585 -5931
- package/v3/ddy-process-h5.umd.cjs +9 -25
- package/v3/style.css +1 -1
|
@@ -1,29 +1,13 @@
|
|
|
1
|
-
(function(Je,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue"),require("dsbridge"),require("checked-pick-app")):typeof define=="function"&&define.amd?define(["exports","vue","dsbridge","checked-pick-app"],n):(Je=typeof globalThis<"u"?globalThis:Je||self,n(Je["ddy-process-h5"]={},Je.Vue,Je.dsbridge,Je["checked-pick-app"]))})(this,function(Je,n,va,Nt){"use strict";const Zs=(e=>e&&typeof e=="object"&&"default"in e?e:{default:e})(va);/**
|
|
2
|
-
* @vue/shared v3.5.18
|
|
3
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
-
* @license MIT
|
|
5
|
-
**//*! #__NO_SIDE_EFFECTS__ */function Fa(e){const t=Object.create(null);for(const i of e.split(","))t[i]=1;return i=>i in t}const He=process.env.NODE_ENV!=="production"?Object.freeze({}):{};process.env.NODE_ENV!=="production"&&Object.freeze([]);const ii=()=>{},Qa=()=>!1,ja=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Pe=Object.assign,Ua=Object.prototype.hasOwnProperty,ye=(e,t)=>Ua.call(e,t),de=Array.isArray,ni=e=>Ki(e)==="[object Map]",_a=e=>Ki(e)==="[object Set]",Ee=e=>typeof e=="function",$e=e=>typeof e=="string",Ni=e=>typeof e=="symbol",Me=e=>e!==null&&typeof e=="object",Ga=e=>(Me(e)||Ee(e))&&Ee(e.then)&&Ee(e.catch),qa=Object.prototype.toString,Ki=e=>qa.call(e),Xs=e=>Ki(e).slice(8,-1),Ja=e=>Ki(e)==="[object Object]",vn=e=>$e(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ha=(e=>{const t=Object.create(null);return i=>t[i]||(t[i]=e(i))})(e=>e.charAt(0).toUpperCase()+e.slice(1)),Qt=(e,t)=>!Object.is(e,t),za=(e,t,i,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:i})};let $s;const Wi=()=>$s||($s=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Fn(e){if(de(e)){const t={};for(let i=0;i<e.length;i++){const s=e[i],r=$e(s)?Za(s):Fn(s);if(r)for(const o in r)t[o]=r[o]}return t}else if($e(e)||Me(e))return e}const Ka=/;(?![^(]*\))/g,Wa=/:([^]+)/,Ya=/\/\*[^]*?\*\//g;function Za(e){const t={};return e.replace(Ya,"").split(Ka).forEach(i=>{if(i){const s=i.split(Wa);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Qn(e){let t="";if($e(e))t=e;else if(de(e))for(let i=0;i<e.length;i++){const s=Qn(e[i]);s&&(t+=s+" ")}else if(Me(e))for(const i in e)e[i]&&(t+=i+" ");return t.trim()}/**
|
|
6
|
-
* @vue/reactivity v3.5.18
|
|
7
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
-
* @license MIT
|
|
9
|
-
**/function Tt(e,...t){`${e}`,[...t]}let ne;const jn=new WeakSet;class Xa{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,jn.has(this)&&(jn.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||$a(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,sr(this),tr(this);const t=ne,i=et;ne=this,et=!0;try{return this.fn()}finally{process.env.NODE_ENV!=="production"&&ne!==this&&Tt("Active effect was not restored correctly - this is likely a Vue internal bug."),ir(this),ne=t,et=i,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)qn(t);this.deps=this.depsTail=void 0,sr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?jn.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Gn(this)&&this.run()}get dirty(){return Gn(this)}}let er=0,Ti,Bi;function $a(e,t=!1){if(e.flags|=8,t){e.next=Bi,Bi=e;return}e.next=Ti,Ti=e}function Un(){er++}function _n(){if(--er>0)return;if(Bi){let t=Bi;for(Bi=void 0;t;){const i=t.next;t.next=void 0,t.flags&=-9,t=i}}let e;for(;Ti;){let t=Ti;for(Ti=void 0;t;){const i=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=i}}if(e)throw e}function tr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ir(e){let t,i=e.depsTail,s=i;for(;s;){const r=s.prevDep;s.version===-1?(s===i&&(i=r),qn(s),tl(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=i}function Gn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(el(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function el(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Yi)||(e.globalVersion=Yi,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Gn(e))))return;e.flags|=2;const t=e.dep,i=ne,s=et;ne=e,et=!0;try{tr(e);const r=e.fn(e._value);(t.version===0||Qt(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{ne=i,et=s,ir(e),e.flags&=-3}}function qn(e,t=!1){const{dep:i,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),process.env.NODE_ENV!=="production"&&i.subsHead===e&&(i.subsHead=r),i.subs===e&&(i.subs=s,!s&&i.computed)){i.computed.flags&=-5;for(let o=i.computed.deps;o;o=o.nextDep)qn(o,!0)}!t&&!--i.sc&&i.map&&i.map.delete(i.key)}function tl(e){const{prevDep:t,nextDep:i}=e;t&&(t.nextDep=i,e.prevDep=void 0),i&&(i.prevDep=t,e.nextDep=void 0)}let et=!0;const nr=[];function Ii(){nr.push(et),et=!1}function xi(){const e=nr.pop();et=e===void 0?!0:e}function sr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const i=ne;ne=void 0;try{t()}finally{ne=i}}}let Yi=0;class il{constructor(t,i){this.sub=t,this.dep=i,this.version=i.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class nl{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0,process.env.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(t){if(!ne||!et||ne===this.computed)return;let i=this.activeLink;if(i===void 0||i.sub!==ne)i=this.activeLink=new il(ne,this),ne.deps?(i.prevDep=ne.depsTail,ne.depsTail.nextDep=i,ne.depsTail=i):ne.deps=ne.depsTail=i,rr(i);else if(i.version===-1&&(i.version=this.version,i.nextDep)){const s=i.nextDep;s.prevDep=i.prevDep,i.prevDep&&(i.prevDep.nextDep=s),i.prevDep=ne.depsTail,i.nextDep=void 0,ne.depsTail.nextDep=i,ne.depsTail=i,ne.deps===i&&(ne.deps=s)}return process.env.NODE_ENV!=="production"&&ne.onTrack&&ne.onTrack(Pe({effect:ne},t)),i}trigger(t){this.version++,Yi++,this.notify(t)}notify(t){Un();try{if(process.env.NODE_ENV!=="production")for(let i=this.subsHead;i;i=i.nextSub)i.sub.onTrigger&&!(i.sub.flags&8)&&i.sub.onTrigger(Pe({effect:i.sub},t));for(let i=this.subs;i;i=i.prevSub)i.sub.notify()&&i.sub.dep.notify()}finally{_n()}}}function rr(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)rr(s)}const i=e.dep.subs;i!==e&&(e.prevSub=i,i&&(i.nextSub=e)),process.env.NODE_ENV!=="production"&&e.dep.subsHead===void 0&&(e.dep.subsHead=e),e.dep.subs=e}}const Jn=new WeakMap,jt=Symbol(process.env.NODE_ENV!=="production"?"Object iterate":""),Hn=Symbol(process.env.NODE_ENV!=="production"?"Map keys iterate":""),Si=Symbol(process.env.NODE_ENV!=="production"?"Array iterate":"");function Ce(e,t,i){if(et&&ne){let s=Jn.get(e);s||Jn.set(e,s=new Map);let r=s.get(i);r||(s.set(i,r=new nl),r.map=s,r.key=i),process.env.NODE_ENV!=="production"?r.track({target:e,type:t,key:i}):r.track()}}function Bt(e,t,i,s,r,o){const a=Jn.get(e);if(!a){Yi++;return}const l=c=>{c&&(process.env.NODE_ENV!=="production"?c.trigger({target:e,type:t,key:i,newValue:s,oldValue:r,oldTarget:o}):c.trigger())};if(Un(),t==="clear")a.forEach(l);else{const c=de(e),m=c&&vn(i);if(c&&i==="length"){const u=Number(s);a.forEach((p,g)=>{(g==="length"||g===Si||!Ni(g)&&g>=u)&&l(p)})}else switch((i!==void 0||a.has(void 0))&&l(a.get(i)),m&&l(a.get(Si)),t){case"add":c?m&&l(a.get("length")):(l(a.get(jt)),ni(e)&&l(a.get(Hn)));break;case"delete":c||(l(a.get(jt)),ni(e)&&l(a.get(Hn)));break;case"set":ni(e)&&l(a.get(jt));break}}_n()}function si(e){const t=$(e);return t===e?t:(Ce(t,"iterate",Si),Le(e)?t:t.map(ve))}function zn(e){return Ce(e=$(e),"iterate",Si),e}const sl={__proto__:null,[Symbol.iterator](){return Kn(this,Symbol.iterator,ve)},concat(...e){return si(this).concat(...e.map(t=>de(t)?si(t):t))},entries(){return Kn(this,"entries",e=>(e[1]=ve(e[1]),e))},every(e,t){return mt(this,"every",e,t,void 0,arguments)},filter(e,t){return mt(this,"filter",e,t,i=>i.map(ve),arguments)},find(e,t){return mt(this,"find",e,t,ve,arguments)},findIndex(e,t){return mt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return mt(this,"findLast",e,t,ve,arguments)},findLastIndex(e,t){return mt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return mt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Wn(this,"includes",e)},indexOf(...e){return Wn(this,"indexOf",e)},join(e){return si(this).join(e)},lastIndexOf(...e){return Wn(this,"lastIndexOf",e)},map(e,t){return mt(this,"map",e,t,void 0,arguments)},pop(){return Di(this,"pop")},push(...e){return Di(this,"push",e)},reduce(e,...t){return or(this,"reduce",e,t)},reduceRight(e,...t){return or(this,"reduceRight",e,t)},shift(){return Di(this,"shift")},some(e,t){return mt(this,"some",e,t,void 0,arguments)},splice(...e){return Di(this,"splice",e)},toReversed(){return si(this).toReversed()},toSorted(e){return si(this).toSorted(e)},toSpliced(...e){return si(this).toSpliced(...e)},unshift(...e){return Di(this,"unshift",e)},values(){return Kn(this,"values",ve)}};function Kn(e,t,i){const s=zn(e),r=s[t]();return s!==e&&!Le(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.value&&(o.value=i(o.value)),o}),r}const rl=Array.prototype;function mt(e,t,i,s,r,o){const a=zn(e),l=a!==e&&!Le(e),c=a[t];if(c!==rl[t]){const p=c.apply(e,o);return l?ve(p):p}let m=i;a!==e&&(l?m=function(p,g){return i.call(this,ve(p),g,e)}:i.length>2&&(m=function(p,g){return i.call(this,p,g,e)}));const u=c.call(a,m,s);return l&&r?r(u):u}function or(e,t,i,s){const r=zn(e);let o=i;return r!==e&&(Le(e)?i.length>3&&(o=function(a,l,c){return i.call(this,a,l,c,e)}):o=function(a,l,c){return i.call(this,a,ve(l),c,e)}),r[t](o,...s)}function Wn(e,t,i){const s=$(e);Ce(s,"iterate",Si);const r=s[t](...i);return(r===-1||r===!1)&&en(i[0])?(i[0]=$(i[0]),s[t](...i)):r}function Di(e,t,i=[]){Ii(),Un();const s=$(e)[t].apply(e,i);return _n(),xi(),s}const ol=Fa("__proto__,__v_isRef,__isVue"),ar=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ni));function al(e){Ni(e)||(e=String(e));const t=$(this);return Ce(t,"has",e),t.hasOwnProperty(e)}class lr{constructor(t=!1,i=!1){this._isReadonly=t,this._isShallow=i}get(t,i,s){if(i==="__v_skip")return t.__v_skip;const r=this._isReadonly,o=this._isShallow;if(i==="__v_isReactive")return!r;if(i==="__v_isReadonly")return r;if(i==="__v_isShallow")return o;if(i==="__v_raw")return s===(r?o?ur:hr:o?yl:pr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const a=de(t);if(!r){let c;if(a&&(c=sl[i]))return c;if(i==="hasOwnProperty")return al}const l=Reflect.get(t,i,Oe(t)?t:s);return(Ni(i)?ar.has(i):ol(i))||(r||Ce(t,"get",i),o)?l:Oe(l)?a&&vn(i)?l:l.value:Me(l)?r?fr(l):mr(l):l}}class ll extends lr{constructor(t=!1){super(!1,t)}set(t,i,s,r){let o=t[i];if(!this._isShallow){const c=It(o);if(!Le(s)&&!It(s)&&(o=$(o),s=$(s)),!de(t)&&Oe(o)&&!Oe(s))return c?!1:(o.value=s,!0)}const a=de(t)&&vn(i)?Number(i)<t.length:ye(t,i),l=Reflect.set(t,i,s,Oe(t)?t:r);return t===$(r)&&(a?Qt(s,o)&&Bt(t,"set",i,s,o):Bt(t,"add",i,s)),l}deleteProperty(t,i){const s=ye(t,i),r=t[i],o=Reflect.deleteProperty(t,i);return o&&s&&Bt(t,"delete",i,void 0,r),o}has(t,i){const s=Reflect.has(t,i);return(!Ni(i)||!ar.has(i))&&Ce(t,"has",i),s}ownKeys(t){return Ce(t,"iterate",de(t)?"length":jt),Reflect.ownKeys(t)}}class cr extends lr{constructor(t=!1){super(!0,t)}set(t,i){return process.env.NODE_ENV!=="production"&&Tt(`Set operation on key "${String(i)}" failed: target is readonly.`,t),!0}deleteProperty(t,i){return process.env.NODE_ENV!=="production"&&Tt(`Delete operation on key "${String(i)}" failed: target is readonly.`,t),!0}}const cl=new ll,dl=new cr,pl=new cr(!0),Yn=e=>e,Zi=e=>Reflect.getPrototypeOf(e);function hl(e,t,i){return function(...s){const r=this.__v_raw,o=$(r),a=ni(o),l=e==="entries"||e===Symbol.iterator&&a,c=e==="keys"&&a,m=r[e](...s),u=i?Yn:t?$n:ve;return!t&&Ce(o,"iterate",c?Hn:jt),{next(){const{value:p,done:g}=m.next();return g?{value:p,done:g}:{value:l?[u(p[0]),u(p[1])]:u(p),done:g}},[Symbol.iterator](){return this}}}}function Xi(e){return function(...t){if(process.env.NODE_ENV!=="production"){const i=t[0]?`on key "${t[0]}" `:"";Tt(`${Ha(e)} operation ${i}failed: target is readonly.`,$(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function ul(e,t){const i={get(r){const o=this.__v_raw,a=$(o),l=$(r);e||(Qt(r,l)&&Ce(a,"get",r),Ce(a,"get",l));const{has:c}=Zi(a),m=t?Yn:e?$n:ve;if(c.call(a,r))return m(o.get(r));if(c.call(a,l))return m(o.get(l));o!==a&&o.get(r)},get size(){const r=this.__v_raw;return!e&&Ce($(r),"iterate",jt),Reflect.get(r,"size",r)},has(r){const o=this.__v_raw,a=$(o),l=$(r);return e||(Qt(r,l)&&Ce(a,"has",r),Ce(a,"has",l)),r===l?o.has(r):o.has(r)||o.has(l)},forEach(r,o){const a=this,l=a.__v_raw,c=$(l),m=t?Yn:e?$n:ve;return!e&&Ce(c,"iterate",jt),l.forEach((u,p)=>r.call(o,m(u),m(p),a))}};return Pe(i,e?{add:Xi("add"),set:Xi("set"),delete:Xi("delete"),clear:Xi("clear")}:{add(r){!t&&!Le(r)&&!It(r)&&(r=$(r));const o=$(this);return Zi(o).has.call(o,r)||(o.add(r),Bt(o,"add",r,r)),this},set(r,o){!t&&!Le(o)&&!It(o)&&(o=$(o));const a=$(this),{has:l,get:c}=Zi(a);let m=l.call(a,r);m?process.env.NODE_ENV!=="production"&&dr(a,l,r):(r=$(r),m=l.call(a,r));const u=c.call(a,r);return a.set(r,o),m?Qt(o,u)&&Bt(a,"set",r,o,u):Bt(a,"add",r,o),this},delete(r){const o=$(this),{has:a,get:l}=Zi(o);let c=a.call(o,r);c?process.env.NODE_ENV!=="production"&&dr(o,a,r):(r=$(r),c=a.call(o,r));const m=l?l.call(o,r):void 0,u=o.delete(r);return c&&Bt(o,"delete",r,void 0,m),u},clear(){const r=$(this),o=r.size!==0,a=process.env.NODE_ENV!=="production"?ni(r)?new Map(r):new Set(r):void 0,l=r.clear();return o&&Bt(r,"clear",void 0,void 0,a),l}}),["keys","values","entries",Symbol.iterator].forEach(r=>{i[r]=hl(r,e,t)}),i}function Zn(e,t){const i=ul(e,t);return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(ye(i,r)&&r in s?i:s,r,o)}const ml={get:Zn(!1,!1)},fl={get:Zn(!0,!1)},gl={get:Zn(!0,!0)};function dr(e,t,i){const s=$(i);if(s!==i&&t.call(e,s)){const r=Xs(e);Tt(`Reactive ${r} contains both the raw and reactive versions of the same object${r==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const pr=new WeakMap,yl=new WeakMap,hr=new WeakMap,ur=new WeakMap;function Al(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function kl(e){return e.__v_skip||!Object.isExtensible(e)?0:Al(Xs(e))}function mr(e){return It(e)?e:Xn(e,!1,cl,ml,pr)}function fr(e){return Xn(e,!0,dl,fl,hr)}function $i(e){return Xn(e,!0,pl,gl,ur)}function Xn(e,t,i,s,r){if(!Me(e))return process.env.NODE_ENV!=="production"&&Tt(`value cannot be made ${t?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=kl(e);if(o===0)return e;const a=r.get(e);if(a)return a;const l=new Proxy(e,o===2?s:i);return r.set(e,l),l}function ri(e){return It(e)?ri(e.__v_raw):!!(e&&e.__v_isReactive)}function It(e){return!!(e&&e.__v_isReadonly)}function Le(e){return!!(e&&e.__v_isShallow)}function en(e){return e?!!e.__v_raw:!1}function $(e){const t=e&&e.__v_raw;return t?$(t):e}function bl(e){return!ye(e,"__v_skip")&&Object.isExtensible(e)&&za(e,"__v_skip",!0),e}const ve=e=>Me(e)?mr(e):e,$n=e=>Me(e)?fr(e):e;function Oe(e){return e?e.__v_isRef===!0:!1}function El(e){return Oe(e)?e.value:e}const Cl={get:(e,t,i)=>t==="__v_raw"?e:El(Reflect.get(e,t,i)),set:(e,t,i,s)=>{const r=e[t];return Oe(r)&&!Oe(i)?(r.value=i,!0):Reflect.set(e,t,i,s)}};function wl(e){return ri(e)?e:new Proxy(e,Cl)}const tn={},nn=new WeakMap;let Ut;function Nl(e,t=!1,i=Ut){if(i){let s=nn.get(i);s||nn.set(i,s=[]),s.push(e)}else process.env.NODE_ENV!=="production"&&!t&&Tt("onWatcherCleanup() was called when there was no active watcher to associate with.")}function Tl(e,t,i=He){const{immediate:s,deep:r,once:o,scheduler:a,augmentJob:l,call:c}=i,m=k=>{(i.onWarn||Tt)("Invalid watch source: ",k,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},u=k=>r?k:Le(k)||r===!1||r===0?xt(k,1):xt(k);let p,g,A,w,M=!1,G=!1;if(Oe(e)?(g=()=>e.value,M=Le(e)):ri(e)?(g=()=>u(e),M=!0):de(e)?(G=!0,M=e.some(k=>ri(k)||Le(k)),g=()=>e.map(k=>{if(Oe(k))return k.value;if(ri(k))return u(k);if(Ee(k))return c?c(k,2):k();process.env.NODE_ENV!=="production"&&m(k)})):Ee(e)?t?g=c?()=>c(e,2):e:g=()=>{if(A){Ii();try{A()}finally{xi()}}const k=Ut;Ut=p;try{return c?c(e,3,[w]):e(w)}finally{Ut=k}}:(g=ii,process.env.NODE_ENV!=="production"&&m(e)),t&&r){const k=g,N=r===!0?1/0:r;g=()=>xt(k(),N)}const K=()=>{p.stop()};if(o&&t){const k=t;t=(...N)=>{k(...N),K()}}let z=G?new Array(e.length).fill(tn):tn;const x=k=>{if(!(!(p.flags&1)||!p.dirty&&!k))if(t){const N=p.run();if(r||M||(G?N.some((S,j)=>Qt(S,z[j])):Qt(N,z))){A&&A();const S=Ut;Ut=p;try{const j=[N,z===tn?void 0:G&&z[0]===tn?[]:z,w];z=N,c?c(t,3,j):t(...j)}finally{Ut=S}}}else p.run()};return l&&l(x),p=new Xa(g),p.scheduler=a?()=>a(x,!1):x,w=k=>Nl(k,!1,p),A=p.onStop=()=>{const k=nn.get(p);if(k){if(c)c(k,4);else for(const N of k)N();nn.delete(p)}},process.env.NODE_ENV!=="production"&&(p.onTrack=i.onTrack,p.onTrigger=i.onTrigger),t?s?x(!0):z=p.run():a?a(x.bind(null,!0),!0):p.run(),K.pause=p.pause.bind(p),K.resume=p.resume.bind(p),K.stop=K,K}function xt(e,t=1/0,i){if(t<=0||!Me(e)||e.__v_skip||(i=i||new Set,i.has(e)))return e;if(i.add(e),t--,Oe(e))xt(e.value,t,i);else if(de(e))for(let s=0;s<e.length;s++)xt(e[s],t,i);else if(_a(e)||ni(e))e.forEach(s=>{xt(s,t,i)});else if(Ja(e)){for(const s in e)xt(e[s],t,i);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&xt(e[s],t,i)}return e}/**
|
|
10
|
-
* @vue/runtime-core v3.5.18
|
|
11
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
-
* @license MIT
|
|
13
|
-
**/const _t=[];function Bl(e){_t.push(e)}function Il(){_t.pop()}let es=!1;function he(e,...t){if(es)return;es=!0,Ii();const i=_t.length?_t[_t.length-1].component:null,s=i&&i.appContext.config.warnHandler,r=xl();if(s)sn(s,i,11,[e+t.map(o=>{var a,l;return(l=(a=o.toString)==null?void 0:a.call(o))!=null?l:JSON.stringify(o)}).join(""),i&&i.proxy,r.map(({vnode:o})=>`at <${vr(i,o.type)}>`).join(`
|
|
1
|
+
(function(qe,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue"),require("dsbridge"),require("checked-pick-app")):typeof define=="function"&&define.amd?define(["exports","vue","dsbridge","checked-pick-app"],n):(qe=typeof globalThis<"u"?globalThis:qe||self,n(qe["ddy-process-h5"]={},qe.Vue,qe.dsbridge,qe["checked-pick-app"]))})(this,function(qe,n,Qa,yt){"use strict";const Gs=(e=>e&&typeof e=="object"&&"default"in e?e:{default:e})(Qa);function Ua(e,t){const i=Object.create(null),s=e.split(",");for(let r=0;r<s.length;r++)i[s[r]]=!0;return t?r=>!!i[r.toLowerCase()]:r=>!!i[r]}const nt=process.env.NODE_ENV!=="production"?Object.freeze({}):{};process.env.NODE_ENV!=="production"&&Object.freeze([]);const _s=()=>{},ja=()=>!1,Ga=/^on[^a-z]/,_a=e=>Ga.test(e),ve=Object.assign,qa=(e,t)=>{const i=e.indexOf(t);i>-1&&e.splice(i,1)},Ja=Object.prototype.hasOwnProperty,fe=(e,t)=>Ja.call(e,t),oe=Array.isArray,ei=e=>ji(e)==="[object Map]",za=e=>ji(e)==="[object Set]",Ce=e=>typeof e=="function",He=e=>typeof e=="string",Sn=e=>typeof e=="symbol",De=e=>e!==null&&typeof e=="object",Ka=e=>De(e)&&Ce(e.then)&&Ce(e.catch),Ha=Object.prototype.toString,ji=e=>Ha.call(e),qs=e=>ji(e).slice(8,-1),Ya=e=>ji(e)==="[object Object]",Dn=e=>He(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Wa=(e=>{const t=Object.create(null);return i=>t[i]||(t[i]=e(i))})(e=>e.charAt(0).toUpperCase()+e.slice(1)),Gi=(e,t)=>!Object.is(e,t),Xa=(e,t,i)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:i})};let Js;const Pn=()=>Js||(Js=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Mn(e){if(oe(e)){const t={};for(let i=0;i<e.length;i++){const s=e[i],r=He(s)?tl(s):Mn(s);if(r)for(const o in r)t[o]=r[o]}return t}else{if(He(e))return e;if(De(e))return e}}const Za=/;(?![^(]*\))/g,$a=/:([^]+)/,el=/\/\*[^]*?\*\//g;function tl(e){const t={};return e.replace(el,"").split(Za).forEach(i=>{if(i){const s=i.split($a);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function On(e){let t="";if(He(e))t=e;else if(oe(e))for(let i=0;i<e.length;i++){const s=On(e[i]);s&&(t+=s+" ")}else if(De(e))for(const i in e)e[i]&&(t+=i+" ");return t.trim()}function zs(e,...t){`${e}`,[...t]}let Ks;function il(e,t=Ks){t&&t.active&&t.effects.push(e)}function nl(){return Ks}const Vn=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Hs=e=>(e.w&At)>0,Ys=e=>(e.n&At)>0,sl=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=At},rl=e=>{const{deps:t}=e;if(t.length){let i=0;for(let s=0;s<t.length;s++){const r=t[s];Hs(r)&&!Ys(r)?r.delete(e):t[i++]=r,r.w&=~At,r.n&=~At}t.length=i}},Rn=new WeakMap;let bi=0,At=1;const Ln=30;let Pe;const Vt=Symbol(process.env.NODE_ENV!=="production"?"iterate":""),vn=Symbol(process.env.NODE_ENV!=="production"?"Map key iterate":"");class ol{constructor(t,i=null,s){this.fn=t,this.scheduler=i,this.active=!0,this.deps=[],this.parent=void 0,il(this,s)}run(){if(!this.active)return this.fn();let t=Pe,i=Rt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Pe,Pe=this,Rt=!0,At=1<<++bi,bi<=Ln?sl(this):Ws(this),this.fn()}finally{bi<=Ln&&rl(this),At=1<<--bi,Pe=this.parent,Rt=i,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Pe===this?this.deferStop=!0:this.active&&(Ws(this),this.onStop&&this.onStop(),this.active=!1)}}function Ws(e){const{deps:t}=e;if(t.length){for(let i=0;i<t.length;i++)t[i].delete(e);t.length=0}}let Rt=!0;const Xs=[];function Zs(){Xs.push(Rt),Rt=!1}function $s(){const e=Xs.pop();Rt=e===void 0?!0:e}function Me(e,t,i){if(Rt&&Pe){let s=Rn.get(e);s||Rn.set(e,s=new Map);let r=s.get(i);r||s.set(i,r=Vn());const o=process.env.NODE_ENV!=="production"?{effect:Pe,target:e,type:t,key:i}:void 0;al(r,o)}}function al(e,t){let i=!1;bi<=Ln?Ys(e)||(e.n|=At,i=!Hs(e)):i=!e.has(Pe),i&&(e.add(Pe),Pe.deps.push(e),process.env.NODE_ENV!=="production"&&Pe.onTrack&&Pe.onTrack(ve({effect:Pe},t)))}function kt(e,t,i,s,r,o){const a=Rn.get(e);if(!a)return;let l=[];if(t==="clear")l=[...a.values()];else if(i==="length"&&oe(e)){const m=Number(s);a.forEach((u,p)=>{(p==="length"||p>=m)&&l.push(u)})}else switch(i!==void 0&&l.push(a.get(i)),t){case"add":oe(e)?Dn(i)&&l.push(a.get("length")):(l.push(a.get(Vt)),ei(e)&&l.push(a.get(vn)));break;case"delete":oe(e)||(l.push(a.get(Vt)),ei(e)&&l.push(a.get(vn)));break;case"set":ei(e)&&l.push(a.get(Vt));break}const c=process.env.NODE_ENV!=="production"?{target:e,type:t,key:i,newValue:s,oldValue:r,oldTarget:o}:void 0;if(l.length===1)l[0]&&(process.env.NODE_ENV!=="production"?_i(l[0],c):_i(l[0]));else{const m=[];for(const u of l)u&&m.push(...u);process.env.NODE_ENV!=="production"?_i(Vn(m),c):_i(Vn(m))}}function _i(e,t){const i=oe(e)?e:[...e];for(const s of i)s.computed&&er(s,t);for(const s of i)s.computed||er(s,t)}function er(e,t){(e!==Pe||e.allowRecurse)&&(process.env.NODE_ENV!=="production"&&e.onTrigger&&e.onTrigger(ve({effect:e},t)),e.scheduler?e.scheduler():e.run())}const ll=Ua("__proto__,__v_isRef,__isVue"),tr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Sn)),cl=Fn(),dl=Fn(!0),pl=Fn(!0,!0),ir=hl();function hl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...i){const s=ne(this);for(let o=0,a=this.length;o<a;o++)Me(s,"get",o+"");const r=s[t](...i);return r===-1||r===!1?s[t](...i.map(ne)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...i){Zs();const s=ne(this)[t].apply(this,i);return $s(),s}}),e}function ul(e){const t=ne(this);return Me(t,"has",e),t.hasOwnProperty(e)}function Fn(e=!1,t=!1){return function(s,r,o){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&o===(e?t?pr:dr:t?Sl:cr).get(s))return s;const a=oe(s);if(!e){if(a&&fe(ir,r))return Reflect.get(ir,r,o);if(r==="hasOwnProperty")return ul}const l=Reflect.get(s,r,o);return(Sn(r)?tr.has(r):ll(r))||(e||Me(s,"get",r),t)?l:Oe(l)?a&&Dn(r)?l:l.value:De(l)?e?ur(l):hr(l):l}}const ml=fl();function fl(e=!1){return function(i,s,r,o){let a=i[s];if(vt(a)&&Oe(a)&&!Oe(r))return!1;if(!e&&(!Gn(r)&&!vt(r)&&(a=ne(a),r=ne(r)),!oe(i)&&Oe(a)&&!Oe(r)))return a.value=r,!0;const l=oe(i)&&Dn(s)?Number(s)<i.length:fe(i,s),c=Reflect.set(i,s,r,o);return i===ne(o)&&(l?Gi(r,a)&&kt(i,"set",s,r,a):kt(i,"add",s,r)),c}}function gl(e,t){const i=fe(e,t),s=e[t],r=Reflect.deleteProperty(e,t);return r&&i&&kt(e,"delete",t,void 0,s),r}function yl(e,t){const i=Reflect.has(e,t);return(!Sn(t)||!tr.has(t))&&Me(e,"has",t),i}function Al(e){return Me(e,"iterate",oe(e)?"length":Vt),Reflect.ownKeys(e)}const kl={get:cl,set:ml,deleteProperty:gl,has:yl,ownKeys:Al},nr={get:dl,set(e,t){return process.env.NODE_ENV!=="production"&&zs(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return process.env.NODE_ENV!=="production"&&zs(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},El=ve({},nr,{get:pl}),Qn=e=>e,qi=e=>Reflect.getPrototypeOf(e);function Ji(e,t,i=!1,s=!1){e=e.__v_raw;const r=ne(e),o=ne(t);i||(t!==o&&Me(r,"get",t),Me(r,"get",o));const{has:a}=qi(r),l=s?Qn:i?Jn:qn;if(a.call(r,t))return l(e.get(t));if(a.call(r,o))return l(e.get(o));e!==r&&e.get(t)}function zi(e,t=!1){const i=this.__v_raw,s=ne(i),r=ne(e);return t||(e!==r&&Me(s,"has",e),Me(s,"has",r)),e===r?i.has(e):i.has(e)||i.has(r)}function Ki(e,t=!1){return e=e.__v_raw,!t&&Me(ne(e),"iterate",Vt),Reflect.get(e,"size",e)}function sr(e){e=ne(e);const t=ne(this);return qi(t).has.call(t,e)||(t.add(e),kt(t,"add",e,e)),this}function rr(e,t){t=ne(t);const i=ne(this),{has:s,get:r}=qi(i);let o=s.call(i,e);o?process.env.NODE_ENV!=="production"&&lr(i,s,e):(e=ne(e),o=s.call(i,e));const a=r.call(i,e);return i.set(e,t),o?Gi(t,a)&&kt(i,"set",e,t,a):kt(i,"add",e,t),this}function or(e){const t=ne(this),{has:i,get:s}=qi(t);let r=i.call(t,e);r?process.env.NODE_ENV!=="production"&&lr(t,i,e):(e=ne(e),r=i.call(t,e));const o=s?s.call(t,e):void 0,a=t.delete(e);return r&&kt(t,"delete",e,void 0,o),a}function ar(){const e=ne(this),t=e.size!==0,i=process.env.NODE_ENV!=="production"?ei(e)?new Map(e):new Set(e):void 0,s=e.clear();return t&&kt(e,"clear",void 0,void 0,i),s}function Hi(e,t){return function(s,r){const o=this,a=o.__v_raw,l=ne(a),c=t?Qn:e?Jn:qn;return!e&&Me(l,"iterate",Vt),a.forEach((m,u)=>s.call(r,c(m),c(u),o))}}function Yi(e,t,i){return function(...s){const r=this.__v_raw,o=ne(r),a=ei(o),l=e==="entries"||e===Symbol.iterator&&a,c=e==="keys"&&a,m=r[e](...s),u=i?Qn:t?Jn:qn;return!t&&Me(o,"iterate",c?vn:Vt),{next(){const{value:p,done:y}=m.next();return y?{value:p,done:y}:{value:l?[u(p[0]),u(p[1])]:u(p),done:y}},[Symbol.iterator](){return this}}}}function Et(e){return function(...t){if(process.env.NODE_ENV!=="production"){const i=t[0]?`on key "${t[0]}" `:"";`${Wa(e)}${i}`,ne(this)}return e==="delete"?!1:this}}function bl(){const e={get(o){return Ji(this,o)},get size(){return Ki(this)},has:zi,add:sr,set:rr,delete:or,clear:ar,forEach:Hi(!1,!1)},t={get(o){return Ji(this,o,!1,!0)},get size(){return Ki(this)},has:zi,add:sr,set:rr,delete:or,clear:ar,forEach:Hi(!1,!0)},i={get(o){return Ji(this,o,!0)},get size(){return Ki(this,!0)},has(o){return zi.call(this,o,!0)},add:Et("add"),set:Et("set"),delete:Et("delete"),clear:Et("clear"),forEach:Hi(!0,!1)},s={get(o){return Ji(this,o,!0,!0)},get size(){return Ki(this,!0)},has(o){return zi.call(this,o,!0)},add:Et("add"),set:Et("set"),delete:Et("delete"),clear:Et("clear"),forEach:Hi(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Yi(o,!1,!1),i[o]=Yi(o,!0,!1),t[o]=Yi(o,!1,!0),s[o]=Yi(o,!0,!0)}),[e,i,t,s]}const[Cl,wl,Nl,Tl]=bl();function Un(e,t){const i=t?e?Tl:Nl:e?wl:Cl;return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(fe(i,r)&&r in s?i:s,r,o)}const Il={get:Un(!1,!1)},Bl={get:Un(!0,!1)},xl={get:Un(!0,!0)};function lr(e,t,i){const s=ne(i);if(s!==i&&t.call(e,s)){const r=qs(e);`${r}`}}const cr=new WeakMap,Sl=new WeakMap,dr=new WeakMap,pr=new WeakMap;function Dl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Pl(e){return e.__v_skip||!Object.isExtensible(e)?0:Dl(qs(e))}function hr(e){return vt(e)?e:jn(e,!1,kl,Il,cr)}function ur(e){return jn(e,!0,nr,Bl,dr)}function Wi(e){return jn(e,!0,El,xl,pr)}function jn(e,t,i,s,r){if(!De(e))return process.env.NODE_ENV!=="production"&&`${String(e)}`,e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const a=Pl(e);if(a===0)return e;const l=new Proxy(e,a===2?s:i);return r.set(e,l),l}function Lt(e){return vt(e)?Lt(e.__v_raw):!!(e&&e.__v_isReactive)}function vt(e){return!!(e&&e.__v_isReadonly)}function Gn(e){return!!(e&&e.__v_isShallow)}function _n(e){return Lt(e)||vt(e)}function ne(e){const t=e&&e.__v_raw;return t?ne(t):e}function Ml(e){return Xa(e,"__v_skip",!0),e}const qn=e=>De(e)?hr(e):e,Jn=e=>De(e)?ur(e):e;function Oe(e){return!!(e&&e.__v_isRef===!0)}function Ol(e){return Oe(e)?e.value:e}const Vl={get:(e,t,i)=>Ol(Reflect.get(e,t,i)),set:(e,t,i,s)=>{const r=e[t];return Oe(r)&&!Oe(i)?(r.value=i,!0):Reflect.set(e,t,i,s)}};function Rl(e){return Lt(e)?e:new Proxy(e,Vl)}const Ft=[];function Ll(e){Ft.push(e)}function vl(){Ft.pop()}function Te(e,...t){if(process.env.NODE_ENV==="production")return;Zs();const i=Ft.length?Ft[Ft.length-1].component:null,s=i&&i.appContext.config.warnHandler,r=Fl();if(s)Qt(s,i,11,[e+t.join(""),i&&i.proxy,r.map(({vnode:o})=>`at <${Lr(i,o.type)}>`).join(`
|
|
14
2
|
`),r]);else{const o=[`[Vue warn]: ${e}`,...t];r.length&&o.push(`
|
|
15
|
-
`,...
|
|
16
|
-
`],...Dl(i))}),t}function Dl({vnode:e,recurseCount:t}){const i=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,r=` at <${vr(e.component,e.type,s)}`,o=">"+i;return e.props?[r,...Pl(e.props),o]:[r+o]}function Pl(e){const t=[],i=Object.keys(e);return i.slice(0,3).forEach(s=>{t.push(...gr(s,e[s]))}),i.length>3&&t.push(" ..."),t}function gr(e,t,i){return $e(t)?(t=JSON.stringify(t),i?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?i?t:[`${e}=${t}`]:Oe(t)?(t=gr(e,$(t.value),!0),i?t:[`${e}=Ref<`,t,">"]):Ee(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=$(t),i?t:[`${e}=`,t])}const yr={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",[0]:"setup function",[1]:"render function",[2]:"watcher getter",[3]:"watcher callback",[4]:"watcher cleanup function",[5]:"native event handler",[6]:"component event handler",[7]:"vnode hook",[8]:"directive hook",[9]:"transition hook",[10]:"app errorHandler",[11]:"app warnHandler",[12]:"ref function",[13]:"async component loader",[14]:"scheduler flush",[15]:"component update",[16]:"app unmount cleanup function"};function sn(e,t,i,s){try{return s?e(...s):e()}catch(r){ts(r,t,i)}}function Ar(e,t,i,s){if(Ee(e)){const r=sn(e,t,i,s);return r&&Ga(r)&&r.catch(o=>{ts(o,t,i)}),r}if(de(e)){const r=[];for(let o=0;o<e.length;o++)r.push(Ar(e[o],t,i,s));return r}else process.env.NODE_ENV!=="production"&&he(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function ts(e,t,i,s=!0){const r=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||He;if(t){let l=t.parent;const c=t.proxy,m=process.env.NODE_ENV!=="production"?yr[i]:`https://vuejs.org/error-reference/#runtime-${i}`;for(;l;){const u=l.ec;if(u){for(let p=0;p<u.length;p++)if(u[p](e,c,m)===!1)return}l=l.parent}if(o){Ii(),sn(o,null,10,[e,c,m]),xi();return}}Ml(e,i,r,s,a)}function Ml(e,t,i,s=!0,r=!1){if(process.env.NODE_ENV!=="production"){const o=yr[t];if(i&&Bl(i),he(`Unhandled error${o?` during execution of ${o}`:""}`),i&&Il(),s)throw e;console.error(e)}else{if(r)throw e;console.error(e)}}const ze=[];let ft=-1;const oi=[];let St=null,ai=0;const kr=Promise.resolve();let rn=null;const Ol=100;function Vl(e){const t=rn||kr;return e?t.then(this?e.bind(this):e):t}function Rl(e){let t=ft+1,i=ze.length;for(;t<i;){const s=t+i>>>1,r=ze[s],o=Pi(r);o<e||o===e&&r.flags&2?t=s+1:i=s}return t}function is(e){if(!(e.flags&1)){const t=Pi(e),i=ze[ze.length-1];!i||!(e.flags&2)&&t>=Pi(i)?ze.push(e):ze.splice(Rl(t),0,e),e.flags|=1,br()}}function br(){rn||(rn=kr.then(Cr))}function Er(e){de(e)?oi.push(...e):St&&e.id===-1?St.splice(ai+1,0,e):e.flags&1||(oi.push(e),e.flags|=1),br()}function Ll(e){if(oi.length){const t=[...new Set(oi)].sort((i,s)=>Pi(i)-Pi(s));if(oi.length=0,St){St.push(...t);return}for(St=t,process.env.NODE_ENV!=="production"&&(e=e||new Map),ai=0;ai<St.length;ai++){const i=St[ai];process.env.NODE_ENV!=="production"&&wr(e,i)||(i.flags&4&&(i.flags&=-2),i.flags&8||i(),i.flags&=-2)}St=null,ai=0}}const Pi=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Cr(e){process.env.NODE_ENV!=="production"&&(e=e||new Map);const t=process.env.NODE_ENV!=="production"?i=>wr(e,i):ii;try{for(ft=0;ft<ze.length;ft++){const i=ze[ft];if(i&&!(i.flags&8)){if(process.env.NODE_ENV!=="production"&&t(i))continue;i.flags&4&&(i.flags&=-2),sn(i,i.i,i.i?15:14),i.flags&4||(i.flags&=-2)}}}finally{for(;ft<ze.length;ft++){const i=ze[ft];i&&(i.flags&=-2)}ft=-1,ze.length=0,Ll(e),rn=null,(ze.length||oi.length)&&Cr(e)}}function wr(e,t){const i=e.get(t)||0;if(i>Ol){const s=t.i,r=s&&Lr(s.type);return ts(`Maximum recursive updates exceeded${r?` in component <${r}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return e.set(t,i+1),!1}const ns=new Map;process.env.NODE_ENV!=="production"&&(Wi().__VUE_HMR_RUNTIME__={createRecord:ss(vl),rerender:ss(Fl),reload:ss(Ql)});const on=new Map;function vl(e,t){return on.has(e)?!1:(on.set(e,{initialDef:an(t),instances:new Set}),!0)}function an(e){return Fr(e)?e.__vccOpts:e}function Fl(e,t){const i=on.get(e);!i||(i.initialDef.render=t,[...i.instances].forEach(s=>{t&&(s.render=t,an(s.type).render=t),s.renderCache=[],s.update()}))}function Ql(e,t){const i=on.get(e);if(!i)return;t=an(t),Nr(i.initialDef,t);const s=[...i.instances];for(let r=0;r<s.length;r++){const o=s[r],a=an(o.type);let l=ns.get(a);l||(a!==i.initialDef&&Nr(a,t),ns.set(a,l=new Set)),l.add(o),o.appContext.propsCache.delete(o.type),o.appContext.emitsCache.delete(o.type),o.appContext.optionsCache.delete(o.type),o.ceReload?(l.add(o),o.ceReload(t.styles),l.delete(o)):o.parent?is(()=>{o.parent.update(),l.delete(o)}):o.appContext.reload?o.appContext.reload():typeof window<"u"&&window.location.reload(),o.root.ce&&o!==o.root&&o.root.ce._removeChildStyle(a)}Er(()=>{ns.clear()})}function Nr(e,t){Pe(e,t);for(const i in e)i!=="__file"&&!(i in t)&&delete e[i]}function ss(e){return(t,i)=>{try{return e(t,i)}catch(s){console.error(s)}}}let li,ln=[];function Tr(e,t){var i,s;li=e,li?(li.enabled=!0,ln.forEach(({event:r,args:o})=>li.emit(r,...o)),ln=[]):typeof window<"u"&&window.HTMLElement&&!((s=(i=window.navigator)==null?void 0:i.userAgent)!=null&&s.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{Tr(o,t)}),setTimeout(()=>{li||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,ln=[])},3e3)):ln=[]}let gt=null,jl=null;const Ul=e=>e.__isTeleport;function Br(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Br(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function tt(e,t){return Ee(e)?(()=>Pe({name:e.name},t,{setup:e}))():e}Wi().requestIdleCallback,Wi().cancelIdleCallback;const _l=Symbol.for("v-ndc"),rs=e=>e?Ac(e)?kc(e):rs(e.parent):null,Mi=Pe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>process.env.NODE_ENV!=="production"?$i(e.props):e.props,$attrs:e=>process.env.NODE_ENV!=="production"?$i(e.attrs):e.attrs,$slots:e=>process.env.NODE_ENV!=="production"?$i(e.slots):e.slots,$refs:e=>process.env.NODE_ENV!=="production"?$i(e.refs):e.refs,$parent:e=>rs(e.parent),$root:e=>rs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Jl(e),$forceUpdate:e=>e.f||(e.f=()=>{is(e.update)}),$nextTick:e=>e.n||(e.n=Vl.bind(e.proxy)),$watch:e=>nc.bind(e)}),Gl=e=>e==="_"||e==="$",os=(e,t)=>e!==He&&!e.__isScriptSetup&&ye(e,t),ql={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:i,setupState:s,data:r,props:o,accessCache:a,type:l,appContext:c}=e;if(process.env.NODE_ENV!=="production"&&t==="__isVue")return!0;let m;if(t[0]!=="$"){const A=a[t];if(A!==void 0)switch(A){case 1:return s[t];case 2:return r[t];case 4:return i[t];case 3:return o[t]}else{if(os(s,t))return a[t]=1,s[t];if(r!==He&&ye(r,t))return a[t]=2,r[t];if((m=e.propsOptions[0])&&ye(m,t))return a[t]=3,o[t];if(i!==He&&ye(i,t))return a[t]=4,i[t];a[t]=0}}const u=Mi[t];let p,g;if(u)return t==="$attrs"?(Ce(e.attrs,"get",""),process.env.NODE_ENV!=="production"&&void 0):process.env.NODE_ENV!=="production"&&t==="$slots"&&Ce(e,"get",t),u(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(i!==He&&ye(i,t))return a[t]=4,i[t];if(g=c.config.globalProperties,ye(g,t))return g[t];process.env.NODE_ENV!=="production"&>&&(!$e(t)||t.indexOf("__v")!==0)&&(r!==He&&Gl(t[0])&&ye(r,t)?he(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===gt&&he(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,i){const{data:s,setupState:r,ctx:o}=e;return os(r,t)?(r[t]=i,!0):process.env.NODE_ENV!=="production"&&r.__isScriptSetup&&ye(r,t)?(he(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):s!==He&&ye(s,t)?(s[t]=i,!0):ye(e.props,t)?(process.env.NODE_ENV!=="production"&&he(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(process.env.NODE_ENV!=="production"&&he(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(process.env.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(o,t,{enumerable:!0,configurable:!0,value:i}):o[t]=i,!0)},has({_:{data:e,setupState:t,accessCache:i,ctx:s,appContext:r,propsOptions:o}},a){let l;return!!i[a]||e!==He&&ye(e,a)||os(t,a)||(l=o[0])&&ye(l,a)||ye(s,a)||ye(Mi,a)||ye(r.config.globalProperties,a)},defineProperty(e,t,i){return i.get!=null?e._.accessCache[t]=0:ye(i,"value")&&this.set(e,t,i.value,null),Reflect.defineProperty(e,t,i)}};process.env.NODE_ENV!=="production"&&(ql.ownKeys=e=>(he("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));function Ir(e){return de(e)?e.reduce((t,i)=>(t[i]=null,t),{}):e}function Jl(e){const t=e.type,{mixins:i,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,l=o.get(t);let c;return l?c=l:!r.length&&!i&&!s?c=t:(c={},r.length&&r.forEach(m=>cn(c,m,a,!0)),cn(c,t,a)),Me(t)&&o.set(t,c),c}function cn(e,t,i,s=!1){const{mixins:r,extends:o}=t;o&&cn(e,o,i,!0),r&&r.forEach(a=>cn(e,a,i,!0));for(const a in t)if(s&&a==="expose")process.env.NODE_ENV!=="production"&&he('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const l=Hl[a]||i&&i[a];e[a]=l?l(e[a],t[a]):t[a]}return e}const Hl={data:xr,props:Dr,emits:Dr,methods:Oi,computed:Oi,beforeCreate:Ie,created:Ie,beforeMount:Ie,mounted:Ie,beforeUpdate:Ie,updated:Ie,beforeDestroy:Ie,beforeUnmount:Ie,destroyed:Ie,unmounted:Ie,activated:Ie,deactivated:Ie,errorCaptured:Ie,serverPrefetch:Ie,components:Oi,directives:Oi,watch:Kl,provide:xr,inject:zl};function xr(e,t){return t?e?function(){return Pe(Ee(e)?e.call(this,this):e,Ee(t)?t.call(this,this):t)}:t:e}function zl(e,t){return Oi(Sr(e),Sr(t))}function Sr(e){if(de(e)){const t={};for(let i=0;i<e.length;i++)t[e[i]]=e[i];return t}return e}function Ie(e,t){return e?[...new Set([].concat(e,t))]:t}function Oi(e,t){return e?Pe(Object.create(null),e,t):t}function Dr(e,t){return e?de(e)&&de(t)?[...new Set([...e,...t])]:Pe(Object.create(null),Ir(e),Ir(t!=null?t:{})):t}function Kl(e,t){if(!e)return t;if(!t)return e;const i=Pe(Object.create(null),e);for(const s in t)i[s]=Ie(e[s],t[s]);return i}function Wl(){return{app:null,config:{isNativeTag:Qa,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Yl=null;function Zl(e,t,i=!1){const s=gc();if(s||Yl){let r=s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return i&&Ee(t)?t.call(s&&s.proxy):t;process.env.NODE_ENV!=="production"&&he(`injection "${String(e)}" not found.`)}else process.env.NODE_ENV!=="production"&&he("inject() can only be used inside setup() or functional components.")}const Xl={},Pr=e=>Object.getPrototypeOf(e)===Xl,$l=oc,ec=Symbol.for("v-scx"),tc=()=>{{const e=Zl(ec);return e||process.env.NODE_ENV!=="production"&&he("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function ic(e,t,i=He){const{immediate:s,deep:r,flush:o,once:a}=i;process.env.NODE_ENV!=="production"&&!t&&(s!==void 0&&he('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&he('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),a!==void 0&&he('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=Pe({},i);process.env.NODE_ENV!=="production"&&(l.onWarn=he);const c=t&&s||!t&&o!=="post";let m;if(cs){if(o==="sync"){const A=tc();m=A.__watcherHandles||(A.__watcherHandles=[])}else if(!c){const A=()=>{};return A.stop=ii,A.resume=ii,A.pause=ii,A}}const u=hn;l.call=(A,w,M)=>Ar(A,u,w,M);let p=!1;o==="post"?l.scheduler=A=>{$l(A,u&&u.suspense)}:o!=="sync"&&(p=!0,l.scheduler=(A,w)=>{w?A():is(A)}),l.augmentJob=A=>{t&&(A.flags|=4),p&&(A.flags|=2,u&&(A.id=u.uid,A.i=u))};const g=Tl(e,t,l);return cs&&(m?m.push(g):c&&g()),g}function nc(e,t,i){const s=this.proxy,r=$e(e)?e.includes(".")?sc(s,e):()=>s[e]:e.bind(s,s);let o;Ee(t)?o=t:(o=t.handler,i=t);const a=yc(this),l=ic(r,o.bind(s),i);return a(),l}function sc(e,t){const i=t.split(".");return()=>{let s=e;for(let r=0;r<i.length&&s;r++)s=s[i[r]];return s}}function aE(){}const rc=e=>e.__isSuspense;function oc(e,t){t&&t.pendingBranch?de(e)?t.effects.push(...e):t.effects.push(e):Er(e)}const Mr=Symbol.for("v-fgt"),ac=Symbol.for("v-txt"),lc=Symbol.for("v-cmt");let ci=null;function cc(e){return e?e.__v_isVNode===!0:!1}const dc=(...e)=>Vr(...e),Or=({key:e})=>e!=null?e:null,dn=({ref:e,ref_key:t,ref_for:i})=>(typeof e=="number"&&(e=""+e),e!=null?$e(e)||Oe(e)||Ee(e)?{i:gt,r:e,k:t,f:!!i}:e:null);function pc(e,t=null,i=null,s=0,r=null,o=e===Mr?0:1,a=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Or(t),ref:t&&dn(t),scopeId:jl,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:gt};return l?(as(c,i),o&128&&e.normalize(c)):i&&(c.shapeFlag|=$e(i)?8:16),process.env.NODE_ENV!=="production"&&c.key!==c.key&&he("VNode created with invalid key (NaN). VNode type:",c.type),!a&&ci&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&ci.push(c),c}const hc=process.env.NODE_ENV!=="production"?dc:Vr;function Vr(e,t=null,i=null,s=0,r=null,o=!1){if((!e||e===_l)&&(process.env.NODE_ENV!=="production"&&!e&&he(`Invalid vnode type when creating vnode: ${e}.`),e=lc),cc(e)){const l=pn(e,t,!0);return i&&as(l,i),!o&&ci&&(l.shapeFlag&6?ci[ci.indexOf(e)]=l:ci.push(l)),l.patchFlag=-2,l}if(Fr(e)&&(e=e.__vccOpts),t){t=uc(t);let{class:l,style:c}=t;l&&!$e(l)&&(t.class=Qn(l)),Me(c)&&(en(c)&&!de(c)&&(c=Pe({},c)),t.style=Fn(c))}const a=$e(e)?1:rc(e)?128:Ul(e)?64:Me(e)?4:Ee(e)?2:0;return process.env.NODE_ENV!=="production"&&a&4&&en(e)&&(e=$(e),he("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
|
|
17
|
-
Component that was made reactive: `,e)),pc(e,t,i,s,r,a,o,!0)}function uc(e){return e?en(e)||Pr(e)?Pe({},e):e:null}function pn(e,t,i=!1,s=!1){const{props:r,ref:o,patchFlag:a,children:l,transition:c}=e,m=t?fc(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:m,key:m&&Or(m),ref:t&&t.ref?i&&o?de(o)?o.concat(dn(t)):[o,dn(t)]:dn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:process.env.NODE_ENV!=="production"&&a===-1&&de(l)?l.map(Rr):l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Mr?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&pn(e.ssContent),ssFallback:e.ssFallback&&pn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&Br(u,c.clone(u)),u}function Rr(e){const t=pn(e);return de(e.children)&&(t.children=e.children.map(Rr)),t}function mc(e=" ",t=0){return hc(ac,null,e,t)}function as(e,t){let i=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(de(t))i=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),as(e,r()),r._c&&(r._d=!0));return}else{i=32;const r=t._;!r&&!Pr(t)?t._ctx=gt:r===3&>&&(gt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ee(t)?(t={default:t,_ctx:gt},i=32):(t=String(t),s&64?(i=16,t=[mc(t)]):i=8);e.children=t,e.shapeFlag|=i}function fc(...e){const t={};for(let i=0;i<e.length;i++){const s=e[i];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=Qn([t.class,s.class]));else if(r==="style")t.style=Fn([t.style,s.style]);else if(ja(r)){const o=t[r],a=s[r];a&&o!==a&&!(de(o)&&o.includes(a))&&(t[r]=o?[].concat(o,a):a)}else r!==""&&(t[r]=s[r])}return t}Wl();let hn=null;const gc=()=>hn||gt;let ls;{const e=Wi(),t=(i,s)=>{let r;return(r=e[i])||(r=e[i]=[]),r.push(s),o=>{r.length>1?r.forEach(a=>a(o)):r[0](o)}};ls=t("__VUE_INSTANCE_SETTERS__",i=>hn=i),t("__VUE_SSR_SETTERS__",i=>cs=i)}const yc=e=>{const t=hn;return ls(e),e.scope.on(),()=>{e.scope.off(),ls(t)}};function Ac(e){return e.vnode.shapeFlag&4}let cs=!1;process.env.NODE_ENV;function kc(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(wl(bl(e.exposed)),{get(t,i){if(i in t)return t[i];if(i in Mi)return Mi[i](e)},has(t,i){return i in t||i in Mi}})):e.proxy}const bc=/(?:^|[-_])(\w)/g,Ec=e=>e.replace(bc,t=>t.toUpperCase()).replace(/[-_]/g,"");function Lr(e,t=!0){return Ee(e)?e.displayName||e.name:e.name||t&&e.__name}function vr(e,t,i=!1){let s=Lr(t);if(!s&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(s=r[1])}if(!s&&e&&e.parent){const r=o=>{for(const a in o)if(o[a]===t)return a};s=r(e.components||e.parent.type.components)||r(e.appContext.components)}return s?Ec(s):i?"App":"Anonymous"}function Fr(e){return Ee(e)&&"__vccOpts"in e}function Cc(){if(process.env.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},i={style:"color:#f5222d"},s={style:"color:#eb2f96"},r={__vue_custom_formatter:!0,header(p){if(!Me(p))return null;if(p.__isVue)return["div",e,"VueInstance"];if(Oe(p)){Ii();const g=p.value;return xi(),["div",{},["span",e,u(p)],"<",l(g),">"]}else{if(ri(p))return["div",{},["span",e,Le(p)?"ShallowReactive":"Reactive"],"<",l(p),`>${It(p)?" (readonly)":""}`];if(It(p))return["div",{},["span",e,Le(p)?"ShallowReadonly":"Readonly"],"<",l(p),">"]}return null},hasBody(p){return p&&p.__isVue},body(p){if(p&&p.__isVue)return["div",{},...o(p.$)]}};function o(p){const g=[];p.type.props&&p.props&&g.push(a("props",$(p.props))),p.setupState!==He&&g.push(a("setup",p.setupState)),p.data!==He&&g.push(a("data",$(p.data)));const A=c(p,"computed");A&&g.push(a("computed",A));const w=c(p,"inject");return w&&g.push(a("injected",w)),g.push(["div",{},["span",{style:s.style+";opacity:0.66"},"$ (internal): "],["object",{object:p}]]),g}function a(p,g){return g=Pe({},g),Object.keys(g).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},p],["div",{style:"padding-left:1.25em"},...Object.keys(g).map(A=>["div",{},["span",s,A+": "],l(g[A],!1)])]]:["span",{}]}function l(p,g=!0){return typeof p=="number"?["span",t,p]:typeof p=="string"?["span",i,JSON.stringify(p)]:typeof p=="boolean"?["span",s,p]:Me(p)?["object",{object:g?$(p):p}]:["span",i,String(p)]}function c(p,g){const A=p.type;if(Ee(A))return;const w={};for(const M in p.ctx)m(A,M,g)&&(w[M]=p.ctx[M]);return w}function m(p,g,A){const w=p[A];if(de(w)&&w.includes(g)||Me(w)&&g in w||p.extends&&m(p.extends,g,A)||p.mixins&&p.mixins.some(M=>m(M,g,A)))return!0}function u(p){return Le(p)?"ShallowRef":p.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(r):window.devtoolsFormatters=[r]}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;/**
|
|
18
|
-
* vue v3.5.18
|
|
19
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
20
|
-
* @license MIT
|
|
21
|
-
**/function wc(){Cc()}process.env.NODE_ENV!=="production"&&wc();const Nc=tt({name:"TopPopup",props:{titleText:{default:"top-popup",type:String},context:{default:"\u5185\u5BB9",type:String},cancelText:{default:"\u53D6\u6D88",type:String},comfigText:{default:"\u786E\u5B9A",type:String},comfig:{default:null,type:Function},cancel:{default:null,type:Function},isMask:{default:!0,type:Boolean},isMaskClose:{default:!0,type:Boolean},isTips:{default:!1,type:Boolean},isDrawer:{default:!1,type:Boolean},visible:{default:!1,type:Boolean},isIndex:{type:Number},width:{type:String,default:"95vw"},className:{type:String,default:""},appendClass:{type:String,default:""}},data(){return{show:!1,top:0,useHidden:!1}},watch:{visible:{handler(e,t){if(e)this.show=e,document.body.style.position=="fixed"&&document.body.style.overflow=="hidden"?this.useHidden=!0:this.useHidden=!1,this.top=window.scrollY,document.body.style.position="fixed",document.body.style.top=`${-top}px`,document.body.style.overflow="hidden";else{if(this.useHidden){this.show=e,this.$emit("update:visible",!1);return}else document.body.style.position="",document.body.style.top="",document.body.style.overflow="visible",window.scrollTo(0,this.top);this.show=e,this.$emit("update:visible",!1)}},immediate:!0}},methods:{handleOpen(){this.show=!0,this.top=window.scrollY,document.body.style.position="fixed",document.body.style.top=-this.top+"px"},handleClose(){document.body.style.position="",document.body.style.top="",window.scrollTo(0,this.top),this.show=!1,this.$emit("update:visible",!1),typeof this.cancel=="function"&&this.cancel()},handleCancel(){typeof this.cancel=="function"&&this.cancel(),this.handleClose()},handleComfig(){typeof this.comfig=="function"&&this.comfig()},isIOS(){let e=navigator.userAgent.includes("iPhone"),t=navigator.userAgent.includes("iPad");return e||t}},mounted(){this.$nextTick(()=>{const e=document.getElementsByClassName("process-warp")[0]?document.getElementsByClassName("process-warp")[0]:document.getElementsByClassName("sumbmitPopup-index-sumbit")[0].getElementsByClassName("top-popup")[0];e.append?e.append(this.$el):e.appendChild(this.$el),document.documentElement.scrollTop||document.body.scrollTop})}}),lE="",le=(e,t)=>{const i=e.__vccOpts||e;for(const[s,r]of t)i[s]=r;return i},Tc={class:"top-popup-header"},Bc={class:"header-title"},Ic={class:"top-popup-body"},xc={class:"top-popup-drawer-header"},Sc={class:"header-title"},Dc={class:"top-popup-drawer--body"},Pc={class:"top-tips-header"},Mc={class:"top-tips-body"},Oc={class:"top-tips-footer"};function Vc(e,t,i,s,r,o){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["top-popup-zindex",e.className]),style:n.normalizeStyle(`${e.isIndex?`z-index:${e.isIndex}`:""}`)},[n.createElementVNode("div",{class:"top-popup-mask",style:n.normalizeStyle(e.show&&e.isMask?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;"),onClick:t[0]||(t[0]=a=>e.isMaskClose&&e.handleClose())},null,4),!e.isTips&&!e.isDrawer?(n.openBlock(),n.createElementBlock("div",{key:0,class:"top-popup",style:n.normalizeStyle(e.show?"transform: translateY(0)":"transform: translateY(150%)")},[n.createElementVNode("div",Tc,[n.createElementVNode("div",{class:"header-cancel",onClick:t[1]||(t[1]=(...a)=>e.handleCancel&&e.handleCancel(...a))},n.toDisplayString(e.cancelText),1),n.createElementVNode("div",Bc,n.toDisplayString(e.titleText),1),n.createElementVNode("div",{class:"header-comfig",onClick:t[2]||(t[2]=(...a)=>e.handleComfig&&e.handleComfig(...a))},n.toDisplayString(e.comfigText),1)]),n.createElementVNode("div",Ic,[n.renderSlot(e.$slots,"default",{},void 0,!0)])],4)):!e.isTips&&e.isDrawer?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["top-popup-drawer",e.show?"top-popup-drawer--active":""]),style:n.normalizeStyle(e.width?`width:${e.width};`:"")},[n.createElementVNode("div",xc,[n.createElementVNode("div",{class:"header-cancel",onClick:t[3]||(t[3]=(...a)=>e.handleCancel&&e.handleCancel(...a))}," \u5173\u95ED "),n.createElementVNode("div",Sc,n.toDisplayString(e.titleText),1),t[6]||(t[6]=n.createElementVNode("div",{class:"header-comfig",style:{width:"20px"}},null,-1))]),n.createElementVNode("div",Dc,[n.renderSlot(e.$slots,"default",{},void 0,!0)])],6)):e.isTips&&!e.isDrawer?(n.openBlock(),n.createElementBlock("div",{key:2,class:"top-tips",style:n.normalizeStyle(e.show?"visibility: visible; opacity: 1; transform: scale(1)":"visibility: hidden; opacity: 0; transform: scale(1.2)")},[n.createElementVNode("div",Pc,n.toDisplayString(e.titleText),1),n.createElementVNode("div",Mc,n.toDisplayString(e.context),1),n.createElementVNode("div",Oc,[n.createElementVNode("div",{class:"top-tips-btn",onClick:t[4]||(t[4]=(...a)=>e.handleCancel&&e.handleCancel(...a))},n.toDisplayString(e.cancelText),1),n.createElementVNode("div",{class:"top-tips-btn",onClick:t[5]||(t[5]=(...a)=>e.handleComfig&&e.handleComfig(...a))},n.toDisplayString(e.comfigText),1)])],4)):n.createCommentVNode("",!0)],6)}const Fe=le(Nc,[["render",Vc],["__scopeId","data-v-9ae9509a"]]),Rc=tt({name:"PreView",props:{file:{type:String,default:""}},data(){return{url:"",video:["mp4","avi","rmvb"],videoShow:!1}},watch:{file:{handler(e,t){if(e)if(this.video.includes(e.substring(e.lastIndexOf(".")+1)))this.videoShow=!0,this.url=e;else{this.videoShow=!1;let i=e.indexOf("https://")==-1?0:1;this.url=`https://wdyl.ddzg.cn:8089/?ssl=${i}&furl=${e}`}},immediate:!0,deep:!0}}}),Lc={key:0,style:{width:"100%",height:"calc(100% - 40px)"}},vc={key:0,style:{height:"100%",width:"100%"},controls:""},Fc=["src"],Qc=["src"];function jc(e,t,i,s,r,o){return e.url?(n.openBlock(),n.createElementBlock("div",Lc,[e.videoShow?(n.openBlock(),n.createElementBlock("video",vc,[n.createElementVNode("source",{src:e.url,type:"video/mp4"},null,8,Fc)])):(n.openBlock(),n.createElementBlock("iframe",{key:1,style:{height:"100%",border:"unset",width:"100%"},src:e.url},null,8,Qc))])):n.createCommentVNode("",!0)}const Qr=le(Rc,[["render",jc]]),Uc=tt({name:"preview-image",props:{images:{type:Array,defalut:()=>[]},startPosition:{type:Number,defalut:0},visible:{type:Boolean,defalut:!1},indexd:{type:Number,defalut:0},isOne:{type:Boolean,defalut:!1},isStyle:{type:String,defalut:""}},data(){return{imagesList:[],moveNum:0,flag:!1,windowWidth:0,windowHeight:0,startX:0,startY:0,move:0,startMove:0,maxX:0,duration:"transition-duration: 0.2s;transition-timing-function:ease;",isIndex:1,show:!1,displacement:{scale:1},styleZoom:"",styleOrigin:"",moveX:"-50%",moveY:"-50%",newScaleData:1}},watch:{images:{handler(e,t){this.imagesList=e},immediate:!0,deep:!0},visible:{handler(e,t){this.show=e},immediate:!0},indexd:{handler(e,t){e>=0&&(this.isIndex=e+1,this.move=e*100*-1)},immediate:!0}},methods:{handelTouchstart(e){let t=e.touches,i=t[0],s=t[1];this.displacement.pageX=i.pageX,this.displacement.pageY=i.pageY,this.displacement.moveable=!0,s?(this.displacement.pageX2=s.pageX,this.displacement.pageY2=s.pageY):(this.duration="transition-duration: 0.05s;transition-timing-function:linear",this.windowWidth=(document.documentElement.clientWidth||document.body.clientWidth)/100,this.windowHeight=(document.documentElement.clientHeight||document.body.clientHeight)/100,this.startX=e.touches[0].clientX,this.startY=e.touches[0].clientY,this.startMove=this.move),this.displacement.originScale=this.displacement.scale||1},handelTouchmove(e){if(!this.displacement.moveable)return;e.preventDefault();let t=e.touches,i=t[0],s=t[1];if(s){this.displacement.pageX2||(this.displacement.pageX2=s.pageX),this.displacement.pageY2||(this.displacement.pageY2=s.pageY);let r=this.getDistance({x:i.pageX,y:i.pageY},{x:s.pageX,y:s.pageY})/this.getDistance({x:this.displacement.pageX,y:this.displacement.pageY},{x:this.displacement.pageX2,y:this.displacement.pageY2}),o=this.displacement.originScale*r;o<.5?o=.5:o>3&&(o=3),this.displacement.scale=o,this.styleZoom=`scale(${o})`,this.styleOrigin="0 0"}else this.moveX=`calc(${(e.touches[0].clientX-this.startX)/this.displacement.scale}px - 50%)`,this.moveY=`calc(${(e.touches[0].clientY-this.startY)/this.displacement.scale}px - 50%)`},getDistance(e,t){return Math.hypot(t.x-e.x,t.y-e.y)},touchstartView(e){this.isOne||(this.duration="transition-duration: 0.05s;transition-timing-function:linear",this.flag=!0,this.windowWidth=(document.documentElement.clientWidth||document.body.clientWidth)/100,this.startX=e.touches[0].clientX,this.startMove=this.move)},touchmoveView(e){this.isOne||(this.startX>e.touches[0].clientX?this.move<=-((this.imagesList.length-1)*100)?this.move=-((this.imagesList.length-1)*100):this.move=this.startMove+Math.ceil((e.touches[0].clientX-this.startX)/this.windowWidth):this.startX<e.touches[0].clientX&&this.move<0&&(this.move>=0?this.move=0:this.move=this.startMove+Math.ceil((e.touches[0].clientX-this.startX)/this.windowWidth)))},touchendView(){if(this.isOne)return;this.duration="transition-duration: 0.2s;transition-timing-function:ease";let e=Math.floor(Math.abs(this.move/100));Math.abs(this.move/100%1)>.5?(this.isIndex=e+2,this.move=(e+1)*100*-1):(this.isIndex=e+1,this.move=e*100*-1),this.flag=!1},handleClose(){this.$emit("update:visible",!1)}},mounted(){this.$nextTick(()=>{const e=document.getElementsByClassName("process-warp")[0]?document.getElementsByClassName("process-warp")[0]:document.getElementsByClassName("sumbmitPopup-index-sumbit")[0].getElementsByClassName("top-popup")[0];e.append?e.append(this.$el):e.appendChild(this.$el)})}}),cE="",_c={key:0,class:"preview-image"},Gc=["src"],qc=["src"],Jc={key:2,class:"preview-image-view--page"},Hc={class:"page-item"};function zc(e,t,i,s,r,o){return e.visible?(n.openBlock(),n.createElementBlock("div",_c,[n.createElementVNode("div",{class:"preview-image-mask",onClick:t[0]||(t[0]=(...a)=>e.handleClose&&e.handleClose(...a))}),e.isOne?(n.openBlock(),n.createElementBlock("div",{key:1,class:"preview-image-view--one",onTouchstart:t[5]||(t[5]=(...a)=>e.handelTouchstart&&e.handelTouchstart(...a)),onTouchmove:t[6]||(t[6]=(...a)=>e.handelTouchmove&&e.handelTouchmove(...a)),style:n.normalizeStyle(`transform:${e.styleZoom} translate(${e.moveX},${e.moveY});${e.duration};${e.styleOrigin?`transformOrigin:${e.styleOrigin}`:""};`)},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.imagesList,(a,l)=>(n.openBlock(),n.createElementBlock("img",{class:"img-view",key:l,src:a},null,8,qc))),128))],36)):(n.openBlock(),n.createElementBlock("div",{key:0,class:"preview-image-view--img",style:n.normalizeStyle(`transform: translate(${e.move}%,-50%);${e.duration}`),onTouchstart:t[2]||(t[2]=(...a)=>e.touchstartView&&e.touchstartView(...a)),onTouchmove:t[3]||(t[3]=(...a)=>e.touchmoveView&&e.touchmoveView(...a)),onTouchend:t[4]||(t[4]=(...a)=>e.touchendView&&e.touchendView(...a))},[n.createElementVNode("div",{class:"preview-image-mask",onClick:t[1]||(t[1]=(...a)=>e.handleClose&&e.handleClose(...a)),style:{opacity:"0","z-index":"1"}}),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.imagesList,(a,l)=>(n.openBlock(),n.createElementBlock("img",{class:"img-view",key:l,src:a},null,8,Gc))),128))],36)),e.isOne?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",Jc,[n.createElementVNode("span",Hc,n.toDisplayString(e.isIndex)+"/"+n.toDisplayString(e.imagesList.length),1)])),t[7]||(t[7]=n.createElementVNode("div",{class:"preview-image-view--close"},null,-1))])):n.createCommentVNode("",!0)}const un=le(Uc,[["render",zc],["__scopeId","data-v-d8a210ac"]]),jr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAECBJREFUeF7dW21QVFeaPu+53TQEkU+VKKDyIQ4x0k3HuMnsjFbUmcq0hOjKbkpJpVIbQzSx/DH5Mdl/82f9laxGE6tI2FQsJ5sJE60kpVu7zjrZGEVUPoMYV4gogwEUuvnsz3vO1nO9l2qwkb4NuHFvVRcU9L33vM/7vs/7cd5DbHYuYozhg0vov0vGmLJq1apliqLkE1GmoijJqqqmEtF8IkqRUibhBiIallJ6pJRDiqK4VVUdlFL2qKra3tra2skYU8OeyfX34Pn4zOgyFh3LQ6i8vFxbTE1NDRYiysvLlWvXrmVLKbOI6FHO+SIppSawECKBc25ljMVJKeM45/hp0QEICSECRBRgjAWEEEHOuReAEJFbCNHLGLtFRH9tbGzs0kHm5eXl2vpramoAekxgxAqAcZ/20tzc3OSUlJSlUsoVRFTIGMPv2YyxdCLC4iBYCIuUUqr63/B3fHABSC6l5ESk6NoGOAAJ/7sjpYTgN6SU3zPGrvp8vptXr14d1u+fsB4z2owVAE1xRUVFVs45NPyUoiibOOcrICFjLEhEhqCQ2njP5PdNtXANWCLSfgIEKSWAseJvQog2xtifrVZr/ejo6EBbW1vwQVmAZvY1NTWq0+nMEEJsJKJfMMYysTj9AwykrmUzyrjvd3XrMLgGFgWhe6WUZzjnf66vr78DFzTrDtFagOZvEByrLC4u/lsi2kBEuUSUpa/cq5OVprxJpjlTIAz/NizCQkTxukt1M8Y6GGOnGhsba/EiHQiNl6Z7cTQAGKiLp556KsHn8z1NRFuklI+BtIgIZKUxfpjg0713pv/H+0JEBNdIAKkyxlpCodDnXq+3rr293a/zyrSRIloApNPpTA4Gg7+0WCwVIDfG2JAutBGWZipUrPdDy7DMJCllHxEd8fl8Z9va2kbCQueUz74fAPifZnIOh2OxlNJFRL8mokQppZhtH49VeuM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9MAT7GZuMTc3lmyfa8WgSjWPssgOpfxT+07f762alE3XMEWlZMx85sQXl+o3e1AFjVNlF9PhVyA+C/TLWGVzx89ZuflMJ3OoAAXHlUSshnj6y3CWuocKyu24k8Y1fMCIBVAXCUFQaTwXiMPkm1K+UrTb1uTcaGiUHpzrRRGJi0rADUu2KeU5wjVC+SXUU8o2AUAAMD0IWuqHhOgj0A2G0b5u16wRlwpDttN+2W1mJ8gEogfGT3tV9MEq9kw76PQO5ktbKjYFQ2XDuRBlIA1Aage8io+q1+3GV8ao3fcbLxW4Po6cy8nR9NBN+YKfjzVVSyqf5PTVav393yJZuwigwsAqAWsU7TdktVMCQABhbkkwDeIRtd+dTIkz/96hsHSrmZyKsnxfq8scy+xWflsrnLEwYvZVAzgRsYaAKjiYimBnabFRoWACsMoJI75kEQegnoZeAIg3YmbWxDvbk3c9n2AUesSkRrMo//Bwdf9ZzE6Zx0AAAAAElFTkSuQmCC",Kc=tt({name:"ViewAttchList",components:{PreView:Qr,TopPopup:Fe,PreviewImage:un},computed:{del(){return jr},doc(){return Ur},file(){return _r},image(){return Gr},pdf(){return qr},xls(){return Jr},zip(){return Hr}},props:{inList:{type:Array,default:()=>[]}},data(){return{listData:[],imgIcon:["jpg","jpge","png","gif"],docIcon:["doc","docx"],xlsIcon:["xls","xlsx"],zipIcon:["zip","rar","7z"],preList:[],fileUrl:"",visible:!1,visibleImg:!1,lists:[],indexd:0}},watch:{inList:{handler(e,t){if(e.length){this.listData=e,this.lists=[];let i=[];e.map((s,r)=>{this.imgIcon.includes(s.name.substring(s.name.lastIndexOf(".")+1).toLowerCase())}),i=e.filter(s=>this.imgIcon.includes(s.name.substring(s.name.lastIndexOf(".")+1).toLowerCase())),i.forEach((s,r)=>{this.lists.push(s.url)})}},immediate:!0,deep:!0}},methods:{viewFile(e){this.imgIcon.includes(e.url.substring(e.url.lastIndexOf(".")+1).toLowerCase())?(this.visibleImg=!0,this.indexd=this.lists.indexOf(e.url)):(this.fileUrl=e.url,this.visible=!0)},loadFile(e){var t;if(Zs.default.hasNativeMethod("vueUpLoadFile"))Zs.default.call("vueUpLoadFile",e.url);else{if(typeof nativeMethod<"u"&&(nativeMethod==null?void 0:nativeMethod.vueUpLoadFile))return nativeMethod.vueUpLoadFile(e.url),!1;const i=document.createElement("a");i.download=(t=e.url)==null?void 0:t.match(/([^\/]+)$/g)[0],i.href=e.url,i.click()}}}}),dE="",Wc={class:"process-wrap"},Yc={key:0,class:"attch-list"},Zc={class:"list-items-icon"},Xc=["src"],$c=["src"],ed=["src"],td=["src"],id=["src"],nd=["src"],sd=["onClick"],rd={class:"info-name"},od={class:"info-name-text"},ad={class:"info-attribute"},ld={class:"info-attribute-time"},cd={class:"info-attribute-size"},dd=["onClick"],pd={key:1,class:"attch-list"};function hd(e,t,i,s,r,o){const a=n.resolveComponent("PreView"),l=n.resolveComponent("TopPopup"),c=n.resolveComponent("PreviewImage");return n.openBlock(),n.createElementBlock("div",Wc,[e.listData.length>0?(n.openBlock(),n.createElementBlock("div",Yc,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.listData,(m,u)=>(n.openBlock(),n.createElementBlock("div",{key:m.id,class:"list-items"},[n.createElementVNode("div",Zc,[e.xlsIcon.includes(m.name.substring(m.name.lastIndexOf(".")+1).toLowerCase())?(n.openBlock(),n.createElementBlock("img",{key:0,class:"icon-img",src:e.xls},null,8,Xc)):e.imgIcon.includes(m.name.substring(m.name.lastIndexOf(".")+1).toLowerCase())?(n.openBlock(),n.createElementBlock("img",{key:1,class:"icon-img",src:e.image},null,8,$c)):m.name.substring(m.name.lastIndexOf(".")+1).toLowerCase()=="pdf"?(n.openBlock(),n.createElementBlock("img",{key:2,class:"icon-img",src:e.pdf},null,8,ed)):e.docIcon.includes(m.name.substring(m.name.lastIndexOf(".")+1).toLowerCase())?(n.openBlock(),n.createElementBlock("img",{key:3,class:"icon-img",src:e.doc},null,8,td)):e.zipIcon.includes(m.name.substring(m.name.lastIndexOf(".")+1).toLowerCase())?(n.openBlock(),n.createElementBlock("img",{key:4,class:"icon-img",src:e.zip},null,8,id)):(n.openBlock(),n.createElementBlock("img",{key:5,class:"icon-img",src:e.file},null,8,nd))]),n.createElementVNode("div",{class:"list-items-info",onClick:p=>e.viewFile(m)},[n.createElementVNode("div",rd,[n.createElementVNode("span",od,n.toDisplayString(m.name),1)]),n.createElementVNode("div",ad,[n.createElementVNode("span",ld,n.toDisplayString(m.uploadTime),1),n.createElementVNode("span",cd,n.toDisplayString(m.size<1024?m.size:m.size/1024>1024?parseFloat((m.size/1024/1024).toFixed(2)):parseFloat((m.size/1024).toFixed(2)))+n.toDisplayString(m.size<1024?"b":parseFloat((m.size/1024).toFixed(2))<1024?"kb":"M"),1)])],8,sd),n.createElementVNode("div",{class:"list-items-download",onClick:p=>e.loadFile(m)},t[2]||(t[2]=[n.createElementVNode("span",{class:"download-text"},"\u4E0B\u8F7D",-1)]),8,dd)]))),128))])):(n.openBlock(),n.createElementBlock("div",pd,t[3]||(t[3]=[n.createElementVNode("div",{class:"attch-list--white"},[n.createElementVNode("div",{class:"attch-list--label"},"\u6682\u65E0\u9644\u4EF6")],-1)]))),n.createVNode(l,{visible:e.visible,"onUpdate:visible":t[0]||(t[0]=m=>e.visible=m),ref:"TopPopup",titleText:"\u9644\u4EF6\u9884\u89C8",isDrawer:"",isIndex:99},{default:n.withCtx(()=>[n.createVNode(a,{file:e.fileUrl},null,8,["file"])]),_:1},8,["visible"]),n.createVNode(c,{images:e.lists,visible:e.visibleImg,"onUpdate:visible":t[1]||(t[1]=m=>e.visibleImg=m),indexd:e.indexd},null,8,["images","visible","indexd"])])}const zr=le(Kc,[["render",hd],["__scopeId","data-v-e0d8023e"]]);function lt(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}const Vi=Object.prototype.toString,ud=Object.prototype.hasOwnProperty;function ds(e){return e===void 0}function di(e){return e!==void 0}function Kr(e){return e==null}function it(e){return Vi.call(e)==="[object Array]"}function Gt(e){return Vi.call(e)==="[object Object]"}function Dt(e){return Vi.call(e)==="[object Number]"}function qt(e){const t=Vi.call(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object AsyncGeneratorFunction]"||t==="[object Proxy]"}function nt(e){return Vi.call(e)==="[object String]"}function pi(e,t){return!Kr(e)&&ud.call(e,t)}function st(e,t){const i=ps(t);let s;return R(e,function(r,o){if(i(r,o))return s=r,!1}),s}function md(e,t){const i=ps(t);let s=it(e)?-1:void 0;return R(e,function(r,o){if(i(r,o))return s=o,!1}),s}function hi(e,t){const i=ps(t);let s=[];return R(e,function(r,o){i(r,o)&&s.push(r)}),s}function R(e,t){let i,s;if(ds(e))return;const r=it(e)?yd:gd;for(let o in e)if(pi(e,o)&&(i=e[o],s=t(i,r(o)),s===!1))return i}function ui(e,t,i){return R(e,function(s,r){i=t(i,s,r)}),i}function Wr(e,t){return!!ui(e,function(i,s,r){return i&&t(s,r)},!0)}function Yr(e,t){return!!st(e,t)}function fd(e,t){let i=[];return R(e,function(s,r){i.push(t(s,r))}),i}function Zr(e){return function(t){return Wr(e,function(i,s){return t[s]===i})}}function ps(e){return qt(e)?e:t=>t===e}function gd(e){return e}function yd(e){return Number(e)}function Ad(e,t){let i,s,r,o;function a(p){let g=Date.now(),A=p?0:o+t-g;if(A>0)return l(A);e.apply(r,s),c()}function l(p){i=setTimeout(a,p)}function c(){i&&clearTimeout(i),i=o=s=r=void 0}function m(){i&&a(!0),c()}function u(...p){o=Date.now(),s=p,r=this,i||l(t)}return u.flush=m,u.cancel=c,u}function Pt(e,t){return e.bind(t)}function _(e,...t){return Object.assign(e,...t)}function kd(e,t,i){let s=e;return R(t,function(r,o){if(typeof r!="number"&&typeof r!="string")throw new Error("illegal key type: "+typeof r+". Key should be of type number or string.");if(r==="constructor")throw new Error("illegal key: constructor");if(r==="__proto__")throw new Error("illegal key: __proto__");let a=t[o+1],l=s[r];di(a)&&Kr(l)&&(l=s[r]=isNaN(+a)?{}:[]),ds(a)?ds(i)?delete s[r]:s[r]=i:s=l}),e}function bd(e,t){let i={},s=Object(e);return R(t,function(r){r in s&&(i[r]=e[r])}),i}function Ed(e,t){let i={},s=Object(e);return R(s,function(r,o){t.indexOf(o)===-1&&(i[o]=r)}),i}var Cd=1e3;function yt(e,t){var i=this;t=t||Cd,e.on(["render.shape","render.connection"],t,function(s,r){var o=s.type,a=r.element,l=r.gfx,c=r.attrs;if(i.canRender(a))return o==="render.shape"?i.drawShape(l,a,c):i.drawConnection(l,a,c)}),e.on(["render.getShapePath","render.getConnectionPath"],t,function(s,r){if(i.canRender(r))return s.type==="render.getShapePath"?i.getShapePath(r):i.getConnectionPath(r)})}yt.prototype.canRender=function(e){},yt.prototype.drawShape=function(e,t){},yt.prototype.drawConnection=function(e,t){},yt.prototype.getShapePath=function(e){},yt.prototype.getConnectionPath=function(e){};function Q(e,t){var i=ce(e);return i&&typeof i.$instanceOf=="function"&&i.$instanceOf(t)}function wd(e,t){return Yr(t,function(i){return Q(e,i)})}function ce(e){return e&&e.businessObject||e}function Jt(e){return e&&e.di}function Ht(e,t){return Q(e,"bpmn:CallActivity")?!1:Q(e,"bpmn:SubProcess")?(t=t||Jt(e),t&&Q(t,"bpmndi:BPMNPlane")?!0:t&&!!t.isExpanded):Q(e,"bpmn:Participant")?!!ce(e).processRef:!0}function Xr(e){if(!(!Q(e,"bpmn:Participant")&&!Q(e,"bpmn:Lane"))){var t=Jt(e).isHorizontal;return t===void 0?!0:t}}function Nd(e){return e&&!!ce(e).triggeredByEvent}function Td(e){return Gt(e)&&pi(e,"waypoints")}var mn={width:90,height:20},$r=15;function Bd(e){return Q(e,"bpmn:Event")||Q(e,"bpmn:Gateway")||Q(e,"bpmn:DataStoreReference")||Q(e,"bpmn:DataObjectReference")||Q(e,"bpmn:DataInput")||Q(e,"bpmn:DataOutput")||Q(e,"bpmn:SequenceFlow")||Q(e,"bpmn:MessageFlow")||Q(e,"bpmn:Group")}function Id(e){var t=e.length/2-1,i=e[Math.floor(t)],s=e[Math.ceil(t+.01)],r=xd(e),o=Math.atan((s.y-i.y)/(s.x-i.x)),a=r.x,l=r.y;return Math.abs(o)<Math.PI/2?l-=$r:a+=$r,{x:a,y:l}}function xd(e){var t=e.length/2-1,i=e[Math.floor(t)],s=e[Math.ceil(t+.01)];return{x:i.x+(s.x-i.x)/2,y:i.y+(s.y-i.y)/2}}function Sd(e){return e.waypoints?Id(e.waypoints):Q(e,"bpmn:Group")?{x:e.x+e.width/2,y:e.y+mn.height/2}:{x:e.x+e.width/2,y:e.y+e.height+mn.height/2}}function Dd(e,t){var i,s,r,o=e.label;return o&&o.bounds?(r=o.bounds,s={width:Math.max(mn.width,r.width),height:r.height},i={x:r.x+r.width/2,y:r.y+r.height/2}):(i=Sd(t),s=mn),_({x:i.x-s.width/2,y:i.y-s.height/2},s)}function Pd(e){if(Q(e,"bpmn:FlowElement")||Q(e,"bpmn:Participant")||Q(e,"bpmn:Lane")||Q(e,"bpmn:SequenceFlow")||Q(e,"bpmn:MessageFlow")||Q(e,"bpmn:DataInput")||Q(e,"bpmn:DataOutput"))return"name";if(Q(e,"bpmn:TextAnnotation"))return"text";if(Q(e,"bpmn:Group"))return"categoryValueRef"}function Md(e){var t=e.categoryValueRef;return t&&t.value||""}function fn(e){var t=e.businessObject,i=Pd(t);if(i)return i==="categoryValueRef"?Md(t):t[i]||""}function Od(e,t){if(e.ownerDocument!==t.ownerDocument)try{return t.ownerDocument.importNode(e,!0)}catch{}return e}function eo(e,t){return t.appendChild(Od(e,t))}function Ae(e,t){return eo(t,e),e}var hs=2,to={"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":hs,"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":hs,"text-anchor":1,"text-decoration":1,"text-rendering":1,"unicode-bidi":1,visibility:1,"word-spacing":1,"writing-mode":1};function Vd(e,t){return to[t]?e.style[t]:e.getAttributeNS(null,t)}function io(e,t,i){var s=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r=to[s];r?(r===hs&&typeof i=="number"&&(i=String(i)+"px"),e.style[s]=i):e.setAttributeNS(null,t,i)}function Rd(e,t){var i=Object.keys(t),s,r;for(s=0,r;r=i[s];s++)io(e,r,t[r])}function se(e,t,i){if(typeof t=="string")if(i!==void 0)io(e,t,i);else return Vd(e,t);else Rd(e,t);return e}const Ld=Object.prototype.toString;function ct(e){return new Mt(e)}function Mt(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}Mt.prototype.add=function(e){return this.list.add(e),this},Mt.prototype.remove=function(e){return Ld.call(e)=="[object RegExp]"?this.removeMatching(e):(this.list.remove(e),this)},Mt.prototype.removeMatching=function(e){const t=this.array();for(let i=0;i<t.length;i++)e.test(t[i])&&this.remove(t[i]);return this},Mt.prototype.toggle=function(e,t){return typeof t<"u"?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this},Mt.prototype.array=function(){return Array.from(this.list)},Mt.prototype.has=Mt.prototype.contains=function(e){return this.list.contains(e)};function vd(e){for(var t;t=e.firstChild;)e.removeChild(t);return e}var us={svg:"http://www.w3.org/2000/svg"},no='<svg xmlns="'+us.svg+'"';function so(e){var t=!1;e.substring(0,4)==="<svg"?e.indexOf(us.svg)===-1&&(e=no+e.substring(4)):(e=no+">"+e+"</svg>",t=!0);var i=Fd(e);if(!t)return i;for(var s=document.createDocumentFragment(),r=i.firstChild;r.firstChild;)s.appendChild(r.firstChild);return s}function Fd(e){var t;return t=new DOMParser,t.async=!1,t.parseFromString(e,"text/xml")}function re(e,t){var i;return e=e.trim(),e.charAt(0)==="<"?(i=so(e).firstChild,i=document.importNode(i,!0)):i=document.createElementNS(us.svg,e),t&&se(i,t),i}var ms=null;function fs(){return ms===null&&(ms=re("svg")),ms}function ro(e,t){var i,s,r=Object.keys(t);for(i=0;s=r[i];i++)e[s]=t[s];return e}function Qd(e,t,i,s,r,o){var a=fs().createSVGMatrix();switch(arguments.length){case 0:return a;case 1:return ro(a,e);case 6:return ro(a,{a:e,b:t,c:i,d:s,e:r,f:o})}}function Ri(e){return e?fs().createSVGTransformFromMatrix(e):fs().createSVGTransform()}var oo=/([&<>]{1})/g,jd=/([&<>\n\r"]{1})/g,Ud={"&":"&","<":"<",">":">",'"':"'"};function gs(e,t){function i(s,r){return Ud[r]||r}return e.replace(t,i)}function ao(e,t){var i,s,r,o,a;switch(e.nodeType){case 3:t.push(gs(e.textContent,oo));break;case 1:if(t.push("<",e.tagName),e.hasAttributes())for(r=e.attributes,i=0,s=r.length;i<s;++i)o=r.item(i),t.push(" ",o.name,'="',gs(o.value,jd),'"');if(e.hasChildNodes()){for(t.push(">"),a=e.childNodes,i=0,s=a.length;i<s;++i)ao(a.item(i),t);t.push("</",e.tagName,">")}else t.push("/>");break;case 8:t.push("<!--",gs(e.nodeValue,oo),"-->");break;case 4:t.push("<![CDATA[",e.nodeValue,"]]>");break;default:throw new Error("unable to handle node "+e.nodeType)}return t}function _d(e,t){var i=so(t);if(vd(e),!!t){qd(i)||(i=i.documentElement);for(var s=Jd(i.childNodes),r=0;r<s.length;r++)eo(s[r],e)}}function Gd(e){for(var t=e.firstChild,i=[];t;)ao(t,i),t=t.nextSibling;return i.join("")}function qd(e){return e.nodeName==="#document-fragment"}function lo(e,t){if(t!==void 0){try{_d(e,t)}catch(i){throw new Error("error parsing SVG: "+i.message)}return e}else return Gd(e)}function Jd(e){return Array.prototype.slice.call(e)}function Li(e){var t=e.parentNode;return t&&t.removeChild(e),e}function Hd(e,t){return t instanceof SVGMatrix?e.createSVGTransformFromMatrix(t):t}function zd(e,t){var i,s;for(e.clear(),i=0;s=t[i];i++)e.appendItem(Hd(e,s))}function vi(e,t){var i=e.transform.baseVal;return t&&(Array.isArray(t)||(t=[t]),zd(i,t)),i.consolidate()}function zt(e){return e.flat().join(",").replace(/,?([A-Za-z]),?/g,"$1")}function Kd(e){return["M",e.x,e.y]}function ys(e){return["L",e.x,e.y]}function Wd(e,t,i){return["C",e.x,e.y,t.x,t.y,i.x,i.y]}function Yd(e,t){const i=e.length,s=[Kd(e[0])];for(let r=1;r<i;r++){const o=e[r-1],a=e[r],l=e[r+1];if(!l||!t){s.push(ys(a));continue}const c=Math.min(t,As(a.x-o.x,a.y-o.y),As(l.x-a.x,l.y-a.y));if(!c){s.push(ys(a));continue}const m=gn(a,o,c),u=gn(a,o,c*.5),p=gn(a,l,c),g=gn(a,l,c*.5);s.push(ys(m)),s.push(Wd(u,g,p))}return s}function gn(e,t,i){const s=t.x-e.x,r=t.y-e.y,o=As(s,r),a=i/o;return{x:e.x+s*a,y:e.y+r*a}}function As(e,t){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2))}function ks(e,t,i){Dt(t)&&(i=t,t=null),t||(t={});const s=re("path",t);return Dt(i)&&(s.dataset.cornerRadius=String(i)),co(s,e)}function co(e,t){const i=parseInt(e.dataset.cornerRadius,10)||0;return se(e,{d:zt(Yd(t,i))}),e}var bs="hsl(225, 10%, 15%)",Zd="white";function dt(e,t){return Yr(e.eventDefinitions,function(i){return i.$type===t})}function Xd(e){return e.$type==="bpmn:IntermediateThrowEvent"||e.$type==="bpmn:EndEvent"}function $d(e){var t=e.dataObjectRef;return e.isCollection||t&&t.isCollection}function H(e,t,i){var s=Jt(e);return i||s.get("color:background-color")||s.get("bioc:fill")||t||Zd}function P(e,t,i){var s=Jt(e);return i||s.get("color:border-color")||s.get("bioc:stroke")||t||bs}function Fi(e,t,i,s){var r=Jt(e),o=r.get("label");return s||o&&o.get("color:color")||t||P(e,i)}function ep(e){var t=e.x+e.width/2,i=e.y+e.height/2,s=e.width/2,r=[["M",t,i],["m",0,-s],["a",s,s,0,1,1,0,2*s],["a",s,s,0,1,1,0,-2*s],["z"]];return zt(r)}function tp(e,t){var i=e.x,s=e.y,r=e.width,o=e.height,a=[["M",i+t,s],["l",r-t*2,0],["a",t,t,0,0,1,t,t],["l",0,o-t*2],["a",t,t,0,0,1,-t,t],["l",t*2-r,0],["a",t,t,0,0,1,-t,-t],["l",0,t*2-o],["a",t,t,0,0,1,t,-t],["z"]];return zt(a)}function ip(e){var t=e.width,i=e.height,s=e.x,r=e.y,o=t/2,a=i/2,l=[["M",s+o,r],["l",o,a],["l",-o,a],["l",-o,-a],["z"]];return zt(l)}function np(e){var t=e.x,i=e.y,s=e.width,r=e.height,o=[["M",t,i],["l",s,0],["l",0,r],["l",-s,0],["z"]];return zt(o)}function Qi(e,t={}){return{width:Ke(e,t),height:Ve(e,t)}}function Ke(e,t={}){return pi(t,"width")?t.width:e.width}function Ve(e,t={}){return pi(t,"height")?t.height:e.height}function sp(e,t){return t.forEach(function(i){i&&typeof i!="string"&&!Array.isArray(i)&&Object.keys(i).forEach(function(s){if(s!=="default"&&!(s in e)){var r=Object.getOwnPropertyDescriptor(i,s);Object.defineProperty(e,s,r.get?r:{enumerable:!0,get:function(){return i[s]}})}})}),Object.freeze(e)}const rp=Object.prototype.toString,op=Object.prototype.hasOwnProperty;function ap(e){return e===void 0}function lp(e){return rp.call(e)==="[object Array]"}function cp(e,t){return op.call(e,t)}function po(e,t){let i,s;if(ap(e))return;const r=lp(e)?pp:dp;for(let o in e)if(cp(e,o)&&(i=e[o],s=t(i,r(o)),s===!1))return i}function dp(e){return e}function pp(e){return Number(e)}function we(e,...t){const i=e.style;return po(t,function(s){!s||po(s,function(r,o){i[o]=r})}),e}function Es(e,t,i){return arguments.length==2?e.getAttribute(t):i===null?e.removeAttribute(t):(e.setAttribute(t,i),e)}const hp=Object.prototype.toString;function Kt(e){return new Ot(e)}function Ot(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}Ot.prototype.add=function(e){return this.list.add(e),this},Ot.prototype.remove=function(e){return hp.call(e)=="[object RegExp]"?this.removeMatching(e):(this.list.remove(e),this)},Ot.prototype.removeMatching=function(e){const t=this.array();for(let i=0;i<t.length;i++)e.test(t[i])&&this.remove(t[i]);return this},Ot.prototype.toggle=function(e,t){return typeof t<"u"?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this},Ot.prototype.array=function(){return Array.from(this.list)},Ot.prototype.has=Ot.prototype.contains=function(e){return this.list.contains(e)};function ho(e){for(var t;t=e.firstChild;)e.removeChild(t);return e}function uo(e,t,i){var s=i?e:e.parentNode;return s&&typeof s.closest=="function"&&s.closest(t)||null}var yn={},An,Cs,ws;function mo(){An=window.addEventListener?"addEventListener":"attachEvent",Cs=window.removeEventListener?"removeEventListener":"detachEvent",ws=An!=="addEventListener"?"on":""}var up=yn.bind=function(e,t,i,s){return An||mo(),e[An](ws+t,i,s||!1),i},mp=yn.unbind=function(e,t,i,s){return Cs||mo(),e[Cs](ws+t,i,s||!1),i},Wt=sp({__proto__:null,bind:up,unbind:mp,default:yn},[yn]),fo=["focus","blur"];function fp(e,t,i,s,r){return fo.indexOf(i)!==-1&&(r=!0),Wt.bind(e,i,function(o){var a=o.target||o.srcElement;o.delegateTarget=uo(a,t,!0),o.delegateTarget&&s.call(e,o)},r)}function gp(e,t,i,s){return fo.indexOf(t)!==-1&&(s=!0),Wt.unbind(e,t,i,s)}var mi={bind:fp,unbind:gp},yp=Ap,go=!1,kn;typeof document<"u"&&(kn=document.createElement("div"),kn.innerHTML=' <link/><table></table><a href="/a">a</a><input type="checkbox"/>',go=!kn.getElementsByTagName("link").length,kn=void 0);var fe={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:go?[1,"X<div>","</div>"]:[0,"",""]};fe.td=fe.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],fe.option=fe.optgroup=[1,'<select multiple="multiple">',"</select>"],fe.thead=fe.tbody=fe.colgroup=fe.caption=fe.tfoot=[1,"<table>","</table>"],fe.polyline=fe.ellipse=fe.polygon=fe.circle=fe.text=fe.line=fe.path=fe.rect=fe.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"];function Ap(e,t){if(typeof e!="string")throw new TypeError("String expected");t||(t=document);var i=/<([\w:]+)/.exec(e);if(!i)return t.createTextNode(e);e=e.replace(/^\s+|\s+$/g,"");var s=i[1];if(s=="body"){var c=t.createElement("html");return c.innerHTML=e,c.removeChild(c.lastChild)}var r=Object.prototype.hasOwnProperty.call(fe,s)?fe[s]:fe._default,o=r[0],a=r[1],l=r[2],c=t.createElement("div");for(c.innerHTML=a+e+l;o--;)c=c.lastChild;if(c.firstChild==c.lastChild)return c.removeChild(c.firstChild);for(var m=t.createDocumentFragment();c.firstChild;)m.appendChild(c.removeChild(c.firstChild));return m}var Qe=yp;function At(e,t){return t=t||document,t.querySelector(e)}function kp(e,t){return t=t||document,t.querySelectorAll(e)}function fi(e){e.parentNode&&e.parentNode.removeChild(e)}function Ns(e,t,i,s,r){var o=Ri();o.setTranslate(t,i);var a=Ri();a.setRotate(s||0,0,0);var l=Ri();l.setScale(r||1,r||1),vi(e,[o,a,l])}function yo(e,t,i){var s=Ri();s.setTranslate(t,i),vi(e,s)}function bp(e,t){var i=Ri();i.setRotate(t,0,0),vi(e,i)}function Ep(e,t){return t={exports:{}},e(t,t.exports),t.exports}var Cp=Ep(function(e){var t=e.exports=function(i,s){if(s||(s=16),i===void 0&&(i=128),i<=0)return"0";for(var r=Math.log(Math.pow(2,i))/Math.log(s),o=2;r===1/0;o*=2)r=Math.log(Math.pow(2,i/o))/Math.log(s)*o;for(var a=r-Math.floor(r),l="",o=0;o<Math.floor(r);o++){var c=Math.floor(Math.random()*s).toString(s);l=c+l}if(a){var m=Math.pow(s,a),c=Math.floor(Math.random()*m).toString(s);l=c+l}var u=parseInt(l,s);return u!==1/0&&u>=Math.pow(2,i)?t(i,s):l};t.rack=function(i,s,r){var o=function(l){var c=0;do{if(c++>10)if(r)i+=r;else throw new Error("too many ID collisions, use more bits");var m=t(i,s)}while(Object.hasOwnProperty.call(a,m));return a[m]=l,m},a=o.hats={};return o.get=function(l){return o.hats[l]},o.set=function(l,c){return o.hats[l]=c,o},o.bits=i||128,o.base=s||16,o}});function kt(e){if(!(this instanceof kt))return new kt(e);e=e||[128,36,1],this._seed=e.length?Cp.rack(e[0],e[1],e[2]):e}kt.prototype.next=function(e){return this._seed(e||!0)},kt.prototype.nextPrefixed=function(e,t){var i;do i=e+this.next(!0);while(this.assigned(i));return this.claim(i,t),i},kt.prototype.claim=function(e,t){this._seed.set(e,t||!0)},kt.prototype.assigned=function(e){return this._seed.get(e)||!1},kt.prototype.unclaim=function(e){delete this._seed.hats[e]},kt.prototype.clear=function(){var e=this._seed.hats,t;for(t in e)this.unclaim(t)};var wp=new kt,Np=10,bn=3,Tp=1.5,En=10,gi=.95,Bp=1,Ip=.25;function Yt(e,t,i,s,r,o,a){yt.call(this,t,a);var l=e&&e.defaultFillColor,c=e&&e.defaultStrokeColor,m=e&&e.defaultLabelColor;function u(f){return i.computeStyle(f,{strokeLinecap:"round",strokeLinejoin:"round",stroke:bs,strokeWidth:2,fill:"white"})}function p(f){return i.computeStyle(f,["no-fill"],{strokeLinecap:"round",strokeLinejoin:"round",stroke:bs,strokeWidth:2})}function g(f,h){var{ref:d={x:0,y:0},scale:y=1,element:b,parentGfx:E=r._svg}=h,I=re("marker",{id:f,viewBox:"0 0 20 20",refX:d.x,refY:d.y,markerWidth:20*y,markerHeight:20*y,orient:"auto"});Ae(I,b);var F=At(":scope > defs",E);F||(F=re("defs"),Ae(E,F)),Ae(F,I)}function A(f,h,d,y){var b=wp.nextPrefixed("marker-");return w(f,b,h,d,y),"url(#"+b+")"}function w(f,h,d,y,b){if(d==="sequenceflow-end"){var E=re("path",{d:"M 1 5 L 11 10 L 1 15 Z",...u({fill:b,stroke:b,strokeWidth:1})});g(h,{element:E,ref:{x:11,y:10},scale:.5,parentGfx:f})}if(d==="messageflow-start"){var I=re("circle",{cx:6,cy:6,r:3.5,...u({fill:y,stroke:b,strokeWidth:1,strokeDasharray:[1e4,1]})});g(h,{element:I,ref:{x:6,y:6},parentGfx:f})}if(d==="messageflow-end"){var F=re("path",{d:"m 1 5 l 0 -3 l 7 3 l -7 3 z",...u({fill:y,stroke:b,strokeWidth:1,strokeDasharray:[1e4,1]})});g(h,{element:F,ref:{x:8.5,y:5},parentGfx:f})}if(d==="association-start"){var Y=re("path",{d:"M 11 5 L 1 10 L 11 15",...p({fill:"none",stroke:b,strokeWidth:1.5,strokeDasharray:[1e4,1]})});g(h,{element:Y,ref:{x:1,y:10},scale:.5,parentGfx:f})}if(d==="association-end"){var ge=re("path",{d:"M 1 5 L 11 10 L 1 15",...p({fill:"none",stroke:b,strokeWidth:1.5,strokeDasharray:[1e4,1]})});g(h,{element:ge,ref:{x:11,y:10},scale:.5,parentGfx:f})}if(d==="conditional-flow-marker"){var pe=re("path",{d:"M 0 10 L 8 6 L 16 10 L 8 14 Z",...u({fill:y,stroke:b})});g(h,{element:pe,ref:{x:-1,y:10},scale:.5,parentGfx:f})}if(d==="conditional-default-flow-marker"){var be=re("path",{d:"M 6 4 L 10 16",...u({stroke:b,fill:"none"})});g(h,{element:be,ref:{x:0,y:10},scale:.5,parentGfx:f})}}function M(f,h,d,y,b={}){Gt(y)&&(b=y,y=0),y=y||0,b=u(b);var E=h/2,I=d/2,F=re("circle",{cx:E,cy:I,r:Math.round((h+d)/4-y),...b});return Ae(f,F),F}function G(f,h,d,y,b,E){Gt(b)&&(E=b,b=0),b=b||0,E=u(E);var I=re("rect",{x:b,y:b,width:h-b*2,height:d-b*2,rx:y,ry:y,...E});return Ae(f,I),I}function K(f,h,d,y){var b=h/2,E=d/2,I=[{x:b,y:0},{x:h,y:E},{x:b,y:d},{x:0,y:E}],F=I.map(function(ge){return ge.x+","+ge.y}).join(" ");y=u(y);var Y=re("polygon",{...y,points:F});return Ae(f,Y),Y}function z(f,h,d,y){d=p(d);var b=ks(h,d,y);return Ae(f,b),b}function x(f,h,d){return z(f,h,d,5)}function k(f,h,d){d=p(d);var y=re("path",{...d,d:h});return Ae(f,y),y}function N(f,h,d,y){return k(h,d,_({"data-marker":f},y))}function S(f){return Ge[f]}function j(f){return function(h,d,y){return S(f)(h,d,y)}}var C={"bpmn:MessageEventDefinition":function(f,h,d={},y){var b=s.getScaledPath("EVENT_MESSAGE",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:d.width||h.width,containerHeight:d.height||h.height,position:{mx:.235,my:.315}}),E=y?P(h,c,d.stroke):H(h,l,d.fill),I=y?H(h,l,d.fill):P(h,c,d.stroke),F=k(f,b,{fill:E,stroke:I,strokeWidth:1});return F},"bpmn:TimerEventDefinition":function(f,h,d={}){var y=d.width||h.width,b=d.height||h.height,E=d.width?1:2,I=M(f,y,b,.2*b,{fill:H(h,l,d.fill),stroke:P(h,c,d.stroke),strokeWidth:E}),F=s.getScaledPath("EVENT_TIMER_WH",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:y,containerHeight:b,position:{mx:.5,my:.5}});k(f,F,{stroke:P(h,c,d.stroke),strokeWidth:E});for(var Y=0;Y<12;Y++){var ge=s.getScaledPath("EVENT_TIMER_LINE",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:y,containerHeight:b,position:{mx:.5,my:.5}}),pe=y/2,be=b/2;k(f,ge,{strokeWidth:1,stroke:P(h,c,d.stroke),transform:"rotate("+Y*30+","+be+","+pe+")"})}return I},"bpmn:EscalationEventDefinition":function(f,h,d={},y){var b=s.getScaledPath("EVENT_ESCALATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:d.width||h.width,containerHeight:d.height||h.height,position:{mx:.5,my:.2}}),E=y?P(h,c,d.stroke):H(h,l,d.fill);return k(f,b,{fill:E,stroke:P(h,c,d.stroke),strokeWidth:1})},"bpmn:ConditionalEventDefinition":function(f,h,d={}){var y=s.getScaledPath("EVENT_CONDITIONAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:d.width||h.width,containerHeight:d.height||h.height,position:{mx:.5,my:.222}});return k(f,y,{fill:H(h,l,d.fill),stroke:P(h,c,d.stroke),strokeWidth:1})},"bpmn:LinkEventDefinition":function(f,h,d={},y){var b=s.getScaledPath("EVENT_LINK",{xScaleFactor:1,yScaleFactor:1,containerWidth:h.width,containerHeight:h.height,position:{mx:.57,my:.263}}),E=y?P(h,c,d.stroke):H(h,l,d.fill);return k(f,b,{fill:E,stroke:P(h,c,d.stroke),strokeWidth:1})},"bpmn:ErrorEventDefinition":function(f,h,d={},y){var b=s.getScaledPath("EVENT_ERROR",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:d.width||h.width,containerHeight:d.height||h.height,position:{mx:.2,my:.722}}),E=y?P(h,c,d.stroke):H(h,l,d.fill);return k(f,b,{fill:E,stroke:P(h,c,d.stroke),strokeWidth:1})},"bpmn:CancelEventDefinition":function(f,h,d={},y){var b=s.getScaledPath("EVENT_CANCEL_45",{xScaleFactor:1,yScaleFactor:1,containerWidth:h.width,containerHeight:h.height,position:{mx:.638,my:-.055}}),E=y?P(h,c,d.stroke):"none",I=k(f,b,{fill:E,stroke:P(h,c,d.stroke),strokeWidth:1});return bp(I,45),I},"bpmn:CompensateEventDefinition":function(f,h,d={},y){var b=s.getScaledPath("EVENT_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:d.width||h.width,containerHeight:d.height||h.height,position:{mx:.22,my:.5}}),E=y?P(h,c,d.stroke):H(h,l,d.fill);return k(f,b,{fill:E,stroke:P(h,c,d.stroke),strokeWidth:1})},"bpmn:SignalEventDefinition":function(f,h,d={},y){var b=s.getScaledPath("EVENT_SIGNAL",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:d.width||h.width,containerHeight:d.height||h.height,position:{mx:.5,my:.2}}),E=y?P(h,c,d.stroke):H(h,l,d.fill);return k(f,b,{strokeWidth:1,fill:E,stroke:P(h,c,d.stroke)})},"bpmn:MultipleEventDefinition":function(f,h,d={},y){var b=s.getScaledPath("EVENT_MULTIPLE",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:d.width||h.width,containerHeight:d.height||h.height,position:{mx:.211,my:.36}}),E=y?P(h,c,d.stroke):H(h,l,d.fill);return k(f,b,{fill:E,stroke:P(h,c,d.stroke),strokeWidth:1})},"bpmn:ParallelMultipleEventDefinition":function(f,h,d={}){var y=s.getScaledPath("EVENT_PARALLEL_MULTIPLE",{xScaleFactor:1.2,yScaleFactor:1.2,containerWidth:d.width||h.width,containerHeight:d.height||h.height,position:{mx:.458,my:.194}});return k(f,y,{fill:H(h,l,d.fill),stroke:P(h,c,d.stroke),strokeWidth:1})},"bpmn:TerminateEventDefinition":function(f,h,d={}){var y=M(f,h.width,h.height,8,{fill:P(h,c,d.stroke),stroke:P(h,c,d.stroke),strokeWidth:4});return y}};function O(f,h,d={},y){var b=ce(f),E=Xd(b),I=y||f;return b.get("eventDefinitions")&&b.get("eventDefinitions").length>1?b.get("parallelMultiple")?C["bpmn:ParallelMultipleEventDefinition"](h,I,d,E):C["bpmn:MultipleEventDefinition"](h,I,d,E):dt(b,"bpmn:MessageEventDefinition")?C["bpmn:MessageEventDefinition"](h,I,d,E):dt(b,"bpmn:TimerEventDefinition")?C["bpmn:TimerEventDefinition"](h,I,d,E):dt(b,"bpmn:ConditionalEventDefinition")?C["bpmn:ConditionalEventDefinition"](h,I,d,E):dt(b,"bpmn:SignalEventDefinition")?C["bpmn:SignalEventDefinition"](h,I,d,E):dt(b,"bpmn:EscalationEventDefinition")?C["bpmn:EscalationEventDefinition"](h,I,d,E):dt(b,"bpmn:LinkEventDefinition")?C["bpmn:LinkEventDefinition"](h,I,d,E):dt(b,"bpmn:ErrorEventDefinition")?C["bpmn:ErrorEventDefinition"](h,I,d,E):dt(b,"bpmn:CancelEventDefinition")?C["bpmn:CancelEventDefinition"](h,I,d,E):dt(b,"bpmn:CompensateEventDefinition")?C["bpmn:CompensateEventDefinition"](h,I,d,E):dt(b,"bpmn:TerminateEventDefinition")?C["bpmn:TerminateEventDefinition"](h,I,d,E):null}var D={ParticipantMultiplicityMarker:function(f,h,d={}){var y=Ke(h,d),b=Ve(h,d),E=s.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:y,containerHeight:b,position:{mx:(y/2-6)/y,my:(b-15)/b}});N("participant-multiplicity",f,E,{strokeWidth:2,fill:H(h,l,d.fill),stroke:P(h,c,d.stroke)})},SubProcessMarker:function(f,h,d={}){var y=G(f,14,14,0,{strokeWidth:1,fill:H(h,l,d.fill),stroke:P(h,c,d.stroke)});yo(y,h.width/2-7.5,h.height-20);var b=s.getScaledPath("MARKER_SUB_PROCESS",{xScaleFactor:1.5,yScaleFactor:1.5,containerWidth:h.width,containerHeight:h.height,position:{mx:(h.width/2-7.5)/h.width,my:(h.height-20)/h.height}});N("sub-process",f,b,{fill:H(h,l,d.fill),stroke:P(h,c,d.stroke)})},ParallelMarker:function(f,h,d){var y=Ke(h,d),b=Ve(h,d),E=s.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:y,containerHeight:b,position:{mx:(y/2+d.parallel)/y,my:(b-20)/b}});N("parallel",f,E,{fill:H(h,l,d.fill),stroke:P(h,c,d.stroke)})},SequentialMarker:function(f,h,d){var y=s.getScaledPath("MARKER_SEQUENTIAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:h.width,containerHeight:h.height,position:{mx:(h.width/2+d.seq)/h.width,my:(h.height-19)/h.height}});N("sequential",f,y,{fill:H(h,l,d.fill),stroke:P(h,c,d.stroke)})},CompensationMarker:function(f,h,d){var y=s.getScaledPath("MARKER_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:h.width,containerHeight:h.height,position:{mx:(h.width/2+d.compensation)/h.width,my:(h.height-13)/h.height}});N("compensation",f,y,{strokeWidth:1,fill:H(h,l,d.fill),stroke:P(h,c,d.stroke)})},LoopMarker:function(f,h,d){var y=Ke(h,d),b=Ve(h,d),E=s.getScaledPath("MARKER_LOOP",{xScaleFactor:1,yScaleFactor:1,containerWidth:y,containerHeight:b,position:{mx:(y/2+d.loop)/y,my:(b-7)/b}});N("loop",f,E,{strokeWidth:1.5,fill:"none",stroke:P(h,c,d.stroke),strokeMiterlimit:.5})},AdhocMarker:function(f,h,d){var y=Ke(h,d),b=Ve(h,d),E=s.getScaledPath("MARKER_ADHOC",{xScaleFactor:1,yScaleFactor:1,containerWidth:y,containerHeight:b,position:{mx:(y/2+d.adhoc)/y,my:(b-15)/b}});N("adhoc",f,E,{strokeWidth:1,fill:P(h,c,d.stroke),stroke:P(h,c,d.stroke)})}};function v(f,h,d,y){D[f](h,d,y)}function V(f,h,d=[],y={}){y={fill:y.fill,stroke:y.stroke,width:Ke(h,y),height:Ve(h,y)};var b=ce(h),E=d.includes("SubProcessMarker");E?y={...y,seq:-21,parallel:-22,compensation:-25,loop:-18,adhoc:10}:y={...y,seq:-5,parallel:-6,compensation:-7,loop:0,adhoc:-8},b.get("isForCompensation")&&d.push("CompensationMarker"),Q(b,"bpmn:AdHocSubProcess")&&(d.push("AdhocMarker"),E||_(y,{compensation:y.compensation-18}));var I=b.get("loopCharacteristics"),F=I&&I.get("isSequential");I&&(_(y,{compensation:y.compensation-18}),d.includes("AdhocMarker")&&_(y,{seq:-23,loop:-18,parallel:-24}),F===void 0&&d.push("LoopMarker"),F===!1&&d.push("ParallelMarker"),F===!0&&d.push("SequentialMarker")),d.includes("CompensationMarker")&&d.length===1&&_(y,{compensation:-8}),R(d,function(Y){v(Y,f,h,y)})}function L(f,h,d={}){d=_({size:{width:100}},d);var y=o.createText(h||"",d);return ct(y).add("djs-label"),Ae(f,y),y}function W(f,h,d,y={}){var b=ce(h),E=Qi({x:h.x,y:h.y,width:h.width,height:h.height},y);return L(f,b.name,{align:d,box:E,padding:7,style:{fill:Fi(h,m,c,y.stroke)}})}function ut(f,h,d={}){var y={width:90,height:30,x:h.width/2+h.x,y:h.height/2+h.y};return L(f,fn(h),{box:y,fitBox:!0,style:_({},o.getExternalStyle(),{fill:Fi(h,m,c,d.stroke)})})}function oe(f,h,d,y={}){var b=Xr(d),E=L(f,h,{box:{height:30,width:b?Ve(d,y):Ke(d,y)},align:"center-middle",style:{fill:Fi(d,m,c,y.stroke)}});if(b){var I=-1*Ve(d,y);Ns(E,0,-I,270)}}function X(f,h,d={}){var{width:y,height:b}=Qi(h,d);return G(f,y,b,En,{...d,fill:H(h,l,d.fill),fillOpacity:gi,stroke:P(h,c,d.stroke)})}function ot(f,h,d={}){var y=ce(h),b=H(h,l,d.fill),E=P(h,c,d.stroke);return(y.get("associationDirection")==="One"||y.get("associationDirection")==="Both")&&(d.markerEnd=A(f,"association-end",b,E)),y.get("associationDirection")==="Both"&&(d.markerStart=A(f,"association-start",b,E)),d=Z(d,["markerStart","markerEnd"]),x(f,h.waypoints,{...d,stroke:E,strokeDasharray:"0, 5"})}function at(f,h,d={}){var y=H(h,l,d.fill),b=P(h,c,d.stroke),E=s.getScaledPath("DATA_OBJECT_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:h.width,containerHeight:h.height,position:{mx:.474,my:.296}}),I=k(f,E,{fill:y,fillOpacity:gi,stroke:b}),F=ce(h);if($d(F)){var Y=s.getScaledPath("DATA_OBJECT_COLLECTION_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:h.width,containerHeight:h.height,position:{mx:.33,my:(h.height-18)/h.height}});k(f,Y,{strokeWidth:2,fill:y,stroke:b})}return I}function me(f,h,d={}){return M(f,h.width,h.height,{fillOpacity:gi,...d,fill:H(h,l,d.fill),stroke:P(h,c,d.stroke)})}function Ze(f,h,d={}){return K(f,h.width,h.height,{fill:H(h,l,d.fill),fillOpacity:gi,stroke:P(h,c,d.stroke)})}function T(f,h,d={}){var y=G(f,Ke(h,d),Ve(h,d),0,{fill:H(h,l,d.fill),fillOpacity:d.fillOpacity||gi,stroke:P(h,c,d.stroke),strokeWidth:1.5}),b=ce(h);if(Q(b,"bpmn:Lane")){var E=b.get("name");oe(f,E,h,d)}return y}function B(f,h,d={}){var y=X(f,h,d),b=Ht(h);if(Nd(h)&&(se(y,{strokeDasharray:"0, 5.5",strokeWidth:2.5}),!b)){var E=ce(h).flowElements||[],I=E.filter(F=>Q(F,"bpmn:StartEvent"));I.length===1&&U(I[0],f,d,h)}return W(f,h,b?"center-top":"center-middle",d),b?V(f,h,void 0,d):V(f,h,["SubProcessMarker"],d),y}function U(f,h,d,y){var b=22,E={fill:H(y,l,d.fill),stroke:P(y,c,d.stroke),width:b,height:b},I=ce(f).isInterrupting,F=I?0:3,Y=I?1:1.2,ge=20,pe=(b-ge)/2,be="translate("+pe+","+pe+")";M(h,ge,ge,{fill:E.fill,stroke:E.stroke,strokeWidth:Y,strokeDasharray:F,transform:be}),O(f,h,E,y)}function te(f,h,d={}){var y=X(f,h,d);return W(f,h,"center-middle",d),V(f,h,void 0,d),y}var Ge=this.handlers={"bpmn:AdHocSubProcess":function(f,h,d={}){return Ht(h)?d=Z(d,["fill","stroke","width","height"]):d=Z(d,["fill","stroke"]),B(f,h,d)},"bpmn:Association":function(f,h,d={}){return d=Z(d,["fill","stroke"]),ot(f,h,d)},"bpmn:BoundaryEvent":function(f,h,d={}){var{renderIcon:y=!0}=d;d=Z(d,["fill","stroke"]);var b=ce(h),E=b.get("cancelActivity");d={strokeWidth:1.5,fill:H(h,l,d.fill),fillOpacity:Bp,stroke:P(h,c,d.stroke)},E||(d.strokeDasharray="6");var I=me(f,h,d);return M(f,h.width,h.height,bn,{...d,fill:"none"}),y&&O(h,f,d),I},"bpmn:BusinessRuleTask":function(f,h,d={}){d=Z(d,["fill","stroke"]);var y=te(f,h,d),b=s.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN",{abspos:{x:8,y:8}}),E=k(f,b);se(E,{fill:H(h,l,d.fill),stroke:P(h,c,d.stroke),strokeWidth:1});var I=s.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER",{abspos:{x:8,y:8}}),F=k(f,I);return se(F,{fill:P(h,c,d.stroke),stroke:P(h,c,d.stroke),strokeWidth:1}),y},"bpmn:CallActivity":function(f,h,d={}){return d=Z(d,["fill","stroke"]),B(f,h,{strokeWidth:5,...d})},"bpmn:ComplexGateway":function(f,h,d={}){d=Z(d,["fill","stroke"]);var y=Ze(f,h,d),b=s.getScaledPath("GATEWAY_COMPLEX",{xScaleFactor:.5,yScaleFactor:.5,containerWidth:h.width,containerHeight:h.height,position:{mx:.46,my:.26}});return k(f,b,{fill:P(h,c,d.stroke),stroke:P(h,c,d.stroke),strokeWidth:1}),y},"bpmn:DataInput":function(f,h,d={}){d=Z(d,["fill","stroke"]);var y=s.getRawPath("DATA_ARROW"),b=at(f,h,d);return k(f,y,{fill:"none",stroke:P(h,c,d.stroke),strokeWidth:1}),b},"bpmn:DataInputAssociation":function(f,h,d={}){return d=Z(d,["fill","stroke"]),ot(f,h,{...d,markerEnd:A(f,"association-end",H(h,l,d.fill),P(h,c,d.stroke))})},"bpmn:DataObject":function(f,h,d={}){return d=Z(d,["fill","stroke"]),at(f,h,d)},"bpmn:DataObjectReference":j("bpmn:DataObject"),"bpmn:DataOutput":function(f,h,d={}){d=Z(d,["fill","stroke"]);var y=s.getRawPath("DATA_ARROW"),b=at(f,h,d);return k(f,y,{strokeWidth:1,fill:H(h,l,d.fill),stroke:P(h,c,d.stroke)}),b},"bpmn:DataOutputAssociation":function(f,h,d={}){return d=Z(d,["fill","stroke"]),ot(f,h,{...d,markerEnd:A(f,"association-end",H(h,l,d.fill),P(h,c,d.stroke))})},"bpmn:DataStoreReference":function(f,h,d={}){d=Z(d,["fill","stroke"]);var y=s.getScaledPath("DATA_STORE",{xScaleFactor:1,yScaleFactor:1,containerWidth:h.width,containerHeight:h.height,position:{mx:0,my:.133}});return k(f,y,{fill:H(h,l,d.fill),fillOpacity:gi,stroke:P(h,c,d.stroke),strokeWidth:2})},"bpmn:EndEvent":function(f,h,d={}){var{renderIcon:y=!0}=d;d=Z(d,["fill","stroke"]);var b=me(f,h,{...d,strokeWidth:4});return y&&O(h,f,d),b},"bpmn:EventBasedGateway":function(f,h,d={}){d=Z(d,["fill","stroke"]);var y=ce(h),b=Ze(f,h,d);M(f,h.width,h.height,h.height*.2,{fill:H(h,"none",d.fill),stroke:P(h,c,d.stroke),strokeWidth:1});var E=y.get("eventGatewayType"),I=!!y.get("instantiate");function F(){var ge=s.getScaledPath("GATEWAY_EVENT_BASED",{xScaleFactor:.18,yScaleFactor:.18,containerWidth:h.width,containerHeight:h.height,position:{mx:.36,my:.44}});k(f,ge,{fill:"none",stroke:P(h,c,d.stroke),strokeWidth:2})}if(E==="Parallel"){var Y=s.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:h.width,containerHeight:h.height,position:{mx:.474,my:.296}});k(f,Y,{fill:"none",stroke:P(h,c,d.stroke),strokeWidth:1})}else E==="Exclusive"&&(I||M(f,h.width,h.height,h.height*.26,{fill:"none",stroke:P(h,c,d.stroke),strokeWidth:1}),F());return b},"bpmn:ExclusiveGateway":function(f,h,d={}){d=Z(d,["fill","stroke"]);var y=Ze(f,h,d),b=s.getScaledPath("GATEWAY_EXCLUSIVE",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:h.width,containerHeight:h.height,position:{mx:.32,my:.3}}),E=Jt(h);return E.get("isMarkerVisible")&&k(f,b,{fill:P(h,c,d.stroke),stroke:P(h,c,d.stroke),strokeWidth:1}),y},"bpmn:Gateway":function(f,h,d={}){return d=Z(d,["fill","stroke"]),Ze(f,h,d)},"bpmn:Group":function(f,h,d={}){return d=Z(d,["fill","stroke","width","height"]),G(f,h.width,h.height,En,{stroke:P(h,c,d.stroke),strokeWidth:1.5,strokeDasharray:"10, 6, 0, 6",fill:"none",pointerEvents:"none",width:Ke(h,d),height:Ve(h,d)})},"bpmn:InclusiveGateway":function(f,h,d={}){d=Z(d,["fill","stroke"]);var y=Ze(f,h,d);return M(f,h.width,h.height,h.height*.24,{fill:H(h,l,d.fill),stroke:P(h,c,d.stroke),strokeWidth:2.5}),y},"bpmn:IntermediateEvent":function(f,h,d={}){var{renderIcon:y=!0}=d;d=Z(d,["fill","stroke"]);var b=me(f,h,{...d,strokeWidth:1.5});return M(f,h.width,h.height,bn,{fill:"none",stroke:P(h,c,d.stroke),strokeWidth:1.5}),y&&O(h,f,d),b},"bpmn:IntermediateCatchEvent":j("bpmn:IntermediateEvent"),"bpmn:IntermediateThrowEvent":j("bpmn:IntermediateEvent"),"bpmn:Lane":function(f,h,d={}){return d=Z(d,["fill","stroke","width","height"]),T(f,h,{...d,fillOpacity:Ip})},"bpmn:ManualTask":function(f,h,d={}){d=Z(d,["fill","stroke"]);var y=te(f,h,d),b=s.getScaledPath("TASK_TYPE_MANUAL",{abspos:{x:17,y:15}});return k(f,b,{fill:H(h,l,d.fill),stroke:P(h,c,d.stroke),strokeWidth:.5}),y},"bpmn:MessageFlow":function(f,h,d={}){d=Z(d,["fill","stroke"]);var y=ce(h),b=Jt(h),E=H(h,l,d.fill),I=P(h,c,d.stroke),F=x(f,h.waypoints,{markerEnd:A(f,"messageflow-end",E,I),markerStart:A(f,"messageflow-start",E,I),stroke:I,strokeDasharray:"10, 11",strokeWidth:1.5});if(y.get("messageRef")){var Y=F.getPointAtLength(F.getTotalLength()/2),ge=s.getScaledPath("MESSAGE_FLOW_MARKER",{abspos:{x:Y.x,y:Y.y}}),pe={strokeWidth:1};b.get("messageVisibleKind")==="initiating"?(pe.fill=E,pe.stroke=I):(pe.fill=I,pe.stroke=E);var be=k(f,ge,pe),Xe=y.get("messageRef"),ie=Xe.get("name"),wt=L(f,ie,{align:"center-top",fitBox:!0,style:{fill:I}}),Ln=be.getBBox(),qe=wt.getBBox(),J=Y.x-qe.width/2,ee=Y.y+Ln.height/2+Np;Ns(wt,J,ee,0)}return F},"bpmn:ParallelGateway":function(f,h,d={}){d=Z(d,["fill","stroke"]);var y=Ze(f,h,d),b=s.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.6,yScaleFactor:.6,containerWidth:h.width,containerHeight:h.height,position:{mx:.46,my:.2}});return k(f,b,{fill:P(h,c,d.stroke),stroke:P(h,c,d.stroke),strokeWidth:1}),y},"bpmn:Participant":function(f,h,d={}){d=Z(d,["fill","stroke","width","height"]);var y=T(f,h,d),b=Ht(h),E=Xr(h),I=ce(h),F=I.get("name");if(b){var Y=E?[{x:30,y:0},{x:30,y:Ve(h,d)}]:[{x:0,y:30},{x:Ke(h,d),y:30}];z(f,Y,{stroke:P(h,c,d.stroke),strokeWidth:Tp}),oe(f,F,h,d)}else{var ge=Qi(h,d);E||(ge.height=Ke(h,d),ge.width=Ve(h,d));var pe=L(f,F,{box:ge,align:"center-middle",style:{fill:Fi(h,m,c,d.stroke)}});if(!E){var be=-1*Ve(h,d);Ns(pe,0,-be,270)}}return I.get("participantMultiplicity")&&v("ParticipantMultiplicityMarker",f,h,d),y},"bpmn:ReceiveTask":function(f,h,d={}){d=Z(d,["fill","stroke"]);var y=ce(h),b=te(f,h,d),E;return y.get("instantiate")?(M(f,28,28,20*.22,{fill:H(h,l,d.fill),stroke:P(h,c,d.stroke),strokeWidth:1}),E=s.getScaledPath("TASK_TYPE_INSTANTIATING_SEND",{abspos:{x:7.77,y:9.52}})):E=s.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:21,containerHeight:14,position:{mx:.3,my:.4}}),k(f,E,{fill:H(h,l,d.fill),stroke:P(h,c,d.stroke),strokeWidth:1}),b},"bpmn:ScriptTask":function(f,h,d={}){d=Z(d,["fill","stroke"]);var y=te(f,h,d),b=s.getScaledPath("TASK_TYPE_SCRIPT",{abspos:{x:15,y:20}});return k(f,b,{fill:H(h,l,d.fill),stroke:P(h,c,d.stroke),strokeWidth:1}),y},"bpmn:SendTask":function(f,h,d={}){d=Z(d,["fill","stroke"]);var y=te(f,h,d),b=s.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:1,yScaleFactor:1,containerWidth:21,containerHeight:14,position:{mx:.285,my:.357}});return k(f,b,{fill:P(h,c,d.stroke),stroke:H(h,l,d.fill),strokeWidth:1}),y},"bpmn:SequenceFlow":function(f,h,d={}){d=Z(d,["fill","stroke"]);var y=H(h,l,d.fill),b=P(h,c,d.stroke),E=x(f,h.waypoints,{markerEnd:A(f,"sequenceflow-end",y,b),stroke:b}),I=ce(h),{source:F}=h;if(F){var Y=ce(F);I.get("conditionExpression")&&Q(Y,"bpmn:Activity")&&se(E,{markerStart:A(f,"conditional-flow-marker",y,b)}),Y.get("default")&&(Q(Y,"bpmn:Gateway")||Q(Y,"bpmn:Activity"))&&Y.get("default")===I&&se(E,{markerStart:A(f,"conditional-default-flow-marker",y,b)})}return E},"bpmn:ServiceTask":function(f,h,d={}){d=Z(d,["fill","stroke"]);var y=te(f,h,d);M(f,10,10,{fill:H(h,l,d.fill),stroke:"none",transform:"translate(6, 6)"});var b=s.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:12,y:18}});k(f,b,{fill:H(h,l,d.fill),stroke:P(h,c,d.stroke),strokeWidth:1}),M(f,10,10,{fill:H(h,l,d.fill),stroke:"none",transform:"translate(11, 10)"});var E=s.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:17,y:22}});return k(f,E,{fill:H(h,l,d.fill),stroke:P(h,c,d.stroke),strokeWidth:1}),y},"bpmn:StartEvent":function(f,h,d={}){var{renderIcon:y=!0}=d;d=Z(d,["fill","stroke"]);var b=ce(h);b.get("isInterrupting")||(d={...d,strokeDasharray:"6"});var E=me(f,h,d);return y&&O(h,f,d),E},"bpmn:SubProcess":function(f,h,d={}){return Ht(h)?d=Z(d,["fill","stroke","width","height"]):d=Z(d,["fill","stroke"]),B(f,h,d)},"bpmn:Task":function(f,h,d={}){return d=Z(d,["fill","stroke"]),te(f,h,d)},"bpmn:TextAnnotation":function(f,h,d={}){d=Z(d,["fill","stroke","width","height"]);var{width:y,height:b}=Qi(h,d),E=G(f,y,b,0,0,{fill:"none",stroke:"none"}),I=s.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:y,containerHeight:b,position:{mx:0,my:0}});k(f,I,{stroke:P(h,c,d.stroke)});var F=ce(h),Y=F.get("text")||"";return L(f,Y,{align:"left-top",box:Qi(h,d),padding:7,style:{fill:Fi(h,m,c,d.stroke)}}),E},"bpmn:Transaction":function(f,h,d={}){Ht(h)?d=Z(d,["fill","stroke","width","height"]):d=Z(d,["fill","stroke"]);var y=B(f,h,{strokeWidth:1.5,...d}),b=i.style(["no-fill","no-events"],{stroke:P(h,c,d.stroke),strokeWidth:1.5}),E=Ht(h);return E||(d={}),G(f,Ke(h,d),Ve(h,d),En-bn,bn,b),y},"bpmn:UserTask":function(f,h,d={}){d=Z(d,["fill","stroke"]);var y=te(f,h,d),b=15,E=12,I=s.getScaledPath("TASK_TYPE_USER_1",{abspos:{x:b,y:E}});k(f,I,{fill:H(h,l,d.fill),stroke:P(h,c,d.stroke),strokeWidth:.5});var F=s.getScaledPath("TASK_TYPE_USER_2",{abspos:{x:b,y:E}});k(f,F,{fill:H(h,l,d.fill),stroke:P(h,c,d.stroke),strokeWidth:.5});var Y=s.getScaledPath("TASK_TYPE_USER_3",{abspos:{x:b,y:E}});return k(f,Y,{fill:P(h,c,d.stroke),stroke:P(h,c,d.stroke),strokeWidth:.5}),y},label:function(f,h,d={}){return ut(f,h,d)}};this._drawPath=k,this._renderer=S}lt(Yt,yt),Yt.$inject=["config.bpmnRenderer","eventBus","styles","pathMap","canvas","textRenderer"],Yt.prototype.canRender=function(e){return Q(e,"bpmn:BaseElement")},Yt.prototype.drawShape=function(e,t,i={}){var{type:s}=t,r=this._renderer(s);return r(e,t,i)},Yt.prototype.drawConnection=function(e,t,i={}){var{type:s}=t,r=this._renderer(s);return r(e,t,i)},Yt.prototype.getShapePath=function(e){return Q(e,"bpmn:Event")?ep(e):Q(e,"bpmn:Activity")?tp(e,En):Q(e,"bpmn:Gateway")?ip(e):np(e)};function Z(e,t=[]){return t.reduce((i,s)=>(e[s]&&(i[s]=e[s]),i),{})}var xp=0,Sp={width:150,height:50};function Dp(e){var t=e.split("-");return{horizontal:t[0]||"center",vertical:t[1]||"top"}}function Pp(e){return Gt(e)?_({top:0,left:0,right:0,bottom:0},e):{top:e,left:e,right:e,bottom:e}}function Mp(e,t){t.textContent=e;var i;try{var s,r=e==="";return t.textContent=r?"dummy":e,i=t.getBBox(),s={width:i.width+i.x*2,height:i.height},r&&(s.width=0),s}catch(o){return{width:0,height:0}}}function Op(e,t,i){for(var s=e.shift(),r=s,o;;){if(o=Mp(r,i),o.width=r?o.width:0,r===" "||r===""||o.width<Math.round(t)||r.length<2)return Vp(e,r,s,o);r=Lp(r,o.width,t)}}function Vp(e,t,i,s){if(t.length<i.length){var r=i.slice(t.length).trim();e.unshift(r)}return{width:s.width,height:s.height,text:t}}var Ao="\xAD";function Rp(e,t){var i=e.split(/(\s|-|\u00AD)/g),s,r=[],o=0;if(i.length>1)for(;s=i.shift();)if(s.length+o<t)r.push(s),o+=s.length;else{(s==="-"||s===Ao)&&r.pop();break}var a=r[r.length-1];return a&&a===Ao&&(r[r.length-1]="-"),r.join("")}function Lp(e,t,i){var s=Math.max(e.length*(i/t),1),r=Rp(e,s);return r||(r=e.slice(0,Math.max(Math.round(s-1),1))),r}function vp(){var e=document.getElementById("helper-svg");return e||(e=re("svg"),se(e,{id:"helper-svg"}),we(e,{visibility:"hidden",position:"fixed",width:0,height:0}),document.body.appendChild(e)),e}function Cn(e){this._config=_({},{size:Sp,padding:xp,style:{},align:"center-top"},e||{})}Cn.prototype.createText=function(e,t){return this.layoutText(e,t).element},Cn.prototype.getDimensions=function(e,t){return this.layoutText(e,t).dimensions},Cn.prototype.layoutText=function(e,t){var i=_({},this._config.size,t.box),s=_({},this._config.style,t.style),r=Dp(t.align||this._config.align),o=Pp(t.padding!==void 0?t.padding:this._config.padding),a=t.fitBox||!1,l=Fp(s),c=e.split(/\u00AD?\r?\n/),m=[],u=i.width-o.left-o.right,p=re("text");se(p,{x:0,y:0}),se(p,s);var g=vp();for(Ae(g,p);c.length;)m.push(Op(c,u,p));r.vertical==="middle"&&(o.top=o.bottom=0);var A=ui(m,function(z,x,k){return z+(l||x.height)},0)+o.top+o.bottom,w=ui(m,function(z,x,k){return x.width>z?x.width:z},0),M=o.top;r.vertical==="middle"&&(M+=(i.height-A)/2),M-=(l||m[0].height)/4;var G=re("text");se(G,s),R(m,function(z){var x;switch(M+=l||z.height,r.horizontal){case"left":x=o.left;break;case"right":x=(a?w:u)-o.right-z.width;break;default:x=Math.max(((a?w:u)-z.width)/2+o.left,0)}var k=re("tspan");se(k,{x,y:M}),k.textContent=z.text,Ae(G,k)}),Li(p);var K={width:w,height:A};return{dimensions:K,element:G}};function Fp(e){if("fontSize"in e&&"lineHeight"in e)return e.lineHeight*parseInt(e.fontSize,10)}var Qp=12,jp=1.2,Up=30;function ko(e){var t=_({fontFamily:"Arial, sans-serif",fontSize:Qp,fontWeight:"normal",lineHeight:jp},e&&e.defaultStyle||{}),i=parseInt(t.fontSize,10)-1,s=_({},t,{fontSize:i},e&&e.externalStyle||{}),r=new Cn({style:t});this.getExternalLabelBounds=function(o,a){var l=r.getDimensions(a,{box:{width:90,height:30},style:s});return{x:Math.round(o.x+o.width/2-l.width/2),y:Math.round(o.y),width:Math.ceil(l.width),height:Math.ceil(l.height)}},this.getTextAnnotationBounds=function(o,a){var l=r.getDimensions(a,{box:o,style:t,align:"left-top",padding:5});return{x:o.x,y:o.y,width:o.width,height:Math.max(Up,Math.round(l.height))}},this.createText=function(o,a){return r.createText(o,a||{})},this.getDefaultStyle=function(){return t},this.getExternalStyle=function(){return s}}ko.$inject=["config.textRenderer"];function _p(){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(t){return this.pathMap[t].d},this.getScaledPath=function(t,i){var s=this.pathMap[t],r,o;i.abspos?(r=i.abspos.x,o=i.abspos.y):(r=i.containerWidth*i.position.mx,o=i.containerHeight*i.position.my);var a={};if(i.position){for(var l=i.containerHeight/s.height*i.yScaleFactor,c=i.containerWidth/s.width*i.xScaleFactor,m=0;m<s.heightElements.length;m++)a["y"+m]=s.heightElements[m]*l;for(var u=0;u<s.widthElements.length;u++)a["x"+u]=s.widthElements[u]*c}var p=Hp(s.d,{mx:r,my:o,e:a});return p}}var Gp=/\{([^{}]+)\}/g,qp=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g;function Jp(e,t,i){var s=i;return t.replace(qp,function(r,o,a,l,c){o=o||l,s&&(o in s&&(s=s[o]),typeof s=="function"&&c&&(s=s()))}),s=(s==null||s==i?e:s)+"",s}function Hp(e,t){return String(e).replace(Gp,function(i,s){return Jp(i,s,t)})}const zp={__init__:["bpmnRenderer"],bpmnRenderer:["type",Yt],textRenderer:["type",ko],pathMap:["type",_p]};function Kp(e,t){return t=t||{},e.replace(/{([^}]+)}/g,function(i,s){return t[s]||"{"+s+"}"})}const bo={translate:["value",Kp]};function Wp(e){return{x:Math.round(e.x),y:Math.round(e.y)}}function Ts(e){return{top:e.y,right:e.x+(e.width||0),bottom:e.y+(e.height||0),left:e.x}}function Yp(e){return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}function Zp(e){return Wp({x:e.x+(e.width||0)/2,y:e.y+(e.height||0)/2})}function Xp(e){for(var t=e.waypoints,i=t.reduce(function(m,u,p){var g=t[p-1];if(g){var A=m[m.length-1],w=A&&A.endLength||0,M=$p(g,u);m.push({start:g,end:u,startLength:w,endLength:w+M,length:M})}return m},[]),s=i.reduce(function(m,u){return m+u.length},0),r=s/2,o=0,a=i[o];a.endLength<r;)a=i[++o];var l=(r-a.startLength)/a.length,c={x:a.start.x+(a.end.x-a.start.x)*l,y:a.start.y+(a.end.y-a.start.y)*l};return c}function Bs(e){return Td(e)?Xp(e):Zp(e)}function $p(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Ne(e){return e?"<"+e.$type+(e.id?' id="'+e.id:"")+'" />':"<null>"}function wn(e,t,i){return _({id:e.id,type:e.$type,businessObject:e,di:t},i)}function eh(e,t,i){var s=e.waypoint;return!s||s.length<2?[Bs(t),Bs(i)]:s.map(function(r){return{x:r.x,y:r.y}})}function Eo(e,t,i){return new Error(`element ${Ne(t)} referenced by ${Ne(e)}#${i} not yet drawn`)}function bt(e,t,i,s,r){this._eventBus=e,this._canvas=t,this._elementFactory=i,this._elementRegistry=s,this._textRenderer=r}bt.$inject=["eventBus","canvas","elementFactory","elementRegistry","textRenderer"],bt.prototype.add=function(e,t,i){var s,r,o;if(Q(t,"bpmndi:BPMNPlane")){var a=Q(e,"bpmn:SubProcess")?{id:e.id+"_plane"}:{};s=this._elementFactory.createRoot(wn(e,t,a)),this._canvas.addRootElement(s)}else if(Q(t,"bpmndi:BPMNShape")){var l=!Ht(e,t),c=ih(e);r=i&&(i.hidden||i.collapsed);var m=t.bounds;s=this._elementFactory.createShape(wn(e,t,{collapsed:l,hidden:r,x:Math.round(m.x),y:Math.round(m.y),width:Math.round(m.width),height:Math.round(m.height),isFrame:c})),Q(e,"bpmn:BoundaryEvent")&&this._attachBoundary(e,s),Q(e,"bpmn:Lane")&&(o=0),Q(e,"bpmn:DataStoreReference")&&(th(i,Bs(m))||(i=this._canvas.findRoot(i))),this._canvas.addShape(s,i,o)}else if(Q(t,"bpmndi:BPMNEdge")){var u=this._getSource(e),p=this._getTarget(e);r=i&&(i.hidden||i.collapsed),s=this._elementFactory.createConnection(wn(e,t,{hidden:r,source:u,target:p,waypoints:eh(t,u,p)})),Q(e,"bpmn:DataAssociation")&&(i=this._canvas.findRoot(i)),this._canvas.addConnection(s,i,o)}else throw new Error(`unknown di ${Ne(t)} for element ${Ne(e)}`);return Bd(e)&&fn(s)&&this.addLabel(e,t,s),this._eventBus.fire("bpmnElement.added",{element:s}),s},bt.prototype._attachBoundary=function(e,t){var i=e.attachedToRef;if(!i)throw new Error(`missing ${Ne(e)}#attachedToRef`);var s=this._elementRegistry.get(i.id),r=s&&s.attachers;if(!s)throw Eo(e,i,"attachedToRef");t.host=s,r||(s.attachers=r=[]),r.indexOf(t)===-1&&r.push(t)},bt.prototype.addLabel=function(e,t,i){var s,r,o;return s=Dd(t,i),r=fn(i),r&&(s=this._textRenderer.getExternalLabelBounds(s,r)),o=this._elementFactory.createLabel(wn(e,t,{id:e.id+"_label",labelTarget:i,type:"label",hidden:i.hidden||!fn(i),x:Math.round(s.x),y:Math.round(s.y),width:Math.round(s.width),height:Math.round(s.height)})),this._canvas.addShape(o,i.parent)},bt.prototype._getConnectedElement=function(e,t){var i,s,r=e.$type;if(s=e[t+"Ref"],t==="source"&&r==="bpmn:DataInputAssociation"&&(s=s&&s[0]),(t==="source"&&r==="bpmn:DataOutputAssociation"||t==="target"&&r==="bpmn:DataInputAssociation")&&(s=e.$parent),i=s&&this._getElement(s),i)return i;throw s?Eo(e,s,t+"Ref"):new Error(`${Ne(e)}#${t} Ref not specified`)},bt.prototype._getSource=function(e){return this._getConnectedElement(e,"source")},bt.prototype._getTarget=function(e){return this._getConnectedElement(e,"target")},bt.prototype._getElement=function(e){return this._elementRegistry.get(e.id)};function th(e,t){var i=t.x,s=t.y;return i>=e.x&&i<=e.x+e.width&&s>=e.y&&s<=e.y+e.height}function ih(e){return Q(e,"bpmn:Group")}const nh={__depends__:[zp,{__depends__:[bo],bpmnImporter:["type",bt]}]};function ji(e,t){t=!!t,it(e)||(e=[e]);var i,s,r,o;return R(e,function(a){var l=a;a.waypoints&&!t&&(l=ji(a.waypoints,!0));var c=l.x,m=l.y,u=l.height||0,p=l.width||0;(c<i||i===void 0)&&(i=c),(m<s||s===void 0)&&(s=m),(c+p>r||r===void 0)&&(r=c+p),(m+u>o||o===void 0)&&(o=m+u)}),{x:i,y:s,height:o-s,width:r-i}}function Co(e){return"waypoints"in e?"connection":"x"in e?"shape":"root"}function wo(e){return!!(e&&e.isFrame)}function Is(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(Math.random()*1e9)+"-"}Is.prototype.next=function(){return this._prefix+ ++this._counter};var sh=new Is("ov"),rh=500;function ke(e,t,i,s){this._eventBus=t,this._canvas=i,this._elementRegistry=s,this._ids=sh,this._overlayDefaults=_({show:null,scale:!0},e&&e.defaults),this._overlays={},this._overlayContainers=[],this._overlayRoot=oh(i.getContainer()),this._init()}ke.$inject=["config.overlays","eventBus","canvas","elementRegistry"],ke.prototype.get=function(e){if(nt(e)&&(e={id:e}),nt(e.element)&&(e.element=this._elementRegistry.get(e.element)),e.element){var t=this._getOverlayContainer(e.element,!0);return t?e.type?hi(t.overlays,Zr({type:e.type})):t.overlays.slice():[]}else return e.type?hi(this._overlays,Zr({type:e.type})):e.id?this._overlays[e.id]:null},ke.prototype.add=function(e,t,i){if(Gt(t)&&(i=t,t=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 s=this._ids.next();return i=_({},this._overlayDefaults,i,{id:s,type:t,element:e,html:i.html}),this._addOverlay(i),s},ke.prototype.remove=function(e){var t=this.get(e)||[];it(t)||(t=[t]);var i=this;R(t,function(s){var r=i._getOverlayContainer(s.element,!0);if(s&&(fi(s.html),fi(s.htmlContainer),delete s.htmlContainer,delete s.element,delete i._overlays[s.id]),r){var o=r.overlays.indexOf(s);o!==-1&&r.overlays.splice(o,1)}})},ke.prototype.isShown=function(){return this._overlayRoot.style.display!=="none"},ke.prototype.show=function(){Nn(this._overlayRoot)},ke.prototype.hide=function(){Nn(this._overlayRoot,!1)},ke.prototype.clear=function(){this._overlays={},this._overlayContainers=[],ho(this._overlayRoot)},ke.prototype._updateOverlayContainer=function(e){var t=e.element,i=e.html,s=t.x,r=t.y;if(t.waypoints){var o=ji(t);s=o.x,r=o.y}No(i,s,r),Es(e.html,"data-container-id",t.id)},ke.prototype._updateOverlay=function(e){var t=e.position,i=e.htmlContainer,s=e.element,r=t.left,o=t.top;if(t.right!==void 0){var a;s.waypoints?a=ji(s).width:a=s.width,r=t.right*-1+a}if(t.bottom!==void 0){var l;s.waypoints?l=ji(s).height:l=s.height,o=t.bottom*-1+l}No(i,r||0,o||0),this._updateOverlayVisibilty(e,this._canvas.viewbox())},ke.prototype._createOverlayContainer=function(e){var t=Qe('<div class="djs-overlays" />');we(t,{position:"absolute"}),this._overlayRoot.appendChild(t);var i={html:t,element:e,overlays:[]};return this._updateOverlayContainer(i),this._overlayContainers.push(i),i},ke.prototype._updateRoot=function(e){var t=e.scale||1,i="matrix("+[t,0,0,t,-1*e.x*t,-1*e.y*t].join(",")+")";To(this._overlayRoot,i)},ke.prototype._getOverlayContainer=function(e,t){var i=st(this._overlayContainers,function(s){return s.element===e});return!i&&!t?this._createOverlayContainer(e):i},ke.prototype._addOverlay=function(e){var t=e.id,i=e.element,s=e.html,r,o;s.get&&s.constructor.prototype.jquery&&(s=s.get(0)),nt(s)&&(s=Qe(s)),o=this._getOverlayContainer(i),r=Qe('<div class="djs-overlay" data-overlay-id="'+t+'">'),we(r,{position:"absolute"}),r.appendChild(s),e.type&&Kt(r).add("djs-overlay-"+e.type);var a=this._canvas.findRoot(i),l=this._canvas.getRootElement();Nn(r,a===l),e.htmlContainer=r,o.overlays.push(e),o.html.appendChild(r),this._overlays[t]=e,this._updateOverlay(e),this._updateOverlayVisibilty(e,this._canvas.viewbox())},ke.prototype._updateOverlayVisibilty=function(e,t){var i=e.show,s=this._canvas.findRoot(e.element),r=i&&i.minZoom,o=i&&i.maxZoom,a=e.htmlContainer,l=this._canvas.getRootElement(),c=!0;(s!==l||i&&(di(r)&&r>t.scale||di(o)&&o<t.scale))&&(c=!1),Nn(a,c),this._updateOverlayScale(e,t)},ke.prototype._updateOverlayScale=function(e,t){var i=e.scale,s,r,o=e.htmlContainer,a,l="";i!==!0&&(i===!1?(s=1,r=1):(s=i.min,r=i.max),di(s)&&t.scale<s&&(a=(1/t.scale||1)*s),di(r)&&t.scale>r&&(a=(1/t.scale||1)*r)),di(a)&&(l="scale("+a+","+a+")"),To(o,l)},ke.prototype._updateOverlaysVisibilty=function(e){var t=this;R(this._overlays,function(i){t._updateOverlayVisibilty(i,e)})},ke.prototype._init=function(){var e=this._eventBus,t=this;function i(s){t._updateRoot(s),t._updateOverlaysVisibilty(s),t.show()}e.on("canvas.viewbox.changing",function(s){t.hide()}),e.on("canvas.viewbox.changed",function(s){i(s.viewbox)}),e.on(["shape.remove","connection.remove"],function(s){var r=s.element,o=t.get({element:r});R(o,function(c){t.remove(c.id)});var a=t._getOverlayContainer(r);if(a){fi(a.html);var l=t._overlayContainers.indexOf(a);l!==-1&&t._overlayContainers.splice(l,1)}}),e.on("element.changed",rh,function(s){var r=s.element,o=t._getOverlayContainer(r,!0);o&&(R(o.overlays,function(a){t._updateOverlay(a)}),t._updateOverlayContainer(o))}),e.on("element.marker.update",function(s){var r=t._getOverlayContainer(s.element,!0);r&&Kt(r.html)[s.add?"add":"remove"](s.marker)}),e.on("root.set",function(){t._updateOverlaysVisibilty(t._canvas.viewbox())}),e.on("diagram.clear",this.clear,this)};function oh(e){var t=Qe('<div class="djs-overlay-container" />');return we(t,{position:"absolute",width:0,height:0}),e.insertBefore(t,e.firstChild),t}function No(e,t,i){we(e,{left:t+"px",top:i+"px"})}function Nn(e,t){e.style.display=t===!1?"none":""}function To(e,t){e.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach(function(i){e.style[i+"transform"]=t})}const Bo={__init__:["overlays"],overlays:["type",ke]};function Io(e,t,i,s){e.on("element.changed",function(r){var o=r.element;(o.parent||o===t.getRootElement())&&(r.gfx=i.getGraphics(o)),r.gfx&&e.fire(Co(o)+".changed",r)}),e.on("elements.changed",function(r){var o=r.elements;o.forEach(function(a){e.fire("element.changed",{element:a})}),s.updateContainments(o)}),e.on("shape.changed",function(r){s.update("shape",r.element,r.gfx)}),e.on("connection.changed",function(r){s.update("connection",r.element,r.gfx)})}Io.$inject=["eventBus","canvas","elementRegistry","graphicsFactory"];const ah={__init__:["changeSupport"],changeSupport:["type",Io]};var lh=1e3;function xe(e){this._eventBus=e}xe.$inject=["eventBus"];function ch(e,t){return function(i){return e.call(t||null,i.context,i.command,i)}}xe.prototype.on=function(e,t,i,s,r,o){if((qt(t)||Dt(t))&&(o=r,r=s,s=i,i=t,t=null),qt(i)&&(o=r,r=s,s=i,i=lh),Gt(r)&&(o=r,r=!1),!qt(s))throw new Error("handlerFn must be a function");it(e)||(e=[e]);var a=this._eventBus;R(e,function(l){var c=["commandStack",l,t].filter(function(m){return m}).join(".");a.on(c,i,r?ch(s,o):s,o)})},xe.prototype.canExecute=Et("canExecute"),xe.prototype.preExecute=Et("preExecute"),xe.prototype.preExecuted=Et("preExecuted"),xe.prototype.execute=Et("execute"),xe.prototype.executed=Et("executed"),xe.prototype.postExecute=Et("postExecute"),xe.prototype.postExecuted=Et("postExecuted"),xe.prototype.revert=Et("revert"),xe.prototype.reverted=Et("reverted");function Et(e){return function(i,s,r,o,a){(qt(i)||Dt(i))&&(a=o,o=r,r=s,s=i,i=null),this.on(i,e,s,r,o,a)}}function xs(e,t){t.invoke(xe,this),this.executed(function(i){var s=i.context;s.rootElement?e.setRootElement(s.rootElement):s.rootElement=e.getRootElement()}),this.revert(function(i){var s=i.context;s.rootElement&&e.setRootElement(s.rootElement)})}lt(xs,xe),xs.$inject=["canvas","injector"];const dh={__init__:["rootElementsBehavior"],rootElementsBehavior:["type",xs]};var ph={"&":"&","<":"<",">":">",'"':""","'":"'"};function hh(e){return e=""+e,e&&e.replace(/[&<>"']/g,function(t){return ph[t]})}var uh="_plane";function Ss(e){var t=e.id;return Q(e,"bpmn:SubProcess")?mh(t):t}function mh(e){return e+uh}var fh="bjs-breadcrumbs-shown";function xo(e,t,i){var s=Qe('<ul class="bjs-breadcrumbs"></ul>'),r=i.getContainer(),o=Kt(r);r.appendChild(s);var a=[];e.on("element.changed",function(c){var m=c.element,u=ce(m),p=st(a,function(g){return g===u});!p||l()});function l(c){c&&(a=gh(c));var m=a.flatMap(function(p){var g=i.findRoot(Ss(p))||i.findRoot(p.id);if(!g&&Q(p,"bpmn:Process")){var A=t.find(function(G){var K=ce(G);return K&&K.get("processRef")===p});g=A&&i.findRoot(A.id)}if(!g)return[];var w=hh(p.name||p.id),M=Qe('<li><span class="bjs-crumb"><a title="'+w+'">'+w+"</a></span></li>");return M.addEventListener("click",function(){i.setRootElement(g)}),M});s.innerHTML="";var u=m.length>1;o.toggle(fh,u),m.forEach(function(p){s.appendChild(p)})}e.on("root.set",function(c){l(c.element)})}xo.$inject=["eventBus","elementRegistry","canvas"];function gh(e){for(var t=ce(e),i=[],s=t;s;s=s.$parent)(Q(s,"bpmn:SubProcess")||Q(s,"bpmn:Process"))&&i.push(s);return i.reverse()}function So(e,t){var i=null,s=new yh;e.on("root.set",function(r){var o=r.element,a=t.viewbox(),l=s.get(o);if(s.set(i,{x:a.x,y:a.y,zoom:a.scale}),i=o,!(!Q(o,"bpmn:SubProcess")&&!l)){l=l||{x:0,y:0,zoom:1};var c=(a.x-l.x)*a.scale,m=(a.y-l.y)*a.scale;(c!==0||m!==0)&&t.scroll({dx:c,dy:m}),l.zoom!==a.scale&&t.zoom(l.zoom,{x:0,y:0})}}),e.on("diagram.clear",function(){s.clear(),i=null})}So.$inject=["eventBus","canvas"];function yh(){this._entries=[],this.set=function(e,t){var i=!1;for(var s in this._entries)if(this._entries[s][0]===e){this._entries[s][1]=t,i=!0;break}i||this._entries.push([e,t])},this.get=function(e){for(var t in this._entries)if(this._entries[t][0]===e)return this._entries[t][1];return null},this.clear=function(){this._entries.length=0},this.remove=function(e){var t=-1;for(var i in this._entries)if(this._entries[i][0]===e){t=i;break}t!==-1&&this._entries.splice(t,1)}}var Do={x:180,y:160};function Zt(e,t){this._eventBus=e,this._moddle=t;var i=this;e.on("import.render.start",1500,function(s,r){i._handleImport(r.definitions)})}Zt.prototype._handleImport=function(e){if(!!e.diagrams){var t=this;this._definitions=e,this._processToDiagramMap={},e.diagrams.forEach(function(s){!s.plane||!s.plane.bpmnElement||(t._processToDiagramMap[s.plane.bpmnElement.id]=s)});var i=e.diagrams.filter(s=>s.plane).flatMap(s=>t._createNewDiagrams(s.plane));i.forEach(function(s){t._movePlaneElementsToOrigin(s.plane)})}},Zt.prototype._createNewDiagrams=function(e){var t=this,i=[],s=[];e.get("planeElement").forEach(function(o){var a=o.bpmnElement;if(!!a){var l=a.$parent;Q(a,"bpmn:SubProcess")&&!o.isExpanded&&i.push(a),kh(a,e)&&s.push({diElement:o,parent:l})}});var r=[];return i.forEach(function(o){if(!t._processToDiagramMap[o.id]){var a=t._createDiagram(o);t._processToDiagramMap[o.id]=a,r.push(a)}}),s.forEach(function(o){for(var a=o.diElement,l=o.parent;l&&i.indexOf(l)===-1;)l=l.$parent;if(!!l){var c=t._processToDiagramMap[l.id];t._moveToDiPlane(a,c.plane)}}),r},Zt.prototype._movePlaneElementsToOrigin=function(e){var t=e.get("planeElement"),i=Ah(e),s={x:i.x-Do.x,y:i.y-Do.y};t.forEach(function(r){r.waypoint?r.waypoint.forEach(function(o){o.x=o.x-s.x,o.y=o.y-s.y}):r.bounds&&(r.bounds.x=r.bounds.x-s.x,r.bounds.y=r.bounds.y-s.y)})},Zt.prototype._moveToDiPlane=function(e,t){var i=Po(e),s=i.plane.get("planeElement");s.splice(s.indexOf(e),1),t.get("planeElement").push(e)},Zt.prototype._createDiagram=function(e){var t=this._moddle.create("bpmndi:BPMNPlane",{bpmnElement:e}),i=this._moddle.create("bpmndi:BPMNDiagram",{plane:t});return t.$parent=i,t.bpmnElement=e,i.$parent=this._definitions,this._definitions.diagrams.push(i),i},Zt.$inject=["eventBus","moddle"];function Po(e){return Q(e,"bpmndi:BPMNDiagram")?e:Po(e.$parent)}function Ah(e){var t={top:1/0,right:-1/0,bottom:-1/0,left:1/0};return e.planeElement.forEach(function(i){if(!!i.bounds){var s=Ts(i.bounds);t.top=Math.min(s.top,t.top),t.left=Math.min(s.left,t.left)}}),Yp(t)}function kh(e,t){var i=e.$parent;return!(!Q(i,"bpmn:SubProcess")||i===t.bpmnElement||wd(e,["bpmn:DataInputAssociation","bpmn:DataOutputAssociation"]))}var Tn=250,bh='<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>',Eh="bjs-drilldown-empty";function Vt(e,t,i,s,r){xe.call(this,t),this._canvas=e,this._eventBus=t,this._elementRegistry=i,this._overlays=s,this._translate=r;var o=this;this.executed("shape.toggleCollapse",Tn,function(a){var l=a.shape;o._canDrillDown(l)?o._addOverlay(l):o._removeOverlay(l)},!0),this.reverted("shape.toggleCollapse",Tn,function(a){var l=a.shape;o._canDrillDown(l)?o._addOverlay(l):o._removeOverlay(l)},!0),this.executed(["shape.create","shape.move","shape.delete"],Tn,function(a){var l=a.oldParent,c=a.newParent||a.parent,m=a.shape;o._canDrillDown(m)&&o._addOverlay(m),o._updateDrilldownOverlay(l),o._updateDrilldownOverlay(c),o._updateDrilldownOverlay(m)},!0),this.reverted(["shape.create","shape.move","shape.delete"],Tn,function(a){var l=a.oldParent,c=a.newParent||a.parent,m=a.shape;o._canDrillDown(m)&&o._addOverlay(m),o._updateDrilldownOverlay(l),o._updateDrilldownOverlay(c),o._updateDrilldownOverlay(m)},!0),t.on("import.render.complete",function(){i.filter(function(a){return o._canDrillDown(a)}).map(function(a){o._addOverlay(a)})})}lt(Vt,xe),Vt.prototype._updateDrilldownOverlay=function(e){var t=this._canvas;if(!!e){var i=t.findRoot(e);i&&this._updateOverlayVisibility(i)}},Vt.prototype._canDrillDown=function(e){var t=this._canvas;return Q(e,"bpmn:SubProcess")&&t.findRoot(Ss(e))},Vt.prototype._updateOverlayVisibility=function(e){var t=this._overlays,i=ce(e),s=t.get({element:i.id,type:"drilldown"})[0];if(!!s){var r=i&&i.get("flowElements")&&i.get("flowElements").length;Kt(s.html).toggle(Eh,!r)}},Vt.prototype._addOverlay=function(e){var t=this._canvas,i=this._overlays,s=ce(e),r=i.get({element:e,type:"drilldown"});r.length&&this._removeOverlay(e);var o=Qe('<button type="button" class="bjs-drilldown">'+bh+"</button>"),a=s.get("name")||s.get("id"),l=this._translate("Open {element}",{element:a});o.setAttribute("title",l),o.addEventListener("click",function(){t.setRootElement(t.findRoot(Ss(e)))}),i.add(e,"drilldown",{position:{bottom:-7,right:-8},html:o}),this._updateOverlayVisibility(e)},Vt.prototype._removeOverlay=function(e){var t=this._overlays;t.remove({element:e,type:"drilldown"})},Vt.$inject=["canvas","eventBus","elementRegistry","overlays","translate"];const Ch={__depends__:[Bo,ah,dh],__init__:["drilldownBreadcrumbs","drilldownOverlayBehavior","drilldownCentering","subprocessCompatibility"],drilldownBreadcrumbs:["type",xo],drilldownCentering:["type",So],drilldownOverlayBehavior:["type",Vt],subprocessCompatibility:["type",Zt]};function Mo(e){return e.originalEvent||e.srcEvent}function Oo(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 Vo(e,t){return(Mo(e)||e).button===t}function Bn(e){return Vo(e,0)}function wh(e){return Vo(e,1)}function Nh(e){var t=Mo(e)||e;return Bn(e)&&t.shiftKey}function Th(e){return!0}function In(e){return Bn(e)||wh(e)}var Ro=500;function Lo(e,t,i){var s=this;function r(C,O,D){if(!l(C,O)){var v,V,L;D?V=t.getGraphics(D):(v=O.delegateTarget||O.target,v&&(V=v,D=t.get(V))),!(!V||!D)&&(L=e.fire(C,{element:D,gfx:V,originalEvent:O}),L===!1&&(O.stopPropagation(),O.preventDefault()))}}var o={};function a(C){return o[C]}function l(C,O){var D=m[C]||Bn;return!D(O)}var c={click:"element.click",contextmenu:"element.contextmenu",dblclick:"element.dblclick",mousedown:"element.mousedown",mousemove:"element.mousemove",mouseover:"element.hover",mouseout:"element.out",mouseup:"element.mouseup"},m={"element.contextmenu":Th,"element.mousedown":In,"element.mouseup":In,"element.click":In,"element.dblclick":In};function u(C,O,D){var v=c[C];if(!v)throw new Error("unmapped DOM event name <"+C+">");return r(v,O,D)}var p="svg, .djs-element";function g(C,O,D,v){var V=o[D]=function(L){r(D,L)};v&&(m[D]=v),V.$delegate=mi.bind(C,p,O,V)}function A(C,O,D){var v=a(D);!v||mi.unbind(C,O,v.$delegate)}function w(C){R(c,function(O,D){g(C,D,O)})}function M(C){R(c,function(O,D){A(C,D,O)})}e.on("canvas.destroy",function(C){M(C.svg)}),e.on("canvas.init",function(C){w(C.svg)}),e.on(["shape.added","connection.added"],function(C){var O=C.element,D=C.gfx;e.fire("interactionEvents.createHit",{element:O,gfx:D})}),e.on(["shape.changed","connection.changed"],Ro,function(C){var O=C.element,D=C.gfx;e.fire("interactionEvents.updateHit",{element:O,gfx:D})}),e.on("interactionEvents.createHit",Ro,function(C){var O=C.element,D=C.gfx;s.createDefaultHit(O,D)}),e.on("interactionEvents.updateHit",function(C){var O=C.element,D=C.gfx;s.updateDefaultHit(O,D)});var G=N("djs-hit djs-hit-stroke"),K=N("djs-hit djs-hit-click-stroke"),z=N("djs-hit djs-hit-all"),x=N("djs-hit djs-hit-no-move"),k={all:z,"click-stroke":K,stroke:G,"no-move":x};function N(C,O){return O=_({stroke:"white",strokeWidth:15},O||{}),i.cls(C,["no-fill","no-border"],O)}function S(C,O){var D=k[O];if(!D)throw new Error("invalid hit type <"+O+">");return se(C,D),C}function j(C,O){Ae(C,O)}this.removeHits=function(C){var O=kp(".djs-hit",C);R(O,Li)},this.createDefaultHit=function(C,O){var D=C.waypoints,v=C.isFrame,V;return D?this.createWaypointsHit(O,D):(V=v?"stroke":"all",this.createBoxHit(O,V,{width:C.width,height:C.height}))},this.createWaypointsHit=function(C,O){var D=ks(O);return S(D,"stroke"),j(C,D),D},this.createBoxHit=function(C,O,D){D=_({x:0,y:0},D);var v=re("rect");return S(v,O),se(v,D),j(C,v),v},this.updateDefaultHit=function(C,O){var D=At(".djs-hit",O);if(!!D)return C.waypoints?co(D,C.waypoints):se(D,{width:C.width,height:C.height}),D},this.fire=r,this.triggerMouseEvent=u,this.mouseHandler=a,this.registerEvent=g,this.unregisterEvent=A}Lo.$inject=["eventBus","elementRegistry","styles"];const Bh={__init__:["interactionEvents"],interactionEvents:["type",Lo]};function yi(e,t){this._eventBus=e,this._canvas=t,this._selectedElements=[];var i=this;e.on(["shape.remove","connection.remove"],function(s){var r=s.element;i.deselect(r)}),e.on(["diagram.clear","root.set"],function(s){i.select(null)})}yi.$inject=["eventBus","canvas"],yi.prototype.deselect=function(e){var t=this._selectedElements,i=t.indexOf(e);if(i!==-1){var s=t.slice();t.splice(i,1),this._eventBus.fire("selection.changed",{oldSelection:s,newSelection:t})}},yi.prototype.get=function(){return this._selectedElements},yi.prototype.isSelected=function(e){return this._selectedElements.indexOf(e)!==-1},yi.prototype.select=function(e,t){var i=this._selectedElements,s=i.slice();it(e)||(e=e?[e]:[]);var r=this._canvas,o=r.getRootElement();e=e.filter(function(a){var l=r.findRoot(a);return o===l}),t?R(e,function(a){i.indexOf(a)===-1&&i.push(a)}):this._selectedElements=i=e.slice(),this._eventBus.fire("selection.changed",{oldSelection:s,newSelection:i})};var vo="hover",Fo="selected";function Qo(e,t){this._canvas=e;function i(r,o){e.addMarker(r,o)}function s(r,o){e.removeMarker(r,o)}t.on("element.hover",function(r){i(r.element,vo)}),t.on("element.out",function(r){s(r.element,vo)}),t.on("selection.changed",function(r){function o(m){s(m,Fo)}function a(m){i(m,Fo)}var l=r.oldSelection,c=r.newSelection;R(l,function(m){c.indexOf(m)===-1&&o(m)}),R(c,function(m){l.indexOf(m)===-1&&a(m)})})}Qo.$inject=["canvas","eventBus"];function jo(e,t,i,s){e.on("create.end",500,function(r){var o=r.context,a=o.canExecute,l=o.elements,c=o.hints||{},m=c.autoSelect;if(a){if(m===!1)return;it(m)?t.select(m):t.select(l.filter(Ih))}}),e.on("connect.end",500,function(r){var o=r.context,a=o.connection;a&&t.select(a)}),e.on("shape.move.end",500,function(r){var o=r.previousSelection||[],a=s.get(r.context.shape.id),l=st(o,function(c){return a.id===c.id});l||t.select(a)}),e.on("element.click",function(r){if(!!Bn(r)){var o=r.element;o===i.getRootElement()&&(o=null);var a=t.isSelected(o),l=t.get().length>1,c=Nh(r);if(a&&l)return c?t.deselect(o):t.select(o);a?t.deselect(o):t.select(o,c)}})}jo.$inject=["eventBus","selection","canvas","elementRegistry"];function Ih(e){return!e.hidden}const xh={__init__:["selectionVisuals","selectionBehavior"],__depends__:[Bh],selection:["type",yi],selectionVisuals:["type",Qo],selectionBehavior:["type",jo]},Sh=/^class[ {]/;function Dh(e){return Sh.test(e.toString())}function Ds(e){return Array.isArray(e)}function Ps(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function xn(...e){e.length===1&&Ds(e[0])&&(e=e[0]),e=[...e];const t=e.pop();return t.$inject=e,t}const Ph=/constructor\s*[^(]*\(\s*([^)]*)\)/m,Mh=/^(?:async\s+)?(?:function\s*[^(]*)?(?:\(\s*([^)]*)\)|(\w+))/m,Oh=/\/\*([^*]*)\*\//m;function Vh(e){if(typeof e!="function")throw new Error(`Cannot annotate "${e}". Expected a function!`);const t=e.toString().match(Dh(e)?Ph:Mh);if(!t)return[];const i=t[1]||t[2];return i&&i.split(",").map(s=>{const r=s.match(Oh);return(r&&r[1]||s).trim()})||[]}function Uo(e,t){const i=t||{get:function(x,k){if(s.push(x),k===!1)return null;throw l(`No provider for "${x}"!`)}},s=[],r=this._providers=Object.create(i._providers||null),o=this._instances=Object.create(null),a=o.injector=this,l=function(x){const k=s.join(" -> ");return s.length=0,new Error(k?`${x} (Resolving: ${k})`:x)};function c(x,k){if(!r[x]&&x.includes(".")){const N=x.split(".");let S=c(N.shift());for(;N.length;)S=S[N.shift()];return S}if(Ps(o,x))return o[x];if(Ps(r,x)){if(s.indexOf(x)!==-1)throw s.push(x),l("Cannot resolve circular dependency!");return s.push(x),o[x]=r[x][0](r[x][1]),s.pop(),o[x]}return i.get(x,k)}function m(x,k){if(typeof k>"u"&&(k={}),typeof x!="function")if(Ds(x))x=xn(x.slice());else throw l(`Cannot invoke "${x}". Expected a function!`);const S=(x.$inject||Vh(x)).map(j=>Ps(k,j)?k[j]:c(j));return{fn:x,dependencies:S}}function u(x){const{fn:k,dependencies:N}=m(x),S=Function.prototype.bind.call(k,null,...N);return new S}function p(x,k,N){const{fn:S,dependencies:j}=m(x,N);return S.apply(k,j)}function g(x){return xn(k=>x.get(k))}function A(x,k){if(k&&k.length){const N=Object.create(null),S=Object.create(null),j=[],C=[],O=[];let D,v,V,L;for(let W in r)D=r[W],k.indexOf(W)!==-1&&(D[2]==="private"?(v=j.indexOf(D[3]),v===-1?(V=D[3].createChild([],k),L=g(V),j.push(D[3]),C.push(V),O.push(L),N[W]=[L,W,"private",V]):N[W]=[O[v],W,"private",C[v]]):N[W]=[D[2],D[1]],S[W]=!0),(D[2]==="factory"||D[2]==="type")&&D[1].$scope&&k.forEach(ut=>{D[1].$scope.indexOf(ut)!==-1&&(N[W]=[D[2],D[1]],S[ut]=!0)});k.forEach(W=>{if(!S[W])throw new Error('No provider for "'+W+'". Cannot use provider from the parent!')}),x.unshift(N)}return new Uo(x,a)}const w={factory:p,type:u,value:function(x){return x}};function M(x,k){const N=x.__init__||[];return function(){N.forEach(S=>{typeof S=="string"?k.get(S):k.invoke(S)})}}function G(x){const k=x.__exports__;if(k){const N=x.__modules__,S=Object.keys(x).reduce((v,V)=>(V!=="__exports__"&&V!=="__modules__"&&V!=="__init__"&&V!=="__depends__"&&(v[V]=x[V]),v),Object.create(null)),j=(N||[]).concat(S),C=A(j),O=xn(function(v){return C.get(v)});k.forEach(function(v){r[v]=[O,v,"private",C]});const D=(x.__init__||[]).slice();return D.unshift(function(){C.init()}),x=Object.assign({},x,{__init__:D}),M(x,C)}return Object.keys(x).forEach(function(N){if(N==="__init__"||N==="__depends__")return;const S=x[N];if(S[2]==="private"){r[N]=S;return}const j=S[0],C=S[1];r[N]=[w[j],Rh(j,C),j]}),M(x,a)}function K(x,k){return x.indexOf(k)!==-1||(x=(k.__depends__||[]).reduce(K,x),x.indexOf(k)!==-1)?x:x.concat(k)}function z(x){const k=x.reduce(K,[]).map(G);let N=!1;return function(){N||(N=!0,k.forEach(S=>S()))}}this.get=c,this.invoke=p,this.instantiate=u,this.createChild=A,this.init=z(e)}function Rh(e,t){return e!=="value"&&Ds(t)&&(t=xn(t.slice())),t}var Lh=1;function Rt(e,t){yt.call(this,e,Lh),this.CONNECTION_STYLE=t.style(["no-fill"],{strokeWidth:5,stroke:"fuchsia"}),this.SHAPE_STYLE=t.style({fill:"white",stroke:"fuchsia",strokeWidth:2}),this.FRAME_STYLE=t.style(["no-fill"],{stroke:"fuchsia",strokeDasharray:4,strokeWidth:2})}lt(Rt,yt),Rt.prototype.canRender=function(){return!0},Rt.prototype.drawShape=function(t,i,s){var r=re("rect");return se(r,{x:0,y:0,width:i.width||0,height:i.height||0}),wo(i)?se(r,_({},this.FRAME_STYLE,s||{})):se(r,_({},this.SHAPE_STYLE,s||{})),Ae(t,r),r},Rt.prototype.drawConnection=function(t,i,s){var r=ks(i.waypoints,_({},this.CONNECTION_STYLE,s||{}));return Ae(t,r),r},Rt.prototype.getShapePath=function(t){var i=t.x,s=t.y,r=t.width,o=t.height,a=[["M",i,s],["l",r,0],["l",0,o],["l",-r,0],["z"]];return zt(a)},Rt.prototype.getConnectionPath=function(t){var i=t.waypoints,s,r,o=[];for(s=0;r=i[s];s++)r=r.original||r,o.push([s===0?"M":"L",r.x,r.y]);return zt(o)},Rt.$inject=["eventBus","styles"];function vh(){var e={"no-fill":{fill:"none"},"no-border":{strokeOpacity:0},"no-events":{pointerEvents:"none"}},t=this;this.cls=function(i,s,r){var o=this.style(s,r);return _(o,{class:i})},this.style=function(i,s){!it(i)&&!s&&(s=i,i=[]);var r=ui(i,function(o,a){return _(o,e[a]||{})},{});return s?_(r,s):r},this.computeStyle=function(i,s,r){return it(s)||(r=s,s=[]),t.style(s||[],_({},r,i||{}))}}const Fh={__init__:["defaultRenderer"],defaultRenderer:["type",Rt],styles:["type",vh]};function Qh(e,t){if(!e||!t)return-1;var i=e.indexOf(t);return i!==-1&&e.splice(i,1),i}function jh(e,t,i){if(!(!e||!t)){typeof i!="number"&&(i=-1);var s=e.indexOf(t);if(s!==-1){if(s===i)return;if(i!==-1)e.splice(s,1);else return}i!==-1?e.splice(i,0,t):e.push(t)}}function Sn(e,t){return Math.round(e*t)/t}function _o(e){return Dt(e)?e+"px":e}function Uh(e){for(;e.parent;)e=e.parent;return e}function _h(e){e=_({},{width:"100%",height:"100%"},e);const t=e.container||document.body,i=document.createElement("div");return i.setAttribute("class","djs-container djs-parent"),we(i,{position:"relative",overflow:"hidden",width:_o(e.width),height:_o(e.height)}),t.appendChild(i),i}function Go(e,t,i){const s=re("g");ct(s).add(t);const r=i!==void 0?i:e.childNodes.length-1;return e.insertBefore(s,e.childNodes[r]||null),s}const Gh="base",qo=0,qh=1,Jh={shape:["x","y","width","height"],connection:["waypoints"]};function q(e,t,i,s){this._eventBus=t,this._elementRegistry=s,this._graphicsFactory=i,this._rootsIdx=0,this._layers={},this._planes=[],this._rootElement=null,this._focused=!1,this._init(e||{})}q.$inject=["config.canvas","eventBus","graphicsFactory","elementRegistry"],q.prototype._init=function(e){const t=this._eventBus,i=this._container=_h(e),s=this._svg=re("svg");se(s,{width:"100%",height:"100%"}),Es(s,"tabindex",0),e.autoFocus&&t.on("element.hover",()=>{this.restoreFocus()}),t.on("element.mousedown",500,o=>{this.focus()}),s.addEventListener("focusin",()=>{this._setFocused(!0)}),s.addEventListener("focusout",()=>{this._setFocused(!1)}),Ae(i,s);const r=this._viewport=Go(s,"viewport");e.deferUpdate&&(this._viewboxChanged=Ad(Pt(this._viewboxChanged,this),300)),t.on("diagram.init",()=>{t.fire("canvas.init",{svg:s,viewport:r})}),t.on(["shape.added","connection.added","shape.removed","connection.removed","elements.changed","root.set"],()=>{delete this._cachedViewbox}),t.on("diagram.destroy",500,this._destroy,this),t.on("diagram.clear",500,this._clear,this)},q.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},q.prototype._setFocused=function(e){e!=this._focused&&(this._focused=e,this._eventBus.fire("canvas.focus.changed",{focused:e}))},q.prototype._clear=function(){this._elementRegistry.getAll().forEach(t=>{const i=Co(t);i==="root"?this.removeRootElement(t):this._removeElement(t,i)}),this._planes=[],this._rootElement=null,delete this._cachedViewbox},q.prototype.focus=function(){this._svg.focus({preventScroll:!0}),this._setFocused(!0)},q.prototype.restoreFocus=function(){document.activeElement===document.body&&this.focus()},q.prototype.isFocused=function(){return this._focused},q.prototype.getDefaultLayer=function(){return this.getLayer(Gh,qo)},q.prototype.getLayer=function(e,t){if(!e)throw new Error("must specify a name");let i=this._layers[e];if(i||(i=this._layers[e]=this._createLayer(e,t)),typeof t<"u"&&i.index!==t)throw new Error("layer <"+e+"> already created at index <"+t+">");return i.group},q.prototype._getChildIndex=function(e){return ui(this._layers,function(t,i){return i.visible&&e>=i.index&&t++,t},0)},q.prototype._createLayer=function(e,t){typeof t>"u"&&(t=qh);const i=this._getChildIndex(t);return{group:Go(this._viewport,"layer-"+e,i),index:t,visible:!0}},q.prototype.showLayer=function(e){if(!e)throw new Error("must specify a name");const t=this._layers[e];if(!t)throw new Error("layer <"+e+"> does not exist");const i=this._viewport,s=t.group,r=t.index;if(t.visible)return s;const o=this._getChildIndex(r);return i.insertBefore(s,i.childNodes[o]||null),t.visible=!0,s},q.prototype.hideLayer=function(e){if(!e)throw new Error("must specify a name");const t=this._layers[e];if(!t)throw new Error("layer <"+e+"> does not exist");const i=t.group;return t.visible&&(Li(i),t.visible=!1),i},q.prototype._removeLayer=function(e){const t=this._layers[e];t&&(delete this._layers[e],Li(t.group))},q.prototype.getActiveLayer=function(){const e=this._findPlaneForRoot(this.getRootElement());return e?e.layer:null},q.prototype.findRoot=function(e){return typeof e=="string"&&(e=this._elementRegistry.get(e)),e?(this._findPlaneForRoot(Uh(e))||{}).rootElement:void 0},q.prototype.getRootElements=function(){return this._planes.map(function(e){return e.rootElement})},q.prototype._findPlaneForRoot=function(e){return st(this._planes,function(t){return t.rootElement===e})},q.prototype.getContainer=function(){return this._container},q.prototype._updateMarker=function(e,t,i){let s;e.id||(e=this._elementRegistry.get(e)),e.markers=e.markers||new Set,s=this._elementRegistry._elements[e.id],s&&(R([s.gfx,s.secondaryGfx],function(r){r&&(i?(e.markers.add(t),ct(r).add(t)):(e.markers.delete(t),ct(r).remove(t)))}),this._eventBus.fire("element.marker.update",{element:e,gfx:s.gfx,marker:t,add:!!i}))},q.prototype.addMarker=function(e,t){this._updateMarker(e,t,!0)},q.prototype.removeMarker=function(e,t){this._updateMarker(e,t,!1)},q.prototype.hasMarker=function(e,t){return e.id||(e=this._elementRegistry.get(e)),e.markers?e.markers.has(t):!1},q.prototype.toggleMarker=function(e,t){this.hasMarker(e,t)?this.removeMarker(e,t):this.addMarker(e,t)},q.prototype.getRootElement=function(){const e=this._rootElement;return e||this._planes.length?e:this.setRootElement(this.addRootElement(null))},q.prototype.addRootElement=function(e){const t=this._rootsIdx++;e||(e={id:"__implicitroot_"+t,children:[],isImplicit:!0});const i=e.layer="root-"+t;this._ensureValid("root",e);const s=this.getLayer(i,qo);return this.hideLayer(i),this._addRoot(e,s),this._planes.push({rootElement:e,layer:s}),e},q.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},q.prototype.setRootElement=function(e){if(e===this._rootElement)return e;let t;if(!e)throw new Error("rootElement required");return t=this._findPlaneForRoot(e),t||(e=this.addRootElement(e)),this._setRoot(e),e},q.prototype._removeRoot=function(e){const t=this._elementRegistry,i=this._eventBus;i.fire("root.remove",{element:e}),i.fire("root.removed",{element:e}),t.remove(e)},q.prototype._addRoot=function(e,t){const i=this._elementRegistry,s=this._eventBus;s.fire("root.add",{element:e}),i.add(e,t),s.fire("root.added",{element:e,gfx:t})},q.prototype._setRoot=function(e,t){const i=this._rootElement;i&&(this._elementRegistry.updateGraphics(i,null,!0),this.hideLayer(i.layer)),e&&(t||(t=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})},q.prototype._ensureValid=function(e,t){if(!t.id)throw new Error("element must have an id");if(this._elementRegistry.get(t.id))throw new Error("element <"+t.id+"> already exists");const i=Jh[e];if(!Wr(i,function(r){return typeof t[r]<"u"}))throw new Error("must supply { "+i.join(", ")+" } with "+e)},q.prototype._setParent=function(e,t,i){jh(t.children,e,i),e.parent=t},q.prototype._addElement=function(e,t,i,s){i=i||this.getRootElement();const r=this._eventBus,o=this._graphicsFactory;this._ensureValid(e,t),r.fire(e+".add",{element:t,parent:i}),this._setParent(t,i,s);const a=o.create(e,t,s);return this._elementRegistry.add(t,a),o.update(e,t,a),r.fire(e+".added",{element:t,gfx:a}),t},q.prototype.addShape=function(e,t,i){return this._addElement("shape",e,t,i)},q.prototype.addConnection=function(e,t,i){return this._addElement("connection",e,t,i)},q.prototype._removeElement=function(e,t){const i=this._elementRegistry,s=this._graphicsFactory,r=this._eventBus;if(e=i.get(e.id||e),!!e)return r.fire(t+".remove",{element:e}),s.remove(e),Qh(e.parent&&e.parent.children,e),e.parent=null,r.fire(t+".removed",{element:e}),i.remove(e),e},q.prototype.removeShape=function(e){return this._removeElement(e,"shape")},q.prototype.removeConnection=function(e){return this._removeElement(e,"connection")},q.prototype.getGraphics=function(e,t){return this._elementRegistry.getGraphics(e,t)},q.prototype._changeViewbox=function(e){this._eventBus.fire("canvas.viewbox.changing"),e.apply(this),this._cachedViewbox=null,this._viewboxChanged()},q.prototype._viewboxChanged=function(){this._eventBus.fire("canvas.viewbox.changed",{viewbox:this.viewbox()})},q.prototype.viewbox=function(e){if(e===void 0&&this._cachedViewbox)return structuredClone(this._cachedViewbox);const t=this._viewport,i=this.getSize();let s,r,o,a,l,c,m;if(e)this._changeViewbox(function(){l=Math.min(i.width/e.width,i.height/e.height);const u=this._svg.createSVGMatrix().scale(l).translate(-e.x,-e.y);vi(t,u)});else return o=this._rootElement?this.getActiveLayer():null,s=o&&o.getBBox()||{},a=vi(t),r=a?a.matrix:Qd(),l=Sn(r.a,1e3),c=Sn(-r.e||0,1e3),m=Sn(-r.f||0,1e3),e=this._cachedViewbox={x:c?c/l:0,y:m?m/l:0,width:i.width/l,height:i.height/l,scale:l,inner:{width:s.width||0,height:s.height||0,x:s.x||0,y:s.y||0},outer:i},e;return e},q.prototype.scroll=function(e){const t=this._viewport;let i=t.getCTM();return e&&this._changeViewbox(function(){e=_({dx:0,dy:0},e||{}),i=this._svg.createSVGMatrix().translate(e.dx,e.dy).multiply(i),Jo(t,i)}),{x:i.e,y:i.f}},q.prototype.scrollToElement=function(e,t){let i=100;typeof e=="string"&&(e=this._elementRegistry.get(e));const s=this.findRoot(e);if(s!==this.getRootElement()&&this.setRootElement(s),s===e)return;t||(t={}),typeof t=="number"&&(i=t),t={top:t.top||i,right:t.right||i,bottom:t.bottom||i,left:t.left||i};const r=ji(e),o=Ts(r),a=this.viewbox(),l=this.zoom();let c,m;a.y+=t.top/l,a.x+=t.left/l,a.width-=(t.right+t.left)/l,a.height-=(t.bottom+t.top)/l;const u=Ts(a);if(!(r.width<a.width&&r.height<a.height))c=r.x-a.x,m=r.y-a.y;else{const g=Math.max(0,o.right-u.right),A=Math.min(0,o.left-u.left),w=Math.max(0,o.bottom-u.bottom),M=Math.min(0,o.top-u.top);c=g||A,m=w||M}this.scroll({dx:-c*l,dy:-m*l})},q.prototype.zoom=function(e,t){if(!e)return this.viewbox(e).scale;if(e==="fit-viewport")return this._fitViewport(t);let i,s;return this._changeViewbox(function(){typeof t!="object"&&(i=this.viewbox().outer,t={x:i.width/2,y:i.height/2}),s=this._setZoom(e,t)}),Sn(s.a,1e3)};function Jo(e,t){const i="matrix("+t.a+","+t.b+","+t.c+","+t.d+","+t.e+","+t.f+")";e.setAttribute("transform",i)}q.prototype._fitViewport=function(e){const t=this.viewbox(),i=t.outer,s=t.inner;let r,o;return s.x>=0&&s.y>=0&&s.x+s.width<=i.width&&s.y+s.height<=i.height&&!e?o={x:0,y:0,width:Math.max(s.width+s.x,i.width),height:Math.max(s.height+s.y,i.height)}:(r=Math.min(1,i.width/s.width,i.height/s.height),o={x:s.x+(e?s.width/2-i.width/r/2:0),y:s.y+(e?s.height/2-i.height/r/2:0),width:i.width/r,height:i.height/r}),this.viewbox(o),this.viewbox(!1).scale},q.prototype._setZoom=function(e,t){const i=this._svg,s=this._viewport,r=i.createSVGMatrix(),o=i.createSVGPoint();let a,l,c,m,u;c=s.getCTM();const p=c.a;return t?(a=_(o,t),l=a.matrixTransform(c.inverse()),m=r.translate(l.x,l.y).scale(1/p*e).translate(-l.x,-l.y),u=c.multiply(m)):u=r.scale(e),Jo(this._viewport,u),u},q.prototype.getSize=function(){return{width:this._container.clientWidth,height:this._container.clientHeight}},q.prototype.getAbsoluteBBox=function(e){const t=this.viewbox();let i;e.waypoints?i=this.getGraphics(e).getBBox():i=e;const s=i.x*t.scale-t.x*t.scale,r=i.y*t.scale-t.y*t.scale,o=i.width*t.scale,a=i.height*t.scale;return{x:s,y:r,width:o,height:a}},q.prototype.resized=function(){delete this._cachedViewbox,this._eventBus.fire("canvas.resized")};var Ai="data-element-id";function je(e){this._elements={},this._eventBus=e}je.$inject=["eventBus"],je.prototype.add=function(e,t,i){var s=e.id;this._validateId(s),se(t,Ai,s),i&&se(i,Ai,s),this._elements[s]={element:e,gfx:t,secondaryGfx:i}},je.prototype.remove=function(e){var t=this._elements,i=e.id||e,s=i&&t[i];s&&(se(s.gfx,Ai,""),s.secondaryGfx&&se(s.secondaryGfx,Ai,""),delete t[i])},je.prototype.updateId=function(e,t){this._validateId(t),typeof e=="string"&&(e=this.get(e)),this._eventBus.fire("element.updateId",{element:e,newId:t});var i=this.getGraphics(e),s=this.getGraphics(e,!0);this.remove(e),e.id=t,this.add(e,i,s)},je.prototype.updateGraphics=function(e,t,i){var s=e.id||e,r=this._elements[s];return i?r.secondaryGfx=t:r.gfx=t,t&&se(t,Ai,s),t},je.prototype.get=function(e){var t;typeof e=="string"?t=e:t=e&&se(e,Ai);var i=this._elements[t];return i&&i.element},je.prototype.filter=function(e){var t=[];return this.forEach(function(i,s){e(i,s)&&t.push(i)}),t},je.prototype.find=function(e){for(var t=this._elements,i=Object.keys(t),s=0;s<i.length;s++){var r=i[s],o=t[r],a=o.element,l=o.gfx;if(e(a,l))return a}},je.prototype.getAll=function(){return this.filter(function(e){return e})},je.prototype.forEach=function(e){var t=this._elements;Object.keys(t).forEach(function(i){var s=t[i],r=s.element,o=s.gfx;return e(r,o)})},je.prototype.getGraphics=function(e,t){var i=e.id||e,s=this._elements[i];return s&&(t?s.secondaryGfx:s.gfx)},je.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 Hh(e,t,i,s){var r=i.inverse;return Object.defineProperty(e,"remove",{value:function(o){var a=this.indexOf(o);return a!==-1&&(this.splice(a,1),t.unset(o,r,s)),o}}),Object.defineProperty(e,"contains",{value:function(o){return this.indexOf(o)!==-1}}),Object.defineProperty(e,"add",{value:function(o,a){var l=this.indexOf(o);if(typeof a>"u"){if(l!==-1)return;a=this.length}l!==-1&&this.splice(l,1),this.splice(a,0,o),l===-1&&t.set(o,r,s)}}),Object.defineProperty(e,"__refs_collection",{value:!0}),e}function zh(e){return e.__refs_collection===!0}function Kh(e,t){return Object.prototype.hasOwnProperty.call(e,t.name||t)}function Ho(e,t,i){var s=Hh(i[t.name]||[],e,t,i);Object.defineProperty(i,t.name,{enumerable:t.enumerable,value:s}),s.length&&s.forEach(function(r){e.set(r,t.inverse,i)})}function Wh(e,t,i){var s=t.inverse,r=i[t.name];Object.defineProperty(i,t.name,{configurable:t.configurable,enumerable:t.enumerable,get:function(){return r},set:function(o){if(o!==r){var a=r;r=null,a&&e.unset(a,s,i),r=o,e.set(r,s,i)}}})}function We(e,t){if(!(this instanceof We))return new We(e,t);e.inverse=t,t.inverse=e,this.props={},this.props[e.name]=e,this.props[t.name]=t}We.prototype.bind=function(e,t){if(typeof t=="string"){if(!this.props[t])throw new Error("no property <"+t+"> in ref");t=this.props[t]}t.collection?Ho(this,t,e):Wh(this,t,e)},We.prototype.ensureRefsCollection=function(e,t){var i=e[t.name];return zh(i)||Ho(this,t,e),i},We.prototype.ensureBound=function(e,t){Kh(e,t)||this.bind(e,t)},We.prototype.unset=function(e,t,i){e&&(this.ensureBound(e,t),t.collection?this.ensureRefsCollection(e,t).remove(i):e[t.name]=void 0)},We.prototype.set=function(e,t,i){e&&(this.ensureBound(e,t),t.collection?this.ensureRefsCollection(e,t).add(i):e[t.name]=i)};var Ms=new We({name:"children",enumerable:!0,collection:!0},{name:"parent"}),zo=new We({name:"labels",enumerable:!0,collection:!0},{name:"labelTarget"}),Ko=new We({name:"attachers",collection:!0},{name:"host"}),Wo=new We({name:"outgoing",collection:!0},{name:"source"}),Yo=new We({name:"incoming",collection:!0},{name:"target"});function Ui(){Object.defineProperty(this,"businessObject",{writable:!0}),Object.defineProperty(this,"label",{get:function(){return this.labels[0]},set:function(e){var t=this.label,i=this.labels;!e&&t?i.remove(t):i.add(e,0)}}),Ms.bind(this,"parent"),zo.bind(this,"labels"),Wo.bind(this,"outgoing"),Yo.bind(this,"incoming")}function _i(){Ui.call(this),Ms.bind(this,"children"),Ko.bind(this,"host"),Ko.bind(this,"attachers")}lt(_i,Ui);function Zo(){Ui.call(this),Ms.bind(this,"children")}lt(Zo,_i);function Xo(){_i.call(this),zo.bind(this,"labelTarget")}lt(Xo,_i);function $o(){Ui.call(this),Wo.bind(this,"source"),Yo.bind(this,"target")}lt($o,Ui);var Yh={connection:$o,shape:_i,label:Xo,root:Zo};function Zh(e,t){var i=Yh[e];if(!i)throw new Error("unknown type: <"+e+">");return _(new i,t)}function ki(){this._uid=12}ki.prototype.createRoot=function(e){return this.create("root",e)},ki.prototype.createLabel=function(e){return this.create("label",e)},ki.prototype.createShape=function(e){return this.create("shape",e)},ki.prototype.createConnection=function(e){return this.create("connection",e)},ki.prototype.create=function(e,t){return t=_({},t||{}),t.id||(t.id=e+"_"+this._uid++),Zh(e,t)};var Dn="__fn",ea=1e3,Xh=Array.prototype.slice;function Re(){this._listeners={},this.on("diagram.destroy",1,this._destroy,this)}Re.prototype.on=function(e,t,i,s){if(e=it(e)?e:[e],qt(t)&&(s=i,i=t,t=ea),!Dt(t))throw new Error("priority must be a number");var r=i;s&&(r=Pt(i,s),r[Dn]=i[Dn]||i);var o=this;e.forEach(function(a){o._addListener(a,{priority:t,callback:r,next:null})})},Re.prototype.once=function(e,t,i,s){var r=this;if(qt(t)&&(s=i,i=t,t=ea),!Dt(t))throw new Error("priority must be a number");function o(){o.__isTomb=!0;var a=i.apply(s,arguments);return r.off(e,o),a}o[Dn]=i,this.on(e,t,o)},Re.prototype.off=function(e,t){e=it(e)?e:[e];var i=this;e.forEach(function(s){i._removeListener(s,t)})},Re.prototype.createEvent=function(e){var t=new Gi;return t.init(e),t},Re.prototype.fire=function(e,t){var i,s,r,o;if(o=Xh.call(arguments),typeof e=="object"&&(t=e,e=t.type),!e)throw new Error("no event type specified");if(s=this._listeners[e],!!s){t instanceof Gi?i=t:i=this.createEvent(t),o[0]=i;var a=i.type;e!==a&&(i.type=e);try{r=this._invokeListeners(i,o,s)}finally{e!==a&&(i.type=a)}return r===void 0&&i.defaultPrevented&&(r=!1),r}},Re.prototype.handleError=function(e){return this.fire("error",{error:e})===!1},Re.prototype._destroy=function(){this._listeners={}},Re.prototype._invokeListeners=function(e,t,i){for(var s;i&&!e.cancelBubble;)s=this._invokeListener(e,t,i),i=i.next;return s},Re.prototype._invokeListener=function(e,t,i){var s;if(i.callback.__isTomb)return s;try{s=$h(i.callback,t),s!==void 0&&(e.returnValue=s,e.stopPropagation()),s===!1&&e.preventDefault()}catch(r){if(!this.handleError(r))throw console.error("unhandled error in event listener",r),r}return s},Re.prototype._addListener=function(e,t){var i=this._getListeners(e),s;if(!i){this._setListeners(e,t);return}for(;i;){if(i.priority<t.priority){t.next=i,s?s.next=t:this._setListeners(e,t);return}s=i,i=i.next}s.next=t},Re.prototype._getListeners=function(e){return this._listeners[e]},Re.prototype._setListeners=function(e,t){this._listeners[e]=t},Re.prototype._removeListener=function(e,t){var i=this._getListeners(e),s,r,o;if(!t){this._setListeners(e,null);return}for(;i;)s=i.next,o=i.callback,(o===t||o[Dn]===t)&&(r?r.next=s:this._setListeners(e,s)),r=i,i=s};function Gi(){}Gi.prototype.stopPropagation=function(){this.cancelBubble=!0},Gi.prototype.preventDefault=function(){this.defaultPrevented=!0},Gi.prototype.init=function(e){_(this,e||{})};function $h(e,t){return e.apply(null,t)}function eu(e){return e.childNodes[0]}function tu(e){return e.parentNode.childNodes[1]}function Ue(e,t){this._eventBus=e,this._elementRegistry=t}Ue.$inject=["eventBus","elementRegistry"],Ue.prototype._getChildrenContainer=function(e){var t=this._elementRegistry.getGraphics(e),i;return e.parent?(i=tu(t),i||(i=re("g"),ct(i).add("djs-children"),Ae(t.parentNode,i))):i=t,i},Ue.prototype._clear=function(e){var t=eu(e);return ho(t),t},Ue.prototype._createContainer=function(e,t,i,s){var r=re("g");ct(r).add("djs-group"),typeof i<"u"?ta(r,t,t.childNodes[i]):Ae(t,r);var o=re("g");ct(o).add("djs-element"),ct(o).add("djs-"+e),s&&ct(o).add("djs-frame"),Ae(r,o);var a=re("g");return ct(a).add("djs-visual"),Ae(o,a),o},Ue.prototype.create=function(e,t,i){var s=this._getChildrenContainer(t.parent);return this._createContainer(e,s,i,wo(t))},Ue.prototype.updateContainments=function(e){var t=this,i=this._elementRegistry,s;s=ui(e,function(r,o){return o.parent&&(r[o.parent.id]=o.parent),r},{}),R(s,function(r){var o=r.children;if(!!o){var a=t._getChildrenContainer(r);R(o.slice().reverse(),function(l){var c=i.getGraphics(l);ta(c.parentNode,a)})}})},Ue.prototype.drawShape=function(e,t,i={}){var s=this._eventBus;return s.fire("render.shape",{gfx:e,element:t,attrs:i})},Ue.prototype.getShapePath=function(e){var t=this._eventBus;return t.fire("render.getShapePath",e)},Ue.prototype.drawConnection=function(e,t,i={}){var s=this._eventBus;return s.fire("render.connection",{gfx:e,element:t,attrs:i})},Ue.prototype.getConnectionPath=function(e){var t=this._eventBus;return t.fire("render.getConnectionPath",e)},Ue.prototype.update=function(e,t,i){if(!!t.parent){var s=this._clear(i);if(e==="shape")this.drawShape(s,t),yo(i,t.x,t.y);else if(e==="connection")this.drawConnection(s,t);else throw new Error("unknown type: "+e);t.hidden?se(i,"display","none"):se(i,"display","block")}},Ue.prototype.remove=function(e){var t=this._elementRegistry.getGraphics(e);Li(t.parentNode)};function ta(e,t,i){var s=i||t.firstChild;e!==s&&t.insertBefore(e,s)}const iu={__depends__:[Fh],__init__:["canvas"],canvas:["type",q],elementRegistry:["type",je],elementFactory:["type",ki],eventBus:["type",Re],graphicsFactory:["type",Ue]};function nu(e){var t=new Uo(e);return t.init(),t}function su(e){e=e||{};var t={config:["value",e]},i=[t,iu].concat(e.modules||[]);return nu(i)}function Lt(e,t){this._injector=t||su(e),this.get("eventBus").fire("diagram.init")}Lt.prototype.get=function(e,t){return this._injector.get(e,t)},Lt.prototype.invoke=function(e,t,i){return this._injector.invoke(e,t,i)},Lt.prototype.destroy=function(){this.get("eventBus").fire("diagram.destroy")},Lt.prototype.clear=function(){this.get("eventBus").fire("diagram.clear")};function Os(){}Os.prototype.get=function(e){return this.$model.properties.get(this,e)},Os.prototype.set=function(e,t){this.$model.properties.set(this,e,t)};function ia(e,t){this.model=e,this.properties=t}ia.prototype.createType=function(e){var t=this.model,i=this.properties,s=Object.create(Os.prototype);R(e.properties,function(a){!a.isMany&&a.default!==void 0&&(s[a.name]=a.default)}),i.defineModel(s,t),i.defineDescriptor(s,e);var r=e.ns.name;function o(a){i.define(this,"$type",{value:r,enumerable:!0}),i.define(this,"$attrs",{value:{}}),i.define(this,"$parent",{writable:!0}),R(a,Pt(function(l,c){this.set(c,l)},this))}return o.prototype=s,o.hasType=s.$instanceOf=this.model.hasType,i.defineModel(o,t),i.defineDescriptor(o,e),o};var ru={String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0},na={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 Vs(e,t){var i=na[e];return i?i(t):t}function Rs(e){return!!ru[e]}function sa(e){return!!na[e]}function Te(e,t){var i=e.split(/:/),s,r;if(i.length===1)s=e,r=t;else if(i.length===2)s=i[1],r=i[0];else throw new Error("expected <prefix:localName> or <localName>, got "+e);return e=(r?r+":":"")+s,{name:e,prefix:r,localName:s}}function _e(e){this.ns=e,this.name=e.name,this.allTypes=[],this.allTypesByName={},this.properties=[],this.propertiesByName={}}_e.prototype.build=function(){return bd(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])},_e.prototype.addProperty=function(e,t,i){typeof t=="boolean"&&(i=t,t=void 0),this.addNamedProperty(e,i!==!1);var s=this.properties;t!==void 0?s.splice(t,0,e):s.push(e)},_e.prototype.replaceProperty=function(e,t,i){var s=e.ns,r=this.properties,o=this.propertiesByName,a=e.name!==t.name;if(e.isId){if(!t.isId)throw new Error("property <"+t.ns.name+"> must be id property to refine <"+e.ns.name+">");this.setIdProperty(t,!1)}if(e.isBody){if(!t.isBody)throw new Error("property <"+t.ns.name+"> must be body property to refine <"+e.ns.name+">");this.setBodyProperty(t,!1)}var l=r.indexOf(e);if(l===-1)throw new Error("property <"+s.name+"> not found in property list");r.splice(l,1),this.addProperty(t,i?void 0:l,a),o[s.name]=o[s.localName]=t},_e.prototype.redefineProperty=function(e,t,i){var s=e.ns.prefix,r=t.split("#"),o=Te(r[0],s),a=Te(r[1],o.prefix).name,l=this.propertiesByName[a];if(l)this.replaceProperty(l,e,i);else throw new Error("refined property <"+a+"> not found");delete e.redefines},_e.prototype.addNamedProperty=function(e,t){var i=e.ns,s=this.propertiesByName;t&&(this.assertNotDefined(e,i.name),this.assertNotDefined(e,i.localName)),s[i.name]=s[i.localName]=e},_e.prototype.removeNamedProperty=function(e){var t=e.ns,i=this.propertiesByName;delete i[t.name],delete i[t.localName]},_e.prototype.setBodyProperty=function(e,t){if(t&&this.bodyProperty)throw new Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+e.ns.name+">)");this.bodyProperty=e},_e.prototype.setIdProperty=function(e,t){if(t&&this.idProperty)throw new Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+e.ns.name+">)");this.idProperty=e},_e.prototype.assertNotTrait=function(e){if((e.extends||[]).length)throw new Error(`cannot create <${e.name}> extending <${e.extends}>`)},_e.prototype.assertNotDefined=function(e,t){var i=e.name,s=this.propertiesByName[i];if(s)throw new Error("property <"+i+"> already defined; override of <"+s.definedBy.ns.name+"#"+s.ns.name+"> by <"+e.definedBy.ns.name+"#"+e.ns.name+"> not allowed without redefines")},_e.prototype.hasProperty=function(e){return this.propertiesByName[e]},_e.prototype.addTrait=function(e,t){t&&this.assertNotTrait(e);var i=this.allTypesByName,s=this.allTypes,r=e.name;r in i||(R(e.properties,Pt(function(o){o=_({},o,{name:o.ns.localName,inherited:t}),Object.defineProperty(o,"definedBy",{value:e});var a=o.replaces,l=o.redefines;a||l?this.redefineProperty(o,a||l,a):(o.isBody&&this.setBodyProperty(o),o.isId&&this.setIdProperty(o),this.addProperty(o))},this)),s.push(e),i[r]=e)};function vt(e,t){this.packageMap={},this.typeMap={},this.packages=[],this.properties=t,R(e,Pt(this.registerPackage,this))}vt.prototype.getPackage=function(e){return this.packageMap[e]},vt.prototype.getPackages=function(){return this.packages},vt.prototype.registerPackage=function(e){e=_({},e);var t=this.packageMap;ra(t,e,"prefix"),ra(t,e,"uri"),R(e.types,Pt(function(i){this.registerType(i,e)},this)),t[e.uri]=t[e.prefix]=e,this.packages.push(e)},vt.prototype.registerType=function(e,t){e=_({},e,{superClass:(e.superClass||[]).slice(),extends:(e.extends||[]).slice(),properties:(e.properties||[]).slice(),meta:_(e.meta||{})});var i=Te(e.name,t.prefix),s=i.name,r={};R(e.properties,Pt(function(o){var a=Te(o.name,i.prefix),l=a.name;Rs(o.type)||(o.type=Te(o.type,a.prefix).name),_(o,{ns:a,name:l}),r[l]=o},this)),_(e,{ns:i,name:s,propertiesByName:r}),R(e.extends,Pt(function(o){var a=Te(o,i.prefix),l=this.typeMap[a.name];l.traits=l.traits||[],l.traits.push(s)},this)),this.definePackage(e,t),this.typeMap[s]=e},vt.prototype.mapTypes=function(e,t,i){var s=Rs(e.name)?{name:e.name}:this.typeMap[e.name],r=this;function o(c,m){var u=Te(c,Rs(c)?"":e.prefix);r.mapTypes(u,t,m)}function a(c){return o(c,!0)}function l(c){return o(c,!1)}if(!s)throw new Error("unknown type <"+e.name+">");R(s.superClass,i?a:l),t(s,!i),R(s.traits,a)},vt.prototype.getEffectiveDescriptor=function(e){var t=Te(e),i=new _e(t);this.mapTypes(t,function(r,o){i.addTrait(r,o)});var s=i.build();return this.definePackage(s,s.allTypes[s.allTypes.length-1].$pkg),s},vt.prototype.definePackage=function(e,t){this.properties.define(e,"$pkg",{value:t})};function ra(e,t,i){var s=t[i];if(s in e)throw new Error("package with "+i+" <"+s+"> already defined")}function Xt(e){this.model=e}Xt.prototype.set=function(e,t,i){if(!nt(t)||!t.length)throw new TypeError("property name must be a non-empty string");var s=this.getProperty(e,t),r=s&&s.name;ou(i)?s?delete e[r]:delete e.$attrs[Ls(t)]:s?r in e?e[r]=i:oa(e,s,i):e.$attrs[Ls(t)]=i},Xt.prototype.get=function(e,t){var i=this.getProperty(e,t);if(!i)return e.$attrs[Ls(t)];var s=i.name;return!e[s]&&i.isMany&&oa(e,i,[]),e[s]},Xt.prototype.define=function(e,t,i){if(!i.writable){var s=i.value;i=_({},i,{get:function(){return s}}),delete i.value}Object.defineProperty(e,t,i)},Xt.prototype.defineDescriptor=function(e,t){this.define(e,"$descriptor",{value:t})},Xt.prototype.defineModel=function(e,t){this.define(e,"$model",{value:t})},Xt.prototype.getProperty=function(e,t){var i=this.model,s=i.getPropertyDescriptor(e,t);if(s)return s;if(t.includes(":"))return null;const r=i.config.strict;if(typeof r<"u"){const o=new TypeError(`unknown property <${t}> on <${e.$type}>`);if(r)throw o;typeof console<"u"}return null};function ou(e){return typeof e>"u"}function oa(e,t,i){Object.defineProperty(e,t.name,{enumerable:!t.isReference,writable:!0,value:i,configurable:!0})}function Ls(e){return e.replace(/^:/,"")}function Ye(e,t={}){this.properties=new Xt(this),this.factory=new ia(this,this.properties),this.registry=new vt(e,this.properties),this.typeCache={},this.config=t}Ye.prototype.create=function(e,t){var i=this.getType(e);if(!i)throw new Error("unknown type <"+e+">");return new i(t)},Ye.prototype.getType=function(e){var t=this.typeCache,i=nt(e)?e:e.ns.name,s=t[i];return s||(e=this.registry.getEffectiveDescriptor(i),s=t[i]=this.factory.createType(e)),s},Ye.prototype.createAny=function(e,t,i){var s=Te(e),r={$type:e,$instanceOf:function(a){return a===this.$type},get:function(a){return this[a]},set:function(a,l){kd(this,[a],l)}},o={name:e,isGeneric:!0,ns:{prefix:s.prefix,localName:s.localName,uri:t}};return this.properties.defineDescriptor(r,o),this.properties.defineModel(r,this),this.properties.define(r,"get",{enumerable:!1,writable:!0}),this.properties.define(r,"set",{enumerable:!1,writable:!0}),this.properties.define(r,"$parent",{enumerable:!1,writable:!0}),this.properties.define(r,"$instanceOf",{enumerable:!1,writable:!0}),R(i,function(a,l){Gt(a)&&a.value!==void 0?r[a.name]=a.value:r[l]=a}),r},Ye.prototype.getPackage=function(e){return this.registry.getPackage(e)},Ye.prototype.getPackages=function(){return this.registry.getPackages()},Ye.prototype.getElementDescriptor=function(e){return e.$descriptor},Ye.prototype.hasType=function(e,t){t===void 0&&(t=e,e=this);var i=e.$model.getElementDescriptor(e);return t in i.allTypesByName},Ye.prototype.getPropertyDescriptor=function(e,t){return this.getElementDescriptor(e).propertiesByName[t]},Ye.prototype.getTypeDescriptor=function(e){return this.registry.typeMap[e]};var aa=String.fromCharCode,au=Object.prototype.hasOwnProperty,lu=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/ig,qi={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};Object.keys(qi).forEach(function(e){qi[e.toUpperCase()]=qi[e]});function cu(e,t,i,s){return s?au.call(qi,s)?qi[s]:"&"+s+";":aa(t||parseInt(i,16))}function $t(e){return e.length>3&&e.indexOf("&")!==-1?e.replace(lu,cu):e}var la="non-whitespace outside of root node";function bi(e){return new Error(e)}function ca(e){return"missing namespace for prefix <"+e+">"}function Pn(e){return{get:e,enumerable:!0}}function du(e){var t={},i;for(i in e)t[i]=e[i];return t}function vs(e){return e+"$uri"}function pu(e){var t={},i,s;for(i in e)s=e[i],t[s]=s,t[vs(s)]=i;return t}function da(){return{line:0,column:0}}function hu(e){throw e}function pa(e){if(!this)return new pa(e);var t=e&&e.proxy,i,s,r,o,a=hu,l,c,m,u,p=da,g=!1,A=!1,w=null,M=!1,G;function K(k){k instanceof Error||(k=bi(k)),w=k,a(k,p)}function z(k){!l||(k instanceof Error||(k=bi(k)),l(k,p))}this.on=function(k,N){if(typeof N!="function")throw bi("required args <name, cb>");switch(k){case"openTag":s=N;break;case"text":i=N;break;case"closeTag":r=N;break;case"error":a=N;break;case"warn":l=N;break;case"cdata":o=N;break;case"attention":u=N;break;case"question":m=N;break;case"comment":c=N;break;default:throw bi("unsupported event: "+k)}return this},this.ns=function(k){if(typeof k>"u"&&(k={}),typeof k!="object")throw bi("required args <nsMap={}>");var N={},S;for(S in k)N[S]=k[S];return A=!0,G=N,this},this.parse=function(k){if(typeof k!="string")throw bi("required args <xml=string>");return w=null,x(k),p=da,M=!1,w},this.stop=function(){M=!0};function x(k){var N=A?[]:null,S=A?pu(G):null,j,C=[],O=0,D=!1,v=!1,V=0,L=0,W,ut,oe,X,ot,at,me,Ze,T,B="",U=0,te;function Ge(){if(te!==null)return te;var h,d,y,b=A&&S.xmlns,E=A&&g?[]:null,I=U,F=B,Y=F.length,ge,pe,be,Xe,ie,wt={},Ln={},qe,J,ee;e:for(;I<Y;I++)if(qe=!1,J=F.charCodeAt(I),!(J===32||J<14&&J>8)){for((J<65||J>122||J>90&&J<97)&&J!==95&&J!==58&&(z("illegal first char attribute name"),qe=!0),ee=I+1;ee<Y;ee++)if(J=F.charCodeAt(ee),!(J>96&&J<123||J>64&&J<91||J>47&&J<59||J===46||J===45||J===95)){if(J===32||J<14&&J>8){z("missing attribute value"),I=ee;continue e}if(J===61)break;z("illegal attribute name char"),qe=!0}if(ie=F.substring(I,ee),ie==="xmlns:xmlns"&&(z("illegal declaration of xmlns"),qe=!0),J=F.charCodeAt(ee+1),J===34)ee=F.indexOf('"',I=ee+2),ee===-1&&(ee=F.indexOf("'",I),ee!==-1&&(z("attribute value quote missmatch"),qe=!0));else if(J===39)ee=F.indexOf("'",I=ee+2),ee===-1&&(ee=F.indexOf('"',I),ee!==-1&&(z("attribute value quote missmatch"),qe=!0));else for(z("missing attribute value quotes"),qe=!0,ee=ee+1;ee<Y&&(J=F.charCodeAt(ee+1),!(J===32||J<14&&J>8));ee++);for(ee===-1&&(z("missing closing quotes"),ee=Y,qe=!0),qe||(be=F.substring(I,ee)),I=ee;ee+1<Y&&(J=F.charCodeAt(ee+1),!(J===32||J<14&&J>8));ee++)I===ee&&(z("illegal character after attribute end"),qe=!0);if(I=ee+1,qe)continue e;if(ie in Ln){z("attribute <"+ie+"> already defined");continue}if(Ln[ie]=!0,!A){wt[ie]=be;continue}if(g){if(pe=ie==="xmlns"?"xmlns":ie.charCodeAt(0)===120&&ie.substr(0,6)==="xmlns:"?ie.substr(6):null,pe!==null){if(h=$t(be),d=vs(pe),Xe=G[h],!Xe){if(pe==="xmlns"||d in S&&S[d]!==h)do Xe="ns"+O++;while(typeof S[Xe]<"u");else Xe=pe;G[h]=Xe}S[pe]!==Xe&&(ge||(S=du(S),ge=!0),S[pe]=Xe,pe==="xmlns"&&(S[vs(Xe)]=h,b=Xe),S[d]=h),wt[ie]=be;continue}E.push(ie,be);continue}if(J=ie.indexOf(":"),J===-1){wt[ie]=be;continue}if(!(y=S[ie.substring(0,J)])){z(ca(ie.substring(0,J)));continue}ie=b===y?ie.substr(J+1):y+ie.substr(J),wt[ie]=be}if(g)for(I=0,Y=E.length;I<Y;I++){if(ie=E[I++],be=E[I],J=ie.indexOf(":"),J!==-1){if(!(y=S[ie.substring(0,J)])){z(ca(ie.substring(0,J)));continue}ie=b===y?ie.substr(J+1):y+ie.substr(J)}wt[ie]=be}return te=wt}function f(){for(var h=/(\r\n|\r|\n)/g,d=0,y=0,b=0,E=L,I,F;V>=b&&(I=h.exec(k),!(!I||(E=I[0].length+I.index,E>V)));)d+=1,b=E;return V==-1?(y=E,F=k.substring(L)):L===0?F=k.substring(L,V):(y=V-b,F=L==-1?k.substring(V):k.substring(V,L+1)),{data:F,line:d,column:y}}for(p=f,t&&(T=Object.create({},{name:Pn(function(){return me}),originalName:Pn(function(){return Ze}),attrs:Pn(Ge),ns:Pn(function(){return S})}));L!==-1;){if(k.charCodeAt(L)===60?V=L:V=k.indexOf("<",L),V===-1){if(C.length)return K("unexpected end of file");if(L===0)return K("missing start tag");L<k.length&&k.substring(L).trim()&&z(la);return}if(L!==V){if(C.length){if(i&&(i(k.substring(L,V),$t,p),M))return}else if(k.substring(L,V).trim()&&(z(la),M))return}if(X=k.charCodeAt(V+1),X===33){if(oe=k.charCodeAt(V+2),oe===91&&k.substr(V+3,6)==="CDATA["){if(L=k.indexOf("]]>",V),L===-1)return K("unclosed cdata");if(o&&(o(k.substring(V+9,L),p),M))return;L+=3;continue}if(oe===45&&k.charCodeAt(V+3)===45){if(L=k.indexOf("-->",V),L===-1)return K("unclosed comment");if(c&&(c(k.substring(V+4,L),$t,p),M))return;L+=3;continue}}if(X===63){if(L=k.indexOf("?>",V),L===-1)return K("unclosed question");if(m&&(m(k.substring(V,L+2),p),M))return;L+=2;continue}for(W=V+1;;W++){if(ot=k.charCodeAt(W),isNaN(ot))return L=-1,K("unclosed tag");if(ot===34)oe=k.indexOf('"',W+1),W=oe!==-1?oe:W;else if(ot===39)oe=k.indexOf("'",W+1),W=oe!==-1?oe:W;else if(ot===62){L=W;break}}if(X===33){if(u&&(u(k.substring(V,L+1),$t,p),M))return;L+=1;continue}if(te={},X===47){if(D=!1,v=!0,!C.length)return K("missing open tag");if(W=me=C.pop(),oe=V+2+W.length,k.substring(V+2,oe)!==W)return K("closing tag mismatch");for(;oe<L;oe++)if(X=k.charCodeAt(oe),!(X===32||X>8&&X<14))return K("close tag")}else{if(k.charCodeAt(L-1)===47?(W=me=k.substring(V+1,L-1),D=!0,v=!0):(W=me=k.substring(V+1,L),D=!0,v=!1),!(X>96&&X<123||X>64&&X<91||X===95||X===58))return K("illegal first char nodeName");for(oe=1,ut=W.length;oe<ut;oe++)if(X=W.charCodeAt(oe),!(X>96&&X<123||X>64&&X<91||X>47&&X<59||X===45||X===95||X==46)){if(X===32||X<14&&X>8){me=W.substring(0,oe),te=null;break}return K("invalid nodeName")}v||C.push(me)}if(A){if(j=S,D&&(v||N.push(j),te===null&&(g=W.indexOf("xmlns",oe)!==-1)&&(U=oe,B=W,Ge(),g=!1)),Ze=me,X=me.indexOf(":"),X!==-1){if(at=S[me.substring(0,X)],!at)return K("missing namespace on <"+Ze+">");me=me.substr(X+1)}else at=S.xmlns;at&&(me=at+":"+me)}if(D&&(U=oe,B=W,s&&(t?s(T,$t,v,p):s(me,Ge,$t,v,p),M)))return;if(v){if(r&&(r(t?T:me,$t,D,p),M))return;A&&(D?S=j:S=N.pop())}L+=1}}}function ha(e){return e.xml&&e.xml.tagAlias==="lowerCase"}var Fs={xsi:"http://www.w3.org/2001/XMLSchema-instance",xml:"http://www.w3.org/XML/1998/namespace"},ua="property";function ma(e){return e.xml&&e.xml.serialize}function uu(e){const t=ma(e);return t!==ua&&(t||null)}function mu(e){return e.charAt(0).toUpperCase()+e.slice(1)}function fa(e,t){return ha(t)?e.prefix+":"+mu(e.localName):e.name}function fu(e,t){var i=e.name,s=e.localName,r=t&&t.xml&&t.xml.typePrefix;return r&&s.indexOf(r)===0?e.prefix+":"+s.slice(r.length):i}function gu(e,t,i){const s=Te(e,t.xmlns),r=`${t[s.prefix]||s.prefix}:${s.localName}`,o=Te(r);var a=i.getPackage(o.prefix);return fu(o,a)}function Ft(e){return new Error(e)}function Ct(e){return e.$descriptor}function yu(e){_(this,e),this.elementsById={},this.references=[],this.warnings=[],this.addReference=function(t){this.references.push(t)},this.addElement=function(t){if(!t)throw Ft("expected element");var i=this.elementsById,s=Ct(t),r=s.idProperty,o;if(r&&(o=t.get(r.name),o)){if(!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(o))throw new Error("illegal ID <"+o+">");if(i[o])throw Ft("duplicate ID <"+o+">");i[o]=t}},this.addWarning=function(t){this.warnings.push(t)}}function Ji(){}Ji.prototype.handleEnd=function(){},Ji.prototype.handleText=function(){},Ji.prototype.handleNode=function(){};function Qs(){}Qs.prototype=Object.create(Ji.prototype),Qs.prototype.handleNode=function(){return this};function Ei(){}Ei.prototype=Object.create(Ji.prototype),Ei.prototype.handleText=function(e){this.body=(this.body||"")+e};function Hi(e,t){this.property=e,this.context=t}Hi.prototype=Object.create(Ei.prototype),Hi.prototype.handleNode=function(e){if(this.element)throw Ft("expected no sub nodes");return this.element=this.createReference(e),this},Hi.prototype.handleEnd=function(){this.element.id=this.body},Hi.prototype.createReference=function(e){return{property:this.property.ns.name,id:""}};function js(e,t){this.element=t,this.propertyDesc=e}js.prototype=Object.create(Ei.prototype),js.prototype.handleEnd=function(){var e=this.body||"",t=this.element,i=this.propertyDesc;e=Vs(i.type,e),i.isMany?t.get(i.name).push(e):t.set(i.name,e)};function Mn(){}Mn.prototype=Object.create(Ei.prototype),Mn.prototype.handleNode=function(e){var t=this,i=this.element;return i?t=this.handleChild(e):(i=this.element=this.createElement(e),this.context.addElement(i)),t};function Be(e,t,i){this.model=e,this.type=e.getType(t),this.context=i}Be.prototype=Object.create(Mn.prototype),Be.prototype.addReference=function(e){this.context.addReference(e)},Be.prototype.handleText=function(e){var t=this.element,i=Ct(t),s=i.bodyProperty;if(!s)throw Ft("unexpected body text <"+e+">");Ei.prototype.handleText.call(this,e)},Be.prototype.handleEnd=function(){var e=this.body,t=this.element,i=Ct(t),s=i.bodyProperty;s&&e!==void 0&&(e=Vs(s.type,e),t.set(s.name,e))},Be.prototype.createElement=function(e){var t=e.attributes,i=this.type,s=Ct(i),r=this.context,o=new i({}),a=this.model,l;return R(t,function(c,m){var u=s.propertiesByName[m],p;u&&u.isReference?u.isMany?(p=c.split(" "),R(p,function(g){r.addReference({element:o,property:u.ns.name,id:g})})):r.addReference({element:o,property:u.ns.name,id:c}):(u?c=Vs(u.type,c):m==="xmlns"?m=":"+m:(l=Te(m,s.ns.prefix),a.getPackage(l.prefix)&&r.addWarning({message:"unknown attribute <"+m+">",element:o,property:m,value:c})),o.set(m,c))}),o},Be.prototype.getPropertyForNode=function(e){var t=e.name,i=Te(t),s=this.type,r=this.model,o=Ct(s),a=i.name,l=o.propertiesByName[a];if(l&&!l.isAttr){const m=uu(l);if(m){const u=e.attributes[m];if(u){const p=gu(u,e.ns,r),g=r.getType(p);return _({},l,{effectiveType:Ct(g).name})}}return l}var c=r.getPackage(i.prefix);if(c){const m=fa(i,c),u=r.getType(m);if(l=st(o.properties,function(p){return!p.isVirtual&&!p.isReference&&!p.isAttribute&&u.hasType(p.type)}),l)return _({},l,{effectiveType:Ct(u).name})}else if(l=st(o.properties,function(m){return!m.isReference&&!m.isAttribute&&m.type==="Element"}),l)return l;throw Ft("unrecognized element <"+i.name+">")},Be.prototype.toString=function(){return"ElementDescriptor["+Ct(this.type).name+"]"},Be.prototype.valueHandler=function(e,t){return new js(e,t)},Be.prototype.referenceHandler=function(e){return new Hi(e,this.context)},Be.prototype.handler=function(e){return e==="Element"?new Ci(this.model,e,this.context):new Be(this.model,e,this.context)},Be.prototype.handleChild=function(e){var t,i,s,r;if(t=this.getPropertyForNode(e),s=this.element,i=t.effectiveType||t.type,sa(i))return this.valueHandler(t,s);t.isReference?r=this.referenceHandler(t).handleNode(e):r=this.handler(i).handleNode(e);var o=r.element;return o!==void 0&&(t.isMany?s.get(t.name).push(o):s.set(t.name,o),t.isReference?(_(o,{element:s}),this.context.addReference(o)):o.$parent=s),r};function Us(e,t,i){Be.call(this,e,t,i)}Us.prototype=Object.create(Be.prototype),Us.prototype.createElement=function(e){var t=e.name,i=Te(t),s=this.model,r=this.type,o=s.getPackage(i.prefix),a=o&&fa(i,o)||t;if(!r.hasType(a))throw Ft("unexpected element <"+e.originalName+">");return Be.prototype.createElement.call(this,e)};function Ci(e,t,i){this.model=e,this.context=i}Ci.prototype=Object.create(Mn.prototype),Ci.prototype.createElement=function(e){var t=e.name,i=Te(t),s=i.prefix,r=e.ns[s+"$uri"],o=e.attributes;return this.model.createAny(t,r,o)},Ci.prototype.handleChild=function(e){var t=new Ci(this.model,"Element",this.context).handleNode(e),i=this.element,s=t.element,r;return s!==void 0&&(r=i.$children=i.$children||[],r.push(s),s.$parent=i),t},Ci.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)};function _s(e){e instanceof Ye&&(e={model:e}),_(this,{lax:!1},e)}_s.prototype.fromXML=function(e,t,i){var s=t.rootHandler;t instanceof Be?(s=t,t={}):typeof t=="string"?(s=this.handler(t),t={}):typeof s=="string"&&(s=this.handler(s));var r=this.model,o=this.lax,a=new yu(_({},t,{rootHandler:s})),l=new pa({proxy:!0}),c=Au();s.context=a,c.push(s);function m(N,S,j){var C=S(),O=C.line,D=C.column,v=C.data;v.charAt(0)==="<"&&v.indexOf(" ")!==-1&&(v=v.slice(0,v.indexOf(" "))+">");var V="unparsable content "+(v?v+" ":"")+`detected
|
|
3
|
+
`,...Ql(r)),[...o]}$s()}function Fl(){let e=Ft[Ft.length-1];if(!e)return[];const t=[];for(;e;){const i=t[0];i&&i.vnode===e?i.recurseCount++:t.push({vnode:e,recurseCount:0});const s=e.component&&e.component.parent;e=s&&s.vnode}return t}function Ql(e){const t=[];return e.forEach((i,s)=>{t.push(...s===0?[]:[`
|
|
4
|
+
`],...Ul(i))}),t}function Ul({vnode:e,recurseCount:t}){const i=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,r=` at <${Lr(e.component,e.type,s)}`,o=">"+i;return e.props?[r,...jl(e.props),o]:[r+o]}function jl(e){const t=[],i=Object.keys(e);return i.slice(0,3).forEach(s=>{t.push(...mr(s,e[s]))}),i.length>3&&t.push(" ..."),t}function mr(e,t,i){return He(t)?(t=JSON.stringify(t),i?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?i?t:[`${e}=${t}`]:Oe(t)?(t=mr(e,ne(t.value),!0),i?t:[`${e}=Ref<`,t,">"]):Ce(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ne(t),i?t:[`${e}=`,t])}const fr={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",[0]:"setup function",[1]:"render function",[2]:"watcher getter",[3]:"watcher callback",[4]:"watcher cleanup function",[5]:"native event handler",[6]:"component event handler",[7]:"vnode hook",[8]:"directive hook",[9]:"transition hook",[10]:"app errorHandler",[11]:"app warnHandler",[12]:"ref function",[13]:"async component loader",[14]:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function Qt(e,t,i,s){let r;try{r=s?e(...s):e()}catch(o){gr(o,t,i)}return r}function zn(e,t,i,s){if(Ce(e)){const o=Qt(e,t,i,s);return o&&Ka(o)&&o.catch(a=>{gr(a,t,i)}),o}const r=[];for(let o=0;o<e.length;o++)r.push(zn(e[o],t,i,s));return r}function gr(e,t,i,s=!0){const r=t?t.vnode:null;if(t){let o=t.parent;const a=t.proxy,l=process.env.NODE_ENV!=="production"?fr[i]:i;for(;o;){const m=o.ec;if(m){for(let u=0;u<m.length;u++)if(m[u](e,a,l)===!1)return}o=o.parent}const c=t.appContext.config.errorHandler;if(c){Qt(c,null,10,[e,a,l]);return}}Gl(e,i,r,s)}function Gl(e,t,i,s=!0){if(process.env.NODE_ENV!=="production"){const r=fr[t];if(i&&Ll(i),Te(`Unhandled error${r?` during execution of ${r}`:""}`),i&&vl(),s)throw e;console.error(e)}else console.error(e)}let Xi=!1,Kn=!1;const Ye=[];let bt=0;const ti=[];let st=null,Ct=0;const yr=Promise.resolve();let Hn=null;const _l=100;function ql(e){const t=Hn||yr;return e?t.then(this?e.bind(this):e):t}function Jl(e){let t=bt+1,i=Ye.length;for(;t<i;){const s=t+i>>>1;Ci(Ye[s])<e?t=s+1:i=s}return t}function Yn(e){(!Ye.length||!Ye.includes(e,Xi&&e.allowRecurse?bt+1:bt))&&(e.id==null?Ye.push(e):Ye.splice(Jl(e.id),0,e),Ar())}function Ar(){!Xi&&!Kn&&(Kn=!0,Hn=yr.then(Er))}function kr(e){oe(e)?ti.push(...e):(!st||!st.includes(e,e.allowRecurse?Ct+1:Ct))&&ti.push(e),Ar()}function zl(e){if(ti.length){const t=[...new Set(ti)];if(ti.length=0,st){st.push(...t);return}for(st=t,process.env.NODE_ENV!=="production"&&(e=e||new Map),st.sort((i,s)=>Ci(i)-Ci(s)),Ct=0;Ct<st.length;Ct++)process.env.NODE_ENV!=="production"&&br(e,st[Ct])||st[Ct]();st=null,Ct=0}}const Ci=e=>e.id==null?1/0:e.id,Kl=(e,t)=>{const i=Ci(e)-Ci(t);if(i===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return i};function Er(e){Kn=!1,Xi=!0,process.env.NODE_ENV!=="production"&&(e=e||new Map),Ye.sort(Kl);const t=process.env.NODE_ENV!=="production"?i=>br(e,i):_s;try{for(bt=0;bt<Ye.length;bt++){const i=Ye[bt];if(i&&i.active!==!1){if(process.env.NODE_ENV!=="production"&&t(i))continue;Qt(i,null,14)}}}finally{bt=0,Ye.length=0,zl(e),Xi=!1,Hn=null,(Ye.length||ti.length)&&Er(e)}}function br(e,t){if(!e.has(t))e.set(t,1);else{const i=e.get(t);if(i>_l){const s=t.ownerInstance,r=s&&Rr(s.type);return Te(`Maximum recursive updates exceeded${r?` in component <${r}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}else e.set(t,i+1)}}const wi=new Set;process.env.NODE_ENV!=="production"&&(Pn().__VUE_HMR_RUNTIME__={createRecord:Wn(Hl),rerender:Wn(Yl),reload:Wn(Wl)});const Zi=new Map;function Hl(e,t){return Zi.has(e)?!1:(Zi.set(e,{initialDef:Ni(t),instances:new Set}),!0)}function Ni(e){return vr(e)?e.__vccOpts:e}function Yl(e,t){const i=Zi.get(e);!i||(i.initialDef.render=t,[...i.instances].forEach(s=>{t&&(s.render=t,Ni(s.type).render=t),s.renderCache=[],s.update()}))}function Wl(e,t){const i=Zi.get(e);if(!i)return;t=Ni(t),Cr(i.initialDef,t);const s=[...i.instances];for(const r of s){const o=Ni(r.type);wi.has(o)||(o!==i.initialDef&&Cr(o,t),wi.add(o)),r.appContext.propsCache.delete(r.type),r.appContext.emitsCache.delete(r.type),r.appContext.optionsCache.delete(r.type),r.ceReload?(wi.add(o),r.ceReload(t.styles),wi.delete(o)):r.parent?Yn(r.parent.update):r.appContext.reload?r.appContext.reload():typeof window<"u"&&window.location.reload()}kr(()=>{for(const r of s)wi.delete(Ni(r.type))})}function Cr(e,t){ve(e,t);for(const i in e)i!=="__file"&&!(i in t)&&delete e[i]}function Wn(e){return(t,i)=>{try{return e(t,i)}catch(s){console.error(s)}}}let wt=null,Xl=null;function Tb(){}const Zl=e=>e.__isSuspense;function $l(e,t){t&&t.pendingBranch?oe(e)?t.effects.push(...e):t.effects.push(e):kr(e)}const $i={};function ec(e,t,{immediate:i,deep:s,flush:r,onTrack:o,onTrigger:a}=nt){var l;process.env.NODE_ENV!=="production"&&!t&&(i!==void 0&&Te('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),s!==void 0&&Te('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const c=E=>{Te("Invalid watch source: ",E,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},m=nl()===((l=si)==null?void 0:l.scope)?si:null;let u,p=!1,y=!1;if(Oe(e)?(u=()=>e.value,p=Gn(e)):Lt(e)?(u=()=>e,s=!0):oe(e)?(y=!0,p=e.some(E=>Lt(E)||Gn(E)),u=()=>e.map(E=>{if(Oe(E))return E.value;if(Lt(E))return ii(E);if(Ce(E))return Qt(E,m,2);process.env.NODE_ENV!=="production"&&c(E)})):Ce(e)?t?u=()=>Qt(e,m,2):u=()=>{if(!(m&&m.isUnmounted))return k&&k(),zn(e,m,3,[C])}:(u=_s,process.env.NODE_ENV!=="production"&&c(e)),t&&s){const E=u;u=()=>ii(E())}let k,C=E=>{k=Q.onStop=()=>{Qt(E,m,4)}},v=y?new Array(e.length).fill($i):$i;const F=()=>{if(!!Q.active)if(t){const E=Q.run();(s||p||(y?E.some((x,S)=>Gi(x,v[S])):Gi(E,v)))&&(k&&k(),zn(t,m,3,[E,v===$i?void 0:y&&v[0]===$i?[]:v,C]),v=E)}else Q.run()};F.allowRecurse=!!t;let z;r==="sync"?z=F:r==="post"?z=()=>Br(F,m&&m.suspense):(F.pre=!0,m&&(F.id=m.uid),z=()=>Yn(F));const Q=new ol(u,z);return process.env.NODE_ENV!=="production"&&(Q.onTrack=o,Q.onTrigger=a),t?i?F():v=Q.run():r==="post"?Br(Q.run.bind(Q),m&&m.suspense):Q.run(),()=>{Q.stop(),m&&m.scope&&qa(m.scope.effects,Q)}}function tc(e,t,i){const s=this.proxy,r=He(e)?e.includes(".")?ic(s,e):()=>s[e]:e.bind(s,s);let o;Ce(t)?o=t:(o=t.handler,i=t);const a=si;Vr(this);const l=ec(r,o.bind(s),i);return a?Vr(a):bc(),l}function ic(e,t){const i=t.split(".");return()=>{let s=e;for(let r=0;r<i.length&&s;r++)s=s[i[r]];return s}}function ii(e,t){if(!De(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Oe(e))ii(e.value,t);else if(oe(e))for(let i=0;i<e.length;i++)ii(e[i],t);else if(za(e)||ei(e))e.forEach(i=>{ii(i,t)});else if(Ya(e))for(const i in e)ii(e[i],t);return e}function We(e,t){return Ce(e)?(()=>ve({name:e.name},t,{setup:e}))():e}const nc=Symbol.for("v-ndc"),Xn=e=>e?Cc(e)?wc(e)||e.proxy:Xn(e.parent):null,Ti=ve(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>process.env.NODE_ENV!=="production"?Wi(e.props):e.props,$attrs:e=>process.env.NODE_ENV!=="production"?Wi(e.attrs):e.attrs,$slots:e=>process.env.NODE_ENV!=="production"?Wi(e.slots):e.slots,$refs:e=>process.env.NODE_ENV!=="production"?Wi(e.refs):e.refs,$parent:e=>Xn(e.parent),$root:e=>Xn(e.root),$emit:e=>e.emit,$options:e=>oc(e),$forceUpdate:e=>e.f||(e.f=()=>Yn(e.update)),$nextTick:e=>e.n||(e.n=ql.bind(e.proxy)),$watch:e=>tc.bind(e)}),sc=e=>e==="_"||e==="$",Zn=(e,t)=>e!==nt&&!e.__isScriptSetup&&fe(e,t),rc={get({_:e},t){const{ctx:i,setupState:s,data:r,props:o,accessCache:a,type:l,appContext:c}=e;if(process.env.NODE_ENV!=="production"&&t==="__isVue")return!0;let m;if(t[0]!=="$"){const k=a[t];if(k!==void 0)switch(k){case 1:return s[t];case 2:return r[t];case 4:return i[t];case 3:return o[t]}else{if(Zn(s,t))return a[t]=1,s[t];if(r!==nt&&fe(r,t))return a[t]=2,r[t];if((m=e.propsOptions[0])&&fe(m,t))return a[t]=3,o[t];if(i!==nt&&fe(i,t))return a[t]=4,i[t];a[t]=0}}const u=Ti[t];let p,y;if(u)return t==="$attrs"?(Me(e,"get",t),process.env.NODE_ENV!=="production"&&void 0):process.env.NODE_ENV!=="production"&&t==="$slots"&&Me(e,"get",t),u(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(i!==nt&&fe(i,t))return a[t]=4,i[t];if(y=c.config.globalProperties,fe(y,t))return y[t];process.env.NODE_ENV!=="production"&&wt&&(!He(t)||t.indexOf("__v")!==0)&&(r!==nt&&sc(t[0])&&fe(r,t)?Te(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===wt&&Te(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,i){const{data:s,setupState:r,ctx:o}=e;return Zn(r,t)?(r[t]=i,!0):process.env.NODE_ENV!=="production"&&r.__isScriptSetup&&fe(r,t)?(Te(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):s!==nt&&fe(s,t)?(s[t]=i,!0):fe(e.props,t)?(process.env.NODE_ENV!=="production"&&Te(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(process.env.NODE_ENV!=="production"&&Te(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(process.env.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(o,t,{enumerable:!0,configurable:!0,value:i}):o[t]=i,!0)},has({_:{data:e,setupState:t,accessCache:i,ctx:s,appContext:r,propsOptions:o}},a){let l;return!!i[a]||e!==nt&&fe(e,a)||Zn(t,a)||(l=o[0])&&fe(l,a)||fe(s,a)||fe(Ti,a)||fe(r.config.globalProperties,a)},defineProperty(e,t,i){return i.get!=null?e._.accessCache[t]=0:fe(i,"value")&&this.set(e,t,i.value,null),Reflect.defineProperty(e,t,i)}};process.env.NODE_ENV!=="production"&&(rc.ownKeys=e=>(Te("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));function wr(e){return oe(e)?e.reduce((t,i)=>(t[i]=null,t),{}):e}function oc(e){const t=e.type,{mixins:i,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,l=o.get(t);let c;return l?c=l:!r.length&&!i&&!s?c=t:(c={},r.length&&r.forEach(m=>en(c,m,a,!0)),en(c,t,a)),De(t)&&o.set(t,c),c}function en(e,t,i,s=!1){const{mixins:r,extends:o}=t;o&&en(e,o,i,!0),r&&r.forEach(a=>en(e,a,i,!0));for(const a in t)if(s&&a==="expose")process.env.NODE_ENV!=="production"&&Te('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const l=ac[a]||i&&i[a];e[a]=l?l(e[a],t[a]):t[a]}return e}const ac={data:Nr,props:Ir,emits:Ir,methods:Ii,computed:Ii,beforeCreate:Ie,created:Ie,beforeMount:Ie,mounted:Ie,beforeUpdate:Ie,updated:Ie,beforeDestroy:Ie,beforeUnmount:Ie,destroyed:Ie,unmounted:Ie,activated:Ie,deactivated:Ie,errorCaptured:Ie,serverPrefetch:Ie,components:Ii,directives:Ii,watch:cc,provide:Nr,inject:lc};function Nr(e,t){return t?e?function(){return ve(Ce(e)?e.call(this,this):e,Ce(t)?t.call(this,this):t)}:t:e}function lc(e,t){return Ii(Tr(e),Tr(t))}function Tr(e){if(oe(e)){const t={};for(let i=0;i<e.length;i++)t[e[i]]=e[i];return t}return e}function Ie(e,t){return e?[...new Set([].concat(e,t))]:t}function Ii(e,t){return e?ve(Object.create(null),e,t):t}function Ir(e,t){return e?oe(e)&&oe(t)?[...new Set([...e,...t])]:ve(Object.create(null),wr(e),wr(t!=null?t:{})):t}function cc(e,t){if(!e)return t;if(!t)return e;const i=ve(Object.create(null),e);for(const s in t)i[s]=Ie(e[s],t[s]);return i}function dc(){return{app:null,config:{isNativeTag:ja,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}const Br=$l,pc=e=>e.__isTeleport,xr=Symbol.for("v-fgt"),hc=Symbol.for("v-txt"),uc=Symbol.for("v-cmt");let ni=null;function mc(e){return e?e.__v_isVNode===!0:!1}const fc=(...e)=>Pr(...e),Sr="__vInternal",Dr=({key:e})=>e!=null?e:null,tn=({ref:e,ref_key:t,ref_for:i})=>(typeof e=="number"&&(e=""+e),e!=null?He(e)||Oe(e)||Ce(e)?{i:wt,r:e,k:t,f:!!i}:e:null);function gc(e,t=null,i=null,s=0,r=null,o=e===xr?0:1,a=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Dr(t),ref:t&&tn(t),scopeId:Xl,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:wt};return l?($n(c,i),o&128&&e.normalize(c)):i&&(c.shapeFlag|=He(i)?8:16),process.env.NODE_ENV!=="production"&&c.key!==c.key&&Te("VNode created with invalid key (NaN). VNode type:",c.type),!a&&ni&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&ni.push(c),c}const yc=process.env.NODE_ENV!=="production"?fc:Pr;function Pr(e,t=null,i=null,s=0,r=null,o=!1){if((!e||e===nc)&&(process.env.NODE_ENV!=="production"&&!e&&Te(`Invalid vnode type when creating vnode: ${e}.`),e=uc),mc(e)){const l=nn(e,t,!0);return i&&$n(l,i),!o&&ni&&(l.shapeFlag&6?ni[ni.indexOf(e)]=l:ni.push(l)),l.patchFlag|=-2,l}if(vr(e)&&(e=e.__vccOpts),t){t=Ac(t);let{class:l,style:c}=t;l&&!He(l)&&(t.class=On(l)),De(c)&&(_n(c)&&!oe(c)&&(c=ve({},c)),t.style=Mn(c))}const a=He(e)?1:Zl(e)?128:pc(e)?64:De(e)?4:Ce(e)?2:0;return process.env.NODE_ENV!=="production"&&a&4&&_n(e)&&(e=ne(e),Te("Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
|
|
5
|
+
Component that was made reactive: `,e)),gc(e,t,i,s,r,a,o,!0)}function Ac(e){return e?_n(e)||Sr in e?ve({},e):e:null}function nn(e,t,i=!1){const{props:s,ref:r,patchFlag:o,children:a}=e,l=t?Ec(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Dr(l),ref:t&&t.ref?i&&r?oe(r)?r.concat(tn(t)):[r,tn(t)]:tn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:process.env.NODE_ENV!=="production"&&o===-1&&oe(a)?a.map(Mr):a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xr?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&nn(e.ssContent),ssFallback:e.ssFallback&&nn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Mr(e){const t=nn(e);return oe(e.children)&&(t.children=e.children.map(Mr)),t}function kc(e=" ",t=0){return yc(hc,null,e,t)}function $n(e,t){let i=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(oe(t))i=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),$n(e,r()),r._c&&(r._d=!0));return}else{i=32;const r=t._;!r&&!(Sr in t)?t._ctx=wt:r===3&&wt&&(wt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ce(t)?(t={default:t,_ctx:wt},i=32):(t=String(t),s&64?(i=16,t=[kc(t)]):i=8);e.children=t,e.shapeFlag|=i}function Ec(...e){const t={};for(let i=0;i<e.length;i++){const s=e[i];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=On([t.class,s.class]));else if(r==="style")t.style=Mn([t.style,s.style]);else if(_a(r)){const o=t[r],a=s[r];a&&o!==a&&!(oe(o)&&o.includes(a))&&(t[r]=o?[].concat(o,a):a)}else r!==""&&(t[r]=s[r])}return t}dc();let si=null,es,ri,Or="__VUE_INSTANCE_SETTERS__";(ri=Pn()[Or])||(ri=Pn()[Or]=[]),ri.push(e=>si=e),es=e=>{ri.length>1?ri.forEach(t=>t(e)):ri[0](e)};const Vr=e=>{es(e),e.scope.on()},bc=()=>{si&&si.scope.off(),es(null)};function Cc(e){return e.vnode.shapeFlag&4}function wc(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Rl(Ml(e.exposed)),{get(t,i){if(i in t)return t[i];if(i in Ti)return Ti[i](e)},has(t,i){return i in t||i in Ti}}))}const Nc=/(?:^|[-_])(\w)/g,Tc=e=>e.replace(Nc,t=>t.toUpperCase()).replace(/[-_]/g,"");function Rr(e,t=!0){return Ce(e)?e.displayName||e.name:e.name||t&&e.__name}function Lr(e,t,i=!1){let s=Rr(t);if(!s&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(s=r[1])}if(!s&&e&&e.parent){const r=o=>{for(const a in o)if(o[a]===t)return a};s=r(e.components||e.parent.type.components)||r(e.appContext.components)}return s?Tc(s):i?"App":"Anonymous"}function vr(e){return Ce(e)&&"__vccOpts"in e}function ts(e){return!!(e&&e.__v_isShallow)}function Ic(){if(process.env.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#0b1bc9"},i={style:"color:#b62e24"},s={style:"color:#9d288c"},r={header(p){return De(p)?p.__isVue?["div",e,"VueInstance"]:Oe(p)?["div",{},["span",e,u(p)],"<",l(p.value),">"]:Lt(p)?["div",{},["span",e,ts(p)?"ShallowReactive":"Reactive"],"<",l(p),`>${vt(p)?" (readonly)":""}`]:vt(p)?["div",{},["span",e,ts(p)?"ShallowReadonly":"Readonly"],"<",l(p),">"]:null:null},hasBody(p){return p&&p.__isVue},body(p){if(p&&p.__isVue)return["div",{},...o(p.$)]}};function o(p){const y=[];p.type.props&&p.props&&y.push(a("props",ne(p.props))),p.setupState!==nt&&y.push(a("setup",p.setupState)),p.data!==nt&&y.push(a("data",ne(p.data)));const k=c(p,"computed");k&&y.push(a("computed",k));const C=c(p,"inject");return C&&y.push(a("injected",C)),y.push(["div",{},["span",{style:s.style+";opacity:0.66"},"$ (internal): "],["object",{object:p}]]),y}function a(p,y){return y=ve({},y),Object.keys(y).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},p],["div",{style:"padding-left:1.25em"},...Object.keys(y).map(k=>["div",{},["span",s,k+": "],l(y[k],!1)])]]:["span",{}]}function l(p,y=!0){return typeof p=="number"?["span",t,p]:typeof p=="string"?["span",i,JSON.stringify(p)]:typeof p=="boolean"?["span",s,p]:De(p)?["object",{object:y?ne(p):p}]:["span",i,String(p)]}function c(p,y){const k=p.type;if(Ce(k))return;const C={};for(const v in p.ctx)m(k,v,y)&&(C[v]=p.ctx[v]);return C}function m(p,y,k){const C=p[k];if(oe(C)&&C.includes(y)||De(C)&&y in C||p.extends&&m(p.extends,y,k)||p.mixins&&p.mixins.some(v=>m(v,y,k)))return!0}function u(p){return ts(p)?"ShallowRef":p.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(r):window.devtoolsFormatters=[r]}function Bc(){Ic()}process.env.NODE_ENV!=="production"&&Bc();const xc=We({name:"TopPopup",props:{titleText:{default:"top-popup",type:String},context:{default:"\u5185\u5BB9",type:String},cancelText:{default:"\u53D6\u6D88",type:String},comfigText:{default:"\u786E\u5B9A",type:String},comfig:{default:null,type:Function},cancel:{default:null,type:Function},isMask:{default:!0,type:Boolean},isMaskClose:{default:!0,type:Boolean},isTips:{default:!1,type:Boolean},isDrawer:{default:!1,type:Boolean},visible:{default:!1,type:Boolean},isIndex:{type:Number},width:{type:String,default:"95vw"},className:{type:String,default:""},appendClass:{type:String,default:""}},data(){return{show:!1,top:0,useHidden:!1}},watch:{visible:{handler(e,t){if(e)this.show=e,document.body.style.position=="fixed"&&document.body.style.overflow=="hidden"?this.useHidden=!0:this.useHidden=!1,this.top=window.scrollY,document.body.style.position="fixed",document.body.style.top=`${-top}px`,document.body.style.overflow="hidden";else{if(this.useHidden){this.show=e,this.$emit("update:visible",!1);return}else document.body.style.position="",document.body.style.top="",document.body.style.overflow="visible",window.scrollTo(0,this.top);this.show=e,this.$emit("update:visible",!1)}},immediate:!0}},methods:{handleOpen(){this.show=!0,this.top=window.scrollY,document.body.style.position="fixed",document.body.style.top=-this.top+"px"},handleClose(){document.body.style.position="",document.body.style.top="",window.scrollTo(0,this.top),this.show=!1,this.$emit("update:visible",!1),typeof this.cancel=="function"&&this.cancel()},handleCancel(){typeof this.cancel=="function"&&this.cancel(),this.handleClose()},handleComfig(){typeof this.comfig=="function"&&this.comfig()},isIOS(){let e=navigator.userAgent.includes("iPhone"),t=navigator.userAgent.includes("iPad");return e||t}},mounted(){this.$nextTick(()=>{const e=document.getElementsByClassName("process-warp")[0]?document.getElementsByClassName("process-warp")[0]:document.getElementsByClassName("sumbmitPopup-index-sumbit")[0].getElementsByClassName("top-popup")[0];e.append?e.append(this.$el):e.appendChild(this.$el),document.documentElement.scrollTop||document.body.scrollTop})}}),Ib="",ae=(e,t)=>{const i=e.__vccOpts||e;for(const[s,r]of t)i[s]=r;return i},Sc={class:"top-popup-header"},Dc={class:"header-title"},Pc={class:"top-popup-body"},Mc={class:"top-popup-drawer-header"},Oc={class:"header-title"},Vc={class:"top-popup-drawer--body"},Rc={class:"top-tips-header"},Lc={class:"top-tips-body"},vc={class:"top-tips-footer"};function Fc(e,t,i,s,r,o){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["top-popup-zindex",e.className]),style:n.normalizeStyle(`${e.isIndex?`z-index:${e.isIndex}`:""}`)},[n.createElementVNode("div",{class:"top-popup-mask",style:n.normalizeStyle(e.show&&e.isMask?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;"),onClick:t[0]||(t[0]=a=>e.isMaskClose&&e.handleClose())},null,4),!e.isTips&&!e.isDrawer?(n.openBlock(),n.createElementBlock("div",{key:0,class:"top-popup",style:n.normalizeStyle(e.show?"transform: translateY(0)":"transform: translateY(150%)")},[n.createElementVNode("div",Sc,[n.createElementVNode("div",{class:"header-cancel",onClick:t[1]||(t[1]=(...a)=>e.handleCancel&&e.handleCancel(...a))},n.toDisplayString(e.cancelText),1),n.createElementVNode("div",Dc,n.toDisplayString(e.titleText),1),n.createElementVNode("div",{class:"header-comfig",onClick:t[2]||(t[2]=(...a)=>e.handleComfig&&e.handleComfig(...a))},n.toDisplayString(e.comfigText),1)]),n.createElementVNode("div",Pc,[n.renderSlot(e.$slots,"default",{},void 0,!0)])],4)):!e.isTips&&e.isDrawer?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["top-popup-drawer",e.show?"top-popup-drawer--active":""]),style:n.normalizeStyle(e.width?`width:${e.width};`:"")},[n.createElementVNode("div",Mc,[n.createElementVNode("div",{class:"header-cancel",onClick:t[3]||(t[3]=(...a)=>e.handleCancel&&e.handleCancel(...a))}," \u5173\u95ED "),n.createElementVNode("div",Oc,n.toDisplayString(e.titleText),1),t[6]||(t[6]=n.createElementVNode("div",{class:"header-comfig",style:{width:"20px"}},null,-1))]),n.createElementVNode("div",Vc,[n.renderSlot(e.$slots,"default",{},void 0,!0)])],6)):e.isTips&&!e.isDrawer?(n.openBlock(),n.createElementBlock("div",{key:2,class:"top-tips",style:n.normalizeStyle(e.show?"visibility: visible; opacity: 1; transform: scale(1)":"visibility: hidden; opacity: 0; transform: scale(1.2)")},[n.createElementVNode("div",Rc,n.toDisplayString(e.titleText),1),n.createElementVNode("div",Lc,n.toDisplayString(e.context),1),n.createElementVNode("div",vc,[n.createElementVNode("div",{class:"top-tips-btn",onClick:t[4]||(t[4]=(...a)=>e.handleCancel&&e.handleCancel(...a))},n.toDisplayString(e.cancelText),1),n.createElementVNode("div",{class:"top-tips-btn",onClick:t[5]||(t[5]=(...a)=>e.handleComfig&&e.handleComfig(...a))},n.toDisplayString(e.comfigText),1)])],4)):n.createCommentVNode("",!0)],6)}const Fe=ae(xc,[["render",Fc],["__scopeId","data-v-9ae9509a"]]),Qc=We({name:"PreView",props:{file:{type:String,default:""}},data(){return{url:"",video:["mp4","avi","rmvb"],videoShow:!1}},watch:{file:{handler(e,t){if(e)if(this.video.includes(e.substring(e.lastIndexOf(".")+1)))this.videoShow=!0,this.url=e;else{this.videoShow=!1;let i=e.indexOf("https://")==-1?0:1;this.url=`https://wdyl.ddzg.cn:8089/?ssl=${i}&furl=${e}`}},immediate:!0,deep:!0}}}),Uc={key:0,style:{width:"100%",height:"calc(100% - 40px)"}},jc={key:0,style:{height:"100%",width:"100%"},controls:""},Gc=["src"],_c=["src"];function qc(e,t,i,s,r,o){return e.url?(n.openBlock(),n.createElementBlock("div",Uc,[e.videoShow?(n.openBlock(),n.createElementBlock("video",jc,[n.createElementVNode("source",{src:e.url,type:"video/mp4"},null,8,Gc)])):(n.openBlock(),n.createElementBlock("iframe",{key:1,style:{height:"100%",border:"unset",width:"100%"},src:e.url},null,8,_c))])):n.createCommentVNode("",!0)}const Fr=ae(Qc,[["render",qc]]),Jc=We({name:"preview-image",props:{images:{type:Array,defalut:()=>[]},startPosition:{type:Number,defalut:0},visible:{type:Boolean,defalut:!1},indexd:{type:Number,defalut:0},isOne:{type:Boolean,defalut:!1},isStyle:{type:String,defalut:""}},data(){return{imagesList:[],moveNum:0,flag:!1,windowWidth:0,windowHeight:0,startX:0,startY:0,move:0,startMove:0,maxX:0,duration:"transition-duration: 0.2s;transition-timing-function:ease;",isIndex:1,show:!1,displacement:{scale:1},styleZoom:"",styleOrigin:"",moveX:"-50%",moveY:"-50%",newScaleData:1}},watch:{images:{handler(e,t){this.imagesList=e},immediate:!0,deep:!0},visible:{handler(e,t){this.show=e},immediate:!0},indexd:{handler(e,t){e>=0&&(this.isIndex=e+1,this.move=e*100*-1)},immediate:!0}},methods:{handelTouchstart(e){let t=e.touches,i=t[0],s=t[1];this.displacement.pageX=i.pageX,this.displacement.pageY=i.pageY,this.displacement.moveable=!0,s?(this.displacement.pageX2=s.pageX,this.displacement.pageY2=s.pageY):(this.duration="transition-duration: 0.05s;transition-timing-function:linear",this.windowWidth=(document.documentElement.clientWidth||document.body.clientWidth)/100,this.windowHeight=(document.documentElement.clientHeight||document.body.clientHeight)/100,this.startX=e.touches[0].clientX,this.startY=e.touches[0].clientY,this.startMove=this.move),this.displacement.originScale=this.displacement.scale||1},handelTouchmove(e){if(!this.displacement.moveable)return;e.preventDefault();let t=e.touches,i=t[0],s=t[1];if(s){this.displacement.pageX2||(this.displacement.pageX2=s.pageX),this.displacement.pageY2||(this.displacement.pageY2=s.pageY);let r=this.getDistance({x:i.pageX,y:i.pageY},{x:s.pageX,y:s.pageY})/this.getDistance({x:this.displacement.pageX,y:this.displacement.pageY},{x:this.displacement.pageX2,y:this.displacement.pageY2}),o=this.displacement.originScale*r;o<.5?o=.5:o>3&&(o=3),this.displacement.scale=o,this.styleZoom=`scale(${o})`,this.styleOrigin="0 0"}else this.moveX=`calc(${(e.touches[0].clientX-this.startX)/this.displacement.scale}px - 50%)`,this.moveY=`calc(${(e.touches[0].clientY-this.startY)/this.displacement.scale}px - 50%)`},getDistance(e,t){return Math.hypot(t.x-e.x,t.y-e.y)},touchstartView(e){this.isOne||(this.duration="transition-duration: 0.05s;transition-timing-function:linear",this.flag=!0,this.windowWidth=(document.documentElement.clientWidth||document.body.clientWidth)/100,this.startX=e.touches[0].clientX,this.startMove=this.move)},touchmoveView(e){this.isOne||(this.startX>e.touches[0].clientX?this.move<=-((this.imagesList.length-1)*100)?this.move=-((this.imagesList.length-1)*100):this.move=this.startMove+Math.ceil((e.touches[0].clientX-this.startX)/this.windowWidth):this.startX<e.touches[0].clientX&&this.move<0&&(this.move>=0?this.move=0:this.move=this.startMove+Math.ceil((e.touches[0].clientX-this.startX)/this.windowWidth)))},touchendView(){if(this.isOne)return;this.duration="transition-duration: 0.2s;transition-timing-function:ease";let e=Math.floor(Math.abs(this.move/100));Math.abs(this.move/100%1)>.5?(this.isIndex=e+2,this.move=(e+1)*100*-1):(this.isIndex=e+1,this.move=e*100*-1),this.flag=!1},handleClose(){this.$emit("update:visible",!1)}},mounted(){this.$nextTick(()=>{const e=document.getElementsByClassName("process-warp")[0]?document.getElementsByClassName("process-warp")[0]:document.getElementsByClassName("sumbmitPopup-index-sumbit")[0].getElementsByClassName("top-popup")[0];e.append?e.append(this.$el):e.appendChild(this.$el)})}}),Bb="",zc={key:0,class:"preview-image"},Kc=["src"],Hc=["src"],Yc={key:2,class:"preview-image-view--page"},Wc={class:"page-item"};function Xc(e,t,i,s,r,o){return e.visible?(n.openBlock(),n.createElementBlock("div",zc,[n.createElementVNode("div",{class:"preview-image-mask",onClick:t[0]||(t[0]=(...a)=>e.handleClose&&e.handleClose(...a))}),e.isOne?(n.openBlock(),n.createElementBlock("div",{key:1,class:"preview-image-view--one",onTouchstart:t[5]||(t[5]=(...a)=>e.handelTouchstart&&e.handelTouchstart(...a)),onTouchmove:t[6]||(t[6]=(...a)=>e.handelTouchmove&&e.handelTouchmove(...a)),style:n.normalizeStyle(`transform:${e.styleZoom} translate(${e.moveX},${e.moveY});${e.duration};${e.styleOrigin?`transformOrigin:${e.styleOrigin}`:""};`)},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.imagesList,(a,l)=>(n.openBlock(),n.createElementBlock("img",{class:"img-view",key:l,src:a},null,8,Hc))),128))],36)):(n.openBlock(),n.createElementBlock("div",{key:0,class:"preview-image-view--img",style:n.normalizeStyle(`transform: translate(${e.move}%,-50%);${e.duration}`),onTouchstart:t[2]||(t[2]=(...a)=>e.touchstartView&&e.touchstartView(...a)),onTouchmove:t[3]||(t[3]=(...a)=>e.touchmoveView&&e.touchmoveView(...a)),onTouchend:t[4]||(t[4]=(...a)=>e.touchendView&&e.touchendView(...a))},[n.createElementVNode("div",{class:"preview-image-mask",onClick:t[1]||(t[1]=(...a)=>e.handleClose&&e.handleClose(...a)),style:{opacity:"0","z-index":"1"}}),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.imagesList,(a,l)=>(n.openBlock(),n.createElementBlock("img",{class:"img-view",key:l,src:a},null,8,Kc))),128))],36)),e.isOne?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",Yc,[n.createElementVNode("span",Wc,n.toDisplayString(e.isIndex)+"/"+n.toDisplayString(e.imagesList.length),1)])),t[7]||(t[7]=n.createElementVNode("div",{class:"preview-image-view--close"},null,-1))])):n.createCommentVNode("",!0)}const sn=ae(Jc,[["render",Xc],["__scopeId","data-v-d8a210ac"]]),Qr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAECBJREFUeF7dW21QVFeaPu+53TQEkU+VKKDyIQ4x0k3HuMnsjFbUmcq0hOjKbkpJpVIbQzSx/DH5Mdl/82f9laxGE6tI2FQsJ5sJE60kpVu7zjrZGEVUPoMYV4gogwEUuvnsz3vO1nO9l2qwkb4NuHFvVRcU9L33vM/7vs/7cd5DbHYuYozhg0vov0vGmLJq1apliqLkE1GmoijJqqqmEtF8IkqRUibhBiIallJ6pJRDiqK4VVUdlFL2qKra3tra2skYU8OeyfX34Pn4zOgyFh3LQ6i8vFxbTE1NDRYiysvLlWvXrmVLKbOI6FHO+SIppSawECKBc25ljMVJKeM45/hp0QEICSECRBRgjAWE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6Zx0AAAAAElFTkSuQmCC",Zc=We({name:"ViewAttchList",components:{PreView:Fr,TopPopup:Fe,PreviewImage:sn},computed:{del(){return Qr},doc(){return Ur},file(){return jr},image(){return Gr},pdf(){return _r},xls(){return qr},zip(){return Jr}},props:{inList:{type:Array,default:()=>[]}},data(){return{listData:[],imgIcon:["jpg","jpge","png","gif"],docIcon:["doc","docx"],xlsIcon:["xls","xlsx"],zipIcon:["zip","rar","7z"],preList:[],fileUrl:"",visible:!1,visibleImg:!1,lists:[],indexd:0}},watch:{inList:{handler(e,t){if(e.length){this.listData=e,this.lists=[];let i=[];e.map((s,r)=>{this.imgIcon.includes(s.name.substring(s.name.lastIndexOf(".")+1).toLowerCase())}),i=e.filter(s=>this.imgIcon.includes(s.name.substring(s.name.lastIndexOf(".")+1).toLowerCase())),i.forEach((s,r)=>{this.lists.push(s.url)})}},immediate:!0,deep:!0}},methods:{viewFile(e){this.imgIcon.includes(e.url.substring(e.url.lastIndexOf(".")+1).toLowerCase())?(this.visibleImg=!0,this.indexd=this.lists.indexOf(e.url)):(this.fileUrl=e.url,this.visible=!0)},loadFile(e){var t;if(Gs.default.hasNativeMethod("vueUpLoadFile"))Gs.default.call("vueUpLoadFile",e.url);else{if(typeof nativeMethod<"u"&&(nativeMethod==null?void 0:nativeMethod.vueUpLoadFile))return nativeMethod.vueUpLoadFile(e.url),!1;const i=document.createElement("a");i.download=(t=e.url)==null?void 0:t.match(/([^\/]+)$/g)[0],i.href=e.url,i.click()}}}}),xb="",$c={class:"process-wrap"},ed={key:0,class:"attch-list"},td={class:"list-items-icon"},id=["src"],nd=["src"],sd=["src"],rd=["src"],od=["src"],ad=["src"],ld=["onClick"],cd={class:"info-name"},dd={class:"info-name-text"},pd={class:"info-attribute"},hd={class:"info-attribute-time"},ud={class:"info-attribute-size"},md=["onClick"],fd={key:1,class:"attch-list"};function gd(e,t,i,s,r,o){const a=n.resolveComponent("PreView"),l=n.resolveComponent("TopPopup"),c=n.resolveComponent("PreviewImage");return n.openBlock(),n.createElementBlock("div",$c,[e.listData.length>0?(n.openBlock(),n.createElementBlock("div",ed,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.listData,(m,u)=>(n.openBlock(),n.createElementBlock("div",{key:m.id,class:"list-items"},[n.createElementVNode("div",td,[e.xlsIcon.includes(m.name.substring(m.name.lastIndexOf(".")+1).toLowerCase())?(n.openBlock(),n.createElementBlock("img",{key:0,class:"icon-img",src:e.xls},null,8,id)):e.imgIcon.includes(m.name.substring(m.name.lastIndexOf(".")+1).toLowerCase())?(n.openBlock(),n.createElementBlock("img",{key:1,class:"icon-img",src:e.image},null,8,nd)):m.name.substring(m.name.lastIndexOf(".")+1).toLowerCase()=="pdf"?(n.openBlock(),n.createElementBlock("img",{key:2,class:"icon-img",src:e.pdf},null,8,sd)):e.docIcon.includes(m.name.substring(m.name.lastIndexOf(".")+1).toLowerCase())?(n.openBlock(),n.createElementBlock("img",{key:3,class:"icon-img",src:e.doc},null,8,rd)):e.zipIcon.includes(m.name.substring(m.name.lastIndexOf(".")+1).toLowerCase())?(n.openBlock(),n.createElementBlock("img",{key:4,class:"icon-img",src:e.zip},null,8,od)):(n.openBlock(),n.createElementBlock("img",{key:5,class:"icon-img",src:e.file},null,8,ad))]),n.createElementVNode("div",{class:"list-items-info",onClick:p=>e.viewFile(m)},[n.createElementVNode("div",cd,[n.createElementVNode("span",dd,n.toDisplayString(m.name),1)]),n.createElementVNode("div",pd,[n.createElementVNode("span",hd,n.toDisplayString(m.uploadTime),1),n.createElementVNode("span",ud,n.toDisplayString(m.size<1024?m.size:m.size/1024>1024?parseFloat((m.size/1024/1024).toFixed(2)):parseFloat((m.size/1024).toFixed(2)))+n.toDisplayString(m.size<1024?"b":parseFloat((m.size/1024).toFixed(2))<1024?"kb":"M"),1)])],8,ld),n.createElementVNode("div",{class:"list-items-download",onClick:p=>e.loadFile(m)},[...t[2]||(t[2]=[n.createElementVNode("span",{class:"download-text"},"\u4E0B\u8F7D",-1)])],8,md)]))),128))])):(n.openBlock(),n.createElementBlock("div",fd,[...t[3]||(t[3]=[n.createElementVNode("div",{class:"attch-list--white"},[n.createElementVNode("div",{class:"attch-list--label"},"\u6682\u65E0\u9644\u4EF6")],-1)])])),n.createVNode(l,{visible:e.visible,"onUpdate:visible":t[0]||(t[0]=m=>e.visible=m),ref:"TopPopup",titleText:"\u9644\u4EF6\u9884\u89C8",isDrawer:"",isIndex:99},{default:n.withCtx(()=>[n.createVNode(a,{file:e.fileUrl},null,8,["file"])]),_:1},8,["visible"]),n.createVNode(c,{images:e.lists,visible:e.visibleImg,"onUpdate:visible":t[1]||(t[1]=m=>e.visibleImg=m),indexd:e.indexd},null,8,["images","visible","indexd"])])}const zr=ae(Zc,[["render",gd],["__scopeId","data-v-e0d8023e"]]);function rt(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}const Bi=Object.prototype.toString,yd=Object.prototype.hasOwnProperty;function is(e){return e===void 0}function oi(e){return e!==void 0}function Kr(e){return e==null}function Xe(e){return Bi.call(e)==="[object Array]"}function Ut(e){return Bi.call(e)==="[object Object]"}function Nt(e){return Bi.call(e)==="[object Number]"}function Tt(e){const t=Bi.call(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object AsyncGeneratorFunction]"||t==="[object Proxy]"}function Ze(e){return Bi.call(e)==="[object String]"}function ai(e,t){return!Kr(e)&&yd.call(e,t)}function $e(e,t){const i=ns(t);let s;return R(e,function(r,o){if(i(r,o))return s=r,!1}),s}function Ad(e,t){const i=ns(t);let s=Xe(e)?-1:void 0;return R(e,function(r,o){if(i(r,o))return s=o,!1}),s}function li(e,t){const i=ns(t);let s=[];return R(e,function(r,o){i(r,o)&&s.push(r)}),s}function R(e,t){let i,s;if(is(e))return;const r=Xe(e)?bd:Ed;for(let o in e)if(ai(e,o)&&(i=e[o],s=t(i,r(o)),s===!1))return i}function ci(e,t,i){return R(e,function(s,r){i=t(i,s,r)}),i}function Hr(e,t){return!!ci(e,function(i,s,r){return i&&t(s,r)},!0)}function Yr(e,t){return!!$e(e,t)}function kd(e,t){let i=[];return R(e,function(s,r){i.push(t(s,r))}),i}function Wr(e){return function(t){return Hr(e,function(i,s){return t[s]===i})}}function ns(e){return Tt(e)?e:t=>t===e}function Ed(e){return e}function bd(e){return Number(e)}function Cd(e,t){let i,s,r,o;function a(p){let y=Date.now(),k=p?0:o+t-y;if(k>0)return l(k);e.apply(r,s),c()}function l(p){i=setTimeout(a,p)}function c(){i&&clearTimeout(i),i=o=s=r=void 0}function m(){i&&a(!0),c()}function u(...p){o=Date.now(),s=p,r=this,i||l(t)}return u.flush=m,u.cancel=c,u}function It(e,t){return e.bind(t)}function q(e,...t){return Object.assign(e,...t)}function wd(e,t,i){let s=e;return R(t,function(r,o){if(typeof r!="number"&&typeof r!="string")throw new Error("illegal key type: "+typeof r+". Key should be of type number or string.");if(r==="constructor")throw new Error("illegal key: constructor");if(r==="__proto__")throw new Error("illegal key: __proto__");let a=t[o+1],l=s[r];oi(a)&&Kr(l)&&(l=s[r]=isNaN(+a)?{}:[]),is(a)?is(i)?delete s[r]:s[r]=i:s=l}),e}function Nd(e,t){let i={},s=Object(e);return R(t,function(r){r in s&&(i[r]=e[r])}),i}function Td(e,t){let i={},s=Object(e);return R(s,function(r,o){t.indexOf(o)===-1&&(i[o]=r)}),i}var Id=1e3;function dt(e,t){var i=this;t=t||Id,e.on(["render.shape","render.connection"],t,function(s,r){var o=s.type,a=r.element,l=r.gfx,c=r.attrs;if(i.canRender(a))return o==="render.shape"?i.drawShape(l,a,c):i.drawConnection(l,a,c)}),e.on(["render.getShapePath","render.getConnectionPath"],t,function(s,r){if(i.canRender(r))return s.type==="render.getShapePath"?i.getShapePath(r):i.getConnectionPath(r)})}dt.prototype.canRender=function(e){},dt.prototype.drawShape=function(e,t){},dt.prototype.drawConnection=function(e,t){},dt.prototype.getShapePath=function(e){},dt.prototype.getConnectionPath=function(e){};function j(e,t){var i=pe(e);return i&&typeof i.$instanceOf=="function"&&i.$instanceOf(t)}function Bd(e,t){return Yr(t,function(i){return j(e,i)})}function pe(e){return e&&e.businessObject||e}function jt(e){return e&&e.di}function Gt(e,t){return j(e,"bpmn:CallActivity")?!1:j(e,"bpmn:SubProcess")?(t=t||jt(e),t&&j(t,"bpmndi:BPMNPlane")?!0:t&&!!t.isExpanded):j(e,"bpmn:Participant")?!!pe(e).processRef:!0}function Xr(e){if(!(!j(e,"bpmn:Participant")&&!j(e,"bpmn:Lane"))){var t=jt(e).isHorizontal;return t===void 0?!0:t}}function xd(e){return e&&!!pe(e).triggeredByEvent}function Sd(e){return Ut(e)&&ai(e,"waypoints")}var rn={width:90,height:20},Zr=15;function Dd(e){return j(e,"bpmn:Event")||j(e,"bpmn:Gateway")||j(e,"bpmn:DataStoreReference")||j(e,"bpmn:DataObjectReference")||j(e,"bpmn:DataInput")||j(e,"bpmn:DataOutput")||j(e,"bpmn:SequenceFlow")||j(e,"bpmn:MessageFlow")||j(e,"bpmn:Group")}function Pd(e){var t=e.length/2-1,i=e[Math.floor(t)],s=e[Math.ceil(t+.01)],r=Md(e),o=Math.atan((s.y-i.y)/(s.x-i.x)),a=r.x,l=r.y;return Math.abs(o)<Math.PI/2?l-=Zr:a+=Zr,{x:a,y:l}}function Md(e){var t=e.length/2-1,i=e[Math.floor(t)],s=e[Math.ceil(t+.01)];return{x:i.x+(s.x-i.x)/2,y:i.y+(s.y-i.y)/2}}function Od(e){return e.waypoints?Pd(e.waypoints):j(e,"bpmn:Group")?{x:e.x+e.width/2,y:e.y+rn.height/2}:{x:e.x+e.width/2,y:e.y+e.height+rn.height/2}}function Vd(e,t){var i,s,r,o=e.label;return o&&o.bounds?(r=o.bounds,s={width:Math.max(rn.width,r.width),height:r.height},i={x:r.x+r.width/2,y:r.y+r.height/2}):(i=Od(t),s=rn),q({x:i.x-s.width/2,y:i.y-s.height/2},s)}function Rd(e){if(j(e,"bpmn:FlowElement")||j(e,"bpmn:Participant")||j(e,"bpmn:Lane")||j(e,"bpmn:SequenceFlow")||j(e,"bpmn:MessageFlow")||j(e,"bpmn:DataInput")||j(e,"bpmn:DataOutput"))return"name";if(j(e,"bpmn:TextAnnotation"))return"text";if(j(e,"bpmn:Group"))return"categoryValueRef"}function Ld(e){var t=e.categoryValueRef;return t&&t.value||""}function on(e){var t=e.businessObject,i=Rd(t);if(i)return i==="categoryValueRef"?Ld(t):t[i]||""}function vd(e,t){if(e.ownerDocument!==t.ownerDocument)try{return t.ownerDocument.importNode(e,!0)}catch{}return e}function $r(e,t){return t.appendChild(vd(e,t))}function he(e,t){return $r(t,e),e}var ss=2,eo={"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":ss,"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":ss,"text-anchor":1,"text-decoration":1,"text-rendering":1,"unicode-bidi":1,visibility:1,"word-spacing":1,"writing-mode":1};function Fd(e,t){return eo[t]?e.style[t]:e.getAttributeNS(null,t)}function to(e,t,i){var s=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r=eo[s];r?(r===ss&&typeof i=="number"&&(i=String(i)+"px"),e.style[s]=i):e.setAttributeNS(null,t,i)}function Qd(e,t){var i=Object.keys(t),s,r;for(s=0,r;r=i[s];s++)to(e,r,t[r])}function se(e,t,i){if(typeof t=="string")if(i!==void 0)to(e,t,i);else return Fd(e,t);else Qd(e,t);return e}const Ud=Object.prototype.toString;function Qe(e){return new Bt(e)}function Bt(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}Bt.prototype.add=function(e){return this.list.add(e),this},Bt.prototype.remove=function(e){return Ud.call(e)=="[object RegExp]"?this.removeMatching(e):(this.list.remove(e),this)},Bt.prototype.removeMatching=function(e){const t=this.array();for(let i=0;i<t.length;i++)e.test(t[i])&&this.remove(t[i]);return this},Bt.prototype.toggle=function(e,t){return typeof t<"u"?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this},Bt.prototype.array=function(){return Array.from(this.list)},Bt.prototype.has=Bt.prototype.contains=function(e){return this.list.contains(e)};function io(e){for(var t;t=e.firstChild;)e.removeChild(t);return e}var rs={svg:"http://www.w3.org/2000/svg"},no='<svg xmlns="'+rs.svg+'"';function so(e){var t=!1;e.substring(0,4)==="<svg"?e.indexOf(rs.svg)===-1&&(e=no+e.substring(4)):(e=no+">"+e+"</svg>",t=!0);var i=jd(e);if(!t)return i;for(var s=document.createDocumentFragment(),r=i.firstChild;r.firstChild;)s.appendChild(r.firstChild);return s}function jd(e){var t;return t=new DOMParser,t.async=!1,t.parseFromString(e,"text/xml")}function re(e,t){var i;return e=e.trim(),e.charAt(0)==="<"?(i=so(e).firstChild,i=document.importNode(i,!0)):i=document.createElementNS(rs.svg,e),t&&se(i,t),i}var os=null;function as(){return os===null&&(os=re("svg")),os}function ro(e,t){var i,s,r=Object.keys(t);for(i=0;s=r[i];i++)e[s]=t[s];return e}function Gd(e,t,i,s,r,o){var a=as().createSVGMatrix();switch(arguments.length){case 0:return a;case 1:return ro(a,e);case 6:return ro(a,{a:e,b:t,c:i,d:s,e:r,f:o})}}function xi(e){return e?as().createSVGTransformFromMatrix(e):as().createSVGTransform()}var oo=/([&<>]{1})/g,_d=/([&<>\n\r"]{1})/g,qd={"&":"&","<":"<",">":">",'"':"'"};function ls(e,t){function i(s,r){return qd[r]||r}return e.replace(t,i)}function ao(e,t){var i,s,r,o,a;switch(e.nodeType){case 3:t.push(ls(e.textContent,oo));break;case 1:if(t.push("<",e.tagName),e.hasAttributes())for(r=e.attributes,i=0,s=r.length;i<s;++i)o=r.item(i),t.push(" ",o.name,'="',ls(o.value,_d),'"');if(e.hasChildNodes()){for(t.push(">"),a=e.childNodes,i=0,s=a.length;i<s;++i)ao(a.item(i),t);t.push("</",e.tagName,">")}else t.push("/>");break;case 8:t.push("<!--",ls(e.nodeValue,oo),"-->");break;case 4:t.push("<![CDATA[",e.nodeValue,"]]>");break;default:throw new Error("unable to handle node "+e.nodeType)}return t}function Jd(e,t){var i=so(t);if(io(e),!!t){Kd(i)||(i=i.documentElement);for(var s=Hd(i.childNodes),r=0;r<s.length;r++)$r(s[r],e)}}function zd(e){for(var t=e.firstChild,i=[];t;)ao(t,i),t=t.nextSibling;return i.join("")}function Kd(e){return e.nodeName==="#document-fragment"}function lo(e,t){if(t!==void 0){try{Jd(e,t)}catch(i){throw new Error("error parsing SVG: "+i.message)}return e}else return zd(e)}function Hd(e){return Array.prototype.slice.call(e)}function Si(e){var t=e.parentNode;return t&&t.removeChild(e),e}function Yd(e,t){return t instanceof SVGMatrix?e.createSVGTransformFromMatrix(t):t}function Wd(e,t){var i,s;for(e.clear(),i=0;s=t[i];i++)e.appendItem(Yd(e,s))}function Di(e,t){var i=e.transform.baseVal;return t&&(Array.isArray(t)||(t=[t]),Wd(i,t)),i.consolidate()}function _t(e){return e.flat().join(",").replace(/,?([A-z]),?/g,"$1")}function Xd(e){return["M",e.x,e.y]}function cs(e){return["L",e.x,e.y]}function Zd(e,t,i){return["C",e.x,e.y,t.x,t.y,i.x,i.y]}function $d(e,t){const i=e.length,s=[Xd(e[0])];for(let r=1;r<i;r++){const o=e[r-1],a=e[r],l=e[r+1];if(!l||!t){s.push(cs(a));continue}const c=Math.min(t,ds(a.x-o.x,a.y-o.y),ds(l.x-a.x,l.y-a.y));if(!c){s.push(cs(a));continue}const m=an(a,o,c),u=an(a,o,c*.5),p=an(a,l,c),y=an(a,l,c*.5);s.push(cs(m)),s.push(Zd(u,y,p))}return s}function an(e,t,i){const s=t.x-e.x,r=t.y-e.y,o=ds(s,r),a=i/o;return{x:e.x+s*a,y:e.y+r*a}}function ds(e,t){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2))}function ps(e,t,i){Nt(t)&&(i=t,t=null),t||(t={});const s=re("path",t);return Nt(i)&&(s.dataset.cornerRadius=String(i)),co(s,e)}function co(e,t){const i=parseInt(e.dataset.cornerRadius,10)||0;return se(e,{d:_t($d(t,i))}),e}var hs="hsl(225, 10%, 15%)",ep="white";function ot(e,t){return Yr(e.eventDefinitions,function(i){return i.$type===t})}function tp(e){return e.$type==="bpmn:IntermediateThrowEvent"||e.$type==="bpmn:EndEvent"}function ip(e){var t=e.dataObjectRef;return e.isCollection||t&&t.isCollection}function H(e,t,i){var s=jt(e);return i||s.get("color:background-color")||s.get("bioc:fill")||t||ep}function P(e,t,i){var s=jt(e);return i||s.get("color:border-color")||s.get("bioc:stroke")||t||hs}function Pi(e,t,i,s){var r=jt(e),o=r.get("label");return s||o&&o.get("color:color")||t||P(e,i)}function np(e){var t=e.x+e.width/2,i=e.y+e.height/2,s=e.width/2,r=[["M",t,i],["m",0,-s],["a",s,s,0,1,1,0,2*s],["a",s,s,0,1,1,0,-2*s],["z"]];return _t(r)}function sp(e,t){var i=e.x,s=e.y,r=e.width,o=e.height,a=[["M",i+t,s],["l",r-t*2,0],["a",t,t,0,0,1,t,t],["l",0,o-t*2],["a",t,t,0,0,1,-t,t],["l",t*2-r,0],["a",t,t,0,0,1,-t,-t],["l",0,t*2-o],["a",t,t,0,0,1,t,-t],["z"]];return _t(a)}function rp(e){var t=e.width,i=e.height,s=e.x,r=e.y,o=t/2,a=i/2,l=[["M",s+o,r],["l",o,a],["l",-o,a],["l",-o,-a],["z"]];return _t(l)}function op(e){var t=e.x,i=e.y,s=e.width,r=e.height,o=[["M",t,i],["l",s,0],["l",0,r],["l",-s,0],["z"]];return _t(o)}function Mi(e,t={}){return{width:Je(e,t),height:Ve(e,t)}}function Je(e,t={}){return ai(t,"width")?t.width:e.width}function Ve(e,t={}){return ai(t,"height")?t.height:e.height}function ap(e,t){return t.forEach(function(i){i&&typeof i!="string"&&!Array.isArray(i)&&Object.keys(i).forEach(function(s){if(s!=="default"&&!(s in e)){var r=Object.getOwnPropertyDescriptor(i,s);Object.defineProperty(e,s,r.get?r:{enumerable:!0,get:function(){return i[s]}})}})}),Object.freeze(e)}const lp=Object.prototype.toString,cp=Object.prototype.hasOwnProperty;function dp(e){return e===void 0}function pp(e){return lp.call(e)==="[object Array]"}function hp(e,t){return cp.call(e,t)}function po(e,t){let i,s;if(dp(e))return;const r=pp(e)?mp:up;for(let o in e)if(hp(e,o)&&(i=e[o],s=t(i,r(o)),s===!1))return i}function up(e){return e}function mp(e){return Number(e)}function Ee(e,...t){const i=e.style;return po(t,function(s){!s||po(s,function(r,o){i[o]=r})}),e}function ho(e,t,i){return arguments.length==2?e.getAttribute(t):i===null?e.removeAttribute(t):(e.setAttribute(t,i),e)}const fp=Object.prototype.toString;function qt(e){return new xt(e)}function xt(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}xt.prototype.add=function(e){return this.list.add(e),this},xt.prototype.remove=function(e){return fp.call(e)=="[object RegExp]"?this.removeMatching(e):(this.list.remove(e),this)},xt.prototype.removeMatching=function(e){const t=this.array();for(let i=0;i<t.length;i++)e.test(t[i])&&this.remove(t[i]);return this},xt.prototype.toggle=function(e,t){return typeof t<"u"?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this},xt.prototype.array=function(){return Array.from(this.list)},xt.prototype.has=xt.prototype.contains=function(e){return this.list.contains(e)};function uo(e){for(var t;t=e.firstChild;)e.removeChild(t);return e}function mo(e,t,i){var s=i?e:e.parentNode;return s&&typeof s.closest=="function"&&s.closest(t)||null}var ln={},cn,us,ms;function fo(){cn=window.addEventListener?"addEventListener":"attachEvent",us=window.removeEventListener?"removeEventListener":"detachEvent",ms=cn!=="addEventListener"?"on":""}var gp=ln.bind=function(e,t,i,s){return cn||fo(),e[cn](ms+t,i,s||!1),i},yp=ln.unbind=function(e,t,i,s){return us||fo(),e[us](ms+t,i,s||!1),i},Jt=ap({__proto__:null,bind:gp,unbind:yp,default:ln},[ln]),go=["focus","blur"];function Ap(e,t,i,s,r){return go.indexOf(i)!==-1&&(r=!0),Jt.bind(e,i,function(o){var a=o.target||o.srcElement;o.delegateTarget=mo(a,t,!0),o.delegateTarget&&s.call(e,o)},r)}function kp(e,t,i,s){return go.indexOf(t)!==-1&&(s=!0),Jt.unbind(e,t,i,s)}var di={bind:Ap,unbind:kp},Ep=bp,yo=!1,dn;typeof document<"u"&&(dn=document.createElement("div"),dn.innerHTML=' <link/><table></table><a href="/a">a</a><input type="checkbox"/>',yo=!dn.getElementsByTagName("link").length,dn=void 0);var me={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:yo?[1,"X<div>","</div>"]:[0,"",""]};me.td=me.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],me.option=me.optgroup=[1,'<select multiple="multiple">',"</select>"],me.thead=me.tbody=me.colgroup=me.caption=me.tfoot=[1,"<table>","</table>"],me.polyline=me.ellipse=me.polygon=me.circle=me.text=me.line=me.path=me.rect=me.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"];function bp(e,t){if(typeof e!="string")throw new TypeError("String expected");t||(t=document);var i=/<([\w:]+)/.exec(e);if(!i)return t.createTextNode(e);e=e.replace(/^\s+|\s+$/g,"");var s=i[1];if(s=="body"){var c=t.createElement("html");return c.innerHTML=e,c.removeChild(c.lastChild)}var r=Object.prototype.hasOwnProperty.call(me,s)?me[s]:me._default,o=r[0],a=r[1],l=r[2],c=t.createElement("div");for(c.innerHTML=a+e+l;o--;)c=c.lastChild;if(c.firstChild==c.lastChild)return c.removeChild(c.firstChild);for(var m=t.createDocumentFragment();c.firstChild;)m.appendChild(c.removeChild(c.firstChild));return m}var Ue=Ep;function et(e,t){return t=t||document,t.querySelector(e)}function Cp(e,t){return t=t||document,t.querySelectorAll(e)}function pi(e){e.parentNode&&e.parentNode.removeChild(e)}function fs(e,t,i,s,r){var o=xi();o.setTranslate(t,i);var a=xi();a.setRotate(s||0,0,0);var l=xi();l.setScale(r||1,r||1),Di(e,[o,a,l])}function Ao(e,t,i){var s=xi();s.setTranslate(t,i),Di(e,s)}function wp(e,t){var i=xi();i.setRotate(t,0,0),Di(e,i)}function Np(e,t){return t={exports:{}},e(t,t.exports),t.exports}var Tp=Np(function(e){var t=e.exports=function(i,s){if(s||(s=16),i===void 0&&(i=128),i<=0)return"0";for(var r=Math.log(Math.pow(2,i))/Math.log(s),o=2;r===1/0;o*=2)r=Math.log(Math.pow(2,i/o))/Math.log(s)*o;for(var a=r-Math.floor(r),l="",o=0;o<Math.floor(r);o++){var c=Math.floor(Math.random()*s).toString(s);l=c+l}if(a){var m=Math.pow(s,a),c=Math.floor(Math.random()*m).toString(s);l=c+l}var u=parseInt(l,s);return u!==1/0&&u>=Math.pow(2,i)?t(i,s):l};t.rack=function(i,s,r){var o=function(l){var c=0;do{if(c++>10)if(r)i+=r;else throw new Error("too many ID collisions, use more bits");var m=t(i,s)}while(Object.hasOwnProperty.call(a,m));return a[m]=l,m},a=o.hats={};return o.get=function(l){return o.hats[l]},o.set=function(l,c){return o.hats[l]=c,o},o.bits=i||128,o.base=s||16,o}});function pt(e){if(!(this instanceof pt))return new pt(e);e=e||[128,36,1],this._seed=e.length?Tp.rack(e[0],e[1],e[2]):e}pt.prototype.next=function(e){return this._seed(e||!0)},pt.prototype.nextPrefixed=function(e,t){var i;do i=e+this.next(!0);while(this.assigned(i));return this.claim(i,t),i},pt.prototype.claim=function(e,t){this._seed.set(e,t||!0)},pt.prototype.assigned=function(e){return this._seed.get(e)||!1},pt.prototype.unclaim=function(e){delete this._seed.hats[e]},pt.prototype.clear=function(){var e=this._seed.hats,t;for(t in e)this.unclaim(t)};var Ip=new pt,Bp=10,pn=3,xp=1.5,hn=10,hi=.95,Sp=1,Dp=.25;function zt(e,t,i,s,r,o,a){dt.call(this,t,a);var l=e&&e.defaultFillColor,c=e&&e.defaultStrokeColor,m=e&&e.defaultLabelColor,u=Ip.next(),p={};function y(f){return i.computeStyle(f,{strokeLinecap:"round",strokeLinejoin:"round",stroke:hs,strokeWidth:2,fill:"white"})}function k(f){return i.computeStyle(f,["no-fill"],{strokeLinecap:"round",strokeLinejoin:"round",stroke:hs,strokeWidth:2})}function C(f,d){var{ref:h={x:0,y:0},scale:g=1,element:A}=d,b=re("marker",{id:f,viewBox:"0 0 20 20",refX:h.x,refY:h.y,markerWidth:20*g,markerHeight:20*g,orient:"auto"});he(b,A);var U=et("defs",r._svg);U||(U=re("defs"),he(r._svg,U)),he(U,b),p[f]=b}function v(f){return f.replace(/[^0-9a-zA-Z]+/g,"_")}function F(f,d,h){var g=f+"-"+v(d)+"-"+v(h)+"-"+u;return p[g]||z(g,f,d,h),"url(#"+g+")"}function z(f,d,h,g){if(d==="sequenceflow-end"){var A=re("path",{d:"M 1 5 L 11 10 L 1 15 Z",...y({fill:g,stroke:g,strokeWidth:1})});C(f,{element:A,ref:{x:11,y:10},scale:.5})}if(d==="messageflow-start"){var b=re("circle",{cx:6,cy:6,r:3.5,...y({fill:h,stroke:g,strokeWidth:1,strokeDasharray:[1e4,1]})});C(f,{element:b,ref:{x:6,y:6}})}if(d==="messageflow-end"){var U=re("path",{d:"m 1 5 l 0 -3 l 7 3 l -7 3 z",...y({fill:h,stroke:g,strokeWidth:1,strokeDasharray:[1e4,1]})});C(f,{element:U,ref:{x:8.5,y:5}})}if(d==="association-start"){var Z=re("path",{d:"M 11 5 L 1 10 L 11 15",...k({fill:"none",stroke:g,strokeWidth:1.5,strokeDasharray:[1e4,1]})});C(f,{element:Z,ref:{x:1,y:10},scale:.5})}if(d==="association-end"){var W=re("path",{d:"M 1 5 L 11 10 L 1 15",...k({fill:"none",stroke:g,strokeWidth:1.5,strokeDasharray:[1e4,1]})});C(f,{element:W,ref:{x:11,y:10},scale:.5})}if(d==="conditional-flow-marker"){var $=re("path",{d:"M 0 10 L 8 6 L 16 10 L 8 14 Z",...y({fill:h,stroke:g})});C(f,{element:$,ref:{x:-1,y:10},scale:.5})}if(d==="conditional-default-flow-marker"){var ye=re("path",{d:"M 6 4 L 10 16",...y({stroke:g})});C(f,{element:ye,ref:{x:0,y:10},scale:.5})}}function Q(f,d,h,g,A={}){Ut(g)&&(A=g,g=0),g=g||0,A=y(A);var b=d/2,U=h/2,Z=re("circle",{cx:b,cy:U,r:Math.round((d+h)/4-g),...A});return he(f,Z),Z}function I(f,d,h,g,A,b){Ut(A)&&(b=A,A=0),A=A||0,b=y(b);var U=re("rect",{x:A,y:A,width:d-A*2,height:h-A*2,rx:g,ry:g,...b});return he(f,U),U}function E(f,d,h,g){var A=d/2,b=h/2,U=[{x:A,y:0},{x:d,y:b},{x:A,y:h},{x:0,y:b}],Z=U.map(function($){return $.x+","+$.y}).join(" ");g=y(g);var W=re("polygon",{...g,points:Z});return he(f,W),W}function x(f,d,h,g){h=k(h);var A=ps(d,h,g);return he(f,A),A}function S(f,d,h){return x(f,d,h,5)}function D(f,d,h){h=k(h);var g=re("path",{...h,d});return he(f,g),g}function w(f,d,h,g){return D(d,h,q({"data-marker":f},g))}function O(f){return de[f]}function B(f){return function(d,h,g){return O(f)(d,h,g)}}var V={"bpmn:MessageEventDefinition":function(f,d,h={},g){var A=s.getScaledPath("EVENT_MESSAGE",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:d.width,containerHeight:d.height,position:{mx:.235,my:.315}}),b=g?P(d,c,h.stroke):H(d,l,h.fill),U=g?H(d,l,h.fill):P(d,c,h.stroke),Z=D(f,A,{fill:b,stroke:U,strokeWidth:1});return Z},"bpmn:TimerEventDefinition":function(f,d,h={}){var g=Q(f,d.width,d.height,.2*d.height,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:2}),A=s.getScaledPath("EVENT_TIMER_WH",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:d.width,containerHeight:d.height,position:{mx:.5,my:.5}});D(f,A,{stroke:P(d,c,h.stroke),strokeWidth:2});for(var b=0;b<12;b++){var U=s.getScaledPath("EVENT_TIMER_LINE",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:d.width,containerHeight:d.height,position:{mx:.5,my:.5}}),Z=d.width/2,W=d.height/2;D(f,U,{strokeWidth:1,stroke:P(d,c,h.stroke),transform:"rotate("+b*30+","+W+","+Z+")"})}return g},"bpmn:EscalationEventDefinition":function(f,d,h={},g){var A=s.getScaledPath("EVENT_ESCALATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:d.width,containerHeight:d.height,position:{mx:.5,my:.2}}),b=g?P(d,c,h.stroke):H(d,l,h.fill);return D(f,A,{fill:b,stroke:P(d,c,h.stroke),strokeWidth:1})},"bpmn:ConditionalEventDefinition":function(f,d,h={}){var g=s.getScaledPath("EVENT_CONDITIONAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:d.width,containerHeight:d.height,position:{mx:.5,my:.222}});return D(f,g,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:1})},"bpmn:LinkEventDefinition":function(f,d,h={},g){var A=s.getScaledPath("EVENT_LINK",{xScaleFactor:1,yScaleFactor:1,containerWidth:d.width,containerHeight:d.height,position:{mx:.57,my:.263}}),b=g?P(d,c,h.stroke):H(d,l,h.fill);return D(f,A,{fill:b,stroke:P(d,c,h.stroke),strokeWidth:1})},"bpmn:ErrorEventDefinition":function(f,d,h={},g){var A=s.getScaledPath("EVENT_ERROR",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:d.width,containerHeight:d.height,position:{mx:.2,my:.722}}),b=g?P(d,c,h.stroke):H(d,l,h.fill);return D(f,A,{fill:b,stroke:P(d,c,h.stroke),strokeWidth:1})},"bpmn:CancelEventDefinition":function(f,d,h={},g){var A=s.getScaledPath("EVENT_CANCEL_45",{xScaleFactor:1,yScaleFactor:1,containerWidth:d.width,containerHeight:d.height,position:{mx:.638,my:-.055}}),b=g?P(d,c,h.stroke):"none",U=D(f,A,{fill:b,stroke:P(d,c,h.stroke),strokeWidth:1});return wp(U,45),U},"bpmn:CompensateEventDefinition":function(f,d,h={},g){var A=s.getScaledPath("EVENT_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:d.width,containerHeight:d.height,position:{mx:.22,my:.5}}),b=g?P(d,c,h.stroke):H(d,l,h.fill);return D(f,A,{fill:b,stroke:P(d,c,h.stroke),strokeWidth:1})},"bpmn:SignalEventDefinition":function(f,d,h={},g){var A=s.getScaledPath("EVENT_SIGNAL",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:d.width,containerHeight:d.height,position:{mx:.5,my:.2}}),b=g?P(d,c,h.stroke):H(d,l,h.fill);return D(f,A,{strokeWidth:1,fill:b,stroke:P(d,c,h.stroke)})},"bpmn:MultipleEventDefinition":function(f,d,h={},g){var A=s.getScaledPath("EVENT_MULTIPLE",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:d.width,containerHeight:d.height,position:{mx:.222,my:.36}}),b=g?P(d,c,h.stroke):H(d,l,h.fill);return D(f,A,{fill:b,strokeWidth:1})},"bpmn:ParallelMultipleEventDefinition":function(f,d,h={}){var g=s.getScaledPath("EVENT_PARALLEL_MULTIPLE",{xScaleFactor:1.2,yScaleFactor:1.2,containerWidth:d.width,containerHeight:d.height,position:{mx:.458,my:.194}});return D(f,g,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:1})},"bpmn:TerminateEventDefinition":function(f,d,h={}){var g=Q(f,d.width,d.height,8,{fill:P(d,c,h.stroke),stroke:P(d,c,h.stroke),strokeWidth:4});return g}};function M(f,d,h={}){var g=pe(f),A=tp(g);return g.get("eventDefinitions")&&g.get("eventDefinitions").length>1?g.get("parallelMultiple")?V["bpmn:ParallelMultipleEventDefinition"](d,f,h,A):V["bpmn:MultipleEventDefinition"](d,f,h,A):ot(g,"bpmn:MessageEventDefinition")?V["bpmn:MessageEventDefinition"](d,f,h,A):ot(g,"bpmn:TimerEventDefinition")?V["bpmn:TimerEventDefinition"](d,f,h,A):ot(g,"bpmn:ConditionalEventDefinition")?V["bpmn:ConditionalEventDefinition"](d,f,h,A):ot(g,"bpmn:SignalEventDefinition")?V["bpmn:SignalEventDefinition"](d,f,h,A):ot(g,"bpmn:EscalationEventDefinition")?V["bpmn:EscalationEventDefinition"](d,f,h,A):ot(g,"bpmn:LinkEventDefinition")?V["bpmn:LinkEventDefinition"](d,f,h,A):ot(g,"bpmn:ErrorEventDefinition")?V["bpmn:ErrorEventDefinition"](d,f,h,A):ot(g,"bpmn:CancelEventDefinition")?V["bpmn:CancelEventDefinition"](d,f,h,A):ot(g,"bpmn:CompensateEventDefinition")?V["bpmn:CompensateEventDefinition"](d,f,h,A):ot(g,"bpmn:TerminateEventDefinition")?V["bpmn:TerminateEventDefinition"](d,f,h,A):null}var G={ParticipantMultiplicityMarker:function(f,d,h={}){var g=Je(d,h),A=Ve(d,h),b=s.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:g,containerHeight:A,position:{mx:(g/2-6)/g,my:(A-15)/A}});w("participant-multiplicity",f,b,{strokeWidth:2,fill:H(d,l,h.fill),stroke:P(d,c,h.stroke)})},SubProcessMarker:function(f,d,h={}){var g=I(f,14,14,0,{strokeWidth:1,fill:H(d,l,h.fill),stroke:P(d,c,h.stroke)});Ao(g,d.width/2-7.5,d.height-20);var A=s.getScaledPath("MARKER_SUB_PROCESS",{xScaleFactor:1.5,yScaleFactor:1.5,containerWidth:d.width,containerHeight:d.height,position:{mx:(d.width/2-7.5)/d.width,my:(d.height-20)/d.height}});w("sub-process",f,A,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke)})},ParallelMarker:function(f,d,h){var g=Je(d,h),A=Ve(d,h),b=s.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:g,containerHeight:A,position:{mx:(g/2+h.parallel)/g,my:(A-20)/A}});w("parallel",f,b,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke)})},SequentialMarker:function(f,d,h){var g=s.getScaledPath("MARKER_SEQUENTIAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:d.width,containerHeight:d.height,position:{mx:(d.width/2+h.seq)/d.width,my:(d.height-19)/d.height}});w("sequential",f,g,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke)})},CompensationMarker:function(f,d,h){var g=s.getScaledPath("MARKER_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:d.width,containerHeight:d.height,position:{mx:(d.width/2+h.compensation)/d.width,my:(d.height-13)/d.height}});w("compensation",f,g,{strokeWidth:1,fill:H(d,l,h.fill),stroke:P(d,c,h.stroke)})},LoopMarker:function(f,d,h){var g=Je(d,h),A=Ve(d,h),b=s.getScaledPath("MARKER_LOOP",{xScaleFactor:1,yScaleFactor:1,containerWidth:g,containerHeight:A,position:{mx:(g/2+h.loop)/g,my:(A-7)/A}});w("loop",f,b,{strokeWidth:1.5,fill:"none",stroke:P(d,c,h.stroke),strokeMiterlimit:.5})},AdhocMarker:function(f,d,h){var g=Je(d,h),A=Ve(d,h),b=s.getScaledPath("MARKER_ADHOC",{xScaleFactor:1,yScaleFactor:1,containerWidth:g,containerHeight:A,position:{mx:(g/2+h.adhoc)/g,my:(A-15)/A}});w("adhoc",f,b,{strokeWidth:1,fill:P(d,c,h.stroke),stroke:P(d,c,h.stroke)})}};function K(f,d,h,g){G[f](d,h,g)}function it(f,d,h,g={}){g={fill:g.fill,stroke:g.stroke,width:Je(d,g),height:Ve(d,g)};var A=pe(d),b=h&&h.includes("SubProcessMarker");b?g={...g,seq:-21,parallel:-22,compensation:-42,loop:-18,adhoc:10}:g={...g,seq:-5,parallel:-6,compensation:-27,loop:0,adhoc:10},R(h,function(W){K(W,f,d,g)}),A.get("isForCompensation")&&K("CompensationMarker",f,d,g),j(A,"bpmn:AdHocSubProcess")&&K("AdhocMarker",f,d,g);var U=A.get("loopCharacteristics"),Z=U&&U.get("isSequential");U&&(Z===void 0&&K("LoopMarker",f,d,g),Z===!1&&K("ParallelMarker",f,d,g),Z===!0&&K("SequentialMarker",f,d,g))}function ie(f,d,h={}){h=q({size:{width:100}},h);var g=o.createText(d||"",h);return Qe(g).add("djs-label"),he(f,g),g}function X(f,d,h,g={}){var A=pe(d),b=Mi({x:d.x,y:d.y,width:d.width,height:d.height},g);return ie(f,A.name,{align:h,box:b,padding:7,style:{fill:Pi(d,m,c,g.stroke)}})}function lt(f,d,h={}){var g={width:90,height:30,x:d.width/2+d.x,y:d.height/2+d.y};return ie(f,on(d),{box:g,fitBox:!0,style:q({},o.getExternalStyle(),{fill:Pi(d,m,c,h.stroke)})})}function ct(f,d,h,g={}){var A=Xr(h),b=ie(f,d,{box:{height:30,width:A?Ve(h,g):Je(h,g)},align:"center-middle",style:{fill:Pi(h,m,c,g.stroke)}});if(A){var U=-1*Ve(h,g);fs(b,0,-U,270)}}function ge(f,d,h={}){var{width:g,height:A}=Mi(d,h);return I(f,g,A,hn,{...h,fill:H(d,l,h.fill),fillOpacity:hi,stroke:P(d,c,h.stroke)})}function ft(f,d,h={}){var g=pe(d),A=H(d,l,h.fill),b=P(d,c,h.stroke);return(g.get("associationDirection")==="One"||g.get("associationDirection")==="Both")&&(h.markerEnd=F("association-end",A,b)),g.get("associationDirection")==="Both"&&(h.markerStart=F("association-start",A,b)),h=Y(h,["markerStart","markerEnd"]),S(f,d.waypoints,{...h,stroke:b,strokeDasharray:"0, 5"})}function gt(f,d,h={}){var g=H(d,l,h.fill),A=P(d,c,h.stroke),b=s.getScaledPath("DATA_OBJECT_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:d.width,containerHeight:d.height,position:{mx:.474,my:.296}}),U=D(f,b,{fill:g,fillOpacity:hi,stroke:A}),Z=pe(d);if(ip(Z)){var W=s.getScaledPath("DATA_OBJECT_COLLECTION_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:d.width,containerHeight:d.height,position:{mx:.33,my:(d.height-18)/d.height}});D(f,W,{strokeWidth:2,fill:g,stroke:A})}return U}function N(f,d,h={}){return Q(f,d.width,d.height,{fillOpacity:hi,...h,fill:H(d,l,h.fill),stroke:P(d,c,h.stroke)})}function T(f,d,h={}){return E(f,d.width,d.height,{fill:H(d,l,h.fill),fillOpacity:hi,stroke:P(d,c,h.stroke)})}function L(f,d,h={}){var g=I(f,Je(d,h),Ve(d,h),0,{fill:H(d,l,h.fill),fillOpacity:h.fillOpacity||hi,stroke:P(d,c,h.stroke),strokeWidth:1.5}),A=pe(d);if(j(A,"bpmn:Lane")){var b=A.get("name");ct(f,b,d,h)}return g}function ce(f,d,h={}){var g=ge(f,d,h);xd(d)&&se(g,{strokeDasharray:"0, 5.5",strokeWidth:2.5});var A=Gt(d);return X(f,d,A?"center-top":"center-middle",h),A?it(f,d,void 0,h):it(f,d,["SubProcessMarker"],h),g}function ke(f,d,h={}){var g=ge(f,d,h);return X(f,d,"center-middle",h),it(f,d,void 0,h),g}var de=this.handlers={"bpmn:AdHocSubProcess":function(f,d,h={}){return Gt(d)?h=Y(h,["fill","stroke","width","height"]):h=Y(h,["fill","stroke"]),ce(f,d,h)},"bpmn:Association":function(f,d,h={}){return h=Y(h,["fill","stroke"]),ft(f,d,h)},"bpmn:BoundaryEvent":function(f,d,h={}){var{renderIcon:g=!0}=h;h=Y(h,["fill","stroke"]);var A=pe(d),b=A.get("cancelActivity");h={strokeWidth:1.5,fill:H(d,l,h.fill),fillOpacity:Sp,stroke:P(d,c,h.stroke)},b||(h.strokeDasharray="6");var U=N(f,d,h);return Q(f,d.width,d.height,pn,{...h,fill:"none"}),g&&M(d,f,h),U},"bpmn:BusinessRuleTask":function(f,d,h={}){h=Y(h,["fill","stroke"]);var g=ke(f,d,h),A=s.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN",{abspos:{x:8,y:8}}),b=D(f,A);se(b,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:1});var U=s.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER",{abspos:{x:8,y:8}}),Z=D(f,U);return se(Z,{fill:P(d,c,h.stroke),stroke:P(d,c,h.stroke),strokeWidth:1}),g},"bpmn:CallActivity":function(f,d,h={}){return h=Y(h,["fill","stroke"]),ce(f,d,{strokeWidth:5,...h})},"bpmn:ComplexGateway":function(f,d,h={}){h=Y(h,["fill","stroke"]);var g=T(f,d,h),A=s.getScaledPath("GATEWAY_COMPLEX",{xScaleFactor:.5,yScaleFactor:.5,containerWidth:d.width,containerHeight:d.height,position:{mx:.46,my:.26}});return D(f,A,{fill:P(d,c,h.stroke),stroke:P(d,c,h.stroke),strokeWidth:1}),g},"bpmn:DataInput":function(f,d,h={}){h=Y(h,["fill","stroke"]);var g=s.getRawPath("DATA_ARROW"),A=gt(f,d,h);return D(f,g,{fill:"none",stroke:P(d,c,h.stroke),strokeWidth:1}),A},"bpmn:DataInputAssociation":function(f,d,h={}){return h=Y(h,["fill","stroke"]),ft(f,d,{...h,markerEnd:F("association-end",H(d,l,h.fill),P(d,c,h.stroke))})},"bpmn:DataObject":function(f,d,h={}){return h=Y(h,["fill","stroke"]),gt(f,d,h)},"bpmn:DataObjectReference":B("bpmn:DataObject"),"bpmn:DataOutput":function(f,d,h={}){h=Y(h,["fill","stroke"]);var g=s.getRawPath("DATA_ARROW"),A=gt(f,d,h);return D(f,g,{strokeWidth:1,fill:H(d,l,h.fill),stroke:P(d,c,h.stroke)}),A},"bpmn:DataOutputAssociation":function(f,d,h={}){return h=Y(h,["fill","stroke"]),ft(f,d,{...h,markerEnd:F("association-end",H(d,l,h.fill),P(d,c,h.stroke))})},"bpmn:DataStoreReference":function(f,d,h={}){h=Y(h,["fill","stroke"]);var g=s.getScaledPath("DATA_STORE",{xScaleFactor:1,yScaleFactor:1,containerWidth:d.width,containerHeight:d.height,position:{mx:0,my:.133}});return D(f,g,{fill:H(d,l,h.fill),fillOpacity:hi,stroke:P(d,c,h.stroke),strokeWidth:2})},"bpmn:EndEvent":function(f,d,h={}){var{renderIcon:g=!0}=h;h=Y(h,["fill","stroke"]);var A=N(f,d,{...h,strokeWidth:4});return g&&M(d,f,h),A},"bpmn:EventBasedGateway":function(f,d,h={}){h=Y(h,["fill","stroke"]);var g=pe(d),A=T(f,d,h);Q(f,d.width,d.height,d.height*.2,{fill:H(d,"none",h.fill),stroke:P(d,c,h.stroke),strokeWidth:1});var b=g.get("eventGatewayType"),U=!!g.get("instantiate");function Z(){var $=s.getScaledPath("GATEWAY_EVENT_BASED",{xScaleFactor:.18,yScaleFactor:.18,containerWidth:d.width,containerHeight:d.height,position:{mx:.36,my:.44}});D(f,$,{fill:"none",stroke:P(d,c,h.stroke),strokeWidth:2})}if(b==="Parallel"){var W=s.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:d.width,containerHeight:d.height,position:{mx:.474,my:.296}});D(f,W,{fill:"none",stroke:P(d,c,h.stroke),strokeWidth:1})}else b==="Exclusive"&&(U||Q(f,d.width,d.height,d.height*.26,{fill:"none",stroke:P(d,c,h.stroke),strokeWidth:1}),Z());return A},"bpmn:ExclusiveGateway":function(f,d,h={}){h=Y(h,["fill","stroke"]);var g=T(f,d,h),A=s.getScaledPath("GATEWAY_EXCLUSIVE",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:d.width,containerHeight:d.height,position:{mx:.32,my:.3}}),b=jt(d);return b.get("isMarkerVisible")&&D(f,A,{fill:P(d,c,h.stroke),stroke:P(d,c,h.stroke),strokeWidth:1}),g},"bpmn:Gateway":function(f,d,h={}){return h=Y(h,["fill","stroke"]),T(f,d,h)},"bpmn:Group":function(f,d,h={}){return h=Y(h,["fill","stroke","width","height"]),I(f,d.width,d.height,hn,{stroke:P(d,c,h.stroke),strokeWidth:1.5,strokeDasharray:"10, 6, 0, 6",fill:"none",pointerEvents:"none",width:Je(d,h),height:Ve(d,h)})},"bpmn:InclusiveGateway":function(f,d,h={}){h=Y(h,["fill","stroke"]);var g=T(f,d,h);return Q(f,d.width,d.height,d.height*.24,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:2.5}),g},"bpmn:IntermediateEvent":function(f,d,h={}){var{renderIcon:g=!0}=h;h=Y(h,["fill","stroke"]);var A=N(f,d,{...h,strokeWidth:1.5});return Q(f,d.width,d.height,pn,{fill:"none",stroke:P(d,c,h.stroke),strokeWidth:1.5}),g&&M(d,f,h),A},"bpmn:IntermediateCatchEvent":B("bpmn:IntermediateEvent"),"bpmn:IntermediateThrowEvent":B("bpmn:IntermediateEvent"),"bpmn:Lane":function(f,d,h={}){return h=Y(h,["fill","stroke","width","height"]),L(f,d,{...h,fillOpacity:Dp})},"bpmn:ManualTask":function(f,d,h={}){h=Y(h,["fill","stroke"]);var g=ke(f,d,h),A=s.getScaledPath("TASK_TYPE_MANUAL",{abspos:{x:17,y:15}});return D(f,A,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:.5}),g},"bpmn:MessageFlow":function(f,d,h={}){h=Y(h,["fill","stroke"]);var g=pe(d),A=jt(d),b=H(d,l,h.fill),U=P(d,c,h.stroke),Z=S(f,d.waypoints,{markerEnd:F("messageflow-end",b,U),markerStart:F("messageflow-start",b,U),stroke:U,strokeDasharray:"10, 11",strokeWidth:1.5});if(g.get("messageRef")){var W=Z.getPointAtLength(Z.getTotalLength()/2),$=s.getScaledPath("MESSAGE_FLOW_MARKER",{abspos:{x:W.x,y:W.y}}),ye={strokeWidth:1};A.get("messageVisibleKind")==="initiating"?(ye.fill=b,ye.stroke=U):(ye.fill=U,ye.stroke=b);var ee=D(f,$,ye),Ot=g.get("messageRef"),xn=Ot.get("name"),Le=ie(f,xn,{align:"center-top",fitBox:!0,style:{fill:U}}),_=ee.getBBox(),te=Le.getBBox(),bb=W.x-te.width/2,Cb=W.y+_.height/2+Bp;fs(Le,bb,Cb,0)}return Z},"bpmn:ParallelGateway":function(f,d,h={}){h=Y(h,["fill","stroke"]);var g=T(f,d,h),A=s.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.6,yScaleFactor:.6,containerWidth:d.width,containerHeight:d.height,position:{mx:.46,my:.2}});return D(f,A,{fill:P(d,c,h.stroke),stroke:P(d,c,h.stroke),strokeWidth:1}),g},"bpmn:Participant":function(f,d,h={}){h=Y(h,["fill","stroke","width","height"]);var g=L(f,d,h),A=Gt(d),b=Xr(d),U=pe(d),Z=U.get("name");if(A){var W=b?[{x:30,y:0},{x:30,y:Ve(d,h)}]:[{x:0,y:30},{x:Je(d,h),y:30}];x(f,W,{stroke:P(d,c,h.stroke),strokeWidth:xp}),ct(f,Z,d,h)}else{var $=Mi(d,h);b||($.height=Je(d,h),$.width=Ve(d,h));var ye=ie(f,Z,{box:$,align:"center-middle",style:{fill:Pi(d,m,c,h.stroke)}});if(!b){var ee=-1*Ve(d,h);fs(ye,0,-ee,270)}}return U.get("participantMultiplicity")&&K("ParticipantMultiplicityMarker",f,d,h),g},"bpmn:ReceiveTask":function(f,d,h={}){h=Y(h,["fill","stroke"]);var g=pe(d),A=ke(f,d,h),b;return g.get("instantiate")?(Q(f,28,28,20*.22,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:1}),b=s.getScaledPath("TASK_TYPE_INSTANTIATING_SEND",{abspos:{x:7.77,y:9.52}})):b=s.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:21,containerHeight:14,position:{mx:.3,my:.4}}),D(f,b,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:1}),A},"bpmn:ScriptTask":function(f,d,h={}){h=Y(h,["fill","stroke"]);var g=ke(f,d,h),A=s.getScaledPath("TASK_TYPE_SCRIPT",{abspos:{x:15,y:20}});return D(f,A,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:1}),g},"bpmn:SendTask":function(f,d,h={}){h=Y(h,["fill","stroke"]);var g=ke(f,d,h),A=s.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:1,yScaleFactor:1,containerWidth:21,containerHeight:14,position:{mx:.285,my:.357}});return D(f,A,{fill:P(d,c,h.stroke),stroke:H(d,l,h.fill),strokeWidth:1}),g},"bpmn:SequenceFlow":function(f,d,h={}){h=Y(h,["fill","stroke"]);var g=H(d,l,h.fill),A=P(d,c,h.stroke),b=S(f,d.waypoints,{markerEnd:F("sequenceflow-end",g,A),stroke:A}),U=pe(d),{source:Z}=d;if(Z){var W=pe(Z);U.get("conditionExpression")&&j(W,"bpmn:Activity")&&se(b,{markerStart:F("conditional-flow-marker",g,A)}),W.get("default")&&(j(W,"bpmn:Gateway")||j(W,"bpmn:Activity"))&&W.get("default")===U&&se(b,{markerStart:F("conditional-default-flow-marker",g,A)})}return b},"bpmn:ServiceTask":function(f,d,h={}){h=Y(h,["fill","stroke"]);var g=ke(f,d,h);Q(f,10,10,{fill:H(d,l,h.fill),stroke:"none",transform:"translate(6, 6)"});var A=s.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:12,y:18}});D(f,A,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:1}),Q(f,10,10,{fill:H(d,l,h.fill),stroke:"none",transform:"translate(11, 10)"});var b=s.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:17,y:22}});return D(f,b,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:1}),g},"bpmn:StartEvent":function(f,d,h={}){var{renderIcon:g=!0}=h;h=Y(h,["fill","stroke"]);var A=pe(d);A.get("isInterrupting")||(h={...h,strokeDasharray:"6"});var b=N(f,d,h);return g&&M(d,f,h),b},"bpmn:SubProcess":function(f,d,h={}){return Gt(d)?h=Y(h,["fill","stroke","width","height"]):h=Y(h,["fill","stroke"]),ce(f,d,h)},"bpmn:Task":function(f,d,h={}){return h=Y(h,["fill","stroke"]),ke(f,d,h)},"bpmn:TextAnnotation":function(f,d,h={}){h=Y(h,["fill","stroke","width","height"]);var{width:g,height:A}=Mi(d,h),b=I(f,g,A,0,0,{fill:"none",stroke:"none"}),U=s.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:g,containerHeight:A,position:{mx:0,my:0}});D(f,U,{stroke:P(d,c,h.stroke)});var Z=pe(d),W=Z.get("text")||"";return ie(f,W,{align:"left-top",box:Mi(d,h),padding:7,style:{fill:Pi(d,m,c,h.stroke)}}),b},"bpmn:Transaction":function(f,d,h={}){Gt(d)?h=Y(h,["fill","stroke","width","height"]):h=Y(h,["fill","stroke"]);var g=ce(f,d,{strokeWidth:1.5,...h}),A=i.style(["no-fill","no-events"],{stroke:P(d,c,h.stroke),strokeWidth:1.5}),b=Gt(d);return b||(h={}),I(f,Je(d,h),Ve(d,h),hn-pn,pn,A),g},"bpmn:UserTask":function(f,d,h={}){h=Y(h,["fill","stroke"]);var g=ke(f,d,h),A=15,b=12,U=s.getScaledPath("TASK_TYPE_USER_1",{abspos:{x:A,y:b}});D(f,U,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:.5});var Z=s.getScaledPath("TASK_TYPE_USER_2",{abspos:{x:A,y:b}});D(f,Z,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:.5});var W=s.getScaledPath("TASK_TYPE_USER_3",{abspos:{x:A,y:b}});return D(f,W,{fill:P(d,c,h.stroke),stroke:P(d,c,h.stroke),strokeWidth:.5}),g},label:function(f,d,h={}){return lt(f,d,h)}};this._drawPath=D,this._renderer=O}rt(zt,dt),zt.$inject=["config.bpmnRenderer","eventBus","styles","pathMap","canvas","textRenderer"],zt.prototype.canRender=function(e){return j(e,"bpmn:BaseElement")},zt.prototype.drawShape=function(e,t,i={}){var{type:s}=t,r=this._renderer(s);return r(e,t,i)},zt.prototype.drawConnection=function(e,t,i={}){var{type:s}=t,r=this._renderer(s);return r(e,t,i)},zt.prototype.getShapePath=function(e){return j(e,"bpmn:Event")?np(e):j(e,"bpmn:Activity")?sp(e,hn):j(e,"bpmn:Gateway")?rp(e):op(e)};function Y(e,t=[]){return t.reduce((i,s)=>(e[s]&&(i[s]=e[s]),i),{})}var Pp=0,Mp={width:150,height:50};function Op(e){var t=e.split("-");return{horizontal:t[0]||"center",vertical:t[1]||"top"}}function Vp(e){return Ut(e)?q({top:0,left:0,right:0,bottom:0},e):{top:e,left:e,right:e,bottom:e}}function Rp(e,t){t.textContent=e;var i;try{var s,r=e==="";return t.textContent=r?"dummy":e,i=t.getBBox(),s={width:i.width+i.x*2,height:i.height},r&&(s.width=0),s}catch{return{width:0,height:0}}}function Lp(e,t,i){for(var s=e.shift(),r=s,o;;){if(o=Rp(r,i),o.width=r?o.width:0,r===" "||r===""||o.width<Math.round(t)||r.length<2)return vp(e,r,s,o);r=Qp(r,o.width,t)}}function vp(e,t,i,s){if(t.length<i.length){var r=i.slice(t.length).trim();e.unshift(r)}return{width:s.width,height:s.height,text:t}}var ko="\xAD";function Fp(e,t){var i=e.split(/(\s|-|\u00AD)/g),s,r=[],o=0;if(i.length>1)for(;s=i.shift();)if(s.length+o<t)r.push(s),o+=s.length;else{(s==="-"||s===ko)&&r.pop();break}var a=r[r.length-1];return a&&a===ko&&(r[r.length-1]="-"),r.join("")}function Qp(e,t,i){var s=Math.max(e.length*(i/t),1),r=Fp(e,s);return r||(r=e.slice(0,Math.max(Math.round(s-1),1))),r}function Up(){var e=document.getElementById("helper-svg");return e||(e=re("svg"),se(e,{id:"helper-svg"}),Ee(e,{visibility:"hidden",position:"fixed",width:0,height:0}),document.body.appendChild(e)),e}function un(e){this._config=q({},{size:Mp,padding:Pp,style:{},align:"center-top"},e||{})}un.prototype.createText=function(e,t){return this.layoutText(e,t).element},un.prototype.getDimensions=function(e,t){return this.layoutText(e,t).dimensions},un.prototype.layoutText=function(e,t){var i=q({},this._config.size,t.box),s=q({},this._config.style,t.style),r=Op(t.align||this._config.align),o=Vp(t.padding!==void 0?t.padding:this._config.padding),a=t.fitBox||!1,l=jp(s),c=e.split(/\u00AD?\r?\n/),m=[],u=i.width-o.left-o.right,p=re("text");se(p,{x:0,y:0}),se(p,s);var y=Up();for(he(y,p);c.length;)m.push(Lp(c,u,p));r.vertical==="middle"&&(o.top=o.bottom=0);var k=ci(m,function(Q,I,E){return Q+(l||I.height)},0)+o.top+o.bottom,C=ci(m,function(Q,I,E){return I.width>Q?I.width:Q},0),v=o.top;r.vertical==="middle"&&(v+=(i.height-k)/2),v-=(l||m[0].height)/4;var F=re("text");se(F,s),R(m,function(Q){var I;switch(v+=l||Q.height,r.horizontal){case"left":I=o.left;break;case"right":I=(a?C:u)-o.right-Q.width;break;default:I=Math.max(((a?C:u)-Q.width)/2+o.left,0)}var E=re("tspan");se(E,{x:I,y:v}),E.textContent=Q.text,he(F,E)}),Si(p);var z={width:C,height:k};return{dimensions:z,element:F}};function jp(e){if("fontSize"in e&&"lineHeight"in e)return e.lineHeight*parseInt(e.fontSize,10)}var Gp=12,_p=1.2,qp=30;function Eo(e){var t=q({fontFamily:"Arial, sans-serif",fontSize:Gp,fontWeight:"normal",lineHeight:_p},e&&e.defaultStyle||{}),i=parseInt(t.fontSize,10)-1,s=q({},t,{fontSize:i},e&&e.externalStyle||{}),r=new un({style:t});this.getExternalLabelBounds=function(o,a){var l=r.getDimensions(a,{box:{width:90,height:30},style:s});return{x:Math.round(o.x+o.width/2-l.width/2),y:Math.round(o.y),width:Math.ceil(l.width),height:Math.ceil(l.height)}},this.getTextAnnotationBounds=function(o,a){var l=r.getDimensions(a,{box:o,style:t,align:"left-top",padding:5});return{x:o.x,y:o.y,width:o.width,height:Math.max(qp,Math.round(l.height))}},this.createText=function(o,a){return r.createText(o,a||{})},this.getDefaultStyle=function(){return t},this.getExternalStyle=function(){return s}}Eo.$inject=["config.textRenderer"];function Jp(){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(t){return this.pathMap[t].d},this.getScaledPath=function(t,i){var s=this.pathMap[t],r,o;i.abspos?(r=i.abspos.x,o=i.abspos.y):(r=i.containerWidth*i.position.mx,o=i.containerHeight*i.position.my);var a={};if(i.position){for(var l=i.containerHeight/s.height*i.yScaleFactor,c=i.containerWidth/s.width*i.xScaleFactor,m=0;m<s.heightElements.length;m++)a["y"+m]=s.heightElements[m]*l;for(var u=0;u<s.widthElements.length;u++)a["x"+u]=s.widthElements[u]*c}var p=Yp(s.d,{mx:r,my:o,e:a});return p}}var zp=/\{([^{}]+)\}/g,Kp=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g;function Hp(e,t,i){var s=i;return t.replace(Kp,function(r,o,a,l,c){o=o||l,s&&(o in s&&(s=s[o]),typeof s=="function"&&c&&(s=s()))}),s=(s==null||s==i?e:s)+"",s}function Yp(e,t){return String(e).replace(zp,function(i,s){return Hp(i,s,t)})}const Wp={__init__:["bpmnRenderer"],bpmnRenderer:["type",zt],textRenderer:["type",Eo],pathMap:["type",Jp]};function Xp(e,t){return t=t||{},e.replace(/{([^}]+)}/g,function(i,s){return t[s]||"{"+s+"}"})}const bo={translate:["value",Xp]};function Zp(e){return{x:Math.round(e.x),y:Math.round(e.y)}}function gs(e){return{top:e.y,right:e.x+(e.width||0),bottom:e.y+(e.height||0),left:e.x}}function $p(e){return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}function eh(e){return Zp({x:e.x+(e.width||0)/2,y:e.y+(e.height||0)/2})}function th(e){for(var t=e.waypoints,i=t.reduce(function(m,u,p){var y=t[p-1];if(y){var k=m[m.length-1],C=k&&k.endLength||0,v=ih(y,u);m.push({start:y,end:u,startLength:C,endLength:C+v,length:v})}return m},[]),s=i.reduce(function(m,u){return m+u.length},0),r=s/2,o=0,a=i[o];a.endLength<r;)a=i[++o];var l=(r-a.startLength)/a.length,c={x:a.start.x+(a.end.x-a.start.x)*l,y:a.start.y+(a.end.y-a.start.y)*l};return c}function ys(e){return Sd(e)?th(e):eh(e)}function ih(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function be(e){return e?"<"+e.$type+(e.id?' id="'+e.id:"")+'" />':"<null>"}function mn(e,t,i){return q({id:e.id,type:e.$type,businessObject:e,di:t},i)}function nh(e,t,i){var s=e.waypoint;return!s||s.length<2?[ys(t),ys(i)]:s.map(function(r){return{x:r.x,y:r.y}})}function Co(e,t,i,s){return new Error(e("element {element} referenced by {referenced}#{property} not yet drawn",{element:be(i),referenced:be(t),property:s}))}function ht(e,t,i,s,r,o){this._eventBus=e,this._canvas=t,this._elementFactory=i,this._elementRegistry=s,this._translate=r,this._textRenderer=o}ht.$inject=["eventBus","canvas","elementFactory","elementRegistry","translate","textRenderer"],ht.prototype.add=function(e,t,i){var s,r=this._translate,o,a;if(j(t,"bpmndi:BPMNPlane")){var l=j(e,"bpmn:SubProcess")?{id:e.id+"_plane"}:{};s=this._elementFactory.createRoot(mn(e,t,l)),this._canvas.addRootElement(s)}else if(j(t,"bpmndi:BPMNShape")){var c=!Gt(e,t),m=rh(e);o=i&&(i.hidden||i.collapsed);var u=t.bounds;s=this._elementFactory.createShape(mn(e,t,{collapsed:c,hidden:o,x:Math.round(u.x),y:Math.round(u.y),width:Math.round(u.width),height:Math.round(u.height),isFrame:m})),j(e,"bpmn:BoundaryEvent")&&this._attachBoundary(e,s),j(e,"bpmn:Lane")&&(a=0),j(e,"bpmn:DataStoreReference")&&(sh(i,ys(u))||(i=this._canvas.findRoot(i))),this._canvas.addShape(s,i,a)}else if(j(t,"bpmndi:BPMNEdge")){var p=this._getSource(e),y=this._getTarget(e);o=i&&(i.hidden||i.collapsed),s=this._elementFactory.createConnection(mn(e,t,{hidden:o,source:p,target:y,waypoints:nh(t,p,y)})),j(e,"bpmn:DataAssociation")&&(i=this._canvas.findRoot(i)),this._canvas.addConnection(s,i,a)}else throw new Error(r("unknown di {di} for element {semantic}",{di:be(t),semantic:be(e)}));return Dd(e)&&on(s)&&this.addLabel(e,t,s),this._eventBus.fire("bpmnElement.added",{element:s}),s},ht.prototype._attachBoundary=function(e,t){var i=this._translate,s=e.attachedToRef;if(!s)throw new Error(i("missing {semantic}#attachedToRef",{semantic:be(e)}));var r=this._elementRegistry.get(s.id),o=r&&r.attachers;if(!r)throw Co(i,e,s,"attachedToRef");t.host=r,o||(r.attachers=o=[]),o.indexOf(t)===-1&&o.push(t)},ht.prototype.addLabel=function(e,t,i){var s,r,o;return s=Vd(t,i),r=on(i),r&&(s=this._textRenderer.getExternalLabelBounds(s,r)),o=this._elementFactory.createLabel(mn(e,t,{id:e.id+"_label",labelTarget:i,type:"label",hidden:i.hidden||!on(i),x:Math.round(s.x),y:Math.round(s.y),width:Math.round(s.width),height:Math.round(s.height)})),this._canvas.addShape(o,i.parent)},ht.prototype._getConnectedElement=function(e,t){var i,s,r=e.$type,o=this._translate;if(s=e[t+"Ref"],t==="source"&&r==="bpmn:DataInputAssociation"&&(s=s&&s[0]),(t==="source"&&r==="bpmn:DataOutputAssociation"||t==="target"&&r==="bpmn:DataInputAssociation")&&(s=e.$parent),i=s&&this._getElement(s),i)return i;throw s?Co(o,e,s,t+"Ref"):new Error(o("{semantic}#{side} Ref not specified",{semantic:be(e),side:t}))},ht.prototype._getSource=function(e){return this._getConnectedElement(e,"source")},ht.prototype._getTarget=function(e){return this._getConnectedElement(e,"target")},ht.prototype._getElement=function(e){return this._elementRegistry.get(e.id)};function sh(e,t){var i=t.x,s=t.y;return i>=e.x&&i<=e.x+e.width&&s>=e.y&&s<=e.y+e.height}function rh(e){return j(e,"bpmn:Group")}const oh={__depends__:[Wp,{__depends__:[bo],bpmnImporter:["type",ht]}]};function As(e){return e.originalEvent||e.srcEvent}function ah(){return/mac/i.test(navigator.platform)}function wo(e,t){return(As(e)||e).button===t}function Oi(e){return wo(e,0)}function lh(e){return wo(e,1)}function ch(e){var t=As(e)||e;return Oi(e)?ah()?t.metaKey:t.ctrlKey:!1}function dh(e){var t=As(e)||e;return Oi(e)&&t.shiftKey}function ph(e){return!0}function fn(e){return Oi(e)||lh(e)}var No=500;function To(e,t,i){var s=this;function r(w,O,B){if(!l(w,O)){var V,M,G;B?M=t.getGraphics(B):(V=O.delegateTarget||O.target,V&&(M=V,B=t.get(M))),!(!M||!B)&&(G=e.fire(w,{element:B,gfx:M,originalEvent:O}),G===!1&&(O.stopPropagation(),O.preventDefault()))}}var o={};function a(w){return o[w]}function l(w,O){var B=m[w]||Oi;return!B(O)}var c={click:"element.click",contextmenu:"element.contextmenu",dblclick:"element.dblclick",mousedown:"element.mousedown",mousemove:"element.mousemove",mouseover:"element.hover",mouseout:"element.out",mouseup:"element.mouseup"},m={"element.contextmenu":ph,"element.mousedown":fn,"element.mouseup":fn,"element.click":fn,"element.dblclick":fn};function u(w,O,B){var V=c[w];if(!V)throw new Error("unmapped DOM event name <"+w+">");return r(V,O,B)}var p="svg, .djs-element";function y(w,O,B,V){var M=o[B]=function(G){r(B,G)};V&&(m[B]=V),M.$delegate=di.bind(w,p,O,M)}function k(w,O,B){var V=a(B);!V||di.unbind(w,O,V.$delegate)}function C(w){R(c,function(O,B){y(w,B,O)})}function v(w){R(c,function(O,B){k(w,B,O)})}e.on("canvas.destroy",function(w){v(w.svg)}),e.on("canvas.init",function(w){C(w.svg)}),e.on(["shape.added","connection.added"],function(w){var O=w.element,B=w.gfx;e.fire("interactionEvents.createHit",{element:O,gfx:B})}),e.on(["shape.changed","connection.changed"],No,function(w){var O=w.element,B=w.gfx;e.fire("interactionEvents.updateHit",{element:O,gfx:B})}),e.on("interactionEvents.createHit",No,function(w){var O=w.element,B=w.gfx;s.createDefaultHit(O,B)}),e.on("interactionEvents.updateHit",function(w){var O=w.element,B=w.gfx;s.updateDefaultHit(O,B)});var F=x("djs-hit djs-hit-stroke"),z=x("djs-hit djs-hit-click-stroke"),Q=x("djs-hit djs-hit-all"),I=x("djs-hit djs-hit-no-move"),E={all:Q,"click-stroke":z,stroke:F,"no-move":I};function x(w,O){return O=q({stroke:"white",strokeWidth:15},O||{}),i.cls(w,["no-fill","no-border"],O)}function S(w,O){var B=E[O];if(!B)throw new Error("invalid hit type <"+O+">");return se(w,B),w}function D(w,O){he(w,O)}this.removeHits=function(w){var O=Cp(".djs-hit",w);R(O,Si)},this.createDefaultHit=function(w,O){var B=w.waypoints,V=w.isFrame,M;return B?this.createWaypointsHit(O,B):(M=V?"stroke":"all",this.createBoxHit(O,M,{width:w.width,height:w.height}))},this.createWaypointsHit=function(w,O){var B=ps(O);return S(B,"stroke"),D(w,B),B},this.createBoxHit=function(w,O,B){B=q({x:0,y:0},B);var V=re("rect");return S(V,O),se(V,B),D(w,V),V},this.updateDefaultHit=function(w,O){var B=et(".djs-hit",O);if(!!B)return w.waypoints?co(B,w.waypoints):se(B,{width:w.width,height:w.height}),B},this.fire=r,this.triggerMouseEvent=u,this.mouseHandler=a,this.registerEvent=y,this.unregisterEvent=k}To.$inject=["eventBus","elementRegistry","styles"];const hh={__init__:["interactionEvents"],interactionEvents:["type",To]};function Kt(e,t){t=!!t,Xe(e)||(e=[e]);var i,s,r,o;return R(e,function(a){var l=a;a.waypoints&&!t&&(l=Kt(a.waypoints,!0));var c=l.x,m=l.y,u=l.height||0,p=l.width||0;(c<i||i===void 0)&&(i=c),(m<s||s===void 0)&&(s=m),(c+p>r||r===void 0)&&(r=c+p),(m+u>o||o===void 0)&&(o=m+u)}),{x:i,y:s,height:o-s,width:r-i}}function Io(e){return"waypoints"in e?"connection":"x"in e?"shape":"root"}function Bo(e){return!!(e&&e.isFrame)}var uh=500,mh=1e3;function Ht(e,t){this._eventBus=e,this.offset=5;var i=t.cls("djs-outline",["no-fill"]),s=this;function r(o){var a=re("rect");return se(a,q({x:0,y:0,rx:4,width:100,height:100},i)),a}e.on(["shape.added","shape.changed"],uh,function(o){var a=o.element,l=o.gfx,c=et(".djs-outline",l);c||(c=s.getOutline(a)||r(),he(l,c)),s.updateShapeOutline(c,a)}),e.on(["connection.added","connection.changed"],function(o){var a=o.element,l=o.gfx,c=et(".djs-outline",l);c||(c=r(),he(l,c)),s.updateConnectionOutline(c,a)})}Ht.prototype.updateShapeOutline=function(e,t){var i=!1,s=this._getProviders();s.length&&R(s,function(r){i=i||r.updateOutline(t,e)}),i||se(e,{x:-this.offset,y:-this.offset,width:t.width+this.offset*2,height:t.height+this.offset*2})},Ht.prototype.updateConnectionOutline=function(e,t){var i=Kt(t);se(e,{x:i.x-this.offset,y:i.y-this.offset,width:i.width+this.offset*2,height:i.height+this.offset*2})},Ht.prototype.registerProvider=function(e,t){t||(t=e,e=mh),this._eventBus.on("outline.getProviders",e,function(i){i.providers.push(t)})},Ht.prototype._getProviders=function(){var e=this._eventBus.createEvent({type:"outline.getProviders",providers:[]});return this._eventBus.fire(e),e.providers},Ht.prototype.getOutline=function(e){var t,i=this._getProviders();return R(i,function(s){!Tt(s.getOutline)||(t=t||s.getOutline(e))}),t},Ht.$inject=["eventBus","styles","elementRegistry"];const fh={__init__:["outline"],outline:["type",Ht]};function ui(e,t){this._eventBus=e,this._canvas=t,this._selectedElements=[];var i=this;e.on(["shape.remove","connection.remove"],function(s){var r=s.element;i.deselect(r)}),e.on(["diagram.clear","root.set"],function(s){i.select(null)})}ui.$inject=["eventBus","canvas"],ui.prototype.deselect=function(e){var t=this._selectedElements,i=t.indexOf(e);if(i!==-1){var s=t.slice();t.splice(i,1),this._eventBus.fire("selection.changed",{oldSelection:s,newSelection:t})}},ui.prototype.get=function(){return this._selectedElements},ui.prototype.isSelected=function(e){return this._selectedElements.indexOf(e)!==-1},ui.prototype.select=function(e,t){var i=this._selectedElements,s=i.slice();Xe(e)||(e=e?[e]:[]);var r=this._canvas,o=r.getRootElement();e=e.filter(function(a){var l=r.findRoot(a);return o===l}),t?R(e,function(a){i.indexOf(a)===-1&&i.push(a)}):this._selectedElements=i=e.slice(),this._eventBus.fire("selection.changed",{oldSelection:s,newSelection:i})};var xo="hover",So="selected",gn=6;function ks(e,t,i){this._canvas=e;var s=this;this._multiSelectionBox=null;function r(a,l){e.addMarker(a,l)}function o(a,l){e.removeMarker(a,l)}t.on("element.hover",function(a){r(a.element,xo)}),t.on("element.out",function(a){o(a.element,xo)}),t.on("selection.changed",function(a){function l(p){o(p,So)}function c(p){r(p,So)}var m=a.oldSelection,u=a.newSelection;R(m,function(p){u.indexOf(p)===-1&&l(p)}),R(u,function(p){m.indexOf(p)===-1&&c(p)}),s._updateSelectionOutline(u)}),t.on("element.changed",function(a){i.isSelected(a.element)&&s._updateSelectionOutline(i.get())})}ks.$inject=["canvas","eventBus","selection"],ks.prototype._updateSelectionOutline=function(e){var t=this._canvas.getLayer("selectionOutline");io(t);var i=e.length>1,s=this._canvas.getContainer();if(Qe(s)[i?"add":"remove"]("djs-multi-select"),!!i){var r=gh(Kt(e)),o=re("rect");se(o,q({rx:3},r)),Qe(o).add("djs-selection-outline"),he(t,o)}};function gh(e){return{x:e.x-gn,y:e.y-gn,width:e.width+gn*2,height:e.height+gn*2}}function Do(e,t,i,s){e.on("create.end",500,function(r){var o=r.context,a=o.canExecute,l=o.elements,c=o.hints||{},m=c.autoSelect;if(a){if(m===!1)return;Xe(m)?t.select(m):t.select(l.filter(yh))}}),e.on("connect.end",500,function(r){var o=r.context,a=o.connection;a&&t.select(a)}),e.on("shape.move.end",500,function(r){var o=r.previousSelection||[],a=s.get(r.context.shape.id),l=$e(o,function(c){return a.id===c.id});l||t.select(a)}),e.on("element.click",function(r){if(!!Oi(r)){var o=r.element;o===i.getRootElement()&&(o=null);var a=t.isSelected(o),l=t.get().length>1,c=ch(r)||dh(r);if(a&&l)return c?t.deselect(o):t.select(o);a?t.deselect(o):t.select(o,c)}})}Do.$inject=["eventBus","selection","canvas","elementRegistry"];function yh(e){return!e.hidden}const Ah={__init__:["selectionVisuals","selectionBehavior"],__depends__:[hh,fh],selection:["type",ui],selectionVisuals:["type",ks],selectionBehavior:["type",Do]};function Po(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(Math.random()*1e9)+"-"}Po.prototype.next=function(){return this._prefix+ ++this._counter};var kh=new Po("ov"),Eh=500;function Ae(e,t,i,s){this._eventBus=t,this._canvas=i,this._elementRegistry=s,this._ids=kh,this._overlayDefaults=q({show:null,scale:!0},e&&e.defaults),this._overlays={},this._overlayContainers=[],this._overlayRoot=bh(i.getContainer()),this._init()}Ae.$inject=["config.overlays","eventBus","canvas","elementRegistry"],Ae.prototype.get=function(e){if(Ze(e)&&(e={id:e}),Ze(e.element)&&(e.element=this._elementRegistry.get(e.element)),e.element){var t=this._getOverlayContainer(e.element,!0);return t?e.type?li(t.overlays,Wr({type:e.type})):t.overlays.slice():[]}else return e.type?li(this._overlays,Wr({type:e.type})):e.id?this._overlays[e.id]:null},Ae.prototype.add=function(e,t,i){if(Ut(t)&&(i=t,t=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 s=this._ids.next();return i=q({},this._overlayDefaults,i,{id:s,type:t,element:e,html:i.html}),this._addOverlay(i),s},Ae.prototype.remove=function(e){var t=this.get(e)||[];Xe(t)||(t=[t]);var i=this;R(t,function(s){var r=i._getOverlayContainer(s.element,!0);if(s&&(pi(s.html),pi(s.htmlContainer),delete s.htmlContainer,delete s.element,delete i._overlays[s.id]),r){var o=r.overlays.indexOf(s);o!==-1&&r.overlays.splice(o,1)}})},Ae.prototype.isShown=function(){return this._overlayRoot.style.display!=="none"},Ae.prototype.show=function(){yn(this._overlayRoot)},Ae.prototype.hide=function(){yn(this._overlayRoot,!1)},Ae.prototype.clear=function(){this._overlays={},this._overlayContainers=[],uo(this._overlayRoot)},Ae.prototype._updateOverlayContainer=function(e){var t=e.element,i=e.html,s=t.x,r=t.y;if(t.waypoints){var o=Kt(t);s=o.x,r=o.y}Mo(i,s,r),ho(e.html,"data-container-id",t.id)},Ae.prototype._updateOverlay=function(e){var t=e.position,i=e.htmlContainer,s=e.element,r=t.left,o=t.top;if(t.right!==void 0){var a;s.waypoints?a=Kt(s).width:a=s.width,r=t.right*-1+a}if(t.bottom!==void 0){var l;s.waypoints?l=Kt(s).height:l=s.height,o=t.bottom*-1+l}Mo(i,r||0,o||0),this._updateOverlayVisibilty(e,this._canvas.viewbox())},Ae.prototype._createOverlayContainer=function(e){var t=Ue('<div class="djs-overlays" />');Ee(t,{position:"absolute"}),this._overlayRoot.appendChild(t);var i={html:t,element:e,overlays:[]};return this._updateOverlayContainer(i),this._overlayContainers.push(i),i},Ae.prototype._updateRoot=function(e){var t=e.scale||1,i="matrix("+[t,0,0,t,-1*e.x*t,-1*e.y*t].join(",")+")";Oo(this._overlayRoot,i)},Ae.prototype._getOverlayContainer=function(e,t){var i=$e(this._overlayContainers,function(s){return s.element===e});return!i&&!t?this._createOverlayContainer(e):i},Ae.prototype._addOverlay=function(e){var t=e.id,i=e.element,s=e.html,r,o;s.get&&s.constructor.prototype.jquery&&(s=s.get(0)),Ze(s)&&(s=Ue(s)),o=this._getOverlayContainer(i),r=Ue('<div class="djs-overlay" data-overlay-id="'+t+'">'),Ee(r,{position:"absolute"}),r.appendChild(s),e.type&&qt(r).add("djs-overlay-"+e.type);var a=this._canvas.findRoot(i),l=this._canvas.getRootElement();yn(r,a===l),e.htmlContainer=r,o.overlays.push(e),o.html.appendChild(r),this._overlays[t]=e,this._updateOverlay(e),this._updateOverlayVisibilty(e,this._canvas.viewbox())},Ae.prototype._updateOverlayVisibilty=function(e,t){var i=e.show,s=this._canvas.findRoot(e.element),r=i&&i.minZoom,o=i&&i.maxZoom,a=e.htmlContainer,l=this._canvas.getRootElement(),c=!0;(s!==l||i&&(oi(r)&&r>t.scale||oi(o)&&o<t.scale))&&(c=!1),yn(a,c),this._updateOverlayScale(e,t)},Ae.prototype._updateOverlayScale=function(e,t){var i=e.scale,s,r,o=e.htmlContainer,a,l="";i!==!0&&(i===!1?(s=1,r=1):(s=i.min,r=i.max),oi(s)&&t.scale<s&&(a=(1/t.scale||1)*s),oi(r)&&t.scale>r&&(a=(1/t.scale||1)*r)),oi(a)&&(l="scale("+a+","+a+")"),Oo(o,l)},Ae.prototype._updateOverlaysVisibilty=function(e){var t=this;R(this._overlays,function(i){t._updateOverlayVisibilty(i,e)})},Ae.prototype._init=function(){var e=this._eventBus,t=this;function i(s){t._updateRoot(s),t._updateOverlaysVisibilty(s),t.show()}e.on("canvas.viewbox.changing",function(s){t.hide()}),e.on("canvas.viewbox.changed",function(s){i(s.viewbox)}),e.on(["shape.remove","connection.remove"],function(s){var r=s.element,o=t.get({element:r});R(o,function(c){t.remove(c.id)});var a=t._getOverlayContainer(r);if(a){pi(a.html);var l=t._overlayContainers.indexOf(a);l!==-1&&t._overlayContainers.splice(l,1)}}),e.on("element.changed",Eh,function(s){var r=s.element,o=t._getOverlayContainer(r,!0);o&&(R(o.overlays,function(a){t._updateOverlay(a)}),t._updateOverlayContainer(o))}),e.on("element.marker.update",function(s){var r=t._getOverlayContainer(s.element,!0);r&&qt(r.html)[s.add?"add":"remove"](s.marker)}),e.on("root.set",function(){t._updateOverlaysVisibilty(t._canvas.viewbox())}),e.on("diagram.clear",this.clear,this)};function bh(e){var t=Ue('<div class="djs-overlay-container" />');return Ee(t,{position:"absolute",width:0,height:0}),e.insertBefore(t,e.firstChild),t}function Mo(e,t,i){Ee(e,{left:t+"px",top:i+"px"})}function yn(e,t){e.style.display=t===!1?"none":""}function Oo(e,t){e.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach(function(i){e.style[i+"transform"]=t})}const Vo={__init__:["overlays"],overlays:["type",Ae]};function Ro(e,t,i,s){e.on("element.changed",function(r){var o=r.element;(o.parent||o===t.getRootElement())&&(r.gfx=i.getGraphics(o)),r.gfx&&e.fire(Io(o)+".changed",r)}),e.on("elements.changed",function(r){var o=r.elements;o.forEach(function(a){e.fire("element.changed",{element:a})}),s.updateContainments(o)}),e.on("shape.changed",function(r){s.update("shape",r.element,r.gfx)}),e.on("connection.changed",function(r){s.update("connection",r.element,r.gfx)})}Ro.$inject=["eventBus","canvas","elementRegistry","graphicsFactory"];const Ch={__init__:["changeSupport"],changeSupport:["type",Ro]};var wh=1e3;function Be(e){this._eventBus=e}Be.$inject=["eventBus"];function Nh(e,t){return function(i){return e.call(t||null,i.context,i.command,i)}}Be.prototype.on=function(e,t,i,s,r,o){if((Tt(t)||Nt(t))&&(o=r,r=s,s=i,i=t,t=null),Tt(i)&&(o=r,r=s,s=i,i=wh),Ut(r)&&(o=r,r=!1),!Tt(s))throw new Error("handlerFn must be a function");Xe(e)||(e=[e]);var a=this._eventBus;R(e,function(l){var c=["commandStack",l,t].filter(function(m){return m}).join(".");a.on(c,i,r?Nh(s,o):s,o)})},Be.prototype.canExecute=ut("canExecute"),Be.prototype.preExecute=ut("preExecute"),Be.prototype.preExecuted=ut("preExecuted"),Be.prototype.execute=ut("execute"),Be.prototype.executed=ut("executed"),Be.prototype.postExecute=ut("postExecute"),Be.prototype.postExecuted=ut("postExecuted"),Be.prototype.revert=ut("revert"),Be.prototype.reverted=ut("reverted");function ut(e){return function(i,s,r,o,a){(Tt(i)||Nt(i))&&(a=o,o=r,r=s,s=i,i=null),this.on(i,e,s,r,o,a)}}function Es(e,t){t.invoke(Be,this),this.executed(function(i){var s=i.context;s.rootElement?e.setRootElement(s.rootElement):s.rootElement=e.getRootElement()}),this.revert(function(i){var s=i.context;s.rootElement&&e.setRootElement(s.rootElement)})}rt(Es,Be),Es.$inject=["canvas","injector"];const Th={__init__:["rootElementsBehavior"],rootElementsBehavior:["type",Es]};var Ih={"&":"&","<":"<",">":">",'"':""","'":"'"};function Bh(e){return e=""+e,e&&e.replace(/[&<>"']/g,function(t){return Ih[t]})}var xh="_plane";function bs(e){var t=e.id;return j(e,"bpmn:SubProcess")?Sh(t):t}function Sh(e){return e+xh}var Dh="bjs-breadcrumbs-shown";function Lo(e,t,i){var s=Ue('<ul class="bjs-breadcrumbs"></ul>'),r=i.getContainer(),o=qt(r);r.appendChild(s);var a=[];e.on("element.changed",function(c){var m=c.element,u=pe(m),p=$e(a,function(y){return y===u});!p||l()});function l(c){c&&(a=Ph(c));var m=a.map(function(p){var y=Bh(p.name||p.id),k=Ue('<li><span class="bjs-crumb"><a title="'+y+'">'+y+"</a></span></li>"),C=i.findRoot(bs(p))||i.findRoot(p.id);if(!C&&j(p,"bpmn:Process")){var v=t.find(function(F){var z=pe(F);return z&&z.get("processRef")&&z.get("processRef")===p});C=i.findRoot(v.id)}return k.addEventListener("click",function(){i.setRootElement(C)}),k});s.innerHTML="";var u=m.length>1;o.toggle(Dh,u),m.forEach(function(p){s.appendChild(p)})}e.on("root.set",function(c){l(c.element)})}Lo.$inject=["eventBus","elementRegistry","canvas"];function Ph(e){for(var t=pe(e),i=[],s=t;s;s=s.$parent)(j(s,"bpmn:SubProcess")||j(s,"bpmn:Process"))&&i.push(s);return i.reverse()}function vo(e,t){var i=null,s=new Mh;e.on("root.set",function(r){var o=r.element,a=t.viewbox(),l=s.get(o);if(s.set(i,{x:a.x,y:a.y,zoom:a.scale}),i=o,!(j(o,"bpmn:Collaboration")&&!l)){l=l||{x:0,y:0,zoom:1};var c=(a.x-l.x)*a.scale,m=(a.y-l.y)*a.scale;(c!==0||m!==0)&&t.scroll({dx:c,dy:m}),l.zoom!==a.scale&&t.zoom(l.zoom,{x:0,y:0})}}),e.on("diagram.clear",function(){s.clear(),i=null})}vo.$inject=["eventBus","canvas"];function Mh(){this._entries=[],this.set=function(e,t){var i=!1;for(var s in this._entries)if(this._entries[s][0]===e){this._entries[s][1]=t,i=!0;break}i||this._entries.push([e,t])},this.get=function(e){for(var t in this._entries)if(this._entries[t][0]===e)return this._entries[t][1];return null},this.clear=function(){this._entries.length=0},this.remove=function(e){var t=-1;for(var i in this._entries)if(this._entries[i][0]===e){t=i;break}t!==-1&&this._entries.splice(t,1)}}var Fo={x:180,y:160};function Yt(e,t){this._eventBus=e,this._moddle=t;var i=this;e.on("import.render.start",1500,function(s,r){i._handleImport(r.definitions)})}Yt.prototype._handleImport=function(e){if(!!e.diagrams){var t=this;this._definitions=e,this._processToDiagramMap={},e.diagrams.forEach(function(s){!s.plane||!s.plane.bpmnElement||(t._processToDiagramMap[s.plane.bpmnElement.id]=s)});var i=[];e.diagrams.forEach(function(s){var r=t._createNewDiagrams(s.plane);Array.prototype.push.apply(i,r)}),i.forEach(function(s){t._movePlaneElementsToOrigin(s.plane)})}},Yt.prototype._createNewDiagrams=function(e){var t=this,i=[],s=[];e.get("planeElement").forEach(function(o){var a=o.bpmnElement;if(!!a){var l=a.$parent;j(a,"bpmn:SubProcess")&&!o.isExpanded&&i.push(a),Vh(a,e)&&s.push({diElement:o,parent:l})}});var r=[];return i.forEach(function(o){if(!t._processToDiagramMap[o.id]){var a=t._createDiagram(o);t._processToDiagramMap[o.id]=a,r.push(a)}}),s.forEach(function(o){for(var a=o.diElement,l=o.parent;l&&i.indexOf(l)===-1;)l=l.$parent;if(!!l){var c=t._processToDiagramMap[l.id];t._moveToDiPlane(a,c.plane)}}),r},Yt.prototype._movePlaneElementsToOrigin=function(e){var t=e.get("planeElement"),i=Oh(e),s={x:i.x-Fo.x,y:i.y-Fo.y};t.forEach(function(r){r.waypoint?r.waypoint.forEach(function(o){o.x=o.x-s.x,o.y=o.y-s.y}):r.bounds&&(r.bounds.x=r.bounds.x-s.x,r.bounds.y=r.bounds.y-s.y)})},Yt.prototype._moveToDiPlane=function(e,t){var i=Qo(e),s=i.plane.get("planeElement");s.splice(s.indexOf(e),1),t.get("planeElement").push(e)},Yt.prototype._createDiagram=function(e){var t=this._moddle.create("bpmndi:BPMNPlane",{bpmnElement:e}),i=this._moddle.create("bpmndi:BPMNDiagram",{plane:t});return t.$parent=i,t.bpmnElement=e,i.$parent=this._definitions,this._definitions.diagrams.push(i),i},Yt.$inject=["eventBus","moddle"];function Qo(e){return j(e,"bpmndi:BPMNDiagram")?e:Qo(e.$parent)}function Oh(e){var t={top:1/0,right:-1/0,bottom:-1/0,left:1/0};return e.planeElement.forEach(function(i){if(!!i.bounds){var s=gs(i.bounds);t.top=Math.min(s.top,t.top),t.left=Math.min(s.left,t.left)}}),$p(t)}function Vh(e,t){var i=e.$parent;return!(!j(i,"bpmn:SubProcess")||i===t.bpmnElement||Bd(e,["bpmn:DataInputAssociation","bpmn:DataOutputAssociation"]))}var An=250,Rh='<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>',Lh="bjs-drilldown-empty";function St(e,t,i,s){Be.call(this,t),this._canvas=e,this._eventBus=t,this._elementRegistry=i,this._overlays=s;var r=this;this.executed("shape.toggleCollapse",An,function(o){var a=o.shape;r._canDrillDown(a)?r._addOverlay(a):r._removeOverlay(a)},!0),this.reverted("shape.toggleCollapse",An,function(o){var a=o.shape;r._canDrillDown(a)?r._addOverlay(a):r._removeOverlay(a)},!0),this.executed(["shape.create","shape.move","shape.delete"],An,function(o){var a=o.oldParent,l=o.newParent||o.parent,c=o.shape;r._canDrillDown(c)&&r._addOverlay(c),r._updateDrilldownOverlay(a),r._updateDrilldownOverlay(l),r._updateDrilldownOverlay(c)},!0),this.reverted(["shape.create","shape.move","shape.delete"],An,function(o){var a=o.oldParent,l=o.newParent||o.parent,c=o.shape;r._canDrillDown(c)&&r._addOverlay(c),r._updateDrilldownOverlay(a),r._updateDrilldownOverlay(l),r._updateDrilldownOverlay(c)},!0),t.on("import.render.complete",function(){i.filter(function(o){return r._canDrillDown(o)}).map(function(o){r._addOverlay(o)})})}rt(St,Be),St.prototype._updateDrilldownOverlay=function(e){var t=this._canvas;if(!!e){var i=t.findRoot(e);i&&this._updateOverlayVisibility(i)}},St.prototype._canDrillDown=function(e){var t=this._canvas;return j(e,"bpmn:SubProcess")&&t.findRoot(bs(e))},St.prototype._updateOverlayVisibility=function(e){var t=this._overlays,i=pe(e),s=t.get({element:i.id,type:"drilldown"})[0];if(!!s){var r=i&&i.get("flowElements")&&i.get("flowElements").length;qt(s.html).toggle(Lh,!r)}},St.prototype._addOverlay=function(e){var t=this._canvas,i=this._overlays,s=i.get({element:e,type:"drilldown"});s.length&&this._removeOverlay(e);var r=Ue('<button class="bjs-drilldown">'+Rh+"</button>");r.addEventListener("click",function(){t.setRootElement(t.findRoot(bs(e)))}),i.add(e,"drilldown",{position:{bottom:-7,right:-8},html:r}),this._updateOverlayVisibility(e)},St.prototype._removeOverlay=function(e){var t=this._overlays;t.remove({element:e,type:"drilldown"})},St.$inject=["canvas","eventBus","elementRegistry","overlays"];const vh={__depends__:[Vo,Ch,Th],__init__:["drilldownBreadcrumbs","drilldownOverlayBehavior","drilldownCentering","subprocessCompatibility"],drilldownBreadcrumbs:["type",Lo],drilldownCentering:["type",vo],drilldownOverlayBehavior:["type",St],subprocessCompatibility:["type",Yt]},Fh=/^class[ {]/;function Qh(e){return Fh.test(e.toString())}function Cs(e){return Array.isArray(e)}function ws(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function kn(...e){e.length===1&&Cs(e[0])&&(e=e[0]),e=[...e];const t=e.pop();return t.$inject=e,t}const Uh=/constructor\s*[^(]*\(\s*([^)]*)\)/m,jh=/^(?:async\s+)?(?:function\s*[^(]*)?(?:\(\s*([^)]*)\)|(\w+))/m,Gh=/\/\*([^*]*)\*\//m;function _h(e){if(typeof e!="function")throw new Error(`Cannot annotate "${e}". Expected a function!`);const t=e.toString().match(Qh(e)?Uh:jh);if(!t)return[];const i=t[1]||t[2];return i&&i.split(",").map(s=>{const r=s.match(Gh);return(r&&r[1]||s).trim()})||[]}function Uo(e,t){const i=t||{get:function(I,E){if(s.push(I),E===!1)return null;throw l(`No provider for "${I}"!`)}},s=[],r=this._providers=Object.create(i._providers||null),o=this._instances=Object.create(null),a=o.injector=this,l=function(I){const E=s.join(" -> ");return s.length=0,new Error(E?`${I} (Resolving: ${E})`:I)};function c(I,E){if(!r[I]&&I.includes(".")){const x=I.split(".");let S=c(x.shift());for(;x.length;)S=S[x.shift()];return S}if(ws(o,I))return o[I];if(ws(r,I)){if(s.indexOf(I)!==-1)throw s.push(I),l("Cannot resolve circular dependency!");return s.push(I),o[I]=r[I][0](r[I][1]),s.pop(),o[I]}return i.get(I,E)}function m(I,E){if(typeof E>"u"&&(E={}),typeof I!="function")if(Cs(I))I=kn(I.slice());else throw l(`Cannot invoke "${I}". Expected a function!`);const S=(I.$inject||_h(I)).map(D=>ws(E,D)?E[D]:c(D));return{fn:I,dependencies:S}}function u(I){const{fn:E,dependencies:x}=m(I),S=Function.prototype.bind.call(E,null,...x);return new S}function p(I,E,x){const{fn:S,dependencies:D}=m(I,x);return S.apply(E,D)}function y(I){return kn(E=>I.get(E))}function k(I,E){if(E&&E.length){const x=Object.create(null),S=Object.create(null),D=[],w=[],O=[];let B,V,M,G;for(let K in r)B=r[K],E.indexOf(K)!==-1&&(B[2]==="private"?(V=D.indexOf(B[3]),V===-1?(M=B[3].createChild([],E),G=y(M),D.push(B[3]),w.push(M),O.push(G),x[K]=[G,K,"private",M]):x[K]=[O[V],K,"private",w[V]]):x[K]=[B[2],B[1]],S[K]=!0),(B[2]==="factory"||B[2]==="type")&&B[1].$scope&&E.forEach(it=>{B[1].$scope.indexOf(it)!==-1&&(x[K]=[B[2],B[1]],S[it]=!0)});E.forEach(K=>{if(!S[K])throw new Error('No provider for "'+K+'". Cannot use provider from the parent!')}),I.unshift(x)}return new Uo(I,a)}const C={factory:p,type:u,value:function(I){return I}};function v(I,E){const x=I.__init__||[];return function(){x.forEach(S=>{typeof S=="string"?E.get(S):E.invoke(S)})}}function F(I){const E=I.__exports__;if(E){const x=I.__modules__,S=Object.keys(I).reduce((V,M)=>(M!=="__exports__"&&M!=="__modules__"&&M!=="__init__"&&M!=="__depends__"&&(V[M]=I[M]),V),Object.create(null)),D=(x||[]).concat(S),w=k(D),O=kn(function(V){return w.get(V)});E.forEach(function(V){r[V]=[O,V,"private",w]});const B=(I.__init__||[]).slice();return B.unshift(function(){w.init()}),I=Object.assign({},I,{__init__:B}),v(I,w)}return Object.keys(I).forEach(function(x){if(x==="__init__"||x==="__depends__")return;const S=I[x];if(S[2]==="private"){r[x]=S;return}const D=S[0],w=S[1];r[x]=[C[D],qh(D,w),D]}),v(I,a)}function z(I,E){return I.indexOf(E)!==-1||(I=(E.__depends__||[]).reduce(z,I),I.indexOf(E)!==-1)?I:I.concat(E)}function Q(I){const E=I.reduce(z,[]).map(F);let x=!1;return function(){x||(x=!0,E.forEach(S=>S()))}}this.get=c,this.invoke=p,this.instantiate=u,this.createChild=k,this.init=Q(e)}function qh(e,t){return e!=="value"&&Cs(t)&&(t=kn(t.slice())),t}var Jh=1;function Dt(e,t){dt.call(this,e,Jh),this.CONNECTION_STYLE=t.style(["no-fill"],{strokeWidth:5,stroke:"fuchsia"}),this.SHAPE_STYLE=t.style({fill:"white",stroke:"fuchsia",strokeWidth:2}),this.FRAME_STYLE=t.style(["no-fill"],{stroke:"fuchsia",strokeDasharray:4,strokeWidth:2})}rt(Dt,dt),Dt.prototype.canRender=function(){return!0},Dt.prototype.drawShape=function(t,i,s){var r=re("rect");return se(r,{x:0,y:0,width:i.width||0,height:i.height||0}),Bo(i)?se(r,q({},this.FRAME_STYLE,s||{})):se(r,q({},this.SHAPE_STYLE,s||{})),he(t,r),r},Dt.prototype.drawConnection=function(t,i,s){var r=ps(i.waypoints,q({},this.CONNECTION_STYLE,s||{}));return he(t,r),r},Dt.prototype.getShapePath=function(t){var i=t.x,s=t.y,r=t.width,o=t.height,a=[["M",i,s],["l",r,0],["l",0,o],["l",-r,0],["z"]];return _t(a)},Dt.prototype.getConnectionPath=function(t){var i=t.waypoints,s,r,o=[];for(s=0;r=i[s];s++)r=r.original||r,o.push([s===0?"M":"L",r.x,r.y]);return _t(o)},Dt.$inject=["eventBus","styles"];function zh(){var e={"no-fill":{fill:"none"},"no-border":{strokeOpacity:0},"no-events":{pointerEvents:"none"}},t=this;this.cls=function(i,s,r){var o=this.style(s,r);return q(o,{class:i})},this.style=function(i,s){!Xe(i)&&!s&&(s=i,i=[]);var r=ci(i,function(o,a){return q(o,e[a]||{})},{});return s?q(r,s):r},this.computeStyle=function(i,s,r){return Xe(s)||(r=s,s=[]),t.style(s||[],q({},r,i||{}))}}const Kh={__init__:["defaultRenderer"],defaultRenderer:["type",Dt],styles:["type",zh]};function Hh(e,t){if(!e||!t)return-1;var i=e.indexOf(t);return i!==-1&&e.splice(i,1),i}function Yh(e,t,i){if(!(!e||!t)){typeof i!="number"&&(i=-1);var s=e.indexOf(t);if(s!==-1){if(s===i)return;if(i!==-1)e.splice(s,1);else return}i!==-1?e.splice(i,0,t):e.push(t)}}function En(e,t){return Math.round(e*t)/t}function jo(e){return Nt(e)?e+"px":e}function Wh(e){for(;e.parent;)e=e.parent;return e}function Xh(e){e=q({},{width:"100%",height:"100%"},e);const t=e.container||document.body,i=document.createElement("div");return i.setAttribute("class","djs-container djs-parent"),Ee(i,{position:"relative",overflow:"hidden",width:jo(e.width),height:jo(e.height)}),t.appendChild(i),i}function Go(e,t,i){const s=re("g");Qe(s).add(t);const r=i!==void 0?i:e.childNodes.length-1;return e.insertBefore(s,e.childNodes[r]||null),s}const Zh="base",_o=0,$h=1,eu={shape:["x","y","width","height"],connection:["waypoints"]};function J(e,t,i,s){this._eventBus=t,this._elementRegistry=s,this._graphicsFactory=i,this._rootsIdx=0,this._layers={},this._planes=[],this._rootElement=null,this._init(e||{})}J.$inject=["config.canvas","eventBus","graphicsFactory","elementRegistry"],J.prototype._init=function(e){const t=this._eventBus,i=this._container=Xh(e),s=this._svg=re("svg");se(s,{width:"100%",height:"100%"}),he(i,s);const r=this._viewport=Go(s,"viewport");e.deferUpdate&&(this._viewboxChanged=Cd(It(this._viewboxChanged,this),300)),t.on("diagram.init",()=>{t.fire("canvas.init",{svg:s,viewport:r})}),t.on(["shape.added","connection.added","shape.removed","connection.removed","elements.changed","root.set"],()=>{delete this._cachedViewbox}),t.on("diagram.destroy",500,this._destroy,this),t.on("diagram.clear",500,this._clear,this)},J.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},J.prototype._clear=function(){this._elementRegistry.getAll().forEach(t=>{const i=Io(t);i==="root"?this.removeRootElement(t):this._removeElement(t,i)}),this._planes=[],this._rootElement=null,delete this._cachedViewbox},J.prototype.getDefaultLayer=function(){return this.getLayer(Zh,_o)},J.prototype.getLayer=function(e,t){if(!e)throw new Error("must specify a name");let i=this._layers[e];if(i||(i=this._layers[e]=this._createLayer(e,t)),typeof t<"u"&&i.index!==t)throw new Error("layer <"+e+"> already created at index <"+t+">");return i.group},J.prototype._getChildIndex=function(e){return ci(this._layers,function(t,i){return i.visible&&e>=i.index&&t++,t},0)},J.prototype._createLayer=function(e,t){typeof t>"u"&&(t=$h);const i=this._getChildIndex(t);return{group:Go(this._viewport,"layer-"+e,i),index:t,visible:!0}},J.prototype.showLayer=function(e){if(!e)throw new Error("must specify a name");const t=this._layers[e];if(!t)throw new Error("layer <"+e+"> does not exist");const i=this._viewport,s=t.group,r=t.index;if(t.visible)return s;const o=this._getChildIndex(r);return i.insertBefore(s,i.childNodes[o]||null),t.visible=!0,s},J.prototype.hideLayer=function(e){if(!e)throw new Error("must specify a name");const t=this._layers[e];if(!t)throw new Error("layer <"+e+"> does not exist");const i=t.group;return t.visible&&(Si(i),t.visible=!1),i},J.prototype._removeLayer=function(e){const t=this._layers[e];t&&(delete this._layers[e],Si(t.group))},J.prototype.getActiveLayer=function(){const e=this._findPlaneForRoot(this.getRootElement());return e?e.layer:null},J.prototype.findRoot=function(e){return typeof e=="string"&&(e=this._elementRegistry.get(e)),e?(this._findPlaneForRoot(Wh(e))||{}).rootElement:void 0},J.prototype.getRootElements=function(){return this._planes.map(function(e){return e.rootElement})},J.prototype._findPlaneForRoot=function(e){return $e(this._planes,function(t){return t.rootElement===e})},J.prototype.getContainer=function(){return this._container},J.prototype._updateMarker=function(e,t,i){let s;e.id||(e=this._elementRegistry.get(e)),s=this._elementRegistry._elements[e.id],s&&(R([s.gfx,s.secondaryGfx],function(r){r&&(i?Qe(r).add(t):Qe(r).remove(t))}),this._eventBus.fire("element.marker.update",{element:e,gfx:s.gfx,marker:t,add:!!i}))},J.prototype.addMarker=function(e,t){this._updateMarker(e,t,!0)},J.prototype.removeMarker=function(e,t){this._updateMarker(e,t,!1)},J.prototype.hasMarker=function(e,t){e.id||(e=this._elementRegistry.get(e));const i=this.getGraphics(e);return Qe(i).has(t)},J.prototype.toggleMarker=function(e,t){this.hasMarker(e,t)?this.removeMarker(e,t):this.addMarker(e,t)},J.prototype.getRootElement=function(){const e=this._rootElement;return e||this._planes.length?e:this.setRootElement(this.addRootElement(null))},J.prototype.addRootElement=function(e){const t=this._rootsIdx++;e||(e={id:"__implicitroot_"+t,children:[],isImplicit:!0});const i=e.layer="root-"+t;this._ensureValid("root",e);const s=this.getLayer(i,_o);return this.hideLayer(i),this._addRoot(e,s),this._planes.push({rootElement:e,layer:s}),e},J.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},J.prototype.setRootElement=function(e){if(e===this._rootElement)return;let t;if(!e)throw new Error("rootElement required");return t=this._findPlaneForRoot(e),t||(e=this.addRootElement(e)),this._setRoot(e),e},J.prototype._removeRoot=function(e){const t=this._elementRegistry,i=this._eventBus;i.fire("root.remove",{element:e}),i.fire("root.removed",{element:e}),t.remove(e)},J.prototype._addRoot=function(e,t){const i=this._elementRegistry,s=this._eventBus;s.fire("root.add",{element:e}),i.add(e,t),s.fire("root.added",{element:e,gfx:t})},J.prototype._setRoot=function(e,t){const i=this._rootElement;i&&(this._elementRegistry.updateGraphics(i,null,!0),this.hideLayer(i.layer)),e&&(t||(t=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})},J.prototype._ensureValid=function(e,t){if(!t.id)throw new Error("element must have an id");if(this._elementRegistry.get(t.id))throw new Error("element <"+t.id+"> already exists");const i=eu[e];if(!Hr(i,function(r){return typeof t[r]<"u"}))throw new Error("must supply { "+i.join(", ")+" } with "+e)},J.prototype._setParent=function(e,t,i){Yh(t.children,e,i),e.parent=t},J.prototype._addElement=function(e,t,i,s){i=i||this.getRootElement();const r=this._eventBus,o=this._graphicsFactory;this._ensureValid(e,t),r.fire(e+".add",{element:t,parent:i}),this._setParent(t,i,s);const a=o.create(e,t,s);return this._elementRegistry.add(t,a),o.update(e,t,a),r.fire(e+".added",{element:t,gfx:a}),t},J.prototype.addShape=function(e,t,i){return this._addElement("shape",e,t,i)},J.prototype.addConnection=function(e,t,i){return this._addElement("connection",e,t,i)},J.prototype._removeElement=function(e,t){const i=this._elementRegistry,s=this._graphicsFactory,r=this._eventBus;if(e=i.get(e.id||e),!!e)return r.fire(t+".remove",{element:e}),s.remove(e),Hh(e.parent&&e.parent.children,e),e.parent=null,r.fire(t+".removed",{element:e}),i.remove(e),e},J.prototype.removeShape=function(e){return this._removeElement(e,"shape")},J.prototype.removeConnection=function(e){return this._removeElement(e,"connection")},J.prototype.getGraphics=function(e,t){return this._elementRegistry.getGraphics(e,t)},J.prototype._changeViewbox=function(e){this._eventBus.fire("canvas.viewbox.changing"),e.apply(this),this._cachedViewbox=null,this._viewboxChanged()},J.prototype._viewboxChanged=function(){this._eventBus.fire("canvas.viewbox.changed",{viewbox:this.viewbox()})},J.prototype.viewbox=function(e){if(e===void 0&&this._cachedViewbox)return this._cachedViewbox;const t=this._viewport,i=this.getSize();let s,r,o,a,l,c,m;if(e)this._changeViewbox(function(){l=Math.min(i.width/e.width,i.height/e.height);const u=this._svg.createSVGMatrix().scale(l).translate(-e.x,-e.y);Di(t,u)});else return o=this._rootElement?this.getActiveLayer():null,s=o&&o.getBBox()||{},a=Di(t),r=a?a.matrix:Gd(),l=En(r.a,1e3),c=En(-r.e||0,1e3),m=En(-r.f||0,1e3),e=this._cachedViewbox={x:c?c/l:0,y:m?m/l:0,width:i.width/l,height:i.height/l,scale:l,inner:{width:s.width||0,height:s.height||0,x:s.x||0,y:s.y||0},outer:i},e;return e},J.prototype.scroll=function(e){const t=this._viewport;let i=t.getCTM();return e&&this._changeViewbox(function(){e=q({dx:0,dy:0},e||{}),i=this._svg.createSVGMatrix().translate(e.dx,e.dy).multiply(i),qo(t,i)}),{x:i.e,y:i.f}},J.prototype.scrollToElement=function(e,t){let i=100;typeof e=="string"&&(e=this._elementRegistry.get(e));const s=this.findRoot(e);if(s!==this.getRootElement()&&this.setRootElement(s),s===e)return;t||(t={}),typeof t=="number"&&(i=t),t={top:t.top||i,right:t.right||i,bottom:t.bottom||i,left:t.left||i};const r=Kt(e),o=gs(r),a=this.viewbox(),l=this.zoom();let c,m;a.y+=t.top/l,a.x+=t.left/l,a.width-=(t.right+t.left)/l,a.height-=(t.bottom+t.top)/l;const u=gs(a);if(!(r.width<a.width&&r.height<a.height))c=r.x-a.x,m=r.y-a.y;else{const y=Math.max(0,o.right-u.right),k=Math.min(0,o.left-u.left),C=Math.max(0,o.bottom-u.bottom),v=Math.min(0,o.top-u.top);c=y||k,m=C||v}this.scroll({dx:-c*l,dy:-m*l})},J.prototype.zoom=function(e,t){if(!e)return this.viewbox(e).scale;if(e==="fit-viewport")return this._fitViewport(t);let i,s;return this._changeViewbox(function(){typeof t!="object"&&(i=this.viewbox().outer,t={x:i.width/2,y:i.height/2}),s=this._setZoom(e,t)}),En(s.a,1e3)};function qo(e,t){const i="matrix("+t.a+","+t.b+","+t.c+","+t.d+","+t.e+","+t.f+")";e.setAttribute("transform",i)}J.prototype._fitViewport=function(e){const t=this.viewbox(),i=t.outer,s=t.inner;let r,o;return s.x>=0&&s.y>=0&&s.x+s.width<=i.width&&s.y+s.height<=i.height&&!e?o={x:0,y:0,width:Math.max(s.width+s.x,i.width),height:Math.max(s.height+s.y,i.height)}:(r=Math.min(1,i.width/s.width,i.height/s.height),o={x:s.x+(e?s.width/2-i.width/r/2:0),y:s.y+(e?s.height/2-i.height/r/2:0),width:i.width/r,height:i.height/r}),this.viewbox(o),this.viewbox(!1).scale},J.prototype._setZoom=function(e,t){const i=this._svg,s=this._viewport,r=i.createSVGMatrix(),o=i.createSVGPoint();let a,l,c,m,u;c=s.getCTM();const p=c.a;return t?(a=q(o,t),l=a.matrixTransform(c.inverse()),m=r.translate(l.x,l.y).scale(1/p*e).translate(-l.x,-l.y),u=c.multiply(m)):u=r.scale(e),qo(this._viewport,u),u},J.prototype.getSize=function(){return{width:this._container.clientWidth,height:this._container.clientHeight}},J.prototype.getAbsoluteBBox=function(e){const t=this.viewbox();let i;e.waypoints?i=this.getGraphics(e).getBBox():i=e;const s=i.x*t.scale-t.x*t.scale,r=i.y*t.scale-t.y*t.scale,o=i.width*t.scale,a=i.height*t.scale;return{x:s,y:r,width:o,height:a}},J.prototype.resized=function(){delete this._cachedViewbox,this._eventBus.fire("canvas.resized")};var mi="data-element-id";function je(e){this._elements={},this._eventBus=e}je.$inject=["eventBus"],je.prototype.add=function(e,t,i){var s=e.id;this._validateId(s),se(t,mi,s),i&&se(i,mi,s),this._elements[s]={element:e,gfx:t,secondaryGfx:i}},je.prototype.remove=function(e){var t=this._elements,i=e.id||e,s=i&&t[i];s&&(se(s.gfx,mi,""),s.secondaryGfx&&se(s.secondaryGfx,mi,""),delete t[i])},je.prototype.updateId=function(e,t){this._validateId(t),typeof e=="string"&&(e=this.get(e)),this._eventBus.fire("element.updateId",{element:e,newId:t});var i=this.getGraphics(e),s=this.getGraphics(e,!0);this.remove(e),e.id=t,this.add(e,i,s)},je.prototype.updateGraphics=function(e,t,i){var s=e.id||e,r=this._elements[s];return i?r.secondaryGfx=t:r.gfx=t,t&&se(t,mi,s),t},je.prototype.get=function(e){var t;typeof e=="string"?t=e:t=e&&se(e,mi);var i=this._elements[t];return i&&i.element},je.prototype.filter=function(e){var t=[];return this.forEach(function(i,s){e(i,s)&&t.push(i)}),t},je.prototype.find=function(e){for(var t=this._elements,i=Object.keys(t),s=0;s<i.length;s++){var r=i[s],o=t[r],a=o.element,l=o.gfx;if(e(a,l))return a}},je.prototype.getAll=function(){return this.filter(function(e){return e})},je.prototype.forEach=function(e){var t=this._elements;Object.keys(t).forEach(function(i){var s=t[i],r=s.element,o=s.gfx;return e(r,o)})},je.prototype.getGraphics=function(e,t){var i=e.id||e,s=this._elements[i];return s&&(t?s.secondaryGfx:s.gfx)},je.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 tu(e,t,i,s){var r=i.inverse;return Object.defineProperty(e,"remove",{value:function(o){var a=this.indexOf(o);return a!==-1&&(this.splice(a,1),t.unset(o,r,s)),o}}),Object.defineProperty(e,"contains",{value:function(o){return this.indexOf(o)!==-1}}),Object.defineProperty(e,"add",{value:function(o,a){var l=this.indexOf(o);if(typeof a>"u"){if(l!==-1)return;a=this.length}l!==-1&&this.splice(l,1),this.splice(a,0,o),l===-1&&t.set(o,r,s)}}),Object.defineProperty(e,"__refs_collection",{value:!0}),e}function iu(e){return e.__refs_collection===!0}function nu(e,t){return Object.prototype.hasOwnProperty.call(e,t.name||t)}function Jo(e,t,i){var s=tu(i[t.name]||[],e,t,i);Object.defineProperty(i,t.name,{enumerable:t.enumerable,value:s}),s.length&&s.forEach(function(r){e.set(r,t.inverse,i)})}function su(e,t,i){var s=t.inverse,r=i[t.name];Object.defineProperty(i,t.name,{configurable:t.configurable,enumerable:t.enumerable,get:function(){return r},set:function(o){if(o!==r){var a=r;r=null,a&&e.unset(a,s,i),r=o,e.set(r,s,i)}}})}function ze(e,t){if(!(this instanceof ze))return new ze(e,t);e.inverse=t,t.inverse=e,this.props={},this.props[e.name]=e,this.props[t.name]=t}ze.prototype.bind=function(e,t){if(typeof t=="string"){if(!this.props[t])throw new Error("no property <"+t+"> in ref");t=this.props[t]}t.collection?Jo(this,t,e):su(this,t,e)},ze.prototype.ensureRefsCollection=function(e,t){var i=e[t.name];return iu(i)||Jo(this,t,e),i},ze.prototype.ensureBound=function(e,t){nu(e,t)||this.bind(e,t)},ze.prototype.unset=function(e,t,i){e&&(this.ensureBound(e,t),t.collection?this.ensureRefsCollection(e,t).remove(i):e[t.name]=void 0)},ze.prototype.set=function(e,t,i){e&&(this.ensureBound(e,t),t.collection?this.ensureRefsCollection(e,t).add(i):e[t.name]=i)};var Ns=new ze({name:"children",enumerable:!0,collection:!0},{name:"parent"}),zo=new ze({name:"labels",enumerable:!0,collection:!0},{name:"labelTarget"}),Ko=new ze({name:"attachers",collection:!0},{name:"host"}),Ho=new ze({name:"outgoing",collection:!0},{name:"source"}),Yo=new ze({name:"incoming",collection:!0},{name:"target"});function Vi(){Object.defineProperty(this,"businessObject",{writable:!0}),Object.defineProperty(this,"label",{get:function(){return this.labels[0]},set:function(e){var t=this.label,i=this.labels;!e&&t?i.remove(t):i.add(e,0)}}),Ns.bind(this,"parent"),zo.bind(this,"labels"),Ho.bind(this,"outgoing"),Yo.bind(this,"incoming")}function Ri(){Vi.call(this),Ns.bind(this,"children"),Ko.bind(this,"host"),Ko.bind(this,"attachers")}rt(Ri,Vi);function Wo(){Vi.call(this),Ns.bind(this,"children")}rt(Wo,Ri);function Xo(){Ri.call(this),zo.bind(this,"labelTarget")}rt(Xo,Ri);function Zo(){Vi.call(this),Ho.bind(this,"source"),Yo.bind(this,"target")}rt(Zo,Vi);var ru={connection:Zo,shape:Ri,label:Xo,root:Wo};function ou(e,t){var i=ru[e];if(!i)throw new Error("unknown type: <"+e+">");return q(new i,t)}function fi(){this._uid=12}fi.prototype.createRoot=function(e){return this.create("root",e)},fi.prototype.createLabel=function(e){return this.create("label",e)},fi.prototype.createShape=function(e){return this.create("shape",e)},fi.prototype.createConnection=function(e){return this.create("connection",e)},fi.prototype.create=function(e,t){return t=q({},t||{}),t.id||(t.id=e+"_"+this._uid++),ou(e,t)};var bn="__fn",$o=1e3,au=Array.prototype.slice;function Re(){this._listeners={},this.on("diagram.destroy",1,this._destroy,this)}Re.prototype.on=function(e,t,i,s){if(e=Xe(e)?e:[e],Tt(t)&&(s=i,i=t,t=$o),!Nt(t))throw new Error("priority must be a number");var r=i;s&&(r=It(i,s),r[bn]=i[bn]||i);var o=this;e.forEach(function(a){o._addListener(a,{priority:t,callback:r,next:null})})},Re.prototype.once=function(e,t,i,s){var r=this;if(Tt(t)&&(s=i,i=t,t=$o),!Nt(t))throw new Error("priority must be a number");function o(){o.__isTomb=!0;var a=i.apply(s,arguments);return r.off(e,o),a}o[bn]=i,this.on(e,t,o)},Re.prototype.off=function(e,t){e=Xe(e)?e:[e];var i=this;e.forEach(function(s){i._removeListener(s,t)})},Re.prototype.createEvent=function(e){var t=new Li;return t.init(e),t},Re.prototype.fire=function(e,t){var i,s,r,o;if(o=au.call(arguments),typeof e=="object"&&(t=e,e=t.type),!e)throw new Error("no event type specified");if(s=this._listeners[e],!!s){t instanceof Li?i=t:i=this.createEvent(t),o[0]=i;var a=i.type;e!==a&&(i.type=e);try{r=this._invokeListeners(i,o,s)}finally{e!==a&&(i.type=a)}return r===void 0&&i.defaultPrevented&&(r=!1),r}},Re.prototype.handleError=function(e){return this.fire("error",{error:e})===!1},Re.prototype._destroy=function(){this._listeners={}},Re.prototype._invokeListeners=function(e,t,i){for(var s;i&&!e.cancelBubble;)s=this._invokeListener(e,t,i),i=i.next;return s},Re.prototype._invokeListener=function(e,t,i){var s;if(i.callback.__isTomb)return s;try{s=lu(i.callback,t),s!==void 0&&(e.returnValue=s,e.stopPropagation()),s===!1&&e.preventDefault()}catch(r){if(!this.handleError(r))throw console.error("unhandled error in event listener",r),r}return s},Re.prototype._addListener=function(e,t){var i=this._getListeners(e),s;if(!i){this._setListeners(e,t);return}for(;i;){if(i.priority<t.priority){t.next=i,s?s.next=t:this._setListeners(e,t);return}s=i,i=i.next}s.next=t},Re.prototype._getListeners=function(e){return this._listeners[e]},Re.prototype._setListeners=function(e,t){this._listeners[e]=t},Re.prototype._removeListener=function(e,t){var i=this._getListeners(e),s,r,o;if(!t){this._setListeners(e,null);return}for(;i;)s=i.next,o=i.callback,(o===t||o[bn]===t)&&(r?r.next=s:this._setListeners(e,s)),r=i,i=s};function Li(){}Li.prototype.stopPropagation=function(){this.cancelBubble=!0},Li.prototype.preventDefault=function(){this.defaultPrevented=!0},Li.prototype.init=function(e){q(this,e||{})};function lu(e,t){return e.apply(null,t)}function cu(e){return e.childNodes[0]}function du(e){return e.parentNode.childNodes[1]}function Ge(e,t){this._eventBus=e,this._elementRegistry=t}Ge.$inject=["eventBus","elementRegistry"],Ge.prototype._getChildrenContainer=function(e){var t=this._elementRegistry.getGraphics(e),i;return e.parent?(i=du(t),i||(i=re("g"),Qe(i).add("djs-children"),he(t.parentNode,i))):i=t,i},Ge.prototype._clear=function(e){var t=cu(e);return uo(t),t},Ge.prototype._createContainer=function(e,t,i,s){var r=re("g");Qe(r).add("djs-group"),typeof i<"u"?ea(r,t,t.childNodes[i]):he(t,r);var o=re("g");Qe(o).add("djs-element"),Qe(o).add("djs-"+e),s&&Qe(o).add("djs-frame"),he(r,o);var a=re("g");return Qe(a).add("djs-visual"),he(o,a),o},Ge.prototype.create=function(e,t,i){var s=this._getChildrenContainer(t.parent);return this._createContainer(e,s,i,Bo(t))},Ge.prototype.updateContainments=function(e){var t=this,i=this._elementRegistry,s;s=ci(e,function(r,o){return o.parent&&(r[o.parent.id]=o.parent),r},{}),R(s,function(r){var o=r.children;if(!!o){var a=t._getChildrenContainer(r);R(o.slice().reverse(),function(l){var c=i.getGraphics(l);ea(c.parentNode,a)})}})},Ge.prototype.drawShape=function(e,t,i={}){var s=this._eventBus;return s.fire("render.shape",{gfx:e,element:t,attrs:i})},Ge.prototype.getShapePath=function(e){var t=this._eventBus;return t.fire("render.getShapePath",e)},Ge.prototype.drawConnection=function(e,t,i={}){var s=this._eventBus;return s.fire("render.connection",{gfx:e,element:t,attrs:i})},Ge.prototype.getConnectionPath=function(e){var t=this._eventBus;return t.fire("render.getConnectionPath",e)},Ge.prototype.update=function(e,t,i){if(!!t.parent){var s=this._clear(i);if(e==="shape")this.drawShape(s,t),Ao(i,t.x,t.y);else if(e==="connection")this.drawConnection(s,t);else throw new Error("unknown type: "+e);t.hidden?se(i,"display","none"):se(i,"display","block")}},Ge.prototype.remove=function(e){var t=this._elementRegistry.getGraphics(e);Si(t.parentNode)};function ea(e,t,i){var s=i||t.firstChild;e!==s&&t.insertBefore(e,s)}const pu={__depends__:[Kh],__init__:["canvas"],canvas:["type",J],elementRegistry:["type",je],elementFactory:["type",fi],eventBus:["type",Re],graphicsFactory:["type",Ge]};function hu(e){var t=new Uo(e);return t.init(),t}function uu(e){e=e||{};var t={config:["value",e]},i=[t,pu].concat(e.modules||[]);return hu(i)}function gi(e,t){this._injector=t=t||uu(e),this.get=t.get,this.invoke=t.invoke,this.get("eventBus").fire("diagram.init")}gi.prototype.destroy=function(){this.get("eventBus").fire("diagram.destroy")},gi.prototype.clear=function(){this.get("eventBus").fire("diagram.clear")};function Ts(){}Ts.prototype.get=function(e){return this.$model.properties.get(this,e)},Ts.prototype.set=function(e,t){this.$model.properties.set(this,e,t)};function ta(e,t){this.model=e,this.properties=t}ta.prototype.createType=function(e){var t=this.model,i=this.properties,s=Object.create(Ts.prototype);R(e.properties,function(a){!a.isMany&&a.default!==void 0&&(s[a.name]=a.default)}),i.defineModel(s,t),i.defineDescriptor(s,e);var r=e.ns.name;function o(a){i.define(this,"$type",{value:r,enumerable:!0}),i.define(this,"$attrs",{value:{}}),i.define(this,"$parent",{writable:!0}),R(a,It(function(l,c){this.set(c,l)},this))}return o.prototype=s,o.hasType=s.$instanceOf=this.model.hasType,i.defineModel(o,t),i.defineDescriptor(o,e),o};var mu={String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0},ia={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 Is(e,t){var i=ia[e];return i?i(t):t}function Bs(e){return!!mu[e]}function na(e){return!!ia[e]}function we(e,t){var i=e.split(/:/),s,r;if(i.length===1)s=e,r=t;else if(i.length===2)s=i[1],r=i[0];else throw new Error("expected <prefix:localName> or <localName>, got "+e);return e=(r?r+":":"")+s,{name:e,prefix:r,localName:s}}function _e(e){this.ns=e,this.name=e.name,this.allTypes=[],this.allTypesByName={},this.properties=[],this.propertiesByName={}}_e.prototype.build=function(){return Nd(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])},_e.prototype.addProperty=function(e,t,i){typeof t=="boolean"&&(i=t,t=void 0),this.addNamedProperty(e,i!==!1);var s=this.properties;t!==void 0?s.splice(t,0,e):s.push(e)},_e.prototype.replaceProperty=function(e,t,i){var s=e.ns,r=this.properties,o=this.propertiesByName,a=e.name!==t.name;if(e.isId){if(!t.isId)throw new Error("property <"+t.ns.name+"> must be id property to refine <"+e.ns.name+">");this.setIdProperty(t,!1)}if(e.isBody){if(!t.isBody)throw new Error("property <"+t.ns.name+"> must be body property to refine <"+e.ns.name+">");this.setBodyProperty(t,!1)}var l=r.indexOf(e);if(l===-1)throw new Error("property <"+s.name+"> not found in property list");r.splice(l,1),this.addProperty(t,i?void 0:l,a),o[s.name]=o[s.localName]=t},_e.prototype.redefineProperty=function(e,t,i){var s=e.ns.prefix,r=t.split("#"),o=we(r[0],s),a=we(r[1],o.prefix).name,l=this.propertiesByName[a];if(l)this.replaceProperty(l,e,i);else throw new Error("refined property <"+a+"> not found");delete e.redefines},_e.prototype.addNamedProperty=function(e,t){var i=e.ns,s=this.propertiesByName;t&&(this.assertNotDefined(e,i.name),this.assertNotDefined(e,i.localName)),s[i.name]=s[i.localName]=e},_e.prototype.removeNamedProperty=function(e){var t=e.ns,i=this.propertiesByName;delete i[t.name],delete i[t.localName]},_e.prototype.setBodyProperty=function(e,t){if(t&&this.bodyProperty)throw new Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+e.ns.name+">)");this.bodyProperty=e},_e.prototype.setIdProperty=function(e,t){if(t&&this.idProperty)throw new Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+e.ns.name+">)");this.idProperty=e},_e.prototype.assertNotTrait=function(e){if((e.extends||[]).length)throw new Error(`cannot create <${e.name}> extending <${e.extends}>`)},_e.prototype.assertNotDefined=function(e,t){var i=e.name,s=this.propertiesByName[i];if(s)throw new Error("property <"+i+"> already defined; override of <"+s.definedBy.ns.name+"#"+s.ns.name+"> by <"+e.definedBy.ns.name+"#"+e.ns.name+"> not allowed without redefines")},_e.prototype.hasProperty=function(e){return this.propertiesByName[e]},_e.prototype.addTrait=function(e,t){t&&this.assertNotTrait(e);var i=this.allTypesByName,s=this.allTypes,r=e.name;r in i||(R(e.properties,It(function(o){o=q({},o,{name:o.ns.localName,inherited:t}),Object.defineProperty(o,"definedBy",{value:e});var a=o.replaces,l=o.redefines;a||l?this.redefineProperty(o,a||l,a):(o.isBody&&this.setBodyProperty(o),o.isId&&this.setIdProperty(o),this.addProperty(o))},this)),s.push(e),i[r]=e)};function Pt(e,t){this.packageMap={},this.typeMap={},this.packages=[],this.properties=t,R(e,It(this.registerPackage,this))}Pt.prototype.getPackage=function(e){return this.packageMap[e]},Pt.prototype.getPackages=function(){return this.packages},Pt.prototype.registerPackage=function(e){e=q({},e);var t=this.packageMap;sa(t,e,"prefix"),sa(t,e,"uri"),R(e.types,It(function(i){this.registerType(i,e)},this)),t[e.uri]=t[e.prefix]=e,this.packages.push(e)},Pt.prototype.registerType=function(e,t){e=q({},e,{superClass:(e.superClass||[]).slice(),extends:(e.extends||[]).slice(),properties:(e.properties||[]).slice(),meta:q(e.meta||{})});var i=we(e.name,t.prefix),s=i.name,r={};R(e.properties,It(function(o){var a=we(o.name,i.prefix),l=a.name;Bs(o.type)||(o.type=we(o.type,a.prefix).name),q(o,{ns:a,name:l}),r[l]=o},this)),q(e,{ns:i,name:s,propertiesByName:r}),R(e.extends,It(function(o){var a=we(o,i.prefix),l=this.typeMap[a.name];l.traits=l.traits||[],l.traits.push(s)},this)),this.definePackage(e,t),this.typeMap[s]=e},Pt.prototype.mapTypes=function(e,t,i){var s=Bs(e.name)?{name:e.name}:this.typeMap[e.name],r=this;function o(c,m){var u=we(c,Bs(c)?"":e.prefix);r.mapTypes(u,t,m)}function a(c){return o(c,!0)}function l(c){return o(c,!1)}if(!s)throw new Error("unknown type <"+e.name+">");R(s.superClass,i?a:l),t(s,!i),R(s.traits,a)},Pt.prototype.getEffectiveDescriptor=function(e){var t=we(e),i=new _e(t);this.mapTypes(t,function(r,o){i.addTrait(r,o)});var s=i.build();return this.definePackage(s,s.allTypes[s.allTypes.length-1].$pkg),s},Pt.prototype.definePackage=function(e,t){this.properties.define(e,"$pkg",{value:t})};function sa(e,t,i){var s=t[i];if(s in e)throw new Error("package with "+i+" <"+s+"> already defined")}function Wt(e){this.model=e}Wt.prototype.set=function(e,t,i){if(!Ze(t)||!t.length)throw new TypeError("property name must be a non-empty string");var s=this.getProperty(e,t),r=s&&s.name;fu(i)?s?delete e[r]:delete e.$attrs[xs(t)]:s?r in e?e[r]=i:ra(e,s,i):e.$attrs[xs(t)]=i},Wt.prototype.get=function(e,t){var i=this.getProperty(e,t);if(!i)return e.$attrs[xs(t)];var s=i.name;return!e[s]&&i.isMany&&ra(e,i,[]),e[s]},Wt.prototype.define=function(e,t,i){if(!i.writable){var s=i.value;i=q({},i,{get:function(){return s}}),delete i.value}Object.defineProperty(e,t,i)},Wt.prototype.defineDescriptor=function(e,t){this.define(e,"$descriptor",{value:t})},Wt.prototype.defineModel=function(e,t){this.define(e,"$model",{value:t})},Wt.prototype.getProperty=function(e,t){var i=this.model,s=i.getPropertyDescriptor(e,t);if(s)return s;if(t.includes(":"))return null;const r=i.config.strict;if(typeof r<"u"){const o=new TypeError(`unknown property <${t}> on <${e.$type}>`);if(r)throw o;typeof console<"u"}return null};function fu(e){return typeof e>"u"}function ra(e,t,i){Object.defineProperty(e,t.name,{enumerable:!t.isReference,writable:!0,value:i,configurable:!0})}function xs(e){return e.replace(/^:/,"")}function Ke(e,t={}){this.properties=new Wt(this),this.factory=new ta(this,this.properties),this.registry=new Pt(e,this.properties),this.typeCache={},this.config=t}Ke.prototype.create=function(e,t){var i=this.getType(e);if(!i)throw new Error("unknown type <"+e+">");return new i(t)},Ke.prototype.getType=function(e){var t=this.typeCache,i=Ze(e)?e:e.ns.name,s=t[i];return s||(e=this.registry.getEffectiveDescriptor(i),s=t[i]=this.factory.createType(e)),s},Ke.prototype.createAny=function(e,t,i){var s=we(e),r={$type:e,$instanceOf:function(a){return a===this.$type},get:function(a){return this[a]},set:function(a,l){wd(this,[a],l)}},o={name:e,isGeneric:!0,ns:{prefix:s.prefix,localName:s.localName,uri:t}};return this.properties.defineDescriptor(r,o),this.properties.defineModel(r,this),this.properties.define(r,"get",{enumerable:!1,writable:!0}),this.properties.define(r,"set",{enumerable:!1,writable:!0}),this.properties.define(r,"$parent",{enumerable:!1,writable:!0}),this.properties.define(r,"$instanceOf",{enumerable:!1,writable:!0}),R(i,function(a,l){Ut(a)&&a.value!==void 0?r[a.name]=a.value:r[l]=a}),r},Ke.prototype.getPackage=function(e){return this.registry.getPackage(e)},Ke.prototype.getPackages=function(){return this.registry.getPackages()},Ke.prototype.getElementDescriptor=function(e){return e.$descriptor},Ke.prototype.hasType=function(e,t){t===void 0&&(t=e,e=this);var i=e.$model.getElementDescriptor(e);return t in i.allTypesByName},Ke.prototype.getPropertyDescriptor=function(e,t){return this.getElementDescriptor(e).propertiesByName[t]},Ke.prototype.getTypeDescriptor=function(e){return this.registry.typeMap[e]};var oa=String.fromCharCode,gu=Object.prototype.hasOwnProperty,yu=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/ig,vi={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};Object.keys(vi).forEach(function(e){vi[e.toUpperCase()]=vi[e]});function Au(e,t,i,s){return s?gu.call(vi,s)?vi[s]:"&"+s+";":oa(t||parseInt(i,16))}function Xt(e){return e.length>3&&e.indexOf("&")!==-1?e.replace(yu,Au):e}var ku="http://www.w3.org/2001/XMLSchema-instance",Eu="xsi",aa="xsi:type",la="non-whitespace outside of root node";function yi(e){return new Error(e)}function ca(e){return"missing namespace for prefix <"+e+">"}function Cn(e){return{get:e,enumerable:!0}}function bu(e){var t={},i;for(i in e)t[i]=e[i];return t}function Ss(e){return e+"$uri"}function Cu(e){var t={},i,s;for(i in e)s=e[i],t[s]=s,t[Ss(s)]=i;return t}function da(){return{line:0,column:0}}function wu(e){throw e}function pa(e){if(!this)return new pa(e);var t=e&&e.proxy,i,s,r,o,a=wu,l,c,m,u,p=da,y=!1,k=!1,C=null,v=!1,F;function z(E){E instanceof Error||(E=yi(E)),C=E,a(E,p)}function Q(E){!l||(E instanceof Error||(E=yi(E)),l(E,p))}this.on=function(E,x){if(typeof x!="function")throw yi("required args <name, cb>");switch(E){case"openTag":s=x;break;case"text":i=x;break;case"closeTag":r=x;break;case"error":a=x;break;case"warn":l=x;break;case"cdata":o=x;break;case"attention":u=x;break;case"question":m=x;break;case"comment":c=x;break;default:throw yi("unsupported event: "+E)}return this},this.ns=function(E){if(typeof E>"u"&&(E={}),typeof E!="object")throw yi("required args <nsMap={}>");var x={},S;for(S in E)x[S]=E[S];return x[ku]=Eu,k=!0,F=x,this},this.parse=function(E){if(typeof E!="string")throw yi("required args <xml=string>");return C=null,I(E),p=da,v=!1,C},this.stop=function(){v=!0};function I(E){var x=k?[]:null,S=k?Cu(F):null,D,w=[],O=0,B=!1,V=!1,M=0,G=0,K,it,ie,X,lt,ct,ge,ft,gt,N="",T=0,L;function ce(){if(L!==null)return L;var de,f,d,h=k&&S.xmlns,g=k&&y?[]:null,A=T,b=N,U=b.length,Z,W,$,ye,ee,Ot={},xn={},Le,_,te;e:for(;A<U;A++)if(Le=!1,_=b.charCodeAt(A),!(_===32||_<14&&_>8)){for((_<65||_>122||_>90&&_<97)&&_!==95&&_!==58&&(Q("illegal first char attribute name"),Le=!0),te=A+1;te<U;te++)if(_=b.charCodeAt(te),!(_>96&&_<123||_>64&&_<91||_>47&&_<59||_===46||_===45||_===95)){if(_===32||_<14&&_>8){Q("missing attribute value"),A=te;continue e}if(_===61)break;Q("illegal attribute name char"),Le=!0}if(ee=b.substring(A,te),ee==="xmlns:xmlns"&&(Q("illegal declaration of xmlns"),Le=!0),_=b.charCodeAt(te+1),_===34)te=b.indexOf('"',A=te+2),te===-1&&(te=b.indexOf("'",A),te!==-1&&(Q("attribute value quote missmatch"),Le=!0));else if(_===39)te=b.indexOf("'",A=te+2),te===-1&&(te=b.indexOf('"',A),te!==-1&&(Q("attribute value quote missmatch"),Le=!0));else for(Q("missing attribute value quotes"),Le=!0,te=te+1;te<U&&(_=b.charCodeAt(te+1),!(_===32||_<14&&_>8));te++);for(te===-1&&(Q("missing closing quotes"),te=U,Le=!0),Le||($=b.substring(A,te)),A=te;te+1<U&&(_=b.charCodeAt(te+1),!(_===32||_<14&&_>8));te++)A===te&&(Q("illegal character after attribute end"),Le=!0);if(A=te+1,Le)continue e;if(ee in xn){Q("attribute <"+ee+"> already defined");continue}if(xn[ee]=!0,!k){Ot[ee]=$;continue}if(y){if(W=ee==="xmlns"?"xmlns":ee.charCodeAt(0)===120&&ee.substr(0,6)==="xmlns:"?ee.substr(6):null,W!==null){if(de=Xt($),f=Ss(W),ye=F[de],!ye){if(W==="xmlns"||f in S&&S[f]!==de)do ye="ns"+O++;while(typeof S[ye]<"u");else ye=W;F[de]=ye}S[W]!==ye&&(Z||(S=bu(S),Z=!0),S[W]=ye,W==="xmlns"&&(S[Ss(ye)]=de,h=ye),S[f]=de),Ot[ee]=$;continue}g.push(ee,$);continue}if(_=ee.indexOf(":"),_===-1){Ot[ee]=$;continue}if(!(d=S[ee.substring(0,_)])){Q(ca(ee.substring(0,_)));continue}ee=h===d?ee.substr(_+1):d+ee.substr(_),ee===aa&&(_=$.indexOf(":"),_!==-1?(d=$.substring(0,_),d=S[d]||d,$=d+$.substring(_)):$=h+":"+$),Ot[ee]=$}if(y)for(A=0,U=g.length;A<U;A++){if(ee=g[A++],$=g[A],_=ee.indexOf(":"),_!==-1){if(!(d=S[ee.substring(0,_)])){Q(ca(ee.substring(0,_)));continue}ee=h===d?ee.substr(_+1):d+ee.substr(_),ee===aa&&(_=$.indexOf(":"),_!==-1?(d=$.substring(0,_),d=S[d]||d,$=d+$.substring(_)):$=h+":"+$)}Ot[ee]=$}return L=Ot}function ke(){for(var de=/(\r\n|\r|\n)/g,f=0,d=0,h=0,g=G,A,b;M>=h&&(A=de.exec(E),!(!A||(g=A[0].length+A.index,g>M)));)f+=1,h=g;return M==-1?(d=g,b=E.substring(G)):G===0?b=E.substring(G,M):(d=M-h,b=G==-1?E.substring(M):E.substring(M,G+1)),{data:b,line:f,column:d}}for(p=ke,t&&(gt=Object.create({},{name:Cn(function(){return ge}),originalName:Cn(function(){return ft}),attrs:Cn(ce),ns:Cn(function(){return S})}));G!==-1;){if(E.charCodeAt(G)===60?M=G:M=E.indexOf("<",G),M===-1){if(w.length)return z("unexpected end of file");if(G===0)return z("missing start tag");G<E.length&&E.substring(G).trim()&&Q(la);return}if(G!==M){if(w.length){if(i&&(i(E.substring(G,M),Xt,p),v))return}else if(E.substring(G,M).trim()&&(Q(la),v))return}if(X=E.charCodeAt(M+1),X===33){if(ie=E.charCodeAt(M+2),ie===91&&E.substr(M+3,6)==="CDATA["){if(G=E.indexOf("]]>",M),G===-1)return z("unclosed cdata");if(o&&(o(E.substring(M+9,G),p),v))return;G+=3;continue}if(ie===45&&E.charCodeAt(M+3)===45){if(G=E.indexOf("-->",M),G===-1)return z("unclosed comment");if(c&&(c(E.substring(M+4,G),Xt,p),v))return;G+=3;continue}}if(X===63){if(G=E.indexOf("?>",M),G===-1)return z("unclosed question");if(m&&(m(E.substring(M,G+2),p),v))return;G+=2;continue}for(K=M+1;;K++){if(lt=E.charCodeAt(K),isNaN(lt))return G=-1,z("unclosed tag");if(lt===34)ie=E.indexOf('"',K+1),K=ie!==-1?ie:K;else if(lt===39)ie=E.indexOf("'",K+1),K=ie!==-1?ie:K;else if(lt===62){G=K;break}}if(X===33){if(u&&(u(E.substring(M,G+1),Xt,p),v))return;G+=1;continue}if(L={},X===47){if(B=!1,V=!0,!w.length)return z("missing open tag");if(K=ge=w.pop(),ie=M+2+K.length,E.substring(M+2,ie)!==K)return z("closing tag mismatch");for(;ie<G;ie++)if(X=E.charCodeAt(ie),!(X===32||X>8&&X<14))return z("close tag")}else{if(E.charCodeAt(G-1)===47?(K=ge=E.substring(M+1,G-1),B=!0,V=!0):(K=ge=E.substring(M+1,G),B=!0,V=!1),!(X>96&&X<123||X>64&&X<91||X===95||X===58))return z("illegal first char nodeName");for(ie=1,it=K.length;ie<it;ie++)if(X=K.charCodeAt(ie),!(X>96&&X<123||X>64&&X<91||X>47&&X<59||X===45||X===95||X==46)){if(X===32||X<14&&X>8){ge=K.substring(0,ie),L=null;break}return z("invalid nodeName")}V||w.push(ge)}if(k){if(D=S,B&&(V||x.push(D),L===null&&(y=K.indexOf("xmlns",ie)!==-1)&&(T=ie,N=K,ce(),y=!1)),ft=ge,X=ge.indexOf(":"),X!==-1){if(ct=S[ge.substring(0,X)],!ct)return z("missing namespace on <"+ft+">");ge=ge.substr(X+1)}else ct=S.xmlns;ct&&(ge=ct+":"+ge)}if(B&&(T=ie,N=K,s&&(t?s(gt,Xt,V,p):s(ge,ce,Xt,V,p),v)))return;if(V){if(r&&(r(t?gt:ge,Xt,B,p),v))return;k&&(B?S=D:S=x.pop())}G+=1}}}function ha(e){return e.xml&&e.xml.tagAlias==="lowerCase"}var Nu={xsi:"http://www.w3.org/2001/XMLSchema-instance",xml:"http://www.w3.org/XML/1998/namespace"},wn="xsi:type";function ua(e){return e.xml&&e.xml.serialize}function ma(e){return ua(e)===wn}function Tu(e){return ua(e)==="property"}function Iu(e){return e.charAt(0).toUpperCase()+e.slice(1)}function fa(e,t){return ha(t)?e.prefix+":"+Iu(e.localName):e.name}function Bu(e,t){var i=e.name,s=e.localName,r=t.xml&&t.xml.typePrefix;return r&&s.indexOf(r)===0?e.prefix+":"+s.slice(r.length):i}function xu(e,t){var i=we(e),s=t.getPackage(i.prefix);return Bu(i,s)}function Mt(e){return new Error(e)}function mt(e){return e.$descriptor}function Su(e){q(this,e),this.elementsById={},this.references=[],this.warnings=[],this.addReference=function(t){this.references.push(t)},this.addElement=function(t){if(!t)throw Mt("expected element");var i=this.elementsById,s=mt(t),r=s.idProperty,o;if(r&&(o=t.get(r.name),o)){if(!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(o))throw new Error("illegal ID <"+o+">");if(i[o])throw Mt("duplicate ID <"+o+">");i[o]=t}},this.addWarning=function(t){this.warnings.push(t)}}function Fi(){}Fi.prototype.handleEnd=function(){},Fi.prototype.handleText=function(){},Fi.prototype.handleNode=function(){};function Ds(){}Ds.prototype=Object.create(Fi.prototype),Ds.prototype.handleNode=function(){return this};function Ai(){}Ai.prototype=Object.create(Fi.prototype),Ai.prototype.handleText=function(e){this.body=(this.body||"")+e};function Qi(e,t){this.property=e,this.context=t}Qi.prototype=Object.create(Ai.prototype),Qi.prototype.handleNode=function(e){if(this.element)throw Mt("expected no sub nodes");return this.element=this.createReference(e),this},Qi.prototype.handleEnd=function(){this.element.id=this.body},Qi.prototype.createReference=function(e){return{property:this.property.ns.name,id:""}};function Ps(e,t){this.element=t,this.propertyDesc=e}Ps.prototype=Object.create(Ai.prototype),Ps.prototype.handleEnd=function(){var e=this.body||"",t=this.element,i=this.propertyDesc;e=Is(i.type,e),i.isMany?t.get(i.name).push(e):t.set(i.name,e)};function Nn(){}Nn.prototype=Object.create(Ai.prototype),Nn.prototype.handleNode=function(e){var t=this,i=this.element;return i?t=this.handleChild(e):(i=this.element=this.createElement(e),this.context.addElement(i)),t};function Ne(e,t,i){this.model=e,this.type=e.getType(t),this.context=i}Ne.prototype=Object.create(Nn.prototype),Ne.prototype.addReference=function(e){this.context.addReference(e)},Ne.prototype.handleText=function(e){var t=this.element,i=mt(t),s=i.bodyProperty;if(!s)throw Mt("unexpected body text <"+e+">");Ai.prototype.handleText.call(this,e)},Ne.prototype.handleEnd=function(){var e=this.body,t=this.element,i=mt(t),s=i.bodyProperty;s&&e!==void 0&&(e=Is(s.type,e),t.set(s.name,e))},Ne.prototype.createElement=function(e){var t=e.attributes,i=this.type,s=mt(i),r=this.context,o=new i({}),a=this.model,l;return R(t,function(c,m){var u=s.propertiesByName[m],p;u&&u.isReference?u.isMany?(p=c.split(" "),R(p,function(y){r.addReference({element:o,property:u.ns.name,id:y})})):r.addReference({element:o,property:u.ns.name,id:c}):(u?c=Is(u.type,c):m!=="xmlns"&&(l=we(m,s.ns.prefix),a.getPackage(l.prefix)&&r.addWarning({message:"unknown attribute <"+m+">",element:o,property:m,value:c})),o.set(m,c))}),o},Ne.prototype.getPropertyForNode=function(e){var t=e.name,i=we(t),s=this.type,r=this.model,o=mt(s),a=i.name,l=o.propertiesByName[a],c,m;if(l&&!l.isAttr)return ma(l)&&(c=e.attributes[wn],c)?(c=xu(c,r),m=r.getType(c),q({},l,{effectiveType:mt(m).name})):l;var u=r.getPackage(i.prefix);if(u){if(c=fa(i,u),m=r.getType(c),l=$e(o.properties,function(p){return!p.isVirtual&&!p.isReference&&!p.isAttribute&&m.hasType(p.type)}),l)return q({},l,{effectiveType:mt(m).name})}else if(l=$e(o.properties,function(p){return!p.isReference&&!p.isAttribute&&p.type==="Element"}),l)return l;throw Mt("unrecognized element <"+i.name+">")},Ne.prototype.toString=function(){return"ElementDescriptor["+mt(this.type).name+"]"},Ne.prototype.valueHandler=function(e,t){return new Ps(e,t)},Ne.prototype.referenceHandler=function(e){return new Qi(e,this.context)},Ne.prototype.handler=function(e){return e==="Element"?new ki(this.model,e,this.context):new Ne(this.model,e,this.context)},Ne.prototype.handleChild=function(e){var t,i,s,r;if(t=this.getPropertyForNode(e),s=this.element,i=t.effectiveType||t.type,na(i))return this.valueHandler(t,s);t.isReference?r=this.referenceHandler(t).handleNode(e):r=this.handler(i).handleNode(e);var o=r.element;return o!==void 0&&(t.isMany?s.get(t.name).push(o):s.set(t.name,o),t.isReference?(q(o,{element:s}),this.context.addReference(o)):o.$parent=s),r};function Ms(e,t,i){Ne.call(this,e,t,i)}Ms.prototype=Object.create(Ne.prototype),Ms.prototype.createElement=function(e){var t=e.name,i=we(t),s=this.model,r=this.type,o=s.getPackage(i.prefix),a=o&&fa(i,o)||t;if(!r.hasType(a))throw Mt("unexpected element <"+e.originalName+">");return Ne.prototype.createElement.call(this,e)};function ki(e,t,i){this.model=e,this.context=i}ki.prototype=Object.create(Nn.prototype),ki.prototype.createElement=function(e){var t=e.name,i=we(t),s=i.prefix,r=e.ns[s+"$uri"],o=e.attributes;return this.model.createAny(t,r,o)},ki.prototype.handleChild=function(e){var t=new ki(this.model,"Element",this.context).handleNode(e),i=this.element,s=t.element,r;return s!==void 0&&(r=i.$children=i.$children||[],r.push(s),s.$parent=i),t},ki.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)};function Os(e){e instanceof Ke&&(e={model:e}),q(this,{lax:!1},e)}Os.prototype.fromXML=function(e,t,i){var s=t.rootHandler;t instanceof Ne?(s=t,t={}):typeof t=="string"?(s=this.handler(t),t={}):typeof s=="string"&&(s=this.handler(s));var r=this.model,o=this.lax,a=new Su(q({},t,{rootHandler:s})),l=new pa({proxy:!0}),c=Du();s.context=a,c.push(s);function m(x,S,D){var w=S(),O=w.line,B=w.column,V=w.data;V.charAt(0)==="<"&&V.indexOf(" ")!==-1&&(V=V.slice(0,V.indexOf(" "))+">");var M="unparsable content "+(V?V+" ":"")+`detected
|
|
22
6
|
line: `+O+`
|
|
23
|
-
column: `+
|
|
24
|
-
nested error: `+
|
|
25
|
-
`,
|
|
26
|
-
`),this},this.appendIndent=function(){return t&&e.write(i.join(" ")),this},this.indent=function(){return i.push(""),this},this.unindent=function(){return i.pop(),this}}function Ru(e){e=_({format:!1,preamble:!0},e||{});function t(i,s){var r=s||new Ou,o=new Vu(r,e.format);e.preamble&&o.append(ku);var a=new ae,l=i.$model;if(a.getNamespaces().mapDefaultPrefixes(Lu(l)),a.build(i).serializeTo(o),!s)return r.value}return{toXML:t}}function Lu(e){const t=e.config&&e.config.nsMap||{},i={};for(const s in Fs)i[s]=Fs[s];for(const s in t){const r=t[s];i[r]=s}for(const s of e.getPackages())i[s.prefix]=s.uri;return i}function Vn(e,t){Ye.call(this,e,t)}Vn.prototype=Object.create(Ye.prototype),Vn.prototype.fromXML=function(e,t,i){nt(t)||(i=t,t="bpmn:Definitions");var s=new _s(_({model:this,lax:!0},i)),r=s.handler(t);return s.fromXML(e,r)},Vn.prototype.toXML=function(e,t){var i=new Ru(t);return new Promise(function(s,r){try{var o=i.toXML(e);return s({xml:o})}catch(a){return r(a)}})};var vu="BPMN20",Fu="http://www.omg.org/spec/BPMN/20100524/MODEL",Qu="bpmn",ju=[],Uu=[{name:"Interface",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"operations",type:"Operation",isMany:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"Operation",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"inMessageRef",type:"Message",isReference:!0},{name:"outMessageRef",type:"Message",isReference:!0},{name:"errorRef",type:"Error",isMany:!0,isReference:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"EndPoint",superClass:["RootElement"]},{name:"Auditing",superClass:["BaseElement"]},{name:"GlobalTask",superClass:["CallableElement"],properties:[{name:"resources",type:"ResourceRole",isMany:!0}]},{name:"Monitoring",superClass:["BaseElement"]},{name:"Performer",superClass:["ResourceRole"]},{name:"Process",superClass:["FlowElementsContainer","CallableElement"],properties:[{name:"processType",type:"ProcessType",isAttr:!0},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"properties",type:"Property",isMany:!0},{name:"laneSets",isMany:!0,replaces:"FlowElementsContainer#laneSets",type:"LaneSet"},{name:"flowElements",isMany:!0,replaces:"FlowElementsContainer#flowElements",type:"FlowElement"},{name:"artifacts",type:"Artifact",isMany:!0},{name:"resources",type:"ResourceRole",isMany:!0},{name:"correlationSubscriptions",type:"CorrelationSubscription",isMany:!0},{name:"supports",type:"Process",isMany:!0,isReference:!0},{name:"definitionalCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"isExecutable",isAttr:!0,type:"Boolean"}]},{name:"LaneSet",superClass:["BaseElement"],properties:[{name:"lanes",type:"Lane",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Lane",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"partitionElementRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"partitionElement",type:"BaseElement"},{name:"flowNodeRef",type:"FlowNode",isMany:!0,isReference:!0},{name:"childLaneSet",type:"LaneSet",xml:{serialize:"xsi:type"}}]},{name:"GlobalManualTask",superClass:["GlobalTask"]},{name:"ManualTask",superClass:["Task"]},{name:"UserTask",superClass:["Task"],properties:[{name:"renderings",type:"Rendering",isMany:!0},{name:"implementation",isAttr:!0,type:"String"}]},{name:"Rendering",superClass:["BaseElement"]},{name:"HumanPerformer",superClass:["Performer"]},{name:"PotentialOwner",superClass:["HumanPerformer"]},{name:"GlobalUserTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"renderings",type:"Rendering",isMany:!0}]},{name:"Gateway",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"gatewayDirection",type:"GatewayDirection",default:"Unspecified",isAttr:!0}]},{name:"EventBasedGateway",superClass:["Gateway"],properties:[{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"eventGatewayType",type:"EventBasedGatewayType",isAttr:!0,default:"Exclusive"}]},{name:"ComplexGateway",superClass:["Gateway"],properties:[{name:"activationCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ExclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"InclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ParallelGateway",superClass:["Gateway"]},{name:"RootElement",isAbstract:!0,superClass:["BaseElement"]},{name:"Relationship",superClass:["BaseElement"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"direction",type:"RelationshipDirection",isAttr:!0},{name:"source",isMany:!0,isReference:!0,type:"Element"},{name:"target",isMany:!0,isReference:!0,type:"Element"}]},{name:"BaseElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,type:"String",isId:!0},{name:"documentation",type:"Documentation",isMany:!0},{name:"extensionDefinitions",type:"ExtensionDefinition",isMany:!0,isReference:!0},{name:"extensionElements",type:"ExtensionElements"}]},{name:"Extension",properties:[{name:"mustUnderstand",default:!1,isAttr:!0,type:"Boolean"},{name:"definition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"extensionAttributeDefinitions",type:"ExtensionAttributeDefinition",isMany:!0}]},{name:"ExtensionAttributeDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"type",isAttr:!0,type:"String"},{name:"isReference",default:!1,isAttr:!0,type:"Boolean"},{name:"extensionDefinition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionElements",properties:[{name:"valueRef",isAttr:!0,isReference:!0,type:"Element"},{name:"values",type:"Element",isMany:!0},{name:"extensionAttributeDefinition",type:"ExtensionAttributeDefinition",isAttr:!0,isReference:!0}]},{name:"Documentation",superClass:["BaseElement"],properties:[{name:"text",type:"String",isBody:!0},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Event",isAbstract:!0,superClass:["FlowNode","InteractionNode"],properties:[{name:"properties",type:"Property",isMany:!0}]},{name:"IntermediateCatchEvent",superClass:["CatchEvent"]},{name:"IntermediateThrowEvent",superClass:["ThrowEvent"]},{name:"EndEvent",superClass:["ThrowEvent"]},{name:"StartEvent",superClass:["CatchEvent"],properties:[{name:"isInterrupting",default:!0,isAttr:!0,type:"Boolean"}]},{name:"ThrowEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"inputSet",type:"InputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"CatchEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"parallelMultiple",isAttr:!0,type:"Boolean",default:!1},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"outputSet",type:"OutputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"BoundaryEvent",superClass:["CatchEvent"],properties:[{name:"cancelActivity",default:!0,isAttr:!0,type:"Boolean"},{name:"attachedToRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"EventDefinition",isAbstract:!0,superClass:["RootElement"]},{name:"CancelEventDefinition",superClass:["EventDefinition"]},{name:"ErrorEventDefinition",superClass:["EventDefinition"],properties:[{name:"errorRef",type:"Error",isAttr:!0,isReference:!0}]},{name:"TerminateEventDefinition",superClass:["EventDefinition"]},{name:"EscalationEventDefinition",superClass:["EventDefinition"],properties:[{name:"escalationRef",type:"Escalation",isAttr:!0,isReference:!0}]},{name:"Escalation",properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"escalationCode",isAttr:!0,type:"String"}],superClass:["RootElement"]},{name:"CompensateEventDefinition",superClass:["EventDefinition"],properties:[{name:"waitForCompletion",isAttr:!0,type:"Boolean",default:!0},{name:"activityRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"TimerEventDefinition",superClass:["EventDefinition"],properties:[{name:"timeDate",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeCycle",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeDuration",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"LinkEventDefinition",superClass:["EventDefinition"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"target",type:"LinkEventDefinition",isReference:!0},{name:"source",type:"LinkEventDefinition",isMany:!0,isReference:!0}]},{name:"MessageEventDefinition",superClass:["EventDefinition"],properties:[{name:"messageRef",type:"Message",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isReference:!0}]},{name:"ConditionalEventDefinition",superClass:["EventDefinition"],properties:[{name:"condition",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"SignalEventDefinition",superClass:["EventDefinition"],properties:[{name:"signalRef",type:"Signal",isAttr:!0,isReference:!0}]},{name:"Signal",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ImplicitThrowEvent",superClass:["ThrowEvent"]},{name:"DataState",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"ItemAwareElement",superClass:["BaseElement"],properties:[{name:"itemSubjectRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"dataState",type:"DataState"}]},{name:"DataAssociation",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"ItemAwareElement",isMany:!0,isReference:!0},{name:"targetRef",type:"ItemAwareElement",isReference:!0},{name:"transformation",type:"FormalExpression",xml:{serialize:"property"}},{name:"assignment",type:"Assignment",isMany:!0}]},{name:"DataInput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"inputSetRef",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithOptional",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithWhileExecuting",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"DataOutput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"outputSetRef",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithOptional",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithWhileExecuting",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"InputSet",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"dataInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"optionalInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"whileExecutingInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"outputSetRefs",type:"OutputSet",isMany:!0,isReference:!0}]},{name:"OutputSet",superClass:["BaseElement"],properties:[{name:"dataOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"inputSetRefs",type:"InputSet",isMany:!0,isReference:!0},{name:"optionalOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"whileExecutingOutputRefs",type:"DataOutput",isMany:!0,isReference:!0}]},{name:"Property",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"DataInputAssociation",superClass:["DataAssociation"]},{name:"DataOutputAssociation",superClass:["DataAssociation"]},{name:"InputOutputSpecification",superClass:["BaseElement"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"inputSets",type:"InputSet",isMany:!0},{name:"outputSets",type:"OutputSet",isMany:!0}]},{name:"DataObject",superClass:["FlowElement","ItemAwareElement"],properties:[{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"}]},{name:"InputOutputBinding",properties:[{name:"inputDataRef",type:"InputSet",isAttr:!0,isReference:!0},{name:"outputDataRef",type:"OutputSet",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"Assignment",superClass:["BaseElement"],properties:[{name:"from",type:"Expression",xml:{serialize:"xsi:type"}},{name:"to",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"DataStore",superClass:["RootElement","ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"capacity",isAttr:!0,type:"Integer"},{name:"isUnlimited",default:!0,isAttr:!0,type:"Boolean"}]},{name:"DataStoreReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataStoreRef",type:"DataStore",isAttr:!0,isReference:!0}]},{name:"DataObjectReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataObjectRef",type:"DataObject",isAttr:!0,isReference:!0}]},{name:"ConversationLink",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ConversationAssociation",superClass:["BaseElement"],properties:[{name:"innerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0},{name:"outerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0}]},{name:"CallConversation",superClass:["ConversationNode"],properties:[{name:"calledCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"Conversation",superClass:["ConversationNode"]},{name:"SubConversation",superClass:["ConversationNode"],properties:[{name:"conversationNodes",type:"ConversationNode",isMany:!0}]},{name:"ConversationNode",isAbstract:!0,superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"messageFlowRefs",type:"MessageFlow",isMany:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0}]},{name:"GlobalConversation",superClass:["Collaboration"]},{name:"PartnerEntity",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"PartnerRole",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"CorrelationProperty",superClass:["RootElement"],properties:[{name:"correlationPropertyRetrievalExpression",type:"CorrelationPropertyRetrievalExpression",isMany:!0},{name:"name",isAttr:!0,type:"String"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Error",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"errorCode",isAttr:!0,type:"String"}]},{name:"CorrelationKey",superClass:["BaseElement"],properties:[{name:"correlationPropertyRef",type:"CorrelationProperty",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Expression",superClass:["BaseElement"],isAbstract:!1,properties:[{name:"body",isBody:!0,type:"String"}]},{name:"FormalExpression",superClass:["Expression"],properties:[{name:"language",isAttr:!0,type:"String"},{name:"evaluatesToTypeRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Message",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"itemRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"ItemDefinition",superClass:["RootElement"],properties:[{name:"itemKind",type:"ItemKind",isAttr:!0},{name:"structureRef",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"import",type:"Import",isAttr:!0,isReference:!0}]},{name:"FlowElement",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"categoryValueRef",type:"CategoryValue",isMany:!0,isReference:!0}]},{name:"SequenceFlow",superClass:["FlowElement"],properties:[{name:"isImmediate",isAttr:!0,type:"Boolean"},{name:"conditionExpression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"sourceRef",type:"FlowNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"FlowNode",isAttr:!0,isReference:!0}]},{name:"FlowElementsContainer",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"laneSets",type:"LaneSet",isMany:!0},{name:"flowElements",type:"FlowElement",isMany:!0}]},{name:"CallableElement",isAbstract:!0,superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"supportedInterfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"ioBinding",type:"InputOutputBinding",isMany:!0,xml:{serialize:"property"}}]},{name:"FlowNode",isAbstract:!0,superClass:["FlowElement"],properties:[{name:"incoming",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"outgoing",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"lanes",type:"Lane",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"CorrelationPropertyRetrievalExpression",superClass:["BaseElement"],properties:[{name:"messagePath",type:"FormalExpression"},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"CorrelationPropertyBinding",superClass:["BaseElement"],properties:[{name:"dataPath",type:"FormalExpression"},{name:"correlationPropertyRef",type:"CorrelationProperty",isAttr:!0,isReference:!0}]},{name:"Resource",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"resourceParameters",type:"ResourceParameter",isMany:!0}]},{name:"ResourceParameter",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isRequired",isAttr:!0,type:"Boolean"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"CorrelationSubscription",superClass:["BaseElement"],properties:[{name:"correlationKeyRef",type:"CorrelationKey",isAttr:!0,isReference:!0},{name:"correlationPropertyBinding",type:"CorrelationPropertyBinding",isMany:!0}]},{name:"MessageFlow",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"MessageFlowAssociation",superClass:["BaseElement"],properties:[{name:"innerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0},{name:"outerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0}]},{name:"InteractionNode",isAbstract:!0,properties:[{name:"incomingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0},{name:"outgoingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"Participant",superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"interfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"participantMultiplicity",type:"ParticipantMultiplicity"},{name:"endPointRefs",type:"EndPoint",isMany:!0,isReference:!0},{name:"processRef",type:"Process",isAttr:!0,isReference:!0}]},{name:"ParticipantAssociation",superClass:["BaseElement"],properties:[{name:"innerParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"outerParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"ParticipantMultiplicity",properties:[{name:"minimum",default:0,isAttr:!0,type:"Integer"},{name:"maximum",default:1,isAttr:!0,type:"Integer"}],superClass:["BaseElement"]},{name:"Collaboration",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"participants",type:"Participant",isMany:!0},{name:"messageFlows",type:"MessageFlow",isMany:!0},{name:"artifacts",type:"Artifact",isMany:!0},{name:"conversations",type:"ConversationNode",isMany:!0},{name:"conversationAssociations",type:"ConversationAssociation"},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0},{name:"messageFlowAssociations",type:"MessageFlowAssociation",isMany:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"choreographyRef",type:"Choreography",isMany:!0,isReference:!0},{name:"conversationLinks",type:"ConversationLink",isMany:!0}]},{name:"ChoreographyActivity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"loopType",type:"ChoreographyLoopType",default:"None",isAttr:!0}]},{name:"CallChoreography",superClass:["ChoreographyActivity"],properties:[{name:"calledChoreographyRef",type:"Choreography",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"SubChoreography",superClass:["ChoreographyActivity","FlowElementsContainer"],properties:[{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"ChoreographyTask",superClass:["ChoreographyActivity"],properties:[{name:"messageFlowRef",type:"MessageFlow",isMany:!0,isReference:!0}]},{name:"Choreography",superClass:["Collaboration","FlowElementsContainer"]},{name:"GlobalChoreographyTask",superClass:["Choreography"],properties:[{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"TextAnnotation",superClass:["Artifact"],properties:[{name:"text",type:"String"},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Group",superClass:["Artifact"],properties:[{name:"categoryValueRef",type:"CategoryValue",isAttr:!0,isReference:!0}]},{name:"Association",superClass:["Artifact"],properties:[{name:"associationDirection",type:"AssociationDirection",isAttr:!0},{name:"sourceRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"targetRef",type:"BaseElement",isAttr:!0,isReference:!0}]},{name:"Category",superClass:["RootElement"],properties:[{name:"categoryValue",type:"CategoryValue",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Artifact",isAbstract:!0,superClass:["BaseElement"]},{name:"CategoryValue",superClass:["BaseElement"],properties:[{name:"categorizedFlowElements",type:"FlowElement",isMany:!0,isVirtual:!0,isReference:!0},{name:"value",isAttr:!0,type:"String"}]},{name:"Activity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"isForCompensation",default:!1,isAttr:!0,type:"Boolean"},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"boundaryEventRefs",type:"BoundaryEvent",isMany:!0,isReference:!0},{name:"properties",type:"Property",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"startQuantity",default:1,isAttr:!0,type:"Integer"},{name:"resources",type:"ResourceRole",isMany:!0},{name:"completionQuantity",default:1,isAttr:!0,type:"Integer"},{name:"loopCharacteristics",type:"LoopCharacteristics"}]},{name:"ServiceTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"SubProcess",superClass:["Activity","FlowElementsContainer","InteractionNode"],properties:[{name:"triggeredByEvent",default:!1,isAttr:!0,type:"Boolean"},{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"LoopCharacteristics",isAbstract:!0,superClass:["BaseElement"]},{name:"MultiInstanceLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"isSequential",default:!1,isAttr:!0,type:"Boolean"},{name:"behavior",type:"MultiInstanceBehavior",default:"All",isAttr:!0},{name:"loopCardinality",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopDataInputRef",type:"ItemAwareElement",isReference:!0},{name:"loopDataOutputRef",type:"ItemAwareElement",isReference:!0},{name:"inputDataItem",type:"DataInput",xml:{serialize:"property"}},{name:"outputDataItem",type:"DataOutput",xml:{serialize:"property"}},{name:"complexBehaviorDefinition",type:"ComplexBehaviorDefinition",isMany:!0},{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"oneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0},{name:"noneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0}]},{name:"StandardLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"testBefore",default:!1,isAttr:!0,type:"Boolean"},{name:"loopCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopMaximum",type:"Integer",isAttr:!0}]},{name:"CallActivity",superClass:["Activity","InteractionNode"],properties:[{name:"calledElement",type:"String",isAttr:!0}]},{name:"Task",superClass:["Activity","InteractionNode"]},{name:"SendTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ReceiveTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ScriptTask",superClass:["Task"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"script",type:"String"}]},{name:"BusinessRuleTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"AdHocSubProcess",superClass:["SubProcess"],properties:[{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"ordering",type:"AdHocOrdering",isAttr:!0},{name:"cancelRemainingInstances",default:!0,isAttr:!0,type:"Boolean"}]},{name:"Transaction",superClass:["SubProcess"],properties:[{name:"protocol",isAttr:!0,type:"String"},{name:"method",isAttr:!0,type:"String"}]},{name:"GlobalScriptTask",superClass:["GlobalTask"],properties:[{name:"scriptLanguage",isAttr:!0,type:"String"},{name:"script",isAttr:!0,type:"String"}]},{name:"GlobalBusinessRuleTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"ComplexBehaviorDefinition",superClass:["BaseElement"],properties:[{name:"condition",type:"FormalExpression"},{name:"event",type:"ImplicitThrowEvent"}]},{name:"ResourceRole",superClass:["BaseElement"],properties:[{name:"resourceRef",type:"Resource",isReference:!0},{name:"resourceParameterBindings",type:"ResourceParameterBinding",isMany:!0},{name:"resourceAssignmentExpression",type:"ResourceAssignmentExpression"},{name:"name",isAttr:!0,type:"String"}]},{name:"ResourceParameterBinding",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"parameterRef",type:"ResourceParameter",isAttr:!0,isReference:!0}],superClass:["BaseElement"]},{name:"ResourceAssignmentExpression",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}}],superClass:["BaseElement"]},{name:"Import",properties:[{name:"importType",isAttr:!0,type:"String"},{name:"location",isAttr:!0,type:"String"},{name:"namespace",isAttr:!0,type:"String"}]},{name:"Definitions",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"targetNamespace",isAttr:!0,type:"String"},{name:"expressionLanguage",default:"http://www.w3.org/1999/XPath",isAttr:!0,type:"String"},{name:"typeLanguage",default:"http://www.w3.org/2001/XMLSchema",isAttr:!0,type:"String"},{name:"imports",type:"Import",isMany:!0},{name:"extensions",type:"Extension",isMany:!0},{name:"rootElements",type:"RootElement",isMany:!0},{name:"diagrams",isMany:!0,type:"bpmndi:BPMNDiagram"},{name:"exporter",isAttr:!0,type:"String"},{name:"relationships",type:"Relationship",isMany:!0},{name:"exporterVersion",isAttr:!0,type:"String"}]}],_u=[{name:"ProcessType",literalValues:[{name:"None"},{name:"Public"},{name:"Private"}]},{name:"GatewayDirection",literalValues:[{name:"Unspecified"},{name:"Converging"},{name:"Diverging"},{name:"Mixed"}]},{name:"EventBasedGatewayType",literalValues:[{name:"Parallel"},{name:"Exclusive"}]},{name:"RelationshipDirection",literalValues:[{name:"None"},{name:"Forward"},{name:"Backward"},{name:"Both"}]},{name:"ItemKind",literalValues:[{name:"Physical"},{name:"Information"}]},{name:"ChoreographyLoopType",literalValues:[{name:"None"},{name:"Standard"},{name:"MultiInstanceSequential"},{name:"MultiInstanceParallel"}]},{name:"AssociationDirection",literalValues:[{name:"None"},{name:"One"},{name:"Both"}]},{name:"MultiInstanceBehavior",literalValues:[{name:"None"},{name:"One"},{name:"All"},{name:"Complex"}]},{name:"AdHocOrdering",literalValues:[{name:"Parallel"},{name:"Sequential"}]}],Gu={tagAlias:"lowerCase",typePrefix:"t"},qu={name:vu,uri:Fu,prefix:Qu,associations:ju,types:Uu,enumerations:_u,xml:Gu},Ju="BPMNDI",Hu="http://www.omg.org/spec/BPMN/20100524/DI",zu="bpmndi",Ku=[{name:"BPMNDiagram",properties:[{name:"plane",type:"BPMNPlane",redefines:"di:Diagram#rootElement"},{name:"labelStyle",type:"BPMNLabelStyle",isMany:!0}],superClass:["di:Diagram"]},{name:"BPMNPlane",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"}],superClass:["di:Plane"]},{name:"BPMNShape",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"isHorizontal",isAttr:!0,type:"Boolean"},{name:"isExpanded",isAttr:!0,type:"Boolean"},{name:"isMarkerVisible",isAttr:!0,type:"Boolean"},{name:"label",type:"BPMNLabel"},{name:"isMessageVisible",isAttr:!0,type:"Boolean"},{name:"participantBandKind",type:"ParticipantBandKind",isAttr:!0},{name:"choreographyActivityShape",type:"BPMNShape",isAttr:!0,isReference:!0}],superClass:["di:LabeledShape"]},{name:"BPMNEdge",properties:[{name:"label",type:"BPMNLabel"},{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"sourceElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#source"},{name:"targetElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#target"},{name:"messageVisibleKind",type:"MessageVisibleKind",isAttr:!0,default:"initiating"}],superClass:["di:LabeledEdge"]},{name:"BPMNLabel",properties:[{name:"labelStyle",type:"BPMNLabelStyle",isAttr:!0,isReference:!0,redefines:"di:DiagramElement#style"}],superClass:["di:Label"]},{name:"BPMNLabelStyle",properties:[{name:"font",type:"dc:Font"}],superClass:["di:Style"]}],Wu=[{name:"ParticipantBandKind",literalValues:[{name:"top_initiating"},{name:"middle_initiating"},{name:"bottom_initiating"},{name:"top_non_initiating"},{name:"middle_non_initiating"},{name:"bottom_non_initiating"}]},{name:"MessageVisibleKind",literalValues:[{name:"initiating"},{name:"non_initiating"}]}],Yu=[],Zu={name:Ju,uri:Hu,prefix:zu,types:Ku,enumerations:Wu,associations:Yu},Xu="DC",$u="http://www.omg.org/spec/DD/20100524/DC",em="dc",tm=[{name:"Boolean"},{name:"Integer"},{name:"Real"},{name:"String"},{name:"Font",properties:[{name:"name",type:"String",isAttr:!0},{name:"size",type:"Real",isAttr:!0},{name:"isBold",type:"Boolean",isAttr:!0},{name:"isItalic",type:"Boolean",isAttr:!0},{name:"isUnderline",type:"Boolean",isAttr:!0},{name:"isStrikeThrough",type:"Boolean",isAttr:!0}]},{name:"Point",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0}]},{name:"Bounds",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0},{name:"width",type:"Real",isAttr:!0},{name:"height",type:"Real",isAttr:!0}]}],im=[],nm={name:Xu,uri:$u,prefix:em,types:tm,associations:im},sm="DI",rm="http://www.omg.org/spec/DD/20100524/DI",om="di",am=[{name:"DiagramElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"extension",type:"Extension"},{name:"owningDiagram",type:"Diagram",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"owningElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"modelElement",isReadOnly:!0,isVirtual:!0,isReference:!0,type:"Element"},{name:"style",type:"Style",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"ownedElement",type:"DiagramElement",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Node",isAbstract:!0,superClass:["DiagramElement"]},{name:"Edge",isAbstract:!0,superClass:["DiagramElement"],properties:[{name:"source",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"target",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"waypoint",isUnique:!1,isMany:!0,type:"dc:Point",xml:{serialize:"xsi:type"}}]},{name:"Diagram",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"rootElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0},{name:"name",isAttr:!0,type:"String"},{name:"documentation",isAttr:!0,type:"String"},{name:"resolution",isAttr:!0,type:"Real"},{name:"ownedStyle",type:"Style",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Shape",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Plane",isAbstract:!0,superClass:["Node"],properties:[{name:"planeElement",type:"DiagramElement",subsettedProperty:"DiagramElement-ownedElement",isMany:!0}]},{name:"LabeledEdge",isAbstract:!0,superClass:["Edge"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"LabeledShape",isAbstract:!0,superClass:["Shape"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"Label",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Style",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"}]},{name:"Extension",properties:[{name:"values",isMany:!0,type:"Element"}]}],lm=[],cm={tagAlias:"lowerCase"},dm={name:sm,uri:rm,prefix:om,types:am,associations:lm,xml:cm},pm="bpmn.io colors for BPMN",hm="http://bpmn.io/schema/bpmn/biocolor/1.0",um="bioc",mm=[{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]}],fm=[],gm=[],ym={name:pm,uri:hm,prefix:um,types:mm,enumerations:fm,associations:gm},Am="BPMN in Color",km="http://www.omg.org/spec/BPMN/non-normative/color/1.0",bm="color",Em=[{name:"ColoredLabel",extends:["bpmndi:BPMNLabel"],properties:[{name:"color",isAttr:!0,type:"String"}]},{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"background-color",isAttr:!0,type:"String"},{name:"border-color",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"border-color",isAttr:!0,type:"String"}]}],Cm=[],wm=[],Nm={name:Am,uri:km,prefix:bm,types:Em,enumerations:Cm,associations:wm};const Tm={bpmn:qu,bpmndi:Zu,dc:nm,di:dm,bioc:ym,color:Nm};function Bm(e,t){const i=_({},Tm,e);return new Vn(i,t)}var Im="Tried to access di from the businessObject. The di is available through the diagram element only. For more information, see https://github.com/bpmn-io/bpmn-js/issues/1472";function xm(e){pi(e,"di")||Object.defineProperty(e,"di",{enumerable:!1,get:function(){throw new Error(Im)}})}function Se(e,t){return e.$instanceOf(t)}function Sm(e){return st(e.rootElements,function(t){return Se(t,"bpmn:Process")||Se(t,"bpmn:Collaboration")})}function Dm(e){var t={},i=[],s={};function r(T,B){return function(U){T(U,B)}}function o(T){t[T.id]=T}function a(T){return t[T.id]}function l(T,B){var U=T.gfx;if(U)throw new Error(`already rendered ${Ne(T)}`);return e.element(T,s[T.id],B)}function c(T,B){return e.root(T,s[T.id],B)}function m(T,B){try{var U=s[T.id]&&l(T,B);return o(T),U}catch(te){u(te.message,{element:T,error:te}),console.error(`failed to import ${Ne(T)}`,te)}}function u(T,B){e.error(T,B)}var p=this.registerDi=function(B){var U=B.bpmnElement;U?s[U.id]?u(`multiple DI elements defined for ${Ne(U)}`,{element:U}):(s[U.id]=B,xm(U)):u(`no bpmnElement referenced in ${Ne(B)}`,{element:B})};function g(T){A(T.plane)}function A(T){p(T),R(T.planeElement,w)}function w(T){p(T)}this.handleDefinitions=function(B,U){var te=B.diagrams;if(U&&te.indexOf(U)===-1)throw new Error("diagram not part of <bpmn:Definitions />");if(!U&&te&&te.length&&(U=te[0]),!U)throw new Error("no diagram to display");s={},g(U);var Ge=U.plane;if(!Ge)throw new Error(`no plane for ${Ne(U)}`);var f=Ge.bpmnElement;if(!f)if(f=Sm(B),f)u(`correcting missing bpmnElement on ${Ne(Ge)} to ${Ne(f)}`),Ge.bpmnElement=f,p(Ge);else throw new Error("no process or collaboration to display");var h=c(f,Ge);if(Se(f,"bpmn:Process")||Se(f,"bpmn:SubProcess"))G(f,h);else if(Se(f,"bpmn:Collaboration"))me(f,h),K(B.rootElements,h);else throw new Error(`unsupported bpmnElement for ${Ne(Ge)}: ${Ne(f)}`);M(i)};var M=this.handleDeferred=function(){for(var B;i.length;)B=i.shift(),B()};function G(T,B){X(T,B),O(T.ioSpecification,B),C(T.artifacts,B),o(T)}function K(T,B){var U=hi(T,function(te){return!a(te)&&Se(te,"bpmn:Process")&&te.laneSets});U.forEach(r(G,B))}function z(T,B){m(T,B)}function x(T,B){R(T,r(z,B))}function k(T,B){m(T,B)}function N(T,B){m(T,B)}function S(T,B){m(T,B)}function j(T,B){m(T,B)}function C(T,B){R(T,function(U){Se(U,"bpmn:Association")?i.push(function(){j(U,B)}):j(U,B)})}function O(T,B){!T||(R(T.dataInputs,r(N,B)),R(T.dataOutputs,r(S,B)))}var D=this.handleSubProcess=function(B,U){X(B,U),C(B.artifacts,U)};function v(T,B){var U=m(T,B);Se(T,"bpmn:SubProcess")&&D(T,U||B),Se(T,"bpmn:Activity")&&O(T.ioSpecification,B),i.push(function(){R(T.dataInputAssociations,r(k,B)),R(T.dataOutputAssociations,r(k,B))})}function V(T,B){m(T,B)}function L(T,B){m(T,B)}function W(T,B){i.push(function(){var U=m(T,B);T.childLaneSet&&ut(T.childLaneSet,U||B),Ze(T)})}function ut(T,B){R(T.lanes,r(W,B))}function oe(T,B){R(T,r(ut,B))}function X(T,B){ot(T.flowElements,B),T.laneSets&&oe(T.laneSets,B)}function ot(T,B){R(T,function(U){Se(U,"bpmn:SequenceFlow")?i.push(function(){V(U,B)}):Se(U,"bpmn:BoundaryEvent")?i.unshift(function(){v(U,B)}):Se(U,"bpmn:FlowNode")?v(U,B):Se(U,"bpmn:DataObject")||(Se(U,"bpmn:DataStoreReference")||Se(U,"bpmn:DataObjectReference")?L(U,B):u(`unrecognized flowElement ${Ne(U)} in context ${Ne(B&&B.businessObject)}`,{element:U,context:B}))})}function at(T,B){var U=m(T,B),te=T.processRef;te&&G(te,U||B)}function me(T,B){R(T.participants,r(at,B)),i.push(function(){x(T.messageFlows,B)}),C(T.artifacts,B)}function Ze(T){R(T.flowNodeRef,function(B){var U=B.get("lanes");U&&U.push(T)})}}function Pm(e,t,i){var s,r,o,a,l=[];function c(m,u){var p={root:function(M,G){return s.add(M,G)},element:function(M,G,K){return s.add(M,G,K)},error:function(M,G){l.push({message:M,context:G})}},g=new Dm(p);u=u||m.diagrams&&m.diagrams[0];var A=Mm(m,u);if(!A)throw new Error("no diagram to display");R(A,function(M){g.handleDefinitions(m,M)});var w=u.plane.bpmnElement.id;o.setRootElement(o.findRoot(w+"_plane")||o.findRoot(w))}return new Promise(function(m,u){try{return s=e.get("bpmnImporter"),r=e.get("eventBus"),o=e.get("canvas"),r.fire("import.render.start",{definitions:t}),c(t,i),r.fire("import.render.complete",{error:a,warnings:l}),m({warnings:l})}catch(p){return p.warnings=l,u(p)}})}function Mm(e,t){if(!(!t||!t.plane)){var i=t.plane.bpmnElement,s=i;!Q(i,"bpmn:Process")&&!Q(i,"bpmn:Collaboration")&&(s=Om(i));var r;Q(s,"bpmn:Collaboration")?r=s:r=st(e.rootElements,function(m){if(!!Q(m,"bpmn:Collaboration"))return st(m.participants,function(u){return u.processRef===s})});var o=[s];r&&(o=fd(r.participants,function(m){return m.processRef}),o.push(r));var a=ba(o),l=[t],c=[i];return R(e.diagrams,function(m){if(!!m.plane){var u=m.plane.bpmnElement;a.indexOf(u)!==-1&&c.indexOf(u)===-1&&(l.push(m),c.push(u))}}),l}}function ba(e){var t=[];return R(e,function(i){!i||(t.push(i),t=t.concat(ba(i.flowElements)))}),t}function Om(e){for(var t=e;t;){if(Q(t,"bpmn:Process"))return t;t=t.$parent}}var Vm='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14.02 5.57" width="53" height="21"><path fill="currentColor" d="M1.88.92v.14c0 .41-.13.68-.4.8.33.14.46.44.46.86v.33c0 .61-.33.95-.95.95H0V0h.95c.65 0 .93.3.93.92zM.63.57v1.06h.24c.24 0 .38-.1.38-.43V.98c0-.28-.1-.4-.32-.4zm0 1.63v1.22h.36c.2 0 .32-.1.32-.39v-.35c0-.37-.12-.48-.4-.48H.63zM4.18.99v.52c0 .64-.31.98-.94.98h-.3V4h-.62V0h.92c.63 0 .94.35.94.99zM2.94.57v1.35h.3c.2 0 .3-.09.3-.37v-.6c0-.29-.1-.38-.3-.38h-.3zm2.89 2.27L6.25 0h.88v4h-.6V1.12L6.1 3.99h-.6l-.46-2.82v2.82h-.55V0h.87zM8.14 1.1V4h-.56V0h.79L9 2.4V0h.56v4h-.64zm2.49 2.29v.6h-.6v-.6zM12.12 1c0-.63.33-1 .95-1 .61 0 .95.37.95 1v2.04c0 .64-.34 1-.95 1-.62 0-.95-.37-.95-1zm.62 2.08c0 .28.13.39.33.39s.32-.1.32-.4V.98c0-.29-.12-.4-.32-.4s-.33.11-.33.4z"/><path fill="currentColor" d="M0 4.53h14.02v1.04H0zM11.08 0h.63v.62h-.63zm.63 4V1h-.63v2.98z"/></svg>',Ea=Vm,Ca={verticalAlign:"middle"},wa={color:"#404040"},Rm={zIndex:"1001",position:"fixed",top:"0",left:"0",right:"0",bottom:"0"},Lm={width:"100%",height:"100%",background:"rgba(40,40,40,0.2)"},vm={position:"absolute",left:"50%",top:"40%",transform:"translate(-50%)",width:"260px",padding:"10px",background:"white",boxShadow:"0 1px 4px rgba(0,0,0,0.3)",fontFamily:"Helvetica, Arial, sans-serif",fontSize:"14px",display:"flex",lineHeight:"1.3"},Fm='<div class="bjs-powered-by-lightbox"><div class="backdrop"></div><div class="notice"><a href="https://bpmn.io" target="_blank" rel="noopener" class="link">'+Ea+'</a><span>Web-based tooling for BPMN, DMN and forms powered by <a href="https://bpmn.io" target="_blank" rel="noopener">bpmn.io</a>.</span></div></div>',ht;function Qm(){ht=Qe(Fm),we(ht,Rm),we(At("svg",ht),Ca),we(At(".backdrop",ht),Lm),we(At(".notice",ht),vm),we(At(".link",ht),wa,{margin:"15px 20px 15px 10px",alignSelf:"center"})}function jm(){ht||(Qm(),mi.bind(ht,".backdrop","click",function(e){document.body.removeChild(ht)})),document.body.appendChild(ht)}function ue(e){e=_({},_m,e),this._moddle=this._createModdle(e),this._container=this._createContainer(e),this._init(this._container,this._moddle,e),qm(this._container)}lt(ue,Lt),ue.prototype.importXML=async function(t,i){const s=this;function r(a){return s.get("eventBus").createEvent(a)}let o=[];try{t=this._emit("import.parse.start",{xml:t})||t;let a;try{a=await this._moddle.fromXML(t,"bpmn:Definitions")}catch(g){throw this._emit("import.parse.complete",{error:g}),g}let l=a.rootElement;const c=a.references,m=a.warnings,u=a.elementsById;o=o.concat(m),l=this._emit("import.parse.complete",r({error:null,definitions:l,elementsById:u,references:c,warnings:o}))||l;const p=await this.importDefinitions(l,i);return o=o.concat(p.warnings),this._emit("import.done",{error:null,warnings:o}),{warnings:o}}catch(a){let l=a;throw o=o.concat(l.warnings||[]),Rn(l,o),l=Um(l),this._emit("import.done",{error:l,warnings:l.warnings}),l}},ue.prototype.importDefinitions=async function(t,i){return this._setDefinitions(t),{warnings:(await this.open(i)).warnings}},ue.prototype.open=async function(t){const i=this._definitions;let s=t;if(!i){const o=new Error("no XML imported");throw Rn(o,[]),o}if(typeof t=="string"&&(s=Gm(i,t),!s)){const o=new Error("BPMNDiagram <"+t+"> not found");throw Rn(o,[]),o}try{this.clear()}catch(o){throw Rn(o,[]),o}const{warnings:r}=await Pm(this,i,s);return{warnings:r}},ue.prototype.saveXML=async function(t){t=t||{};let i=this._definitions,s,r;try{if(!i)throw new Error("no definitions loaded");i=this._emit("saveXML.start",{definitions:i})||i,r=(await this._moddle.toXML(i,t)).xml,r=this._emit("saveXML.serialized",{xml:r})||r}catch(a){s=a}const o=s?{error:s}:{xml:r};if(this._emit("saveXML.done",o),s)throw s;return o},ue.prototype.saveSVG=async function(){this._emit("saveSVG.start");let t,i;try{const s=this.get("canvas"),r=s.getActiveLayer(),o=At(":scope > defs",s._svg),a=lo(r),l=o?"<defs>"+lo(o)+"</defs>":"",c=r.getBBox();t=`<?xml version="1.0" encoding="utf-8"?>
|
|
7
|
+
column: `+B+`
|
|
8
|
+
nested error: `+x.message;if(D)return a.addWarning({message:M,error:x}),!0;throw Mt(M)}function u(x,S){return m(x,S,!0)}function p(){var x=a.elementsById,S=a.references,D,w;for(D=0;w=S[D];D++){var O=w.element,B=x[w.id],V=mt(O).propertiesByName[w.property];if(B||a.addWarning({message:"unresolved reference <"+w.id+">",element:w.element,property:w.property,value:w.id}),V.isMany){var M=O.get(V.name),G=M.indexOf(w);G===-1&&(G=M.length),B?M[G]=B:M.splice(G,1)}else O.set(V.name,B)}}function y(){c.pop().handleEnd()}var k=/^<\?xml /i,C=/ encoding="([^"]+)"/i,v=/^utf-8$/i;function F(x){if(!!k.test(x)){var S=C.exec(x),D=S&&S[1];!D||v.test(D)||a.addWarning({message:"unsupported document encoding <"+D+">, falling back to UTF-8"})}}function z(x,S){var D=c.peek();try{c.push(D.handleNode(x))}catch(w){m(w,S,o)&&c.push(new Ds)}}function Q(x,S){try{c.peek().handleText(x)}catch(D){u(D,S)}}function I(x,S){!x.trim()||Q(x,S)}var E=r.getPackages().reduce(function(x,S){return x[S.uri]=S.prefix,x},{"http://www.w3.org/XML/1998/namespace":"xml"});return l.ns(E).on("openTag",function(x,S,D,w){var O=x.attrs||{},B=Object.keys(O).reduce(function(M,G){var K=S(O[G]);return M[G]=K,M},{}),V={name:x.name,originalName:x.originalName,attributes:B,ns:x.ns};z(V,w)}).on("question",F).on("closeTag",y).on("cdata",Q).on("text",function(x,S,D){I(S(x),D)}).on("error",m).on("warn",u),new Promise(function(x,S){var D;try{l.parse(e),p()}catch(M){D=M}var w=s.element;!D&&!w&&(D=Mt("failed to parse document as <"+s.type.$descriptor.name+">"));var O=a.warnings,B=a.references,V=a.elementsById;return D?(D.warnings=O,S(D)):x({rootElement:w,elementsById:V,references:B,warnings:O})})},Os.prototype.handler=function(e){return new Ms(this.model,e)};function Du(){var e=[];return Object.defineProperty(e,"peek",{value:function(){return this[this.length-1]}}),e}var Pu=`<?xml version="1.0" encoding="UTF-8"?>
|
|
9
|
+
`,Mu=/<|>|'|"|&|\n\r|\n/g,ga=/<|>|&/g;function Ou(e){var t={},i={},s={},r=[],o=[];this.byUri=function(a){return i[a]||e&&e.byUri(a)},this.add=function(a,l){i[a.uri]=a,l?r.push(a):o.push(a),this.mapPrefix(a.prefix,a.uri)},this.uriByPrefix=function(a){return t[a||"xmlns"]},this.mapPrefix=function(a,l){t[a||"xmlns"]=l},this.getNSKey=function(a){return a.prefix!==void 0?a.uri+"|"+a.prefix:a.uri},this.logUsed=function(a){var l=a.uri,c=this.getNSKey(a);s[c]=this.byUri(l),e&&e.logUsed(a)},this.getUsed=function(a){function l(u){var p=c.getNSKey(u);return s[p]}var c=this,m=[].concat(r,o);return m.filter(l)}}function Vu(e){return e.charAt(0).toLowerCase()+e.slice(1)}function Ru(e,t){return ha(t)?Vu(e):e}function ya(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function Aa(e){return Ze(e)?e:(e.prefix?e.prefix+":":"")+e.localName}function Lu(e){return e.getUsed().filter(function(t){return t.prefix!=="xml"}).map(function(t){var i="xmlns"+(t.prefix?":"+t.prefix:"");return{name:i,value:t.uri}})}function vu(e,t){return t.isGeneric?q({localName:t.ns.localName},e):q({localName:Ru(t.ns.localName,t.$pkg)},e)}function Fu(e,t){return q({localName:t.ns.localName},e)}function Qu(e){var t=e.$descriptor;return li(t.properties,function(i){var s=i.name;if(i.isVirtual||!ai(e,s))return!1;var r=e[s];return r===i.default||r===null?!1:i.isMany?r.length:!0})}var Uu={"\n":"#10","\n\r":"#10",'"':"#34","'":"#39","<":"#60",">":"#62","&":"#38"},ju={"<":"lt",">":"gt","&":"amp"};function ka(e,t,i){return e=Ze(e)?e:""+e,e.replace(t,function(s){return"&"+i[s]+";"})}function Gu(e){return ka(e,Mu,Uu)}function _u(e){return ka(e,ga,ju)}function qu(e){return li(e,function(t){return t.isAttr})}function Ju(e){return li(e,function(t){return!t.isAttr})}function Vs(e){this.tagName=e}Vs.prototype.build=function(e){return this.element=e,this},Vs.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"+this.element.id+"</"+this.tagName+">").appendNewLine()};function Zt(){}Zt.prototype.serializeValue=Zt.prototype.serializeTo=function(e){e.append(this.escape?_u(this.value):this.value)},Zt.prototype.build=function(e,t){return this.value=t,e.type==="String"&&t.search(ga)!==-1&&(this.escape=!0),this};function Rs(e){this.tagName=e}ya(Rs,Zt),Rs.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"),this.serializeValue(e),e.append("</"+this.tagName+">").appendNewLine()};function le(e,t){this.body=[],this.attrs=[],this.parent=e,this.propertyDescriptor=t}le.prototype.build=function(e){this.element=e;var t=e.$descriptor,i=this.propertyDescriptor,s,r,o=t.isGeneric;return o?s=this.parseGeneric(e):s=this.parseNsAttributes(e),i?this.ns=this.nsPropertyTagName(i):this.ns=this.nsTagName(t),this.tagName=this.addTagName(this.ns),o||(r=Qu(e),this.parseAttributes(qu(r)),this.parseContainments(Ju(r))),this.parseGenericAttributes(e,s),this},le.prototype.nsTagName=function(e){var t=this.logNamespaceUsed(e.ns);return vu(t,e)},le.prototype.nsPropertyTagName=function(e){var t=this.logNamespaceUsed(e.ns);return Fu(t,e)},le.prototype.isLocalNs=function(e){return e.uri===this.ns.uri},le.prototype.nsAttributeName=function(e){var t;if(Ze(e)?t=we(e):t=e.ns,e.inherited)return{localName:t.localName};var i=this.logNamespaceUsed(t);return this.getNamespaces().logUsed(i),this.isLocalNs(i)?{localName:t.localName}:q({localName:t.localName},i)},le.prototype.parseGeneric=function(e){var t=this,i=this.body,s=[];return R(e,function(r,o){var a;o==="$body"?i.push(new Zt().build({type:"String"},r)):o==="$children"?R(r,function(l){i.push(new le(t).build(l))}):o.indexOf("$")!==0&&(a=t.parseNsAttribute(e,o,r),a&&s.push({name:o,value:r}))}),s},le.prototype.parseNsAttribute=function(e,t,i){var s=e.$model,r=we(t),o;if(r.prefix==="xmlns"&&(o={prefix:r.localName,uri:i}),!r.prefix&&r.localName==="xmlns"&&(o={uri:i}),!o)return{name:t,value:i};if(s&&s.getPackage(i))this.logNamespace(o,!0,!0);else{var a=this.logNamespaceUsed(o,!0);this.getNamespaces().logUsed(a)}},le.prototype.parseNsAttributes=function(e,t){var i=this,s=e.$attrs,r=[];return R(s,function(o,a){var l=i.parseNsAttribute(e,a,o);l&&r.push(l)}),r},le.prototype.parseGenericAttributes=function(e,t){var i=this;R(t,function(s){if(s.name!==wn)try{i.addAttribute(i.nsAttributeName(s.name),s.value)}catch(r){s.name,s.value}})},le.prototype.parseContainments=function(e){var t=this,i=this.body,s=this.element;R(e,function(r){var o=s.get(r.name),a=r.isReference,l=r.isMany;if(l||(o=[o]),r.isBody)i.push(new Zt().build(r,o[0]));else if(na(r.type))R(o,function(u){i.push(new Rs(t.addTagName(t.nsPropertyTagName(r))).build(r,u))});else if(a)R(o,function(u){i.push(new Vs(t.addTagName(t.nsPropertyTagName(r))).build(u))});else{var c=ma(r),m=Tu(r);R(o,function(u){var p;c?p=new Tn(t,r):m?p=new le(t,r):p=new le(t),i.push(p.build(u))})}})},le.prototype.getNamespaces=function(e){var t=this.namespaces,i=this.parent,s;return t||(s=i&&i.getNamespaces(),e||!s?this.namespaces=t=new Ou(s):t=s),t},le.prototype.logNamespace=function(e,t,i){var s=this.getNamespaces(i),r=e.uri,o=e.prefix,a=s.byUri(r);return(!a||i)&&s.add(e,t),s.mapPrefix(o,r),e},le.prototype.logNamespaceUsed=function(e,t){var i=this.element,s=i.$model,r=this.getNamespaces(t),o=e.prefix,a=e.uri,l,c,m;if(!o&&!a)return{localName:e.localName};if(m=Nu[o]||s&&(s.getPackage(o)||{}).uri,a=a||m||r.uriByPrefix(o),!a)throw new Error("no namespace uri given for prefix <"+o+">");if(e=r.byUri(a),!e){for(l=o,c=1;r.uriByPrefix(l);)l=o+"_"+c++;e=this.logNamespace({prefix:l,uri:a},m===a)}return o&&r.mapPrefix(o,a),e},le.prototype.parseAttributes=function(e){var t=this,i=this.element;R(e,function(s){var r=i.get(s.name);if(s.isReference)if(!s.isMany)r=r.id;else{var o=[];R(r,function(a){o.push(a.id)}),r=o.join(" ")}t.addAttribute(t.nsAttributeName(s),r)})},le.prototype.addTagName=function(e){var t=this.logNamespaceUsed(e);return this.getNamespaces().logUsed(t),Aa(e)},le.prototype.addAttribute=function(e,t){var i=this.attrs;Ze(t)&&(t=Gu(t));var s=Ad(i,function(o){return o.name.localName===e.localName&&o.name.uri===e.uri&&o.name.prefix===e.prefix}),r={name:e,value:t};s!==-1?i.splice(s,1,r):i.push(r)},le.prototype.serializeAttributes=function(e){var t=this.attrs,i=this.namespaces;i&&(t=Lu(i).concat(t)),R(t,function(s){e.append(" ").append(Aa(s.name)).append('="').append(s.value).append('"')})},le.prototype.serializeTo=function(e){var t=this.body[0],i=t&&t.constructor!==Zt;e.appendIndent().append("<"+this.tagName),this.serializeAttributes(e),e.append(t?">":" />"),t&&(i&&e.appendNewLine().indent(),R(this.body,function(s){s.serializeTo(e)}),i&&e.unindent().appendIndent(),e.append("</"+this.tagName+">")),e.appendNewLine()};function Tn(e,t){le.call(this,e,t)}ya(Tn,le),Tn.prototype.parseNsAttributes=function(e){var t=le.prototype.parseNsAttributes.call(this,e),i=e.$descriptor;if(i.name===this.propertyDescriptor.type)return t;var s=this.typeNs=this.nsTagName(i);this.getNamespaces().logUsed(this.typeNs);var r=e.$model.getPackage(s.uri),o=r.xml&&r.xml.typePrefix||"";return this.addAttribute(this.nsAttributeName(wn),(s.prefix?s.prefix+":":"")+o+i.ns.localName),t},Tn.prototype.isLocalNs=function(e){return e.uri===(this.typeNs||this.ns).uri};function zu(){this.value="",this.write=function(e){this.value+=e}}function Ku(e,t){var i=[""];this.append=function(s){return e.write(s),this},this.appendNewLine=function(){return t&&e.write(`
|
|
10
|
+
`),this},this.appendIndent=function(){return t&&e.write(i.join(" ")),this},this.indent=function(){return i.push(""),this},this.unindent=function(){return i.pop(),this}}function Hu(e){e=q({format:!1,preamble:!0},e||{});function t(i,s){var r=s||new zu,o=new Ku(r,e.format);if(e.preamble&&o.append(Pu),new le().build(i).serializeTo(o),!s)return r.value}return{toXML:t}}function In(e,t){Ke.call(this,e,t)}In.prototype=Object.create(Ke.prototype),In.prototype.fromXML=function(e,t,i){Ze(t)||(i=t,t="bpmn:Definitions");var s=new Os(q({model:this,lax:!0},i)),r=s.handler(t);return s.fromXML(e,r)},In.prototype.toXML=function(e,t){var i=new Hu(t);return new Promise(function(s,r){try{var o=i.toXML(e);return s({xml:o})}catch(a){return r(a)}})};var Yu="BPMN20",Wu="http://www.omg.org/spec/BPMN/20100524/MODEL",Xu="bpmn",Zu=[],$u=[{name:"Interface",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"operations",type:"Operation",isMany:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"Operation",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"inMessageRef",type:"Message",isReference:!0},{name:"outMessageRef",type:"Message",isReference:!0},{name:"errorRef",type:"Error",isMany:!0,isReference:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"EndPoint",superClass:["RootElement"]},{name:"Auditing",superClass:["BaseElement"]},{name:"GlobalTask",superClass:["CallableElement"],properties:[{name:"resources",type:"ResourceRole",isMany:!0}]},{name:"Monitoring",superClass:["BaseElement"]},{name:"Performer",superClass:["ResourceRole"]},{name:"Process",superClass:["FlowElementsContainer","CallableElement"],properties:[{name:"processType",type:"ProcessType",isAttr:!0},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"properties",type:"Property",isMany:!0},{name:"laneSets",isMany:!0,replaces:"FlowElementsContainer#laneSets",type:"LaneSet"},{name:"flowElements",isMany:!0,replaces:"FlowElementsContainer#flowElements",type:"FlowElement"},{name:"artifacts",type:"Artifact",isMany:!0},{name:"resources",type:"ResourceRole",isMany:!0},{name:"correlationSubscriptions",type:"CorrelationSubscription",isMany:!0},{name:"supports",type:"Process",isMany:!0,isReference:!0},{name:"definitionalCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"isExecutable",isAttr:!0,type:"Boolean"}]},{name:"LaneSet",superClass:["BaseElement"],properties:[{name:"lanes",type:"Lane",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Lane",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"partitionElementRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"partitionElement",type:"BaseElement"},{name:"flowNodeRef",type:"FlowNode",isMany:!0,isReference:!0},{name:"childLaneSet",type:"LaneSet",xml:{serialize:"xsi:type"}}]},{name:"GlobalManualTask",superClass:["GlobalTask"]},{name:"ManualTask",superClass:["Task"]},{name:"UserTask",superClass:["Task"],properties:[{name:"renderings",type:"Rendering",isMany:!0},{name:"implementation",isAttr:!0,type:"String"}]},{name:"Rendering",superClass:["BaseElement"]},{name:"HumanPerformer",superClass:["Performer"]},{name:"PotentialOwner",superClass:["HumanPerformer"]},{name:"GlobalUserTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"renderings",type:"Rendering",isMany:!0}]},{name:"Gateway",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"gatewayDirection",type:"GatewayDirection",default:"Unspecified",isAttr:!0}]},{name:"EventBasedGateway",superClass:["Gateway"],properties:[{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"eventGatewayType",type:"EventBasedGatewayType",isAttr:!0,default:"Exclusive"}]},{name:"ComplexGateway",superClass:["Gateway"],properties:[{name:"activationCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ExclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"InclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ParallelGateway",superClass:["Gateway"]},{name:"RootElement",isAbstract:!0,superClass:["BaseElement"]},{name:"Relationship",superClass:["BaseElement"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"direction",type:"RelationshipDirection",isAttr:!0},{name:"source",isMany:!0,isReference:!0,type:"Element"},{name:"target",isMany:!0,isReference:!0,type:"Element"}]},{name:"BaseElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,type:"String",isId:!0},{name:"documentation",type:"Documentation",isMany:!0},{name:"extensionDefinitions",type:"ExtensionDefinition",isMany:!0,isReference:!0},{name:"extensionElements",type:"ExtensionElements"}]},{name:"Extension",properties:[{name:"mustUnderstand",default:!1,isAttr:!0,type:"Boolean"},{name:"definition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"extensionAttributeDefinitions",type:"ExtensionAttributeDefinition",isMany:!0}]},{name:"ExtensionAttributeDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"type",isAttr:!0,type:"String"},{name:"isReference",default:!1,isAttr:!0,type:"Boolean"},{name:"extensionDefinition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionElements",properties:[{name:"valueRef",isAttr:!0,isReference:!0,type:"Element"},{name:"values",type:"Element",isMany:!0},{name:"extensionAttributeDefinition",type:"ExtensionAttributeDefinition",isAttr:!0,isReference:!0}]},{name:"Documentation",superClass:["BaseElement"],properties:[{name:"text",type:"String",isBody:!0},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Event",isAbstract:!0,superClass:["FlowNode","InteractionNode"],properties:[{name:"properties",type:"Property",isMany:!0}]},{name:"IntermediateCatchEvent",superClass:["CatchEvent"]},{name:"IntermediateThrowEvent",superClass:["ThrowEvent"]},{name:"EndEvent",superClass:["ThrowEvent"]},{name:"StartEvent",superClass:["CatchEvent"],properties:[{name:"isInterrupting",default:!0,isAttr:!0,type:"Boolean"}]},{name:"ThrowEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"inputSet",type:"InputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"CatchEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"parallelMultiple",isAttr:!0,type:"Boolean",default:!1},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"outputSet",type:"OutputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"BoundaryEvent",superClass:["CatchEvent"],properties:[{name:"cancelActivity",default:!0,isAttr:!0,type:"Boolean"},{name:"attachedToRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"EventDefinition",isAbstract:!0,superClass:["RootElement"]},{name:"CancelEventDefinition",superClass:["EventDefinition"]},{name:"ErrorEventDefinition",superClass:["EventDefinition"],properties:[{name:"errorRef",type:"Error",isAttr:!0,isReference:!0}]},{name:"TerminateEventDefinition",superClass:["EventDefinition"]},{name:"EscalationEventDefinition",superClass:["EventDefinition"],properties:[{name:"escalationRef",type:"Escalation",isAttr:!0,isReference:!0}]},{name:"Escalation",properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"escalationCode",isAttr:!0,type:"String"}],superClass:["RootElement"]},{name:"CompensateEventDefinition",superClass:["EventDefinition"],properties:[{name:"waitForCompletion",isAttr:!0,type:"Boolean",default:!0},{name:"activityRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"TimerEventDefinition",superClass:["EventDefinition"],properties:[{name:"timeDate",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeCycle",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeDuration",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"LinkEventDefinition",superClass:["EventDefinition"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"target",type:"LinkEventDefinition",isReference:!0},{name:"source",type:"LinkEventDefinition",isMany:!0,isReference:!0}]},{name:"MessageEventDefinition",superClass:["EventDefinition"],properties:[{name:"messageRef",type:"Message",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"ConditionalEventDefinition",superClass:["EventDefinition"],properties:[{name:"condition",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"SignalEventDefinition",superClass:["EventDefinition"],properties:[{name:"signalRef",type:"Signal",isAttr:!0,isReference:!0}]},{name:"Signal",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ImplicitThrowEvent",superClass:["ThrowEvent"]},{name:"DataState",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"ItemAwareElement",superClass:["BaseElement"],properties:[{name:"itemSubjectRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"dataState",type:"DataState"}]},{name:"DataAssociation",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"ItemAwareElement",isMany:!0,isReference:!0},{name:"targetRef",type:"ItemAwareElement",isReference:!0},{name:"transformation",type:"FormalExpression",xml:{serialize:"property"}},{name:"assignment",type:"Assignment",isMany:!0}]},{name:"DataInput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"inputSetRef",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithOptional",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithWhileExecuting",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"DataOutput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"outputSetRef",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithOptional",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithWhileExecuting",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"InputSet",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"dataInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"optionalInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"whileExecutingInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"outputSetRefs",type:"OutputSet",isMany:!0,isReference:!0}]},{name:"OutputSet",superClass:["BaseElement"],properties:[{name:"dataOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"inputSetRefs",type:"InputSet",isMany:!0,isReference:!0},{name:"optionalOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"whileExecutingOutputRefs",type:"DataOutput",isMany:!0,isReference:!0}]},{name:"Property",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"DataInputAssociation",superClass:["DataAssociation"]},{name:"DataOutputAssociation",superClass:["DataAssociation"]},{name:"InputOutputSpecification",superClass:["BaseElement"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"inputSets",type:"InputSet",isMany:!0},{name:"outputSets",type:"OutputSet",isMany:!0}]},{name:"DataObject",superClass:["FlowElement","ItemAwareElement"],properties:[{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"}]},{name:"InputOutputBinding",properties:[{name:"inputDataRef",type:"InputSet",isAttr:!0,isReference:!0},{name:"outputDataRef",type:"OutputSet",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"Assignment",superClass:["BaseElement"],properties:[{name:"from",type:"Expression",xml:{serialize:"xsi:type"}},{name:"to",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"DataStore",superClass:["RootElement","ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"capacity",isAttr:!0,type:"Integer"},{name:"isUnlimited",default:!0,isAttr:!0,type:"Boolean"}]},{name:"DataStoreReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataStoreRef",type:"DataStore",isAttr:!0,isReference:!0}]},{name:"DataObjectReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataObjectRef",type:"DataObject",isAttr:!0,isReference:!0}]},{name:"ConversationLink",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ConversationAssociation",superClass:["BaseElement"],properties:[{name:"innerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0},{name:"outerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0}]},{name:"CallConversation",superClass:["ConversationNode"],properties:[{name:"calledCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"Conversation",superClass:["ConversationNode"]},{name:"SubConversation",superClass:["ConversationNode"],properties:[{name:"conversationNodes",type:"ConversationNode",isMany:!0}]},{name:"ConversationNode",isAbstract:!0,superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"messageFlowRefs",type:"MessageFlow",isMany:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0}]},{name:"GlobalConversation",superClass:["Collaboration"]},{name:"PartnerEntity",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"PartnerRole",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"CorrelationProperty",superClass:["RootElement"],properties:[{name:"correlationPropertyRetrievalExpression",type:"CorrelationPropertyRetrievalExpression",isMany:!0},{name:"name",isAttr:!0,type:"String"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Error",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"errorCode",isAttr:!0,type:"String"}]},{name:"CorrelationKey",superClass:["BaseElement"],properties:[{name:"correlationPropertyRef",type:"CorrelationProperty",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Expression",superClass:["BaseElement"],isAbstract:!1,properties:[{name:"body",isBody:!0,type:"String"}]},{name:"FormalExpression",superClass:["Expression"],properties:[{name:"language",isAttr:!0,type:"String"},{name:"evaluatesToTypeRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Message",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"itemRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"ItemDefinition",superClass:["RootElement"],properties:[{name:"itemKind",type:"ItemKind",isAttr:!0},{name:"structureRef",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"import",type:"Import",isAttr:!0,isReference:!0}]},{name:"FlowElement",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"categoryValueRef",type:"CategoryValue",isMany:!0,isReference:!0}]},{name:"SequenceFlow",superClass:["FlowElement"],properties:[{name:"isImmediate",isAttr:!0,type:"Boolean"},{name:"conditionExpression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"sourceRef",type:"FlowNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"FlowNode",isAttr:!0,isReference:!0}]},{name:"FlowElementsContainer",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"laneSets",type:"LaneSet",isMany:!0},{name:"flowElements",type:"FlowElement",isMany:!0}]},{name:"CallableElement",isAbstract:!0,superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"supportedInterfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"ioBinding",type:"InputOutputBinding",isMany:!0,xml:{serialize:"property"}}]},{name:"FlowNode",isAbstract:!0,superClass:["FlowElement"],properties:[{name:"incoming",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"outgoing",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"lanes",type:"Lane",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"CorrelationPropertyRetrievalExpression",superClass:["BaseElement"],properties:[{name:"messagePath",type:"FormalExpression"},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"CorrelationPropertyBinding",superClass:["BaseElement"],properties:[{name:"dataPath",type:"FormalExpression"},{name:"correlationPropertyRef",type:"CorrelationProperty",isAttr:!0,isReference:!0}]},{name:"Resource",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"resourceParameters",type:"ResourceParameter",isMany:!0}]},{name:"ResourceParameter",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isRequired",isAttr:!0,type:"Boolean"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"CorrelationSubscription",superClass:["BaseElement"],properties:[{name:"correlationKeyRef",type:"CorrelationKey",isAttr:!0,isReference:!0},{name:"correlationPropertyBinding",type:"CorrelationPropertyBinding",isMany:!0}]},{name:"MessageFlow",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"MessageFlowAssociation",superClass:["BaseElement"],properties:[{name:"innerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0},{name:"outerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0}]},{name:"InteractionNode",isAbstract:!0,properties:[{name:"incomingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0},{name:"outgoingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"Participant",superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"interfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"participantMultiplicity",type:"ParticipantMultiplicity"},{name:"endPointRefs",type:"EndPoint",isMany:!0,isReference:!0},{name:"processRef",type:"Process",isAttr:!0,isReference:!0}]},{name:"ParticipantAssociation",superClass:["BaseElement"],properties:[{name:"innerParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"outerParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"ParticipantMultiplicity",properties:[{name:"minimum",default:0,isAttr:!0,type:"Integer"},{name:"maximum",default:1,isAttr:!0,type:"Integer"}],superClass:["BaseElement"]},{name:"Collaboration",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"participants",type:"Participant",isMany:!0},{name:"messageFlows",type:"MessageFlow",isMany:!0},{name:"artifacts",type:"Artifact",isMany:!0},{name:"conversations",type:"ConversationNode",isMany:!0},{name:"conversationAssociations",type:"ConversationAssociation"},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0},{name:"messageFlowAssociations",type:"MessageFlowAssociation",isMany:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"choreographyRef",type:"Choreography",isMany:!0,isReference:!0},{name:"conversationLinks",type:"ConversationLink",isMany:!0}]},{name:"ChoreographyActivity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"loopType",type:"ChoreographyLoopType",default:"None",isAttr:!0}]},{name:"CallChoreography",superClass:["ChoreographyActivity"],properties:[{name:"calledChoreographyRef",type:"Choreography",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"SubChoreography",superClass:["ChoreographyActivity","FlowElementsContainer"],properties:[{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"ChoreographyTask",superClass:["ChoreographyActivity"],properties:[{name:"messageFlowRef",type:"MessageFlow",isMany:!0,isReference:!0}]},{name:"Choreography",superClass:["Collaboration","FlowElementsContainer"]},{name:"GlobalChoreographyTask",superClass:["Choreography"],properties:[{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"TextAnnotation",superClass:["Artifact"],properties:[{name:"text",type:"String"},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Group",superClass:["Artifact"],properties:[{name:"categoryValueRef",type:"CategoryValue",isAttr:!0,isReference:!0}]},{name:"Association",superClass:["Artifact"],properties:[{name:"associationDirection",type:"AssociationDirection",isAttr:!0},{name:"sourceRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"targetRef",type:"BaseElement",isAttr:!0,isReference:!0}]},{name:"Category",superClass:["RootElement"],properties:[{name:"categoryValue",type:"CategoryValue",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Artifact",isAbstract:!0,superClass:["BaseElement"]},{name:"CategoryValue",superClass:["BaseElement"],properties:[{name:"categorizedFlowElements",type:"FlowElement",isMany:!0,isVirtual:!0,isReference:!0},{name:"value",isAttr:!0,type:"String"}]},{name:"Activity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"isForCompensation",default:!1,isAttr:!0,type:"Boolean"},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"boundaryEventRefs",type:"BoundaryEvent",isMany:!0,isReference:!0},{name:"properties",type:"Property",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"startQuantity",default:1,isAttr:!0,type:"Integer"},{name:"resources",type:"ResourceRole",isMany:!0},{name:"completionQuantity",default:1,isAttr:!0,type:"Integer"},{name:"loopCharacteristics",type:"LoopCharacteristics"}]},{name:"ServiceTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"SubProcess",superClass:["Activity","FlowElementsContainer","InteractionNode"],properties:[{name:"triggeredByEvent",default:!1,isAttr:!0,type:"Boolean"},{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"LoopCharacteristics",isAbstract:!0,superClass:["BaseElement"]},{name:"MultiInstanceLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"isSequential",default:!1,isAttr:!0,type:"Boolean"},{name:"behavior",type:"MultiInstanceBehavior",default:"All",isAttr:!0},{name:"loopCardinality",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopDataInputRef",type:"ItemAwareElement",isReference:!0},{name:"loopDataOutputRef",type:"ItemAwareElement",isReference:!0},{name:"inputDataItem",type:"DataInput",xml:{serialize:"property"}},{name:"outputDataItem",type:"DataOutput",xml:{serialize:"property"}},{name:"complexBehaviorDefinition",type:"ComplexBehaviorDefinition",isMany:!0},{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"oneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0},{name:"noneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0}]},{name:"StandardLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"testBefore",default:!1,isAttr:!0,type:"Boolean"},{name:"loopCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopMaximum",type:"Integer",isAttr:!0}]},{name:"CallActivity",superClass:["Activity","InteractionNode"],properties:[{name:"calledElement",type:"String",isAttr:!0}]},{name:"Task",superClass:["Activity","InteractionNode"]},{name:"SendTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ReceiveTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ScriptTask",superClass:["Task"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"script",type:"String"}]},{name:"BusinessRuleTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"AdHocSubProcess",superClass:["SubProcess"],properties:[{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"ordering",type:"AdHocOrdering",isAttr:!0},{name:"cancelRemainingInstances",default:!0,isAttr:!0,type:"Boolean"}]},{name:"Transaction",superClass:["SubProcess"],properties:[{name:"protocol",isAttr:!0,type:"String"},{name:"method",isAttr:!0,type:"String"}]},{name:"GlobalScriptTask",superClass:["GlobalTask"],properties:[{name:"scriptLanguage",isAttr:!0,type:"String"},{name:"script",isAttr:!0,type:"String"}]},{name:"GlobalBusinessRuleTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"ComplexBehaviorDefinition",superClass:["BaseElement"],properties:[{name:"condition",type:"FormalExpression"},{name:"event",type:"ImplicitThrowEvent"}]},{name:"ResourceRole",superClass:["BaseElement"],properties:[{name:"resourceRef",type:"Resource",isReference:!0},{name:"resourceParameterBindings",type:"ResourceParameterBinding",isMany:!0},{name:"resourceAssignmentExpression",type:"ResourceAssignmentExpression"},{name:"name",isAttr:!0,type:"String"}]},{name:"ResourceParameterBinding",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"parameterRef",type:"ResourceParameter",isAttr:!0,isReference:!0}],superClass:["BaseElement"]},{name:"ResourceAssignmentExpression",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}}],superClass:["BaseElement"]},{name:"Import",properties:[{name:"importType",isAttr:!0,type:"String"},{name:"location",isAttr:!0,type:"String"},{name:"namespace",isAttr:!0,type:"String"}]},{name:"Definitions",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"targetNamespace",isAttr:!0,type:"String"},{name:"expressionLanguage",default:"http://www.w3.org/1999/XPath",isAttr:!0,type:"String"},{name:"typeLanguage",default:"http://www.w3.org/2001/XMLSchema",isAttr:!0,type:"String"},{name:"imports",type:"Import",isMany:!0},{name:"extensions",type:"Extension",isMany:!0},{name:"rootElements",type:"RootElement",isMany:!0},{name:"diagrams",isMany:!0,type:"bpmndi:BPMNDiagram"},{name:"exporter",isAttr:!0,type:"String"},{name:"relationships",type:"Relationship",isMany:!0},{name:"exporterVersion",isAttr:!0,type:"String"}]}],em=[{name:"ProcessType",literalValues:[{name:"None"},{name:"Public"},{name:"Private"}]},{name:"GatewayDirection",literalValues:[{name:"Unspecified"},{name:"Converging"},{name:"Diverging"},{name:"Mixed"}]},{name:"EventBasedGatewayType",literalValues:[{name:"Parallel"},{name:"Exclusive"}]},{name:"RelationshipDirection",literalValues:[{name:"None"},{name:"Forward"},{name:"Backward"},{name:"Both"}]},{name:"ItemKind",literalValues:[{name:"Physical"},{name:"Information"}]},{name:"ChoreographyLoopType",literalValues:[{name:"None"},{name:"Standard"},{name:"MultiInstanceSequential"},{name:"MultiInstanceParallel"}]},{name:"AssociationDirection",literalValues:[{name:"None"},{name:"One"},{name:"Both"}]},{name:"MultiInstanceBehavior",literalValues:[{name:"None"},{name:"One"},{name:"All"},{name:"Complex"}]},{name:"AdHocOrdering",literalValues:[{name:"Parallel"},{name:"Sequential"}]}],tm={tagAlias:"lowerCase",typePrefix:"t"},im={name:Yu,uri:Wu,prefix:Xu,associations:Zu,types:$u,enumerations:em,xml:tm},nm="BPMNDI",sm="http://www.omg.org/spec/BPMN/20100524/DI",rm="bpmndi",om=[{name:"BPMNDiagram",properties:[{name:"plane",type:"BPMNPlane",redefines:"di:Diagram#rootElement"},{name:"labelStyle",type:"BPMNLabelStyle",isMany:!0}],superClass:["di:Diagram"]},{name:"BPMNPlane",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"}],superClass:["di:Plane"]},{name:"BPMNShape",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"isHorizontal",isAttr:!0,type:"Boolean"},{name:"isExpanded",isAttr:!0,type:"Boolean"},{name:"isMarkerVisible",isAttr:!0,type:"Boolean"},{name:"label",type:"BPMNLabel"},{name:"isMessageVisible",isAttr:!0,type:"Boolean"},{name:"participantBandKind",type:"ParticipantBandKind",isAttr:!0},{name:"choreographyActivityShape",type:"BPMNShape",isAttr:!0,isReference:!0}],superClass:["di:LabeledShape"]},{name:"BPMNEdge",properties:[{name:"label",type:"BPMNLabel"},{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"sourceElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#source"},{name:"targetElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#target"},{name:"messageVisibleKind",type:"MessageVisibleKind",isAttr:!0,default:"initiating"}],superClass:["di:LabeledEdge"]},{name:"BPMNLabel",properties:[{name:"labelStyle",type:"BPMNLabelStyle",isAttr:!0,isReference:!0,redefines:"di:DiagramElement#style"}],superClass:["di:Label"]},{name:"BPMNLabelStyle",properties:[{name:"font",type:"dc:Font"}],superClass:["di:Style"]}],am=[{name:"ParticipantBandKind",literalValues:[{name:"top_initiating"},{name:"middle_initiating"},{name:"bottom_initiating"},{name:"top_non_initiating"},{name:"middle_non_initiating"},{name:"bottom_non_initiating"}]},{name:"MessageVisibleKind",literalValues:[{name:"initiating"},{name:"non_initiating"}]}],lm=[],cm={name:nm,uri:sm,prefix:rm,types:om,enumerations:am,associations:lm},dm="DC",pm="http://www.omg.org/spec/DD/20100524/DC",hm="dc",um=[{name:"Boolean"},{name:"Integer"},{name:"Real"},{name:"String"},{name:"Font",properties:[{name:"name",type:"String",isAttr:!0},{name:"size",type:"Real",isAttr:!0},{name:"isBold",type:"Boolean",isAttr:!0},{name:"isItalic",type:"Boolean",isAttr:!0},{name:"isUnderline",type:"Boolean",isAttr:!0},{name:"isStrikeThrough",type:"Boolean",isAttr:!0}]},{name:"Point",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0}]},{name:"Bounds",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0},{name:"width",type:"Real",isAttr:!0},{name:"height",type:"Real",isAttr:!0}]}],mm=[],fm={name:dm,uri:pm,prefix:hm,types:um,associations:mm},gm="DI",ym="http://www.omg.org/spec/DD/20100524/DI",Am="di",km=[{name:"DiagramElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"extension",type:"Extension"},{name:"owningDiagram",type:"Diagram",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"owningElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"modelElement",isReadOnly:!0,isVirtual:!0,isReference:!0,type:"Element"},{name:"style",type:"Style",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"ownedElement",type:"DiagramElement",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Node",isAbstract:!0,superClass:["DiagramElement"]},{name:"Edge",isAbstract:!0,superClass:["DiagramElement"],properties:[{name:"source",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"target",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"waypoint",isUnique:!1,isMany:!0,type:"dc:Point",xml:{serialize:"xsi:type"}}]},{name:"Diagram",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"rootElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0},{name:"name",isAttr:!0,type:"String"},{name:"documentation",isAttr:!0,type:"String"},{name:"resolution",isAttr:!0,type:"Real"},{name:"ownedStyle",type:"Style",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Shape",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Plane",isAbstract:!0,superClass:["Node"],properties:[{name:"planeElement",type:"DiagramElement",subsettedProperty:"DiagramElement-ownedElement",isMany:!0}]},{name:"LabeledEdge",isAbstract:!0,superClass:["Edge"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"LabeledShape",isAbstract:!0,superClass:["Shape"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"Label",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Style",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"}]},{name:"Extension",properties:[{name:"values",isMany:!0,type:"Element"}]}],Em=[],bm={tagAlias:"lowerCase"},Cm={name:gm,uri:ym,prefix:Am,types:km,associations:Em,xml:bm},wm="bpmn.io colors for BPMN",Nm="http://bpmn.io/schema/bpmn/biocolor/1.0",Tm="bioc",Im=[{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]}],Bm=[],xm=[],Sm={name:wm,uri:Nm,prefix:Tm,types:Im,enumerations:Bm,associations:xm},Dm="BPMN in Color",Pm="http://www.omg.org/spec/BPMN/non-normative/color/1.0",Mm="color",Om=[{name:"ColoredLabel",extends:["bpmndi:BPMNLabel"],properties:[{name:"color",isAttr:!0,type:"String"}]},{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"background-color",isAttr:!0,type:"String"},{name:"border-color",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"border-color",isAttr:!0,type:"String"}]}],Vm=[],Rm=[],Lm={name:Dm,uri:Pm,prefix:Mm,types:Om,enumerations:Vm,associations:Rm},vm={bpmn:im,bpmndi:cm,dc:fm,di:Cm,bioc:Sm,color:Lm};function Fm(e,t){var i=q({},vm,e);return new In(i,t)}var Qm="Tried to access di from the businessObject. The di is available through the diagram element only. For more information, see https://github.com/bpmn-io/bpmn-js/issues/1472";function Um(e){ai(e,"di")||Object.defineProperty(e,"di",{enumerable:!1,get:function(){throw new Error(Qm)}})}function xe(e,t){return e.$instanceOf(t)}function jm(e){return $e(e.rootElements,function(t){return xe(t,"bpmn:Process")||xe(t,"bpmn:Collaboration")})}function Gm(e,t){var i={},s=[],r={};function o(N,T){return function(L){N(L,T)}}function a(N){i[N.id]=N}function l(N){return i[N.id]}function c(N,T){var L=N.gfx;if(L)throw new Error(t("already rendered {element}",{element:be(N)}));return e.element(N,r[N.id],T)}function m(N,T){return e.root(N,r[N.id],T)}function u(N,T){try{var L=r[N.id]&&c(N,T);return a(N),L}catch(ce){p(ce.message,{element:N,error:ce}),console.error(t("failed to import {element}",{element:be(N)})),console.error(ce)}}function p(N,T){e.error(N,T)}var y=this.registerDi=function(T){var L=T.bpmnElement;L?r[L.id]?p(t("multiple DI elements defined for {element}",{element:be(L)}),{element:L}):(r[L.id]=T,Um(L)):p(t("no bpmnElement referenced in {element}",{element:be(T)}),{element:T})};function k(N){C(N.plane)}function C(N){y(N),R(N.planeElement,v)}function v(N){y(N)}this.handleDefinitions=function(T,L){var ce=T.diagrams;if(L&&ce.indexOf(L)===-1)throw new Error(t("diagram not part of bpmn:Definitions"));if(!L&&ce&&ce.length&&(L=ce[0]),!L)throw new Error(t("no diagram to display"));r={},k(L);var ke=L.plane;if(!ke)throw new Error(t("no plane for {element}",{element:be(L)}));var de=ke.bpmnElement;if(!de)if(de=jm(T),de)p(t("correcting missing bpmnElement on {plane} to {rootElement}",{plane:be(ke),rootElement:be(de)})),ke.bpmnElement=de,y(ke);else throw new Error(t("no process or collaboration to display"));var f=m(de,ke);if(xe(de,"bpmn:Process")||xe(de,"bpmn:SubProcess"))z(de,f);else if(xe(de,"bpmn:Collaboration"))ft(de,f),Q(T.rootElements,f);else throw new Error(t("unsupported bpmnElement for {plane}: {rootElement}",{plane:be(ke),rootElement:be(de)}));F(s)};var F=this.handleDeferred=function(){for(var T;s.length;)T=s.shift(),T()};function z(N,T){lt(N,T),B(N.ioSpecification,T),O(N.artifacts,T),a(N)}function Q(N,T){var L=li(N,function(ce){return!l(ce)&&xe(ce,"bpmn:Process")&&ce.laneSets});L.forEach(o(z,T))}function I(N,T){u(N,T)}function E(N,T){R(N,o(I,T))}function x(N,T){u(N,T)}function S(N,T){u(N,T)}function D(N,T){u(N,T)}function w(N,T){u(N,T)}function O(N,T){R(N,function(L){xe(L,"bpmn:Association")?s.push(function(){w(L,T)}):w(L,T)})}function B(N,T){!N||(R(N.dataInputs,o(S,T)),R(N.dataOutputs,o(D,T)))}var V=this.handleSubProcess=function(T,L){lt(T,L),O(T.artifacts,L)};function M(N,T){var L=u(N,T);xe(N,"bpmn:SubProcess")&&V(N,L||T),xe(N,"bpmn:Activity")&&B(N.ioSpecification,T),s.push(function(){R(N.dataInputAssociations,o(x,T)),R(N.dataOutputAssociations,o(x,T))})}function G(N,T){u(N,T)}function K(N,T){u(N,T)}function it(N,T){s.push(function(){var L=u(N,T);N.childLaneSet&&ie(N.childLaneSet,L||T),gt(N)})}function ie(N,T){R(N.lanes,o(it,T))}function X(N,T){R(N,o(ie,T))}function lt(N,T){ct(N.flowElements,T),N.laneSets&&X(N.laneSets,T)}function ct(N,T){R(N,function(L){xe(L,"bpmn:SequenceFlow")?s.push(function(){G(L,T)}):xe(L,"bpmn:BoundaryEvent")?s.unshift(function(){M(L,T)}):xe(L,"bpmn:FlowNode")?M(L,T):xe(L,"bpmn:DataObject")||(xe(L,"bpmn:DataStoreReference")||xe(L,"bpmn:DataObjectReference")?K(L,T):p(t("unrecognized flowElement {element} in context {context}",{element:be(L),context:T?be(T.businessObject):"null"}),{element:L,context:T}))})}function ge(N,T){var L=u(N,T),ce=N.processRef;ce&&z(ce,L||T)}function ft(N,T){R(N.participants,o(ge,T)),O(N.artifacts,T),s.push(function(){E(N.messageFlows,T)})}function gt(N){R(N.flowNodeRef,function(T){var L=T.get("lanes");L&&L.push(N)})}}function _m(e,t,i){var s,r,o,a,l,c=[];function m(u,p){var y={root:function(F,z){return s.add(F,z)},element:function(F,z,Q){return s.add(F,z,Q)},error:function(F,z){c.push({message:F,context:z})}},k=new Gm(y,o);p=p||u.diagrams&&u.diagrams[0];var C=qm(u,p);if(!C)throw new Error(o("no diagram to display"));R(C,function(F){k.handleDefinitions(u,F)});var v=p.plane.bpmnElement.id;a.setRootElement(a.findRoot(v+"_plane")||a.findRoot(v))}return new Promise(function(u,p){try{return s=e.get("bpmnImporter"),r=e.get("eventBus"),o=e.get("translate"),a=e.get("canvas"),r.fire("import.render.start",{definitions:t}),m(t,i),r.fire("import.render.complete",{error:l,warnings:c}),u({warnings:c})}catch(y){return y.warnings=c,p(y)}})}function qm(e,t){if(!!t){var i=t.plane.bpmnElement,s=i;!j(i,"bpmn:Process")&&!j(i,"bpmn:Collaboration")&&(s=Jm(i));var r;j(s,"bpmn:Collaboration")?r=s:r=$e(e.rootElements,function(m){if(!!j(m,"bpmn:Collaboration"))return $e(m.participants,function(u){return u.processRef===s})});var o=[s];r&&(o=kd(r.participants,function(m){return m.processRef}),o.push(r));var a=Ea(o),l=[t],c=[i];return R(e.diagrams,function(m){var u=m.plane.bpmnElement;a.indexOf(u)!==-1&&c.indexOf(u)===-1&&(l.push(m),c.push(u))}),l}}function Ea(e){var t=[];return R(e,function(i){!i||(t.push(i),t=t.concat(Ea(i.flowElements)))}),t}function Jm(e){for(var t=e;t;){if(j(t,"bpmn:Process"))return t;t=t.$parent}}var zm='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14.02 5.57" width="53" height="21"><path fill="currentColor" d="M1.88.92v.14c0 .41-.13.68-.4.8.33.14.46.44.46.86v.33c0 .61-.33.95-.95.95H0V0h.95c.65 0 .93.3.93.92zM.63.57v1.06h.24c.24 0 .38-.1.38-.43V.98c0-.28-.1-.4-.32-.4zm0 1.63v1.22h.36c.2 0 .32-.1.32-.39v-.35c0-.37-.12-.48-.4-.48H.63zM4.18.99v.52c0 .64-.31.98-.94.98h-.3V4h-.62V0h.92c.63 0 .94.35.94.99zM2.94.57v1.35h.3c.2 0 .3-.09.3-.37v-.6c0-.29-.1-.38-.3-.38h-.3zm2.89 2.27L6.25 0h.88v4h-.6V1.12L6.1 3.99h-.6l-.46-2.82v2.82h-.55V0h.87zM8.14 1.1V4h-.56V0h.79L9 2.4V0h.56v4h-.64zm2.49 2.29v.6h-.6v-.6zM12.12 1c0-.63.33-1 .95-1 .61 0 .95.37.95 1v2.04c0 .64-.34 1-.95 1-.62 0-.95-.37-.95-1zm.62 2.08c0 .28.13.39.33.39s.32-.1.32-.4V.98c0-.29-.12-.4-.32-.4s-.33.11-.33.4z"/><path fill="currentColor" d="M0 4.53h14.02v1.04H0zM11.08 0h.63v.62h-.63zm.63 4V1h-.63v2.98z"/></svg>',ba=zm,Ca={verticalAlign:"middle"},wa={color:"#404040"},Km={zIndex:"1001",position:"fixed",top:"0",left:"0",right:"0",bottom:"0"},Hm={width:"100%",height:"100%",background:"rgba(40,40,40,0.2)"},Ym={position:"absolute",left:"50%",top:"40%",transform:"translate(-50%)",width:"260px",padding:"10px",background:"white",boxShadow:"0 1px 4px rgba(0,0,0,0.3)",fontFamily:"Helvetica, Arial, sans-serif",fontSize:"14px",display:"flex",lineHeight:"1.3"},Wm='<div class="bjs-powered-by-lightbox"><div class="backdrop"></div><div class="notice"><a href="https://bpmn.io" target="_blank" rel="noopener" class="link">'+ba+'</a><span>Web-based tooling for BPMN, DMN and forms powered by <a href="https://bpmn.io" target="_blank" rel="noopener">bpmn.io</a>.</span></div></div>',at;function Xm(){at=Ue(Wm),Ee(at,Km),Ee(et("svg",at),Ca),Ee(et(".backdrop",at),Hm),Ee(et(".notice",at),Ym),Ee(et(".link",at),wa,{margin:"15px 20px 15px 10px",alignSelf:"center"})}function Zm(){at||(Xm(),di.bind(at,".backdrop","click",function(e){document.body.removeChild(at)})),document.body.appendChild(at)}function ue(e){e=q({},ef,e),this._moddle=this._createModdle(e),this._container=this._createContainer(e),nf(this._container),this._init(this._container,this._moddle,e)}rt(ue,gi),ue.prototype.importXML=async function(t,i){const s=this;function r(a){return s.get("eventBus").createEvent(a)}let o=[];try{t=this._emit("import.parse.start",{xml:t})||t;let a;try{a=await this._moddle.fromXML(t,"bpmn:Definitions")}catch(y){throw this._emit("import.parse.complete",{error:y}),y}let l=a.rootElement;const c=a.references,m=a.warnings,u=a.elementsById;o=o.concat(m),l=this._emit("import.parse.complete",r({error:null,definitions:l,elementsById:u,references:c,warnings:o}))||l;const p=await this.importDefinitions(l,i);return o=o.concat(p.warnings),this._emit("import.done",{error:null,warnings:o}),{warnings:o}}catch(a){let l=a;throw o=o.concat(l.warnings||[]),Bn(l,o),l=$m(l),this._emit("import.done",{error:l,warnings:l.warnings}),l}},ue.prototype.importDefinitions=async function(t,i){return this._setDefinitions(t),{warnings:(await this.open(i)).warnings}},ue.prototype.open=async function(t){const i=this._definitions;let s=t;if(!i){const o=new Error("no XML imported");throw Bn(o,[]),o}if(typeof t=="string"&&(s=tf(i,t),!s)){const o=new Error("BPMNDiagram <"+t+"> not found");throw Bn(o,[]),o}try{this.clear()}catch(o){throw Bn(o,[]),o}const{warnings:r}=await _m(this,i,s);return{warnings:r}},ue.prototype.saveXML=async function(t){t=t||{};let i=this._definitions,s,r;try{if(!i)throw new Error("no definitions loaded");i=this._emit("saveXML.start",{definitions:i})||i,r=(await this._moddle.toXML(i,t)).xml,r=this._emit("saveXML.serialized",{xml:r})||r}catch(a){s=a}const o=s?{error:s}:{xml:r};if(this._emit("saveXML.done",o),s)throw s;return o},ue.prototype.saveSVG=async function(){this._emit("saveSVG.start");let t,i;try{const s=this.get("canvas"),r=s.getActiveLayer(),o=et("defs",s._svg),a=lo(r),l=o?"<defs>"+lo(o)+"</defs>":"",c=r.getBBox();t=`<?xml version="1.0" encoding="utf-8"?>
|
|
27
11
|
<!-- created with bpmn-js / http://bpmn.io -->
|
|
28
12
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
29
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="`+c.width+'" height="'+c.height+'" viewBox="'+c.x+" "+c.y+" "+c.width+" "+c.height+'" version="1.1">'+l+a+"</svg>"}catch(s){i=s}if(this._emit("saveSVG.done",{error:i,svg:t}),i)throw i;return{svg:t}},ue.prototype._setDefinitions=function(e){this._definitions=e},ue.prototype.getModules=function(){return this._modules},ue.prototype.clear=function(){!this.getDefinitions()||Lt.prototype.clear.call(this)},ue.prototype.destroy=function(){Lt.prototype.destroy.call(this),fi(this._container)},ue.prototype.on=function(e,t,i,s){return this.get("eventBus").on(e,t,i,s)},ue.prototype.off=function(e,t){this.get("eventBus").off(e,t)},ue.prototype.attachTo=function(e){if(!e)throw new Error("parentNode required");this.detach(),e.get&&e.constructor.prototype.jquery&&(e=e.get(0)),typeof e=="string"&&(e=At(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},ue.prototype.getDefinitions=function(){return this._definitions},ue.prototype.detach=function(){const e=this._container,t=e.parentNode;!t||(this._emit("detach",{}),t.removeChild(e))},ue.prototype._init=function(e,t,i){const s=i.modules||this.getModules(i),r=i.additionalModules||[],o=[{bpmnjs:["value",this],moddle:["value",t]}],a=[].concat(o,s,r),l=_(Ed(i,["additionalModules"]),{canvas:_({},i.canvas,{container:e}),modules:a});Lt.call(this,l),i&&i.container&&this.attachTo(i.container)},ue.prototype._emit=function(e,t){return this.get("eventBus").fire(e,t)},ue.prototype._createContainer=function(e){const t=Qe('<div class="bjs-container"></div>');return we(t,{width:Na(e.width),height:Na(e.height),position:e.position}),t},ue.prototype._createModdle=function(e){const t=_({},this._moddleExtensions,e.moddleExtensions);return new Bm(t)},ue.prototype._modules=[];function Rn(e,t){return e.warnings=t,e}function Um(e){const i=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec(e.message);return i&&(e.message="unparsable content <"+i[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+i[2]),e}const _m={width:"100%",height:"100%",position:"relative"};function Na(e){return e+(Dt(e)?"px":"")}function Gm(e,t){return t&&st(e.diagrams,function(i){return i.id===t})||null}function qm(e){const i='<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" >'+Ea+"</a>",s=Qe(i);we(At("svg",s),Ca),we(s,wa,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),e.appendChild(s),Wt.bind(s,"click",function(r){jm(),r.preventDefault()})}function wi(e){ue.call(this,e)}lt(wi,ue),wi.prototype._modules=[nh,Ch,Bo,xh,bo],wi.prototype._moddleExtensions={};var Jm=/^djs-cursor-.*$/;function Ta(e){var t=Kt(document.body);t.removeMatching(Jm),e&&t.add("djs-cursor-"+e)}function Hm(){Ta(null)}var zm=5e3;function Km(e,t){t=t||"element.click";function i(){return!1}return e.once(t,zm,i),function(){e.off(t,i)}}function Ba(e,t){return{x:e.x-t.x,y:e.y-t.y}}var Wm=15;function Ia(e,t){var i;function s(l){return a(l.originalEvent)}e.on("canvas.focus.changed",function(l){l.focused?e.on("element.mousedown",500,s):e.off("element.mousedown",s)});function r(l){var c=i.start,m=i.button,u=Oo(l),p=Ba(u,c);if(!i.dragging&&Ym(p)>Wm&&(i.dragging=!0,m===0&&Km(e),Ta("grab")),i.dragging){var g=i.last||i.start;p=Ba(u,g),t.scroll({dx:p.x,dy:p.y}),i.last=u}l.preventDefault()}function o(l){Wt.unbind(document,"mousemove",r),Wt.unbind(document,"mouseup",o),i=null,Hm()}function a(l){if(!uo(l.target,".djs-draggable")){var c=l.button;if(!(c>=2||l.ctrlKey||l.shiftKey||l.altKey))return i={button:c,start:Oo(l)},Wt.bind(document,"mousemove",r),Wt.bind(document,"mouseup",o),!0}}this.isActive=function(){return!!i}}Ia.$inject=["eventBus","canvas"];function Ym(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}const Js={__init__:["moveCanvas"],moveCanvas:["type",Ia]};var Zm=new Is("tt");function Xm(e){var t=Qe('<div class="djs-tooltip-container" />');return we(t,{position:"absolute",width:"0",height:"0"}),e.insertBefore(t,e.firstChild),t}function $m(e,t,i){we(e,{left:t+"px",top:i+"px"})}function Hs(e,t){e.style.display=t===!1?"none":""}var xa="djs-tooltip",zs="."+xa;function De(e,t){this._eventBus=e,this._canvas=t,this._ids=Zm,this._tooltipDefaults={show:{minZoom:.7,maxZoom:5}},this._tooltips={},this._tooltipRoot=Xm(t.getContainer());var i=this;mi.bind(this._tooltipRoot,zs,"mousedown",function(s){s.stopPropagation()}),mi.bind(this._tooltipRoot,zs,"mouseover",function(s){i.trigger("mouseover",s)}),mi.bind(this._tooltipRoot,zs,"mouseout",function(s){i.trigger("mouseout",s)}),this._init()}De.$inject=["eventBus","canvas"],De.prototype.add=function(e){if(!e.position)throw new Error("must specifiy tooltip position");if(!e.html)throw new Error("must specifiy tooltip html");var t=this._ids.next();return e=_({},this._tooltipDefaults,e,{id:t}),this._addTooltip(e),e.timeout&&this.setTimeout(e),t},De.prototype.trigger=function(e,t){var i=t.delegateTarget||t.target,s=this.get(Es(i,"data-tooltip-id"));!s||(e==="mouseover"&&s.timeout&&this.clearTimeout(s),e==="mouseout"&&s.timeout&&(s.timeout=1e3,this.setTimeout(s)))},De.prototype.get=function(e){return typeof e!="string"&&(e=e.id),this._tooltips[e]},De.prototype.clearTimeout=function(e){if(e=this.get(e),!!e){var t=e.removeTimer;t&&(clearTimeout(t),e.removeTimer=null)}},De.prototype.setTimeout=function(e){if(e=this.get(e),!!e){this.clearTimeout(e);var t=this;e.removeTimer=setTimeout(function(){t.remove(e)},e.timeout)}},De.prototype.remove=function(e){var t=this.get(e);t&&(fi(t.html),fi(t.htmlContainer),delete t.htmlContainer,delete this._tooltips[t.id])},De.prototype.show=function(){Hs(this._tooltipRoot)},De.prototype.hide=function(){Hs(this._tooltipRoot,!1)},De.prototype._updateRoot=function(e){var t=e.scale||1,i=e.scale||1,s="matrix("+t+",0,0,"+i+","+-1*e.x*t+","+-1*e.y*i+")";this._tooltipRoot.style.transform=s,this._tooltipRoot.style["-ms-transform"]=s},De.prototype._addTooltip=function(e){var t=e.id,i=e.html,s,r=this._tooltipRoot;i.get&&i.constructor.prototype.jquery&&(i=i.get(0)),nt(i)&&(i=Qe(i)),s=Qe('<div data-tooltip-id="'+t+'" class="'+xa+'">'),we(s,{position:"absolute"}),s.appendChild(i),e.type&&Kt(s).add("djs-tooltip-"+e.type),e.className&&Kt(s).add(e.className),e.htmlContainer=s,r.appendChild(s),this._tooltips[t]=e,this._updateTooltip(e)},De.prototype._updateTooltip=function(e){var t=e.position,i=e.htmlContainer;$m(i,t.x,t.y)},De.prototype._updateTooltipVisibilty=function(e){R(this._tooltips,function(t){var i=t.show,s=t.htmlContainer,r=!0;i&&((i.minZoom>e.scale||i.maxZoom<e.scale)&&(r=!1),Hs(s,r))})},De.prototype._init=function(){var e=this;function t(i){e._updateRoot(i),e._updateTooltipVisibilty(i),e.show()}this._eventBus.on("canvas.viewbox.changing",function(i){e.hide()}),this._eventBus.on("canvas.viewbox.changed",function(i){t(i.viewbox)})};const Ks={__init__:["tooltips"],tooltips:["type",De]},ef=e=>{var t=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[t.call(e)]},Ws=e=>{var t=ef(e),i;if(t==="array")i=[];else if(t==="object")i={};else return e;if(t==="array")for(var s=0,r=e.length;s<r;s++)i.push(Ws(e[s]));else if(t==="object")for(var o in e)i[o]=Ws(e[o]);return i};function tf(e,t="YYYY-MM-DD HH:mm:ss"){const i=new Date(e),s=i.getFullYear(),r=i.getMonth()+1,o=i.getDate(),a=i.getHours(),l=i.getMinutes(),c=i.getSeconds(),m=i.getDay(),p={YYYY:s,MM:r,DD:o,HH:a,mm:l,ss:c,ww:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"][m]};for(let g in p)t=t.replace(g,p[g]);return t}function nf(e){e=Ws(e);const t={};e.forEach(s=>{t[s.historyActivityId]?t[s.historyActivityId].push(s):t[s.historyActivityId]=[s]});for(let s in t){const r=t[s];if(r.length>1){const o=e.findLast(a=>a.historyActivityId==s);o.assigneeName=Array.from(new Set(r.map(a=>a.assigneeName))).join("/")}}const i=[];return e.forEach(s=>{let{assigneeName:r,createTime:o,endTime:a,comments:l}=s;/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&(o=o.replace(/-/g,"/"),a=a.replace(/-/g,"/"));const c={id:s.historyActivityId,class:!a&&s.historyActivityType!="candidate"?"nodePrimary":""};let m="";if(r){if(m=`<span title='${r}'>${r}</span><br>`,o&&(m+=`<span title='${o}'>${tf(o,"YYYY-MM-DD HH:mm")}</span><br>`),l&&l.length>0){let p,{type:g,fullMessage:A}=l.find(w=>w.action=="AddComment")||{};g=="assigneeComment"&&(p="\u53D8\u66F4\u5BA1\u6838\u4EBA\uFF1A"+A,c.class="nodeWarn"),g=="dispatchComment"&&(p="\u8C03\u5EA6\uFF1A"+A,c.class="nodeWarn"),g=="transferComment"&&(p="\u8F6C\u529E\uFF1A"+A,c.class="nodeWarn"),g=="delegateComment"&&(p="\u59D4\u6258\uFF1A"+A,c.class="nodeWarn"),g=="rollbackComment"&&(p="\u6307\u5B9A\u56DE\u9000\uFF1A"+A,c.class="nodeError"),g=="terminateComment"&&(p="\u7EC8\u6B62\uFF1A"+A,c.class="nodeError"),g=="addMultiInstanceComment"&&(p="\u52A0\u7B7E\uFF1A"+A,c.class="nodeWarn"),g=="deleteMultiInstanceComment"&&(p="\u51CF\u7B7E\uFF1A"+A,c.class="nodeError"),g=="withdrawComment"&&(p="\u64A4\u9500\uFF1A"+A,c.class="nodeWarn"),g=="deleteProcessComment"&&(p="\u5220\u9664\u6D41\u7A0B\uFF1A"+A,c.class="nodeError"),g=="cancelProcessComment"&&(p="\u62D2\u7EDD\uFF1A"+A,c.class="nodeError"),g=="comment"&&(p="\u5BA1\u6279\uFF1A"+A,c.class="nodeSuccess"),p&&(m+=`<span title='${p}'>${p}</span>`)}c.tooltip=m}s.historyActivityType=="sequenceFlow"?c.class="lineWarn":!c.class&&s.historyActivityType!="candidate"&&(c.class="nodeSuccess");const u=i.findIndex(p=>p.id==s.historyActivityId);u!=-1?i.splice(u,1,c):i.push(c)}),i}function Sa(e){const t=[],i=[],s=[];return e.routeTxt&&e.routeTxt.length>0&&e.routeTxt.forEach(r=>{r.type==="user"?t.push(...r.ids.filter(o=>o&&o.trim()!=="")):r.type==="post"?i.push(...r.ids):r.type==="dept"&&s.push(...r.ids)}),{intersection:e.assigneeRetain=="true"?1:0,userIds:[...new Set(t)],postIds:[...new Set(i)],deptIds:[...new Set(s)]}}const hE="",sf={name:"bpmn-look",props:{diagram:{type:String,default:"",required:!0},approvalData:{type:Array,default:()=>[]},isXml:{type:Boolean,default:!0}},data(){return{isAdd:!1,viewer:null,loading:!0}},mounted(){this.initViewer(),window.addEventListener("resize",this.canvasResize)},watch:{diagram:{async handler(e){let t=e;t&&this.isXml&&this.loadXml(t)},immediate:!0}},methods:{async getXml(e){let t={},i="";try{t=await api.repository.getXmlByProcessDefId({processDefId:e}),t.code==200&&(i=t.data)}catch(s){console.error(s)}return i},async initViewer(){this.viewer&&this.viewer.destroy();const e=Object.prototype.toString.call(wi)=="[object Function]"?wi:wi.default,t=Object.prototype.toString.call(Ks)=="[object Object]"?Ks:Ks.default,i=Object.prototype.toString.call(Js)=="[object Object]"?Js:Js.default;this.viewer=new e({container:this.$refs.container,additionalModules:[t,i]}),this.viewer.on("import.done",({error:s})=>{s||(this.canvasResize(),this.addApprovalData(),this.enableTouchMove())})},canvasResize(){this.viewer&&this.viewer.get("canvas").zoom(1,"auto")},enableTouchMove(){const e=this.viewer.get("canvas"),t=e._svg,i=document.querySelector(".viewport"),s=document.querySelector(".djs-tooltip-container");let r=!1,o,a,l=0,c=0,m=0,u=0;t.addEventListener("touchstart",p=>{r=!0;const g=p.touches[0];o=g.clientX,a=g.clientY;const A=i.getAttribute("transform").match(/matrix\(([^)]+)\)/)[1].split(/\s*,\s*|\s+/);l=parseFloat(A[4]),c=parseFloat(A[5]);const w=this.getTransformMatrix(s.style.transform);this.isAdd?(m=parseFloat(w[4]),u=parseFloat(w[5])):(m=parseFloat(w[4])+30,u=parseFloat(w[5])+16,this.isAdd=!0)}),t.addEventListener("touchmove",p=>{if(!r)return;const g=p.touches[0],A=g.clientX-o,w=g.clientY-a;c!==void 0&&(i.setAttribute("transform",`matrix(0.679276 0 0 0.679276 ${l+A} ${c+w})`),s.setAttribute("style",`position: absolute; width: 0px; height: 0px; transform: matrix(0.615, 0, 0, 0.615, ${m+A}, ${u+w});`)),e._cachedViewbox&&(e._cachedViewbox.x=A,e._cachedViewbox.y=w),p.preventDefault()}),t.addEventListener("touchend",()=>{r=!1})},getTransformMatrix(e){if(!e||e==="none")return[1,0,0,1,0,0];const t=e.match(/matrix(3d)?\(([^)]+)\)/i);if(!t)return null;const i=t[2].split(/\s*,\s*|\s+/).map(parseFloat);return t[1]!=="3d"&&i.length===6||t[1]==="3d"&&i.length===16?i:null},setNodeColor(e){const t=this.viewer.get("canvas"),i=this.viewer.get("elementRegistry"),s=this.viewer.get("tooltips");e.forEach(r=>{if(r.id&&r.class&&t.addMarker(r.id,r.class),r.id&&r.tooltip){const o=i.get(r.id);if(o){let{x:a,y:l,type:c}=o;["bpmn:StartEvent","bpmn:EndEvent"].includes(c)?(a=a-45,l=l+65):["bpmn:UserTask"].includes(c)&&(a=a-10,l=l+90),s.add({position:{x:a,y:l},html:r.tooltip})}}})},addApprovalData(){if(!this.approvalData||this.approvalData.length==0)return;const e=nf(this.approvalData);e&&e.length>0&&this.setNodeColor(e)},async loadXml(e){this.viewer||await this.initViewer();try{const{warnings:t}=await this.viewer.importXML(e);t.length&&this.$emit("warning",t)}catch(t){this.$emit("error",{message:"XML \u52A0\u8F7D\u5931\u8D25",detail:t.message}),console.error("XML \u52A0\u8F7D\u5931\u8D25:",t)}}},beforeDestroy(){window.removeEventListener("resize",this.canvasResize),this.viewer&&this.viewer.destroy()}},rf={ref:"container",class:"bpmn-look"};function of(e,t,i,s,r,o){return n.openBlock(),n.createElementBlock("div",rf,null,512)}const Da=le(sf,[["render",of],["__scopeId","data-v-31fd27d5"]]),af="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgA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bcgQskHIld8IZAhZIhpZtyxGwQMqV3AlnCFggGVq2LUfAAilXciecIWCBZGjZthwBC6RcyZ1whoAFkqFl23IELJByJXfCGQIWSIaWbcsRsEDKldwJZwhYIBlati1HwAIpV3InnCFggWRo2bYcAQukXMmdcIaABZKhZdtyBCyQciV3whkCFkiGlm3LEbBAypXcCWcIWCAZWrYtR8ACKVdyJ5whYIFkaNm2HAELpFzJnXCGgAWSoWXbcgQskHIld8IZAhZIhpZtyxGwQMqV3AlnCFggGVq2LUfAAilXciecIWCBZGjZthwBC6RcyZ1whoAFkqFl23IELJByJXfCGQIWSIaWbcsRsEDKldwJZwhYIBlati1HwAIpV3InnCFggWRo2bYcAQukXMmdcIaABZKhZdtyBCyQciV3whkCFkiGlm3LEbBAypXcCWcIWCAZWrYtR8ACKVdyJ5whYIFkaNm2HAELpFzJnXCGgAWSoWXbcgQskHIld8IZAhZIhpZtyxGwQMqV3AlnCFggGVq2LUfAAilXciecIWCBZGjZthwBC6RcyZ1whoAFkqFl23IELJByJXfCGQIWSIaWbcsRsEDKldwJZwhYIBlati1HwAIpV3InnCFggWRo2bYcAQukXMmdcIaABZKhZdtyBCyQciV3whkCFkiGlm3LEbBAypXcCWcI/B+xx2bn1cBs4wAAAABJRU5ErkJggg==",Ys="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADR9JREFUeF7tnXvIbkUVxp9VVtrF0hQMM8MgoahMu3cqzVI6x9KkC9lRhKAoxS5aWXZHIqMrWIQWohlZlkWpJ092v1BEEFlkQlAQBVEmRRcqW7E68x1ev/N977f3emdmz+z17H/fWWtmPWt+7+zL7LUFPKgAFdhUAaE2VIAKbK4AAeHsoAJLFCAgnB5UgIBwDlABnwJcQXy60SqIAgQkSKIZpk8BAuLTjVZBFCAgQRLNMH0KEBCfbrQKogABCZJohulTgID4dKNVEAUISJBEM0yfAgTEpxutgihAQIIkmmH6FCAgPt1oFUQBAhIk0QzT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Hz80uI7bGRynisidHccwi6F3A0iCxL6XYe+4zxkSwtEQWl0BEgASwtEQHDaU7gCZMSSEozE4ugVkhpAQjgbh6BqQGUFCOBqFo3tAZgAJ4WgYjlkA0jEkhKNxOGYDSIeQEI4O4JgVIB1BQjg6gWN2gHQACeHoCI5ZAtIwJISjMzhmC0iDkHwBwAu5t6o/Qrp8kj5UZlVtYe+WwfGCuX3ffWgOem83a0AaWEkIR+eEzB6QCSEhHJ3DMetrkPW5qXy6RThmAEcoQCquJIRjJnCEA6QCJIRjRnCEBKQgJIRjZnCEBaQAJIRjhnCEBmQBkt0AnrJCfgnHCuK1bhriNu+yJKSvRVm1FA8khKP1Gb7i+MIDklaS/QGMhYRwrDj5ejAnIAtZUtUr7FNsAxJ3mYi8YkA7NulcAQKyLoHps85v3+SU63cAzl/ly7idz5dwwycgm6RcVY8A8FQARwK4DcAvROTWcDMkeMAEJPgEYPjLFSAgnCFUYIkCBITTgwoQEM4BKuBTgCuITzdaBVGAgARJNMP0KUBAfLrRKogCBCRIohmmTwEC4tONVkEUICBBEs0wfQoQEJ9utAqiAAEJkmiG6VOAgPh0o1UQBQhIkEQzTJ8CBMSnG62CKEBAgiSaYfoUICA+3WgVRAECEiTRDNOnAAHx6UarIAoQkCCJZpg+BQiITzdaBVGAgARJNMP0KUBAfLrRKogCBCRIohmmTwEC4tONVkEUICBBEs0wfQoQEJ9utAqiAAEJkmiG6VOAgPh0o1UQBQhIkEQzTJ8CBMSnG62CKEBAgiSaYfoUICA+3WgVRAECEiTRDNOnAAHx6UarIAoQkCCJZpg+BQiITzdaBVGAgARJNMP0KUBAfLrRKogCBCRIohmmTwEC4tONVkEUICBBEs0wfQoQEJ9utAqiAAEJkmiG6VPgf/UDKvbyCmTdAAAAAElFTkSuQmCC",cf=tt({name:"TopTips",props:{text:{default:"",type:String},type:{default:"default",type:String},statusTips:{default:!1,type:Boolean},domNode:{default:"",type:String},visible:{default:!1,type:Boolean}},data(){return{show:!1,status:"",timeOut:null}},computed:{error(){return af},loading(){return lf},success(){return Ys}},watch:{type:{handler(e,t){if(e=="loading"){clearInterval(this.timeOut);return}else this.timeOut=setTimeout(()=>{this.show=!1},1500)},immediate:!0,deep:!0}},mounted(){this.$nextTick(()=>{const e=document.getElementsByClassName("process-warp")[0]?document.getElementsByClassName("process-warp")[0]:document.getElementsByClassName("sumbmitPopup-index-sumbit")[0].getElementsByClassName("top-popup")[0];e.append?e.append(this.$el):e.appendChild(this.$el)})},methods:{handleOpen(){this.show||(this.show=!0,this.type=="loading"?clearInterval(this.timeOut):this.timeOut=setTimeout(()=>{this.show=!1},1500))},handleClose(){this.show=!1}}}),uE="",df={key:0},pf={key:0,class:"top-tipss-text"},hf={class:"top-tipss-status"},uf={key:0,class:"top-tipss-loadinig"},mf=["src"],ff={key:0,class:"top-tipss-status-text"},gf={key:1,class:"top-tipss-success"},yf=["src"],Af={key:0,class:"top-tipss-status-text"},kf={key:2,class:"top-tipss-error"},bf=["src"],Ef={key:0,class:"top-tipss-status-text"};function Cf(e,t,i,s,r,o){return e.show?(n.openBlock(),n.createElementBlock("div",df,[e.statusTips?(n.openBlock(),n.createElementBlock("div",{key:1,class:"top-tipss",style:n.normalizeStyle(e.show?"visibility: visible; opacity: 1;":"visibility: hidden; opacity: 0;")},[n.createElementVNode("div",hf,[e.type=="loading"?(n.openBlock(),n.createElementBlock("div",uf,[n.createElementVNode("img",{src:e.loading},null,8,mf),e.text?(n.openBlock(),n.createElementBlock("div",ff,n.toDisplayString(e.text),1)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),e.type=="success"?(n.openBlock(),n.createElementBlock("div",gf,[n.createElementVNode("img",{src:e.success},null,8,yf),e.text?(n.openBlock(),n.createElementBlock("div",Af,n.toDisplayString(e.text),1)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),e.type=="error"?(n.openBlock(),n.createElementBlock("div",kf,[n.createElementVNode("img",{src:e.error},null,8,bf),e.text?(n.openBlock(),n.createElementBlock("div",Ef,n.toDisplayString(e.text),1)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0)])],4)):(n.openBlock(),n.createElementBlock("div",{key:0,class:"top-tipss",style:n.normalizeStyle(e.show?"visibility: visible; opacity: 1;":"visibility: hidden; opacity: 0;")},[e.text?(n.openBlock(),n.createElementBlock("div",pf,n.toDisplayString(e.text),1)):n.createCommentVNode("",!0)],4)),n.createElementVNode("div",{class:"top-tipss-mask",style:n.normalizeStyle(e.show&&e.statusTips?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4)])):n.createCommentVNode("",!0)}const rt=le(cf,[["render",Cf],["__scopeId","data-v-239e459d"]]),wf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAEmBJREFUeF7tnAt0VdWZx397n3PvDUlISHgEkJfDGxXRVnGqq2o7PtvB1hl0fFun6ji+xhfgzCioq5WA2hFxptUOY23VqlNf06laW7VrVUfs8gEqgmBFRZ4hIRBIcu85e8/69j4HriEJAYLiY691181Ncs/Z+3/++/u+/b0U3T1mWM0AAlZhmaEirFUoZZlus+WlDM8ZJqKpsJZhCiYAxmgC5T8Pk+lYWG4Vy7UhBrSF15ViOYaNrZr5TVt4lxtUfuu1Z9iQAShWETNDme5ckuqWiwkIdxGyEsUMCg6QOTbXazMDAs1wYD9jGKk1gwJFX6UIUZQrS7W7v0AI5fJKAGqy0IQVrMAq6rE0WUsUW9YZwwqtWQq8FRve3VDGKi5TrQ6wGWRQGKYTu3ns5tg9gGRCD6NZ5Njinlz1HFtBK/thOUwZJmjNKGCcggoDthChYguRvIqetTFCJb8arf0rHaGGUEGgIBNiNcjKNwKLjOEdq3kdxUvkeKv+MiW/B2HyOBSTMbsD1O4BlK5AKA706UE/AyeguBrLGAVxbAksWGMwGmwuRAWyYI3KaLbeX36Xfi4YbFwEnnyOkt+1RlgDSmu0AhUoBO8AxWIst2h4sq6Z1R6k3d9uuwaQMOcG2U5+An1vtiNizWlYJivFM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5reFvBklhadEW8ZDWLGqapxq3G307Km/aeffcwyPcWChB1mjR5GzHH5ta1MjCMGI5mnIGRGgYFmr4KpHawp1JJkzd/5tm+yVsyY2uRcu1N0vYsNqwzsELDUgyLopB3++ZYuWyvbPLW0XbrpE1gFg5DUYFvC3iQy+U0rp3XMKUZ6hSmL9Nejnb5nfK315A2gZaNeXjpk2wT+P9KELohNtx5+AAAAABJRU5ErkJggg==",Nf=tt({name:"attchViews",components:{TopTips:rt,PreviewImage:un,PreView:Qr,TopPopup:Fe},props:{request:{type:Function,defalut:()=>{}},limit:{type:[Number,String],default:4},changeFn:{type:Function,default:null},requires:{default:!1},inComing:{type:Array,defalut:()=>[]},deletFn:{type:Function},onlyShow:{type:Boolean,default:!1},linkUrl:{type:Function,defalut:null}},data(){return{lists:[],filesArr:[],imgIcon:["jpg","jpeg","png","gif"],docIcon:["doc","docx"],xlsIcon:["xls","xlsx"],zipIcon:["zip","rar","7z"],extension:["bmp","gif","jpg","jpeg","png","doc","docx","xls","xlsx","ppt","pptx","html","htm","txt","wps","rar","zip","gz","bz2","mp4","avi","rmvb","pdf"],current:"",buttonLoading:!1,handleCloseType:!0,uploadState:!0,textTips:"",statusTips:!1,typeTips:"success",visible:!1,indexd:0,visibleS:!1,fileUrl:""}},watch:{inComing:{handler(e,t){e&&(this.filesArr=[].concat(e),this.emitView())},immediate:!0,deep:!0}},computed:{haveCount(){return this.limit==-1?100:this.limit-this.filesArr.length},addFile(){return wf},del(){return jr},doc(){return Ur},file(){return _r},image(){return Gr},pdf(){return qr},xls(){return Jr},zip(){return Hr}},mounted(){this.$nextTick(()=>{let e=document.createElement("input");e.type="file",e.className="upload-input",e.style="opacity: 0;position: absolute;width:100%;height:100%;visibility: hidden;",e.multiple=!0,e.id="fileUp",e.addEventListener("change",this.handleSelect),document.getElementById("inputfile").appendChild(e)})},methods:{handleClick(){if(typeof nativeMethod<"u"&&nativeMethod.vueSelectFile&&nativeMethod.vueSelectFile(2,"*",this.limit||1),this.haveCount<=0){this.handleTips(`\u6700\u591A\u4E0A\u4F20${this.limit}\u4E2A\u6587\u4EF6`,!1,"success");return}document.getElementById("fileUp").click()},async handleSelect(e,t){this.handleTips("\u4E0A\u4F20\u4E2D",!0,"loading");const i=Array.from(e.target.files);document.getElementById("fileUp").value="";let s=0,r=this.haveCount>i.length?i.length:this.haveCount;try{for(let o=0;o<r;o++)if(this.extension.includes(i[o].name.substring(i[o].name.lastIndexOf(".")+1))){const a=new FormData;a.append("file",i[o]);const l=await this.request.post("/file/upload",a,{headers:{"Content-Type":"multipart/form-data"}});if(l.code===200){if(this.filesArr.length>0){for(let c=0;c<this.filesArr.length;c++)if(l.name==this.filesArr[c].name&&s++,this.filesArr[c].name.includes(`(${s})`)&&s++,s>0){let m=l.name.lastIndexOf(".");l.name=`${l.name.substring(0,m)} (${s}) .${l.name.substring(l.name.lastIndexOf(".")+1)}`}}this.filesArr.push(l.data)}else{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.viewImage();return}}else{this.handleTips(`\u6587\u4EF6${i[o].name}\u683C\u5F0F\u9519\u8BEF,\u8BF7\u91CD\u65B0\u4E0A\u4F20`,!0,"error");return}this.handleTips("\u4E0A\u4F20\u6210\u529F",!0,"success"),this.viewImage(),this.emitView()}catch{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.emitView()}},handleDel(e,t){if(this.deletFn){if(this.deletFn(t)===!1){this.handleTips("\u5220\u9664\u5931\u8D25",!0,"error");return}this.filesArr.splice(e,1),this.emitView()}else this.filesArr.splice(e,1),this.emitView()},viewFile(e,t){this.imgIcon.includes(e.name.substring(e.name.lastIndexOf(".")+1).toLowerCase())?(this.indexd=this.lists.indexOf(e.url),this.visible=!0):e.url&&(this.fileUrl=e.url,this.visibleS=!0)},viewImage(){this.lists=[];let e=[];this.filesArr.map((t,i)=>{this.imgIcon.includes(t.name.substring(t.name.lastIndexOf(".")+1).toLowerCase())}),e=this.filesArr.filter(t=>this.imgIcon.includes(t.name.substring(t.name.lastIndexOf(".")+1).toLowerCase())),e.forEach((t,i)=>{this.lists.push(t.url)})},emitView(){this.$emit("getValue",this.filesArr)},clearData(){this.filesArr=[]},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()}}}),mE="",Tf={class:"attch-upload"},Bf={key:0,class:"attch-upload-mask"},If={class:"attch-upload-body"},xf={class:"upload-header"},Sf={class:"upload-header-title"},Df={key:0,class:"upload-header-title--re"},Pf={class:"upload-header-upload"},Mf=["src"],Of={class:"upload-body"},Vf={key:0,class:"upload-list"},Rf={class:"list-items-icon"},Lf=["src"],vf=["src"],Ff=["src"],Qf=["src"],jf=["src"],Uf=["src"],_f={class:"list-items-info"},Gf={class:"info-name"},qf={class:"info-attribute"},Jf={class:"info-attribute-size"},Hf=["onClick"],zf={key:0,class:"list-items-operation"},Kf=["onClick"],Wf=["src"];function Yf(e,t,i,s,r,o){const a=n.resolveComponent("TopTips"),l=n.resolveComponent("PreviewImage"),c=n.resolveComponent("PreView"),m=n.resolveComponent("TopPopup");return n.openBlock(),n.createElementBlock("div",Tf,[e.buttonLoading?(n.openBlock(),n.createElementBlock("div",Bf)):n.createCommentVNode("",!0),n.createElementVNode("div",If,[n.createElementVNode("div",xf,[n.createElementVNode("div",Sf,[t[3]||(t[3]=n.createTextVNode(" \u9644\u4EF6 ",-1)),e.requires?(n.openBlock(),n.createElementBlock("span",Df,"*")):n.createCommentVNode("",!0)]),n.createElementVNode("div",Pf,[e.onlyShow?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:"upload-header-upload--item",id:"inputfile",onClick:t[0]||(t[0]=(...u)=>e.handleClick&&e.handleClick(...u))},[n.createElementVNode("img",{src:e.addFile},null,8,Mf),t[4]||(t[4]=n.createTextVNode("\u4E0A\u4F20\u9644\u4EF6 ",-1))]))])]),n.createElementVNode("div",Of,[e.filesArr.length>0?(n.openBlock(),n.createElementBlock("div",Vf,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.filesArr,(u,p)=>(n.openBlock(),n.createElementBlock("div",{class:"list-items",key:u.uuid},[n.createElementVNode("div",Rf,[e.xlsIcon.includes(u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase())?(n.openBlock(),n.createElementBlock("img",{key:0,class:"icon-img",src:e.xls},null,8,Lf)):e.imgIcon.includes(u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase())?(n.openBlock(),n.createElementBlock("img",{key:1,class:"icon-img",src:e.image},null,8,vf)):u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase()=="pdf"?(n.openBlock(),n.createElementBlock("img",{key:2,class:"icon-img",src:e.pdf},null,8,Ff)):e.docIcon.includes(u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase())?(n.openBlock(),n.createElementBlock("img",{key:3,class:"icon-img",src:e.doc},null,8,Qf)):e.zipIcon.includes(u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase())?(n.openBlock(),n.createElementBlock("img",{key:4,class:"icon-img",src:e.zip},null,8,jf)):(n.openBlock(),n.createElementBlock("img",{key:5,class:"icon-img",src:e.file},null,8,Uf))]),n.createElementVNode("div",_f,[n.createElementVNode("div",Gf,n.toDisplayString(u.name),1),n.createElementVNode("div",qf,[n.createElementVNode("span",Jf,n.toDisplayString(u.fileSize<1024?u.fileSize:u.fileSize/1024>1024?parseFloat((u.fileSize/1024/1024).toFixed(2)):parseFloat((u.fileSize/1024).toFixed(2)))+n.toDisplayString(u.fileSize<1024?"b":parseFloat((u.fileSize/1024).toFixed(2))<1024?"kb":"M"),1),n.createElementVNode("span",{class:"info-attribute-views",onClick:g=>e.viewFile(u,p)}," \u9884\u89C8 ",8,Hf)])]),e.onlyShow?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",zf,[n.createElementVNode("div",{onClick:g=>e.handleDel(p,u),class:"list-items-operation-img"},[n.createElementVNode("img",{src:e.del},null,8,Wf)],8,Kf)]))]))),128))])):n.createCommentVNode("",!0)])]),n.createVNode(a,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),n.createVNode(l,{images:e.lists,visible:e.visible,"onUpdate:visible":t[1]||(t[1]=u=>e.visible=u),indexd:e.indexd},null,8,["images","visible","indexd"]),n.createVNode(m,{visible:e.visibleS,"onUpdate:visible":t[2]||(t[2]=u=>e.visibleS=u),ref:"TopPopup",titleText:"\u9644\u4EF6\u9884\u89C8",isDrawer:"",isIndex:99},{default:n.withCtx(()=>[e.visibleS?(n.openBlock(),n.createBlock(c,{key:0,file:e.fileUrl},null,8,["file"])):n.createCommentVNode("",!0)]),_:1},8,["visible"])])}const ti=le(Nf,[["render",Yf],["__scopeId","data-v-69217b12"]]),fE="",Zf={name:"nf-flow",components:{attchViews:ti},props:{request:{type:Object,default:()=>{}},flowList:{type:Array,default:()=>[]}},data(){return{isFlag:!1,toggleText:"\u5C55\u5F00",commentMap:{assigneeComment:"\u53D8\u66F4\u5BA1\u6838\u4EBA",dispatchComment:"\u8C03\u5EA6",transferComment:"\u8F6C\u529E",delegateComment:"\u59D4\u6258",rollbackComment:"\u9A73\u56DE\u610F\u89C1",terminateComment:"\u7EC8\u6B62\u610F\u89C1",addMultiInstanceComment:"\u52A0\u7B7E",deleteMultiInstanceComment:"\u51CF\u7B7E",withdrawComment:"\u64A4\u9500",recallComment:"\u64A4\u56DE",deleteProcessComment:"\u5220\u9664\u6D41\u7A0B",skipComment:"\u8DF3\u8FC7",comment:"\u5BA1\u6279\u610F\u89C1"}}},methods:{handleClick(){this.isFlag=!this.isFlag,this.toggleText=this.isFlag?"\u6536\u8D77":"\u5C55\u5F00"}}},Xf={type:"flex"},$f=["timestamp"],eg={key:0},tg={key:0},ig={key:2,style:{color:"gray","font-size":"12px"}},ng={key:0},sg={key:1,style:{color:"gray","font-size":"12px"}},rg={key:2},og={class:"p-file"},ag=["onClick"],lg=["onClick"];function cg(e,t,i,s,r,o){return n.openBlock(),n.createElementBlock("div",Xf,[n.createElementVNode("div",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.flowList,(a,l)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[["candidate","sequenceFlow"].includes(a.historyActivityType)?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:a.id,timestamp:a.endTime||a.createTime,placement:"top",class:"flow-item"},[n.createElementVNode("p",null,n.toDisplayString(a.assigneeName)+" \u5728 ["+n.toDisplayString(a.createTime)+"] \u5F00\u59CB\u5904\u7406 ["+n.toDisplayString(a.historyActivityType=="endEvent"?"\u7ED3\u675F":a.historyActivityName||"\u672A\u547D\u540D")+"] \u73AF\u8282 ",1),a.historyActivityDurationTime?(n.openBlock(),n.createElementBlock("p",eg," \u4EFB\u52A1\u5386\u65F6 ["+n.toDisplayString(a.historyActivityDurationTime)+"] ",1)):n.createCommentVNode("",!0),a.comments&&a.comments.length>0?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(a.comments.filter(c=>c.action==="AddComment"),(c,m)=>(n.openBlock(),n.createElementBlock("p",{key:m},[m<1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[r.commentMap[c.type]?(n.openBlock(),n.createElementBlock("span",tg,n.toDisplayString(r.commentMap[c.type])+": ["+n.toDisplayString(c.fullMessage)+"] ",1)):n.createCommentVNode("",!0),a.comments.filter(u=>u.action==="AddComment").length>1?(n.openBlock(),n.createElementBlock("span",{key:1,style:{color:"#1989fa",float:"right"},onClick:t[0]||(t[0]=(...u)=>o.handleClick&&o.handleClick(...u))},[n.createTextVNode(n.toDisplayString(r.toggleText)+" ",1),n.createElementVNode("i",{class:n.normalizeClass([r.isFlag?"arrow-up":"arrow-down"])},null,2)])):n.createCommentVNode("",!0),c.time?(n.openBlock(),n.createElementBlock("p",ig,n.toDisplayString(c.time),1)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0),m>0&&r.isFlag?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[r.commentMap[c.type]?(n.openBlock(),n.createElementBlock("span",ng,n.toDisplayString(r.commentMap[c.type])+": ["+n.toDisplayString(c.fullMessage)+"] ",1)):n.createCommentVNode("",!0),c.time?(n.openBlock(),n.createElementBlock("p",sg,n.toDisplayString(c.time),1)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0)]))),128)):n.createCommentVNode("",!0),a.endTime?(n.openBlock(),n.createElementBlock("p",rg,"\u7ED3\u675F\u65F6\u95F4: ["+n.toDisplayString(a.endTime)+"]",1)):n.createCommentVNode("",!0),n.createElementVNode("div",og,[a.attachmentsFujian&&a.attachmentsFujian.length>0?(n.openBlock(),n.createElementBlock("div",{key:0,onClick:c=>e.$emit("view",a.attachmentsFujian)}," \u67E5\u770B\u9644\u4EF6",8,ag)):n.createCommentVNode("",!0),a.attachmentsQianzi&&a.attachmentsQianzi.length>0?(n.openBlock(),n.createElementBlock("div",{key:1,onClick:c=>e.$emit("view",a.attachmentsQianzi)}," \u67E5\u770B\u7B7E\u5B57",8,lg)):n.createCommentVNode("",!0)])],8,$f))],64))),256))])])}const dg=tt({name:"TopTab",components:{processFlow:le(Zf,[["render",cg],["__scopeId","data-v-5f7dda7c"]]),BpmnLook:Da,TopPopup:Fe,ViewAttchList:zr,PreviewImage:un},props:{ProcessInsObj:{type:Object,default:()=>({})},processXml:{type:String,default:""},approvalData:{type:Array,default:()=>[]},tapList:{type:Array,default:()=>[]},selfTapList:{type:Array,default:()=>[]},track:{type:String,default:""},taskComment:{type:Array,default:()=>[]},trackList:{type:Array,default:()=>[]}},data(){return{trackUrl:"",taskCommentList:[],active:"",defaultTabList:[{label:"\u57FA\u672C\u4FE1\u606F",key:"a",type:"default",slot:"default"},{label:"\u6D41\u7A0B\u56FE",key:"b",type:"default",slot:"b"},{label:"\u5BA1\u6279\u8BB0\u5F55",key:"c",type:"default",slot:"c"}],isTapList:[{label:"\u57FA\u672C\u4FE1\u606F",key:"a",type:"default",slot:"default"},{label:"\u6D41\u7A0B\u56FE",key:"b",type:"default",slot:"b"},{label:"\u5BA1\u6279\u8BB0\u5F55",key:"c",type:"default",slot:"c"}],label:document.getElementsByClassName("tops-tab-header-items"),visible:!1,inList:[],visibleTack:!1,trackListss:[],signPreViewVisible:!1,signLists:[],indexd:0}},watch:{tapList:{handler(e,t){this.selfTapList.length||(this.isTapList=[].concat(this.defaultTabList),e.length>0&&e.forEach((i,s)=>{i.sort&&i.sort>1?this.isTapList.splice(i.sort-1,0,i):i.sort==1?this.isTapList.unshift(i):this.isTapList.push(i)}),this.active=this.isTapList[0].key)},immediate:!0,deep:!0},selfTapList:{handler(e,t){e.length&&(this.isTapList=[].concat(e),this.active=this.isTapList[0].key)},immediate:!0,deep:!0},track:{handler(e,t){e&&(this.trackUrl=e,window.location.protocol=="https:"&&(this.trackUrl=this.trackUrl.replace("http://59.53.91.230:8088/","https://kq.ddzg.cn:8093/"),this.trackUrl=this.trackUrl.replace("http://59.53.91.231:8088/","https://acme-test.ddzg.cn:2119/"),this.trackUrl=this.trackUrl.replace("http://121.40.143.183:80/","https://acme-aws.ddzg.cn/"),this.trackUrl=this.trackUrl.replace("http://121.40.143.183/","https://acme-aws.ddzg.cn/"),this.trackUrl=this.trackUrl.replace("http://acme-aws.ddzg.cn/","https://acme-aws.ddzg.cn/")))},immediate:!0,deep:!0},taskComment:{handler(e,t){e&&(this.taskCommentList=e)},immediate:!0,deep:!0},trackList:{handler(e,t){e&&(this.trackListss=e)},immediate:!0,deep:!0}},mounted(){this.tabAnimation(0)},methods:{formatFlow(e){return(e||[]).map(i=>({...i,attachmentsFujian:(i.attachments||[]).filter(s=>s.type!="signature"),attachmentsQianzi:(i.attachments||[]).filter(s=>s.type=="signature")}))},handleActive(e,t){e!==this.active&&(this.active=e,this.tabAnimation(t))},tabAnimation(e){if(this.label.length){let t=document.getElementsByClassName("bottom-line")[0],i;if(t.offsetWidth<this.label[e].offsetWidth-10){let s=(this.label[e].offsetWidth-t.offsetWidth-10)/2;i=`${this.label[e].offsetLeft+s}px`}else if(t.offsetWidth>this.label[e].offsetWidth-10){let s=(t.offsetWidth-this.label[e].offsetWidth+10)/2;i=`${this.label[e].offsetLeft-s}px`}else i=`${this.label[e].offsetLeft}px`;t.style.transition=".3s",t.style.transform=`translateX(${i})`}},viewList(e){this.visible=!0,this.inList=e},viewSign(e,t){this.signLists=e.filter(i=>i.digitalSignature).map(i=>i.digitalSignature),this.indexd=this.signLists.findIndex(i=>i==t),this.signPreViewVisible=!0}}}),yE="",pg={class:"tops-tab"},hg={class:"tops-tab-header"},ug=["onClick"],mg={key:0,class:"bottom-line"},fg={class:"tops-tab-body"},gg=["name"],yg={key:2,class:"textnone"},Ag={key:2,style:{height:"100%"}},kg={key:1,class:"textnone"},bg={class:"seal-list__item--option"},Eg={style:{"max-width":"100px"}},Cg={class:"seal-list__item--option"},wg={style:{"max-width":"100px"}},Ng={class:"seal-list__item--option"},Tg={style:{"max-width":"100px"}};function Bg(e,t,i,s,r,o){const a=n.resolveComponent("BpmnLook"),l=n.resolveComponent("processFlow"),c=n.resolveComponent("ViewAttchList"),m=n.resolveComponent("TopPopup"),u=n.resolveComponent("PreviewImage");return n.openBlock(),n.createElementBlock("div",pg,[n.createElementVNode("div",hg,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.isTapList,(p,g)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["tops-tab-header-items",[p.key===e.active?"active":""]]),onClick:A=>e.handleActive(p.key,g)},n.toDisplayString(p.label),11,ug))),256)),e.isTapList.length?(n.openBlock(),n.createElementBlock("div",mg)):n.createCommentVNode("",!0)]),n.createElementVNode("div",fg,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.isTapList,p=>n.withDirectives((n.openBlock(),n.createElementBlock("div",{key:p.key,style:{height:"100%"},class:n.normalizeClass([p.key==="c"&&"tops-tab-body-taskcommentlist"])},[p.key==="a"&&p.type==="default"?n.renderSlot(e.$slots,"default",{key:0},void 0,!0):n.createCommentVNode("",!0),e.active===p.key&&p.key==="b"&&p.type==="default"?(n.openBlock(),n.createElementBlock("div",{key:1,class:"uph-tab-b",style:{height:"100%"},name:p.slot},[e.processXml?(n.openBlock(),n.createElementBlock("div",{key:0,style:{padding:"10px 20px",color:"#1389ff"},onClick:t[0]||(t[0]=()=>e.visibleTack=!0)}," \u67E5\u770B\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F ")):n.createCommentVNode("",!0),p.key==="b"&&e.processXml?(n.openBlock(),n.createBlock(a,{key:1,ref_for:!0,ref:"PreviewRef",diagram:e.processXml,approvalData:e.approvalData},null,8,["diagram","approvalData"])):(n.openBlock(),n.createElementBlock("div",yg," \u6682\u65E0\u6D41\u7A0B\u56FE "))],8,gg)):n.createCommentVNode("",!0),p.key==="c"&&p.type==="default"?(n.openBlock(),n.createElementBlock("div",Ag,[p.key==="c"&&e.ProcessInsObj.flow?(n.openBlock(),n.createBlock(l,{key:0,request:e.ProcessInsObj.request,"flow-list":e.formatFlow(e.ProcessInsObj.flow),onView:e.viewList},null,8,["request","flow-list","onView"])):(n.openBlock(),n.createElementBlock("div",kg,"\u6682\u65E0\u6570\u636E"))])):n.createCommentVNode("",!0),p.type=="slot"?n.renderSlot(e.$slots,p.slot,{key:3},void 0,!0):n.createCommentVNode("",!0)],2)),[[n.vShow,e.active===p.key]])),128))]),n.createVNode(m,{visible:e.visible,"onUpdate:visible":t[1]||(t[1]=p=>e.visible=p),ref:"TopPopup",titleText:"\u9644\u4EF6\u5217\u8868",isDrawer:"",isIndex:5},{default:n.withCtx(()=>[n.createVNode(c,{inList:e.inList},null,8,["inList"])]),_:1},8,["visible"]),n.createVNode(u,{images:e.signLists,visible:e.signPreViewVisible,"onUpdate:visible":t[2]||(t[2]=p=>e.signPreViewVisible=p),indexd:e.indexd},null,8,["images","visible","indexd"]),n.createVNode(m,{visible:e.visibleTack,"onUpdate:visible":t[3]||(t[3]=p=>e.visibleTack=p),ref:"TopPopups",titleText:"\u6D41\u7A0B\u4FE1\u606F",isDrawer:"",width:"60vw"},{default:n.withCtx(()=>[e.trackListss&&e.trackListss.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.trackListss,(p,g)=>(n.openBlock(),n.createElementBlock("div",{key:p.id,class:"seal-list__item"},[n.createElementVNode("div",null,[n.createElementVNode("div",bg,[t[4]||(t[4]=n.createElementVNode("span",null,"\u5E8F\u53F7",-1)),n.createElementVNode("span",Eg,n.toDisplayString(g+1),1)]),n.createElementVNode("div",Cg,[t[5]||(t[5]=n.createElementVNode("span",null,"\u8282\u70B9\u540D\u79F0",-1)),n.createElementVNode("span",wg,n.toDisplayString(p.historyActivityName),1)]),n.createElementVNode("div",Ng,[t[6]||(t[6]=n.createElementVNode("span",null,"\u5BA1\u6279\u4EBA",-1)),n.createElementVNode("span",Tg,n.toDisplayString(p.assigneeName),1)])])]))),128)):n.createCommentVNode("",!0)]),_:1},8,["visible"])])}const Ig=le(dg,[["render",Bg],["__scopeId","data-v-3cb88319"]]),xg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACfVJREFUeF7tnT2S1FYYRaUCYgJ2wArYgRMIYQPGMVUQt8bDAoDRxFBFbLwBE5qEHbACdkBAbCi5HjxgGKbn6b7Wz9O7h9B8avV3rk7J6r7VtA1/IACBvQRa2EAAAvsJIAhXBwQuIYAgXB4QQBCuAQjkEeAOkseNo0wIIIhJ0KyZRwBB8rhxlAkBBDEJmjXzCCBIHjeOMiGAICZBs2YeAQTJ48ZRJgQQxCRo1swjgCB53DjKhACCmATNmnkEECSPG0eZEEAQk6BZM48AguRx4ygTAghiEjRr5hFAkDxuHGVCAEFMgmbNPAIIkseNo0wIIIhJ0KyZRwBB8rhxlAkBBDEJmjXzCCBIHjeOMiGAICZBs2YeAQTJ48ZRJgQQxCRo1swjgCB53DjKhACCmATNmnkEECSPG0eZEEAQk6BZM48AguRx4ygTAghiEjRr5hFAkDxuHGVCAEFMgm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AiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBL4Csq/cvbKQGitAAAAAElFTkSuQmCC",Dg=tt({name:"TopDownSelect",props:{option:{type:Array,default:[]},optionStyle:{type:String,default:""},maskShow:{type:Boolean,default:!0},border:{type:Boolean,default:!1},defaultValue:{type:String,default:""},placeholder:{type:String,default:"\u8BF7\u9009\u62E9"},isSlots:{type:Boolean,default:!1},disibled:{type:Boolean,default:!1}},data(){return{value:{id:"",text:""},lists:[],expand:!1,active:"",activeItem:{name:""}}},watch:{option:{handler(e,t){e&&e.length&&(this.lists=e)},immediate:!0,deep:!0},defaultValue:{immediate:!0,deep:!0,handler(e,t){this.active=e;let s=JSON.parse(JSON.stringify(this.option)).filter((r,o)=>r.id==e);this.activeItem=s[0],this.activeItem&&this.$emit("change",this.activeItem)}}},computed:{arrow(){return xg},check(){return Sg}},methods:{handleExpand(){this.disibled||(this.expand?this.expand=!1:this.expand=!0)},handleClick(e,t){this.active!=e.id&&(this.active=e.id,this.activeItem=e,this.expand=!1,this.$emit("change",this.activeItem,this.lists))},handleClose(){this.expand=!1,this.active="",this.activeItem={name:""}}}}),AE="",Pg={class:"top-select"},Mg={key:0,style:{position:"relative","z-index":"80"}},Og=["src"],Vg=["onClick"],Rg=["src"];function Lg(e,t,i,s,r,o){return n.openBlock(),n.createElementBlock("div",Pg,[e.isSlots?(n.openBlock(),n.createElementBlock("div",Mg,[n.renderSlot(e.$slots,"header",{data:{...e.activeItem,placeholder:e.placeholder}},void 0,!0)])):(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["top-select-menu",[e.border&&"top-select-menu-border",!e.activeItem&&"top-select-menu-placeholder"]]),onClick:t[0]||(t[0]=(...a)=>e.handleExpand&&e.handleExpand(...a))},[n.createTextVNode(n.toDisplayString(e.activeItem?e.activeItem.name:e.placeholder)+" ",1),e.disibled?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("img",{key:0,class:n.normalizeClass(["top-select-menu--arrow",[e.expand?"arrow-active":""]]),src:e.arrow},null,10,Og))],2)),e.maskShow?(n.openBlock(),n.createElementBlock("div",{key:2,class:"top-select-option-mask",style:n.normalizeStyle(e.expand?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4)):n.createCommentVNode("",!0),e.lists&&e.lists.length?(n.openBlock(),n.createElementBlock("div",{key:3,class:n.normalizeClass(["top-select-option",[e.border&&"top-select-option-border"]]),style:n.normalizeStyle(`${e.expand?"transform: translateY(2%);visibility: visible; opacity: 1;":"transform: translateY(-50%);visibility: hidden; opacity: 0"};${e.optionStyle?e.optionStyle:""}`)},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.lists,(a,l)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["option-items",[e.active==a.id?"option-items-active":""]]),key:a.id,onClick:c=>e.handleClick(a,l)},[n.createTextVNode(n.toDisplayString(a.name)+" ",1),e.active==a.id?(n.openBlock(),n.createElementBlock("img",{key:0,class:"option-items-check",src:e.check},null,8,Rg)):n.createCommentVNode("",!0)],10,Vg))),128))],6)):n.createCommentVNode("",!0)])}const Pa=le(Dg,[["render",Lg],["__scopeId","data-v-15c177a8"]]),vg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADGdJREFUeF7tnVFSHDkMhuVhD7AV9j1wksBJApeA5YnwlJBLQE4COUl63zOpHGAZb3l2mpqQGWYsS7as/qna2oe0ZeuXvpHd7W4Hwh8UgAJbFQjQBgpAge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fG/AxDBADC+8g5ABPXXMAVABFUFIBvEZN69EAxLkSkAUiTfr40BCAARTCd/pgAIAPGX1YIeAZANYgZKe3G+CMpc11SkayLsuRIRHYCIyOjFyODFkS1+HGX7B0CyJXPbYH4ZurlDmRsE9tHYACRXar/Xcx6K9aIGANkQKexJyk7fISzovPR9iOxeKzQAIABEJM28VhEAAkBEACHGnFumY10rAASASGUY+0UhqQFo2AEgG1Rli6IRoV5sooL8GimGHt3cCsRrpwwqO9+Hts1j9o+lZ0CSWHj1NA8Szht0eT20uRqAbNEdVSQjIZ1Wj6QAAHklD/A8ZD9I8CR9g07ep1ijy6tK8oBNfNthASATBiS5niBJ/z84oBNa0Lv9flc7vCrQGWfUAGTigHCSpsc23DcK01P0Hv3dZ8whfXKV88MxlSnWPiJ6uYYLiBf/Rf0AIKJymjAGQATDAEAExTRiCoAIBgKACIppxBQAEQwEABEU04gpACIYCAAiKKYRUwBEMBAARFBMI6aw/0wwEIztN93s5hWUqStTAEQwXJ6/7i4oU1em3tzG6+D4oV/NYDwt6PjnVcj6HBIqSM0IMfrCvjOGaJuaMNYfyQwAEdJf0wx7e7fmoDqzzakeAKSjIK+mWmnjYv4XBTvyU2GoRZ8/QgVRiIiWyRdnpJ9o9ePE7hCJ7n9chpsSfwBIiXoN247b/RsOwWzXuQvx1xwBIGbDjIFZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUOA/PPf9I/jtWsEAAAAASUVORK5CYII=",kE="",Fg=tt({name:"selectFixedPerson",components:{TopPopup:Fe},props:{multiple:{},visible:{type:Boolean,default:!1},list:{type:Array,default(){return[]}},select:{type:Array,default(){return[]}},multiple:{type:Boolean,default:!1}},data(){return{showFixedPerson:!1,fixedPersonList:[],mySelect:[],mySelectIds:[]}},watch:{visible:{handler(e,t){this.showFixedPerson=e,e?(this.fixedPersonList=this.list||[],this.mySelect=this.select||[],this.mySelectIds=this.mySelect.map(i=>i.userId)):(this.fixedPersonList=[],this.mySelect=[],this.mySelectIds=[])},immediate:!0},fixedPersonList:{handler(e,t){e&&e.length>0&&JSON.stringify(e)!==JSON.stringify(this.list)&&this.$emit("updateList",e)},immediate:!0,deep:!0}},methods:{updateVisible(e){this.$emit("updateVisible",e)},handleClickFixedPerson(e){const t=this.select.find(i=>i.userId===e.userId);this.multiple||(this.mySelect=[],this.mySelectIds=[]),t?(this.mySelect=this.select.filter(i=>i.userId!==e.userId),this.mySelectIds=this.mySelect.map(i=>i.userId)):(this.mySelect.push(e),this.mySelectIds.push(e.userId)),this.$emit("updateSelect",this.mySelect)},handleSumbitFixedPerson(){this.$emit("confirm",this.mySelect)}}}),Qg={class:"s-tree"},jg=["onClick"],Ug={key:0,class:"radio-select"},_g={key:1,class:"radio-select-not"},Gg=["src"],qg={key:3,class:"node-avatar-text"},Jg={class:"node-name"},Hg={class:"node-name-text"},zg={class:"node-name-phone"};function Kg(e,t,i,s,r,o){const a=n.resolveComponent("TopPopup");return n.openBlock(),n.createBlock(a,{visible:e.showFixedPerson,"onUpdate:visible":e.updateVisible,ref:"TopPopupFixedPerson",titleText:"\u9009\u62E9\u4EBA\u5458("+e.fixedPersonList.length+"\u4EBA)",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u786E\u5B9A",comfig:e.handleSumbitFixedPerson},{default:n.withCtx(()=>[n.createElementVNode("div",Qg,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList([...e.fixedPersonList],l=>(n.openBlock(),n.createElementBlock("div",{class:"s-node",key:l.userId,onClick:c=>e.handleClickFixedPerson(l)},[e.mySelectIds.includes(l.userId)?(n.openBlock(),n.createElementBlock("div",Ug,t[0]||(t[0]=[n.createElementVNode("svg",{t:"1758260488735",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7527",width:"18",height:"18"},[n.createElementVNode("path",{d:"M512 0a512 512 0 1 0 512 512A512 512 0 0 0 512 0z m314.916571 369.371429l-354.304 349.184a46.409143 46.409143 0 0 1-64.987428 0l-212.955429-209.883429a44.763429 44.763429 0 0 1 0-64 46.336 46.336 0 0 1 64.987429 0l180.443428 177.810286 321.828572-317.184a46.482286 46.482286 0 0 1 64.987428 0 44.836571 44.836571 0 0 1-0.036571 64.073143z",fill:"#409eff","p-id":"7528"})],-1)]))):(n.openBlock(),n.createElementBlock("div",_g,t[1]||(t[1]=[n.createElementVNode("svg",{t:"1758260589679",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8704",width:"18",height:"18"},[n.createElementVNode("path",{d:"M150.144 150.144C250.24 50.048 370.88 0 512 0s261.76 50.048 361.856 150.144S1024 370.88 1024 512s-50.048 261.76-150.144 361.856S653.12 1024 512 1024s-261.76-50.048-361.856-150.144S0 653.12 0 512s50.048-261.76 150.144-361.856zM64 512c0 124.16 43.328 228.48 131.392 316.608C283.52 916.672 387.84 960 512 960s228.48-43.328 316.608-131.392C916.672 740.48 960 636.16 960 512s-43.328-228.48-131.392-316.608C740.48 107.328 636.16 64 512 64s-228.48 43.328-316.608 131.392C107.328 283.52 64 387.84 64 512z",fill:"#b5bbc1","p-id":"8705"})],-1)]))),l.avatar?(n.openBlock(),n.createElementBlock("img",{key:2,class:"node-avatar",src:l.avatar,alt:"\u5934\u50CF"},null,8,Gg)):(n.openBlock(),n.createElementBlock("div",qg,n.toDisplayString((l.realName||"").slice(-2)),1)),n.createElementVNode("div",Jg,[n.createElementVNode("div",Hg,n.toDisplayString(l.realName),1),n.createElementVNode("div",zg,n.toDisplayString(l.phonenumber),1)])],8,jg))),128))])]),_:1},8,["visible","onUpdate:visible","titleText","comfig"])}const Ma=le(Fg,[["render",Kg],["__scopeId","data-v-7ee61f3b"]]),Wg=tt({name:"TopSubmitPopup",components:{SelectFixedPerson:Ma,BpmnLook:Da,TopPopup:Fe,TopDownSelect:Pa,PreviewImage:un,departPerson:Nt.departPerson,TopTips:rt},props:{isCheckType:{type:String,default:"0"},visible:{type:Boolean,default:!1},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{},upload:()=>{}})},appId:{type:String,default:""},processName:{type:String,default:""},resubmit:{type:Boolean,default:!1},id:{type:String,default:""},businessType:{type:[String,Number]},businessDeptId:{type:[String,Number]},businessSubjectId:{type:[String,Number]},todoParameter:{type:Object,default(){return{}}},isClearHistory:{type:Boolean,default:!1},title:{type:String,default:"\u6D4B\u8BD5"},showType:{type:String,default:"all"},beforeFunction:{type:Function,default:null},manual:{type:Boolean,default:!1},selfList:{type:Array,default:()=>[]},isOrgType:{type:Array,default:()=>[0]},isCodeType:{type:Array,default:()=>[3]},extraParams:{type:Object,default:()=>{}},isSelectFirst:{type:Boolean,default:!0},showFlowForecast:{default:!1,type:Boolean},flowForecastFunction:{type:Function,default:null}},data(){return{currentClickItem:{},fixedSelect:{},showFixedPerson:!1,fixedPersonList:[],approvalData:[],processXml:"",showFlow:!1,showFirstPerson:!1,selectDeptData:{},showDept:!1,deptList:[],show:!1,option:[],checkedItem:{},personList:[],checkedArray:[],trackUrl:[],taskurlshow:!1,isStyle:"width:35%",visiblePerson:!1,entity:{source:"0",type:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:!1,checkedArray:[]},multiNodeParticipant:{},personListCopy:{},partNode:{},personObjId:"",processId:"",textTips:"",statusTips:!1,typeTips:"success",firstPerson:[],selectDefaultValue:"",businessTypeData:"",businessDeptIdData:"",idData:"",processNameData:"",titleData:"",todoParameterData:{},humanPerformerName:"",btnLoading:!1,flowForecastVisible:!1,flowForecastData:{completeTime:"",processBudgetModelList:[]},flowForecastProcessInstId:""}},watch:{visible:{async handler(e,t){this.show=e,this.$emit("update:visible",this.show),e?(this.selectDefaultValue="",this.handleOption()):this.$refs.TopDownSelect.handleClose()}},show:{handler(e,t){e||this.$refs.TopDownSelect.handleClose()}},businessType:{handler(e,t){this.businessTypeData=e},immediate:!0},businessDeptId:{handler(e,t){this.businessDeptIdData=e},immediate:!0},id:{handler(e,t){e&&(this.idData=e,this.resubmit&&this.getProcessInstance())},immediate:!0},processName:{handler(e,t){this.processNameData=e},immediate:!0},title:{handler(e,t){this.titleData=e},immediate:!0},todoParameter:{handler(e,t){this.todoParameterData=e},immediate:!0,deep:!0},selfList:{handler(e,t){e&&e.length&&(this.option=e,this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id))},immediate:!0,deep:!0},resubmit:{handler(e,t){e&&this.getProcessInstance()}}},computed:{ProcessImg(){return vg}},methods:{getXmlByProcessDefId(e){this.request.get("/bladex/blade-workflow/process/getXmlByProcessDefId",{params:{processDefId:e}}).then(t=>{t.code==200&&(this.processXml=t.data)})},handleFlowSelect(){this.showFlow=!0},handleSumbitFlow(){this.showFlow=!1},handleDeptSelect(){this.showDept=!0},handleSumbitDept(){},async handleClickDept(e){this.businessDeptIdData=e.id,this.showDept=!1,this.selectDeptData=e,await this.getUserDataByDeptId(),this.showFirstPerson=!0,this.handleTips("",!1,"success")},handleSelect(){this.$refs.TopDownSelect.handleExpand()},async handleOption(){if(this.checkedItem={},this.firstPerson=[],this.personList=[],this.selfList&&this.selfList.length)return;this.handleTips("",!0,"loading");let e={businessCode:this.businessType,appId:this.appId,processGroupName:this.processNameData,...this.extraParams};this.processNameData&&delete e.processGroupName,await this.request.post("/bladex/blade-workflow/repository/getProcessDefList",e).then(t=>{t.code==200&&(this.option=t.data,t.data&&t.data.length?(this.handleTips("",!1,"success"),(this.isSelectFirst||t.data.length==1)&&(this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id))):(this.handleTips("\u6682\u65E0\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F",!0,"error"),this.option=[]),this.businessDeptIdData||this.getNodeUserDept())})},async getProcessInstance(){},async getNodeUserDept(){let e={};try{e=await this.request.get("/auth/dept/list/user/dept/selectTree")}catch(t){}this.deptList=e.data||[]},async getNodeUser({deptId:e,intersection:t,userIds:i,postIds:s,deptIds:r}){return await this.request.post("/auth/user/getTaskAuditor",{deptId:e,intersection:t,userIds:i,postIds:s,deptIds:r})},getUserDataByDeptId(){this.firstPerson.map(async(e,t)=>{const i=Sa(e);let s;try{s=await this.getNodeUser({deptId:this.businessDeptIdData,intersection:(i.intersection,0),userIds:i.userIds,postIds:i.postIds,deptIds:i.deptIds})}catch(r){}if(s.code==200){const r=this.firstPerson[t];r.userList=s.data,this.firstPerson[t]=r}})},async handlefirstNode(e){e&&(this.handleTips("",!0,"loading"),await this.request.get("/bladex/blade-workflow/repository/getAllProcessNode",{params:{processDefId:e}}).then(async t=>{if(t.code===200){if(this.firstPerson=t.data,await this.getNodeUserDept(),!this.businessDeptIdData){this.handleTips("",!1,"success");return}if(await this.getUserDataByDeptId(),this.showFirstPerson=!0,this.handleTips("",!1,"success"),Date.now())return;t.data.map(i=>{{let s={taskDefId:i.id,postIds:[]};i.routeTxt.postList.map(r=>{s.postIds.push(r.postId)}),this.request.post("/auth/user/getTaskAuditor",{deptId:this.businessDeptIdData,taskPostIds:[s]}).then(r=>{let o=[],a=[],l=!1;r.data.map(m=>{m.posts.map(u=>{a.push(...u.users),u.users.length==1?o.push(...u.users):l=!0})}),o.length>i.loopCardinality&&i.loopCardinality>0&&(l=!0),l&&(o=[]);let c=[];r.data[0].posts.map(m=>{c.push({...m,projectPost:!this.businessDeptIdData,id:m.users.map(u=>u.id),subjectId:m.subjectId})}),a.length==0&&this.$set(i,"noPersonnel",!0),o.length>0&&(this.personObjId=i.id,this.humanPerformerName=i.humanPerformerName,this.$set(i,"noPersonnel",!0),this.handleCallback(o)),i.positionArray=c})}}),this.getAfferentParticipantNodeList()}else this.firstPerson=[],this.getAfferentParticipantNodeList()}).catch(t=>{this.firstPerson=[],this.getAfferentParticipantNodeList()}))},async handleChange(e,t){this.handleTips("",!0,"loading"),this.checkedItem={},this.selectDefaultValue="",this.firstPerson=[],this.personList=[],this.checkedItem=e,this.selectDefaultValue=this.checkedItem.id,this.handlefirstNode(this.checkedItem.id),this.getXmlByProcessDefId(this.checkedItem.id),this.$emit("change",e,t)},async getAfferentParticipantNodeList(){await this.request.get("/aws/repository/getAfferentParticipantNodeList",{params:{processDefId:this.checkedItem.id}}).then(e=>{e.code==200&&(this.firstPerson&&this.firstPerson.length&&(e.data.map(t=>{if(t.humanPerformerName==="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let i={taskDefId:t.id,postIds:[]};t.routeTxt.postList.map(s=>{i.postIds.push(s.postId)}),this.request.post("/auth/user/getTaskAuditor",{deptId:this.businessDeptIdData,taskPostIds:[i]}).then(s=>{let r=[],o=[],a=!1;s.data.map(c=>{c.posts.map(m=>{o.push(...m.users),m.users.length==1?r.push(...m.users):a=!0})}),r.length>t.loopCardinality&&t.loopCardinality>0&&(a=!0),a&&(r=[]);let l=[];s.data[0].posts.map(c=>{l.push({...c,projectPost:!(this.param.taskNode&&this.param.taskNode[0].vars&&this.param.taskNode[0].vars._businessDeptId),id:c.users.map(m=>m.id),subjectId:c.subjectId})}),o.length==0&&this.$set(t,"noPersonnel",!0),r.length>0&&(this.personObjId=t.id,this.humanPerformerName=t.humanPerformerName,this.$set(t,"noPersonnel",!0),this.handleCallback(r)),t.positionArray=l})}}),this.personList=e.data.filter(t=>!this.firstPerson.some(i=>i.id==t.id))),this.$emit("change",this.checkedItem,this.option)),this.$refs.topTips.handleClose()})},getDiagramUrl(){this.request.get("/aws/repository/getDiagramUrl",{params:{processDefId:this.checkedItem.id,diagramType:1,type:"pc"}}).then(e=>{e.code==200&&(this.trackUrl=[e.data])})},handleOpenFixedPerson(e){this.currentClickItem=e,this.personObjId=e.id,this.showFixedPerson=!0,this.fixedPersonList=e.userList||[]},updateFixedPersonVisible(e){this.showFixedPerson=e},updateFixedSelect(e){},handleSumbitFixedPerson(e){this.fixedSelect[this.personObjId]=e,this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.personObjId].push(t.userId),this.partNode[this.personObjId].push(t.realName)}),this.showFixedPerson=!1},handleClickFixedPerson(e){this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.personObjId].push(t.userId),this.partNode[this.personObjId].push(t.realName)}),this.showFixedPerson=!1},handleOpenPerson(e){if(this.visiblePerson=!0,this.personObjId=e.id,this.humanPerformerName=e.humanPerformerName,e.humanPerformerName==="\u4EFB\u610F\u6307\u5B9A")this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,checkedArray:[]},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId)})):this.entity.checkedArray=[];else if(e.humanPerformerName==="\u56FA\u5B9A\u90E8\u95E8"){let t,i=[];e.routeTxt.departmentIds&&e.routeTxt.departmentIds.length>1?(e.routeTxt.departmentIds.forEach((s,r)=>{i.push(s.rangeId)}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],deptCodeArray:i,multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1}):e.routeTxt.departmentIds&&e.routeTxt.departmentIds.length==1&&(e.routeTxt.departmentIds.forEach((s,r)=>{t=s.rangeId}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],deptCode:t,multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(s=>({id:s.id,subjectId:s.subjectId,type:s.type,deptId:t})):this.entity.checkedArray=[]}else if(e.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"){let t;e.routeTxt.companyIds.map((i,s)=>{t=i.name}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,subjectName:t},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(i=>({id:i.id,subjectId:i.subjectId,type:i.type,deptId:this.handleLastStr(i.ancestors,i.subjectId),subjectName:i.ancestorNames.slice(0,i.ancestorNames.indexOf("/"))})):this.entity.checkedArray=[]}else e.humanPerformerName==="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"?(this.entity={source:"1",type:this.isCheckType||"0",orgType:[5],request:this.request,codeType:[8],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,positionArray:e.positionArray},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId),subjectName:t.ancestorNames.slice(0,t.ancestorNames.indexOf("/"))})):this.entity.checkedArray=[]):(this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,checkedArray:[]},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId)})):this.entity.checkedArray=[])},handleCallback(e){this.personListCopy[this.personObjId]=e,this.entity.checkedArray=e.map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId),subjectName:this.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"?t.ancestorNames.slice(0,t.ancestorNames.indexOf("/")):""})),this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.personObjId].push(t.id),this.partNode[this.personObjId].push(t.name)}),this.visiblePerson=!1},handleCancel(){},handleLastStr(e,t){if(!!e)return e.split(",")[e.split(",").length-1]!==t?e.split(",")[e.split(",").length-1]:""},async handleSumbit(){if(!this.btnLoading){if(this.btnLoading=!0,!this.isSelectFirst&&!this.checkedItem.id){this.handleTips("\u8BF7\u5148\u9009\u62E9\u6D41\u7A0B",!0,"error"),this.btnLoading=!1;return}if(!this.isSelectFirst&&!this.businessDeptIdData){this.handleTips("\u8BF7\u5148\u9009\u62E9\u90E8\u95E8",!0,"error"),this.btnLoading=!1;return}if(this.firstPerson&&this.firstPerson.length&&!this.firstPerson[0].routeTxt.userNames&&(!this.multiNodeParticipant[this.firstPerson[0].id]||!this.multiNodeParticipant[this.firstPerson[0].id].length)){this.handleTips(`${this.firstPerson[0].name}\u8282\u70B9\u672A\u9009\u62E9\u5BA1\u6279\u4EBA`,!0,"error"),this.btnLoading=!1;return}this.beforeFunction&&(await this.beforeFunction(),this.manual&&(this.btnLoading=!1)),this.manual||this.$nextTick(async()=>{await this.handleSongshen()})}},handleSongshen(){if(this.btnLoading=!0,this.resubmit)this.handleTips("",!0,"loading"),this.request.post("/bladex/blade-workflow/pis/reactivate",{processDefId:this.checkedItem.id,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant,firstNodeId:this.firstPerson&&this.firstPerson.length>0?this.firstPerson[0].id:"",processInstId:this.extraParams.processInstId,vars:{...this.extraParams,_businessDeptId:this.businessDeptIdData}}).then(e=>{e.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn"),this.btnLoading=!1):(this.handleTips(e.msg,!0,"error"),this.btnLoading=!1)}).catch(e=>{this.handleTips(e.msg,!0,"error"),this.btnLoading=!1});else{this.handleTips("",!0,"loading");let e={processDefId:this.checkedItem.id,multiNodeParticipant:this.multiNodeParticipant,firstNodeId:this.firstPerson&&this.firstPerson.length>0?this.firstPerson[0].id:"",vars:{processBusinessKey:this.id||this.extraParams.businessKey,showType:"all",subjectId:this.businessSubjectId,deptId:this.businessDeptIdData,businessType:this.businessType,name:this.extraParams.name,title:this.title||this.extraParams.title,applyUserId:this.extraParams.applyUserId}};if(!this.checkedItem.id){this.$refs.topTips.handleClose(),this.btnLoading=!1;return}this.request.post("/bladex/blade-workflow/pis/createAndStart",e).then(t=>{t.code===200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn"),this.btnLoading=!1):t.code==499?this.request.post("/bladex/blade-workflow/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(i=>{i.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn"),this.btnLoading=!1):(this.handleTips(i.msg,!0,"error"),this.btnLoading=!1)}).catch(i=>{this.handleTips(i.msg,!0,"error"),this.btnLoading=!1}):(this.handleTips(t.msg,!0,"error"),this.btnLoading=!1)}).catch(t=>{this.handleTips(t.msg,!0,"error"),this.btnLoading=!1})}},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips&&this.$refs.topTips.handleOpen()},viewFlowForecast(){this.flowForecastFunction?this.flowForecastFunction():this.forecast({appId:this.appId,title:"1"})},forecast(e){this.request.post("/aws/pis/getProcessForecast",{processDefId:this.checkedItem.id,...e}).then(t=>{t.code==200?(t.data&&t.data.processBudgetModelList&&t.data.processBudgetModelList.length?this.flowForecastProcessInstId=t.data.processBudgetModelList[0].processInstId:(t.data.processBudgetModelList=[],this.flowForecastProcessInstId=""),this.flowForecastData=t.data,this.flowForecastVisible=!0):this.handleTips(t.msg,!0,"error")}).catch(t=>{this.btnLoading=!1,this.handleTips("\u6D41\u7A0B\u9884\u6D4B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",!0,"error")})},flowForecastClose(){this.flowForecastProcessInstId?this.request.get("/aws/pis/deleteProcessById",{params:{processInstId:this.flowForecastProcessInstId}}).then(e=>{e.code==200&&(this.flowForecastVisible=!1,this.flowForecastData={completeTime:"",processBudgetModelList:[]},this.flowForecastProcessInstId="")}):(this.flowForecastVisible=!1,this.flowForecastData={completeTime:"",processBudgetModelList:[]})}}}),bE="",Yg={class:"sumbmitPopup-index-sumbit"},Zg={class:"sumbmitPopup-select"},Xg={class:"sumbmitPopup-select-viewTrack",style:{display:"flex"}},$g=["src"],ey={key:0,class:"person-views"},ty={class:"views-items-label"},iy={class:"views-items-name"},ny={class:"views-items-name-left"},sy={key:0,class:"views-items-name--re"},ry={class:"views-items-set"},oy={key:0},ay={key:0},ly={key:1},cy={key:2},dy={key:3},py=["onClick"],hy=["onClick"],uy={key:0,class:"views-items-includes"},my={class:"views-items-and2"},fy={key:0},gy={class:"include"},yy={class:"include include-name"},Ay={key:1,class:"person-views"},ky={class:"views-items"},by={class:"views-items-name"},Ey={class:"views-items-set"},Cy=["onClick"],wy={key:1},Ny={key:0},Ty={key:2},By={key:3},Iy={key:2,class:"person-views-white"},xy={style:{height:"100%"}},Sy={class:"tree"},Dy=["onClick"],Py={key:0,class:"children"},My=["onClick"],Oy={style:{margin:"20px"}},Vy=["innerHTML"],Ry={class:"timeline"},Ly={class:"item-top"},vy={class:"top-spot"},Fy={class:"top-title"},Qy={style:{color:"#009800"}};function jy(e,t,i,s,r,o){const a=n.resolveComponent("TopDownSelect"),l=n.resolveComponent("TopPopup"),c=n.resolveComponent("departPerson"),m=n.resolveComponent("SelectFixedPerson"),u=n.resolveComponent("BpmnLook"),p=n.resolveComponent("PreviewImage"),g=n.resolveComponent("TopTips");return n.openBlock(),n.createElementBlock("div",Yg,[t[16]||(t[16]=n.createElementVNode("div",{class:"top-popup"},null,-1)),n.createVNode(l,{visible:e.show,"onUpdate:visible":t[4]||(t[4]=A=>(e.show=A,e.$emit("update:visible",A))),ref:"TopPopup",titleText:"\u9001\u5BA1",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u9001\u5BA1",comfig:e.handleSumbit},{default:n.withCtx(()=>[n.createVNode(a,{isSlots:"",option:e.option,onChange:e.handleChange,defaultValue:e.selectDefaultValue,ref:"TopDownSelect",disibled:!1},{header:n.withCtx(A=>[n.createElementVNode("div",Zg,[n.createElementVNode("div",{class:"sumbmitPopup-select-checked",onClick:t[0]||(t[0]=(...w)=>e.handleSelect&&e.handleSelect(...w))},[t[10]||(t[10]=n.createElementVNode("div",{class:"sumbmitPopup-select-checked-title"},"\u5F53\u524D\u6D41\u7A0B",-1)),n.createElementVNode("div",{class:n.normalizeClass(["sumbmitPopup-select-checked-node",""])},n.toDisplayString(A.data.name?A.data.name:A.data.placeholder),3)]),n.createElementVNode("div",{class:"sumbmitPopup-select-checked",onClick:t[1]||(t[1]=(...w)=>e.handleDeptSelect&&e.handleDeptSelect(...w))},[t[11]||(t[11]=n.createElementVNode("div",{class:"sumbmitPopup-select-checked-title"},"\u9009\u62E9\u90E8\u95E8",-1)),n.createElementVNode("div",{class:n.normalizeClass(["sumbmitPopup-select-checked-node",""])},n.toDisplayString(e.selectDeptData.label?e.selectDeptData.label:"\u8BF7\u9009\u62E9"),3)]),n.createElementVNode("div",Xg,[e.checkedItem.id?(n.openBlock(),n.createElementBlock("div",{key:0,class:"viewTrack",onClick:t[2]||(t[2]=(...w)=>e.handleFlowSelect&&e.handleFlowSelect(...w))},[n.createElementVNode("img",{src:e.ProcessImg},null,8,$g),t[12]||(t[12]=n.createTextVNode(" \u67E5\u770B\u6D41\u7A0B\u56FE ",-1))])):n.createCommentVNode("",!0),e.checkedItem.id&&e.showFlowForecast?(n.openBlock(),n.createElementBlock("div",{key:1,class:"viewTrack",onClick:t[3]||(t[3]=(...w)=>e.viewFlowForecast&&e.viewFlowForecast(...w))}," \u6D41\u7A0B\u9884\u6D4B ")):n.createCommentVNode("",!0)])])]),_:1},8,["option","onChange","defaultValue","disibled"]),e.showFirstPerson&&e.firstPerson&&e.firstPerson.length?(n.openBlock(),n.createElementBlock("div",ey,[t[14]||(t[14]=n.createElementVNode("div",{class:"person-views-title"},"\u4E0B\u4E00\u6B65\u5904\u7406\u8282\u70B9",-1)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.firstPerson,(A,w)=>{var M;return n.openBlock(),n.createElementBlock("div",{class:"views-items",key:w},[n.createElementVNode("div",ty,[n.createElementVNode("div",iy,[n.createElementVNode("div",ny,[n.createTextVNode(n.toDisplayString(A.name)+" ",1),w==0?(n.openBlock(),n.createElementBlock("span",sy,"*")):n.createCommentVNode("",!0)])]),n.createElementVNode("div",ry,[e.partNode[A.id]&&e.partNode[A.id].length?(n.openBlock(),n.createElementBlock("div",oy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.partNode[A.id],(G,K)=>(n.openBlock(),n.createElementBlock("span",{key:K},n.toDisplayString(K>=3?"":K==0?G:`,${G}`),1))),128)),e.partNode[A.id].length>3?(n.openBlock(),n.createElementBlock("span",ay,"...\u7B49"+n.toDisplayString(e.partNode[A.id].length)+"\u4EBA",1)):n.createCommentVNode("",!0)])):A.routeTxt&&A.routeTxt.userNames?(n.openBlock(),n.createElementBlock("div",ly,n.toDisplayString(A.routeTxt.userNames),1)):n.createCommentVNode("",!0),A.humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||A.humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"||((M=e.partNode[A.id])==null?void 0:M.length)>0&&A.noPersonnel?(n.openBlock(),n.createElementBlock("div",cy)):A.humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||A.humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"||A.noPersonnel?(n.openBlock(),n.createElementBlock("div",dy," \u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E ")):A.userList&&A.userList.length>0?(n.openBlock(),n.createElementBlock("div",{key:4,class:"views-items-set-btn",onClick:G=>e.handleOpenFixedPerson(A)}," \u9009\u62E9 ",8,py)):(n.openBlock(),n.createElementBlock("div",{key:5,class:"views-items-set-btn",onClick:G=>e.handleOpenPerson(A)}," \u8BBE\u7F6E ",8,hy))])]),A.routeTxt&&A.routeTxt.length>0?(n.openBlock(),n.createElementBlock("div",uy,[t[13]||(t[13]=n.createElementVNode("div",{class:"views-items-name2"},n.toDisplayString("\u6240\u5C5E\u8303\u56F4"),-1)),n.createElementVNode("div",my,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(A.routeTxt,(G,K)=>(n.openBlock(),n.createElementBlock("div",{key:G.type},[G.ids&&G.ids.length>0?(n.openBlock(),n.createElementBlock("div",fy,[n.createElementVNode("div",gy,[n.createElementVNode("b",{class:n.normalizeClass(["include include-type",["include-"+G.type]])},n.toDisplayString(G.type=="user"?"\u7528\u6237":G.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"),3),n.createElementVNode("span",yy,n.toDisplayString(G.name),1)]),K!==A.routeTxt.length-1?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["include include-assign",["include-assign-"+(G.assigneeRetain?"true":"false")]])},n.toDisplayString(A.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"),3)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0)]))),128))])])):n.createCommentVNode("",!0)])}),128))])):n.createCommentVNode("",!0),e.personList&&e.personList.length?(n.openBlock(),n.createElementBlock("div",Ay,[t[15]||(t[15]=n.createElementVNode("div",{class:"person-views-title"},"\u5176\u4ED6\u5904\u7406\u8282\u70B9",-1)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.personList,(A,w)=>(n.openBlock(),n.createElementBlock("div",ky,[n.createElementVNode("div",by,n.toDisplayString(A.name),1),n.createElementVNode("div",Ey,[A.noPersonnel?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:"views-items-set-btn",onClick:M=>e.handleOpenPerson(A)}," \u8BBE\u7F6E ",8,Cy)),e.partNode[A.id]&&e.partNode[A.id].length?(n.openBlock(),n.createElementBlock("div",wy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.partNode[A.id],(M,G)=>(n.openBlock(),n.createElementBlock("span",null,n.toDisplayString(G>=3?"":G==0?M:`,${M}`),1))),256)),e.partNode[A.id].length>3?(n.openBlock(),n.createElementBlock("span",Ny,"...\u7B49"+n.toDisplayString(e.partNode[A.id].length)+"\u4EBA",1)):n.createCommentVNode("",!0)])):A.noPersonnel?(n.openBlock(),n.createElementBlock("div",Ty,"\u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E")):(n.openBlock(),n.createElementBlock("div",By))])]))),256))])):n.createCommentVNode("",!0),!e.firstPerson&&!e.firstPerson.length&&!e.personList&&!e.personList.length?(n.openBlock(),n.createElementBlock("div",Iy," \u65E0\u9700\u8BBE\u7F6E ")):n.createCommentVNode("",!0)]),_:1},8,["visible","comfig"]),n.createVNode(l,{visible:e.visiblePerson,"onUpdate:visible":t[5]||(t[5]=A=>e.visiblePerson=A),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0,isIndex:199},{default:n.withCtx(()=>[n.createElementVNode("div",xy,[e.visiblePerson?(n.openBlock(),n.createBlock(c,n.mergeProps({key:0,isTitle:!1,visible:e.visiblePerson},e.entity,{onCallback:e.handleCallback,onCancel:e.handleCancel,checkedArray:e.checkedArray}),null,16,["visible","onCallback","onCancel","checkedArray"])):n.createCommentVNode("",!0)])]),_:1},8,["visible"]),n.createVNode(l,{visible:e.showDept,"onUpdate:visible":t[6]||(t[6]=A=>e.showDept=A),ref:"TopPopupDept",titleText:"\u9009\u62E9\u90E8\u95E8",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u786E\u5B9A",comfig:e.handleSumbitDept},{default:n.withCtx(()=>[n.createElementVNode("div",Sy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList([...e.deptList],A=>(n.openBlock(),n.createElementBlock("div",{class:"node",key:A.id},[n.createElementVNode("div",{class:"node-p",onClick:w=>e.handleClickDept(A)},n.toDisplayString(A.label),9,Dy),A.children?(n.openBlock(),n.createElementBlock("div",Py,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(A.children,w=>(n.openBlock(),n.createElementBlock("div",{class:"node-s",onClick:M=>e.handleClickDept(w),key:w.id},n.toDisplayString(w.label),9,My))),128))])):n.createCommentVNode("",!0)]))),128))])]),_:1},8,["visible","comfig"]),n.createVNode(m,{visible:e.showFixedPerson,list:e.fixedPersonList,multiple:e.currentClickItem.loopCardinality==-1,select:e.fixedSelect[e.personObjId]||[],onUpdateList:e.handleClickFixedPerson,onUpdateVisible:e.updateFixedPersonVisible,onUpdateSelect:e.updateFixedSelect,onConfirm:e.handleSumbitFixedPerson},null,8,["visible","list","multiple","select","onUpdateList","onUpdateVisible","onUpdateSelect","onConfirm"]),n.createVNode(l,{class:"top-pop-flow",visible:e.showFlow,"onUpdate:visible":t[7]||(t[7]=A=>e.showFlow=A),ref:"TopPopupFlow",titleText:"\u67E5\u770B\u6D41\u7A0B\u56FE",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u5173\u95ED",comfig:e.handleSumbitFlow},{default:n.withCtx(()=>[e.showFlow&&e.processXml?(n.openBlock(),n.createBlock(u,{key:0,ref:"PreviewRef",diagram:e.processXml,approvalData:e.approvalData},null,8,["diagram","approvalData"])):n.createCommentVNode("",!0)]),_:1},8,["visible","comfig"]),n.createVNode(p,{images:e.trackUrl,visible:e.taskurlshow,"onUpdate:visible":t[8]||(t[8]=A=>e.taskurlshow=A),indexd:0,isOne:!0,isStyle:e.isStyle},null,8,["images","visible","isStyle"]),n.createVNode(g,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),n.createVNode(l,{visible:e.flowForecastVisible,"onUpdate:visible":t[9]||(t[9]=A=>e.flowForecastVisible=A),ref:"TopPopupFF",titleText:"\u6D41\u7A0B\u9884\u6D4B",isIndex:129,cancel:e.flowForecastClose,comfig:e.flowForecastClose},{default:n.withCtx(()=>[n.createElementVNode("div",Oy,[n.createElementVNode("div",{innerHTML:e.flowForecastData.completeTime,style:{"margin-left":"10px","margin-bottom":"10px"}},null,8,Vy),n.createElementVNode("div",Ry,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.flowForecastData.processBudgetModelList,(A,w)=>(n.openBlock(),n.createElementBlock("div",{class:"timeline-item",key:w},[n.createElementVNode("div",Ly,[n.createElementVNode("div",vy,[n.createElementVNode("div",{class:n.normalizeClass(["spot",{active:w==0}])},null,2)]),n.createElementVNode("div",Fy,n.toDisplayString(A.title),1)]),n.createElementVNode("div",{class:n.normalizeClass(["item-bottom",{last:w==e.flowForecastData.processBudgetModelList.length-1}])},[n.createElementVNode("span",Qy," \u6267\u884C\u4EBA\uFF1A"+n.toDisplayString(A.excutor),1)],2)]))),128))])])]),_:1},8,["visible","cancel","comfig"])])}const Oa=le(Wg,[["render",jy],["__scopeId","data-v-b989f58a"]]),Uy="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADG5JREFUeF7tnVFaGzcXhjUD16WsoLCSwl1qsoeElRRWEroHcLkL/0rqfwUpvS6jPuPYiXGw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2aEK9rbXCtwlgv/89k8rGLzYe1TfIsxjCrtXdbbwMCKc3ior7XFWS9e71YwuHhSe2ZV4R1HmbZ5v7fb91uBCLK5FAEIuruaMIgEFGqEYgIpLMwCESUEAQiAuksDAIRJQSBiEA6C4NARAlBICKQzsIgEFFCEIgIpLMwCESUEAQiAuksDAIRJQSBiEA6C4NARAlBICKQzsIgEFFCEIgIpLMwCESUEAQiAuksDAIRJQSBiEA6C4NARAlBICKQzsIgEFFCEIgIpLMwCESUEAQiAuksDAIRJQSBiEA6C4NARAlBICKQzsLk5JVbTV5I4tBnGmfj0k1zHicX0doYT7/xd3MvVqZAgoerdqwDYCzlrVcQrXBxc0OMG4Hk3oXrabYZy8BP7WfupBdCQCDrkPsbOGJo+ut1Mv7i1dF0ep1RkSqVCJTks+ZVqNbuullBjJe0vdBPRGJNfq3yuW5g2Z7al9lZ+u1GIH2jC5bkZZ/7+2UXV3/GKnfNWuCOrWyMzVnGRdXPMHmzzK4EUjrzjG1A7ml/3ew/er6uBFJus/Z0yIyoW57slTuB9A2yXLw8onEzlq66Wj1cCoRVZCxa+LGf3lYPlwLpG1VyRDje4TX0nvs8hXS1B1lNMRv2oQ/49PZ7O7labblbgfRWq2kOPpUeG6aniZK7IOBZHG4t1jJRi/1I/yJN00spd5FoPjOLgJt3EW5qvdsVZE0kv6e+UiwrTVR6cwLeV44lEPcC6Rua+EqxN08yH5hNwN1x7mBXkNWGsy/JHpBeKr7JexGVnR3ECrLe4Q3v3lNyIZaWgOt3OW7r6iAFsro/OWjbs8WLKvuNPJt57cDOjTZ/UWjTxIeh/wxh0AJ5KXvzF1bytxMCx/f3e/cE9d4JZCcjgw/dWwIIZG9TS8cUBBCIgiIx9pYAAtnb1NIxBQEEoqBIjL0lgED2NrV0TEHgP1VLsH2X3+jEAAAAAElFTkSuQmCC",EE="",_y={name:"msgList",components:{TopPopup:Fe},props:{visible:{type:Boolean,default:!1},request:{default:null},useInfo:{type:Object,default:()=>{}}},data(){return{listData:[],visibleListMsg:!1,opinion:{},textTips:"",statusTips:!1,typeTips:""}},computed:{Del(){return Uy}},watch:{visible:{handler(e,t){e&&this.request.get("/auth/user/opinion/my").then(i=>{i.code===200&&(this.listData=i.data)})}}},methods:{handleMsg(e){this.$emit("handleMsg",e.opinionName)},handleOpenMsg(e){this.opinion=e,this.visibleListMsg=!0},handleTipsCancel(){this.visibleListMsg=!1},async handleDel(){this.opinion.opinionId&&(this.visibleListMsg=!1,this.$emit("handleTips","",!0,"loading"),await this.request.get(`/auth/user/opinion/del/${this.opinion.opinionId}`).then(e=>{e.code===200?(this.$emit("handleTips","\u5220\u9664\u6210\u529F",!0,"success"),this.request.get("/auth/user/opinion/my").then(t=>{t.code===200&&(this.listData=t.data)})):this.$emit("handleTips",e.msg,!0,"error")}).catch(e=>{this.$emit("handleTips",e.msg,!0,"error")}))}}},Gy={key:0,class:"top-msg"},qy=["onClick"],Jy={class:"top-msg-items-text"},Hy=["onClick"],zy=["src"];function Ky(e,t,i,s,r,o){const a=n.resolveComponent("TopPopup");return n.openBlock(),n.createElementBlock("div",null,[i.visible?(n.openBlock(),n.createElementBlock("div",Gy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.listData,l=>(n.openBlock(),n.createElementBlock("div",{class:"top-msg-items",onClick:c=>o.handleMsg(l)},[n.createElementVNode("div",Jy,n.toDisplayString(l.opinionName),1),n.createElementVNode("div",{class:"top-msg-items-del",onClick:n.withModifiers(c=>o.handleOpenMsg(l),["stop"])},[n.createElementVNode("img",{src:o.Del},null,8,zy)],8,Hy)],8,qy))),256))])):n.createCommentVNode("",!0),n.createVNode(a,{isIndex:2299,titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06\u5E38\u7528\u610F\u89C1'${r.opinion.opinionName}'\u5220\u9664`,cancel:o.handleTipsCancel,comfig:o.handleDel,visible:r.visibleListMsg,"onUpdate:visible":t[0]||(t[0]=l=>r.visibleListMsg=l)},null,8,["context","cancel","comfig","visible"])])}const zi=le(_y,[["render",Ky],["__scopeId","data-v-87fc3e49"]]),CE="",Wy={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:rt,attchViews:ti,TopPopup:Fe,departPerson:Nt.departPerson,MsgList:zi},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||"0",request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.checkedArray=[],this.entity.source="1",this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u52A0\u7B7E\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;let e="";this.multiNodeParticipant[this.partObjId].map((t,i)=>{i==0?e=t:e=`${e},${t}`}),this.handleTips("",!0,"loading"),this.param.request.post("/bladex/blade-workflow/tis/addMultiInstance",{assignee:e,taskId:this.param.taskInstId,comment:this.commentMsg}).then(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,s)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("counterSign")}}},Yy={class:"process-popup-content"},Zy={class:"process-popup-content-msg"},Xy={key:0},$y={class:"process-pc-value"},eA={class:"process-popup-textarea"},tA={class:"process-popup-textarea-num"},iA={key:0,class:"msg-btn"},nA={key:0,class:"process-popup-content-person"},sA=["onClick"],rA={class:"process-pc-value--people"},oA={key:0,class:"process-pc-value--data"},aA={key:1,class:"process-pc-value--data",style:{color:"#888"}},lA=["onClick"],cA={class:"process-pc-value--people"},dA={key:0,class:"process-pc-value--data"},pA={key:1,class:"process-pc-value--data",style:{color:"#888"}},hA={style:{height:"100%"}};function uA(e,t,i,s,r,o){const a=n.resolveComponent("TopTips"),l=n.resolveComponent("departPerson"),c=n.resolveComponent("TopPopup"),m=n.resolveComponent("attchViews"),u=n.resolveComponent("MsgList");return n.openBlock(),n.createElementBlock("div",Yy,[n.createElementVNode("div",Zy,[i.param.isMsg?(n.openBlock(),n.createElementBlock("div",Xy,[n.createElementVNode("div",{class:"process-radio-item",onClick:t[0]||(t[0]=p=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):n.createCommentVNode("",!0),t[6]||(t[6]=n.createElementVNode("div",{class:"process-pc-label"},[n.createTextVNode(" \u52A0\u7B7E\u7406\u7531\uFF1A"),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",$y,[n.createElementVNode("div",eA,[n.withDirectives(n.createElementVNode("textarea",{"onUpdate:modelValue":t[1]||(t[1]=p=>r.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[n.vModelText,r.commentMsg]]),n.createElementVNode("div",tA,n.toDisplayString(r.commentMsg.length)+"/200 ",1)]),i.param.isMsg?(n.openBlock(),n.createElementBlock("div",iA,[n.createElementVNode("span",{class:"msg-btn-click",onClick:t[2]||(t[2]=p=>o.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):n.createCommentVNode("",!0)])]),(n.openBlock(),n.createElementBlock("div",nA,[r.nextNodeData.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(r.nextNodeData,p=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[t[8]||(t[8]=n.createElementVNode("div",null,[n.createElementVNode("br"),n.createTextVNode(" \u5BA1\u6279\u4EBA "),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",{class:"process-pc-value",onClick:g=>o.handleOpenPopup(p.id)},[n.createElementVNode("div",rA,[r.partNode[p.id]&&r.partNode[p.id].length?(n.openBlock(),n.createElementBlock("div",oA,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.partNode[p.id],(g,A)=>(n.openBlock(),n.createElementBlock("span",null,n.toDisplayString(A==0?g:`,${g}`),1))),256))])):(n.openBlock(),n.createElementBlock("div",aA,t[7]||(t[7]=[n.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])))])],8,sA)],64))),256)):r.outGatewayUserTaskModel.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(r.outGatewayUserTaskModel,p=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[t[10]||(t[10]=n.createElementVNode("div",{class:"process-pc-label"},[n.createElementVNode("br"),n.createTextVNode(" \u5BA1\u6279\u4EBA "),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",{class:"process-pc-value",onClick:g=>o.handleOpenPopup(p.id)},[n.createElementVNode("div",cA,[r.partNode[p.id]&&r.partNode[p.id].length?(n.openBlock(),n.createElementBlock("div",dA,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.partNode[p.id],(g,A)=>(n.openBlock(),n.createElementBlock("span",null,n.toDisplayString(A==0?g:`,${g}`),1))),256))])):(n.openBlock(),n.createElementBlock("div",pA,t[9]||(t[9]=[n.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])))])],8,lA)],64))),256)):n.createCommentVNode("",!0)])),n.createVNode(a,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),n.createVNode(c,{visible:r.visible,"onUpdate:visible":t[3]||(t[3]=p=>r.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:n.withCtx(()=>[n.createElementVNode("div",hA,[r.visible?(n.openBlock(),n.createBlock(l,n.mergeProps({key:0,isTitle:!1,visible:r.visible,request:i.param.request},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["visible","request","onCallback","onCancel"])):n.createCommentVNode("",!0)])]),_:1},8,["visible"]),r.labels=="5"?(n.openBlock(),n.createBlock(m,{key:1,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):n.createCommentVNode("",!0),n.createVNode(c,{visible:r.visibleListMsg,"onUpdate:visible":t[4]||(t[4]=p=>r.visibleListMsg=p),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:n.withCtx(()=>[n.createVNode(u,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),n.createVNode(c,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[5]||(t[5]=p=>r.visibleMsgComfig=p)},null,8,["context","cancel","comfig","visible"])])}const mA=le(Wy,[["render",uA],["__scopeId","data-v-4f3fd96c"]]),wE="",fA={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:rt,attchViews:ti,TopPopup:Fe,departPerson:Nt.departPerson,MsgList:zi},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,maxMultiple:1,checkedArray:[]},multiNodeParticipant:{},partNodeArr:{},partObjId:[],partNode:{},actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,this.attachShow(),e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg){this.textTips="\u8BF7\u8F93\u5165\u8F6C\u5BA1\u7406\u7531!",this.$refs.topTips.handleOpen();return}let e=this.partNodeArr[this.partObjId].map(t=>t.id).join(",");this.handleTips("",!0,"loading"),await this.param.request.post("/bladex/blade-workflow/tis/transferTask",{comment:this.commentMsg,taskId:this.param.taskInstId,assignee:e}).then(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(t.msg,!0,"error")})},attachShow(e="\u529E\u7406"){const t=(this.param||{}).extendedProperties||[];let i=!1,s,r="";s=t.find(a=>a.name=="delegateTaskButtonAnnex"),r=s?s.value:"",r&&(i=!0);let o="";if(typeof r!="string"&&r!=null&&r.map(a=>{a.indexOf(this.operationLabel)!=-1&&(i=!0,o=a)}),o&&(r=o),i){const a=r.split(":");this.attachRule.required=a[1]=="true",this.attachRule.limit=a[2]==-1?999:a[2],this.otherList=r;let l=this.otherList.split(":");this.limit=l[2],this.requires=JSON.parse(l[1]),this.labels=l[0]}return this.labels,this.limit,i},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNodeArr[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNodeArr[this.partObjId].push(t),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,s)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("delegateTask")}}},gA={class:"process-popup-content"},yA={class:"process-popup-content-msg"},AA={key:0},kA={class:"process-pc-value"},bA={class:"process-popup-textarea"},EA={class:"process-popup-textarea-num"},CA={key:0,class:"msg-btn"},wA={key:0,class:"process-popup-content-person"},NA=["onClick"],TA={class:"process-pc-value--people"},BA={key:0,class:"process-pc-value--data"},IA={key:1,class:"process-pc-value--data",style:{color:"#888"}},xA=["onClick"],SA={class:"process-pc-value--people"},DA={key:0,class:"process-pc-value--data"},PA={key:1,class:"process-pc-value--data",style:{color:"#888"}},MA={style:{height:"100%"}};function OA(e,t,i,s,r,o){const a=n.resolveComponent("TopTips"),l=n.resolveComponent("departPerson"),c=n.resolveComponent("TopPopup"),m=n.resolveComponent("attchViews"),u=n.resolveComponent("MsgList");return n.openBlock(),n.createElementBlock("div",gA,[n.createElementVNode("div",yA,[i.param.isMsg?(n.openBlock(),n.createElementBlock("div",AA,[n.createElementVNode("div",{class:"process-radio-item",onClick:t[0]||(t[0]=p=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):n.createCommentVNode("",!0),t[6]||(t[6]=n.createElementVNode("div",{class:"process-pc-label"},[n.createTextVNode(" \u8F6C\u5BA1\u7406\u7531\uFF1A"),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",kA,[n.createElementVNode("div",bA,[n.withDirectives(n.createElementVNode("textarea",{"onUpdate:modelValue":t[1]||(t[1]=p=>r.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[n.vModelText,r.commentMsg]]),n.createElementVNode("div",EA,n.toDisplayString(r.commentMsg.length)+"/200 ",1)]),i.param.isMsg?(n.openBlock(),n.createElementBlock("div",CA,[n.createElementVNode("span",{class:"msg-btn-click",onClick:t[2]||(t[2]=p=>o.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):n.createCommentVNode("",!0)])]),(n.openBlock(),n.createElementBlock("div",wA,[r.nextNodeData.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(r.nextNodeData,p=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[t[8]||(t[8]=n.createElementVNode("div",null,[n.createTextVNode(" \u5BA1\u6279\u4EBA "),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",{class:"process-pc-value",onClick:g=>o.handleOpenPopup(p.id)},[n.createElementVNode("div",TA,[r.partNode[p.id]&&r.partNode[p.id].length?(n.openBlock(),n.createElementBlock("div",BA,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.partNode[p.id],(g,A)=>(n.openBlock(),n.createElementBlock("span",null,n.toDisplayString(A==0?g:`,${g}`),1))),256))])):(n.openBlock(),n.createElementBlock("div",IA,t[7]||(t[7]=[n.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])))])],8,NA)],64))),256)):r.outGatewayUserTaskModel.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(r.outGatewayUserTaskModel,p=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[t[10]||(t[10]=n.createElementVNode("div",{class:"process-pc-label"},[n.createTextVNode(" \u5BA1\u6279\u4EBA "),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",{class:"process-pc-value",onClick:g=>o.handleOpenPopup(p.id)},[n.createElementVNode("div",SA,[r.partNode[p.id]&&r.partNode[p.id].length?(n.openBlock(),n.createElementBlock("div",DA,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.partNode[p.id],(g,A)=>(n.openBlock(),n.createElementBlock("span",null,n.toDisplayString(A==0?g:`,${g}`),1))),256))])):(n.openBlock(),n.createElementBlock("div",PA,t[9]||(t[9]=[n.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])))])],8,xA)],64))),256)):n.createCommentVNode("",!0)])),n.createVNode(a,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),n.createVNode(c,{visible:r.visible,"onUpdate:visible":t[3]||(t[3]=p=>r.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:n.withCtx(()=>[n.createElementVNode("div",MA,[r.visible?(n.openBlock(),n.createBlock(l,n.mergeProps({key:0,isTitle:!1,visible:r.visible,request:i.param.request},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["visible","request","onCallback","onCancel"])):n.createCommentVNode("",!0)])]),_:1},8,["visible"]),r.labels=="1"?(n.openBlock(),n.createBlock(m,{key:1,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):n.createCommentVNode("",!0),n.createVNode(c,{visible:r.visibleListMsg,"onUpdate:visible":t[4]||(t[4]=p=>r.visibleListMsg=p),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:n.withCtx(()=>[n.createVNode(u,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),n.createVNode(c,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[5]||(t[5]=p=>r.visibleMsgComfig=p)},null,8,["context","cancel","comfig","visible"])])}const VA=le(fA,[["render",OA],["__scopeId","data-v-73a21e66"]]),RA="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACZ5JREFUeF7tne1xG0cMhkE2EqeS2JXY6iLRZMb2jEdJF3YqiVNJ5EbMzIlhRDIiecAt9uPeh3+9wC5e4BEWx7O0MT4ogAIXFdigDQqgwGUFAITqQIErCgAI5YECAEINoEBMATpITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk0YQZUwBAYrphJaIAgIgkmjBjCgBITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk0YQZUwBAYrphJaIAgIgkmjBjCgBITDesRBQAEJFEE2ZM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oDUhgQ4cqu2oncdQGpBAhwVyzd/Ky1AsiEBjvyKrbyDHiBZkABH5dKts50mIKUhAY461dpgF11ASkECHA3Ktt6W2oAshQQ46lVqo50AJAoJcDQq2brbAshB7/3fJ5n7R3K+2MPmrm6q2K2FAgByrvr97p2ZvTez/V+WOv082tbunv7yFB8JBQDkUpr3HeW1mf1gZt9sa4+AIcHESZAAopdzInYoACAOsViqpwCA6OWciB0KAIhDLJbqKQAgejknYocCAOIQi6V6CgCIXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6ikAIHo5J2KHAgDiEIulegoAiF7OidihAIA4xGKpngIAopdzInYoACAOsViqpwCA6OWciB0KAIhDLJbqKQAgejknYocCAOIQi6V6CgCIXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6inwD771qeduEnFsAAAAAElFTkSuQmCC",NE="",TE="",LA={name:"TreeNode",components:{SelectFixedPerson:Ma,TopPopup:Fe,TopTips:rt,departPerson:Nt.departPerson},props:{items:{type:Array,default:()=>[]},endNode:{type:Boolean,default:!1},nodeType:{type:String,default:"outing"},param:{type:Object,default:()=>{}},checkType:{type:String,default:""}},data(){return{currentClickItem:{},fixedSelect:{},showFixedPerson:!1,fixedPersonList:[],nodeItems:[],visible:!1,checkBoxArr:[],checkBoxItem:[],radioArr:"",radioItem:[],partObjId:"",entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0},multiNodeParticipant:{},partNode:{},partNodeArr:{},textTips:"",statusTips:!1,typeTips:"success",gateVars:{},onMultiNodeData:{},onVarsData:{},personMake:[],personMakeList:{}}},watch:{items:{handler(e,t){e&&e.length&&(this.multiNodeParticipant={},this.partNode={},this.partNodeArr={},this.gateVars={},this.nodeItems=JSON.parse(JSON.stringify(e)),this.nodeItems,this.nodeItems.map(i=>{if(Array.isArray(i.assignees),i.assignees,i.userTaskModelDTO||(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList}),Array.isArray(i.assignees)&&i.assignees.length&&(this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNodeArr[i.id]||(this.partNodeArr[i.id]=[]),i.assignees.forEach(s=>{this.partNodeArr,this.multiNodeParticipant;const r=this.partNodeArr[i.id].find(a=>a.name==s.name),o=this.multiNodeParticipant[i.id].find(a=>a==s.id);r||this.partNodeArr[i.id].push(s),o||this.multiNodeParticipant[i.id].push(s.id)})),i.userTaskModelDTO&&i.userTaskModelDTO.participantList&&i.userTaskModelDTO.participantList.length&&i.userTaskModelDTO.humanPerformer&&i.userTaskModelDTO.participantList.map(s=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.partNodeArr[i.id]||(this.partNodeArr[i.id]=[]),this.multiNodeParticipant[i.id].includes(s.id)||this.multiNodeParticipant[i.id].push(s.id),this.partNode[i.id].includes(s.name)||this.partNode[i.id].push(s.name),this.partNodeArr[i.id].find(r=>r.name==s.name)||this.partNodeArr[i.id].push(s)}),(i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||i.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(i.id),i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let s={taskDefId:i.id,postIds:[]};i.userTaskModelDTO.routeTxt.postList.map(r=>{s.postIds.push(r.postId)}),this.param.request.post("/auth/user/getTaskAuditor",{deptId:this.param.taskNode&&this.param.taskNode[0].vars?this.param.taskNode[0].vars._businessDeptId:"",taskPostIds:[s]}).then(r=>{let o=[],a=[],l=!1;r.data.map(m=>{m.posts.map(u=>{a.push(...u.users),u.users.length==1?o.push(...u.users):l=!0})}),o.length>i.loopCardinality&&i.loopCardinality>0&&(l=!0),l&&(o=[]);let c=[];r.data[0].posts.map(m=>{c.push({...m,projectPost:!(this.param.taskNode&&this.param.taskNode[0].vars&&this.param.taskNode[0].vars._businessDeptId),id:m.users.map(u=>u.id)})}),a.length==0&&(i.noPersonnel=!0),o.length>0&&(i.noPersonnel=!0,this.partObjId=i.id,this.handleCallback(o)),i.positionArray=c})}this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(s=>{s.code==200&&(this.personMakeList=s.data)})}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),this.$emit("onVars",this.gateVars),this.checkType=="ExclusiveGatewayModel"&&e.length==1&&this.handleRadioClick(e[0]))},immediate:!0,deep:!0}},computed:{check(){return Ys}},mounted(){},methods:{clear(){this.radioArr="",this.radioItem=[],this.checkBoxArr=[],this.checkBoxItem=[],this.multiNodeParticipant={},this.partNode={},this.partNodeArr={},this.gateVars={}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"||e=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],this.partNodeArr[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.partNodeArr[this.partObjId].push(t)}),this.onMultiNodeData&&(this.multiNodeParticipant={...this.multiNodeParticipant,...this.onMultiNodeData}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr)},handleRadioClick(e){e&&(this.multiNodeParticipant={},this.gateVars={},this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),e.incomingConditionItemList.length>0&&e.incomingConditionItemList[0].itemName&&e.incomingConditionItemList[0].compareValue&&(this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue),this.radioArr=e.id,this.radioItem=[e],this.handleNode(e),this.$emit("onVars",this.gateVars))},handleCheckBoxClick(e){e&&(this.checkBoxArr.includes(e.id)?(e.incomingConditionItemList.length>0&&e.incomingConditionItemList[0].itemName&&e.incomingConditionItemList[0].compareValue&&delete this.gateVars[e.incomingConditionItemList[0].itemName],delete this.multiNodeParticipant[e.id],this.checkBoxItem.splice(this.checkBoxArr.indexOf(e.id),1),this.checkBoxArr.splice(this.checkBoxArr.indexOf(e.id),1)):(e.incomingConditionItemList.length>0&&e.incomingConditionItemList[0].itemName&&e.incomingConditionItemList[0].compareValue&&(this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue),this.checkBoxItem.push(e),this.checkBoxArr.push(e.id)),this.handleNode(e),this.$emit("onVars",this.gateVars))},handleNode(e){let t=e.childNode&&e.childNode.length?e.childNode:e&&e.length?e:[e];t&&t.length&&t.forEach((i,s)=>{i.participantList&&i.participantList.length?i.participantList.forEach((r,o)=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.partNodeArr[i.id]||(this.partNodeArr[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name),this.partNodeArr[i.id].find(a=>a.name==r.name)||this.partNodeArr[i.id].push(r)}):i.id&&i.humanPerformerName=="\u56FA\u5B9A\u4EBA\u5458"&&this.param.request.post(`/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:[i.id]}).then(r=>{r.code==200&&(this.partNode[i.id]={},this.partNode[i.id]=r.data[i.id].split(";"))}),this.nodeType=="outing"&&(this.onVarsData&&(this.gateVars={...this.gateVars,...this.onVarsData}),this.$emit("onVars",this.gateVars))})},handleOpenFixedPerson(e){this.currentClickItem=e,this.partObjId=e.id,this.showFixedPerson=!0,this.fixedPersonList=e.userList||[]},updateFixedPersonVisible(e){this.showFixedPerson=e},updateFixedSelect(e){},handleSumbitFixedPerson(e){this.fixedSelect[this.partObjId]=e,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],this.partNodeArr[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.userId),this.partNode[this.partObjId].push(t.realName),this.partNodeArr[this.partObjId].push({...t,name:t.realName,id:t.userId})}),this.onMultiNodeData&&(this.multiNodeParticipant={...this.multiNodeParticipant,...this.onMultiNodeData}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),this.showFixedPerson=!1},handleClickFixedPerson(e){this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],this.partNodeArr[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.userId),this.partNode[this.partObjId].push(t.realName),this.partNodeArr[this.partObjId].push({...t,name:t.realName,id:t.userId})}),this.onMultiNodeData&&(this.multiNodeParticipant={...this.multiNodeParticipant,...this.onMultiNodeData}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),this.showFixedPerson=!1},handleOpenPopup(e){if(this.visible=!0,this.partObjId=e.id,this.nodeType=="nexting"?e={...e,...e.userTaskModelDTO}:this.nodeType=="outing"?e={...e,humanPerformer:{name:e.humanPerformerName}}:this.handleTips("\u52A0\u8F7D\u5931\u8D25,\u8BF7\u5237\u65B0",!0,"error"),e.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"||e.humanPerformerName=="\u56FA\u5B9A\u5355\u4F4D"){let t,i=[];this.multiNodeParticipant,this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((s,r)=>{i.push({type:3,id:s.id,subjectId:s.subjectId})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,subjectName:t,checkedArray:i}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"||e.humanPerformerName=="\u56FA\u5B9A\u90E8\u95E8"){let t,i=[],s=[];e.routeTxt.departmentIds.forEach((r,o)=>{e.routeTxt.departmentIds.length>1?i.push(r.rangeId):t=r.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((r,o)=>{s.push({type:3,id:r.id,deptId:t,subjectId:r.subjectId})}),e.routeTxt.departmentIds.length>1?this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,deptCodeArray:i,checkedArray:s}:this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,deptCode:t,checkedArray:s}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"||e.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let t=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((i,s)=>{t.push({type:3,id:i.id,subjectId:i.subjectId})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:[5],request:this.param.request,codeType:[8],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,positionArray:e.positionArray,checkedArray:t}}else{let t=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((i,s)=>{t.push({type:3,id:i.id,subjectId:i.subjectId})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,checkedArray:t}}},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},onMultiNode(e){e&&(this.onMultiNodeData=e,this.multiNode={...this.multiNode,...this.onMultiNodeData},this.$emit("onMultiNode",this.multiNode),this.$emit("onMultiNodeObj",this.partNodeArr))},onVars(e){e&&(this.onVarsData=e,this.getVars={...this.gateVars,...this.onVarsData},this.$emit("onVars",this.getVars))}}},vA={key:0,class:"treenode"},FA={key:0,class:"treenode-multi"},QA={class:"treenode-node",style:{"margin-top":"0"}},jA=["onClick"],UA=["src"],_A=["onClick"],GA={class:"treenode-node"},qA={key:0},JA={key:1,class:"personselect"},HA={class:"personselect-name"},zA={class:"items-person"},KA=["onClick"],WA=["onClick"],YA={key:2,class:"items-person-name"},ZA={key:3,class:"items-person-name"},XA={key:4,class:"items-person-name"},$A={key:0,class:"views-items-includes"},ek={class:"views-items-and2"},tk={key:0},ik={class:"include"},nk={class:"include include-name"},sk={class:"treenode-node"},rk={key:0},ok={key:1,class:"personselect"},ak={class:"personselect-name"},lk={class:"items-person"},ck=["onClick"],dk=["onClick"],pk={key:2,class:"items-person-name"},hk={key:3,class:"items-person-name"},uk={key:4,class:"items-person-name"},mk={key:0,class:"views-items-includes"},fk={class:"views-items-and2"},gk={key:0},yk={class:"include"},Ak={class:"include include-name"},kk={key:1,class:"treenode-single"},bk={class:"treenode-single-items"},Ek={class:"personselect"},Ck={class:"personselect-name"},wk={key:0,class:"items-person"},Nk=["onClick"],Tk=["onClick"],Bk={key:2,class:"items-person-name"},Ik={class:"items-person-name"},xk={key:0},Sk={key:1,class:"views-items-includes"},Dk={class:"views-items-and2"},Pk={key:0},Mk={class:"include"},Ok={class:"include include-name"};function Vk(e,t,i,s,r,o){const a=n.resolveComponent("TreeNode",!0),l=n.resolveComponent("departPerson"),c=n.resolveComponent("TopPopup"),m=n.resolveComponent("SelectFixedPerson"),u=n.resolveComponent("TopTips");return r.nodeItems&&r.nodeItems.length?(n.openBlock(),n.createElementBlock("div",vA,[i.endNode?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",FA,[n.createElementVNode("div",QA,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.nodeItems,p=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[i.checkType=="InclusiveGatewayModel"&&r.nodeItems.length>1?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["treenode-checkbox",r.checkBoxArr.includes(p.id)?"treenode-checkbox-active":""]),onClick:g=>o.handleCheckBoxClick(p)},[n.createElementVNode("span",null,[r.checkBoxArr.includes(p.id)?(n.openBlock(),n.createElementBlock("img",{key:0,class:"treenode-checkbox-active-img",src:o.check},null,8,UA)):n.createCommentVNode("",!0)]),n.createTextVNode(" "+n.toDisplayString(p.nodeName||p.name),1)],10,jA)):i.checkType=="ExclusiveGatewayModel"&&r.nodeItems.length>1?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["treenode-radio",r.radioArr==p.id?"treenode-radio-active":""]),onClick:g=>o.handleRadioClick(p)},[t[1]||(t[1]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(p.nodeName||p.name),1)],10,_A)):n.createCommentVNode("",!0)],64))),256))]),i.checkType=="InclusiveGatewayModel"&&r.checkBoxItem&&r.checkBoxItem.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(r.checkBoxItem,p=>(n.openBlock(),n.createElementBlock("div",GA,[p.childNode&&p.childNode.length?(n.openBlock(),n.createElementBlock("div",qA,[n.createVNode(a,{items:p.childNode,endNode:p.childNode.length==1,nodeType:i.nodeType,param:i.param,checkType:p.type,onOnMultiNode:o.onMultiNode,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnVars"])])):(n.openBlock(),n.createElementBlock("div",JA,[n.createElementVNode("div",HA,n.toDisplayString(p.name||p.nodeName),1),n.createElementVNode("div",zA,[p.userList&&p.userList.length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:"items-person-set",onClick:g=>o.handleOpenFixedPerson(p)}," \u9009\u62E9 ",8,KA)):p.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&p.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(n.openBlock(),n.createElementBlock("div",{key:1,class:"items-person-set",onClick:n.withModifiers(g=>o.handleOpenPopup(p),["stop"])}," \u8BBE\u7F6E ",8,WA)):n.createCommentVNode("",!0),p.userList&&p.userList.length>0?(n.openBlock(),n.createElementBlock("div",YA,n.toDisplayString(r.partNode[p.id]?r.partNode[p.id].join(","):""),1)):p.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&p.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(n.openBlock(),n.createElementBlock("div",ZA,n.toDisplayString(r.partNode[p.id]?r.partNode[p.id].join(","):""),1)):p.routeTxt&&p.routeTxt.userNames?(n.openBlock(),n.createElementBlock("div",XA,n.toDisplayString(p.routeTxt.userNames),1)):n.createCommentVNode("",!0)]),p.routeTxt&&p.routeTxt.length>0?(n.openBlock(),n.createElementBlock("div",$A,[t[2]||(t[2]=n.createElementVNode("div",{class:"views-items-name2"},n.toDisplayString("\u6240\u5C5E\u8303\u56F4"),-1)),n.createElementVNode("div",ek,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(p.routeTxt,(g,A)=>(n.openBlock(),n.createElementBlock("div",{key:g.type},[g.ids&&g.ids.length>0?(n.openBlock(),n.createElementBlock("div",tk,[n.createElementVNode("div",ik,[n.createElementVNode("b",{class:n.normalizeClass(["include include-type",["include-"+g.type]])},n.toDisplayString(g.type=="user"?"\u7528\u6237":g.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"),3),n.createElementVNode("span",nk,n.toDisplayString(g.name),1)]),A!==p.routeTxt.length-1?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["include include-assign",["include-assign-"+(g.assigneeRetain?"true":"false")]])},n.toDisplayString(p.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"),3)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0)]))),128))])])):n.createCommentVNode("",!0)]))]))),256)):n.createCommentVNode("",!0),i.checkType=="ExclusiveGatewayModel"&&r.radioItem&&r.radioItem.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(r.radioItem,p=>(n.openBlock(),n.createElementBlock("div",sk,[p.childNode&&p.childNode.length?(n.openBlock(),n.createElementBlock("div",rk,[n.createVNode(a,{items:p.childNode,endNode:p.childNode.length==1,nodeType:i.nodeType,param:i.param,checkType:p.type,onOnMultiNode:o.onMultiNode,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnVars"])])):(n.openBlock(),n.createElementBlock("div",ok,[n.createElementVNode("div",ak,n.toDisplayString(p.name||p.nodeName),1),n.createElementVNode("div",lk,[p.userList&&p.userList.length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:"items-person-set",onClick:g=>o.handleOpenFixedPerson(p)}," \u9009\u62E9 ",8,ck)):p.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&p.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(n.openBlock(),n.createElementBlock("div",{key:1,class:"items-person-set",onClick:n.withModifiers(g=>o.handleOpenPopup(p),["stop"])}," \u8BBE\u7F6E ",8,dk)):n.createCommentVNode("",!0),p.userList&&p.userList.length>0?(n.openBlock(),n.createElementBlock("div",pk,n.toDisplayString(r.partNode[p.id]?r.partNode[p.id].join(","):""),1)):p.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&p.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(n.openBlock(),n.createElementBlock("div",hk,n.toDisplayString(r.partNode[p.id]?r.partNode[p.id].join(","):""),1)):p.routeTxt&&p.routeTxt.userNames?(n.openBlock(),n.createElementBlock("div",uk,n.toDisplayString(p.routeTxt.userNames),1)):n.createCommentVNode("",!0)]),p.routeTxt&&p.routeTxt.length>0?(n.openBlock(),n.createElementBlock("div",mk,[t[3]||(t[3]=n.createElementVNode("div",{class:"views-items-name2"},n.toDisplayString("\u6240\u5C5E\u8303\u56F4"),-1)),n.createElementVNode("div",fk,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(p.routeTxt,(g,A)=>(n.openBlock(),n.createElementBlock("div",{key:g.type},[g.ids&&g.ids.length>0?(n.openBlock(),n.createElementBlock("div",gk,[n.createElementVNode("div",yk,[n.createElementVNode("b",{class:n.normalizeClass(["include include-type",["include-"+g.type]])},n.toDisplayString(g.type=="user"?"\u7528\u6237":g.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"),3),n.createElementVNode("span",Ak,n.toDisplayString(g.name),1)]),A!==p.routeTxt.length-1?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["include include-assign",["include-assign-"+(g.assigneeRetain?"true":"false")]])},n.toDisplayString(p.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"),3)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0)]))),128))])])):n.createCommentVNode("",!0)]))]))),256)):n.createCommentVNode("",!0)])),i.endNode?(n.openBlock(),n.createElementBlock("div",kk,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.nodeItems,p=>(n.openBlock(),n.createElementBlock("div",bk,[n.createElementVNode("div",Ek,[n.createElementVNode("div",Ck,n.toDisplayString(p.name||p.nodeName),1),p.nodeType!=="endEvent"?(n.openBlock(),n.createElementBlock("div",wk,[p.userList&&p.userList.length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:"items-person-set",onClick:g=>o.handleOpenFixedPerson(p)}," \u9009\u62E9 ",8,Nk)):p.setPersonnel?(n.openBlock(),n.createElementBlock("div",Bk,n.toDisplayString((p.assignees||[]).map(g=>g.name).join(",")),1)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"items-person-set",onClick:n.withModifiers(g=>o.handleOpenPopup(p),["stop"])}," \u8BBE\u7F6E ",8,Tk)),n.createElementVNode("div",Ik,[!r.partNode[p.id]&&p.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"&&p.noPersonnel?(n.openBlock(),n.createElementBlock("div",xk," \u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E ")):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(r.partNode[p.id]?r.partNode[p.id].join(","):""),1)])])):n.createCommentVNode("",!0),p.routeTxt&&p.routeTxt.length>0?(n.openBlock(),n.createElementBlock("div",Sk,[t[4]||(t[4]=n.createElementVNode("div",{class:"views-items-name2"},n.toDisplayString("\u6240\u5C5E\u8303\u56F4"),-1)),n.createElementVNode("div",Dk,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(p.routeTxt,(g,A)=>(n.openBlock(),n.createElementBlock("div",{key:g.type},[g.ids&&g.ids.length>0?(n.openBlock(),n.createElementBlock("div",Pk,[n.createElementVNode("div",Mk,[n.createElementVNode("b",{class:n.normalizeClass(["include include-type",["include-"+g.type]])},n.toDisplayString(g.type=="user"?"\u7528\u6237":g.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"),3),n.createElementVNode("span",Ok,n.toDisplayString(g.name),1)]),A!==p.routeTxt.length-1?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["include include-assign",["include-assign-"+(g.assigneeRetain?"true":"false")]])},n.toDisplayString(p.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"),3)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0)]))),128))])])):n.createCommentVNode("",!0)])]))),256))])):n.createCommentVNode("",!0),n.createVNode(c,{visible:r.visible,"onUpdate:visible":t[0]||(t[0]=p=>r.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:n.withCtx(()=>[r.visible?(n.openBlock(),n.createBlock(l,n.mergeProps({key:0,isTitle:!1},r.entity,{onCallback:o.handleCallback}),null,16,["onCallback"])):n.createCommentVNode("",!0)]),_:1},8,["visible"]),n.createVNode(m,{visible:r.showFixedPerson,list:r.fixedPersonList,multiple:r.currentClickItem.loopCardinality==-1,select:r.fixedSelect[r.partObjId]||[],onUpdateList:o.handleClickFixedPerson,onUpdateVisible:o.updateFixedPersonVisible,onUpdateSelect:o.updateFixedSelect,onConfirm:o.handleSumbitFixedPerson},null,8,["visible","list","multiple","select","onUpdateList","onUpdateVisible","onUpdateSelect","onConfirm"]),n.createVNode(u,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"])])):n.createCommentVNode("",!0)}const Rk=le(LA,[["render",Vk],["__scopeId","data-v-c32b0f83"]]),BE="",Lk={name:"tree-person",components:{TreeNode:Rk},props:{items:{type:Array,default:()=>[]},nodeType:{type:String,default:"outing"},param:{type:Object,default:()=>{}}},data(){return{nodeItems:[],visible:!1,partObjId:"",partNode:[],firstCheck:"",firstCheckItem:{},firstType:"",firstMultiCheck:[],firstMultiCheckItem:[],firstMultiType:[],firstMultiCheckSub:[],firstMultiCheckItemSub:[],firstMultiTypeSub:[],childrenItems:[],childrenEndItems:!1,childrenItemsSub:[],childrenEndItemsSub:!1,gateVars:{},multiNode:{},partNodeArr:{},getVars:{}}},watch:{items:{handler(e,t){e&&e.length&&(this.nodeType=="nexting"?(this.nodeItems=[],this.childrenEndItems=!0,e.forEach(i=>{i={...i,...i.userTaskModelDTO},this.nodeItems.push(i)})):this.nodeType=="outing"&&(this.nodeItems=e),this.nodeItems.length==1&&this.nodeItems[0].type=="ExclusiveGatewayModel"&&this.nodeItems[0].childNode&&this.nodeItems[0].childNode.length==1&&this.handleFirstNodeClick(this.nodeItems[0]),this.nodeItems)},immediate:!0,deep:!0}},methods:{filterMultiItems(e=[]){return this.firstMultiCheck,e.filter(t=>this.firstMultiCheck.includes(t.nodeInfoDTO?t.nodeInfoDTO.id:t.id))},filterMultiItemsSub(e=[]){return this.firstMultiCheckSub,e.filter(t=>this.firstMultiCheckSub.includes(t.nodeInfoDTO?t.nodeInfoDTO.id:t.id))},onMultiNode(e,t=""){t&&Object.prototype.toString.call(e)=="[object Object]"?Object.prototype.toString.call(this.multiNode)=="[object Object]"?Object.keys(e).forEach(i=>{e[i]||(e[i]=[""]),e[i]&&e[i].length>=1?this.multiNode[i]=e[i].filter(s=>s):this.multiNode[i]=e[i]}):this.multiNode=e:this.multiNode=e,this.$emit("onMultiNode",this.multiNode)},onMultiNodeObj(e){this.partNodeArr=e,this.$emit("onMultiNodeObj",this.partNodeArr)},onVars(e){e?this.getVars={...this.gateVars,...e}:this.getVars={...this.gateVars},this.$emit("onVars",this.getVars)},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"||e=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"},handleMultiFirstNodeClick(e,t=[]){let i=e;if(i&&i.nodeInfoDTO&&(i=i.nodeInfoDTO),this.firstMultiCheck.includes(i.id)){this.firstMultiCheck=this.firstMultiCheck.filter(s=>s!=i.id),this.firstMultiCheckItem=this.firstMultiCheckItem.filter(s=>s.id!=i.id),this.firstMultiType=this.firstMultiType.filter(s=>s!=i.nodeType),delete this.param.selChildrenItems[i.id];return}if(i){this.firstMultiCheck.push(i.id),this.firstMultiCheckItem.push(i),this.firstMultiType.push(i.nodeType);let s=[i];i.branches&&i.branches.length?(this.childrenItems=i.branches,this.childrenEndItems=!1):(this.childrenItems=[i],this.childrenEndItems=!0),t.forEach(r=>{delete this.param.selChildrenItems[r.id],this.param.selChildrenItems[i.id]=(this.childrenItems||[]).map(o=>o.nodeInfoDTO||o)}),this.gateVars={},s.forEach(r=>{(!this.param||!this.param.vars)&&(this.param.vars={}),Array.isArray(r.incomingConditionItemList)&&r.incomingConditionItemList.length>0&&(this.param.vars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue,this.gateVars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue)})}},handleMultiFirstNodeClickSub(e,t=[]){let i=e;if(i&&i.nodeInfoDTO&&(i=i.nodeInfoDTO),this.firstMultiCheckSub.includes(i.id)){this.firstMultiCheckSub=this.firstMultiCheckSub.filter(s=>s!=i.id),this.firstMultiCheckItemSub=this.firstMultiCheckItemSub.filter(s=>s.id!=i.id),this.firstMultiTypeSub=this.firstMultiTypeSub.filter(s=>s!=i.nodeType),this.childrenItemsSub=this.childrenItemsSub.filter(s=>s.id!=i.id),t.forEach(s=>{delete this.param.selChildrenItems[s.nodeInfoDTO?s.nodeInfoDTO.id:s.id]}),delete this.param.selChildrenItems[i.id];return}if(i){this.firstMultiCheckSub.push(i.id),this.firstMultiCheckItemSub.push(i),this.firstMultiTypeSub.push(i.nodeType);let s=[i];i.branches&&i.branches.length?(this.childrenItemsSub.push(i.branches),this.childrenEndItemsSub=!1):(this.childrenItemsSub.push(i),this.childrenEndItemsSub=!0),t.forEach(r=>{delete this.param.selChildrenItems[r.nodeInfoDTO?r.nodeInfoDTO.id:r.id],this.param.selChildrenItems[i.id]=(this.childrenItemsSub||[]).map(o=>o.nodeInfoDTO||o)}),this.gateVars={},s.forEach(r=>{(!this.param||!this.param.vars)&&(this.param.vars={}),Array.isArray(r.incomingConditionItemList)&&r.incomingConditionItemList.length>0&&(this.param.vars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue,this.gateVars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue)})}},handleFirstNodeClick(e,t=[]){let i=e;if(i&&i.nodeInfoDTO&&(i=i.nodeInfoDTO),i){this.firstCheck=i.id,this.firstCheckItem=i,this.firstType=i.nodeType;let s=[i];i.branches&&i.branches.length?(this.childrenItems=i.branches,this.childrenEndItems=!1):(this.childrenItems=[i],this.childrenEndItems=!0),t.forEach(r=>{const o=this.param.selChildrenItems[r.nodeInfoDTO?r.nodeInfoDTO.id:r.id];Array.isArray(o)&&o.forEach(a=>{delete this.param.selChildrenItems[a.id]}),delete this.param.selChildrenItems[r.nodeInfoDTO?r.nodeInfoDTO.id:r.id],this.param.selChildrenItems[i.id]=(this.childrenItems||[]).map(a=>a.nodeInfoDTO||a)}),this.gateVars={},s.forEach(r=>{(!this.param||!this.param.vars)&&(this.param.vars={}),Array.isArray(r.incomingConditionItemList)&&r.incomingConditionItemList.length>0&&(this.param.vars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue,this.gateVars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue)})}}}},vk={class:"test"},Fk={key:0},Qk={key:0},jk={key:0},Uk={key:0,class:"treeperson-firstnode"},_k=["onClick"],Gk={key:1,class:"treeperson-firstnode"},qk={key:2,class:"treeperson-firstnode"},Jk=["onClick"],Hk={key:3,class:"treeperson-firstnode"},zk=["onClick"],Kk={class:"treeperson-checkbox-box"},Wk=["onClick"],Yk={key:0,class:"treeperson-firstnode"},Zk={class:"treeperson-checkbox-box"},Xk=["onClick"],$k={key:0,class:"treeperson-firstnode"},e0=["onClick"],t0=["onClick"];function i0(e,t,i,s,r,o){const a=n.resolveComponent("tree-person",!0),l=n.resolveComponent("TreeNode");return n.openBlock(),n.createElementBlock("div",vk,[i.param.nodeLoading?(n.openBlock(),n.createElementBlock("div",Fk,t[3]||(t[3]=[n.createElementVNode("span",null,"\u4E0B\u4E00\u8282\u70B9: ",-1),n.createElementVNode("b",{style:{"font-size":"16px"}},"\u8282\u70B9\u52A0\u8F7D\u4E2D\uFF0C\u8BF7\u7A0D\u540E......",-1)]))):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[r.nodeItems&&r.nodeItems.length?(n.openBlock(),n.createElementBlock("div",Qk,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.nodeItems,(c,m)=>(n.openBlock(),n.createElementBlock("div",{class:"treeperson",key:m},[c.nodeType=="endEvent"?(n.openBlock(),n.createElementBlock("div",jk," \u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6 ")):c.branches&&c.branches.length?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[i.nodeType=="nexting"&&c.nodeType!="inclusiveGateway"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[c.nodeType=="exclusiveGateway"&&c.branches.length>1?(n.openBlock(),n.createElementBlock("div",Uk,[t[5]||(t[5]=n.createElementVNode("div",{class:"treeperson-title"},[n.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),n.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.branches,(u,p)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["treeperson-radio",r.firstCheck==(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-radio-active":""]),onClick:g=>o.handleFirstNodeClick(u,c.branches),key:p},[t[4]||(t[4]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(u.id.includes("Flow")?u.nodeName||u.name?u.nodeName||u.name:u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name:"":u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name||u.nodeName||u.name:u.nodeName||u.name),1)],10,_k))),128))])):c.nodeType=="exclusiveGateway"&&c.branches.length==1?(n.openBlock(),n.createElementBlock("div",Gk,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.branches,(u,p)=>(n.openBlock(),n.createElementBlock("div",null,[t[6]||(t[6]=n.createElementVNode("span",null,null,-1)),n.createVNode(a,{ref_for:!0,ref:"TreePersonRef",items:u.branches&&u.branches.length>0?u.branches:[u],nodeType:"nexting",param:i.param,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj},null,8,["items","param","onOnMultiNode","onOnMultiNodeObj"])]))),256))])):c.nodeType=="inclusiveGateway"&&c.branches.length>=1?(n.openBlock(),n.createElementBlock("div",qk,[t[8]||(t[8]=n.createElementVNode("div",{class:"treeperson-title"},[n.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),n.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.branches,(u,p)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["treeperson-radio",r.firstCheck==(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-radio-active":""]),onClick:g=>o.handleMultiFirstNodeClick(u),key:p},[t[7]||(t[7]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name:u.nodeName||u.name),1)],10,Jk))),128))])):(n.openBlock(),n.createElementBlock("div",Hk,[t[10]||(t[10]=n.createElementVNode("div",{class:"treeperson-title"},[n.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),n.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.branches,(u,p)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["treeperson-radio",r.firstCheck==(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-radio-active":""]),onClick:g=>o.handleFirstNodeClick(u,c.branches),key:p},[t[9]||(t[9]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name:u.nodeName||u.name),1)],10,zk))),128))])),r.childrenItems&&r.childrenItems.length>0&&r.childrenItems[0].nodeInfoDTO&&r.childrenItems[0].nodeInfoDTO.nodeType!="userTask"?(n.openBlock(),n.createBlock(a,{key:r.firstCheck,ref_for:!0,ref:"TreePersonRef",items:[r.firstCheckItem],nodeType:"nexting",param:i.param,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj},null,8,["items","param","onOnMultiNode","onOnMultiNodeObj"])):r.childrenItems&&r.childrenItems.length>1&&r.childrenItems[0].nodeInfoDTO&&r.childrenItems[0].nodeInfoDTO.nodeType=="userTask"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:5},[t[12]||(t[12]=n.createElementVNode("div",{class:"treeperson-title"},[n.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),n.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),n.createElementVNode("div",Kk,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.childrenItems,(u,p)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["treeperson-checkbox",r.firstMultiCheckSub.includes(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-checkbox-active":""]),onClick:g=>o.handleMultiFirstNodeClickSub(u,r.childrenItems),key:p},[t[11]||(t[11]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name:u.nodeName||u.name),1)],10,Wk))),128))]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.filterMultiItemsSub(r.childrenItems),u=>(n.openBlock(),n.createBlock(l,{items:u.branches&&u.branches.length>0?u.branches:[u.nodeInfoDTO?u.nodeInfoDTO:u],endNode:!0,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:t[0]||(t[0]=p=>o.onMultiNode(p,"multi")),onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","nodeType","param","checkType","onOnMultiNodeObj","onOnVars"]))),256))],64)):(n.openBlock(),n.createBlock(l,{key:6,items:r.childrenItems,endNode:r.childrenEndItems,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"]))],64)):i.nodeType=="nexting"&&c.nodeType=="inclusiveGateway"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[c.nodeType=="inclusiveGateway"&&c.branches.length>=1?(n.openBlock(),n.createElementBlock("div",Yk,[t[14]||(t[14]=n.createElementVNode("div",{class:"treeperson-title"},[n.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),n.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),n.createElementVNode("div",Zk,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.branches,(u,p)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["treeperson-checkbox",r.firstMultiCheck.includes(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-checkbox-active":""]),onClick:g=>o.handleMultiFirstNodeClick(u,c.branches),key:p},[t[13]||(t[13]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name:u.nodeName||u.name),1)],10,Xk))),128))])])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.filterMultiItems(c.branches),u=>(n.openBlock(),n.createBlock(l,{items:u.branches&&u.branches.length>0?u.branches:[u.nodeInfoDTO?u.nodeInfoDTO:u],endNode:!0,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:t[1]||(t[1]=p=>o.onMultiNode(p,"multi")),onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","nodeType","param","checkType","onOnMultiNodeObj","onOnVars"]))),256))],64)):n.createCommentVNode("",!0)],64)):c.nodeType=="exclusiveGateway"&&c.branches&&c.branches.length>1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[t[16]||(t[16]=n.createElementVNode("div",{class:"treeperson-title"},[n.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),n.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),c.type=="ExclusiveGatewayModel"&&c.branches.length==1?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",$k,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.branches,(u,p)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["treeperson-checkbox",r.firstCheck==u.id?"treeperson-checkbox-active":""]),onClick:g=>o.handleFirstNodeClick(u,c.branches),key:p},[t[15]||(t[15]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(u.nodeName||u.name),1)],10,e0))),128))])),n.createVNode(l,{items:r.childrenItems,endNode:r.childrenEndItems,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:t[2]||(t[2]=u=>o.onMultiNode(u,"multi")),onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNodeObj","onOnVars"])],64)):c.nodeType=="exclusiveGateway"&&c.branches&&c.branches.length==1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:3},[t[17]||(t[17]=n.createElementVNode("div",{class:"treeperson-title"},[n.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),n.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),i.nodeType=="nexting"?(n.openBlock(),n.createBlock(l,{key:0,items:[c.branches[0]],endNode:r.childrenEndItems,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"])):(n.openBlock(),n.createBlock(l,{key:1,items:[c.branches[0]],endNode:!0,nodeType:"nexting",param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"]))],64)):c.id||c.nodeInfoDTO&&c.nodeInfoDTO.id?(n.openBlock(),n.createElementBlock(n.Fragment,{key:4},[i.nodeType=="nexting"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[c.nodeInfoDTO&&c.nodeInfoDTO.nodeType=="exclusiveGateway"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[t[19]||(t[19]=n.createElementVNode("div",{class:"treeperson-title"},[n.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),n.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.nodeInfoDTO.branches,(u,p)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["treeperson-radio",r.firstCheck==(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-radio-active":""]),onClick:g=>o.handleFirstNodeClick(u,c.nodeInfoDTO.branches),key:p},[t[18]||(t[18]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(u.nodeName||u.name),1)],10,t0))),128)),(n.openBlock(),n.createBlock(a,{key:r.firstCheck,ref_for:!0,ref:"TreePersonRef",items:[r.firstCheckItem],nodeType:"nexting",param:i.param,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj},null,8,["items","param","onOnMultiNode","onOnMultiNodeObj"]))],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[t[20]||(t[20]=n.createElementVNode("div",{class:"treeperson-title"},[n.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),n.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),n.createVNode(l,{items:[c.nodeInfoDTO?c.nodeInfoDTO:c],endNode:r.childrenEndItems,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"])],64))],64)):(n.openBlock(),n.createBlock(l,{key:1,items:[c],endNode:!0,nodeType:"nexting",param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"]))],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:5},[],64))]))),128))])):n.createCommentVNode("",!0)],64))])}const n0=le(Lk,[["render",i0],["__scopeId","data-v-7ebf4fef"]]),IE="",s0={data(){},props:{titleText:{default:"top-popup",type:String},context:{default:"\u5185\u5BB9",type:String},cancelText:{default:"\u53D6\u6D88",type:String},comfigText:{default:"\u786E\u5B9A",type:String},comfig:{default:null,type:Function},cancel:{default:null,type:Function},isMask:{default:!0,type:Boolean},isMaskClose:{default:!0,type:Boolean},isTips:{default:!1,type:Boolean},isDrawer:{default:!1,type:Boolean},visible:{default:!1,type:Boolean},isIndex:{type:Number},width:{type:String,default:"95vw"},className:{type:String,default:""},appendClass:{type:String,default:""}},data(){return{show:!1,top:0,useHidden:!1}},watch:{visible:{handler(e,t){if(e)this.show=e,document.body.style.position=="fixed"&&document.body.style.overflow=="hidden"?this.useHidden=!0:this.useHidden=!1,this.top=window.scrollY,document.body.style.position="fixed",document.body.style.top=`${-top}px`,document.body.style.overflow="hidden";else{if(this.useHidden){this.show=e,this.$emit("update:visible",!1);return}else document.body.style.position="",document.body.style.top="",document.body.style.overflow="visible",window.scrollTo(0,this.top);this.show=e,this.$emit("update:visible",!1)}},immediate:!0}},methods:{handleOpen(){this.show=!0,this.top=window.scrollY,document.body.style.position="fixed",document.body.style.top=-this.top+"px"},handleClose(){document.body.style.position="",document.body.style.top="",window.scrollTo(0,this.top),this.show=!1,this.$emit("update:visible",!1)},handleCancel(){typeof this.cancel=="function"&&this.cancel(),this.handleClose()},handleComfig(){typeof this.comfig=="function"&&this.comfig()},isIOS(){let e=navigator.userAgent.includes("iPhone"),t=navigator.userAgent.includes("iPad");return e||t}},mounted(){this.$nextTick(()=>{const e=document.getElementsByClassName("process-warp")[0]?document.getElementsByClassName("process-warp")[0]:document.getElementsByClassName("sumbmitPopup-index-sumbit")[0].getElementsByClassName("top-popup")[0];e.append?e.append(this.$el):e.appendChild(this.$el),document.documentElement.scrollTop||document.body.scrollTop})}},r0={class:"top-popup-header"},o0={class:"header-title"},a0={class:"top-popup-body"},l0={class:"top-popup-drawer--body"},c0={class:"top-tips-header"},d0={class:"top-tips-body"},p0={class:"top-tips-footer"};function h0(e,t,i,s,r,o){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["top-popup-zindex",i.className]),style:n.normalizeStyle(`${i.isIndex?`z-index:${i.isIndex}`:""}`)},[n.createElementVNode("div",{class:"top-popup-mask",style:n.normalizeStyle(r.show&&i.isMask?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;"),onClick:t[0]||(t[0]=a=>i.isMaskClose&&o.handleClose())},null,4),!i.isTips&&!i.isDrawer?(n.openBlock(),n.createElementBlock("div",{key:0,class:"top-popup",style:n.normalizeStyle(r.show?"transform: translateY(0)":"transform: translateY(150%)")},[n.createElementVNode("div",r0,[n.createElementVNode("div",{class:"header-cancel",onClick:t[1]||(t[1]=(...a)=>o.handleCancel&&o.handleCancel(...a))},n.toDisplayString(i.cancelText),1),n.createElementVNode("div",o0,n.toDisplayString(i.titleText),1),n.createElementVNode("div",{class:"header-comfig",onClick:t[2]||(t[2]=(...a)=>o.handleComfig&&o.handleComfig(...a))},n.toDisplayString(i.comfigText),1)]),n.createElementVNode("div",a0,[n.renderSlot(e.$slots,"default",{},void 0,!0)])],4)):!i.isTips&&i.isDrawer?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["top-popup-drawer",r.show?"top-popup-drawer--active":""]),style:n.normalizeStyle(i.width?`width:${i.width};`:"")},[n.createElementVNode("div",l0,[n.renderSlot(e.$slots,"default",{},void 0,!0)])],6)):i.isTips&&!i.isDrawer?(n.openBlock(),n.createElementBlock("div",{key:2,class:"top-tips",style:n.normalizeStyle(r.show?"visibility: visible; opacity: 1; transform: scale(1)":"visibility: hidden; opacity: 0; transform: scale(1.2)")},[n.createElementVNode("div",c0,n.toDisplayString(i.titleText),1),n.createElementVNode("div",d0,n.toDisplayString(i.context),1),n.createElementVNode("div",p0,[n.createElementVNode("div",{class:"top-tips-btn",onClick:t[3]||(t[3]=(...a)=>o.handleCancel&&o.handleCancel(...a))},n.toDisplayString(i.cancelText),1),n.createElementVNode("div",{class:"top-tips-btn",onClick:t[4]||(t[4]=(...a)=>o.handleComfig&&o.handleComfig(...a))},n.toDisplayString(i.comfigText),1)])],4)):n.createCommentVNode("",!0)],6)}const Va=le(s0,[["render",h0],["__scopeId","data-v-06a80662"]]),xE="",u0={props:{request:{type:Function,default:()=>{}}},components:{signDrawer:Va},data(){return{ctx:null,signatureImage:"",actionHeight:0,historyHeight:0,isDrawing:!1,paths:[],currentPath:[],historyPics:[],savaClock:!1,confirmVisible:!1}},methods:{startDrawing(e){if(this.$refs.canvasRef.getContext){this.isDrawing=!0,this.currentPath=[];const t=this.$refs.canvasRef.getBoundingClientRect(),i=(e.touches[0].clientX-t.left)*(this.$refs.canvasRef.width/t.width)/window.devicePixelRatio,s=(e.touches[0].clientY-t.top)*(this.$refs.canvasRef.height/t.height)/window.devicePixelRatio;this.ctx.beginPath(),this.ctx.moveTo(i,s),this.currentPath.push({x:i,y:s})}else this.isDrawing=!0,this.currentPath=[],this.currentPath.push({x:e.touches[0].x,y:e.touches[0].y})},draw(e){if(!!this.isDrawing)if(this.$refs.canvasRef.getContext&&this.currentPath.length>0){const t=this.$refs.canvasRef.getBoundingClientRect(),i=(e.touches[0].clientX-t.left)*(this.$refs.canvasRef.width/t.width)/window.devicePixelRatio,s=(e.touches[0].clientY-t.top)*(this.$refs.canvasRef.height/t.height)/window.devicePixelRatio;this.ctx.lineWidth=3,this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.strokeStyle="#000000",this.ctx.imageSmoothingEnabled=!0,this.ctx.imageSmoothingQuality="high",this.$refs.canvasRef.style.imageRendering="auto",this.ctx.lineTo(i,s),this.ctx.stroke(),this.currentPath.push({x:i,y:s})}else this.currentPath.length>0&&(this.currentPath.push({x:e.touches[0].x,y:e.touches[0].y}),this.ctx.moveTo(this.currentPath[this.currentPath.length-2].x,this.currentPath[this.currentPath.length-2].y),this.ctx.lineTo(this.currentPath[this.currentPath.length-1].x,this.currentPath[this.currentPath.length-1].y),this.ctx.setLineWidth(3),this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.setStrokeStyle("#000"),this.ctx.stroke(),this.ctx.draw(!0))},undo(){if(this.$refs.canvasRef.getContext){this.paths.pop(),this.ctx.clearRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.ctx.fillStyle="#fff",this.ctx.fillRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height);for(let e of this.paths)for(let t=0;t<e.length-1;t++){const{x:i,y:s}=e[t];t===0?(this.ctx.beginPath(),this.ctx.moveTo(i,s)):(this.ctx.lineTo(i,s),this.ctx.stroke())}}else if(this.paths.length>0){this.paths.pop(),this.ctx.clearRect(0,0,this.$refs.canvasRef.$el.offsetWidth,this.$refs.canvasRef.$el.offsetHeight),this.ctx.draw(!0);for(let e of this.paths)for(let t=0;t<e.length-1;t++)this.ctx.moveTo(e[t].x,e[t].y),this.ctx.lineTo(e[t+1].x,e[t+1].y),this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.setLineWidth(4),this.ctx.setStrokeStyle("#000"),this.ctx.stroke(),this.ctx.draw(!0);this.ctx.draw(!0)}this.currentPath=[]},finishDrawing(e){this.paths.push(this.currentPath),this.currentPath=[],this.isDrawing=!1},clearCanvas(){var e,t;(t=(e=this.$refs)==null?void 0:e.canvasRef)!=null&&t.getContext?(this.ctx.clearRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.ctx.fillStyle="#fff",this.ctx.fillRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.signatureImage="",this.paths=[]):(this.ctx.clearRect(0,0,this.$refs.canvasRef.$el.offsetWidth,this.$refs.canvasRef.$el.offsetHeight),this.ctx.draw(!0),this.signatureImage="",this.paths=[]),this.currentPath=[],this.$emit("saveSignature","",!1)},cancelSign(){this.clearCanvas(),this.$emit("close")},fixAccuracy(e,t){const i=new Blob([e],{type:"text/plain"}),o=new File([i],"text.txt").size/1024;if(o<=64){const a=document.getElementById("canvas-id");return this.getRotatedDataURL(a,-90,t)}else{if(o>300)return null;{let a,l;if(t<.005)return null;if(t-.05>0){a=t-.05;const c=document.getElementById("canvas-id");return l=this.getRotatedDataURL(c,-90,a),this.fixAccuracy(l,a)}else{a=t/2;const c=document.getElementById("canvas-id");return l=this.getRotatedDataURL(c,-90,a),this.fixAccuracy(l,a)}}}},confirmSave(){if(this.paths.length==0){this.$emit("validateFail","\u8BF7\u7B7E\u5B57!");return}this.confirmVisible=!0},saveSignature(){if(this.confirmVisible=!1,this.savaClock)return;this.savaClock=!0;let e=this;if(this.$refs.canvasRef.getContext){let t=.6;const i=document.getElementById("canvas-id");return this.getRotatedDataURL(i,-90,t),!0}else uni.canvasToTempFilePath({canvasId:"canvas-id",success(t){e.signatureImage=t.tempFilePath;let i=JSON.parse(localStorage.getItem("signaturesArr"))||[];i.unshift(this.signatureImage),this.$set(this,"historyPics",i.slice(0,3)),localStorage.setItem("signaturesArr",JSON.stringify(this.historyPics)),e.$emit("saveSignature",e.signatureImage)}},e)},isUniCanvas(){var e;return!((e=this.$refs.canvasRef)!=null&&e.getContext)},disableWeChatScroll(e){e.preventDefault()},useHistory(e){this.historyPics[e]&&this.$emit("saveSignature",this.historyPics[e],!0)},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},getRotatedDataURL(e,t,i){let s=e.width/window.devicePixelRatio,r=e.height/window.devicePixelRatio,o=t*Math.PI/180,a=Math.max(s*Math.abs(Math.cos(o)),r*Math.abs(Math.sin(o))),l=Math.max(s*Math.abs(Math.sin(o)),r*Math.abs(Math.cos(o)));const c=document.createElement("canvas"),m=c.getContext("2d");c.width=a,c.height=l,m.translate(a/2,l/2),m.rotate(o),m.drawImage(e,-s/2,-r/2,s,r),c.toBlob(u=>{this.uploadImage(u)},"image/png",.95)},async uploadImage(e,t){this.loading=!0;const i=new FormData;i.append("file",e,t||`signature-${Date.now()}.png`);const s=await this.request.post("/file/upload",i,{headers:{"Content-Type":"multipart/form-data"}});if(this.loading=!1,!s.success)return;let r=JSON.parse(localStorage.getItem("signaturesArr"))||[];r.unshift(s.data),this.historyPics=r.slice(0,3),localStorage.setItem("signaturesArr",JSON.stringify(this.historyPics)),this.$emit("saveSignature",s.data,!0)}},computed:{setDynamicVars(){return{"--action-height":`${this.historyHeight}px`}}},mounted(){var e;if(this.historyHeight=(e=document.querySelector(".history"))==null?void 0:e.offsetHeight,this.$refs.canvasRef.getContext){let t=document.querySelector(".canvas-container");if(t){let i=document.getElementById("canvas-id");const s=t.offsetWidth,r=t.offsetHeight-this.actionHeight-this.historyHeight;i.style.width=`${s}px`,i.style.height=`${r}px`,i.width=s*window.devicePixelRatio,i.height=r*window.devicePixelRatio,this.ctx=this.$refs.canvasRef.getContext("2d"),this.ctx.scale(window.devicePixelRatio,window.devicePixelRatio),this.ctx.fillStyle="#fff",this.ctx.fillRect(0,0,i.width,i.height)}}else{this.ctx=uni.createCanvasContext("canvas-id",this);const t=uni.getSystemInfoSync().pixelRatio;this.ctx.scale(t,t)}document.addEventListener("touchmove",this.disableWeChatScroll,{passive:!1}),localStorage.getItem("signaturesArr")?this.historyPics=JSON.parse(localStorage.getItem("signaturesArr")):this.historyPics=[]},beforeDestroy(){document.removeEventListener("touchmove",this.disableWeChatScroll)}},m0={class:"canvas-container"},f0={key:0,class:"tips"},g0={class:"history"},y0=["src"],A0=["src"],k0=["src"],b0={class:"actions-area"};function E0(e,t,i,s,r,o){const a=n.resolveComponent("signDrawer");return n.openBlock(),n.createElementBlock("div",{class:"sign-container",style:n.normalizeStyle(o.setDynamicVars)},[n.createElementVNode("div",m0,[r.paths.length==0&&r.currentPath.length==0?(n.openBlock(),n.createElementBlock("div",f0,"\u8BF7\u5728\u6B64\u533A\u57DF\u7B7E\u5B57")):n.createCommentVNode("",!0),n.createElementVNode("canvas",{ref:"canvasRef",onTouchmove:t[0]||(t[0]=(...l)=>o.draw&&o.draw(...l)),onTouchstart:t[1]||(t[1]=(...l)=>o.startDrawing&&o.startDrawing(...l)),onTouchend:t[2]||(t[2]=(...l)=>o.finishDrawing&&o.finishDrawing(...l)),id:"canvas-id","canvas-id":"canvas-id",class:n.normalizeClass({"uni-canvas-style":o.isUniCanvas()})},null,34)]),n.createElementVNode("div",g0,[n.createElementVNode("div",{class:"img-grid",onClick:t[3]||(t[3]=l=>o.useHistory(0))},[r.historyPics[0]?(n.openBlock(),n.createElementBlock("img",{key:0,src:r.historyPics[0]?r.historyPics[0].url:"",fit:"scale-down"},null,8,y0)):n.createCommentVNode("",!0)]),n.createElementVNode("div",{class:"img-grid",onClick:t[4]||(t[4]=l=>o.useHistory(1))},[r.historyPics[1]&&r.historyPics[1].url?(n.openBlock(),n.createElementBlock("img",{key:0,src:r.historyPics[1].url,fit:"scale-down"},null,8,A0)):n.createCommentVNode("",!0)]),n.createElementVNode("div",{class:"img-grid",onClick:t[5]||(t[5]=l=>o.useHistory(2)),style:{"margin-right":"10rpx"}},[r.historyPics[2]&&r.historyPics[2].url?(n.openBlock(),n.createElementBlock("img",{key:0,src:r.historyPics[2].url,fit:"scale-down"},null,8,k0)):n.createCommentVNode("",!0)])]),n.createElementVNode("div",b0,[n.createElementVNode("button",{onClick:t[6]||(t[6]=(...l)=>o.confirmSave&&o.confirmSave(...l)),class:"btns-common cmf-btn"},"\u786E\u8BA4"),n.createElementVNode("button",{onClick:t[7]||(t[7]=(...l)=>o.cancelSign&&o.cancelSign(...l)),class:"btns-common"},"\u8FD4\u56DE"),n.createElementVNode("button",{onClick:t[8]||(t[8]=(...l)=>o.undo&&o.undo(...l)),class:"btns-common"},"\u64A4\u9500"),n.createElementVNode("button",{onClick:t[9]||(t[9]=(...l)=>o.clearCanvas&&o.clearCanvas(...l)),class:"btns-common"},"\u6E05\u7A7A")]),n.createVNode(a,{visible:r.confirmVisible,"onUpdate:visible":t[10]||(t[10]=l=>r.confirmVisible=l),ref:"TopPopupSign",titleText:"",isDrawer:!1,isTips:!0,context:"\u63D0\u4EA4\u4E4B\u540E\u5C06\u4E0D\u80FD\u518D\u4FEE\u6539,\u786E\u8BA4\u8981\u63D0\u4EA4\u7B7E\u540D\u5417?",comfig:o.saveSignature},null,8,["visible","comfig"])],4)}const C0=le(u0,[["render",E0],["__scopeId","data-v-d91bfd13"]]),SE="",w0={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:rt,attchViews:ti,TopPopup:Fe,departPerson:Nt.departPerson,MsgList:zi,TreePerson:n0,TopSign:C0,signDrawer:Va},computed:{check(){return Ys},checkS(){return RA},isSelectPerson(){if(this.pureTip=!1,this.nextNodeData,this.taskNode,this.multiNodeParticipant,this.$refs.TreePersonRef,this.param,Array.isArray(this.nextNodeData)&&this.nextNodeData[0].nodeType!="endEvent"){let e=this.param.selChildrenItems||{},t=[];if(Object.keys(e).filter(s=>s.startsWith("Activity")).forEach(s=>{t=t.concat(e[s])}),t.length==0&&Object.values(e).forEach(s=>{Array.isArray(s)&&s.length>0&&s.forEach(r=>{(r.id||"").startsWith("Activity")&&(t=t.concat(r))})}),t.length>0){let s="";const r=t.every(o=>{let a=this.multiNodeParticipant[o.id];a=(a||[]).filter(c=>c);const l=a&&a.length>0;return l||(s=o),l});return r?!1:s.name}else if(this.nextNodeData[0].nodeType=="exclusiveGateway"&&this.nextNodeData[0].branches&&this.nextNodeData[0].branches.length==1){const s=this.findUserTaskNode(this.nextNodeData[0].branches[0]);let r=(this.multiNodeParticipant[s.id]||[]).filter(a=>a);const o=r&&r.length>0;return this.nextNodeData[0].branches[0],o?!1:s.name}else if(this.nextNodeData[0].nodeType=="exclusiveGateway"&&this.nextNodeData[0].branches&&this.nextNodeData[0].branches.length>1){const s=this.$refs.TreePersonRef.childrenItems||null;if(s&&s.length>0){let r="";return s.every(a=>{const l=this.multiNodeParticipant[a.id]&&this.multiNodeParticipant[a.id].length>0;return l||(r=a),l})?!1:r.name}else return this.pureTip=!0,"\u8BF7\u9009\u62E9\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9"}else if(this.nextNodeData[0].nodeType=="userTask"){let s=(this.multiNodeParticipant[this.nextNodeData[0].id]||[]).filter(r=>r);return s&&s.length>0?!1:this.nextNodeData[0].name}}else return!1;if(this.nextNodeData.nodeType!="endEvent"){let e=this.param.selChildrenItems||{},t=[];if(Object.keys(e).filter(s=>s.startsWith("Activity")).forEach(s=>{t=t.concat(e[s])}),t.length==0&&Object.values(e).forEach(s=>{Array.isArray(s)&&s.length>0&&s.forEach(r=>{(r.id||"").startsWith("Activity")&&(t=t.concat(r))})}),t.length>0){let s="";const r=t.every(o=>{let a=this.multiNodeParticipant[o.id];a=(a||[]).filter(c=>c);const l=a&&a.length>0;return l||(s=o),l});return r?!1:s.name}else if(this.nextNodeData.nodeType=="exclusiveGateway"&&this.nextNodeData.branches&&this.nextNodeData.branches.length==1){const s=this.findUserTaskNode(this.nextNodeData.branches[0]);let r=(this.multiNodeParticipant[s.id]||[]).filter(a=>a);const o=r&&r.length>0;return this.nextNodeData.branches[0],o?!1:s.name}else if(this.nextNodeData.nodeType=="exclusiveGateway"&&this.nextNodeData.branches&&this.nextNodeData.branches.length>1){const s=this.$refs.TreePersonRef.childrenItems||null;if(s&&s.length>0){let r="";return s.every(a=>{const l=this.multiNodeParticipant[a.id]&&this.multiNodeParticipant[a.id].length>0;return l||(r=a),l})?!1:r.name}else return this.pureTip=!0,"\u8BF7\u9009\u62E9\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9"}else if(this.nextNodeData.nodeType=="userTask"){let s=(this.multiNodeParticipant[this.nextNodeData.id]||[]).filter(r=>r);return s&&s.length>0?!1:this.nextNodeData.name}}else return!1;if(Array.isArray(this.nextNodeData)&&this.nextNodeData.length==1&&this.nextNodeData[0].userTaskModelDTO&&this.taskNode&&this.taskNode.length>0&&this.taskNode[0].taskState!=4&&this.taskNode[0].taskState!=11){let e=this.nextNodeData[0].userTaskModelDTO.humanPerformer.name;if(e!="\u56FA\u5B9A\u8D26\u6237"&&e!="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"&&JSON.stringify(this.multiNodeParticipant)=="{}")return this.nextNodeData[0].userTaskModelDTO.name}return this.pureTip=!0,"\u8BF7\u9009\u62E9\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9"},signRequired(){return!!this.param.extendedProperties.find(t=>t.name=="signature")}},data(){return{pureTip:!1,showFile:!1,attachRule:{limit:0,required:!1},partNodeArr:{},commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},canCheck:!0,radioCheck:"",radioCheckChild:[],radioCheckName:"",radioCheckNameList:[],radioCheckNode:[],radioCheckNodeList:[],partList:[],gateVars:{},personMake:[],personMakeList:{},visibleListMsg:!1,visibleMsgComfig:!1,msgCheck:"",msgCheckList:["\u540C\u610F","\u5982\u62DF","\u5DF2\u9605"],msgCheckListS:["\u540C\u610F","\u5DF2\u9605"],actionName:"",partNodeS:[],makeType:"",digitalSignature:"",signVisible:!1}},watch:{"param.nodeLoading":{handler(e,t){e||(this.param,this.nextNodeData=this.param.nextNodeData,this.nextNodeData&&this.nextNodeData.length?(this.nextNodeData.map((i,s)=>{i.nodeType!=="endEvent"&&(i.userTaskModelDTO||(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList}),i.userTaskModelDTO&&i.userTaskModelDTO.participantList&&i.userTaskModelDTO.participantList.length&&i.userTaskModelDTO.participantList.map(r=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name)}),(i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||i.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(i.id))}),this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(i=>{i.code==200&&(this.personMakeList=i.data)})):this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map((i,s)=>{i.nodeType!=="endEvent"&&i.participantList&&i.participantList.length&&i.participantList.map(r=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name)})}))}},"param.visible":{handler(e,t){this.nextNodeData=this.param.nextNodeData,this.taskNode=this.param.taskNode,this.outGatewayUserTaskModel=this.param.outGatewayUserTaskModel,this.actionName=this.param.actionName,this.attachShow(),this.showFile,this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map(i=>{i.type!=="endEvent"&&(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList},i.humanPerformer={name:i.humanPerformerName})}),this.nextNodeData&&this.nextNodeData.length?(this.nextNodeData.map((i,s)=>{i.nodeType!=="endEvent"&&(i.userTaskModelDTO||(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList}),i.userTaskModelDTO&&i.userTaskModelDTO.participantList&&i.userTaskModelDTO.participantList.length&&i.userTaskModelDTO.participantList.map(r=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name)}),(i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||i.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(i.id))}),this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(i=>{i.code==200&&(this.personMakeList=i.data)})):this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map((i,s)=>{i.nodeType!=="endEvent"&&i.participantList&&i.participantList.length&&i.participantList.map(r=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name)})})},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{findUserTaskNode(e){return e?e.nodeInfoDTO&&e.nodeInfoDTO.nodeType!="userTask"?this.findUserTaskNode(e.nodeInfoDTO.branches[0]):e.nodeInfoDTO?e.nodeInfoDTO:e:{}},handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth/user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleSaveNode(e){this.makeType=="InclusiveGatewayModel"?(this.radioCheckNameList.includes(e.id)?this.radioCheckNameList.splice(this.radioCheckNameList.indexOf(e.id),1):(this.radioCheckNameList.push(e.id),this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue),this.gateVars[e.itemName]=e.compareValue):(this.radioCheckNameList=[],this.radioCheckNodeList=[],this.radioCheckNameList.push(e.id),e.childNode&&e.childNode.length&&(this.radioCheckNodeList=e.childNode),this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue,this.gateVars[e.itemName]=e.compareValue)},handleSaveNodeS(e){this.makeType=="InclusiveGatewayModel"?this.radioCheckNode.includes(e.id)?this.radioCheckNode.splice(this.radioCheckNode.indexOf(e.id),1):this.radioCheckNode.push(e.id):this.radioCheckNode&&this.radioCheckNode.length?this.radioCheckNode=[]:(this.radioCheckNode.push(e.id),e.childNode&&e.childNode.length&&this.radioCheckNodeList.push(e.childNode))},forRadioChild(e,t){e.map((i,s)=>{i.childNode&&i.childNode.length?this.forRadioChild(i.childNode,!0):t&&this.radioCheckChild.push(i)})},async handleNode(e){this.makeType=e.type,this.radioCheckNameList=[],this.radioCheck=e.id,this.radioCheckName=e.nodeName,this.radioCheckChild=e.childNode&&e.childNode.length?e.childNode:[e],this.radioCheckChild&&this.radioCheckChild.length&&this.radioCheckChild.map(t=>{t.participantList&&t.participantList.length?t.participantList.map(i=>{this.multiNodeParticipant[t.id]||(this.multiNodeParticipant[t.id]=[]),this.partNode[t.id]||(this.partNode[t.id]=[]),this.multiNodeParticipant[t.id].includes(i.id)||this.multiNodeParticipant[t.id].push(i.id),this.partNode[t.id].includes(i.name)||this.partNode[t.id].push(i.name)}):this.param.request.post(`/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:[t.id]}).then(i=>{i.code==200&&(this.partNodeS=[],this.partNodeS.push(i.data[t.id]))})}),(!this.radioCheckChild[0].incomingConditionItemList||!this.radioCheckChild[0].incomingConditionItemList.length)&&e.incomingConditionItemList&&e.incomingConditionItemList.length&&(this.radioCheckChild[0].incomingConditionItemList=e.incomingConditionItemList),this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&(this.radioCheckChild&&this.radioCheckChild.length?(this.gateVars[this.radioCheckChild[0].incomingConditionItemList[0].itemName]=this.radioCheckChild[0].incomingConditionItemList[0].compareValue,this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue):this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue)},handleOpenPopup(e){if(this.visible=!0,this.partObjId=e.id,this.nextNodeData&&this.nextNodeData.length?e={...e,...e.userTaskModelDTO}:e.humanPerformer||(e={...e,humanPerformer:{name:e.humanPerformerName}}),e.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"){let t,i=[];e.routeTxt.companyIds.map((s,r)=>{t=s.name}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((s,r)=>{i.push({type:3,id:s})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,subjectName:t,checkedArray:i}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"){let t,i=[],s=[];e.routeTxt.departmentIds.forEach((r,o)=>{e.routeTxt.departmentIds.length>1?i.push(r.rangeId):t=r.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].forEach((r,o)=>{s.push({type:3,id:r,deptId:t})}),e.routeTxt.departmentIds.length>1?this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,deptCodeArray:i,checkedArray:s}:this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,deptCode:t,checkedArray:s}}else{let t=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((i,s)=>{t.push({type:3,id:i})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,checkedArray:t}}},handleOpenMsg(){this.visibleListMsg=!0},async confirm(){this.signRequired?this.signConfirm():this.commonConfirm()},async commonConfirm(){if(this.param.ProcessInsObj.processDefId=="obj_94014ede99b6495d8f6d5977314faa15"&&(this.commentMsg="\u540C\u610F"),!this.commentMsg&&this.param.isRequire){this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success");return}if(this.requires&&this.attchLists.length<=0){this.handleTips("\u8BF7\u4E0A\u4F20\u9644\u4EF6!",!1,"success");return}if(this.isSelectPerson!==!1){this.handleTips(this.pureTip?this.isSelectPerson:"\u8BF7\u9009\u62E9["+this.isSelectPerson+"]\u5BA1\u6279\u4EBA!",!1,"success");return}this.commentMsg||(this.commentMsg=" ");let e={};if(this.radioCheckNameList&&this.radioCheckNameList.length){if(this.radioCheckChild[0].type!=="EndEventModel"){let l=0;if(this.radioCheckNameList.map((c,m)=>{(!this.multiNodeParticipant[c]||!this.multiNodeParticipant[c].length)&&this.radioCheckChild.map((u,p)=>{u.id==c&&(u.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"||u.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&(!u.childNode||!u.childNode.length?l+=1:this.radioCheckNode.map((g,A)=>{(!this.multiNodeParticipant[g]||!this.multiNodeParticipant[g].length)&&(l+=1),e[g]=this.multiNodeParticipant[g]}))}),e[c]=this.multiNodeParticipant[c]}),l>0){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}}}else{if(this.multiNodeParticipant[this.partObjId]&&!this.multiNodeParticipant[this.partObjId].length){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}e=this.multiNodeParticipant}if(this.signRequired){this.signVisible=!0;return}if(this.param.beforeFunction&&!await this.param.beforeFunction())return;(this.param.incomingConditionItemList||[]).forEach(l=>{let c=this.param.vars||this.gateVars||{};c[l.itemName]||(c[l.itemName]="")}),this.handleTips("",!0,"loading");let t=[];const i=Array.isArray(this.param.nextNodeData)?this.param.nextNodeData[0]:this.param.nextNodeData;i.setPersonnel?t=i.assignees:t=(this.partNodeArr[i.id]||[]).map(l=>({id:l.id,name:l.name})),Object.keys(e).forEach(l=>{Array.isArray(e[l])&&(e[l]=e[l].filter(c=>c)),(!e[l]||Array.isArray(e[l])&&e[l].length<=0)&&delete e[l]});let s=i&&i.nodeType!="endEvent"&&(!i.branches||i.branches.length<=0),r=i&&i.nodeType!="endEvent"&&i.branches&&i.branches.length==1&&i.branches[0].nodeInfoDTO&&i.branches[0].nodeInfoDTO.nodeType!="endEvent",o=i&&i.nodeType!="endEvent"&&i.branches&&i.branches.length==1&&!i.branches[0].nodeInfoDTO&&i.branches[0].nodeType!="endEvent";if((s||r||o)&&!Object.keys(e).length){let c={};return s?c=i:r?c=i.branches[0].nodeInfoDTO:o&&(c=i.branches[0]),this.handleTips(c.nodeType?"\u8BF7\u9009\u62E9["+c.name+"]\u5BA1\u6279\u4EBA!":"\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9\u5BA1\u6279\u4EBA",!0,"error"),!1}Date.now()&&(this.param.processInstId,this.param.actionComplete,this.commentMsg,this.param.taskInstId,this.param.vars||this.gateVars,this.attchLists),await this.param.request.post("/bladex/blade-workflow/tis/complete",{pass:!0,assignees:t,processInstanceId:this.param.processInstId,actionName:this.param.actionComplete,commentMsg:this.commentMsg,taskId:this.param.taskInstId,vars:this.param.vars||this.gateVars,multiNodeParticipant:e,attachment:this.attchLists}).then(l=>{l.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(l.msg,!0,"error")})},async signConfirm(e=!0){if(this.param.ProcessInsObj.processDefId=="obj_94014ede99b6495d8f6d5977314faa15"&&(this.commentMsg="\u540C\u610F"),!this.commentMsg&&this.param.isRequire){this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success");return}if(this.requires&&this.attchLists.length<=0){this.handleTips("\u8BF7\u4E0A\u4F20\u9644\u4EF6!",!1,"success");return}if(this.isSelectPerson!==!1){this.handleTips(this.pureTip?this.isSelectPerson:"\u8BF7\u9009\u62E9["+this.isSelectPerson+"]\u5BA1\u6279\u4EBA!",!1,"success");return}this.commentMsg||(this.commentMsg=" ");let t={};if(this.radioCheckNameList&&this.radioCheckNameList.length){if(this.radioCheckChild[0].type!=="EndEventModel"){let c=0;if(this.radioCheckNameList.map((m,u)=>{(!this.multiNodeParticipant[m]||!this.multiNodeParticipant[m].length)&&this.radioCheckChild.map((p,g)=>{p.id==m&&(p.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"||p.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&(!p.childNode||!p.childNode.length?c+=1:this.radioCheckNode.map((A,w)=>{(!this.multiNodeParticipant[A]||!this.multiNodeParticipant[A].length)&&(c+=1),t[A]=this.multiNodeParticipant[A]}))}),t[m]=this.multiNodeParticipant[m]}),c>0){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}}}else{if(this.multiNodeParticipant[this.partObjId]&&!this.multiNodeParticipant[this.partObjId].length){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}t=this.multiNodeParticipant}if(e){this.signVisible=!0;return}if(!this.digitalSignature){this.handleTips("\u8BF7\u7B7E\u5B57!",!1,"success");return}if(this.param.beforeFunction&&!await this.param.beforeFunction())return;this.handleTips("",!0,"loading"),this.signVisible=(!1)(this.param.incomingConditionItemList||[]).forEach(c=>{let m=this.param.vars||this.gateVars||{};m[c.itemName]||(m[c.itemName]="")});let i=[];const s=Array.isArray(this.param.nextNodeData)?this.param.nextNodeData[0]:this.param.nextNodeData;s.setPersonnel?i=s.assignees:i=(this.partNodeArr[s.id]||[]).map(c=>({id:c.id,name:c.name})),Object.keys(t).forEach(c=>{Array.isArray(t[c])&&(t[c]=t[c].filter(m=>m)),(!t[c]||Array.isArray(t[c])&&t[c].length<=0)&&delete t[c]});let r=s&&s.nodeType!="endEvent"&&(!s.branches||s.branches.length<=0),o=s&&s.nodeType!="endEvent"&&s.branches&&s.branches.length==1&&s.branches[0].nodeInfoDTO&&s.branches[0].nodeInfoDTO.nodeType!="endEvent",a=s&&s.nodeType!="endEvent"&&s.branches&&s.branches.length==1&&!s.branches[0].nodeInfoDTO&&s.branches[0].nodeType!="endEvent";if((r||o||a)&&!Object.keys(t).length){let m={};return r?m=s:o?m=s.branches[0].nodeInfoDTO:a&&(m=s.branches[0]),this.handleTips(m.nodeType?"\u8BF7\u9009\u62E9["+m.name+"]\u5BA1\u6279\u4EBA!":"\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9\u5BA1\u6279\u4EBA",!0,"error"),!1}await this.param.request.post("/bladex/blade-workflow/tis/complete",{pass:!0,assignees:i,processInstanceId:this.param.processInstId,actionName:this.param.actionComplete,commentMsg:this.commentMsg,taskId:this.param.taskInstId,vars:this.param.vars||this.gateVars,multiNodeParticipant:t,digitalSignature:this.digitalSignature,attachment:this.attchLists}).then(c=>{c.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(c.msg,!0,"error")})},attachShow(e="\u529E\u7406"){const t=(this.param||{}).extendedProperties||[];let i=!1,s,r="";s=t.find(a=>a.name=="completeButtonAnnex"),r=s?s.value:"",r&&(i=!0);let o="";if(typeof r!="string"&&r!=null&&r.map(a=>{a.indexOf(this.operationLabel)!=-1&&(i=!0,o=a)}),o&&(r=o),i){const a=r.split(":");this.attachRule.required=a[1]=="true",this.attachRule.limit=a[2]==-1?999:a[2],this.otherList=r;let l=this.otherList.split(":");this.limit=l[2],this.requires=JSON.parse(l[1]),this.labels=l[0]}return this.labels,this.limit,i},makeDelegateTaskButtonAnnex(){},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,s)=>{i.size=i.fileSize,i.format=i.name.substring(i.name.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.name});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("complete")},onMultiNode(e){this.multiNodeParticipant=e},onMultiNodeObj(e){this.partNodeArr=e},onVars(e){this.gateVars=e},handleSignature(e,t){this.digitalSignature=e,t&&(this.signVisible=!1,this.signConfirm(!1))},noticeFail(e){this.handleTips(e,!1,"success")},handleClose(){this.signVisible=!1}}},N0={class:"process-popup-content"},T0={key:0,class:"process-popup-content-msg"},B0={key:0,class:"process-pc-label"},I0={key:1,class:"process-pc-value",style:{display:"flex"}},x0={class:"process-radio",style:{width:"100%"}},S0=["onClick"],D0=["onClick"],P0={key:2},M0={class:"process-pc-label"},O0={key:0,class:"process-pc-label--re"},V0={class:"process-pc-value"},R0={class:"process-popup-textarea"},L0={class:"process-popup-textarea-num"},v0={key:0,class:"msg-btn"},F0={class:"process-popup-content-person"},Q0={key:0},j0={key:1},U0={style:{height:"100%"}},_0={style:{height:"100%"}};function G0(e,t,i,s,r,o){const a=n.resolveComponent("TreePerson"),l=n.resolveComponent("TopTips"),c=n.resolveComponent("departPerson"),m=n.resolveComponent("TopPopup"),u=n.resolveComponent("MsgList"),p=n.resolveComponent("attchViews"),g=n.resolveComponent("TopSign"),A=n.resolveComponent("signDrawer");return n.openBlock(),n.createElementBlock("div",N0,[i.param.ProcessInsObj&&i.param.ProcessInsObj.processDefId!="obj_94014ede99b6495d8f6d5977314faa15"?(n.openBlock(),n.createElementBlock("div",T0,[i.param.isQuickReply?(n.openBlock(),n.createElementBlock("div",B0,"\u5FEB\u6377\u56DE\u590D")):n.createCommentVNode("",!0),i.param.isQuickReply?(n.openBlock(),n.createElementBlock("div",I0,[n.createElementVNode("div",x0,[i.param.isDocument?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(r.msgCheckList,w=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["process-radio-item",w==r.commentMsg?"process-radio-item--check":""]),onClick:()=>r.commentMsg=w},[t[8]||(t[8]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(w),1)],10,S0))),256)):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(r.msgCheckListS,w=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["process-radio-item",w==r.commentMsg?"process-radio-item--check":""]),onClick:()=>r.commentMsg=w},[t[9]||(t[9]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(w),1)],10,D0))),256)),i.param.isMsg?(n.openBlock(),n.createElementBlock("div",{key:2,class:"process-radio-item",onClick:t[0]||(t[0]=w=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px","margin-left":"auto"}}," \u5E38\u7528\u610F\u89C1 ")):n.createCommentVNode("",!0)])])):n.createCommentVNode("",!0),i.param.isMsg&&!i.param.isQuickReply?(n.openBlock(),n.createElementBlock("div",P0,[n.createElementVNode("div",{class:"process-radio-item",onClick:t[1]||(t[1]=w=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):n.createCommentVNode("",!0),n.createElementVNode("div",M0,[t[10]||(t[10]=n.createTextVNode(" \u5BA1\u6279\u610F\u89C1 ",-1)),i.param.isRequire?(n.openBlock(),n.createElementBlock("span",O0,"*")):n.createCommentVNode("",!0)]),n.createElementVNode("div",V0,[n.createElementVNode("div",R0,[n.withDirectives(n.createElementVNode("textarea",{"onUpdate:modelValue":t[2]||(t[2]=w=>r.commentMsg=w),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[n.vModelText,r.commentMsg]]),n.createElementVNode("div",L0,n.toDisplayString(r.commentMsg.length)+"/200 ",1)]),i.param.isMsg?(n.openBlock(),n.createElementBlock("div",v0,[n.createElementVNode("span",{class:"msg-btn-click",onClick:t[3]||(t[3]=w=>o.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):n.createCommentVNode("",!0)])])):n.createCommentVNode("",!0),n.createElementVNode("div",F0,[r.nextNodeData.length==1&&r.nextNodeData[0].nodeType=="endEvent"?(n.openBlock(),n.createElementBlock("div",Q0," \u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6 ")):r.nextNodeData&&r.nextNodeData.nodeType=="endEvent"?(n.openBlock(),n.createElementBlock("div",j0," \u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6 ")):(n.openBlock(),n.createBlock(a,{key:2,ref:"TreePersonRef",items:r.nextNodeData,nodeType:"nexting",param:i.param,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj},null,8,["items","param","onOnMultiNode","onOnMultiNodeObj"]))]),n.renderSlot(e.$slots,"completeSlot",{},void 0,!0),n.createVNode(l,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),n.createVNode(m,{visible:r.visible,"onUpdate:visible":t[4]||(t[4]=w=>r.visible=w),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:n.withCtx(()=>[n.createElementVNode("div",U0,[r.visible?(n.openBlock(),n.createBlock(c,n.mergeProps({key:0,isTitle:!1,visible:r.visible},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["visible","onCallback","onCancel"])):n.createCommentVNode("",!0)])]),_:1},8,["visible"]),n.createVNode(m,{visible:r.visibleListMsg,"onUpdate:visible":t[5]||(t[5]=w=>r.visibleListMsg=w),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:n.withCtx(()=>[n.createVNode(u,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),n.createVNode(m,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[6]||(t[6]=w=>r.visibleMsgComfig=w)},null,8,["context","cancel","comfig","visible"]),r.labels=="1"?(n.openBlock(),n.createBlock(p,{key:1,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):n.createCommentVNode("",!0),n.createVNode(A,{visible:r.signVisible,"onUpdate:visible":t[7]||(t[7]=w=>r.signVisible=w),ref:"TopPopupSign",titleText:"\u7B7E\u5B57",isDrawer:!0,width:"100vw"},{default:n.withCtx(()=>[n.createElementVNode("div",_0,[r.signVisible?(n.openBlock(),n.createBlock(g,{key:0,request:i.param.request,onSaveSignature:o.handleSignature,onValidateFail:o.noticeFail,onClose:o.handleClose},null,8,["request","onSaveSignature","onValidateFail","onClose"])):n.createCommentVNode("",!0)])]),_:1},8,["visible"])])}const Ra=le(w0,[["render",G0],["__scopeId","data-v-061ff1d2"]]),DE="",q0={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:rt,attchViews:ti,TopPopup:Fe,departPerson:Nt.departPerson,MsgList:zi},watch:{param:{async handler(e,t){this.entity.checkedArray=[],this.actionName=e.actionName},immediate:!0,deep:!0}},data(){return{commentMsg:"",actionName:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[770],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},visibleListMsg:!1,visibleMsgComfig:!1}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg)return this.handleTips("\u8BF7\u8F93\u5165\u62D2\u7EDD\u7406\u7531!",!1,"success"),!1;this.handleTips("",!0,"loading"),await this.param.request.post("/bladex/blade-workflow/tis/complete",{pass:!1,assignees:[],processInstanceId:this.param.processInstId,commentMsg:this.commentMsg,comment:this.commentMsg||" ",taskId:this.param.taskInstId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),window.top.postMessage("success","*"),this.commentMsg=""):this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,s)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("\u62D2\u7EDD")}}},J0={class:"process-popup-content"},H0={class:"process-popup-content-msg"},z0={key:0},K0={class:"process-pc-value"},W0={class:"process-popup-textarea"},Y0={class:"process-popup-textarea-num"},Z0={key:0,class:"msg-btn"},X0={key:0,class:"process-popup-content-person"},$0=["onClick"],eb={class:"process-pc-value--people"},tb={key:0,class:"process-pc-value--data"},ib={key:1,class:"process-pc-value--data",style:{color:"#888"}},nb={style:{"font-size":"15px"}},sb={style:{height:"100%"}};function rb(e,t,i,s,r,o){const a=n.resolveComponent("TopTips"),l=n.resolveComponent("departPerson"),c=n.resolveComponent("TopPopup"),m=n.resolveComponent("attchViews"),u=n.resolveComponent("MsgList");return n.openBlock(),n.createElementBlock("div",J0,[n.createElementVNode("div",H0,[i.param.isMsg?(n.openBlock(),n.createElementBlock("div",z0,[n.createElementVNode("div",{class:"process-radio-item",onClick:t[0]||(t[0]=p=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):n.createCommentVNode("",!0),t[7]||(t[7]=n.createElementVNode("div",{class:"process-pc-label"},[n.createTextVNode(" \u62D2\u7EDD\u7406\u7531\uFF1A "),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",K0,[n.createElementVNode("div",W0,[n.withDirectives(n.createElementVNode("textarea",{"onUpdate:modelValue":t[1]||(t[1]=p=>r.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[n.vModelText,r.commentMsg]]),n.createElementVNode("div",Y0,n.toDisplayString(r.commentMsg.length)+"/200 ",1)]),i.param.isMsg?(n.openBlock(),n.createElementBlock("div",Z0,[n.createElementVNode("span",{class:"msg-btn-click",onClick:t[2]||(t[2]=p=>o.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):n.createCommentVNode("",!0)])]),r.taskNode&&r.taskNode.length>0&&r.taskNode[0].taskState!=4?(n.openBlock(),n.createElementBlock("div",X0,[r.nextNodeData.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(r.nextNodeData,p=>{var g,A;return n.openBlock(),n.createElementBlock(n.Fragment,null,[o.isOption((A=(g=p==null?void 0:p.userTaskModelDTO)==null?void 0:g.humanPerformer)==null?void 0:A.name)?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("div",null,[n.createTextVNode(n.toDisplayString(p.userTaskModelDTO.name)+" ",1),t[8]||(t[8]=n.createElementVNode("br",null,null,-1)),t[9]||(t[9]=n.createTextVNode(" \u5BA1\u6279\u4EBA ",-1)),t[10]||(t[10]=n.createElementVNode("span",{class:"process-pc-label--re"},"*",-1))]),n.createElementVNode("div",{class:"process-pc-value",onClick:w=>o.handleOpenPopup(p.id)},[n.createElementVNode("div",eb,[r.partNode[p.id]&&r.partNode[p.id].length?(n.openBlock(),n.createElementBlock("div",tb,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.partNode[p.id],(w,M)=>(n.openBlock(),n.createElementBlock("span",null,n.toDisplayString(M==0?w:`,${w}`),1))),256))])):(n.openBlock(),n.createElementBlock("div",ib,t[11]||(t[11]=[n.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])))])],8,$0)],64)):n.createCommentVNode("",!0)],64)}),256)):r.outGatewayUserTaskModel.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(r.outGatewayUserTaskModel,p=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[o.isOption(p.humanPerformerName)?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("div",nb,n.toDisplayString(p.name),1),t[13]||(t[13]=n.createElementVNode("div",{class:"process-pc-label"},[n.createTextVNode(" \u5BA1\u6279\u4EBA "),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",{class:"process-pc-value",onClick:t[3]||(t[3]=(...g)=>o.handleOpenPopup&&o.handleOpenPopup(...g))},t[12]||(t[12]=[n.createElementVNode("div",{class:"process-pc-value--people"},n.toDisplayString(234),-1)]))],64)):n.createCommentVNode("",!0)],64))),256)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),n.createVNode(a,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),n.createVNode(c,{visible:r.visible,"onUpdate:visible":t[4]||(t[4]=p=>r.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:n.withCtx(()=>[n.createElementVNode("div",sb,[r.visible?(n.openBlock(),n.createBlock(l,n.mergeProps({key:0,isTitle:!1,visible:r.visible,request:i.param.request},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["visible","request","onCallback","onCancel"])):n.createCommentVNode("",!0)])]),_:1},8,["visible"]),r.labels=="\u62D2\u7EDD"?(n.openBlock(),n.createBlock(m,{key:1,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):n.createCommentVNode("",!0),n.createVNode(c,{visible:r.visibleListMsg,"onUpdate:visible":t[5]||(t[5]=p=>r.visibleListMsg=p),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:n.withCtx(()=>[n.createVNode(u,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),n.createVNode(c,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[6]||(t[6]=p=>r.visibleMsgComfig=p)},null,8,["context","cancel","comfig","visible"])])}const ob=le(q0,[["render",rb],["__scopeId","data-v-59b811ec"]]),PE="",ab={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:rt,attchViews:ti,TopPopup:Fe,departPerson:Nt.departPerson,TopDownSelect:Pa,MsgList:zi},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},option:[],nodeId:"",actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{async handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.entity.checkedArray=[],this.actionName=e.actionName},immediate:!0,deep:!0}},created(){this.getReturnNode()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},getReturnNode(){this.param.request.get("/bladex/blade-workflow/process/getBackNodes",{params:{taskId:this.param.taskInstId}}).then(e=>{e.code===200&&(this.option=(e.data||[]).map(t=>({...t,name:t.nodeName,id:t.nodeId})).filter(t=>!(t.nodeId||"").includes("startEvent")))})},handleChange(e){this.nodeId=e.id},handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u9000\u56DE\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;if(!this.nodeId)return this.textTips="\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9!",this.$refs.topTips.handleOpen(),!1;this.handleTips("",!0,"loading"),this.param.request.post("/bladex/blade-workflow/tis/rollback",{taskInstId:this.param.taskInstId,rollbackReason:this.commentMsg,targetActivityId:this.nodeId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,s)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("\u9000\u56DE")}}},lb={class:"process-popup-content"},cb={class:"process-popup-content-msg"},db={class:"process-pc-value",style:{display:"inline-block",width:"50%"}},pb={class:"process-pc-value"},hb={class:"process-popup-textarea"},ub={class:"process-popup-textarea-num"};function mb(e,t,i,s,r,o){const a=n.resolveComponent("TopDownSelect"),l=n.resolveComponent("TopTips"),c=n.resolveComponent("MsgList"),m=n.resolveComponent("TopPopup"),u=n.resolveComponent("attchViews");return n.openBlock(),n.createElementBlock("div",lb,[n.createElementVNode("div",cb,[t[3]||(t[3]=n.createElementVNode("div",{class:"process-pc-label",style:{"background-color":"#fff",position:"relative","z-index":"199",display:"inline-block",width:"50%"}},[n.createTextVNode(" \u9000\u56DE\u8282\u70B9\uFF1A "),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",db,[n.createVNode(a,{option:r.option,onChange:o.handleChange,optionStyle:"width:calc(100% - 40px);left:20px;",maskShow:!1,border:""},null,8,["option","onChange"])]),t[4]||(t[4]=n.createElementVNode("div",{class:"process-pc-label"},[n.createTextVNode(" \u9000\u56DE\u7406\u7531\uFF1A "),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",pb,[n.createElementVNode("div",hb,[n.withDirectives(n.createElementVNode("textarea",{"onUpdate:modelValue":t[0]||(t[0]=p=>r.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[n.vModelText,r.commentMsg]]),n.createElementVNode("div",ub,n.toDisplayString(r.commentMsg.length)+"/200 ",1)])])]),n.createVNode(l,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),n.createVNode(m,{visible:r.visibleListMsg,"onUpdate:visible":t[1]||(t[1]=p=>r.visibleListMsg=p),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:n.withCtx(()=>[n.createVNode(c,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),n.createVNode(m,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[2]||(t[2]=p=>r.visibleMsgComfig=p)},null,8,["context","cancel","comfig","visible"]),r.labels=="\u9000\u56DE"?(n.openBlock(),n.createBlock(u,{key:0,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):n.createCommentVNode("",!0)])}const fb=le(ab,[["render",mb],["__scopeId","data-v-fcd1a869"]]),ME="",gb={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:rt,departPerson:Nt.departPerson},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:""}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.checkedArray=[],this.entity.source="1",this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){let e="";this.multiNodeParticipant[this.partObjId].map((t,i)=>{i==0?e=t:e=`${e} ${t}`}),await this.param.request.post("/bladex/blade-workflow/tis/createCCTask",{processInstId:this.param.processInstId,taskId:this.param.taskInstId,title:"",participant:e}).then(t=>{t.code==200?(this.$emit("handleClosecctaskTopPopup"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal()):this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})}),e&&e.length&&this.confirm()},handleCancel(){},getValues(e){this.attchLists=e},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("ccTask")}}},yb={style:{height:"100%"}};function Ab(e,t,i,s,r,o){const a=n.resolveComponent("departPerson"),l=n.resolveComponent("TopTips");return n.openBlock(),n.createElementBlock("div",yb,[i.param.visible?(n.openBlock(),n.createBlock(a,n.mergeProps({key:0,isTitle:!1,request:i.param.request},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["request","onCallback","onCancel"])):n.createCommentVNode("",!0),n.createVNode(l,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"])])}const kb=le(gb,[["render",Ab]]),OE="",bb={name:"nf-button",components:{TopTips:rt},props:{uid:{type:String,default:""},loading:{type:Boolean,default:!1},buttonList:{type:Array,default:()=>[]},process:{type:Object,default:()=>({variables:{}})},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{}})},comment:String},data(){return{isCollapse:!0,nodeVisible:!1,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:{handler(e,t){e&&e.taskId&&this.request.get("/bladex/blade-workflow/process/getBackNodes",{params:{taskId:e.taskId}}).then(i=>{const s=i.data;this.backNodes=s})},deep:!0,immediate:!0}},methods:{handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleRollback(){if(!this.comment){this.$message.error("\u8BF7\u586B\u5199\u6279\u590D\u610F\u89C1");return}this.nodeVisible=!0},handleNodeSubmit(){const{nodeId:e}=this.nodeForm;this.$emit("rollback",e)},getButton(e){return this.buttonList.find(t=>t.buttonKey==e)}}},Eb={class:"process-btns"},Cb=["disabled"],wb={key:0},Nb={key:1},Tb=["disabled"],Bb={key:0},Ib={key:1},xb=["disabled"],Sb=["disabled"],Db=["disabled"],Pb=["disabled"],Mb=["disabled"],Ob=["disabled"],Vb=["disabled"],Rb=["disabled"],Lb=["disabled"];function vb(e,t,i,s,r,o){return n.openBlock(),n.createElementBlock("div",Eb,[i.process.status=="todo"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[o.getButton("wf_pass")?(n.openBlock(),n.createElementBlock("button",{key:0,class:"process-button success",size:"default",disabled:i.loading,onClick:t[0]||(t[0]=a=>e.$emit("examine",!0,["deleted"].includes(i.process.processIsFinished)?"\u91CD\u65B0\u63D0\u4EA4":o.getButton("wf_pass").name))},[["deleted"].includes(i.process.processIsFinished)?(n.openBlock(),n.createElementBlock("span",wb,"\u91CD\u65B0\u63D0\u4EA4")):(n.openBlock(),n.createElementBlock("span",Nb,n.toDisplayString(o.getButton("wf_pass").name),1))],8,Cb)):n.createCommentVNode("",!0),o.getButton("wf_reject")?(n.openBlock(),n.createElementBlock("button",{key:1,class:"process-button danger",size:"default",disabled:i.loading,onClick:t[1]||(t[1]=a=>e.$emit("examine",!1,(r.backNodes.length>1,o.getButton("wf_reject").name)))},[r.backNodes.length>1?(n.openBlock(),n.createElementBlock("span",Bb,n.toDisplayString(o.getButton("wf_reject").name),1)):(n.openBlock(),n.createElementBlock("span",Ib,n.toDisplayString(o.getButton("wf_reject").name),1))],8,Tb)):n.createCommentVNode("",!0),i.uid==(i.process.variables||{}).applyUserId?(n.openBlock(),n.createElementBlock("button",{key:2,size:"default",class:"process-button info",disabled:i.loading,onClick:t[2]||(t[2]=a=>e.$emit("reminders"))},t[11]||(t[11]=[n.createElementVNode("span",null,"\u50AC\u529E",-1)]),8,xb)):n.createCommentVNode("",!0),o.getButton("wf_transfer")?(n.openBlock(),n.createElementBlock("button",{key:3,class:"process-button primary",size:"default",disabled:i.loading,onClick:t[3]||(t[3]=a=>e.$emit("user-select",{type:"transfer",checkType:"radio",name:o.getButton("wf_transfer").name}))},n.toDisplayString(o.getButton("wf_transfer").name),9,Sb)):n.createCommentVNode("",!0),o.getButton("wf_delegate")?(n.openBlock(),n.createElementBlock("button",{key:4,class:"process-button warning",size:"default",disabled:i.loading,onClick:t[4]||(t[4]=a=>e.$emit("user-select",{type:"delegate",checkType:"radio",name:o.getButton("wf_delegate").name}))},n.toDisplayString(o.getButton("wf_delegate").name),9,Db)):n.createCommentVNode("",!0),o.getButton("wf_rollback")?(n.openBlock(),n.createElementBlock("button",{key:5,class:"process-button success",size:"default",disabled:i.loading,onClick:t[5]||(t[5]=a=>e.$emit("rollback",o.getButton("wf_rollback").name))},n.toDisplayString(o.getButton("wf_rollback").name),9,Pb)):n.createCommentVNode("",!0),o.getButton("wf_terminate")?(n.openBlock(),n.createElementBlock("button",{key:6,class:"process-button danger",size:"default",disabled:i.loading,onClick:t[6]||(t[6]=a=>e.$emit("terminate"))},n.toDisplayString(o.getButton("wf_terminate").name),9,Mb)):n.createCommentVNode("",!0),i.process.isMultiInstance&&o.getButton("wf_add_instance")?(n.openBlock(),n.createElementBlock("button",{key:7,class:"process-button primary",size:"default",disabled:i.loading,onClick:t[7]||(t[7]=a=>e.$emit("user-select",{type:"addInstance",checkType:"checkbox",name:o.getButton("wf_add_instance").name}))},n.toDisplayString(o.getButton("wf_add_instance").name),9,Ob)):n.createCommentVNode("",!0),o.getButton("wf_cctask")?(n.openBlock(),n.createElementBlock("button",{key:8,class:"process-button info",size:"default",disabled:i.loading,onClick:t[8]||(t[8]=a=>e.$emit("circulate",o.getButton("wf_cctask").name))},[n.createElementVNode("span",null,n.toDisplayString(o.getButton("wf_cctask").name),1)],8,Vb)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0),i.process.isOwner&&i.process.isReturnable&&!["deleted"].includes(i.process.processIsFinished)?(n.openBlock(),n.createElementBlock("button",{key:1,class:"process-button danger",size:"default",disabled:i.loading,onClick:t[9]||(t[9]=a=>e.$emit("withdraw","\u64A4\u9500"))}," \u64A4\u9500 ",8,Rb)):n.createCommentVNode("",!0),o.getButton("wf_print")?(n.openBlock(),n.createElementBlock("button",{key:2,class:"process-button info",size:"default",disabled:i.loading,onClick:t[10]||(t[10]=a=>e.$emit("print"))},n.toDisplayString(o.getButton("wf_print").name),9,Lb)):n.createCommentVNode("",!0)])}const Fb=tt({name:"TopProcess",components:{processBtns:le(bb,[["render",vb],["__scopeId","data-v-5024d104"]]),TopTab:Ig,TopPopup:Fe,TopTips:rt,TopSumbitPopup:Oa},props:{tapList:{require:!1,default:()=>[],type:Array},selfTapList:{require:!1,default:()=>[],type:Array},processDefId:{require:!0,default:"",type:String},processInstId:{require:!0,default:"",type:String},isAdditional:{require:!1,default:!1,type:Boolean},isView:{default:!1,type:Boolean},formData:{default:{},type:Object},getVarsStatus:{default:!0,type:Boolean},getVars:{default:null,type:Function},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{}})},endFunction:{type:Function,default:null},beforeFunction:{type:Function,default:null},isDocument:{type:Boolean,default:!1},restartData:{type:Object,default:{businessType:"",showType:"",processName:""}},selfList:{type:Array,default:()=>[]},selfBtn:{type:Array,default:()=>[]},uid:{type:String,default:""},isMsg:{type:Boolean,default:!0},isRequire:{type:Boolean,default:!0},isCheckType:{type:String,default:"0"},isOrgType:{type:Array,default:()=>[0]},isCodeType:{type:Array,default:()=>[3]},isQuickReply:{type:Boolean,default:!1},ccTaskFunction:{type:Function,default:null},hideHeader:{type:Boolean,default:!1},needResubmit:{type:Boolean,default:!0}},data(){return{currentProcess:{currentProcessOriginData:[],currentMan:[],currentFirstNode:{}},incomingConditionItemList:[],submitLoading:!1,nextTaskNode:{},deptId:"",absoluteTaskId:"",comment:"",processXml:"",approvalData:[],processStatus:{},processDefList:{},processBusiness:{},getFirstProcessNode:{},taskNode:[],taskNodeList:[],taskNodeIds:[],taskState:NaN,taskCurrent:0,taskObj:{},taskId:"",taskNodeShow:!1,actionShow:!1,titleText:"",btnStyle:"",processIntId:"",trackUrl:"",taskCommentList:[],operationCom:null,operationComKey:Date.now(),ProcessInsObj:{button:[],flow:[],form:{},process:{}},popupContext:"",operationParam:{},nextTaskNode:{},annexlabel:"",handleTipsType:"",textTips:"",statusTips:!1,typeTips:"",outGatewayUserTaskModel:[],nextNodeData:[],visibleSong:!1,trackList:[],user:{},canCheck:!0,approveNode:{},restartDataS:{},selfBtnList:[],topNum:144,bottomNum:70,userIdData:"",TopPopup1:!1,cctaskTopPopup:!1,cctaskTopPopupTitle:"\u6284\u9001"}},watch:{processInstId:{async handler(e,t){this.processIntId=this.processInstId||this.formData.processId||this.formData.processInstId,e&&(this.request.get("/bladex/blade-workflow/tis/getTaskModelDetail",{params:{processInstId:this.processInstId}}).then(i=>{var s;if(i.code==200){this.ProcessInsObj={...this.ProcessInsObj,...i.data},this.taskObj.buttons=this.ProcessInsObj.button||[],this.trackList=(((s=i.data)==null?void 0:s.flow)||[]).filter(a=>["userTask","candidate"].includes(a.historyActivityType));const r=((this.ProcessInsObj.process||{}).variables||{}).deptId;this.deptId=r;const o=(this.ProcessInsObj.process||{}).taskId;this.absoluteTaskId=o,this.approvalData=(i.data||{}).flow||[],this.processXml=((i.data||{}).process||{}).xml||"",this.handleGetProcessStatus(),this.$emit("get-process-data",this.ProcessInsObj)}}),this.getCurrentProcess(),this.getUserInfo())},immediate:!0,deep:!0},restartData:{handler(e,t){e&&(this.restartDataS=e)},immediate:!0,deep:!0},selfBtn:{handler(e,t){e&&e.length&&(this.selfBtnList=e)},immediate:!0,deep:!0},uid:{handler(e,t){e&&(this.userIdData=e)},immediate:!0,deep:!0}},mounted(){},computed:{actionBtn(){return this.operBtn.length>3?this.operBtn.slice(3):[]},operBtn(){let e=[];const t=this.ProcessInsObj.process,i=this.ProcessInsObj.button;if(!t||!i)return e;if(this.getButton("wf_pass"),this.needResubmit&&t.status=="todo"&&this.userIdData&&t.isOwner&&["deleted"].includes(t.processIsFinished)&&this.getButton("wf_pass")){let r={};r.name="\u91CD\u65B0\u63D0\u4EA4",r.btnProps={type:"default"},e.push(r),r.click=o=>{this.handlePass("\u91CD\u65B0\u63D0\u4EA4"),this.submitLoading=!0,this.handleActionClose()}}if(!this.isView&&t.status=="todo"&&this.getButton("wf_pass")){let r={};r.name=this.getButton("wf_pass").name,r.btnProps={type:"primary"},e.push(r),r.click=o=>{this.handlePass(this.getButton("wf_pass").name),this.submitLoading=!0,this.handleActionClose()}}if(!this.isView&&t.status=="todo"&&this.getButton("wf_reject")){let r={};r.name=this.getButton("wf_reject").name,r.btnProps={type:"danger"},e.push(r),r.click=o=>{this.handleCancel(this.getButton("wf_reject").name),this.submitLoading=!0,this.handleActionClose()}}if(this.selfBtnList&&this.selfBtnList.length&&this.selfBtnList.map(r=>{let o={};o.name=r.name,o.btnProps={type:r.type},e.push(o),o.click=r.click}),["wf_edit"].map(r=>{if(!this.isView&&t.status=="todo"&&this.getButton(r)){let o={};o.name=this.getButton(r).name,o.btnProps={},o.key=o.name,o.click=()=>{this.$emit("clickCustomButton",o.name)},e.push(o)}}),!this.isView&&t.status=="todo"&&this.getButton("wf_rollback")){let r={};r.name=this.getButton("wf_rollback").name,r.btnProps={type:"danger"},e.push(r),r.click=o=>{this.handleRollbackTask(this.getButton("wf_rollback").name),this.handleActionClose()}}if(!this.isView&&t.status=="todo"&&this.getButton("wf_cctask")){let r={};r.name=this.getButton("wf_cctask").name,r.btnProps={type:"default"},r.click=async o=>{this.handleCirculate(this.getButton("wf_cctask").name),this.handleActionClose()},e.push(r)}if(!this.isView&&t.status=="todo"&&this.getButton("wf_delegate")){let r={};r.name=this.getButton("wf_delegate").name,r.btnProps={type:"warning"},r.key="cc2",r.click=()=>{this.handleUserSelect({type:"delegate",checkType:"radio",name:this.getButton("wf_delegate").name}),this.handleActionClose()},e.push(r)}if(!this.isView&&t.status=="todo"&&this.getButton("wf_terminate")){let r={};r.name=this.getButton("wf_terminate").name,r.btnProps={type:"danger"},r.key="cc3",r.click=()=>{this.handleTerminateProcess(),this.handleActionClose()},e.push(r)}if(!this.isView&&t.status=="todo"&&this.getButton("wf_transfer")){let r={};r.name=this.getButton("wf_transfer").name,r.btnProps={type:"default"},r.click=o=>{this.handleUserSelect({type:"transfer",checkType:"radio",name:this.getButton("wf_transfer").name}),this.handleActionClose()},e.push(r)}if(!this.isView&&t.isMultiInstance&&this.getButton("wf_add_instance")){let r={};r.name=this.getButton("wf_add_instance").name,r.btnProps={type:"primary"},r.click=o=>{this.handleUserSelect({type:"addInstance",checkType:"checkbox",name:this.getButton("wf_add_instance").name}),this.handleActionClose()},e.push(r)}if(t.pass==!1&&t.isOwner&&this.processIntId){let r={};r.name="\u50AC\u529E",r.btnProps={type:"default"},r.click=o=>{this.handleReminders("\u50AC\u529E"),this.handleActionClose()},e.push(r)}if(this.processIntId&&t.isOwner&&t.isReturnable&&!["deleted"].includes(t.processIsFinished)){let r={};r.name="\u64A4\u9500",r.btnProps={type:"default"},r.click=o=>{this.handleWithdrawTask("\u64A4\u9500"),this.handleActionClose()},e.push(r)}return e},processCardHeight(){let e=this.topNum+this.bottomNum-10;return this.isAdditional&&!this.operBtn&&!this.operBtn.length&&!this.ProcessInsObj.end&&(e-=this.bottomNum),this.hideHeader&&(e-=204),`calc(100vh - ${e}px)`},processBtn(){if(this.isAdditional&&!this.operBtn&&!this.operBtn.length&&!this.ProcessInsObj.end)return`-${this.bottomNum}px`}},methods:{async getCurrentProcess(){this.request.get("/bladex/blade-workflow/repository/queryTaskNodeList",{params:{processInstId:this.processIntId}}).then(e=>{if(e.code==200){const t={};if(t.currentProcessOriginData=e.data||[],t.currentProcessOriginData.length>0){let i=t.currentProcessOriginData[0],s=(i.currentName||"").split(","),r=(i.avatar||"").split(",");s=s.map((o,a)=>({realName:o,avatar:r[a]||"",phone:"",ancestorNames:[]})),t.currentMan=s,t.currentFirstNode=i,this.currentProcess=t}}else this.currentProcess={currentProcessOriginData:[],currentMan:[],currentFirstNode:{}}}).catch(e=>{console.error(e)})},getButton(e){const t=(this.ProcessInsObj.button||[]).find(i=>i.buttonKey==e);return t},handleActionBtn(e){switch(e.buttonKey){case"wf_pass":this.handleExamine(!0,["deleted"].includes(this.ProcessInsObj.process.processIsFinished)?"\u91CD\u65B0\u63D0\u4EA4":e.name);break;case"wf_reject":this.handleExamine(!1,e.name);break;case"wf_transfer":this.handleTransfer(e.name);break;case"wf_add_instance":this.handleAddInstance(e.name);break;case"wf_rollback":this.handleRollbackTask(e.name);break;case"wf_transfer":this.handleTransfer(e.name);break;case"wf_terminate":this.handleTerminateProcess(e.name);case"wf_cctask":this.handleCirculate(e.name);break}this.handleActionClose()},handleDraft(){this.submitLoading=!0},handleExamine(e,t){e?this.handlePass(t):this.handleCancel(t),this.submitLoading=!0},async handlePass(e){this.operationParam.nodeLoading=!0,this.before?this.before().then(()=>{this.showOperation(Ra,e)}):this.showOperation(Ra,e),this.deptId&&(await this.getNextNode(this.deptId),this.operationParam={...this.operationParam,nodeLoading:!1,incomingConditionItemList:this.incomingConditionItemList,nextNodeData:this.nextTaskNode})},handleCancel(e){this.showOperation(ob,e)},handleUserSelect({type:e,checkType:t,name:i}){e=="transfer"?this.handleTransfer(i):e=="addInstance"&&this.handleAddInstance(i)},async handleTransfer(e){this.deptId&&await this.getNextNode(this.deptId),this.showOperation(VA,e)},async handleAddInstance(e){this.deptId&&await this.getNextNode(this.deptId),this.showOperation(mA,e)},handlePrint(){},handleRollbackTask(e){this.showOperation(fb,e)},handleTerminateProcess(){},handleWithdrawTask(e){this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText="\u64A4\u9500",this.popupContext="\u786E\u5B9A\u64A4\u9500\u5417?",this.handleTipsType="\u64A4\u9500"},handleReminders(e){this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText="\u50AC\u529E",this.popupContext="\u786E\u5B9A\u50AC\u529E\u5417?",this.handleTipsType="\u50AC\u529E"},handleCirculate(e){this.showOperation(kb,e,this.request,this.taskObj.ccTaskButtonAnnex,"\u6284\u9001"),this.cctaskTopPopupTitle=e},async getNextNode(e){let t;try{t=await this.request.get("/bladex/blade-workflow/tis/simulation",{params:{taskId:this.absoluteTaskId,processInstId:this.processIntId}})}catch(s){console.error(s),t={}}let i=t.data||{};t.code==200&&!t.data.evaluation&&(this.incomingConditionItemList=[],i.branches=await this.getOutgoingProcessNode(this.absoluteTaskId,t.data.id)),i=await this.getSelectFixData(i,e),this.nextTaskNode=i,this.operationParam={...this.operationParam,nextNodeData:(this.nextTaskNode||{}).id?[this.nextTaskNode]:[]}},async getNodeUser({deptId:e,intersection:t,userIds:i,postIds:s,deptIds:r}){return await this.request.post("/auth/user/getTaskAuditor",{deptId:e,intersection:t,userIds:i,postIds:s,deptIds:r})},handleGetHeight(){this.$nextTick(()=>{setTimeout(()=>{let e=document.getElementById("process-header"),t=document.getElementById("process-footer");this.bottomNum=t?t.scrollHeight+10:70,this.topNum=e?e.scrollHeight+10:144},1e3)})},handleTestsss(e,t){},handleTestS(){this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success")},handleTest(){this.visibleSong=!0},async getUserInfo(){let e=await this.request.get("/app/user/info");e.code===200&&(this.user=e.data||{},this.userIdData=e.data.userId)},async handleGetSimulation(e){this.handleTips("",!0,"loading");let t={processInstId:this.processInstId,taskInstId:this.taskNode.length?this.taskNode[0].taskId:"",vars:e,errorTip:!1},i=await this.request.post("/aws/tis/simulation",t);if(i.success){this.handleTips("",!1,"success"),this.nextNodeData=i.data;for(let s=0;s<this.nextNodeData.length;s++)this.approveNode=this.nextNodeData[s]}else{let s=this.taskNode&&this.taskNode.length?this.taskNode[0].taskId:"";this.outGatewayUserTaskModel=await this.getOutgoingProcessNode(s,"")}},async getSelectFixData(e,t){let i=JSON.parse(JSON.stringify(e));if(i.nodeType!="userTask"&&Array.isArray(i.branches))for(let s=0;s<i.branches.length;s++){let r=i.branches[s],o=r.nodeInfoDTO?r.nodeInfoDTO:r;try{o=await this.getSelectFixData(o,t)}catch(a){}r.nodeInfoDTO?r.nodeInfoDTO=o:r=o,i.branches[s]=r}else if(i.nodeType=="userTask"&&!i.setPersonnel){let s=Sa(i),r;try{r=await this.getNodeUser({deptId:t,intersection:s.intersection?1:0,userIds:s.userIds,postIds:s.postIds,deptIds:s.deptIds}),r.code==$enum.apiCode.success}catch(o){}r.code==200&&(i.userList=r.data)}return i},async getOutgoingProcessNode(e,t){let i=await this.request.get("/bladex/blade-workflow/tis/getOutgoingProcessNode",{params:{taskId:e,processNodeId:t}});if(i.code==200){if(i.data&&i.data.length){for(let s=0;s<i.data.length;s++){let r=i.data[s];r.incomingConditionItemList&&r.incomingConditionItemList.length!==0&&(r.nodeInfoDTO.incomingConditionItemList=r.incomingConditionItemList,this.incomingConditionItemList.push(...r.incomingConditionItemList)),r.nodeInfoDTO.nodeType!="userTask"&&(r.nodeInfoDTO.branches=await this.getOutgoingProcessNode(e,r.nodeInfoDTO.id))}return this.handleTips("",!1,"success"),i.data}return this.handleTips("",!1,"success"),[]}return[]},handleGet(e){this.taskNode=[].concat(e),this.taskNodeShow=!1,this.actionShow=!1,this.handleGetProcessStatus(),this.handleGetUserTaskModel()},handleGetProcessStatus(){this.handleTips("",!0,"loading"),this.request.get("/bladex/blade-workflow/repository/findTaskTodoInfoByTaskId",{params:{taskId:this.absoluteTaskId||""}}).then(e=>{e.code==200&&(this.processStatus={...e.data||{},...e.data.vars?e.data.vars:{},bizStatusName:e.data.taskState,currUserName:e.data.currentName,allUserNames:e.data.currentName}),this.handleGetHeight(),this.handleTips("",!1,"success")}).catch(e=>{this.handleGetHeight()}).finally(()=>{})},handleGetUserTaskModel(){this.taskNode&&this.taskNode.length?this.request.get("/aws/repository/getUserTaskModel",{params:{taskId:this.taskNode[0].taskId}}).then(e=>{e.code==200&&(this.taskObj=e.data),this.handleGetHeight(),this.$refs.topTips.handleClose()}).catch(e=>{this.handleGetHeight(),this.$refs.topTips.handleClose()}):this.$refs.topTips.handleClose()},async showOperation(e,t,i,s,r){switch(this.beforeFunction&&(this.operationParam.beforeFunction=this.beforeFunction),this.operationParam.request=this.request,this.annexlabel=s||"fasdfsafdsa",this.titleText=t,this.operationCom=e,this.operationComKey=Date.now(),this.operationParam.selChildrenItems={},this.operationParam.annex=s||"fasdfsafdsa",this.operationParam.subjectId=this.formData.subjectId,this.operationParam.processInstId=this.processIntId,this.operationParam.taskInstId=(this.ProcessInsObj.process||{}).taskId||"",this.operationParam.variables=(this.ProcessInsObj.process||{}).variables||{},this.operationParam.extendedProperties=(this.ProcessInsObj.form||{}).extendedProperties||[],this.operationParam.actionName=t,this.operationParam.formData=this.formData,this.operationParam.ProcessInsObj=this.ProcessInsObj,this.operationParam.userInfo=this.user,this.nextTaskNode,this.operationParam.nextNodeData=(this.nextTaskNode||{}).id?[this.nextTaskNode]:[],this.operationParam.incomingConditionItemList=this.incomingConditionItemList,this.operationParam.outGatewayUserTaskModel=this.outGatewayUserTaskModel,this.operationParam.taskNode=this.taskNode,this.operationParam.appId=this.processStatus.appId,this.operationParam.endFunction=this.endFunction,this.operationParam.isDocument=this.isDocument,this.operationParam.isQuickReply=this.isQuickReply,this.operationParam.isMsg=this.isMsg,this.operationParam.isRequire=this.isRequire,this.operationParam.canCheck=this.canCheck,this.operationParam.isCheckType=this.isCheckType,this.operationParam.isOrgType=this.isOrgType,this.operationParam.isCodeType=this.isCodeType,r){case"\u6284\u9001":this.operationParam.visible=!0,this.cctaskTopPopup=!0;break;default:this.operationParam.visible=!0,this.TopPopup1=!0;break}},handleCancelPopup(){this.TopPopup1=!1,this.operationParam.visible=!1,this.submitLoading=!1},async handleComfig(){this.$refs.operationRef.confirm()},handleClosePopup1(){this.TopPopup1=!1,this.operationParam.visible=!1,this.submitLoading=!1},handleClosecctaskTopPopup(){this.cctaskTopPopup=!1,this.operationParam.visible=!1,this.submitLoading=!1},handleTipsComfig(){this.$refs.TopPopup2.handleCancel(),this.handleTipsType=="\u50AC\u529E"&&(this.handleTips("",!0,"loading"),this.request.get("/bladex/blade-workflow/tis/reminders",{params:{processInstId:this.processIntId}}).then(e=>{e.code==200?(this.handleTips("\u50AC\u529E\u6210\u529F",!0,"success"),window.top.postMessage("success","*"),this.endFunction("\u50AC\u529E")):this.handleTips(e.msg,!0,"error")})),this.handleTipsType=="\u64A4\u9500"&&(this.handleTips("",!0,"loading"),this.request.get("/bladex/blade-workflow/tis/withdrawTask",{params:{processInstId:this.processIntId}}).then(e=>{e.code==200?(this.handleTips("\u64A4\u9500\u6210\u529F",!0,"success"),window.top.postMessage("success","*"),this.endFunction("\u64A4\u9500")):(this.textTips=e.msg,this.typeTips="error",this.handleTips(e.msg,!0,"error"))}))},handleTipsCancel(){},getColor(e){return e=="\u5BA1\u6838\u4E2D"?"#FFA52D":e=="\u5DF2\u9A73\u56DE"?"#F14B4C":e=="\u5DF2\u64A4\u9500"?"#CECECE":e=="\u5DF2\u5B8C\u6210"?"#6DC743":"#1389FF"},handleActionOpen(){this.actionShow=!0},handleActionClose(){this.actionShow=!1},actionClick(e){this.titleText=e,this.actionShow=!1},getBtnStyle(e){switch(e){case"primary":return"background-color:#3c9cff;color:#fff";case"danger":return"background-color:rgb(255, 230, 230);color:rgb(255, 96, 96)";case"default":return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)";default:return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)"}},async handleRestart(){this.handleTips("",!0,"loading"),await this.request.post("/bladex/blade-workflow/repository/getProcessDefList",{appId:this.processStatus.appId}).then(e=>{this.processDefList=e.data,this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.formData.businessKey}}).then(t=>{this.processBusiness=t.data,this.request.get("/bladex/blade-workflow/repository/getAllProcessNode",{params:{processDefId:this.processBusiness.processDefId}}).then(i=>{this.getFirstProcessNode=i.data[0],this.operationParam.getFirstProcessNode=this.getFirstProcessNode,this.operationParam.formData=this.formData,this.handleTips("",!1,"success"),this.handleActionClose(),this.showOperation(void 0,"\u91CD\u65B0\u63D0\u4EA4",this.request)}).catch(i=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(t=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(e=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()}}}),RE="",Qb={class:"process-warp"},jb={key:0,class:"process-main",id:"process-header",ref:"processheader"},Ub={class:"process-ml-item border"},_b={class:"process-mli-value"},Gb={class:"process-ml-item border"},qb={class:"process-mli-value"},Jb={key:0,class:"process-ml-item"},Hb={class:"process-mli-value",style:{width:"50%","text-align":"right"}},zb={class:"process-mliv-jd"},Kb=["slot"],Wb={slot:"default",style:{height:"100%"}},Yb=["slot"],Zb={key:0,class:"footBtnRow"},Xb=["onClick"],$b={slot:"completeSlot"},eE=["onClick"],tE=["onClick"],iE={slot:"completeSlot"};function nE(e,t,i,s,r,o){const a=n.resolveComponent("TopTab"),l=n.resolveComponent("TopPopup"),c=n.resolveComponent("TopTips"),m=n.resolveComponent("TopSumbitPopup");return n.openBlock(),n.createElementBlock("div",null,[n.createElementVNode("div",Qb,[(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)&&!e.hideHeader?(n.openBlock(),n.createElementBlock("div",jb,[n.createElementVNode("div",Ub,[t[5]||(t[5]=n.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u72B6\u6001",-1)),n.createElementVNode("div",_b,[e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status?(n.openBlock(),n.createElementBlock("div",{key:0,class:"process-mliv-dd",style:n.normalizeStyle({background:e.getColor(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)})},n.toDisplayString(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status),5)):n.createCommentVNode("",!0)])]),n.createElementVNode("div",Gb,[t[6]||(t[6]=n.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u53D1\u8D77\u65F6\u95F4",-1)),n.createElementVNode("div",qb,[n.createElementVNode("span",null,n.toDisplayString(e.processStatus.createTime),1)])]),e.processStatus.allUserNames&&e.processStatus.allUserNames.length?(n.openBlock(),n.createElementBlock("div",Jb,[t[7]||(t[7]=n.createElementVNode("div",{class:"process-mli-name"},"\u5BA1\u6279\u8282\u70B9",-1)),n.createElementVNode("div",Hb,[n.createElementVNode("span",zb,n.toDisplayString(`${e.processStatus.taskState==4?e.processStatus.currUserName:e.processStatus.allUserNames.toString()}\u5BA1\u6279\u4E2D`),1)])])):n.createCommentVNode("",!0)],512)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"process-card",style:n.normalizeStyle({height:e.processCardHeight})},[n.createVNode(a,{ProcessInsObj:e.ProcessInsObj,processXml:e.processXml,approvalData:e.approvalData,tapList:e.tapList,selfTapList:e.selfTapList,processIntId:e.processIntId,track:e.trackUrl,taskComment:e.taskCommentList,trackList:e.trackList},{default:n.withCtx(()=>[e.selfTapList&&e.selfTapList.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.selfTapList,(u,p)=>(n.openBlock(),n.createElementBlock("div",{key:p,slot:u.slot,style:{height:"100%"}},[n.renderSlot(e.$slots,u.slot,{processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)],8,Kb))),128)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createElementVNode("div",Wb,[n.renderSlot(e.$slots,"default",{processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tapList,(u,p)=>(n.openBlock(),n.createElementBlock("div",{style:{height:"100%"},key:p,slot:u.slot},[n.renderSlot(e.$slots,u.slot,{processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)],8,Yb))),128))],64))]),_:3},8,["ProcessInsObj","processXml","approvalData","tapList","selfTapList","processIntId","track","taskComment","trackList"])],4),e.isView?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:1,class:"process-btn",id:"process-footer",style:n.normalizeStyle({bottom:e.processBtn})},[e.isAdditional?(n.openBlock(),n.createElementBlock("div",Zb,[n.renderSlot(e.$slots,"btn",{data:e.processStatus,processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[e.isDocument&&(e.formData.currentState=="\u7F16\u6587\u53F7\u5957\u7EA2"||e.formData.currentState=="\u76D6\u7AE0")?(n.openBlock(),n.createElementBlock("div",{key:0,class:"top-button",style:n.normalizeStyle(e.getBtnStyle("default"))}," \u8BF7\u53BBPC\u7AEF\u5904\u7406\u8BE5\u6D41\u7A0B ",4)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[e.formData.currentState!="\u5DF2\u5B8C\u6210"||e.processStatus.status!="\u5DF2\u5B8C\u6210"||e.processStatus.bizStatusName!="\u5DF2\u5B8C\u6210"?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.operBtn,(u,p)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[p<3?(n.openBlock(),n.createElementBlock("div",{class:"top-button",style:n.normalizeStyle(e.getBtnStyle((u.btnProps.type||"default").toString())),key:u.name,onClick:g=>u.click(u.name)},n.toDisplayString(u.name),13,Xb)):n.createCommentVNode("",!0)],64))),256)):n.createCommentVNode("",!0),e.operBtn.length>3&&e.actionBtn&&e.actionBtn.length?(n.openBlock(),n.createElementBlock("div",{key:1,class:"elips",onClick:t[0]||(t[0]=(...u)=>e.handleActionOpen&&e.handleActionOpen(...u))},t[8]||(t[8]=[n.createElementVNode("div",{class:"circle"},null,-1),n.createElementVNode("div",{class:"circle"},null,-1),n.createElementVNode("div",{class:"circle"},null,-1)]))):n.createCommentVNode("",!0)],64))],64))],4))]),n.createVNode(l,{ref:"TopPopup1",cancel:e.handleCancelPopup,comfig:e.handleComfig,titleText:e.titleText,visible:e.TopPopup1,"onUpdate:visible":t[1]||(t[1]=u=>e.TopPopup1=u),className:"toppopup-component"},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.operationCom),{key:e.operationComKey,ref:"operationRef",param:e.operationParam,onHandleClosePopup1:e.handleClosePopup1},{default:n.withCtx(()=>[n.createElementVNode("div",$b,[n.renderSlot(e.$slots,"completeSlot",{processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)])]),_:3},40,["param","onHandleClosePopup1"]))]),_:3},8,["cancel","comfig","titleText","visible"]),n.createVNode(l,{ref:"TopPopup2",titleText:e.titleText,isTips:!0,context:e.popupContext,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig},null,8,["titleText","context","cancel","comfig"]),n.createVNode(c,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),e.actionBtn&&e.actionBtn.length||e.taskNodeList&&e.taskNodeList.length?(n.openBlock(),n.createElementBlock("div",{key:0,class:"top-elips",style:n.normalizeStyle(e.actionShow?"transform: translateY(0)":"transform: translateY(100%)")},[e.taskNodeShow?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.taskNodeList,u=>(n.openBlock(),n.createElementBlock("div",{class:"top-elips-items",onClick:p=>e.handleGet(u),key:u.taskId},n.toDisplayString(u.name),9,eE))),128)):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(e.actionBtn,u=>(n.openBlock(),n.createElementBlock("div",{class:"top-elips-items",onClick:p=>u.click(u.name),key:u.name},n.toDisplayString(u.name),9,tE))),128)),n.createElementVNode("div",{class:"top-elips-items top-elips-items--cancel",onClick:t[2]||(t[2]=(...u)=>e.handleActionClose&&e.handleActionClose(...u))}," \u53D6\u6D88 ")],4)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"top-elips-mask",onClick:t[3]||(t[3]=(...u)=>e.handleActionClose&&e.handleActionClose(...u)),style:n.normalizeStyle(e.actionShow?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4),n.createVNode(m,n.mergeProps({visible:e.visibleSong,ref:"actionPop",request:e.request,appId:e.processStatus.appId,id:e.formData.businessKey,resubmit:!0},e.restartDataS,{onSuccessFn:e.endFunction,selfList:e.selfList,onChange:e.handleTestsss,isCheckType:e.isCheckType,isOrgType:e.isOrgType,isCodeType:e.isCodeType}),null,16,["visible","request","appId","id","onSuccessFn","selfList","onChange","isCheckType","isOrgType","isCodeType"]),n.createVNode(l,{ref:"cctaskTopPopup",titleText:e.cctaskTopPopupTitle,visible:e.cctaskTopPopup,"onUpdate:visible":t[4]||(t[4]=u=>e.cctaskTopPopup=u),isDrawer:!0},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.operationCom),{ref:"cctaskOperationRef",param:e.operationParam,onHandleClosecctaskTopPopup:e.handleClosecctaskTopPopup},{default:n.withCtx(()=>[n.createElementVNode("div",iE,[n.renderSlot(e.$slots,"completeSlot",{processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)])]),_:3},40,["param","onHandleClosecctaskTopPopup"]))]),_:3},8,["titleText","visible"])])}const sE=le(Fb,[["render",nE],["__scopeId","data-v-773f6eab"]]),La={name:"ddy-process-h5",version:"1.0.1-rc.3.3",description:"> app\u7AEF \u6D41\u7A0B\u63D2\u4EF6",main:"./ddy-process-h5.umd.cjs",style:"./style.css",type:"module",exports:{".":{import:"./ddy-process-h5.js",require:"./ddy-process-h5.umd.cjs"},"./style.css":{import:"./style.css",require:"./style.css"}},scripts:{test:'echo "Error: no test specified" && exit 1',postinstall:"node scripts/postinstall.mjs"},devDependencies:{"checked-pick-app":"1.6.7",dsbridge:"^3.1.4"},dependencies:{"checked-pick-app":"1.6.7",dsbridge:"^3.1.4"},author:"",license:"ISC"};console.info("%c\u26A1"+La.name+"%c v"+La.version,"background: linear-gradient(135deg, #ff3939ff, #ffbe5cff); color: white; padding: 9px 4px 9px 4px; border-radius: 3px 0 0 3px;font-size: 12px;","background: #5100ffff; color: white; padding: 9px 6px 9px 4px; border-radius: 0px 3px 3px 0px;font-size: 12px;"),Je.TopProcess=sE,Je.TopSumbitPopup=Oa,Je.ViewAttchList=zr,Je.attchViews=ti,Object.defineProperties(Je,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
13
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="`+c.width+'" height="'+c.height+'" viewBox="'+c.x+" "+c.y+" "+c.width+" "+c.height+'" version="1.1">'+l+a+"</svg>"}catch(s){i=s}if(this._emit("saveSVG.done",{error:i,svg:t}),i)throw i;return{svg:t}},ue.prototype._setDefinitions=function(e){this._definitions=e},ue.prototype.getModules=function(){return this._modules},ue.prototype.clear=function(){!this.getDefinitions()||gi.prototype.clear.call(this)},ue.prototype.destroy=function(){gi.prototype.destroy.call(this),pi(this._container)},ue.prototype.on=function(e,t,i,s){return this.get("eventBus").on(e,t,i,s)},ue.prototype.off=function(e,t){this.get("eventBus").off(e,t)},ue.prototype.attachTo=function(e){if(!e)throw new Error("parentNode required");this.detach(),e.get&&e.constructor.prototype.jquery&&(e=e.get(0)),typeof e=="string"&&(e=et(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},ue.prototype.getDefinitions=function(){return this._definitions},ue.prototype.detach=function(){const e=this._container,t=e.parentNode;!t||(this._emit("detach",{}),t.removeChild(e))},ue.prototype._init=function(e,t,i){const s=i.modules||this.getModules(i),r=i.additionalModules||[],o=[{bpmnjs:["value",this],moddle:["value",t]}],a=[].concat(o,s,r),l=q(Td(i,["additionalModules"]),{canvas:q({},i.canvas,{container:e}),modules:a});gi.call(this,l),i&&i.container&&this.attachTo(i.container)},ue.prototype._emit=function(e,t){return this.get("eventBus").fire(e,t)},ue.prototype._createContainer=function(e){const t=Ue('<div class="bjs-container"></div>');return Ee(t,{width:Na(e.width),height:Na(e.height),position:e.position}),t},ue.prototype._createModdle=function(e){const t=q({},this._moddleExtensions,e.moddleExtensions);return new Fm(t)},ue.prototype._modules=[];function Bn(e,t){return e.warnings=t,e}function $m(e){const i=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec(e.message);return i&&(e.message="unparsable content <"+i[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+i[2]),e}const ef={width:"100%",height:"100%",position:"relative"};function Na(e){return e+(Nt(e)?"px":"")}function tf(e,t){return t&&$e(e.diagrams,function(i){return i.id===t})||null}function nf(e){const i='<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" >'+ba+"</a>",s=Ue(i);Ee(et("svg",s),Ca),Ee(s,wa,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),e.appendChild(s),Jt.bind(s,"click",function(r){Zm(),r.preventDefault()})}function Ei(e){ue.call(this,e)}rt(Ei,ue),Ei.prototype._modules=[oh,bo,Ah,Vo,vh],Ei.prototype._moddleExtensions={};var sf=/^djs-cursor-.*$/;function Ta(e){var t=qt(document.body);t.removeMatching(sf),e&&t.add("djs-cursor-"+e)}function rf(){Ta(null)}var of=5e3;function af(e,t){t=t||"element.click";function i(){return!1}return e.once(t,of,i),function(){e.off(t,i)}}function Ia(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ba(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}var lf=15;function xa(e,t){var i;function s(l){return a(l.originalEvent)}e.on("canvas.focus.changed",function(l){l.focused?e.on("element.mousedown",500,s):e.off("element.mousedown",s)});function r(l){var c=i.start,m=i.button,u=Ba(l),p=Ia(u,c);if(!i.dragging&&cf(p)>lf&&(i.dragging=!0,m===0&&af(e),Ta("grab")),i.dragging){var y=i.last||i.start;p=Ia(u,y),t.scroll({dx:p.x,dy:p.y}),i.last=u}l.preventDefault()}function o(l){Jt.unbind(document,"mousemove",r),Jt.unbind(document,"mouseup",o),i=null,rf()}function a(l){if(!mo(l.target,".djs-draggable")){var c=l.button;if(!(c>=2||l.ctrlKey||l.shiftKey||l.altKey))return i={button:c,start:Ba(l)},Jt.bind(document,"mousemove",r),Jt.bind(document,"mouseup",o),!0}}this.isActive=function(){return!!i}}xa.$inject=["eventBus","canvas"];function cf(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}const Ls={__init__:["moveCanvas"],moveCanvas:["type",xa]};function Sa(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(Math.random()*1e9)+"-"}Sa.prototype.next=function(){return this._prefix+ ++this._counter};var df=new Sa("tt");function pf(e){var t=Ue('<div class="djs-tooltip-container" />');return Ee(t,{position:"absolute",width:"0",height:"0"}),e.insertBefore(t,e.firstChild),t}function hf(e,t,i){Ee(e,{left:t+"px",top:i+"px"})}function vs(e,t){e.style.display=t===!1?"none":""}var Da="djs-tooltip",Fs="."+Da;function Se(e,t){this._eventBus=e,this._canvas=t,this._ids=df,this._tooltipDefaults={show:{minZoom:.7,maxZoom:5}},this._tooltips={},this._tooltipRoot=pf(t.getContainer());var i=this;di.bind(this._tooltipRoot,Fs,"mousedown",function(s){s.stopPropagation()}),di.bind(this._tooltipRoot,Fs,"mouseover",function(s){i.trigger("mouseover",s)}),di.bind(this._tooltipRoot,Fs,"mouseout",function(s){i.trigger("mouseout",s)}),this._init()}Se.$inject=["eventBus","canvas"],Se.prototype.add=function(e){if(!e.position)throw new Error("must specifiy tooltip position");if(!e.html)throw new Error("must specifiy tooltip html");var t=this._ids.next();return e=q({},this._tooltipDefaults,e,{id:t}),this._addTooltip(e),e.timeout&&this.setTimeout(e),t},Se.prototype.trigger=function(e,t){var i=t.delegateTarget||t.target,s=this.get(ho(i,"data-tooltip-id"));!s||(e==="mouseover"&&s.timeout&&this.clearTimeout(s),e==="mouseout"&&s.timeout&&(s.timeout=1e3,this.setTimeout(s)))},Se.prototype.get=function(e){return typeof e!="string"&&(e=e.id),this._tooltips[e]},Se.prototype.clearTimeout=function(e){if(e=this.get(e),!!e){var t=e.removeTimer;t&&(clearTimeout(t),e.removeTimer=null)}},Se.prototype.setTimeout=function(e){if(e=this.get(e),!!e){this.clearTimeout(e);var t=this;e.removeTimer=setTimeout(function(){t.remove(e)},e.timeout)}},Se.prototype.remove=function(e){var t=this.get(e);t&&(pi(t.html),pi(t.htmlContainer),delete t.htmlContainer,delete this._tooltips[t.id])},Se.prototype.show=function(){vs(this._tooltipRoot)},Se.prototype.hide=function(){vs(this._tooltipRoot,!1)},Se.prototype._updateRoot=function(e){var t=e.scale||1,i=e.scale||1,s="matrix("+t+",0,0,"+i+","+-1*e.x*t+","+-1*e.y*i+")";this._tooltipRoot.style.transform=s,this._tooltipRoot.style["-ms-transform"]=s},Se.prototype._addTooltip=function(e){var t=e.id,i=e.html,s,r=this._tooltipRoot;i.get&&i.constructor.prototype.jquery&&(i=i.get(0)),Ze(i)&&(i=Ue(i)),s=Ue('<div data-tooltip-id="'+t+'" class="'+Da+'">'),Ee(s,{position:"absolute"}),s.appendChild(i),e.type&&qt(s).add("djs-tooltip-"+e.type),e.className&&qt(s).add(e.className),e.htmlContainer=s,r.appendChild(s),this._tooltips[t]=e,this._updateTooltip(e)},Se.prototype._updateTooltip=function(e){var t=e.position,i=e.htmlContainer;hf(i,t.x,t.y)},Se.prototype._updateTooltipVisibilty=function(e){R(this._tooltips,function(t){var i=t.show,s=t.htmlContainer,r=!0;i&&((i.minZoom>e.scale||i.maxZoom<e.scale)&&(r=!1),vs(s,r))})},Se.prototype._init=function(){var e=this;function t(i){e._updateRoot(i),e._updateTooltipVisibilty(i),e.show()}this._eventBus.on("canvas.viewbox.changing",function(i){e.hide()}),this._eventBus.on("canvas.viewbox.changed",function(i){t(i.viewbox)})};const Qs={__init__:["tooltips"],tooltips:["type",Se]},uf=e=>{var t=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[t.call(e)]},Us=e=>{var t=uf(e),i;if(t==="array")i=[];else if(t==="object")i={};else return e;if(t==="array")for(var s=0,r=e.length;s<r;s++)i.push(Us(e[s]));else if(t==="object")for(var o in e)i[o]=Us(e[o]);return i};function mf(e,t="YYYY-MM-DD HH:mm:ss"){const i=new Date(e),s=i.getFullYear(),r=i.getMonth()+1,o=i.getDate(),a=i.getHours(),l=i.getMinutes(),c=i.getSeconds(),m=i.getDay(),p={YYYY:s,MM:r,DD:o,HH:a,mm:l,ss:c,ww:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"][m]};for(let y in p)t=t.replace(y,p[y]);return t}function ff(e){e=Us(e);const t={};e.forEach(s=>{t[s.historyActivityId]?t[s.historyActivityId].push(s):t[s.historyActivityId]=[s]});for(let s in t){const r=t[s];if(r.length>1){const o=e.findLast(a=>a.historyActivityId==s);o.assigneeName=Array.from(new Set(r.map(a=>a.assigneeName))).join("/")}}const i=[];return e.forEach(s=>{let{assigneeName:r,createTime:o,endTime:a,comments:l}=s;/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&(o=o.replace(/-/g,"/"),a=a.replace(/-/g,"/"));const c={id:s.historyActivityId,class:!a&&s.historyActivityType!="candidate"?"nodePrimary":""};let m="";if(r||l&&l.length>0){if(m=`<span title='${r}'>${r}</span><br>`,o&&(m+=`<span title='${o}'>${mf(o,"YYYY-MM-DD HH:mm")}</span><br>`),l&&l.length>0){let p,{type:y,fullMessage:k}=l.find(C=>C.action=="AddComment")||{};y=="assigneeComment"&&(p="\u53D8\u66F4\u5BA1\u6838\u4EBA\uFF1A"+k,c.class="nodeWarn"),y=="dispatchComment"&&(p="\u8C03\u5EA6\uFF1A"+k,c.class="nodeWarn"),y=="transferComment"&&(p="\u8F6C\u529E\uFF1A"+k,c.class="nodeWarn"),y=="delegateComment"&&(p="\u59D4\u6258\uFF1A"+k,c.class="nodeWarn"),y=="rollbackComment"&&(p="\u6307\u5B9A\u56DE\u9000\uFF1A"+k,c.class="nodeError"),y=="terminateComment"&&(p="\u7EC8\u6B62\uFF1A"+k,c.class="nodeError"),(y=="addMultiInstanceComment"||(y||"").includes("\u52A0\u7B7E"))&&(p="\u52A0\u7B7E\uFF1A"+k,c.class="nodeWarn"),y=="deleteMultiInstanceComment"&&(p="\u51CF\u7B7E\uFF1A"+k,c.class="nodeError"),y=="withdrawComment"&&(p="\u64A4\u9500\uFF1A"+k,c.class="nodeWarn"),y=="deleteProcessComment"&&(p="\u5220\u9664\u6D41\u7A0B\uFF1A"+k,c.class="nodeError"),y=="cancelProcessComment"&&(p="\u62D2\u7EDD\uFF1A"+k,c.class="nodeError"),y=="comment"&&(p="\u5BA1\u6279\uFF1A"+k,c.class="nodeSuccess"),p&&(m+=`<span title='${p}'>${p}</span>`)}c.tooltip=m}s.historyActivityType=="sequenceFlow"?c.class="lineWarn":!c.class&&s.historyActivityType!="candidate"&&(c.class="nodeSuccess");const u=i.findIndex(p=>p.id==s.historyActivityId);u!=-1?i.splice(u,1,c):i.push(c)}),i}function Pa(e){const t=[],i=[],s=[];return e.routeTxt&&e.routeTxt.length>0&&e.routeTxt.forEach(r=>{r.type==="user"?t.push(...r.ids.filter(o=>o&&o.trim()!=="")):r.type==="post"?i.push(...r.ids):r.type==="dept"&&s.push(...r.ids)}),{intersection:e.assigneeRetain=="true"?1:0,userIds:[...new Set(t)],postIds:[...new Set(i)],deptIds:[...new Set(s)]}}const Db="",gf={name:"bpmn-look",props:{diagram:{type:String,default:"",required:!0},approvalData:{type:Array,default:()=>[]},isXml:{type:Boolean,default:!0}},data(){return{isAdd:!1,viewer:null,loading:!0}},mounted(){this.initViewer(),window.addEventListener("resize",this.canvasResize)},watch:{diagram:{async handler(e){let t=e;t&&this.isXml&&this.loadXml(t)},immediate:!0}},methods:{async getXml(e){let t={},i="";try{t=await api.repository.getXmlByProcessDefId({processDefId:e}),t.code==200&&(i=t.data)}catch(s){console.error(s)}return i},async initViewer(){this.viewer&&this.viewer.destroy();const e=Object.prototype.toString.call(Ei)=="[object Function]"?Ei:Ei.default,t=Object.prototype.toString.call(Qs)=="[object Object]"?Qs:Qs.default,i=Object.prototype.toString.call(Ls)=="[object Object]"?Ls:Ls.default;this.viewer=new e({container:this.$refs.container,additionalModules:[t,i]}),this.viewer.on("import.done",({error:s})=>{s||(this.canvasResize(),this.addApprovalData(),this.enableTouchMove())})},canvasResize(){this.viewer&&this.viewer.get("canvas").zoom(1,"auto")},enableTouchMove(){const e=this.viewer.get("canvas"),t=e._svg,i=document.querySelector(".viewport"),s=document.querySelector(".djs-tooltip-container");let r=!1,o,a,l=0,c=0,m=0,u=0;t.addEventListener("touchstart",p=>{r=!0;const y=p.touches[0];o=y.clientX,a=y.clientY;const k=i.getAttribute("transform").match(/matrix\(([^)]+)\)/)[1].split(/\s*,\s*|\s+/);l=parseFloat(k[4]),c=parseFloat(k[5]);const C=this.getTransformMatrix(s.style.transform);this.isAdd?(m=parseFloat(C[4]),u=parseFloat(C[5])):(m=parseFloat(C[4])+30,u=parseFloat(C[5])+16,this.isAdd=!0)}),t.addEventListener("touchmove",p=>{if(!r)return;const y=p.touches[0],k=y.clientX-o,C=y.clientY-a;c!==void 0&&(i.setAttribute("transform",`matrix(0.679276 0 0 0.679276 ${l+k} ${c+C})`),s.setAttribute("style",`position: absolute; width: 0px; height: 0px; transform: matrix(0.615, 0, 0, 0.615, ${m+k}, ${u+C});`)),e._cachedViewbox&&(e._cachedViewbox.x=k,e._cachedViewbox.y=C),p.preventDefault()}),t.addEventListener("touchend",()=>{r=!1})},getTransformMatrix(e){if(!e||e==="none")return[1,0,0,1,0,0];const t=e.match(/matrix(3d)?\(([^)]+)\)/i);if(!t)return null;const i=t[2].split(/\s*,\s*|\s+/).map(parseFloat);return t[1]!=="3d"&&i.length===6||t[1]==="3d"&&i.length===16?i:null},setNodeColor(e){const t=this.viewer.get("canvas"),i=this.viewer.get("elementRegistry"),s=this.viewer.get("tooltips");e.forEach(r=>{if(r.id&&r.class&&t.addMarker(r.id,r.class),r.id&&r.tooltip){const o=i.get(r.id);if(o){let{x:a,y:l,type:c}=o;["bpmn:StartEvent","bpmn:EndEvent"].includes(c)?(a=a-45,l=l+65):["bpmn:UserTask"].includes(c)&&(a=a-10,l=l+90),s.add({position:{x:a,y:l},html:r.tooltip})}}})},addApprovalData(){if(!this.approvalData||this.approvalData.length==0)return;const e=ff(this.approvalData);e&&e.length>0&&this.setNodeColor(e)},async loadXml(e){this.viewer||await this.initViewer();try{const{warnings:t}=await this.viewer.importXML(e);t.length&&this.$emit("warning",t)}catch(t){this.$emit("error",{message:"XML \u52A0\u8F7D\u5931\u8D25",detail:t.message}),console.error("XML \u52A0\u8F7D\u5931\u8D25:",t)}}},beforeDestroy(){window.removeEventListener("resize",this.canvasResize),this.viewer&&this.viewer.destroy()}},yf={ref:"container",class:"bpmn-look"};function Af(e,t,i,s,r,o){return n.openBlock(),n.createElementBlock("div",yf,null,512)}const Ma=ae(gf,[["render",Af],["__scopeId","data-v-d82ec3c3"]]),kf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAByFJREFUeF7t19HJLEUUhdHpQEzEOMREjOMmIsZhIgYyou8KvTecA1Xrgm+zLXrV/9H08/GPAIH/FHjYECDw3wIC8ddB4H8EBOLPg4BA/A0QyAS8QTI3q0sEBHLJRXvMTEAgmZvVJQICueSiPWYmIJDMzeoSAYFcctEeMxMQSOZmdYmAQC65aI+ZCQgkc7O6REAgl1y0x8wEBJK5WV0iIJBLLtpjZgICydysLhEQyCUX7TEzAYFkblaXCAjkkov2mJmAQDI3q0sEBHLJRXvMTEAgmZvVJQICueSiPWYmIJDMrVp9v9+fP5/PHy//J788z/Pny42flwICKQGTu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b7i+MIDklaS/QGMhYRwrDj5ejAnIAtZUtUr7FNsAxJ3mYi8YkA7NulcAQKyLoHps85v3+SU63cAzl/ly7idz5dwwycgm6RcVY8A8FQARwK4DcAvROTWcDMkeMAEJPgEYPjLFSAgnCFUYIkCBITTgwoQEM4BKuBTgCuITzdaBVGAgARJNMP0KUBAfLrRKogCBCRIohmmTwEC4tONVkEUICBBEs0wfQoQEJ9utAqiAAEJkmiG6VOAgPh0o1UQBQhIkEQzTJ8CBMSnG62CKEBAgiSaYfoUICA+3WgVRAECEiTRDNOnAAHx6UarIAoQkCCJZpg+BQiITzdaBVGAgARJNMP0KUBAfLrRKogCBCRIohmmTwEC4tONVkEUICBBEs0wfQoQEJ9utAqiAAEJkmiG6VOAgPh0o1UQBQhIkEQzTJ8CBMSnG62CKEBAgiSaYfoUICA+3WgVRAECEiTRDNOnAAHx6UarIAoQkCCJZpg+BQiITzdaBVGAgARJNMP0KUBAfLrRKogCBCRIohmmTwEC4tONVkEUICBBEs0wfQoQEJ9utAqiAAEJkmiG6VPgf/UDKvbyCmTdAAAAAElFTkSuQmCC",bf=We({name:"TopTips",props:{text:{default:"",type:String},type:{default:"default",type:String},statusTips:{default:!1,type:Boolean},domNode:{default:"",type:String},visible:{default:!1,type:Boolean}},data(){return{show:!1,status:"",timeOut:null}},computed:{error(){return kf},loading(){return Ef},success(){return js}},watch:{type:{handler(e,t){if(e=="loading"){clearInterval(this.timeOut);return}else this.timeOut=setTimeout(()=>{this.show=!1},1500)},immediate:!0,deep:!0}},mounted(){this.$nextTick(()=>{const e=document.getElementsByClassName("process-warp")[0]?document.getElementsByClassName("process-warp")[0]:document.getElementsByClassName("sumbmitPopup-index-sumbit")[0].getElementsByClassName("top-popup")[0];e.append?e.append(this.$el):e.appendChild(this.$el)})},methods:{handleOpen(){this.show||(this.show=!0,this.type=="loading"?clearInterval(this.timeOut):this.timeOut=setTimeout(()=>{this.show=!1},1500))},handleClose(){this.show=!1}}}),Pb="",Cf={key:0},wf={key:0,class:"top-tipss-text"},Nf={class:"top-tipss-status"},Tf={key:0,class:"top-tipss-loadinig"},If=["src"],Bf={key:0,class:"top-tipss-status-text"},xf={key:1,class:"top-tipss-success"},Sf=["src"],Df={key:0,class:"top-tipss-status-text"},Pf={key:2,class:"top-tipss-error"},Mf=["src"],Of={key:0,class:"top-tipss-status-text"};function Vf(e,t,i,s,r,o){return e.show?(n.openBlock(),n.createElementBlock("div",Cf,[e.statusTips?(n.openBlock(),n.createElementBlock("div",{key:1,class:"top-tipss",style:n.normalizeStyle(e.show?"visibility: visible; opacity: 1;":"visibility: hidden; opacity: 0;")},[n.createElementVNode("div",Nf,[e.type=="loading"?(n.openBlock(),n.createElementBlock("div",Tf,[n.createElementVNode("img",{src:e.loading},null,8,If),e.text?(n.openBlock(),n.createElementBlock("div",Bf,n.toDisplayString(e.text),1)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),e.type=="success"?(n.openBlock(),n.createElementBlock("div",xf,[n.createElementVNode("img",{src:e.success},null,8,Sf),e.text?(n.openBlock(),n.createElementBlock("div",Df,n.toDisplayString(e.text),1)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),e.type=="error"?(n.openBlock(),n.createElementBlock("div",Pf,[n.createElementVNode("img",{src:e.error},null,8,Mf),e.text?(n.openBlock(),n.createElementBlock("div",Of,n.toDisplayString(e.text),1)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0)])],4)):(n.openBlock(),n.createElementBlock("div",{key:0,class:"top-tipss",style:n.normalizeStyle(e.show?"visibility: visible; opacity: 1;":"visibility: hidden; opacity: 0;")},[e.text?(n.openBlock(),n.createElementBlock("div",wf,n.toDisplayString(e.text),1)):n.createCommentVNode("",!0)],4)),n.createElementVNode("div",{class:"top-tipss-mask",style:n.normalizeStyle(e.show&&e.statusTips?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4)])):n.createCommentVNode("",!0)}const tt=ae(bf,[["render",Vf],["__scopeId","data-v-239e459d"]]),Rf="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DlpULSlWRaPrQwM9zCvetuUE1thXLbYEPnkqNtUa/hFOC04qLevBT1jkWddeDeUdQrJQYSY//pK76otyKLKcsQRGlRLzwQah7a/aLeYih3UBYusbC/qPJViJPGwL5JWbgUqHwSQzJKJDfpvQ3wP0vgP1/1P0sJQ2Qwxu6psvDi1RVZ266xgOZqBecneTkFrVAlGYLepaijhn5KjQXed+cq21wgNhYbSmMB39Tg7sBwy55rLJDKpKJWOJU32eE6wwUaztCafaQ1xZai1hQHp60p+vmEpsEV3dyaYiO8Ka0p1vrcpFfba01h+Mi1pihwV+N1SWuKnWyZs/PWS9vmJopTrOJ4kUsiwIVRzQXXx8M1Nxlfg9rfNzdRkhg6oKcvt5QjS1WPpLlJOzX2aS28a27S7GvLJL1m1SaQhMvFddg312AXrvHNTcqkuUkGLYyR5ibW8or6RJubtN1uxe1xZtn+seF0FOcpGKIUpZJkKvaIa48T+8QGSac7fHBRe5zeSbmltMfp2aY9zqYk9C3tcdYXtcf50KftSU6TyLii9jixtWyx8AGWeYHm/nVTVNJHyOqdaWhSvNSdZ1B7UjfpqtKnB/2N4UQUVwFjlEoaLFmMa7CknH2iXEcp7d633r+zBkvSXCl5SaWQdSFxabCkXJcXAUbUgTRYulVrfvPpN1hKQWqnRVfVTFupDOMIOSwwTLAwWmnGttuiqyhVRhb9sRZdRY9OmNJeiy5reFvBklhadEW8ZDWLGqapxq3G307Km/aeffcwyPcWChB1mjR5GzHH5ta1MjCMGI5mnIGRGgYFmr4KpHawp1JJkzd/5tm+yVsyY2uRcu1N0vYsNqwzsELDUgyLopB3++ZYuWyvbPLW0XbrpE1gFg5DUYFvC3iQy+U0rp3XMKUZ6hSmL9Nejnb5nfK315A2gZaNeXjpk2wT+P9KELohNtx5+AAAAABJRU5ErkJggg==",Lf=We({name:"attchViews",components:{TopTips:tt,PreviewImage:sn,PreView:Fr,TopPopup:Fe},props:{request:{type:Function,defalut:()=>{}},limit:{type:[Number,String],default:4},changeFn:{type:Function,default:null},requires:{default:!1},inComing:{type:Array,defalut:()=>[]},deletFn:{type:Function},onlyShow:{type:Boolean,default:!1},linkUrl:{type:Function,defalut:null}},data(){return{lists:[],filesArr:[],imgIcon:["jpg","jpeg","png","gif"],docIcon:["doc","docx"],xlsIcon:["xls","xlsx"],zipIcon:["zip","rar","7z"],extension:["bmp","gif","jpg","jpeg","png","doc","docx","xls","xlsx","ppt","pptx","html","htm","txt","wps","rar","zip","gz","bz2","mp4","avi","rmvb","pdf"],current:"",buttonLoading:!1,handleCloseType:!0,uploadState:!0,textTips:"",statusTips:!1,typeTips:"success",visible:!1,indexd:0,visibleS:!1,fileUrl:""}},watch:{inComing:{handler(e,t){e&&(this.filesArr=[].concat(e),this.emitView())},immediate:!0,deep:!0}},computed:{haveCount(){return this.limit==-1?100:this.limit-this.filesArr.length},addFile(){return Rf},del(){return Qr},doc(){return Ur},file(){return jr},image(){return Gr},pdf(){return _r},xls(){return qr},zip(){return Jr}},mounted(){this.$nextTick(()=>{let e=document.createElement("input");e.type="file",e.className="upload-input",e.style="opacity: 0;position: absolute;width:100%;height:100%;visibility: hidden;",e.multiple=!0,e.id="fileUp",e.addEventListener("change",this.handleSelect),document.getElementById("inputfile").appendChild(e)})},methods:{handleClick(){if(typeof nativeMethod<"u"&&nativeMethod.vueSelectFile&&nativeMethod.vueSelectFile(2,"*",this.limit||1),this.haveCount<=0){this.handleTips(`\u6700\u591A\u4E0A\u4F20${this.limit}\u4E2A\u6587\u4EF6`,!1,"success");return}document.getElementById("fileUp").click()},async handleSelect(e,t){this.handleTips("\u4E0A\u4F20\u4E2D",!0,"loading");const i=Array.from(e.target.files);document.getElementById("fileUp").value="";let s=0,r=this.haveCount>i.length?i.length:this.haveCount;try{for(let o=0;o<r;o++)if(this.extension.includes(i[o].name.substring(i[o].name.lastIndexOf(".")+1))){const a=new FormData;a.append("file",i[o]);const l=await this.request.post("/file/upload",a,{headers:{"Content-Type":"multipart/form-data"}});if(l.code===200){if(this.filesArr.length>0){for(let c=0;c<this.filesArr.length;c++)if(l.name==this.filesArr[c].name&&s++,this.filesArr[c].name.includes(`(${s})`)&&s++,s>0){let m=l.name.lastIndexOf(".");l.name=`${l.name.substring(0,m)} (${s}) .${l.name.substring(l.name.lastIndexOf(".")+1)}`}}this.filesArr.push(l.data)}else{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.viewImage();return}}else{this.handleTips(`\u6587\u4EF6${i[o].name}\u683C\u5F0F\u9519\u8BEF,\u8BF7\u91CD\u65B0\u4E0A\u4F20`,!0,"error");return}this.handleTips("\u4E0A\u4F20\u6210\u529F",!0,"success"),this.viewImage(),this.emitView()}catch{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.emitView()}},handleDel(e,t){if(this.deletFn){if(this.deletFn(t)===!1){this.handleTips("\u5220\u9664\u5931\u8D25",!0,"error");return}this.filesArr.splice(e,1),this.emitView()}else this.filesArr.splice(e,1),this.emitView()},viewFile(e,t){this.imgIcon.includes(e.name.substring(e.name.lastIndexOf(".")+1).toLowerCase())?(this.indexd=this.lists.indexOf(e.url),this.visible=!0):e.url&&(this.fileUrl=e.url,this.visibleS=!0)},viewImage(){this.lists=[];let e=[];this.filesArr.map((t,i)=>{this.imgIcon.includes(t.name.substring(t.name.lastIndexOf(".")+1).toLowerCase())}),e=this.filesArr.filter(t=>this.imgIcon.includes(t.name.substring(t.name.lastIndexOf(".")+1).toLowerCase())),e.forEach((t,i)=>{this.lists.push(t.url)})},emitView(){this.$emit("getValue",this.filesArr)},clearData(){this.filesArr=[]},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()}}}),Mb="",vf={class:"attch-upload"},Ff={key:0,class:"attch-upload-mask"},Qf={class:"attch-upload-body"},Uf={class:"upload-header"},jf={class:"upload-header-title"},Gf={key:0,class:"upload-header-title--re"},_f={class:"upload-header-upload"},qf=["src"],Jf={class:"upload-body"},zf={key:0,class:"upload-list"},Kf={class:"list-items-icon"},Hf=["src"],Yf=["src"],Wf=["src"],Xf=["src"],Zf=["src"],$f=["src"],eg={class:"list-items-info"},tg={class:"info-name"},ig={class:"info-attribute"},ng={class:"info-attribute-size"},sg=["onClick"],rg={key:0,class:"list-items-operation"},og=["onClick"],ag=["src"];function lg(e,t,i,s,r,o){const a=n.resolveComponent("TopTips"),l=n.resolveComponent("PreviewImage"),c=n.resolveComponent("PreView"),m=n.resolveComponent("TopPopup");return n.openBlock(),n.createElementBlock("div",vf,[e.buttonLoading?(n.openBlock(),n.createElementBlock("div",Ff)):n.createCommentVNode("",!0),n.createElementVNode("div",Qf,[n.createElementVNode("div",Uf,[n.createElementVNode("div",jf,[t[3]||(t[3]=n.createTextVNode(" \u9644\u4EF6 ",-1)),e.requires?(n.openBlock(),n.createElementBlock("span",Gf,"*")):n.createCommentVNode("",!0)]),n.createElementVNode("div",_f,[e.onlyShow?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:"upload-header-upload--item",id:"inputfile",onClick:t[0]||(t[0]=(...u)=>e.handleClick&&e.handleClick(...u))},[n.createElementVNode("img",{src:e.addFile},null,8,qf),t[4]||(t[4]=n.createTextVNode("\u4E0A\u4F20\u9644\u4EF6 ",-1))]))])]),n.createElementVNode("div",Jf,[e.filesArr.length>0?(n.openBlock(),n.createElementBlock("div",zf,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.filesArr,(u,p)=>(n.openBlock(),n.createElementBlock("div",{class:"list-items",key:u.uuid},[n.createElementVNode("div",Kf,[e.xlsIcon.includes(u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase())?(n.openBlock(),n.createElementBlock("img",{key:0,class:"icon-img",src:e.xls},null,8,Hf)):e.imgIcon.includes(u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase())?(n.openBlock(),n.createElementBlock("img",{key:1,class:"icon-img",src:e.image},null,8,Yf)):u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase()=="pdf"?(n.openBlock(),n.createElementBlock("img",{key:2,class:"icon-img",src:e.pdf},null,8,Wf)):e.docIcon.includes(u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase())?(n.openBlock(),n.createElementBlock("img",{key:3,class:"icon-img",src:e.doc},null,8,Xf)):e.zipIcon.includes(u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase())?(n.openBlock(),n.createElementBlock("img",{key:4,class:"icon-img",src:e.zip},null,8,Zf)):(n.openBlock(),n.createElementBlock("img",{key:5,class:"icon-img",src:e.file},null,8,$f))]),n.createElementVNode("div",eg,[n.createElementVNode("div",tg,n.toDisplayString(u.name),1),n.createElementVNode("div",ig,[n.createElementVNode("span",ng,n.toDisplayString(u.fileSize<1024?u.fileSize:u.fileSize/1024>1024?parseFloat((u.fileSize/1024/1024).toFixed(2)):parseFloat((u.fileSize/1024).toFixed(2)))+n.toDisplayString(u.fileSize<1024?"b":parseFloat((u.fileSize/1024).toFixed(2))<1024?"kb":"M"),1),n.createElementVNode("span",{class:"info-attribute-views",onClick:y=>e.viewFile(u,p)}," \u9884\u89C8 ",8,sg)])]),e.onlyShow?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",rg,[n.createElementVNode("div",{onClick:y=>e.handleDel(p,u),class:"list-items-operation-img"},[n.createElementVNode("img",{src:e.del},null,8,ag)],8,og)]))]))),128))])):n.createCommentVNode("",!0)])]),n.createVNode(a,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),n.createVNode(l,{images:e.lists,visible:e.visible,"onUpdate:visible":t[1]||(t[1]=u=>e.visible=u),indexd:e.indexd},null,8,["images","visible","indexd"]),n.createVNode(m,{visible:e.visibleS,"onUpdate:visible":t[2]||(t[2]=u=>e.visibleS=u),ref:"TopPopup",titleText:"\u9644\u4EF6\u9884\u89C8",isDrawer:"",isIndex:99},{default:n.withCtx(()=>[e.visibleS?(n.openBlock(),n.createBlock(c,{key:0,file:e.fileUrl},null,8,["file"])):n.createCommentVNode("",!0)]),_:1},8,["visible"])])}const $t=ae(Lf,[["render",lg],["__scopeId","data-v-69217b12"]]),Ob="",cg={name:"nf-flow",components:{attchViews:$t},props:{request:{type:Object,default:()=>{}},flowList:{type:Array,default:()=>[]}},data(){return{isFlag:!1,toggleText:"\u5C55\u5F00",commentMap:{assigneeComment:"\u53D8\u66F4\u5BA1\u6838\u4EBA",dispatchComment:"\u8C03\u5EA6",transferComment:"\u8F6C\u529E",delegateComment:"\u59D4\u6258",rollbackComment:"\u9A73\u56DE\u610F\u89C1",terminateComment:"\u7EC8\u6B62\u610F\u89C1",addMultiInstanceComment:"\u52A0\u7B7E",deleteMultiInstanceComment:"\u51CF\u7B7E",withdrawComment:"\u64A4\u9500",recallComment:"\u64A4\u56DE",deleteProcessComment:"\u5220\u9664\u6D41\u7A0B",skipComment:"\u8DF3\u8FC7",comment:"\u5BA1\u6279\u610F\u89C1"}}},methods:{handleClick(){this.isFlag=!this.isFlag,this.toggleText=this.isFlag?"\u6536\u8D77":"\u5C55\u5F00"}}},dg={type:"flex"},pg=["timestamp"],hg={class:"flow-name"},ug={class:"flow-node"},mg={key:0},fg={key:0},gg={key:1},yg={key:3,style:{color:"gray","font-size":"12px"}},Ag={key:0},kg={key:1},Eg={key:2,style:{color:"gray","font-size":"12px"}},bg={key:2},Cg={class:"p-file"},wg=["onClick"],Ng=["onClick"];function Tg(e,t,i,s,r,o){return n.openBlock(),n.createElementBlock("div",dg,[n.createElementVNode("div",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.flowList,(a,l)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[["candidate","sequenceFlow"].includes(a.historyActivityType)?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:a.id,timestamp:a.endTime||a.createTime,placement:"top",class:"flow-item"},[n.createElementVNode("p",null,[n.createElementVNode("span",hg,n.toDisplayString(a.assigneeName),1),n.createTextVNode(" \u5728 ["+n.toDisplayString(a.createTime)+"] \u5F00\u59CB\u5904\u7406 ",1),n.createElementVNode("span",ug,"["+n.toDisplayString(a.historyActivityType=="endEvent"?"\u7ED3\u675F":a.historyActivityName||"\u672A\u547D\u540D")+"]",1),t[1]||(t[1]=n.createTextVNode(" \u73AF\u8282 ",-1))]),a.historyActivityDurationTime?(n.openBlock(),n.createElementBlock("p",mg," \u4EFB\u52A1\u5386\u65F6 ["+n.toDisplayString(a.historyActivityDurationTime)+"] ",1)):n.createCommentVNode("",!0),a.comments&&a.comments.length>0?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(a.comments.filter(c=>c.action==="AddComment"),(c,m)=>(n.openBlock(),n.createElementBlock("p",{key:m},[m<1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[r.commentMap[c.type]?(n.openBlock(),n.createElementBlock("span",fg,n.toDisplayString(r.commentMap[c.type])+": ["+n.toDisplayString(c.fullMessage)+"] ",1)):c.fullMessage?(n.openBlock(),n.createElementBlock("span",gg,n.toDisplayString(c.type)+": ["+n.toDisplayString(c.fullMessage)+"] ",1)):n.createCommentVNode("",!0),a.comments.filter(u=>u.action==="AddComment").length>1?(n.openBlock(),n.createElementBlock("span",{key:2,style:{color:"#1989fa",float:"right"},onClick:t[0]||(t[0]=(...u)=>o.handleClick&&o.handleClick(...u))},[n.createTextVNode(n.toDisplayString(r.toggleText)+" ",1),n.createElementVNode("i",{class:n.normalizeClass([r.isFlag?"arrow-up":"arrow-down"])},null,2)])):n.createCommentVNode("",!0),c.time&&r.isFlag?(n.openBlock(),n.createElementBlock("p",yg,n.toDisplayString(c.time),1)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0),m>0&&r.isFlag?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[r.commentMap[c.type]?(n.openBlock(),n.createElementBlock("span",Ag,n.toDisplayString(r.commentMap[c.type])+": ["+n.toDisplayString(c.fullMessage)+"] ",1)):c.fullMessage?(n.openBlock(),n.createElementBlock("span",kg,n.toDisplayString(c.type)+": ["+n.toDisplayString(c.fullMessage)+"] ",1)):n.createCommentVNode("",!0),c.time?(n.openBlock(),n.createElementBlock("p",Eg,n.toDisplayString(c.time),1)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0)]))),128)):n.createCommentVNode("",!0),a.endTime?(n.openBlock(),n.createElementBlock("p",bg,"\u7ED3\u675F\u65F6\u95F4: ["+n.toDisplayString(a.endTime)+"]",1)):n.createCommentVNode("",!0),n.createElementVNode("div",Cg,[a.attachmentsFujian&&a.attachmentsFujian.length>0?(n.openBlock(),n.createElementBlock("div",{key:0,onClick:c=>e.$emit("view",a.attachmentsFujian)}," \u67E5\u770B\u9644\u4EF6",8,wg)):n.createCommentVNode("",!0),a.attachmentsQianzi&&a.attachmentsQianzi.length>0?(n.openBlock(),n.createElementBlock("div",{key:1,onClick:c=>e.$emit("view",a.attachmentsQianzi)}," \u67E5\u770B\u7B7E\u5B57",8,Ng)):n.createCommentVNode("",!0)])],8,pg))],64))),256))])])}const Ig=We({name:"TopTab",components:{processFlow:ae(cg,[["render",Tg],["__scopeId","data-v-d53305d8"]]),BpmnLook:Ma,TopPopup:Fe,ViewAttchList:zr,PreviewImage:sn},props:{ProcessInsObj:{type:Object,default:()=>({})},processXml:{type:String,default:""},approvalData:{type:Array,default:()=>[]},tapList:{type:Array,default:()=>[]},selfTapList:{type:Array,default:()=>[]},track:{type:String,default:""},taskComment:{type:Array,default:()=>[]},trackList:{type:Array,default:()=>[]}},data(){return{trackUrl:"",taskCommentList:[],active:"",defaultTabList:[{label:"\u57FA\u672C\u4FE1\u606F",key:"a",type:"default",slot:"default"},{label:"\u6D41\u7A0B\u56FE",key:"b",type:"default",slot:"b"},{label:"\u5BA1\u6279\u8BB0\u5F55",key:"c",type:"default",slot:"c"}],isTapList:[{label:"\u57FA\u672C\u4FE1\u606F",key:"a",type:"default",slot:"default"},{label:"\u6D41\u7A0B\u56FE",key:"b",type:"default",slot:"b"},{label:"\u5BA1\u6279\u8BB0\u5F55",key:"c",type:"default",slot:"c"}],label:document.getElementsByClassName("tops-tab-header-items"),visible:!1,inList:[],visibleTack:!1,trackListss:[],signPreViewVisible:!1,signLists:[],indexd:0}},watch:{tapList:{handler(e,t){this.selfTapList.length||(this.isTapList=[].concat(this.defaultTabList),e.length>0&&e.forEach((i,s)=>{i.sort&&i.sort>1?this.isTapList.splice(i.sort-1,0,i):i.sort==1?this.isTapList.unshift(i):this.isTapList.push(i)}),this.active=this.isTapList[0].key)},immediate:!0,deep:!0},selfTapList:{handler(e,t){e.length&&(this.isTapList=[].concat(e),this.active=this.isTapList[0].key)},immediate:!0,deep:!0},track:{handler(e,t){e&&(this.trackUrl=e,window.location.protocol=="https:"&&(this.trackUrl=this.trackUrl.replace("http://59.53.91.230:8088/","https://kq.ddzg.cn:8093/"),this.trackUrl=this.trackUrl.replace("http://59.53.91.231:8088/","https://acme-test.ddzg.cn:2119/"),this.trackUrl=this.trackUrl.replace("http://121.40.143.183:80/","https://acme-aws.ddzg.cn/"),this.trackUrl=this.trackUrl.replace("http://121.40.143.183/","https://acme-aws.ddzg.cn/"),this.trackUrl=this.trackUrl.replace("http://acme-aws.ddzg.cn/","https://acme-aws.ddzg.cn/")))},immediate:!0,deep:!0},taskComment:{handler(e,t){e&&(this.taskCommentList=e)},immediate:!0,deep:!0},trackList:{handler(e,t){e&&(this.trackListss=e)},immediate:!0,deep:!0}},mounted(){this.tabAnimation(0)},methods:{formatFlow(e){let t=(e||[]).map(i=>({...i,attachmentsFujian:(i.attachments||[]).filter(s=>s.type!="signature"),attachmentsQianzi:(i.attachments||[]).filter(s=>s.type=="signature")}));return t=t.reverse(),t},handleActive(e,t){e!==this.active&&(this.active=e,this.tabAnimation(t))},tabAnimation(e){if(this.label.length){let t=document.getElementsByClassName("bottom-line")[0],i;if(t.offsetWidth<this.label[e].offsetWidth-10){let s=(this.label[e].offsetWidth-t.offsetWidth-10)/2;i=`${this.label[e].offsetLeft+s}px`}else if(t.offsetWidth>this.label[e].offsetWidth-10){let s=(t.offsetWidth-this.label[e].offsetWidth+10)/2;i=`${this.label[e].offsetLeft-s}px`}else i=`${this.label[e].offsetLeft}px`;t.style.transition=".3s",t.style.transform=`translateX(${i})`}},viewList(e){this.visible=!0,this.inList=e},viewSign(e,t){this.signLists=e.filter(i=>i.digitalSignature).map(i=>i.digitalSignature),this.indexd=this.signLists.findIndex(i=>i==t),this.signPreViewVisible=!0}}}),Rb="",Bg={class:"tops-tab"},xg={class:"tops-tab-header"},Sg=["onClick"],Dg={key:0,class:"bottom-line"},Pg={class:"tops-tab-body"},Mg=["name"],Og={key:2,class:"textnone"},Vg={key:2,style:{height:"100%"}},Rg={key:1,class:"textnone"},Lg={class:"seal-list__item--option"},vg={style:{"max-width":"100px"}},Fg={class:"seal-list__item--option"},Qg={style:{"max-width":"100px"}},Ug={class:"seal-list__item--option"},jg={style:{"max-width":"100px"}};function Gg(e,t,i,s,r,o){const a=n.resolveComponent("BpmnLook"),l=n.resolveComponent("processFlow"),c=n.resolveComponent("ViewAttchList"),m=n.resolveComponent("TopPopup"),u=n.resolveComponent("PreviewImage");return n.openBlock(),n.createElementBlock("div",Bg,[n.createElementVNode("div",xg,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.isTapList,(p,y)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["tops-tab-header-items",[p.key===e.active?"active":""]]),onClick:k=>e.handleActive(p.key,y)},n.toDisplayString(p.label),11,Sg))),256)),e.isTapList.length?(n.openBlock(),n.createElementBlock("div",Dg)):n.createCommentVNode("",!0)]),n.createElementVNode("div",Pg,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.isTapList,p=>n.withDirectives((n.openBlock(),n.createElementBlock("div",{key:p.key,style:{height:"100%"},class:n.normalizeClass([p.key==="c"&&"tops-tab-body-taskcommentlist"])},[p.key==="a"&&p.type==="default"?n.renderSlot(e.$slots,"default",{key:0},void 0,!0):n.createCommentVNode("",!0),e.active===p.key&&p.key==="b"&&p.type==="default"?(n.openBlock(),n.createElementBlock("div",{key:1,class:"uph-tab-b",style:{height:"100%"},name:p.slot},[e.processXml?(n.openBlock(),n.createElementBlock("div",{key:0,style:{padding:"10px 20px",color:"#1389ff"},onClick:t[0]||(t[0]=()=>e.visibleTack=!0)}," \u67E5\u770B\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F ")):n.createCommentVNode("",!0),p.key==="b"&&e.processXml?(n.openBlock(),n.createBlock(a,{key:1,ref_for:!0,ref:"PreviewRef",diagram:e.processXml,approvalData:e.approvalData},null,8,["diagram","approvalData"])):(n.openBlock(),n.createElementBlock("div",Og," \u6682\u65E0\u6D41\u7A0B\u56FE "))],8,Mg)):n.createCommentVNode("",!0),p.key==="c"&&p.type==="default"?(n.openBlock(),n.createElementBlock("div",Vg,[p.key==="c"&&e.ProcessInsObj.flow?(n.openBlock(),n.createBlock(l,{key:0,request:e.ProcessInsObj.request,"flow-list":e.formatFlow(e.ProcessInsObj.flow),onView:e.viewList},null,8,["request","flow-list","onView"])):(n.openBlock(),n.createElementBlock("div",Rg,"\u6682\u65E0\u6570\u636E"))])):n.createCommentVNode("",!0),p.type=="slot"?n.renderSlot(e.$slots,p.slot,{key:3},void 0,!0):n.createCommentVNode("",!0)],2)),[[n.vShow,e.active===p.key]])),128))]),n.createVNode(m,{visible:e.visible,"onUpdate:visible":t[1]||(t[1]=p=>e.visible=p),ref:"TopPopup",titleText:"\u9644\u4EF6\u5217\u8868",isDrawer:"",isIndex:5},{default:n.withCtx(()=>[n.createVNode(c,{inList:e.inList},null,8,["inList"])]),_:1},8,["visible"]),n.createVNode(u,{images:e.signLists,visible:e.signPreViewVisible,"onUpdate:visible":t[2]||(t[2]=p=>e.signPreViewVisible=p),indexd:e.indexd},null,8,["images","visible","indexd"]),n.createVNode(m,{visible:e.visibleTack,"onUpdate:visible":t[3]||(t[3]=p=>e.visibleTack=p),ref:"TopPopups",titleText:"\u6D41\u7A0B\u4FE1\u606F",isDrawer:"",width:"60vw"},{default:n.withCtx(()=>[e.trackListss&&e.trackListss.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.trackListss,(p,y)=>(n.openBlock(),n.createElementBlock("div",{key:p.id,class:"seal-list__item"},[n.createElementVNode("div",null,[n.createElementVNode("div",Lg,[t[4]||(t[4]=n.createElementVNode("span",null,"\u5E8F\u53F7",-1)),n.createElementVNode("span",vg,n.toDisplayString(y+1),1)]),n.createElementVNode("div",Fg,[t[5]||(t[5]=n.createElementVNode("span",null,"\u8282\u70B9\u540D\u79F0",-1)),n.createElementVNode("span",Qg,n.toDisplayString(p.historyActivityName),1)]),n.createElementVNode("div",Ug,[t[6]||(t[6]=n.createElementVNode("span",null,"\u5BA1\u6279\u4EBA",-1)),n.createElementVNode("span",jg,n.toDisplayString(p.assigneeName),1)])])]))),128)):n.createCommentVNode("",!0)]),_:1},8,["visible"])])}const _g=ae(Ig,[["render",Gg],["__scopeId","data-v-3cb88319"]]),qg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACfVJREFUeF7tnT2S1FYYRaUCYgJ2wArYgRMIYQPGMVUQt8bDAoDRxFBFbLwBE5qEHbACdkBAbCi5HjxgGKbn6b7Wz9O7h9B8avV3rk7J6r7VtA1/IACBvQRa2EAAAvsJIAhXBwQuIYAgXB4QQBCuAQjkEeAOkseNo0wIIIhJ0KyZRwBB8rhxlAkBBDEJmjXzCCBIHjeOMiGAICZBs2YeAQTJ48ZRJgQQxCRo1swjgCB53DjKhACCmATNmnkEECSPG0eZEEAQk6BZM48AguRx4ygTAghiEjRr5hFAkDxuHGVCAEFMgmbNPAIIkseNo0wIIIhJ0KyZRwBB8rhxlAkBBDEJmjXzCCBIHjeOMiGAICZBs2YeAQTJ48ZRJgQQxCRo1swjgCB53DjKhACCmATNmnkEECSPG0eZEEAQk6BZM48AguRx4ygTAghiEjRr5hFAkDxuHGVCAEFMgmbNPAIIkseNo0wIIIhJ0KyZRwBB8rhxlAkBBDEJmj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E+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBL4Csq/cvbKQGitAAAAAElFTkSuQmCC",zg=We({name:"TopDownSelect",props:{option:{type:Array,default:[]},optionStyle:{type:String,default:""},maskShow:{type:Boolean,default:!0},border:{type:Boolean,default:!1},defaultValue:{type:String,default:""},placeholder:{type:String,default:"\u8BF7\u9009\u62E9"},isSlots:{type:Boolean,default:!1},disibled:{type:Boolean,default:!1}},data(){return{value:{id:"",text:""},lists:[],expand:!1,active:"",activeItem:{name:""}}},watch:{option:{handler(e,t){e&&e.length&&(this.lists=e)},immediate:!0,deep:!0},defaultValue:{immediate:!0,deep:!0,handler(e,t){this.active=e;let s=JSON.parse(JSON.stringify(this.option)).filter((r,o)=>r.id==e);this.activeItem=s[0],this.activeItem&&this.$emit("change",this.activeItem)}}},computed:{arrow(){return qg},check(){return Jg}},methods:{handleExpand(){this.disibled||(this.expand?this.expand=!1:this.expand=!0)},handleClick(e,t){this.active!=e.id&&(this.active=e.id,this.activeItem=e,this.expand=!1,this.$emit("change",this.activeItem,this.lists))},handleClose(){this.expand=!1,this.active="",this.activeItem={name:""}}}}),Lb="",Kg={class:"top-select"},Hg={key:0,style:{position:"relative","z-index":"80"}},Yg=["src"],Wg=["onClick"],Xg=["src"];function Zg(e,t,i,s,r,o){return n.openBlock(),n.createElementBlock("div",Kg,[e.isSlots?(n.openBlock(),n.createElementBlock("div",Hg,[n.renderSlot(e.$slots,"header",{data:{...e.activeItem,placeholder:e.placeholder}},void 0,!0)])):(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["top-select-menu",[e.border&&"top-select-menu-border",!e.activeItem&&"top-select-menu-placeholder"]]),onClick:t[0]||(t[0]=(...a)=>e.handleExpand&&e.handleExpand(...a))},[n.createTextVNode(n.toDisplayString(e.activeItem?e.activeItem.name:e.placeholder)+" ",1),e.disibled?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("img",{key:0,class:n.normalizeClass(["top-select-menu--arrow",[e.expand?"arrow-active":""]]),src:e.arrow},null,10,Yg))],2)),e.maskShow?(n.openBlock(),n.createElementBlock("div",{key:2,class:"top-select-option-mask",style:n.normalizeStyle(e.expand?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4)):n.createCommentVNode("",!0),e.lists&&e.lists.length?(n.openBlock(),n.createElementBlock("div",{key:3,class:n.normalizeClass(["top-select-option",[e.border&&"top-select-option-border"]]),style:n.normalizeStyle(`${e.expand?"transform: translateY(2%);visibility: visible; opacity: 1;":"transform: translateY(-50%);visibility: hidden; opacity: 0"};${e.optionStyle?e.optionStyle:""}`)},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.lists,(a,l)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["option-items",[e.active==a.id?"option-items-active":""]]),key:a.id,onClick:c=>e.handleClick(a,l)},[n.createTextVNode(n.toDisplayString(a.name)+" ",1),e.active==a.id?(n.openBlock(),n.createElementBlock("img",{key:0,class:"option-items-check",src:e.check},null,8,Xg)):n.createCommentVNode("",!0)],10,Wg))),128))],6)):n.createCommentVNode("",!0)])}const Oa=ae(zg,[["render",Zg],["__scopeId","data-v-15c177a8"]]),$g="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADGdJREFUeF7tnVFSHDkMhuVhD7AV9j1wksBJApeA5YnwlJBLQE4COUl63zOpHGAZb3l2mpqQGWYsS7as/qna2oe0ZeuXvpHd7W4Hwh8UgAJbFQjQBgpAge0KABBkBxR4RQEAgvSAAgAEOQAFeAqggvB0Q6uJKAB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AUiTfr40BCAARTCd/pgAIAPGX1YIeAZANYgZKe3G+CMpc11SkayLsuRIRHYCIyOjFyODFkS1+HGX7B0CyJXPbYH4ZurlDmRsE9tHYACRXar/Xcx6K9aIGANkQKexJyk7fISzovPR9iOxeKzQAIABEJM28VhEAAkBEACHGnFumY10rAASASGUY+0UhqQFo2AEgG1Rli6IRoV5sooL8GimGHt3cCsRrpwwqO9+Hts1j9o+lZ0CSWHj1NA8Szht0eT20uRqAbNEdVSQjIZ1Wj6QAAHklD/A8ZD9I8CR9g07ep1ijy6tK8oBNfNthASATBiS5niBJ/z84oBNa0Lv9flc7vCrQGWfUAGTigHCSpsc23DcK01P0Hv3dZ8whfXKV88MxlSnWPiJ6uYYLiBf/Rf0AIKJymjAGQATDAEAExTRiCoAIBgKACIppxBQAEQwEABEU04gpACIYCAAiKKYRUwBEMBAARFBMI6aw/0wwEIztN93s5hWUqStTAEQwXJ6/7i4oU1em3tzG6+D4oV/NYDwt6PjnVcj6HBIqSM0IMfrCvjOGaJuaMNYfyQwAEdJf0wx7e7fmoDqzzakeAKSjIK+mWmnjYv4XBTvyU2GoRZ8/QgVRiIiWyRdnpJ9o9ePE7hCJ7n9chpsSfwBIiXoN247b/RsOwWzXuQvx1xwBIGbDjIFZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUOA/PPf9I/jtWsEAAAAASUVORK5CYII=",vb="",ey=We({name:"selectFixedPerson",components:{TopPopup:Fe},props:{multiple:{},visible:{type:Boolean,default:!1},list:{type:Array,default(){return[]}},select:{type:Array,default(){return[]}},multiple:{type:Boolean,default:!1}},data(){return{showFixedPerson:!1,fixedPersonList:[],mySelect:[],mySelectIds:[]}},watch:{visible:{handler(e,t){this.showFixedPerson=e,e?(this.fixedPersonList=this.list||[],this.mySelect=this.select||[],this.mySelectIds=this.mySelect.map(i=>i.userId)):(this.fixedPersonList=[],this.mySelect=[],this.mySelectIds=[])},immediate:!0},fixedPersonList:{handler(e,t){e&&e.length>0&&JSON.stringify(e)!==JSON.stringify(this.list)&&this.$emit("updateList",e)},immediate:!0,deep:!0}},methods:{updateVisible(e){this.$emit("updateVisible",e)},handleClickFixedPerson(e){const t=this.select.find(i=>i.userId===e.userId);this.multiple||(this.mySelect=[],this.mySelectIds=[]),t?(this.mySelect=this.select.filter(i=>i.userId!==e.userId),this.mySelectIds=this.mySelect.map(i=>i.userId)):(this.mySelect.push(e),this.mySelectIds.push(e.userId)),this.$emit("updateSelect",this.mySelect)},handleSumbitFixedPerson(){this.$emit("confirm",this.mySelect)}}}),ty={class:"s-tree"},iy=["onClick"],ny={key:0,class:"radio-select"},sy={key:1,class:"radio-select-not"},ry=["src"],oy={key:3,class:"node-avatar-text"},ay={class:"node-name"},ly={class:"node-name-text"},cy={class:"node-name-phone"};function dy(e,t,i,s,r,o){const a=n.resolveComponent("TopPopup");return n.openBlock(),n.createBlock(a,{visible:e.showFixedPerson,"onUpdate:visible":e.updateVisible,ref:"TopPopupFixedPerson",titleText:"\u9009\u62E9\u4EBA\u5458("+e.fixedPersonList.length+"\u4EBA)",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u786E\u5B9A",comfig:e.handleSumbitFixedPerson},{default:n.withCtx(()=>[n.createElementVNode("div",ty,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList([...e.fixedPersonList],l=>(n.openBlock(),n.createElementBlock("div",{class:"s-node",key:l.userId,onClick:c=>e.handleClickFixedPerson(l)},[e.mySelectIds.includes(l.userId)?(n.openBlock(),n.createElementBlock("div",ny,[...t[0]||(t[0]=[n.createElementVNode("svg",{t:"1758260488735",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7527",width:"18",height:"18"},[n.createElementVNode("path",{d:"M512 0a512 512 0 1 0 512 512A512 512 0 0 0 512 0z m314.916571 369.371429l-354.304 349.184a46.409143 46.409143 0 0 1-64.987428 0l-212.955429-209.883429a44.763429 44.763429 0 0 1 0-64 46.336 46.336 0 0 1 64.987429 0l180.443428 177.810286 321.828572-317.184a46.482286 46.482286 0 0 1 64.987428 0 44.836571 44.836571 0 0 1-0.036571 64.073143z",fill:"#409eff","p-id":"7528"})],-1)])])):(n.openBlock(),n.createElementBlock("div",sy,[...t[1]||(t[1]=[n.createElementVNode("svg",{t:"1758260589679",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8704",width:"18",height:"18"},[n.createElementVNode("path",{d:"M150.144 150.144C250.24 50.048 370.88 0 512 0s261.76 50.048 361.856 150.144S1024 370.88 1024 512s-50.048 261.76-150.144 361.856S653.12 1024 512 1024s-261.76-50.048-361.856-150.144S0 653.12 0 512s50.048-261.76 150.144-361.856zM64 512c0 124.16 43.328 228.48 131.392 316.608C283.52 916.672 387.84 960 512 960s228.48-43.328 316.608-131.392C916.672 740.48 960 636.16 960 512s-43.328-228.48-131.392-316.608C740.48 107.328 636.16 64 512 64s-228.48 43.328-316.608 131.392C107.328 283.52 64 387.84 64 512z",fill:"#b5bbc1","p-id":"8705"})],-1)])])),l.avatar?(n.openBlock(),n.createElementBlock("img",{key:2,class:"node-avatar",src:l.avatar,alt:"\u5934\u50CF"},null,8,ry)):(n.openBlock(),n.createElementBlock("div",oy,n.toDisplayString((l.realName||"").slice(-2)),1)),n.createElementVNode("div",ay,[n.createElementVNode("div",ly,n.toDisplayString(l.realName),1),n.createElementVNode("div",cy,n.toDisplayString(l.phonenumber),1)])],8,iy))),128))])]),_:1},8,["visible","onUpdate:visible","titleText","comfig"])}const Va=ae(ey,[["render",dy],["__scopeId","data-v-7ee61f3b"]]),py=We({name:"TopSubmitPopup",components:{SelectFixedPerson:Va,BpmnLook:Ma,TopPopup:Fe,TopDownSelect:Oa,PreviewImage:sn,departPerson:yt.departPerson,TopTips:tt},props:{isCheckType:{type:String,default:"0"},visible:{type:Boolean,default:!1},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{},upload:()=>{}})},appId:{type:String,default:""},processName:{type:String,default:""},resubmit:{type:Boolean,default:!1},id:{type:String,default:""},businessType:{type:[String,Number]},businessDeptId:{type:[String,Number]},businessSubjectId:{type:[String,Number]},todoParameter:{type:Object,default(){return{}}},isClearHistory:{type:Boolean,default:!1},title:{type:String,default:"\u6D4B\u8BD5"},showType:{type:String,default:"all"},beforeFunction:{type:Function,default:null},manual:{type:Boolean,default:!1},selfList:{type:Array,default:()=>[]},isOrgType:{type:Array,default:()=>[0]},isCodeType:{type:Array,default:()=>[3]},extraParams:{type:Object,default:()=>{}},isSelectFirst:{type:Boolean,default:!0},showFlowForecast:{default:!1,type:Boolean},flowForecastFunction:{type:Function,default:null}},data(){return{currentClickItem:{},fixedSelect:{},showFixedPerson:!1,fixedPersonList:[],approvalData:[],processXml:"",showFlow:!1,showFirstPerson:!1,selectDeptData:{},showDept:!1,deptList:[],show:!1,option:[],checkedItem:{},personList:[],checkedArray:[],trackUrl:[],taskurlshow:!1,isStyle:"width:35%",visiblePerson:!1,entity:{source:"0",type:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:!1,checkedArray:[]},multiNodeParticipant:{},personListCopy:{},partNode:{},personObjId:"",processId:"",textTips:"",statusTips:!1,typeTips:"success",firstPerson:[],selectDefaultValue:"",businessTypeData:"",businessDeptIdData:"",idData:"",processNameData:"",titleData:"",todoParameterData:{},humanPerformerName:"",btnLoading:!1,flowForecastVisible:!1,flowForecastData:{completeTime:"",processBudgetModelList:[]},flowForecastProcessInstId:""}},watch:{visible:{async handler(e,t){this.show=e,this.$emit("update:visible",this.show),e?(this.selectDefaultValue="",this.handleOption()):this.$refs.TopDownSelect.handleClose()}},show:{handler(e,t){e||this.$refs.TopDownSelect.handleClose()}},businessType:{handler(e,t){this.businessTypeData=e},immediate:!0},businessDeptId:{handler(e,t){e&&(this.businessDeptIdData=e)},immediate:!0},extraParams:{handler(e,t){e&&e.businessDeptId&&(console.error(e.businessDeptId,"\u4E1A\u52A1\u90E8\u95E8id\u66F4\u65B0\u5230extraParams.businessDeptId\u4E2D\uFF0C\u8BF7\u68C0\u67E5\u662F\u5426\u9700\u8981\u66F4\u65B0\u5230\u6B64\u5904"),this.businessDeptIdData=e.businessDeptId)},immediate:!0,deep:!0},id:{handler(e,t){e&&(this.idData=e,this.resubmit&&this.getProcessInstance())},immediate:!0},processName:{handler(e,t){this.processNameData=e},immediate:!0},title:{handler(e,t){this.titleData=e},immediate:!0},todoParameter:{handler(e,t){this.todoParameterData=e},immediate:!0,deep:!0},selfList:{handler(e,t){e&&e.length&&(this.option=e,this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id))},immediate:!0,deep:!0},resubmit:{handler(e,t){e&&this.getProcessInstance()}}},computed:{ProcessImg(){return $g}},methods:{getXmlByProcessDefId(e){this.request.get("/bladex/blade-workflow/process/getXmlByProcessDefId",{params:{processDefId:e}}).then(t=>{t.code==200&&(this.processXml=t.data)})},handleFlowSelect(){this.showFlow=!0},handleSumbitFlow(){this.showFlow=!1},handleDeptSelect(){this.showDept=!0},handleSumbitDept(){},async handleClickDept(e){this.businessDeptIdData=e.id,this.showDept=!1,this.selectDeptData=e,await this.getUserDataByDeptId(),this.showFirstPerson=!0,this.handleTips("",!1,"success")},handleSelect(){this.$refs.TopDownSelect.handleExpand()},async handleOption(){if(this.checkedItem={},this.firstPerson=[],this.personList=[],this.selfList&&this.selfList.length)return;this.handleTips("",!0,"loading");let e={businessCode:this.businessType,appId:this.appId,processGroupName:this.processNameData,...this.extraParams};this.processNameData&&delete e.processGroupName,await this.request.post("/bladex/blade-workflow/repository/getProcessDefList",e).then(t=>{t.code==200&&(this.option=t.data,t.data&&t.data.length?(this.handleTips("",!1,"success"),(this.isSelectFirst||t.data.length==1)&&(this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id))):(this.handleTips("\u6682\u65E0\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F",!0,"error"),this.option=[]),this.businessDeptIdData||this.getNodeUserDept())})},async getProcessInstance(){},async getNodeUserDept(){let e={};try{e=await this.request.get("/auth/dept/list/user/dept/selectTree")}catch(t){}this.deptList=e.data||[]},async getNodeUser({deptId:e,intersection:t,userIds:i,postIds:s,deptIds:r}){return await this.request.post("/auth/user/getTaskAuditor",{deptId:e,intersection:t,userIds:i,postIds:s,deptIds:r})},getUserDataByDeptId(){this.firstPerson.map(async(e,t)=>{const i=Pa(e);let s;try{s=await this.getNodeUser({deptId:this.businessDeptIdData,intersection:(i.intersection,0),userIds:i.userIds,postIds:i.postIds,deptIds:i.deptIds})}catch(r){}if(s.code==200){const r=this.firstPerson[t];r.userList=s.data,this.firstPerson[t]=r}})},async handlefirstNode(e){e&&(this.handleTips("",!0,"loading"),await this.request.get("/bladex/blade-workflow/repository/getAllProcessNode",{params:{processDefId:e}}).then(async t=>{if(t.code===200){if(this.firstPerson=t.data,await this.getNodeUserDept(),!this.businessDeptIdData){this.handleTips("",!1,"success");return}if(await this.getUserDataByDeptId(),this.showFirstPerson=!0,this.handleTips("",!1,"success"),Date.now())return;t.data.map(i=>{{let s={taskDefId:i.id,postIds:[]};i.routeTxt.postList.map(r=>{s.postIds.push(r.postId)}),this.request.post("/auth/user/getTaskAuditor",{deptId:this.businessDeptIdData,taskPostIds:[s]}).then(r=>{let o=[],a=[],l=!1;r.data.map(m=>{m.posts.map(u=>{a.push(...u.users),u.users.length==1?o.push(...u.users):l=!0})}),o.length>i.loopCardinality&&i.loopCardinality>0&&(l=!0),l&&(o=[]);let c=[];r.data[0].posts.map(m=>{c.push({...m,projectPost:!this.businessDeptIdData,id:m.users.map(u=>u.id),subjectId:m.subjectId})}),a.length==0&&this.$set(i,"noPersonnel",!0),o.length>0&&(this.personObjId=i.id,this.humanPerformerName=i.humanPerformerName,this.$set(i,"noPersonnel",!0),this.handleCallback(o)),i.positionArray=c})}}),this.getAfferentParticipantNodeList()}else this.firstPerson=[],this.getAfferentParticipantNodeList()}).catch(t=>{this.firstPerson=[],this.getAfferentParticipantNodeList()}))},async handleChange(e,t){this.handleTips("",!0,"loading"),this.checkedItem={},this.selectDefaultValue="",this.firstPerson=[],this.personList=[],this.checkedItem=e,this.selectDefaultValue=this.checkedItem.id,this.handlefirstNode(this.checkedItem.id),this.getXmlByProcessDefId(this.checkedItem.id),this.$emit("change",e,t)},async getAfferentParticipantNodeList(){await this.request.get("/aws/repository/getAfferentParticipantNodeList",{params:{processDefId:this.checkedItem.id}}).then(e=>{e.code==200&&(this.firstPerson&&this.firstPerson.length&&(e.data.map(t=>{if(t.humanPerformerName==="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let i={taskDefId:t.id,postIds:[]};t.routeTxt.postList.map(s=>{i.postIds.push(s.postId)}),this.request.post("/auth/user/getTaskAuditor",{deptId:this.businessDeptIdData,taskPostIds:[i]}).then(s=>{let r=[],o=[],a=!1;s.data.map(c=>{c.posts.map(m=>{o.push(...m.users),m.users.length==1?r.push(...m.users):a=!0})}),r.length>t.loopCardinality&&t.loopCardinality>0&&(a=!0),a&&(r=[]);let l=[];s.data[0].posts.map(c=>{l.push({...c,projectPost:!(this.param.taskNode&&this.param.taskNode[0].vars&&this.param.taskNode[0].vars._businessDeptId),id:c.users.map(m=>m.id),subjectId:c.subjectId})}),o.length==0&&this.$set(t,"noPersonnel",!0),r.length>0&&(this.personObjId=t.id,this.humanPerformerName=t.humanPerformerName,this.$set(t,"noPersonnel",!0),this.handleCallback(r)),t.positionArray=l})}}),this.personList=e.data.filter(t=>!this.firstPerson.some(i=>i.id==t.id))),this.$emit("change",this.checkedItem,this.option)),this.$refs.topTips.handleClose()})},getDiagramUrl(){this.request.get("/aws/repository/getDiagramUrl",{params:{processDefId:this.checkedItem.id,diagramType:1,type:"pc"}}).then(e=>{e.code==200&&(this.trackUrl=[e.data])})},handleOpenFixedPerson(e){this.currentClickItem=e,this.personObjId=e.id,this.showFixedPerson=!0,this.fixedPersonList=e.userList||[]},updateFixedPersonVisible(e){this.showFixedPerson=e},updateFixedSelect(e){},handleSumbitFixedPerson(e){this.fixedSelect[this.personObjId]=e,this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.personObjId].push(t.userId),this.partNode[this.personObjId].push(t.realName)}),this.showFixedPerson=!1},handleClickFixedPerson(e){this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.personObjId].push(t.userId),this.partNode[this.personObjId].push(t.realName)}),this.showFixedPerson=!1},handleOpenPerson(e){if(this.visiblePerson=!0,this.personObjId=e.id,this.humanPerformerName=e.humanPerformerName,e.humanPerformerName==="\u4EFB\u610F\u6307\u5B9A")this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,checkedArray:[]},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId)})):this.entity.checkedArray=[];else if(e.humanPerformerName==="\u56FA\u5B9A\u90E8\u95E8"){let t,i=[];e.routeTxt.departmentIds&&e.routeTxt.departmentIds.length>1?(e.routeTxt.departmentIds.forEach((s,r)=>{i.push(s.rangeId)}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],deptCodeArray:i,multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1}):e.routeTxt.departmentIds&&e.routeTxt.departmentIds.length==1&&(e.routeTxt.departmentIds.forEach((s,r)=>{t=s.rangeId}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],deptCode:t,multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(s=>({id:s.id,subjectId:s.subjectId,type:s.type,deptId:t})):this.entity.checkedArray=[]}else if(e.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"){let t;e.routeTxt.companyIds.map((i,s)=>{t=i.name}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,subjectName:t},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(i=>({id:i.id,subjectId:i.subjectId,type:i.type,deptId:this.handleLastStr(i.ancestors,i.subjectId),subjectName:i.ancestorNames.slice(0,i.ancestorNames.indexOf("/"))})):this.entity.checkedArray=[]}else e.humanPerformerName==="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"?(this.entity={source:"1",type:this.isCheckType||"0",orgType:[5],request:this.request,codeType:[8],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,positionArray:e.positionArray},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId),subjectName:t.ancestorNames.slice(0,t.ancestorNames.indexOf("/"))})):this.entity.checkedArray=[]):(this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,checkedArray:[]},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId)})):this.entity.checkedArray=[])},handleCallback(e){this.personListCopy[this.personObjId]=e,this.entity.checkedArray=e.map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId),subjectName:this.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"?t.ancestorNames.slice(0,t.ancestorNames.indexOf("/")):""})),this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.personObjId].push(t.id),this.partNode[this.personObjId].push(t.name)}),this.visiblePerson=!1},handleCancel(){},handleLastStr(e,t){if(!!e)return e.split(",")[e.split(",").length-1]!==t?e.split(",")[e.split(",").length-1]:""},async handleSumbit(){if(!this.btnLoading){if(this.btnLoading=!0,!this.isSelectFirst&&!this.checkedItem.id){this.handleTips("\u8BF7\u5148\u9009\u62E9\u6D41\u7A0B",!0,"error"),this.btnLoading=!1;return}if(!this.isSelectFirst&&!this.businessDeptIdData){this.handleTips("\u8BF7\u5148\u9009\u62E9\u90E8\u95E8",!0,"error"),this.btnLoading=!1;return}if(this.firstPerson&&this.firstPerson.length&&!this.firstPerson[0].routeTxt.userNames&&(!this.multiNodeParticipant[this.firstPerson[0].id]||!this.multiNodeParticipant[this.firstPerson[0].id].length)){this.handleTips(`${this.firstPerson[0].name}\u8282\u70B9\u672A\u9009\u62E9\u5BA1\u6279\u4EBA`,!0,"error"),this.btnLoading=!1;return}this.beforeFunction&&(await this.beforeFunction(),this.manual&&(this.btnLoading=!1)),this.manual||this.$nextTick(async()=>{await this.handleSongshen()})}},handleSongshen(){if(this.btnLoading=!0,this.resubmit)this.handleTips("",!0,"loading"),this.request.post("/bladex/blade-workflow/pis/reactivate",{processDefId:this.checkedItem.id,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant,firstNodeId:this.firstPerson&&this.firstPerson.length>0?this.firstPerson[0].id:"",processInstId:this.extraParams.processInstId,vars:{...this.extraParams,_businessDeptId:this.businessDeptIdData}}).then(e=>{e.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn"),this.btnLoading=!1):(this.handleTips(e.msg,!0,"error"),this.btnLoading=!1)}).catch(e=>{this.handleTips(e.msg,!0,"error"),this.btnLoading=!1});else{this.handleTips("",!0,"loading");let e={processDefId:this.checkedItem.id,multiNodeParticipant:this.multiNodeParticipant,firstNodeId:this.firstPerson&&this.firstPerson.length>0?this.firstPerson[0].id:"",vars:{processBusinessKey:this.id||this.extraParams.businessKey,showType:"all",subjectId:this.businessSubjectId,deptId:this.businessDeptIdData,businessType:this.businessType,name:this.extraParams.name,title:this.title||this.extraParams.title,applyUserId:this.extraParams.applyUserId}};if(!this.checkedItem.id){this.$refs.topTips.handleClose(),this.btnLoading=!1;return}this.request.post("/bladex/blade-workflow/pis/createAndStart",e).then(t=>{t.code===200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn"),this.btnLoading=!1):t.code==499?this.request.post("/bladex/blade-workflow/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(i=>{i.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn"),this.btnLoading=!1):(this.handleTips(i.msg,!0,"error"),this.btnLoading=!1)}).catch(i=>{this.handleTips(i.msg,!0,"error"),this.btnLoading=!1}):(this.handleTips(t.msg,!0,"error"),this.btnLoading=!1)}).catch(t=>{this.handleTips(t.msg,!0,"error"),this.btnLoading=!1})}},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips&&this.$refs.topTips.handleOpen()},viewFlowForecast(){this.flowForecastFunction?this.flowForecastFunction():this.forecast({appId:this.appId,title:"1"})},forecast(e){this.request.post("/aws/pis/getProcessForecast",{processDefId:this.checkedItem.id,...e}).then(t=>{t.code==200?(t.data&&t.data.processBudgetModelList&&t.data.processBudgetModelList.length?this.flowForecastProcessInstId=t.data.processBudgetModelList[0].processInstId:(t.data.processBudgetModelList=[],this.flowForecastProcessInstId=""),this.flowForecastData=t.data,this.flowForecastVisible=!0):this.handleTips(t.msg,!0,"error")}).catch(t=>{this.btnLoading=!1,this.handleTips("\u6D41\u7A0B\u9884\u6D4B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",!0,"error")})},flowForecastClose(){this.flowForecastProcessInstId?this.request.get("/aws/pis/deleteProcessById",{params:{processInstId:this.flowForecastProcessInstId}}).then(e=>{e.code==200&&(this.flowForecastVisible=!1,this.flowForecastData={completeTime:"",processBudgetModelList:[]},this.flowForecastProcessInstId="")}):(this.flowForecastVisible=!1,this.flowForecastData={completeTime:"",processBudgetModelList:[]})}}}),Fb="",hy={class:"sumbmitPopup-index-sumbit"},uy={class:"sumbmitPopup-select"},my={class:"sumbmitPopup-select-viewTrack",style:{display:"flex"}},fy=["src"],gy={key:0,class:"person-views"},yy={class:"views-items-label"},Ay={class:"views-items-name"},ky={class:"views-items-name-left"},Ey={key:0,class:"views-items-name--re"},by={class:"views-items-set"},Cy={key:0},wy={key:0},Ny={key:1},Ty={key:2},Iy={key:3},By=["onClick"],xy=["onClick"],Sy={key:0,class:"views-items-includes"},Dy={class:"views-items-and2"},Py={key:0},My={class:"include"},Oy={class:"include include-name"},Vy={key:1,class:"person-views"},Ry={class:"views-items"},Ly={class:"views-items-name"},vy={class:"views-items-set"},Fy=["onClick"],Qy={key:1},Uy={key:0},jy={key:2},Gy={key:3},_y={key:2,class:"person-views-white"},qy={style:{height:"100%"}},Jy={class:"tree"},zy=["onClick"],Ky={key:0,class:"children"},Hy=["onClick"],Yy={style:{margin:"20px"}},Wy=["innerHTML"],Xy={class:"timeline"},Zy={class:"item-top"},$y={class:"top-spot"},eA={class:"top-title"},tA={style:{color:"#009800"}};function iA(e,t,i,s,r,o){const a=n.resolveComponent("TopDownSelect"),l=n.resolveComponent("TopPopup"),c=n.resolveComponent("departPerson"),m=n.resolveComponent("SelectFixedPerson"),u=n.resolveComponent("BpmnLook"),p=n.resolveComponent("PreviewImage"),y=n.resolveComponent("TopTips");return n.openBlock(),n.createElementBlock("div",hy,[t[16]||(t[16]=n.createElementVNode("div",{class:"top-popup"},null,-1)),n.createVNode(l,{visible:e.show,"onUpdate:visible":t[4]||(t[4]=k=>(e.show=k,e.$emit("update:visible",k))),ref:"TopPopup",titleText:"\u9001\u5BA1",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u9001\u5BA1",comfig:e.handleSumbit},{default:n.withCtx(()=>[n.createVNode(a,{isSlots:"",option:e.option,onChange:e.handleChange,defaultValue:e.selectDefaultValue,ref:"TopDownSelect",disibled:!1},{header:n.withCtx(k=>[n.createElementVNode("div",uy,[n.createElementVNode("div",{class:"sumbmitPopup-select-checked",onClick:t[0]||(t[0]=(...C)=>e.handleSelect&&e.handleSelect(...C))},[t[10]||(t[10]=n.createElementVNode("div",{class:"sumbmitPopup-select-checked-title"},"\u5F53\u524D\u6D41\u7A0B",-1)),n.createElementVNode("div",{class:n.normalizeClass(["sumbmitPopup-select-checked-node",""])},n.toDisplayString(k.data.name?k.data.name:k.data.placeholder),3)]),e.businessDeptIdData?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:"sumbmitPopup-select-checked",onClick:t[1]||(t[1]=(...C)=>e.handleDeptSelect&&e.handleDeptSelect(...C))},[t[11]||(t[11]=n.createElementVNode("div",{class:"sumbmitPopup-select-checked-title"},"\u9009\u62E9\u90E8\u95E8",-1)),n.createElementVNode("div",{class:n.normalizeClass(["sumbmitPopup-select-checked-node",""])},n.toDisplayString(e.selectDeptData.label?e.selectDeptData.label:"\u8BF7\u9009\u62E9"),3)])),n.createElementVNode("div",my,[e.checkedItem.id?(n.openBlock(),n.createElementBlock("div",{key:0,class:"viewTrack",onClick:t[2]||(t[2]=(...C)=>e.handleFlowSelect&&e.handleFlowSelect(...C))},[n.createElementVNode("img",{src:e.ProcessImg},null,8,fy),t[12]||(t[12]=n.createTextVNode(" \u67E5\u770B\u6D41\u7A0B\u56FE ",-1))])):n.createCommentVNode("",!0),e.checkedItem.id&&e.showFlowForecast?(n.openBlock(),n.createElementBlock("div",{key:1,class:"viewTrack",onClick:t[3]||(t[3]=(...C)=>e.viewFlowForecast&&e.viewFlowForecast(...C))}," \u6D41\u7A0B\u9884\u6D4B ")):n.createCommentVNode("",!0)])])]),_:1},8,["option","onChange","defaultValue","disibled"]),e.showFirstPerson&&e.firstPerson&&e.firstPerson.length?(n.openBlock(),n.createElementBlock("div",gy,[t[14]||(t[14]=n.createElementVNode("div",{class:"person-views-title"},"\u4E0B\u4E00\u6B65\u5904\u7406\u8282\u70B9",-1)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.firstPerson,(k,C)=>{var v;return n.openBlock(),n.createElementBlock("div",{class:"views-items",key:C},[n.createElementVNode("div",yy,[n.createElementVNode("div",Ay,[n.createElementVNode("div",ky,[n.createTextVNode(n.toDisplayString(k.name)+" ",1),C==0?(n.openBlock(),n.createElementBlock("span",Ey,"*")):n.createCommentVNode("",!0)])]),n.createElementVNode("div",by,[e.partNode[k.id]&&e.partNode[k.id].length?(n.openBlock(),n.createElementBlock("div",Cy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.partNode[k.id],(F,z)=>(n.openBlock(),n.createElementBlock("span",{key:z},n.toDisplayString(z>=3?"":z==0?F:`,${F}`),1))),128)),e.partNode[k.id].length>3?(n.openBlock(),n.createElementBlock("span",wy,"...\u7B49"+n.toDisplayString(e.partNode[k.id].length)+"\u4EBA",1)):n.createCommentVNode("",!0)])):k.routeTxt&&k.routeTxt.userNames?(n.openBlock(),n.createElementBlock("div",Ny,n.toDisplayString(k.routeTxt.userNames),1)):n.createCommentVNode("",!0),k.humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||k.humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"||((v=e.partNode[k.id])==null?void 0:v.length)>0&&k.noPersonnel?(n.openBlock(),n.createElementBlock("div",Ty)):k.humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||k.humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"||k.noPersonnel?(n.openBlock(),n.createElementBlock("div",Iy," \u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E ")):k.userList&&k.userList.length>0?(n.openBlock(),n.createElementBlock("div",{key:4,class:"views-items-set-btn",onClick:F=>e.handleOpenFixedPerson(k)}," \u9009\u62E9 ",8,By)):(n.openBlock(),n.createElementBlock("div",{key:5,class:"views-items-set-btn",onClick:F=>e.handleOpenPerson(k)}," \u8BBE\u7F6E ",8,xy))])]),k.routeTxt&&k.routeTxt.length>0?(n.openBlock(),n.createElementBlock("div",Sy,[t[13]||(t[13]=n.createElementVNode("div",{class:"views-items-name2"},n.toDisplayString("\u6240\u5C5E\u8303\u56F4"),-1)),n.createElementVNode("div",Dy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(k.routeTxt,(F,z)=>(n.openBlock(),n.createElementBlock("div",{key:F.type},[F.ids&&F.ids.length>0?(n.openBlock(),n.createElementBlock("div",Py,[n.createElementVNode("div",My,[n.createElementVNode("b",{class:n.normalizeClass(["include include-type",["include-"+F.type]])},n.toDisplayString(F.type=="user"?"\u7528\u6237":F.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"),3),n.createElementVNode("span",Oy,n.toDisplayString(F.name),1)]),z!==k.routeTxt.length-1?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["include include-assign",["include-assign-"+(F.assigneeRetain?"true":"false")]])},n.toDisplayString(k.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"),3)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0)]))),128))])])):n.createCommentVNode("",!0)])}),128))])):n.createCommentVNode("",!0),e.personList&&e.personList.length?(n.openBlock(),n.createElementBlock("div",Vy,[t[15]||(t[15]=n.createElementVNode("div",{class:"person-views-title"},"\u5176\u4ED6\u5904\u7406\u8282\u70B9",-1)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.personList,(k,C)=>(n.openBlock(),n.createElementBlock("div",Ry,[n.createElementVNode("div",Ly,n.toDisplayString(k.name),1),n.createElementVNode("div",vy,[k.noPersonnel?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:"views-items-set-btn",onClick:v=>e.handleOpenPerson(k)}," \u8BBE\u7F6E ",8,Fy)),e.partNode[k.id]&&e.partNode[k.id].length?(n.openBlock(),n.createElementBlock("div",Qy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.partNode[k.id],(v,F)=>(n.openBlock(),n.createElementBlock("span",null,n.toDisplayString(F>=3?"":F==0?v:`,${v}`),1))),256)),e.partNode[k.id].length>3?(n.openBlock(),n.createElementBlock("span",Uy,"...\u7B49"+n.toDisplayString(e.partNode[k.id].length)+"\u4EBA",1)):n.createCommentVNode("",!0)])):k.noPersonnel?(n.openBlock(),n.createElementBlock("div",jy,"\u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E")):(n.openBlock(),n.createElementBlock("div",Gy))])]))),256))])):n.createCommentVNode("",!0),!e.firstPerson&&!e.firstPerson.length&&!e.personList&&!e.personList.length?(n.openBlock(),n.createElementBlock("div",_y," \u65E0\u9700\u8BBE\u7F6E ")):n.createCommentVNode("",!0)]),_:1},8,["visible","comfig"]),n.createVNode(l,{visible:e.visiblePerson,"onUpdate:visible":t[5]||(t[5]=k=>e.visiblePerson=k),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0,isIndex:199},{default:n.withCtx(()=>[n.createElementVNode("div",qy,[e.visiblePerson?(n.openBlock(),n.createBlock(c,n.mergeProps({key:0,isTitle:!1,visible:e.visiblePerson},e.entity,{onCallback:e.handleCallback,onCancel:e.handleCancel,checkedArray:e.checkedArray}),null,16,["visible","onCallback","onCancel","checkedArray"])):n.createCommentVNode("",!0)])]),_:1},8,["visible"]),n.createVNode(l,{visible:e.showDept,"onUpdate:visible":t[6]||(t[6]=k=>e.showDept=k),ref:"TopPopupDept",titleText:"\u9009\u62E9\u90E8\u95E8",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u786E\u5B9A",comfig:e.handleSumbitDept},{default:n.withCtx(()=>[n.createElementVNode("div",Jy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList([...e.deptList],k=>(n.openBlock(),n.createElementBlock("div",{class:"node",key:k.id},[n.createElementVNode("div",{class:"node-p",onClick:C=>e.handleClickDept(k)},n.toDisplayString(k.label),9,zy),k.children?(n.openBlock(),n.createElementBlock("div",Ky,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(k.children,C=>(n.openBlock(),n.createElementBlock("div",{class:"node-s",onClick:v=>e.handleClickDept(C),key:C.id},n.toDisplayString(C.label),9,Hy))),128))])):n.createCommentVNode("",!0)]))),128))])]),_:1},8,["visible","comfig"]),n.createVNode(m,{visible:e.showFixedPerson,list:e.fixedPersonList,multiple:e.currentClickItem.loopCardinality==-1,select:e.fixedSelect[e.personObjId]||[],onUpdateList:e.handleClickFixedPerson,onUpdateVisible:e.updateFixedPersonVisible,onUpdateSelect:e.updateFixedSelect,onConfirm:e.handleSumbitFixedPerson},null,8,["visible","list","multiple","select","onUpdateList","onUpdateVisible","onUpdateSelect","onConfirm"]),n.createVNode(l,{class:"top-pop-flow",visible:e.showFlow,"onUpdate:visible":t[7]||(t[7]=k=>e.showFlow=k),ref:"TopPopupFlow",titleText:"\u67E5\u770B\u6D41\u7A0B\u56FE",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u5173\u95ED",comfig:e.handleSumbitFlow},{default:n.withCtx(()=>[e.showFlow&&e.processXml?(n.openBlock(),n.createBlock(u,{key:0,ref:"PreviewRef",diagram:e.processXml,approvalData:e.approvalData},null,8,["diagram","approvalData"])):n.createCommentVNode("",!0)]),_:1},8,["visible","comfig"]),n.createVNode(p,{images:e.trackUrl,visible:e.taskurlshow,"onUpdate:visible":t[8]||(t[8]=k=>e.taskurlshow=k),indexd:0,isOne:!0,isStyle:e.isStyle},null,8,["images","visible","isStyle"]),n.createVNode(y,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),n.createVNode(l,{visible:e.flowForecastVisible,"onUpdate:visible":t[9]||(t[9]=k=>e.flowForecastVisible=k),ref:"TopPopupFF",titleText:"\u6D41\u7A0B\u9884\u6D4B",isIndex:129,cancel:e.flowForecastClose,comfig:e.flowForecastClose},{default:n.withCtx(()=>[n.createElementVNode("div",Yy,[n.createElementVNode("div",{innerHTML:e.flowForecastData.completeTime,style:{"margin-left":"10px","margin-bottom":"10px"}},null,8,Wy),n.createElementVNode("div",Xy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.flowForecastData.processBudgetModelList,(k,C)=>(n.openBlock(),n.createElementBlock("div",{class:"timeline-item",key:C},[n.createElementVNode("div",Zy,[n.createElementVNode("div",$y,[n.createElementVNode("div",{class:n.normalizeClass(["spot",{active:C==0}])},null,2)]),n.createElementVNode("div",eA,n.toDisplayString(k.title),1)]),n.createElementVNode("div",{class:n.normalizeClass(["item-bottom",{last:C==e.flowForecastData.processBudgetModelList.length-1}])},[n.createElementVNode("span",tA," \u6267\u884C\u4EBA\uFF1A"+n.toDisplayString(k.excutor),1)],2)]))),128))])])]),_:1},8,["visible","cancel","comfig"])])}const Ra=ae(py,[["render",iA],["__scopeId","data-v-bbbeeb1a"]]),nA="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADG5JREFUeF7tnVFaGzcXhjUD16WsoLCSwl1qsoeElRRWEroHcLkL/0rqfwUpvS6jPuPYiXGw0ZE+4TOel6s8T6Rj6T36pE/yWNME/iAAgY0EGthAAAKbCSAQRgcEthBAIAwPCCAQxgAE8giwguRxo9ZICCAQR4n+8u7dybfmHB5+/fe//86O7+9njpo5qqYgkB2kuxfCQduexRB+ibE5a5rQi+G7OF5u01IkDyHEWde2/zu+vX3YQfNH9ZEI5I3S3YuibdsPITRXwo+cxRhmbRP/+Gk6vRHGJdSCAAKpOBQqiWJji2MMD/GguWZl0SUVgehYfov01sJ4oQuzEOLN0XR6XaF7owqJQITpdiCM9d7MmhCvsV/5SUYg+eye1fzy/v1Z28XPonDSMHPrFZ8uOQ2zY0UgdmbPhfHu3UnTHHxqmnBWGKp2dWxXBmEEkgFtWcXzqrG5W/GKvUl60hFIOqvBWKqELs267ukcy/U6KQTyOqMfSvwzmXyMofmUUdVTFUSSkA0EkgBptcieiGPZJUTySv4RiEEgeyYORJKQewSSAKkvMswNeWLnQpgdTe9Ok0uPqCACSUj21y8AD/5KKFpSZP5cVdOE/jh28WBiM3+AMcavDzJWPkq+OZreXZZ0YB/rIpCErP7928XnCoNz/r2E5anc708BN7+GED4mNN1YhCPgdWAI5JUhVEEcksc/Kj3WMuva5pKHHb8PCgSyRSDifUeVwVdBKOxHVsYEAtkikMfJRb/veO2HTAk2pr51WeyT+mfBBtHeBGguiiCQDWl4nEx+F/y4qcqqsWnkCFcTvh9ZQEYgGwVyEUumsP4J2p//vDsviZFbV/R9Dada/clhbhL2uZ5g9di5j1f0gee1EMiLOn+cFK0eb2qrtk1UApGMfhVhBVkbYaX2pGubc0/HpIUi2flKuGungkDWMlD2vUf90yrrgCk93fImeG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zF1bytxMCx/f3e/cE9d4JZCcjgw/dWwIIZG9TS8cUBBCIgiIx9pYAAtnb1NIxBQEEoqBIjL0lgED2NrV0TEHgP1VLsH2X3+jEAAAAAElFTkSuQmCC",Qb="",sA={name:"msgList",components:{TopPopup:Fe},props:{visible:{type:Boolean,default:!1},request:{default:null},useInfo:{type:Object,default:()=>{}}},data(){return{listData:[],visibleListMsg:!1,opinion:{},textTips:"",statusTips:!1,typeTips:""}},computed:{Del(){return nA}},watch:{visible:{handler(e,t){e&&this.request.get("/auth/user/opinion/my").then(i=>{i.code===200&&(this.listData=i.data)})}}},methods:{handleMsg(e){this.$emit("handleMsg",e.opinionName)},handleOpenMsg(e){this.opinion=e,this.visibleListMsg=!0},handleTipsCancel(){this.visibleListMsg=!1},async handleDel(){this.opinion.opinionId&&(this.visibleListMsg=!1,this.$emit("handleTips","",!0,"loading"),await this.request.get(`/auth/user/opinion/del/${this.opinion.opinionId}`).then(e=>{e.code===200?(this.$emit("handleTips","\u5220\u9664\u6210\u529F",!0,"success"),this.request.get("/auth/user/opinion/my").then(t=>{t.code===200&&(this.listData=t.data)})):this.$emit("handleTips",e.msg,!0,"error")}).catch(e=>{this.$emit("handleTips",e.msg,!0,"error")}))}}},rA={key:0,class:"top-msg"},oA=["onClick"],aA={class:"top-msg-items-text"},lA=["onClick"],cA=["src"];function dA(e,t,i,s,r,o){const a=n.resolveComponent("TopPopup");return n.openBlock(),n.createElementBlock("div",null,[i.visible?(n.openBlock(),n.createElementBlock("div",rA,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.listData,l=>(n.openBlock(),n.createElementBlock("div",{class:"top-msg-items",onClick:c=>o.handleMsg(l)},[n.createElementVNode("div",aA,n.toDisplayString(l.opinionName),1),n.createElementVNode("div",{class:"top-msg-items-del",onClick:n.withModifiers(c=>o.handleOpenMsg(l),["stop"])},[n.createElementVNode("img",{src:o.Del},null,8,cA)],8,lA)],8,oA))),256))])):n.createCommentVNode("",!0),n.createVNode(a,{isIndex:2299,titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06\u5E38\u7528\u610F\u89C1'${r.opinion.opinionName}'\u5220\u9664`,cancel:o.handleTipsCancel,comfig:o.handleDel,visible:r.visibleListMsg,"onUpdate:visible":t[0]||(t[0]=l=>r.visibleListMsg=l)},null,8,["context","cancel","comfig","visible"])])}const Ui=ae(sA,[["render",dA],["__scopeId","data-v-87fc3e49"]]),Ub="",pA={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:tt,attchViews:$t,TopPopup:Fe,departPerson:yt.departPerson,MsgList:Ui},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||"0",request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.checkedArray=[],this.entity.source="1",this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u52A0\u7B7E\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;let e=[];this.multiNodeParticipant[this.partObjId].map((t,i)=>{e.push(t)}),this.handleTips("",!0,"loading"),this.param.request.post("/bladex/blade-workflow/tis/addSignTask",{signPersoneds:e,taskId:this.param.taskInstId,comment:this.commentMsg}).then(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,s)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("counterSign")}}},hA={class:"process-popup-content"},uA={class:"process-popup-content-msg"},mA={key:0},fA={class:"process-pc-value"},gA={class:"process-popup-textarea"},yA={class:"process-popup-textarea-num"},AA={key:0,class:"msg-btn"},kA={key:0,class:"process-popup-content-person"},EA=["onClick"],bA={class:"process-pc-value--people"},CA={key:0,class:"process-pc-value--data"},wA={key:1,class:"process-pc-value--data",style:{color:"#888"}},NA=["onClick"],TA={class:"process-pc-value--people"},IA={key:0,class:"process-pc-value--data"},BA={key:1,class:"process-pc-value--data",style:{color:"#888"}},xA={style:{height:"100%"}};function SA(e,t,i,s,r,o){const a=n.resolveComponent("TopTips"),l=n.resolveComponent("departPerson"),c=n.resolveComponent("TopPopup"),m=n.resolveComponent("attchViews"),u=n.resolveComponent("MsgList");return n.openBlock(),n.createElementBlock("div",hA,[n.createElementVNode("div",uA,[i.param.isMsg?(n.openBlock(),n.createElementBlock("div",mA,[n.createElementVNode("div",{class:"process-radio-item",onClick:t[0]||(t[0]=p=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):n.createCommentVNode("",!0),t[6]||(t[6]=n.createElementVNode("div",{class:"process-pc-label"},[n.createTextVNode(" \u52A0\u7B7E\u7406\u7531\uFF1A"),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",fA,[n.createElementVNode("div",gA,[n.withDirectives(n.createElementVNode("textarea",{"onUpdate:modelValue":t[1]||(t[1]=p=>r.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[n.vModelText,r.commentMsg]]),n.createElementVNode("div",yA,n.toDisplayString(r.commentMsg.length)+"/200 ",1)]),i.param.isMsg?(n.openBlock(),n.createElementBlock("div",AA,[n.createElementVNode("span",{class:"msg-btn-click",onClick:t[2]||(t[2]=p=>o.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):n.createCommentVNode("",!0)])]),(n.openBlock(),n.createElementBlock("div",kA,[r.nextNodeData.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(r.nextNodeData,p=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[t[8]||(t[8]=n.createElementVNode("div",null,[n.createElementVNode("br"),n.createTextVNode(" \u5BA1\u6279\u4EBA "),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",{class:"process-pc-value",onClick:y=>o.handleOpenPopup(p.id)},[n.createElementVNode("div",bA,[r.partNode[p.id]&&r.partNode[p.id].length?(n.openBlock(),n.createElementBlock("div",CA,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.partNode[p.id],(y,k)=>(n.openBlock(),n.createElementBlock("span",null,n.toDisplayString(k==0?y:`,${y}`),1))),256))])):(n.openBlock(),n.createElementBlock("div",wA,[...t[7]||(t[7]=[n.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])]))])],8,EA)],64))),256)):r.outGatewayUserTaskModel.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(r.outGatewayUserTaskModel,p=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[t[10]||(t[10]=n.createElementVNode("div",{class:"process-pc-label"},[n.createElementVNode("br"),n.createTextVNode(" \u5BA1\u6279\u4EBA "),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",{class:"process-pc-value",onClick:y=>o.handleOpenPopup(p.id)},[n.createElementVNode("div",TA,[r.partNode[p.id]&&r.partNode[p.id].length?(n.openBlock(),n.createElementBlock("div",IA,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.partNode[p.id],(y,k)=>(n.openBlock(),n.createElementBlock("span",null,n.toDisplayString(k==0?y:`,${y}`),1))),256))])):(n.openBlock(),n.createElementBlock("div",BA,[...t[9]||(t[9]=[n.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])]))])],8,NA)],64))),256)):n.createCommentVNode("",!0)])),n.createVNode(a,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),n.createVNode(c,{visible:r.visible,"onUpdate:visible":t[3]||(t[3]=p=>r.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:n.withCtx(()=>[n.createElementVNode("div",xA,[r.visible?(n.openBlock(),n.createBlock(l,n.mergeProps({key:0,isTitle:!1,visible:r.visible,request:i.param.request},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["visible","request","onCallback","onCancel"])):n.createCommentVNode("",!0)])]),_:1},8,["visible"]),r.labels=="5"?(n.openBlock(),n.createBlock(m,{key:1,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):n.createCommentVNode("",!0),n.createVNode(c,{visible:r.visibleListMsg,"onUpdate:visible":t[4]||(t[4]=p=>r.visibleListMsg=p),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:n.withCtx(()=>[n.createVNode(u,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),n.createVNode(c,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[5]||(t[5]=p=>r.visibleMsgComfig=p)},null,8,["context","cancel","comfig","visible"])])}const DA=ae(pA,[["render",SA],["__scopeId","data-v-95ed04bb"]]),jb="",PA={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:tt,attchViews:$t,TopPopup:Fe,departPerson:yt.departPerson,MsgList:Ui},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,maxMultiple:1,checkedArray:[]},multiNodeParticipant:{},partNodeArr:{},partObjId:[],partNode:{},actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,this.attachShow(),e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg){this.textTips="\u8BF7\u8F93\u5165\u8F6C\u5BA1\u7406\u7531!",this.$refs.topTips.handleOpen();return}let e=this.partNodeArr[this.partObjId].map(t=>t.id).join(",");this.handleTips("",!0,"loading"),await this.param.request.post("/bladex/blade-workflow/tis/transferTask",{comment:this.commentMsg,taskId:this.param.taskInstId,assignee:e}).then(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(t.msg,!0,"error")})},attachShow(e="\u529E\u7406"){const t=(this.param||{}).extendedProperties||[];let i=!1,s,r="";s=t.find(a=>a.name=="delegateTaskButtonAnnex"),r=s?s.value:"",r&&(i=!0);let o="";if(typeof r!="string"&&r!=null&&r.map(a=>{a.indexOf(this.operationLabel)!=-1&&(i=!0,o=a)}),o&&(r=o),i){const a=r.split(":");this.attachRule.required=a[1]=="true",this.attachRule.limit=a[2]==-1?999:a[2],this.otherList=r;let l=this.otherList.split(":");this.limit=l[2],this.requires=JSON.parse(l[1]),this.labels=l[0]}return this.labels,this.limit,i},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNodeArr[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNodeArr[this.partObjId].push(t),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,s)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("delegateTask")}}},MA={class:"process-popup-content"},OA={class:"process-popup-content-msg"},VA={key:0},RA={class:"process-pc-value"},LA={class:"process-popup-textarea"},vA={class:"process-popup-textarea-num"},FA={key:0,class:"msg-btn"},QA={key:0,class:"process-popup-content-person"},UA=["onClick"],jA={class:"process-pc-value--people"},GA={key:0,class:"process-pc-value--data"},_A={key:1,class:"process-pc-value--data",style:{color:"#888"}},qA=["onClick"],JA={class:"process-pc-value--people"},zA={key:0,class:"process-pc-value--data"},KA={key:1,class:"process-pc-value--data",style:{color:"#888"}},HA={style:{height:"100%"}};function YA(e,t,i,s,r,o){const a=n.resolveComponent("TopTips"),l=n.resolveComponent("departPerson"),c=n.resolveComponent("TopPopup"),m=n.resolveComponent("attchViews"),u=n.resolveComponent("MsgList");return n.openBlock(),n.createElementBlock("div",MA,[n.createElementVNode("div",OA,[i.param.isMsg?(n.openBlock(),n.createElementBlock("div",VA,[n.createElementVNode("div",{class:"process-radio-item",onClick:t[0]||(t[0]=p=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):n.createCommentVNode("",!0),t[6]||(t[6]=n.createElementVNode("div",{class:"process-pc-label"},[n.createTextVNode(" \u8F6C\u5BA1\u7406\u7531\uFF1A"),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",RA,[n.createElementVNode("div",LA,[n.withDirectives(n.createElementVNode("textarea",{"onUpdate:modelValue":t[1]||(t[1]=p=>r.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[n.vModelText,r.commentMsg]]),n.createElementVNode("div",vA,n.toDisplayString(r.commentMsg.length)+"/200 ",1)]),i.param.isMsg?(n.openBlock(),n.createElementBlock("div",FA,[n.createElementVNode("span",{class:"msg-btn-click",onClick:t[2]||(t[2]=p=>o.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):n.createCommentVNode("",!0)])]),(n.openBlock(),n.createElementBlock("div",QA,[r.nextNodeData.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(r.nextNodeData,p=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[t[8]||(t[8]=n.createElementVNode("div",null,[n.createTextVNode(" \u5BA1\u6279\u4EBA "),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",{class:"process-pc-value",onClick:y=>o.handleOpenPopup(p.id)},[n.createElementVNode("div",jA,[r.partNode[p.id]&&r.partNode[p.id].length?(n.openBlock(),n.createElementBlock("div",GA,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.partNode[p.id],(y,k)=>(n.openBlock(),n.createElementBlock("span",null,n.toDisplayString(k==0?y:`,${y}`),1))),256))])):(n.openBlock(),n.createElementBlock("div",_A,[...t[7]||(t[7]=[n.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])]))])],8,UA)],64))),256)):r.outGatewayUserTaskModel.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(r.outGatewayUserTaskModel,p=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[t[10]||(t[10]=n.createElementVNode("div",{class:"process-pc-label"},[n.createTextVNode(" \u5BA1\u6279\u4EBA "),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",{class:"process-pc-value",onClick:y=>o.handleOpenPopup(p.id)},[n.createElementVNode("div",JA,[r.partNode[p.id]&&r.partNode[p.id].length?(n.openBlock(),n.createElementBlock("div",zA,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.partNode[p.id],(y,k)=>(n.openBlock(),n.createElementBlock("span",null,n.toDisplayString(k==0?y:`,${y}`),1))),256))])):(n.openBlock(),n.createElementBlock("div",KA,[...t[9]||(t[9]=[n.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])]))])],8,qA)],64))),256)):n.createCommentVNode("",!0)])),n.createVNode(a,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),n.createVNode(c,{visible:r.visible,"onUpdate:visible":t[3]||(t[3]=p=>r.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:n.withCtx(()=>[n.createElementVNode("div",HA,[r.visible?(n.openBlock(),n.createBlock(l,n.mergeProps({key:0,isTitle:!1,visible:r.visible,request:i.param.request},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["visible","request","onCallback","onCancel"])):n.createCommentVNode("",!0)])]),_:1},8,["visible"]),r.labels=="1"?(n.openBlock(),n.createBlock(m,{key:1,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):n.createCommentVNode("",!0),n.createVNode(c,{visible:r.visibleListMsg,"onUpdate:visible":t[4]||(t[4]=p=>r.visibleListMsg=p),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:n.withCtx(()=>[n.createVNode(u,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),n.createVNode(c,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[5]||(t[5]=p=>r.visibleMsgComfig=p)},null,8,["context","cancel","comfig","visible"])])}const WA=ae(PA,[["render",YA],["__scopeId","data-v-73a21e66"]]),XA="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACZ5JREFUeF7tne1xG0cMhkE2EqeS2JXY6iLRZMb2jEdJF3YqiVNJ5EbMzIlhRDIiecAt9uPeh3+9wC5e4BEWx7O0MT4ogAIXFdigDQqgwGUFAITqQIErCgAI5YECAEINoEBMATpITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk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yiC3sYD5C1QgIchUu7jLsxAVkbJMBRppoTvIwLyFogAY6Esi7ncmxARocEOMpVcpKn8QEZFRLgSCrpsm7XAchokABH2SpO9LYeQEaBBDgSy7m863UB0jskwFG+gpM9rg+QXiEBjuRSznG/TkB6gwQ4cqq3gtf1AtILJMBRoYzztlg3IK0hAY68yq3kef2AtIIEOCqVcO42GoDUhgQ4cqu2oncdQGpBAhwVyzd/Ky1AsiEBjvyKrbyDHiBZkABH5dKts50mIKUhAY461dpgF11ASkECHA3Ktt6W2oAshQQ46lVqo50AJAoJcDQq2brbAshB7/3fJ5n7R3K+2MPmrm6q2K2FAgByrvr97p2ZvTez/V+WOv082tbunv7yFB8JBQDkUpr3HeW1mf1gZt9sa4+AIcHESZAAopdzInYoACAOsViqpwCA6OWciB0KAIhDLJbqKQAgejknYocCAOIQi6V6CgCIXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6ikAIHo5J2KHAgDiEIulegoAiF7OidihAIA4xGKpngIAopdzInYoACAOsViqpwCA6OWciB0KAIhDLJbqKQAgejknYocCAOIQi6V6CgCIXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6inwD771qeduEnFsAAAAAElFTkSuQmCC",Gb="",_b="",ZA={name:"TreeNode",components:{SelectFixedPerson:Va,TopPopup:Fe,TopTips:tt,departPerson:yt.departPerson},props:{items:{type:Array,default:()=>[]},endNode:{type:Boolean,default:!1},nodeType:{type:String,default:"outing"},param:{type:Object,default:()=>{}},checkType:{type:String,default:""}},data(){return{currentClickItem:{},fixedSelect:{},showFixedPerson:!1,fixedPersonList:[],nodeItems:[],visible:!1,checkBoxArr:[],checkBoxItem:[],radioArr:"",radioItem:[],partObjId:"",entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0},multiNodeParticipant:{},partNode:{},partNodeArr:{},textTips:"",statusTips:!1,typeTips:"success",gateVars:{},onMultiNodeData:{},onVarsData:{},personMake:[],personMakeList:{}}},watch:{items:{handler(e,t){e&&e.length&&(this.multiNodeParticipant={},this.partNode={},this.partNodeArr={},this.gateVars={},this.nodeItems=JSON.parse(JSON.stringify(e)),this.nodeItems,this.nodeItems.map(i=>{if(Array.isArray(i.assignees),i.assignees,i.userTaskModelDTO||(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList}),Array.isArray(i.assignees)&&i.assignees.length&&(this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNodeArr[i.id]||(this.partNodeArr[i.id]=[]),i.assignees.forEach(s=>{this.partNodeArr,this.multiNodeParticipant;const r=this.partNodeArr[i.id].find(a=>a.name==s.name),o=this.multiNodeParticipant[i.id].find(a=>a==s.id);r||this.partNodeArr[i.id].push(s),o||this.multiNodeParticipant[i.id].push(s.id)})),i.userTaskModelDTO&&i.userTaskModelDTO.participantList&&i.userTaskModelDTO.participantList.length&&i.userTaskModelDTO.humanPerformer&&i.userTaskModelDTO.participantList.map(s=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.partNodeArr[i.id]||(this.partNodeArr[i.id]=[]),this.multiNodeParticipant[i.id].includes(s.id)||this.multiNodeParticipant[i.id].push(s.id),this.partNode[i.id].includes(s.name)||this.partNode[i.id].push(s.name),this.partNodeArr[i.id].find(r=>r.name==s.name)||this.partNodeArr[i.id].push(s)}),(i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||i.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(i.id),i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let s={taskDefId:i.id,postIds:[]};i.userTaskModelDTO.routeTxt.postList.map(r=>{s.postIds.push(r.postId)}),this.param.request.post("/auth/user/getTaskAuditor",{deptId:this.param.taskNode&&this.param.taskNode[0].vars?this.param.taskNode[0].vars._businessDeptId:"",taskPostIds:[s]}).then(r=>{let o=[],a=[],l=!1;r.data.map(m=>{m.posts.map(u=>{a.push(...u.users),u.users.length==1?o.push(...u.users):l=!0})}),o.length>i.loopCardinality&&i.loopCardinality>0&&(l=!0),l&&(o=[]);let c=[];r.data[0].posts.map(m=>{c.push({...m,projectPost:!(this.param.taskNode&&this.param.taskNode[0].vars&&this.param.taskNode[0].vars._businessDeptId),id:m.users.map(u=>u.id)})}),a.length==0&&(i.noPersonnel=!0),o.length>0&&(i.noPersonnel=!0,this.partObjId=i.id,this.handleCallback(o)),i.positionArray=c})}this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(s=>{s.code==200&&(this.personMakeList=s.data)})}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),this.$emit("onVars",this.gateVars),this.checkType=="ExclusiveGatewayModel"&&e.length==1&&this.handleRadioClick(e[0]))},immediate:!0,deep:!0}},computed:{check(){return js}},mounted(){},methods:{clear(){this.radioArr="",this.radioItem=[],this.checkBoxArr=[],this.checkBoxItem=[],this.multiNodeParticipant={},this.partNode={},this.partNodeArr={},this.gateVars={}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"||e=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],this.partNodeArr[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.partNodeArr[this.partObjId].push(t)}),this.onMultiNodeData&&(this.multiNodeParticipant={...this.multiNodeParticipant,...this.onMultiNodeData}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr)},handleRadioClick(e){e&&(this.multiNodeParticipant={},this.gateVars={},this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),e.incomingConditionItemList.length>0&&e.incomingConditionItemList[0].itemName&&e.incomingConditionItemList[0].compareValue&&(this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue),this.radioArr=e.id,this.radioItem=[e],this.handleNode(e),this.$emit("onVars",this.gateVars))},handleCheckBoxClick(e){e&&(this.checkBoxArr.includes(e.id)?(e.incomingConditionItemList.length>0&&e.incomingConditionItemList[0].itemName&&e.incomingConditionItemList[0].compareValue&&delete this.gateVars[e.incomingConditionItemList[0].itemName],delete this.multiNodeParticipant[e.id],this.checkBoxItem.splice(this.checkBoxArr.indexOf(e.id),1),this.checkBoxArr.splice(this.checkBoxArr.indexOf(e.id),1)):(e.incomingConditionItemList.length>0&&e.incomingConditionItemList[0].itemName&&e.incomingConditionItemList[0].compareValue&&(this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue),this.checkBoxItem.push(e),this.checkBoxArr.push(e.id)),this.handleNode(e),this.$emit("onVars",this.gateVars))},handleNode(e){let t=e.childNode&&e.childNode.length?e.childNode:e&&e.length?e:[e];t&&t.length&&t.forEach((i,s)=>{i.participantList&&i.participantList.length?i.participantList.forEach((r,o)=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.partNodeArr[i.id]||(this.partNodeArr[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name),this.partNodeArr[i.id].find(a=>a.name==r.name)||this.partNodeArr[i.id].push(r)}):i.id&&i.humanPerformerName=="\u56FA\u5B9A\u4EBA\u5458"&&this.param.request.post(`/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:[i.id]}).then(r=>{r.code==200&&(this.partNode[i.id]={},this.partNode[i.id]=r.data[i.id].split(";"))}),this.nodeType=="outing"&&(this.onVarsData&&(this.gateVars={...this.gateVars,...this.onVarsData}),this.$emit("onVars",this.gateVars))})},handleOpenFixedPerson(e){this.currentClickItem=e,this.partObjId=e.id,this.showFixedPerson=!0,this.fixedPersonList=e.userList||[]},updateFixedPersonVisible(e){this.showFixedPerson=e},updateFixedSelect(e){},handleSumbitFixedPerson(e){this.fixedSelect[this.partObjId]=e,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],this.partNodeArr[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.userId),this.partNode[this.partObjId].push(t.realName),this.partNodeArr[this.partObjId].push({...t,name:t.realName,id:t.userId})}),this.onMultiNodeData&&(this.multiNodeParticipant={...this.multiNodeParticipant,...this.onMultiNodeData}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),this.showFixedPerson=!1},handleClickFixedPerson(e){this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],this.partNodeArr[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.userId),this.partNode[this.partObjId].push(t.realName),this.partNodeArr[this.partObjId].push({...t,name:t.realName,id:t.userId})}),this.onMultiNodeData&&(this.multiNodeParticipant={...this.multiNodeParticipant,...this.onMultiNodeData}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),this.showFixedPerson=!1},handleOpenPopup(e){if(this.visible=!0,this.partObjId=e.id,this.nodeType=="nexting"?e={...e,...e.userTaskModelDTO}:this.nodeType=="outing"?e={...e,humanPerformer:{name:e.humanPerformerName}}:this.handleTips("\u52A0\u8F7D\u5931\u8D25,\u8BF7\u5237\u65B0",!0,"error"),e.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"||e.humanPerformerName=="\u56FA\u5B9A\u5355\u4F4D"){let t,i=[];this.multiNodeParticipant,this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((s,r)=>{i.push({type:3,id:s.id,subjectId:s.subjectId})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,subjectName:t,checkedArray:i}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"||e.humanPerformerName=="\u56FA\u5B9A\u90E8\u95E8"){let t,i=[],s=[];e.routeTxt.departmentIds.forEach((r,o)=>{e.routeTxt.departmentIds.length>1?i.push(r.rangeId):t=r.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((r,o)=>{s.push({type:3,id:r.id,deptId:t,subjectId:r.subjectId})}),e.routeTxt.departmentIds.length>1?this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,deptCodeArray:i,checkedArray:s}:this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,deptCode:t,checkedArray:s}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"||e.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let t=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((i,s)=>{t.push({type:3,id:i.id,subjectId:i.subjectId})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:[5],request:this.param.request,codeType:[8],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,positionArray:e.positionArray,checkedArray:t}}else{let t=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((i,s)=>{t.push({type:3,id:i.id,subjectId:i.subjectId})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,checkedArray:t}}},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},onMultiNode(e){e&&(this.onMultiNodeData=e,this.multiNode={...this.multiNode,...this.onMultiNodeData},this.$emit("onMultiNode",this.multiNode),this.$emit("onMultiNodeObj",this.partNodeArr))},onVars(e){e&&(this.onVarsData=e,this.getVars={...this.gateVars,...this.onVarsData},this.$emit("onVars",this.getVars))}}},$A={key:0,class:"treenode"},ek={key:0,class:"treenode-multi"},tk={class:"treenode-node",style:{"margin-top":"0"}},ik=["onClick"],nk=["src"],sk=["onClick"],rk={class:"treenode-node"},ok={key:0},ak={key:1,class:"personselect"},lk={class:"personselect-name"},ck={class:"items-person"},dk=["onClick"],pk=["onClick"],hk={key:2,class:"items-person-name"},uk={key:3,class:"items-person-name"},mk={key:4,class:"items-person-name"},fk={key:0,class:"views-items-includes"},gk={class:"views-items-and2"},yk={key:0},Ak={class:"include"},kk={class:"include include-name"},Ek={class:"treenode-node"},bk={key:0},Ck={key:1,class:"personselect"},wk={class:"personselect-name"},Nk={class:"items-person"},Tk=["onClick"],Ik=["onClick"],Bk={key:2,class:"items-person-name"},xk={key:3,class:"items-person-name"},Sk={key:4,class:"items-person-name"},Dk={key:0,class:"views-items-includes"},Pk={class:"views-items-and2"},Mk={key:0},Ok={class:"include"},Vk={class:"include include-name"},Rk={key:1,class:"treenode-single"},Lk={class:"treenode-single-items"},vk={class:"personselect"},Fk={class:"personselect-name"},Qk={key:0,class:"items-person"},Uk=["onClick"],jk=["onClick"],Gk={key:2,class:"items-person-name"},_k={class:"items-person-name"},qk={key:0},Jk={key:1,class:"views-items-includes"},zk={class:"views-items-and2"},Kk={key:0},Hk={class:"include"},Yk={class:"include include-name"};function Wk(e,t,i,s,r,o){const a=n.resolveComponent("TreeNode",!0),l=n.resolveComponent("departPerson"),c=n.resolveComponent("TopPopup"),m=n.resolveComponent("SelectFixedPerson"),u=n.resolveComponent("TopTips");return r.nodeItems&&r.nodeItems.length?(n.openBlock(),n.createElementBlock("div",$A,[i.endNode?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",ek,[n.createElementVNode("div",tk,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.nodeItems,p=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[i.checkType=="InclusiveGatewayModel"&&r.nodeItems.length>1?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["treenode-checkbox",r.checkBoxArr.includes(p.id)?"treenode-checkbox-active":""]),onClick:y=>o.handleCheckBoxClick(p)},[n.createElementVNode("span",null,[r.checkBoxArr.includes(p.id)?(n.openBlock(),n.createElementBlock("img",{key:0,class:"treenode-checkbox-active-img",src:o.check},null,8,nk)):n.createCommentVNode("",!0)]),n.createTextVNode(" "+n.toDisplayString(p.nodeName||p.name),1)],10,ik)):i.checkType=="ExclusiveGatewayModel"&&r.nodeItems.length>1?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["treenode-radio",r.radioArr==p.id?"treenode-radio-active":""]),onClick:y=>o.handleRadioClick(p)},[t[1]||(t[1]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(p.nodeName||p.name),1)],10,sk)):n.createCommentVNode("",!0)],64))),256))]),i.checkType=="InclusiveGatewayModel"&&r.checkBoxItem&&r.checkBoxItem.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(r.checkBoxItem,p=>(n.openBlock(),n.createElementBlock("div",rk,[p.childNode&&p.childNode.length?(n.openBlock(),n.createElementBlock("div",ok,[n.createVNode(a,{items:p.childNode,endNode:p.childNode.length==1,nodeType:i.nodeType,param:i.param,checkType:p.type,onOnMultiNode:o.onMultiNode,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnVars"])])):(n.openBlock(),n.createElementBlock("div",ak,[n.createElementVNode("div",lk,n.toDisplayString(p.name||p.nodeName),1),n.createElementVNode("div",ck,[p.userList&&p.userList.length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:"items-person-set",onClick:y=>o.handleOpenFixedPerson(p)}," \u9009\u62E9 ",8,dk)):p.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&p.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(n.openBlock(),n.createElementBlock("div",{key:1,class:"items-person-set",onClick:n.withModifiers(y=>o.handleOpenPopup(p),["stop"])}," \u8BBE\u7F6E ",8,pk)):n.createCommentVNode("",!0),p.userList&&p.userList.length>0?(n.openBlock(),n.createElementBlock("div",hk,n.toDisplayString(r.partNode[p.id]?r.partNode[p.id].join(","):""),1)):p.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&p.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(n.openBlock(),n.createElementBlock("div",uk,n.toDisplayString(r.partNode[p.id]?r.partNode[p.id].join(","):""),1)):p.routeTxt&&p.routeTxt.userNames?(n.openBlock(),n.createElementBlock("div",mk,n.toDisplayString(p.routeTxt.userNames),1)):n.createCommentVNode("",!0)]),p.routeTxt&&p.routeTxt.length>0?(n.openBlock(),n.createElementBlock("div",fk,[t[2]||(t[2]=n.createElementVNode("div",{class:"views-items-name2"},n.toDisplayString("\u6240\u5C5E\u8303\u56F4"),-1)),n.createElementVNode("div",gk,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(p.routeTxt,(y,k)=>(n.openBlock(),n.createElementBlock("div",{key:y.type},[y.ids&&y.ids.length>0?(n.openBlock(),n.createElementBlock("div",yk,[n.createElementVNode("div",Ak,[n.createElementVNode("b",{class:n.normalizeClass(["include include-type",["include-"+y.type]])},n.toDisplayString(y.type=="user"?"\u7528\u6237":y.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"),3),n.createElementVNode("span",kk,n.toDisplayString(y.name),1)]),k!==p.routeTxt.length-1?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["include include-assign",["include-assign-"+(y.assigneeRetain?"true":"false")]])},n.toDisplayString(p.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"),3)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0)]))),128))])])):n.createCommentVNode("",!0)]))]))),256)):n.createCommentVNode("",!0),i.checkType=="ExclusiveGatewayModel"&&r.radioItem&&r.radioItem.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(r.radioItem,p=>(n.openBlock(),n.createElementBlock("div",Ek,[p.childNode&&p.childNode.length?(n.openBlock(),n.createElementBlock("div",bk,[n.createVNode(a,{items:p.childNode,endNode:p.childNode.length==1,nodeType:i.nodeType,param:i.param,checkType:p.type,onOnMultiNode:o.onMultiNode,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnVars"])])):(n.openBlock(),n.createElementBlock("div",Ck,[n.createElementVNode("div",wk,n.toDisplayString(p.name||p.nodeName),1),n.createElementVNode("div",Nk,[p.userList&&p.userList.length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:"items-person-set",onClick:y=>o.handleOpenFixedPerson(p)}," \u9009\u62E9 ",8,Tk)):p.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&p.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(n.openBlock(),n.createElementBlock("div",{key:1,class:"items-person-set",onClick:n.withModifiers(y=>o.handleOpenPopup(p),["stop"])}," \u8BBE\u7F6E ",8,Ik)):n.createCommentVNode("",!0),p.userList&&p.userList.length>0?(n.openBlock(),n.createElementBlock("div",Bk,n.toDisplayString(r.partNode[p.id]?r.partNode[p.id].join(","):""),1)):p.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&p.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(n.openBlock(),n.createElementBlock("div",xk,n.toDisplayString(r.partNode[p.id]?r.partNode[p.id].join(","):""),1)):p.routeTxt&&p.routeTxt.userNames?(n.openBlock(),n.createElementBlock("div",Sk,n.toDisplayString(p.routeTxt.userNames),1)):n.createCommentVNode("",!0)]),p.routeTxt&&p.routeTxt.length>0?(n.openBlock(),n.createElementBlock("div",Dk,[t[3]||(t[3]=n.createElementVNode("div",{class:"views-items-name2"},n.toDisplayString("\u6240\u5C5E\u8303\u56F4"),-1)),n.createElementVNode("div",Pk,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(p.routeTxt,(y,k)=>(n.openBlock(),n.createElementBlock("div",{key:y.type},[y.ids&&y.ids.length>0?(n.openBlock(),n.createElementBlock("div",Mk,[n.createElementVNode("div",Ok,[n.createElementVNode("b",{class:n.normalizeClass(["include include-type",["include-"+y.type]])},n.toDisplayString(y.type=="user"?"\u7528\u6237":y.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"),3),n.createElementVNode("span",Vk,n.toDisplayString(y.name),1)]),k!==p.routeTxt.length-1?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["include include-assign",["include-assign-"+(y.assigneeRetain?"true":"false")]])},n.toDisplayString(p.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"),3)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0)]))),128))])])):n.createCommentVNode("",!0)]))]))),256)):n.createCommentVNode("",!0)])),i.endNode?(n.openBlock(),n.createElementBlock("div",Rk,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.nodeItems,p=>(n.openBlock(),n.createElementBlock("div",Lk,[n.createElementVNode("div",vk,[n.createElementVNode("div",Fk,n.toDisplayString(p.name||p.nodeName),1),p.nodeType!=="endEvent"?(n.openBlock(),n.createElementBlock("div",Qk,[p.userList&&p.userList.length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:"items-person-set",onClick:y=>o.handleOpenFixedPerson(p)}," \u9009\u62E9 ",8,Uk)):p.setPersonnel?(n.openBlock(),n.createElementBlock("div",Gk,n.toDisplayString((p.assignees||[]).map(y=>y.name).join(",")),1)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"items-person-set",onClick:n.withModifiers(y=>o.handleOpenPopup(p),["stop"])}," \u8BBE\u7F6E ",8,jk)),n.createElementVNode("div",_k,[!r.partNode[p.id]&&p.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"&&p.noPersonnel?(n.openBlock(),n.createElementBlock("div",qk," \u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E ")):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(r.partNode[p.id]?r.partNode[p.id].join(","):""),1)])])):n.createCommentVNode("",!0),p.routeTxt&&p.routeTxt.length>0?(n.openBlock(),n.createElementBlock("div",Jk,[t[4]||(t[4]=n.createElementVNode("div",{class:"views-items-name2"},n.toDisplayString("\u6240\u5C5E\u8303\u56F4"),-1)),n.createElementVNode("div",zk,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(p.routeTxt,(y,k)=>(n.openBlock(),n.createElementBlock("div",{key:y.type},[y.ids&&y.ids.length>0?(n.openBlock(),n.createElementBlock("div",Kk,[n.createElementVNode("div",Hk,[n.createElementVNode("b",{class:n.normalizeClass(["include include-type",["include-"+y.type]])},n.toDisplayString(y.type=="user"?"\u7528\u6237":y.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"),3),n.createElementVNode("span",Yk,n.toDisplayString(y.name),1)]),k!==p.routeTxt.length-1?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["include include-assign",["include-assign-"+(y.assigneeRetain?"true":"false")]])},n.toDisplayString(p.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"),3)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0)]))),128))])])):n.createCommentVNode("",!0)])]))),256))])):n.createCommentVNode("",!0),n.createVNode(c,{visible:r.visible,"onUpdate:visible":t[0]||(t[0]=p=>r.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:n.withCtx(()=>[r.visible?(n.openBlock(),n.createBlock(l,n.mergeProps({key:0,isTitle:!1},r.entity,{onCallback:o.handleCallback}),null,16,["onCallback"])):n.createCommentVNode("",!0)]),_:1},8,["visible"]),n.createVNode(m,{visible:r.showFixedPerson,list:r.fixedPersonList,multiple:r.currentClickItem.loopCardinality==-1,select:r.fixedSelect[r.partObjId]||[],onUpdateList:o.handleClickFixedPerson,onUpdateVisible:o.updateFixedPersonVisible,onUpdateSelect:o.updateFixedSelect,onConfirm:o.handleSumbitFixedPerson},null,8,["visible","list","multiple","select","onUpdateList","onUpdateVisible","onUpdateSelect","onConfirm"]),n.createVNode(u,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"])])):n.createCommentVNode("",!0)}const Xk=ae(ZA,[["render",Wk],["__scopeId","data-v-c32b0f83"]]),qb="",Zk={name:"tree-person",components:{TreeNode:Xk},props:{items:{type:Array,default:()=>[]},nodeType:{type:String,default:"outing"},param:{type:Object,default:()=>{}}},data(){return{nodeItems:[],visible:!1,partObjId:"",partNode:[],firstCheck:"",firstCheckItem:{},firstType:"",firstMultiCheck:[],firstMultiCheckItem:[],firstMultiType:[],firstMultiCheckSub:[],firstMultiCheckItemSub:[],firstMultiTypeSub:[],childrenItems:[],childrenEndItems:!1,childrenItemsSub:[],childrenEndItemsSub:!1,gateVars:{},multiNode:{},partNodeArr:{},getVars:{}}},watch:{items:{handler(e,t){e&&e.length&&(this.nodeType=="nexting"?(this.nodeItems=[],this.childrenEndItems=!0,e.forEach(i=>{i={...i,...i.userTaskModelDTO},this.nodeItems.push(i)})):this.nodeType=="outing"&&(this.nodeItems=e),this.nodeItems.length==1&&this.nodeItems[0].type=="ExclusiveGatewayModel"&&this.nodeItems[0].childNode&&this.nodeItems[0].childNode.length==1&&this.handleFirstNodeClick(this.nodeItems[0]),this.nodeItems)},immediate:!0,deep:!0}},methods:{filterMultiItems(e=[]){return this.firstMultiCheck,e.filter(t=>this.firstMultiCheck.includes(t.nodeInfoDTO?t.nodeInfoDTO.id:t.id))},filterMultiItemsSub(e=[]){return this.firstMultiCheckSub,e.filter(t=>this.firstMultiCheckSub.includes(t.nodeInfoDTO?t.nodeInfoDTO.id:t.id))},onMultiNode(e,t=""){t&&Object.prototype.toString.call(e)=="[object Object]"?Object.prototype.toString.call(this.multiNode)=="[object Object]"?Object.keys(e).forEach(i=>{e[i]||(e[i]=[""]),e[i]&&e[i].length>=1?this.multiNode[i]=e[i].filter(s=>s):this.multiNode[i]=e[i]}):this.multiNode=e:this.multiNode=e,this.$emit("onMultiNode",this.multiNode)},onMultiNodeObj(e){this.partNodeArr=e,this.$emit("onMultiNodeObj",this.partNodeArr)},onVars(e){e?this.getVars={...this.gateVars,...e}:this.getVars={...this.gateVars},this.$emit("onVars",this.getVars)},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"||e=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"},handleMultiFirstNodeClick(e,t=[]){let i=e;if(i&&i.nodeInfoDTO&&(i=i.nodeInfoDTO),this.firstMultiCheck.includes(i.id)){this.firstMultiCheck=this.firstMultiCheck.filter(s=>s!=i.id),this.firstMultiCheckItem=this.firstMultiCheckItem.filter(s=>s.id!=i.id),this.firstMultiType=this.firstMultiType.filter(s=>s!=i.nodeType),delete this.param.selChildrenItems[i.id];return}if(i){this.firstMultiCheck.push(i.id),this.firstMultiCheckItem.push(i),this.firstMultiType.push(i.nodeType);let s=[i];i.branches&&i.branches.length?(this.childrenItems=i.branches,this.childrenEndItems=!1):(this.childrenItems=[i],this.childrenEndItems=!0),t.forEach(r=>{delete this.param.selChildrenItems[r.id],this.param.selChildrenItems[i.id]=(this.childrenItems||[]).map(o=>o.nodeInfoDTO||o)}),this.gateVars={},s.forEach(r=>{(!this.param||!this.param.vars)&&(this.param.vars={}),Array.isArray(r.incomingConditionItemList)&&r.incomingConditionItemList.length>0&&(this.param.vars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue,this.gateVars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue)})}},handleMultiFirstNodeClickSub(e,t=[]){let i=e;if(i&&i.nodeInfoDTO&&(i=i.nodeInfoDTO),this.firstMultiCheckSub.includes(i.id)){this.firstMultiCheckSub=this.firstMultiCheckSub.filter(s=>s!=i.id),this.firstMultiCheckItemSub=this.firstMultiCheckItemSub.filter(s=>s.id!=i.id),this.firstMultiTypeSub=this.firstMultiTypeSub.filter(s=>s!=i.nodeType),this.childrenItemsSub=this.childrenItemsSub.filter(s=>s.id!=i.id),t.forEach(s=>{delete this.param.selChildrenItems[s.nodeInfoDTO?s.nodeInfoDTO.id:s.id]}),delete this.param.selChildrenItems[i.id];return}if(i){this.firstMultiCheckSub.push(i.id),this.firstMultiCheckItemSub.push(i),this.firstMultiTypeSub.push(i.nodeType);let s=[i];i.branches&&i.branches.length?(this.childrenItemsSub.push(i.branches),this.childrenEndItemsSub=!1):(this.childrenItemsSub.push(i),this.childrenEndItemsSub=!0),t.forEach(r=>{delete this.param.selChildrenItems[r.nodeInfoDTO?r.nodeInfoDTO.id:r.id],this.param.selChildrenItems[i.id]=(this.childrenItemsSub||[]).map(o=>o.nodeInfoDTO||o)}),this.gateVars={},s.forEach(r=>{(!this.param||!this.param.vars)&&(this.param.vars={}),Array.isArray(r.incomingConditionItemList)&&r.incomingConditionItemList.length>0&&(this.param.vars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue,this.gateVars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue)})}},handleFirstNodeClick(e,t=[]){let i=e;if(i&&i.nodeInfoDTO&&(i=i.nodeInfoDTO),i){this.firstCheck=i.id,this.firstCheckItem=i,this.firstType=i.nodeType;let s=[i];i.branches&&i.branches.length?(this.childrenItems=i.branches,this.childrenEndItems=!1):(this.childrenItems=[i],this.childrenEndItems=!0),t.forEach(r=>{const o=this.param.selChildrenItems[r.nodeInfoDTO?r.nodeInfoDTO.id:r.id];Array.isArray(o)&&o.forEach(a=>{delete this.param.selChildrenItems[a.id]}),delete this.param.selChildrenItems[r.nodeInfoDTO?r.nodeInfoDTO.id:r.id],this.param.selChildrenItems[i.id]=(this.childrenItems||[]).map(a=>a.nodeInfoDTO||a)}),this.gateVars={},s.forEach(r=>{(!this.param||!this.param.vars)&&(this.param.vars={}),Array.isArray(r.incomingConditionItemList)&&r.incomingConditionItemList.length>0&&(this.param.vars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue,this.gateVars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue)})}}}},$k={class:"test"},e0={key:0},t0={key:0},i0={key:0},n0={key:0,class:"treeperson-firstnode"},s0=["onClick"],r0={key:1,class:"treeperson-firstnode"},o0={key:2,class:"treeperson-firstnode"},a0=["onClick"],l0={key:3,class:"treeperson-firstnode"},c0=["onClick"],d0={class:"treeperson-checkbox-box"},p0=["onClick"],h0={key:0,class:"treeperson-firstnode"},u0={class:"treeperson-checkbox-box"},m0=["onClick"],f0={key:0,class:"treeperson-firstnode"},g0=["onClick"],y0=["onClick"];function A0(e,t,i,s,r,o){const a=n.resolveComponent("tree-person",!0),l=n.resolveComponent("TreeNode");return n.openBlock(),n.createElementBlock("div",$k,[i.param.nodeLoading?(n.openBlock(),n.createElementBlock("div",e0,[...t[3]||(t[3]=[n.createElementVNode("span",null,"\u4E0B\u4E00\u8282\u70B9: ",-1),n.createElementVNode("b",{style:{"font-size":"16px"}},"\u8282\u70B9\u52A0\u8F7D\u4E2D\uFF0C\u8BF7\u7A0D\u540E......",-1)])])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[r.nodeItems&&r.nodeItems.length?(n.openBlock(),n.createElementBlock("div",t0,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.nodeItems,(c,m)=>(n.openBlock(),n.createElementBlock("div",{class:"treeperson",key:m},[c.nodeType=="endEvent"?(n.openBlock(),n.createElementBlock("div",i0," \u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6 ")):c.branches&&c.branches.length?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[i.nodeType=="nexting"&&c.nodeType!="inclusiveGateway"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[c.nodeType=="exclusiveGateway"&&c.branches.length>1?(n.openBlock(),n.createElementBlock("div",n0,[t[5]||(t[5]=n.createElementVNode("div",{class:"treeperson-title"},[n.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),n.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.branches,(u,p)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["treeperson-radio",r.firstCheck==(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-radio-active":""]),onClick:y=>o.handleFirstNodeClick(u,c.branches),key:p},[t[4]||(t[4]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(u.id.includes("Flow")?u.nodeName||u.name?u.nodeName||u.name:u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name:"":u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name||u.nodeName||u.name:u.nodeName||u.name),1)],10,s0))),128))])):c.nodeType=="exclusiveGateway"&&c.branches.length==1?(n.openBlock(),n.createElementBlock("div",r0,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.branches,(u,p)=>(n.openBlock(),n.createElementBlock("div",null,[t[6]||(t[6]=n.createElementVNode("span",null,null,-1)),n.createVNode(a,{ref_for:!0,ref:"TreePersonRef",items:u.branches&&u.branches.length>0?u.branches:[u],nodeType:"nexting",param:i.param,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj},null,8,["items","param","onOnMultiNode","onOnMultiNodeObj"])]))),256))])):c.nodeType=="inclusiveGateway"&&c.branches.length>=1?(n.openBlock(),n.createElementBlock("div",o0,[t[8]||(t[8]=n.createElementVNode("div",{class:"treeperson-title"},[n.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),n.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.branches,(u,p)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["treeperson-radio",r.firstCheck==(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-radio-active":""]),onClick:y=>o.handleMultiFirstNodeClick(u),key:p},[t[7]||(t[7]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name:u.nodeName||u.name),1)],10,a0))),128))])):(n.openBlock(),n.createElementBlock("div",l0,[t[10]||(t[10]=n.createElementVNode("div",{class:"treeperson-title"},[n.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),n.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.branches,(u,p)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["treeperson-radio",r.firstCheck==(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-radio-active":""]),onClick:y=>o.handleFirstNodeClick(u,c.branches),key:p},[t[9]||(t[9]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name:u.nodeName||u.name),1)],10,c0))),128))])),r.childrenItems&&r.childrenItems.length>0&&r.childrenItems[0].nodeInfoDTO&&r.childrenItems[0].nodeInfoDTO.nodeType!="userTask"?(n.openBlock(),n.createBlock(a,{key:r.firstCheck,ref_for:!0,ref:"TreePersonRef",items:[r.firstCheckItem],nodeType:"nexting",param:i.param,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj},null,8,["items","param","onOnMultiNode","onOnMultiNodeObj"])):r.childrenItems&&r.childrenItems.length>1&&r.childrenItems[0].nodeInfoDTO&&r.childrenItems[0].nodeInfoDTO.nodeType=="userTask"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:5},[t[12]||(t[12]=n.createElementVNode("div",{class:"treeperson-title"},[n.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),n.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),n.createElementVNode("div",d0,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.childrenItems,(u,p)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["treeperson-checkbox",r.firstMultiCheckSub.includes(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-checkbox-active":""]),onClick:y=>o.handleMultiFirstNodeClickSub(u,r.childrenItems),key:p},[t[11]||(t[11]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name:u.nodeName||u.name),1)],10,p0))),128))]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.filterMultiItemsSub(r.childrenItems),u=>(n.openBlock(),n.createBlock(l,{items:u.branches&&u.branches.length>0?u.branches:[u.nodeInfoDTO?u.nodeInfoDTO:u],endNode:!0,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:t[0]||(t[0]=p=>o.onMultiNode(p,"multi")),onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","nodeType","param","checkType","onOnMultiNodeObj","onOnVars"]))),256))],64)):(n.openBlock(),n.createBlock(l,{key:6,items:r.childrenItems,endNode:r.childrenEndItems,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"]))],64)):i.nodeType=="nexting"&&c.nodeType=="inclusiveGateway"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[c.nodeType=="inclusiveGateway"&&c.branches.length>=1?(n.openBlock(),n.createElementBlock("div",h0,[t[14]||(t[14]=n.createElementVNode("div",{class:"treeperson-title"},[n.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),n.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),n.createElementVNode("div",u0,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.branches,(u,p)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["treeperson-checkbox",r.firstMultiCheck.includes(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-checkbox-active":""]),onClick:y=>o.handleMultiFirstNodeClick(u,c.branches),key:p},[t[13]||(t[13]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name:u.nodeName||u.name),1)],10,m0))),128))])])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.filterMultiItems(c.branches),u=>(n.openBlock(),n.createBlock(l,{items:u.branches&&u.branches.length>0?u.branches:[u.nodeInfoDTO?u.nodeInfoDTO:u],endNode:!0,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:t[1]||(t[1]=p=>o.onMultiNode(p,"multi")),onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","nodeType","param","checkType","onOnMultiNodeObj","onOnVars"]))),256))],64)):n.createCommentVNode("",!0)],64)):c.nodeType=="exclusiveGateway"&&c.branches&&c.branches.length>1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[t[16]||(t[16]=n.createElementVNode("div",{class:"treeperson-title"},[n.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),n.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),c.type=="ExclusiveGatewayModel"&&c.branches.length==1?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",f0,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.branches,(u,p)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["treeperson-checkbox",r.firstCheck==u.id?"treeperson-checkbox-active":""]),onClick:y=>o.handleFirstNodeClick(u,c.branches),key:p},[t[15]||(t[15]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(u.nodeName||u.name),1)],10,g0))),128))])),n.createVNode(l,{items:r.childrenItems,endNode:r.childrenEndItems,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:t[2]||(t[2]=u=>o.onMultiNode(u,"multi")),onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNodeObj","onOnVars"])],64)):c.nodeType=="exclusiveGateway"&&c.branches&&c.branches.length==1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:3},[t[17]||(t[17]=n.createElementVNode("div",{class:"treeperson-title"},[n.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),n.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),i.nodeType=="nexting"?(n.openBlock(),n.createBlock(l,{key:0,items:[c.branches[0]],endNode:r.childrenEndItems,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"])):(n.openBlock(),n.createBlock(l,{key:1,items:[c.branches[0]],endNode:!0,nodeType:"nexting",param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"]))],64)):c.id||c.nodeInfoDTO&&c.nodeInfoDTO.id?(n.openBlock(),n.createElementBlock(n.Fragment,{key:4},[i.nodeType=="nexting"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[c.nodeInfoDTO&&c.nodeInfoDTO.nodeType=="exclusiveGateway"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[t[19]||(t[19]=n.createElementVNode("div",{class:"treeperson-title"},[n.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),n.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.nodeInfoDTO.branches,(u,p)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["treeperson-radio",r.firstCheck==(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-radio-active":""]),onClick:y=>o.handleFirstNodeClick(u,c.nodeInfoDTO.branches),key:p},[t[18]||(t[18]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(u.nodeName||u.name),1)],10,y0))),128)),(n.openBlock(),n.createBlock(a,{key:r.firstCheck,ref_for:!0,ref:"TreePersonRef",items:[r.firstCheckItem],nodeType:"nexting",param:i.param,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj},null,8,["items","param","onOnMultiNode","onOnMultiNodeObj"]))],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[t[20]||(t[20]=n.createElementVNode("div",{class:"treeperson-title"},[n.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),n.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),n.createVNode(l,{items:[c.nodeInfoDTO?c.nodeInfoDTO:c],endNode:r.childrenEndItems,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"])],64))],64)):(n.openBlock(),n.createBlock(l,{key:1,items:[c],endNode:!0,nodeType:"nexting",param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"]))],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:5},[],64))]))),128))])):n.createCommentVNode("",!0)],64))])}const k0=ae(Zk,[["render",A0],["__scopeId","data-v-d9292cc9"]]),Jb="",E0={data(){},props:{titleText:{default:"top-popup",type:String},context:{default:"\u5185\u5BB9",type:String},cancelText:{default:"\u53D6\u6D88",type:String},comfigText:{default:"\u786E\u5B9A",type:String},comfig:{default:null,type:Function},cancel:{default:null,type:Function},isMask:{default:!0,type:Boolean},isMaskClose:{default:!0,type:Boolean},isTips:{default:!1,type:Boolean},isDrawer:{default:!1,type:Boolean},visible:{default:!1,type:Boolean},isIndex:{type:Number},width:{type:String,default:"95vw"},className:{type:String,default:""},appendClass:{type:String,default:""}},data(){return{show:!1,top:0,useHidden:!1}},watch:{visible:{handler(e,t){if(e)this.show=e,document.body.style.position=="fixed"&&document.body.style.overflow=="hidden"?this.useHidden=!0:this.useHidden=!1,this.top=window.scrollY,document.body.style.position="fixed",document.body.style.top=`${-top}px`,document.body.style.overflow="hidden";else{if(this.useHidden){this.show=e,this.$emit("update:visible",!1);return}else document.body.style.position="",document.body.style.top="",document.body.style.overflow="visible",window.scrollTo(0,this.top);this.show=e,this.$emit("update:visible",!1)}},immediate:!0}},methods:{handleOpen(){this.show=!0,this.top=window.scrollY,document.body.style.position="fixed",document.body.style.top=-this.top+"px"},handleClose(){document.body.style.position="",document.body.style.top="",window.scrollTo(0,this.top),this.show=!1,this.$emit("update:visible",!1)},handleCancel(){typeof this.cancel=="function"&&this.cancel(),this.handleClose()},handleComfig(){typeof this.comfig=="function"&&this.comfig()},isIOS(){let e=navigator.userAgent.includes("iPhone"),t=navigator.userAgent.includes("iPad");return e||t}},mounted(){this.$nextTick(()=>{const e=document.getElementsByClassName("process-warp")[0]?document.getElementsByClassName("process-warp")[0]:document.getElementsByClassName("sumbmitPopup-index-sumbit")[0].getElementsByClassName("top-popup")[0];e.append?e.append(this.$el):e.appendChild(this.$el),document.documentElement.scrollTop||document.body.scrollTop})}},b0={class:"top-popup-header"},C0={class:"header-title"},w0={class:"top-popup-body"},N0={class:"top-popup-drawer--body"},T0={class:"top-tips-header"},I0={class:"top-tips-body"},B0={class:"top-tips-footer"};function x0(e,t,i,s,r,o){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["top-popup-zindex",i.className]),style:n.normalizeStyle(`${i.isIndex?`z-index:${i.isIndex}`:""}`)},[n.createElementVNode("div",{class:"top-popup-mask",style:n.normalizeStyle(r.show&&i.isMask?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;"),onClick:t[0]||(t[0]=a=>i.isMaskClose&&o.handleClose())},null,4),!i.isTips&&!i.isDrawer?(n.openBlock(),n.createElementBlock("div",{key:0,class:"top-popup",style:n.normalizeStyle(r.show?"transform: translateY(0)":"transform: translateY(150%)")},[n.createElementVNode("div",b0,[n.createElementVNode("div",{class:"header-cancel",onClick:t[1]||(t[1]=(...a)=>o.handleCancel&&o.handleCancel(...a))},n.toDisplayString(i.cancelText),1),n.createElementVNode("div",C0,n.toDisplayString(i.titleText),1),n.createElementVNode("div",{class:"header-comfig",onClick:t[2]||(t[2]=(...a)=>o.handleComfig&&o.handleComfig(...a))},n.toDisplayString(i.comfigText),1)]),n.createElementVNode("div",w0,[n.renderSlot(e.$slots,"default",{},void 0,!0)])],4)):!i.isTips&&i.isDrawer?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["top-popup-drawer",r.show?"top-popup-drawer--active":""]),style:n.normalizeStyle(i.width?`width:${i.width};`:"")},[n.createElementVNode("div",N0,[n.renderSlot(e.$slots,"default",{},void 0,!0)])],6)):i.isTips&&!i.isDrawer?(n.openBlock(),n.createElementBlock("div",{key:2,class:"top-tips",style:n.normalizeStyle(r.show?"visibility: visible; opacity: 1; transform: scale(1)":"visibility: hidden; opacity: 0; transform: scale(1.2)")},[n.createElementVNode("div",T0,n.toDisplayString(i.titleText),1),n.createElementVNode("div",I0,n.toDisplayString(i.context),1),n.createElementVNode("div",B0,[n.createElementVNode("div",{class:"top-tips-btn",onClick:t[3]||(t[3]=(...a)=>o.handleCancel&&o.handleCancel(...a))},n.toDisplayString(i.cancelText),1),n.createElementVNode("div",{class:"top-tips-btn",onClick:t[4]||(t[4]=(...a)=>o.handleComfig&&o.handleComfig(...a))},n.toDisplayString(i.comfigText),1)])],4)):n.createCommentVNode("",!0)],6)}const La=ae(E0,[["render",x0],["__scopeId","data-v-06a80662"]]),zb="",S0={props:{request:{type:Function,default:()=>{}}},components:{signDrawer:La},data(){return{ctx:null,signatureImage:"",actionHeight:0,historyHeight:0,isDrawing:!1,paths:[],currentPath:[],historyPics:[],savaClock:!1,confirmVisible:!1}},methods:{startDrawing(e){if(this.$refs.canvasRef.getContext){this.isDrawing=!0,this.currentPath=[];const t=this.$refs.canvasRef.getBoundingClientRect(),i=(e.touches[0].clientX-t.left)*(this.$refs.canvasRef.width/t.width)/window.devicePixelRatio,s=(e.touches[0].clientY-t.top)*(this.$refs.canvasRef.height/t.height)/window.devicePixelRatio;this.ctx.beginPath(),this.ctx.moveTo(i,s),this.currentPath.push({x:i,y:s})}else this.isDrawing=!0,this.currentPath=[],this.currentPath.push({x:e.touches[0].x,y:e.touches[0].y})},draw(e){if(!!this.isDrawing)if(this.$refs.canvasRef.getContext&&this.currentPath.length>0){const t=this.$refs.canvasRef.getBoundingClientRect(),i=(e.touches[0].clientX-t.left)*(this.$refs.canvasRef.width/t.width)/window.devicePixelRatio,s=(e.touches[0].clientY-t.top)*(this.$refs.canvasRef.height/t.height)/window.devicePixelRatio;this.ctx.lineWidth=3,this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.strokeStyle="#000000",this.ctx.imageSmoothingEnabled=!0,this.ctx.imageSmoothingQuality="high",this.$refs.canvasRef.style.imageRendering="auto",this.ctx.lineTo(i,s),this.ctx.stroke(),this.currentPath.push({x:i,y:s})}else this.currentPath.length>0&&(this.currentPath.push({x:e.touches[0].x,y:e.touches[0].y}),this.ctx.moveTo(this.currentPath[this.currentPath.length-2].x,this.currentPath[this.currentPath.length-2].y),this.ctx.lineTo(this.currentPath[this.currentPath.length-1].x,this.currentPath[this.currentPath.length-1].y),this.ctx.setLineWidth(3),this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.setStrokeStyle("#000"),this.ctx.stroke(),this.ctx.draw(!0))},undo(){if(this.$refs.canvasRef.getContext){this.paths.pop(),this.ctx.clearRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.ctx.fillStyle="#fff",this.ctx.fillRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height);for(let e of this.paths)for(let t=0;t<e.length-1;t++){const{x:i,y:s}=e[t];t===0?(this.ctx.beginPath(),this.ctx.moveTo(i,s)):(this.ctx.lineTo(i,s),this.ctx.stroke())}}else if(this.paths.length>0){this.paths.pop(),this.ctx.clearRect(0,0,this.$refs.canvasRef.$el.offsetWidth,this.$refs.canvasRef.$el.offsetHeight),this.ctx.draw(!0);for(let e of this.paths)for(let t=0;t<e.length-1;t++)this.ctx.moveTo(e[t].x,e[t].y),this.ctx.lineTo(e[t+1].x,e[t+1].y),this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.setLineWidth(4),this.ctx.setStrokeStyle("#000"),this.ctx.stroke(),this.ctx.draw(!0);this.ctx.draw(!0)}this.currentPath=[]},finishDrawing(e){this.paths.push(this.currentPath),this.currentPath=[],this.isDrawing=!1},clearCanvas(){var e,t;(t=(e=this.$refs)==null?void 0:e.canvasRef)!=null&&t.getContext?(this.ctx.clearRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.ctx.fillStyle="#fff",this.ctx.fillRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.signatureImage="",this.paths=[]):(this.ctx.clearRect(0,0,this.$refs.canvasRef.$el.offsetWidth,this.$refs.canvasRef.$el.offsetHeight),this.ctx.draw(!0),this.signatureImage="",this.paths=[]),this.currentPath=[],this.$emit("saveSignature","",!1)},cancelSign(){this.clearCanvas(),this.$emit("close")},fixAccuracy(e,t){const i=new Blob([e],{type:"text/plain"}),o=new File([i],"text.txt").size/1024;if(o<=64){const a=document.getElementById("canvas-id");return this.getRotatedDataURL(a,-90,t)}else{if(o>300)return null;{let a,l;if(t<.005)return null;if(t-.05>0){a=t-.05;const c=document.getElementById("canvas-id");return l=this.getRotatedDataURL(c,-90,a),this.fixAccuracy(l,a)}else{a=t/2;const c=document.getElementById("canvas-id");return l=this.getRotatedDataURL(c,-90,a),this.fixAccuracy(l,a)}}}},confirmSave(){if(this.paths.length==0){this.$emit("validateFail","\u8BF7\u7B7E\u5B57!");return}this.confirmVisible=!0},saveSignature(){if(this.confirmVisible=!1,this.savaClock)return;this.savaClock=!0;let e=this;if(this.$refs.canvasRef.getContext){let t=.6;const i=document.getElementById("canvas-id");return this.getRotatedDataURL(i,-90,t),!0}else uni.canvasToTempFilePath({canvasId:"canvas-id",success(t){e.signatureImage=t.tempFilePath;let i=JSON.parse(localStorage.getItem("signaturesArr"))||[];i.unshift(this.signatureImage),this.$set(this,"historyPics",i.slice(0,3)),localStorage.setItem("signaturesArr",JSON.stringify(this.historyPics)),e.$emit("saveSignature",e.signatureImage)}},e)},isUniCanvas(){var e;return!((e=this.$refs.canvasRef)!=null&&e.getContext)},disableWeChatScroll(e){e.preventDefault()},useHistory(e){this.historyPics[e]&&this.$emit("saveSignature",this.historyPics[e],!0)},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},getRotatedDataURL(e,t,i){let s=e.width/window.devicePixelRatio,r=e.height/window.devicePixelRatio,o=t*Math.PI/180,a=Math.max(s*Math.abs(Math.cos(o)),r*Math.abs(Math.sin(o))),l=Math.max(s*Math.abs(Math.sin(o)),r*Math.abs(Math.cos(o)));const c=document.createElement("canvas"),m=c.getContext("2d");c.width=a,c.height=l,m.translate(a/2,l/2),m.rotate(o),m.drawImage(e,-s/2,-r/2,s,r),c.toBlob(u=>{this.uploadImage(u)},"image/png",.95)},async uploadImage(e,t){this.loading=!0;const i=new FormData;i.append("file",e,t||`signature-${Date.now()}.png`);const s=await this.request.post("/file/upload",i,{headers:{"Content-Type":"multipart/form-data"}});if(this.loading=!1,!s.success)return;let r=JSON.parse(localStorage.getItem("signaturesArr"))||[];r.unshift(s.data),this.historyPics=r.slice(0,3),localStorage.setItem("signaturesArr",JSON.stringify(this.historyPics)),this.$emit("saveSignature",s.data,!0)}},computed:{setDynamicVars(){return{"--action-height":`${this.historyHeight}px`}}},mounted(){var e;if(this.historyHeight=(e=document.querySelector(".history"))==null?void 0:e.offsetHeight,this.$refs.canvasRef.getContext){let t=document.querySelector(".canvas-container");if(t){let i=document.getElementById("canvas-id");const s=t.offsetWidth,r=t.offsetHeight-this.actionHeight-this.historyHeight;i.style.width=`${s}px`,i.style.height=`${r}px`,i.width=s*window.devicePixelRatio,i.height=r*window.devicePixelRatio,this.ctx=this.$refs.canvasRef.getContext("2d"),this.ctx.scale(window.devicePixelRatio,window.devicePixelRatio),this.ctx.fillStyle="#fff",this.ctx.fillRect(0,0,i.width,i.height)}}else{this.ctx=uni.createCanvasContext("canvas-id",this);const t=uni.getSystemInfoSync().pixelRatio;this.ctx.scale(t,t)}document.addEventListener("touchmove",this.disableWeChatScroll,{passive:!1}),localStorage.getItem("signaturesArr")?this.historyPics=JSON.parse(localStorage.getItem("signaturesArr")):this.historyPics=[]},beforeDestroy(){document.removeEventListener("touchmove",this.disableWeChatScroll)}},D0={class:"canvas-container"},P0={key:0,class:"tips"},M0={class:"history"},O0=["src"],V0=["src"],R0=["src"],L0={class:"actions-area"};function v0(e,t,i,s,r,o){const a=n.resolveComponent("signDrawer");return n.openBlock(),n.createElementBlock("div",{class:"sign-container",style:n.normalizeStyle(o.setDynamicVars)},[n.createElementVNode("div",D0,[r.paths.length==0&&r.currentPath.length==0?(n.openBlock(),n.createElementBlock("div",P0,"\u8BF7\u5728\u6B64\u533A\u57DF\u7B7E\u5B57")):n.createCommentVNode("",!0),n.createElementVNode("canvas",{ref:"canvasRef",onTouchmove:t[0]||(t[0]=(...l)=>o.draw&&o.draw(...l)),onTouchstart:t[1]||(t[1]=(...l)=>o.startDrawing&&o.startDrawing(...l)),onTouchend:t[2]||(t[2]=(...l)=>o.finishDrawing&&o.finishDrawing(...l)),id:"canvas-id","canvas-id":"canvas-id",class:n.normalizeClass({"uni-canvas-style":o.isUniCanvas()})},null,34)]),n.createElementVNode("div",M0,[n.createElementVNode("div",{class:"img-grid",onClick:t[3]||(t[3]=l=>o.useHistory(0))},[r.historyPics[0]?(n.openBlock(),n.createElementBlock("img",{key:0,src:r.historyPics[0]?r.historyPics[0].url:"",fit:"scale-down"},null,8,O0)):n.createCommentVNode("",!0)]),n.createElementVNode("div",{class:"img-grid",onClick:t[4]||(t[4]=l=>o.useHistory(1))},[r.historyPics[1]&&r.historyPics[1].url?(n.openBlock(),n.createElementBlock("img",{key:0,src:r.historyPics[1].url,fit:"scale-down"},null,8,V0)):n.createCommentVNode("",!0)]),n.createElementVNode("div",{class:"img-grid",onClick:t[5]||(t[5]=l=>o.useHistory(2)),style:{"margin-right":"10rpx"}},[r.historyPics[2]&&r.historyPics[2].url?(n.openBlock(),n.createElementBlock("img",{key:0,src:r.historyPics[2].url,fit:"scale-down"},null,8,R0)):n.createCommentVNode("",!0)])]),n.createElementVNode("div",L0,[n.createElementVNode("button",{onClick:t[6]||(t[6]=(...l)=>o.confirmSave&&o.confirmSave(...l)),class:"btns-common cmf-btn"},"\u786E\u8BA4"),n.createElementVNode("button",{onClick:t[7]||(t[7]=(...l)=>o.cancelSign&&o.cancelSign(...l)),class:"btns-common"},"\u8FD4\u56DE"),n.createElementVNode("button",{onClick:t[8]||(t[8]=(...l)=>o.undo&&o.undo(...l)),class:"btns-common"},"\u64A4\u9500"),n.createElementVNode("button",{onClick:t[9]||(t[9]=(...l)=>o.clearCanvas&&o.clearCanvas(...l)),class:"btns-common"},"\u6E05\u7A7A")]),n.createVNode(a,{visible:r.confirmVisible,"onUpdate:visible":t[10]||(t[10]=l=>r.confirmVisible=l),ref:"TopPopupSign",titleText:"",isDrawer:!1,isTips:!0,context:"\u63D0\u4EA4\u4E4B\u540E\u5C06\u4E0D\u80FD\u518D\u4FEE\u6539,\u786E\u8BA4\u8981\u63D0\u4EA4\u7B7E\u540D\u5417?",comfig:o.saveSignature},null,8,["visible","comfig"])],4)}const F0=ae(S0,[["render",v0],["__scopeId","data-v-d91bfd13"]]),Kb="",Q0={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:tt,attchViews:$t,TopPopup:Fe,departPerson:yt.departPerson,MsgList:Ui,TreePerson:k0,TopSign:F0,signDrawer:La},computed:{check(){return js},checkS(){return XA},isSelectPerson(){if(this.pureTip=!1,this.nextNodeData,this.taskNode,this.multiNodeParticipant,this.$refs.TreePersonRef,this.param,Array.isArray(this.nextNodeData)&&this.nextNodeData[0].nodeType!="endEvent"){let e=this.param.selChildrenItems||{},t=[];if(Object.keys(e).filter(s=>s.startsWith("Activity")).forEach(s=>{t=t.concat(e[s])}),t.length==0&&Object.values(e).forEach(s=>{Array.isArray(s)&&s.length>0&&s.forEach(r=>{(r.id||"").startsWith("Activity")&&(t=t.concat(r))})}),t.length>0){let s="";const r=t.every(o=>{let a=this.multiNodeParticipant[o.id];a=(a||[]).filter(c=>c);const l=a&&a.length>0;return l||(s=o),l});return r?!1:s.name}else if(this.nextNodeData[0].nodeType=="exclusiveGateway"&&this.nextNodeData[0].branches&&this.nextNodeData[0].branches.length==1){const s=this.findUserTaskNode(this.nextNodeData[0].branches[0]);let r=(this.multiNodeParticipant[s.id]||[]).filter(a=>a);const o=r&&r.length>0;return this.nextNodeData[0].branches[0],o?!1:s.name}else if(this.nextNodeData[0].nodeType=="exclusiveGateway"&&this.nextNodeData[0].branches&&this.nextNodeData[0].branches.length>1){const s=this.$refs.TreePersonRef.childrenItems||null;if(s&&s.length>0){let r="";return s.every(a=>{const l=this.multiNodeParticipant[a.id]&&this.multiNodeParticipant[a.id].length>0;return l||(r=a),l})?!1:r.name}else return this.pureTip=!0,"\u8BF7\u9009\u62E9\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9"}else if(this.nextNodeData[0].nodeType=="userTask"){let s=(this.multiNodeParticipant[this.nextNodeData[0].id]||[]).filter(r=>r);return s&&s.length>0?!1:this.nextNodeData[0].name}}else return!1;if(this.nextNodeData.nodeType!="endEvent"){let e=this.param.selChildrenItems||{},t=[];if(Object.keys(e).filter(s=>s.startsWith("Activity")).forEach(s=>{t=t.concat(e[s])}),t.length==0&&Object.values(e).forEach(s=>{Array.isArray(s)&&s.length>0&&s.forEach(r=>{(r.id||"").startsWith("Activity")&&(t=t.concat(r))})}),t.length>0){let s="";const r=t.every(o=>{let a=this.multiNodeParticipant[o.id];a=(a||[]).filter(c=>c);const l=a&&a.length>0;return l||(s=o),l});return r?!1:s.name}else if(this.nextNodeData.nodeType=="exclusiveGateway"&&this.nextNodeData.branches&&this.nextNodeData.branches.length==1){const s=this.findUserTaskNode(this.nextNodeData.branches[0]);let r=(this.multiNodeParticipant[s.id]||[]).filter(a=>a);const o=r&&r.length>0;return this.nextNodeData.branches[0],o?!1:s.name}else if(this.nextNodeData.nodeType=="exclusiveGateway"&&this.nextNodeData.branches&&this.nextNodeData.branches.length>1){const s=this.$refs.TreePersonRef.childrenItems||null;if(s&&s.length>0){let r="";return s.every(a=>{const l=this.multiNodeParticipant[a.id]&&this.multiNodeParticipant[a.id].length>0;return l||(r=a),l})?!1:r.name}else return this.pureTip=!0,"\u8BF7\u9009\u62E9\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9"}else if(this.nextNodeData.nodeType=="userTask"){let s=(this.multiNodeParticipant[this.nextNodeData.id]||[]).filter(r=>r);return s&&s.length>0?!1:this.nextNodeData.name}}else return!1;if(Array.isArray(this.nextNodeData)&&this.nextNodeData.length==1&&this.nextNodeData[0].userTaskModelDTO&&this.taskNode&&this.taskNode.length>0&&this.taskNode[0].taskState!=4&&this.taskNode[0].taskState!=11){let e=this.nextNodeData[0].userTaskModelDTO.humanPerformer.name;if(e!="\u56FA\u5B9A\u8D26\u6237"&&e!="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"&&JSON.stringify(this.multiNodeParticipant)=="{}")return this.nextNodeData[0].userTaskModelDTO.name}return this.pureTip=!0,"\u8BF7\u9009\u62E9\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9"},signRequired(){return!!this.param.extendedProperties.find(t=>t.name=="signature")}},data(){return{pureTip:!1,showFile:!1,attachRule:{limit:0,required:!1},partNodeArr:{},commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},canCheck:!0,radioCheck:"",radioCheckChild:[],radioCheckName:"",radioCheckNameList:[],radioCheckNode:[],radioCheckNodeList:[],partList:[],gateVars:{},personMake:[],personMakeList:{},visibleListMsg:!1,visibleMsgComfig:!1,msgCheck:"",msgCheckList:["\u540C\u610F","\u5982\u62DF","\u5DF2\u9605"],msgCheckListS:["\u540C\u610F","\u5DF2\u9605"],actionName:"",partNodeS:[],makeType:"",digitalSignature:"",signVisible:!1}},watch:{"param.nodeLoading":{handler(e,t){e||(this.param,this.nextNodeData=this.param.nextNodeData,this.nextNodeData&&this.nextNodeData.length?(this.nextNodeData.map((i,s)=>{i.nodeType!=="endEvent"&&(i.userTaskModelDTO||(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList}),i.userTaskModelDTO&&i.userTaskModelDTO.participantList&&i.userTaskModelDTO.participantList.length&&i.userTaskModelDTO.participantList.map(r=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name)}),(i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||i.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(i.id))}),this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(i=>{i.code==200&&(this.personMakeList=i.data)})):this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map((i,s)=>{i.nodeType!=="endEvent"&&i.participantList&&i.participantList.length&&i.participantList.map(r=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name)})}))}},"param.visible":{handler(e,t){this.nextNodeData=this.param.nextNodeData,this.taskNode=this.param.taskNode,this.outGatewayUserTaskModel=this.param.outGatewayUserTaskModel,this.actionName=this.param.actionName,this.attachShow(),this.showFile,this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map(i=>{i.type!=="endEvent"&&(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList},i.humanPerformer={name:i.humanPerformerName})}),this.nextNodeData&&this.nextNodeData.length?(this.nextNodeData.map((i,s)=>{i.nodeType!=="endEvent"&&(i.userTaskModelDTO||(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList}),i.userTaskModelDTO&&i.userTaskModelDTO.participantList&&i.userTaskModelDTO.participantList.length&&i.userTaskModelDTO.participantList.map(r=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name)}),(i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||i.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(i.id))}),this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(i=>{i.code==200&&(this.personMakeList=i.data)})):this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map((i,s)=>{i.nodeType!=="endEvent"&&i.participantList&&i.participantList.length&&i.participantList.map(r=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name)})})},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{findUserTaskNode(e){return e?e.nodeInfoDTO&&e.nodeInfoDTO.nodeType!="userTask"?this.findUserTaskNode(e.nodeInfoDTO.branches[0]):e.nodeInfoDTO?e.nodeInfoDTO:e:{}},handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth/user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleSaveNode(e){this.makeType=="InclusiveGatewayModel"?(this.radioCheckNameList.includes(e.id)?this.radioCheckNameList.splice(this.radioCheckNameList.indexOf(e.id),1):(this.radioCheckNameList.push(e.id),this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue),this.gateVars[e.itemName]=e.compareValue):(this.radioCheckNameList=[],this.radioCheckNodeList=[],this.radioCheckNameList.push(e.id),e.childNode&&e.childNode.length&&(this.radioCheckNodeList=e.childNode),this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue,this.gateVars[e.itemName]=e.compareValue)},handleSaveNodeS(e){this.makeType=="InclusiveGatewayModel"?this.radioCheckNode.includes(e.id)?this.radioCheckNode.splice(this.radioCheckNode.indexOf(e.id),1):this.radioCheckNode.push(e.id):this.radioCheckNode&&this.radioCheckNode.length?this.radioCheckNode=[]:(this.radioCheckNode.push(e.id),e.childNode&&e.childNode.length&&this.radioCheckNodeList.push(e.childNode))},forRadioChild(e,t){e.map((i,s)=>{i.childNode&&i.childNode.length?this.forRadioChild(i.childNode,!0):t&&this.radioCheckChild.push(i)})},async handleNode(e){this.makeType=e.type,this.radioCheckNameList=[],this.radioCheck=e.id,this.radioCheckName=e.nodeName,this.radioCheckChild=e.childNode&&e.childNode.length?e.childNode:[e],this.radioCheckChild&&this.radioCheckChild.length&&this.radioCheckChild.map(t=>{t.participantList&&t.participantList.length?t.participantList.map(i=>{this.multiNodeParticipant[t.id]||(this.multiNodeParticipant[t.id]=[]),this.partNode[t.id]||(this.partNode[t.id]=[]),this.multiNodeParticipant[t.id].includes(i.id)||this.multiNodeParticipant[t.id].push(i.id),this.partNode[t.id].includes(i.name)||this.partNode[t.id].push(i.name)}):this.param.request.post(`/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:[t.id]}).then(i=>{i.code==200&&(this.partNodeS=[],this.partNodeS.push(i.data[t.id]))})}),(!this.radioCheckChild[0].incomingConditionItemList||!this.radioCheckChild[0].incomingConditionItemList.length)&&e.incomingConditionItemList&&e.incomingConditionItemList.length&&(this.radioCheckChild[0].incomingConditionItemList=e.incomingConditionItemList),this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&(this.radioCheckChild&&this.radioCheckChild.length?(this.gateVars[this.radioCheckChild[0].incomingConditionItemList[0].itemName]=this.radioCheckChild[0].incomingConditionItemList[0].compareValue,this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue):this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue)},handleOpenPopup(e){if(this.visible=!0,this.partObjId=e.id,this.nextNodeData&&this.nextNodeData.length?e={...e,...e.userTaskModelDTO}:e.humanPerformer||(e={...e,humanPerformer:{name:e.humanPerformerName}}),e.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"){let t,i=[];e.routeTxt.companyIds.map((s,r)=>{t=s.name}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((s,r)=>{i.push({type:3,id:s})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,subjectName:t,checkedArray:i}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"){let t,i=[],s=[];e.routeTxt.departmentIds.forEach((r,o)=>{e.routeTxt.departmentIds.length>1?i.push(r.rangeId):t=r.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].forEach((r,o)=>{s.push({type:3,id:r,deptId:t})}),e.routeTxt.departmentIds.length>1?this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,deptCodeArray:i,checkedArray:s}:this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,deptCode:t,checkedArray:s}}else{let t=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((i,s)=>{t.push({type:3,id:i})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,checkedArray:t}}},handleOpenMsg(){this.visibleListMsg=!0},async confirm(){this.signRequired?this.signConfirm():this.commonConfirm()},async commonConfirm(){if(this.param.ProcessInsObj.processDefId=="obj_94014ede99b6495d8f6d5977314faa15"&&(this.commentMsg="\u540C\u610F"),!this.commentMsg&&this.param.isRequire){this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success");return}if(this.requires&&this.attchLists.length<=0){this.handleTips("\u8BF7\u4E0A\u4F20\u9644\u4EF6!",!1,"success");return}if(this.isSelectPerson!==!1){this.handleTips(this.pureTip?this.isSelectPerson:"\u8BF7\u9009\u62E9["+this.isSelectPerson+"]\u5BA1\u6279\u4EBA!",!1,"success");return}this.commentMsg||(this.commentMsg=" ");let e={};if(this.radioCheckNameList&&this.radioCheckNameList.length){if(this.radioCheckChild[0].type!=="EndEventModel"){let l=0;if(this.radioCheckNameList.map((c,m)=>{(!this.multiNodeParticipant[c]||!this.multiNodeParticipant[c].length)&&this.radioCheckChild.map((u,p)=>{u.id==c&&(u.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"||u.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&(!u.childNode||!u.childNode.length?l+=1:this.radioCheckNode.map((y,k)=>{(!this.multiNodeParticipant[y]||!this.multiNodeParticipant[y].length)&&(l+=1),e[y]=this.multiNodeParticipant[y]}))}),e[c]=this.multiNodeParticipant[c]}),l>0){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}}}else{if(this.multiNodeParticipant[this.partObjId]&&!this.multiNodeParticipant[this.partObjId].length){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}e=this.multiNodeParticipant}if(this.signRequired){this.signVisible=!0;return}if(this.param.beforeFunction&&!await this.param.beforeFunction())return;(this.param.incomingConditionItemList||[]).forEach(l=>{let c=this.param.vars||this.gateVars||{};c[l.itemName]||(c[l.itemName]="")}),this.handleTips("",!0,"loading");let t=[];const i=Array.isArray(this.param.nextNodeData)?this.param.nextNodeData[0]:this.param.nextNodeData;i.setPersonnel?t=i.assignees:t=(this.partNodeArr[i.id]||[]).map(l=>({id:l.id,name:l.name})),Object.keys(e).forEach(l=>{Array.isArray(e[l])&&(e[l]=e[l].filter(c=>c)),(!e[l]||Array.isArray(e[l])&&e[l].length<=0)&&delete e[l]});let s=i&&i.nodeType!="endEvent"&&(!i.branches||i.branches.length<=0),r=i&&i.nodeType!="endEvent"&&i.branches&&i.branches.length==1&&i.branches[0].nodeInfoDTO&&i.branches[0].nodeInfoDTO.nodeType!="endEvent",o=i&&i.nodeType!="endEvent"&&i.branches&&i.branches.length==1&&!i.branches[0].nodeInfoDTO&&i.branches[0].nodeType!="endEvent";if((s||r||o)&&!Object.keys(e).length){let c={};return s?c=i:r?c=i.branches[0].nodeInfoDTO:o&&(c=i.branches[0]),this.handleTips(c.nodeType?"\u8BF7\u9009\u62E9["+c.name+"]\u5BA1\u6279\u4EBA!":"\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9\u5BA1\u6279\u4EBA",!0,"error"),!1}Date.now()&&(this.param.processInstId,this.param.actionComplete,this.commentMsg,this.param.taskInstId,this.param.vars||this.gateVars,this.attchLists),await this.param.request.post("/bladex/blade-workflow/tis/complete",{pass:!0,assignees:t,processInstanceId:this.param.processInstId,actionName:this.param.actionComplete,commentMsg:this.commentMsg,taskId:this.param.taskInstId,vars:this.param.vars||this.gateVars,multiNodeParticipant:e,attachment:this.attchLists}).then(l=>{l.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(l.msg,!0,"error")})},async signConfirm(e=!0){if(this.param.ProcessInsObj.processDefId=="obj_94014ede99b6495d8f6d5977314faa15"&&(this.commentMsg="\u540C\u610F"),!this.commentMsg&&this.param.isRequire){this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success");return}if(this.requires&&this.attchLists.length<=0){this.handleTips("\u8BF7\u4E0A\u4F20\u9644\u4EF6!",!1,"success");return}if(this.isSelectPerson!==!1){this.handleTips(this.pureTip?this.isSelectPerson:"\u8BF7\u9009\u62E9["+this.isSelectPerson+"]\u5BA1\u6279\u4EBA!",!1,"success");return}this.commentMsg||(this.commentMsg=" ");let t={};if(this.radioCheckNameList&&this.radioCheckNameList.length){if(this.radioCheckChild[0].type!=="EndEventModel"){let c=0;if(this.radioCheckNameList.map((m,u)=>{(!this.multiNodeParticipant[m]||!this.multiNodeParticipant[m].length)&&this.radioCheckChild.map((p,y)=>{p.id==m&&(p.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"||p.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&(!p.childNode||!p.childNode.length?c+=1:this.radioCheckNode.map((k,C)=>{(!this.multiNodeParticipant[k]||!this.multiNodeParticipant[k].length)&&(c+=1),t[k]=this.multiNodeParticipant[k]}))}),t[m]=this.multiNodeParticipant[m]}),c>0){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}}}else{if(this.multiNodeParticipant[this.partObjId]&&!this.multiNodeParticipant[this.partObjId].length){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}t=this.multiNodeParticipant}if(e){this.signVisible=!0;return}if(!this.digitalSignature){this.handleTips("\u8BF7\u7B7E\u5B57!",!1,"success");return}if(this.param.beforeFunction&&!await this.param.beforeFunction())return;this.handleTips("",!0,"loading"),this.signVisible=(!1)(this.param.incomingConditionItemList||[]).forEach(c=>{let m=this.param.vars||this.gateVars||{};m[c.itemName]||(m[c.itemName]="")});let i=[];const s=Array.isArray(this.param.nextNodeData)?this.param.nextNodeData[0]:this.param.nextNodeData;s.setPersonnel?i=s.assignees:i=(this.partNodeArr[s.id]||[]).map(c=>({id:c.id,name:c.name})),Object.keys(t).forEach(c=>{Array.isArray(t[c])&&(t[c]=t[c].filter(m=>m)),(!t[c]||Array.isArray(t[c])&&t[c].length<=0)&&delete t[c]});let r=s&&s.nodeType!="endEvent"&&(!s.branches||s.branches.length<=0),o=s&&s.nodeType!="endEvent"&&s.branches&&s.branches.length==1&&s.branches[0].nodeInfoDTO&&s.branches[0].nodeInfoDTO.nodeType!="endEvent",a=s&&s.nodeType!="endEvent"&&s.branches&&s.branches.length==1&&!s.branches[0].nodeInfoDTO&&s.branches[0].nodeType!="endEvent";if((r||o||a)&&!Object.keys(t).length){let m={};return r?m=s:o?m=s.branches[0].nodeInfoDTO:a&&(m=s.branches[0]),this.handleTips(m.nodeType?"\u8BF7\u9009\u62E9["+m.name+"]\u5BA1\u6279\u4EBA!":"\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9\u5BA1\u6279\u4EBA",!0,"error"),!1}await this.param.request.post("/bladex/blade-workflow/tis/complete",{pass:!0,assignees:i,processInstanceId:this.param.processInstId,actionName:this.param.actionComplete,commentMsg:this.commentMsg,taskId:this.param.taskInstId,vars:this.param.vars||this.gateVars,multiNodeParticipant:t,digitalSignature:this.digitalSignature,attachment:this.attchLists}).then(c=>{c.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(c.msg,!0,"error")})},attachShow(e="\u529E\u7406"){const t=(this.param||{}).extendedProperties||[];let i=!1,s,r="";s=t.find(a=>a.name=="completeButtonAnnex"),r=s?s.value:"",r&&(i=!0);let o="";if(typeof r!="string"&&r!=null&&r.map(a=>{a.indexOf(this.operationLabel)!=-1&&(i=!0,o=a)}),o&&(r=o),i){const a=r.split(":");this.attachRule.required=a[1]=="true",this.attachRule.limit=a[2]==-1?999:a[2],this.otherList=r;let l=this.otherList.split(":");this.limit=l[2],this.requires=JSON.parse(l[1]),this.labels=l[0]}return this.labels,this.limit,i},makeDelegateTaskButtonAnnex(){},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,s)=>{i.size=i.fileSize,i.format=i.name.substring(i.name.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.name});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("complete")},onMultiNode(e){this.multiNodeParticipant=e},onMultiNodeObj(e){this.partNodeArr=e},onVars(e){this.gateVars=e},handleSignature(e,t){this.digitalSignature=e,t&&(this.signVisible=!1,this.signConfirm(!1))},noticeFail(e){this.handleTips(e,!1,"success")},handleClose(){this.signVisible=!1}}},U0={class:"process-popup-content"},j0={key:0,class:"process-popup-content-msg"},G0={key:0,class:"process-pc-label"},_0={key:1,class:"process-pc-value",style:{display:"flex"}},q0={class:"process-radio",style:{width:"100%"}},J0=["onClick"],z0=["onClick"],K0={key:2},H0={class:"process-pc-label"},Y0={key:0,class:"process-pc-label--re"},W0={class:"process-pc-value"},X0={class:"process-popup-textarea"},Z0={class:"process-popup-textarea-num"},$0={key:0,class:"msg-btn"},eE={class:"process-popup-content-person"},tE={key:0},iE={key:1},nE={style:{height:"100%"}},sE={style:{height:"100%"}};function rE(e,t,i,s,r,o){const a=n.resolveComponent("TreePerson"),l=n.resolveComponent("TopTips"),c=n.resolveComponent("departPerson"),m=n.resolveComponent("TopPopup"),u=n.resolveComponent("MsgList"),p=n.resolveComponent("attchViews"),y=n.resolveComponent("TopSign"),k=n.resolveComponent("signDrawer");return n.openBlock(),n.createElementBlock("div",U0,[i.param.ProcessInsObj&&i.param.ProcessInsObj.processDefId!="obj_94014ede99b6495d8f6d5977314faa15"?(n.openBlock(),n.createElementBlock("div",j0,[i.param.isQuickReply?(n.openBlock(),n.createElementBlock("div",G0,"\u5FEB\u6377\u56DE\u590D")):n.createCommentVNode("",!0),i.param.isQuickReply?(n.openBlock(),n.createElementBlock("div",_0,[n.createElementVNode("div",q0,[i.param.isDocument?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(r.msgCheckList,C=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["process-radio-item",C==r.commentMsg?"process-radio-item--check":""]),onClick:()=>r.commentMsg=C},[t[8]||(t[8]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(C),1)],10,J0))),256)):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(r.msgCheckListS,C=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["process-radio-item",C==r.commentMsg?"process-radio-item--check":""]),onClick:()=>r.commentMsg=C},[t[9]||(t[9]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(C),1)],10,z0))),256)),i.param.isMsg?(n.openBlock(),n.createElementBlock("div",{key:2,class:"process-radio-item",onClick:t[0]||(t[0]=C=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px","margin-left":"auto"}}," \u5E38\u7528\u610F\u89C1 ")):n.createCommentVNode("",!0)])])):n.createCommentVNode("",!0),i.param.isMsg&&!i.param.isQuickReply?(n.openBlock(),n.createElementBlock("div",K0,[n.createElementVNode("div",{class:"process-radio-item",onClick:t[1]||(t[1]=C=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):n.createCommentVNode("",!0),n.createElementVNode("div",H0,[t[10]||(t[10]=n.createTextVNode(" \u5BA1\u6279\u610F\u89C1 ",-1)),i.param.isRequire?(n.openBlock(),n.createElementBlock("span",Y0,"*")):n.createCommentVNode("",!0)]),n.createElementVNode("div",W0,[n.createElementVNode("div",X0,[n.withDirectives(n.createElementVNode("textarea",{"onUpdate:modelValue":t[2]||(t[2]=C=>r.commentMsg=C),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[n.vModelText,r.commentMsg]]),n.createElementVNode("div",Z0,n.toDisplayString(r.commentMsg.length)+"/200 ",1)]),i.param.isMsg?(n.openBlock(),n.createElementBlock("div",$0,[n.createElementVNode("span",{class:"msg-btn-click",onClick:t[3]||(t[3]=C=>o.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):n.createCommentVNode("",!0)])])):n.createCommentVNode("",!0),n.createElementVNode("div",eE,[r.nextNodeData.length==1&&r.nextNodeData[0].nodeType=="endEvent"?(n.openBlock(),n.createElementBlock("div",tE," \u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6 ")):r.nextNodeData&&r.nextNodeData.nodeType=="endEvent"?(n.openBlock(),n.createElementBlock("div",iE," \u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6 ")):i.param.ProcessInsObj.taskParentId?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(a,{key:2,ref:"TreePersonRef",items:r.nextNodeData,nodeType:"nexting",param:i.param,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj},null,8,["items","param","onOnMultiNode","onOnMultiNodeObj"]))]),n.renderSlot(e.$slots,"completeSlot",{},void 0,!0),n.createVNode(l,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),n.createVNode(m,{visible:r.visible,"onUpdate:visible":t[4]||(t[4]=C=>r.visible=C),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:n.withCtx(()=>[n.createElementVNode("div",nE,[r.visible?(n.openBlock(),n.createBlock(c,n.mergeProps({key:0,isTitle:!1,visible:r.visible},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["visible","onCallback","onCancel"])):n.createCommentVNode("",!0)])]),_:1},8,["visible"]),n.createVNode(m,{visible:r.visibleListMsg,"onUpdate:visible":t[5]||(t[5]=C=>r.visibleListMsg=C),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:n.withCtx(()=>[n.createVNode(u,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),n.createVNode(m,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[6]||(t[6]=C=>r.visibleMsgComfig=C)},null,8,["context","cancel","comfig","visible"]),r.labels=="1"?(n.openBlock(),n.createBlock(p,{key:1,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):n.createCommentVNode("",!0),n.createVNode(k,{visible:r.signVisible,"onUpdate:visible":t[7]||(t[7]=C=>r.signVisible=C),ref:"TopPopupSign",titleText:"\u7B7E\u5B57",isDrawer:!0,width:"100vw"},{default:n.withCtx(()=>[n.createElementVNode("div",sE,[r.signVisible?(n.openBlock(),n.createBlock(y,{key:0,request:i.param.request,onSaveSignature:o.handleSignature,onValidateFail:o.noticeFail,onClose:o.handleClose},null,8,["request","onSaveSignature","onValidateFail","onClose"])):n.createCommentVNode("",!0)])]),_:1},8,["visible"])])}const va=ae(Q0,[["render",rE],["__scopeId","data-v-28a1a3d3"]]),Hb="",oE={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:tt,attchViews:$t,TopPopup:Fe,departPerson:yt.departPerson,MsgList:Ui},watch:{param:{async handler(e,t){this.entity.checkedArray=[],this.actionName=e.actionName},immediate:!0,deep:!0}},data(){return{commentMsg:"",actionName:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[770],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},visibleListMsg:!1,visibleMsgComfig:!1}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg)return this.handleTips("\u8BF7\u8F93\u5165\u62D2\u7EDD\u7406\u7531!",!1,"success"),!1;this.handleTips("",!0,"loading"),await this.param.request.post("/bladex/blade-workflow/tis/complete",{pass:!1,assignees:[],processInstanceId:this.param.processInstId,commentMsg:this.commentMsg,comment:this.commentMsg||" ",taskId:this.param.taskInstId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),window.top.postMessage("success","*"),this.commentMsg=""):this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,s)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("\u62D2\u7EDD")}}},aE={class:"process-popup-content"},lE={class:"process-popup-content-msg"},cE={key:0},dE={class:"process-pc-value"},pE={class:"process-popup-textarea"},hE={class:"process-popup-textarea-num"},uE={key:0,class:"msg-btn"},mE={key:0,class:"process-popup-content-person"},fE=["onClick"],gE={class:"process-pc-value--people"},yE={key:0,class:"process-pc-value--data"},AE={key:1,class:"process-pc-value--data",style:{color:"#888"}},kE={style:{"font-size":"15px"}},EE={style:{height:"100%"}};function bE(e,t,i,s,r,o){const a=n.resolveComponent("TopTips"),l=n.resolveComponent("departPerson"),c=n.resolveComponent("TopPopup"),m=n.resolveComponent("attchViews"),u=n.resolveComponent("MsgList");return n.openBlock(),n.createElementBlock("div",aE,[n.createElementVNode("div",lE,[i.param.isMsg?(n.openBlock(),n.createElementBlock("div",cE,[n.createElementVNode("div",{class:"process-radio-item",onClick:t[0]||(t[0]=p=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):n.createCommentVNode("",!0),t[7]||(t[7]=n.createElementVNode("div",{class:"process-pc-label"},[n.createTextVNode(" \u62D2\u7EDD\u7406\u7531\uFF1A "),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",dE,[n.createElementVNode("div",pE,[n.withDirectives(n.createElementVNode("textarea",{"onUpdate:modelValue":t[1]||(t[1]=p=>r.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[n.vModelText,r.commentMsg]]),n.createElementVNode("div",hE,n.toDisplayString(r.commentMsg.length)+"/200 ",1)]),i.param.isMsg?(n.openBlock(),n.createElementBlock("div",uE,[n.createElementVNode("span",{class:"msg-btn-click",onClick:t[2]||(t[2]=p=>o.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):n.createCommentVNode("",!0)])]),r.taskNode&&r.taskNode.length>0&&r.taskNode[0].taskState!=4?(n.openBlock(),n.createElementBlock("div",mE,[r.nextNodeData.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(r.nextNodeData,p=>{var y,k;return n.openBlock(),n.createElementBlock(n.Fragment,null,[o.isOption((k=(y=p==null?void 0:p.userTaskModelDTO)==null?void 0:y.humanPerformer)==null?void 0:k.name)?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("div",null,[n.createTextVNode(n.toDisplayString(p.userTaskModelDTO.name)+" ",1),t[8]||(t[8]=n.createElementVNode("br",null,null,-1)),t[9]||(t[9]=n.createTextVNode(" \u5BA1\u6279\u4EBA ",-1)),t[10]||(t[10]=n.createElementVNode("span",{class:"process-pc-label--re"},"*",-1))]),n.createElementVNode("div",{class:"process-pc-value",onClick:C=>o.handleOpenPopup(p.id)},[n.createElementVNode("div",gE,[r.partNode[p.id]&&r.partNode[p.id].length?(n.openBlock(),n.createElementBlock("div",yE,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.partNode[p.id],(C,v)=>(n.openBlock(),n.createElementBlock("span",null,n.toDisplayString(v==0?C:`,${C}`),1))),256))])):(n.openBlock(),n.createElementBlock("div",AE,[...t[11]||(t[11]=[n.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])]))])],8,fE)],64)):n.createCommentVNode("",!0)],64)}),256)):r.outGatewayUserTaskModel.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(r.outGatewayUserTaskModel,p=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[o.isOption(p.humanPerformerName)?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("div",kE,n.toDisplayString(p.name),1),t[13]||(t[13]=n.createElementVNode("div",{class:"process-pc-label"},[n.createTextVNode(" \u5BA1\u6279\u4EBA "),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",{class:"process-pc-value",onClick:t[3]||(t[3]=(...y)=>o.handleOpenPopup&&o.handleOpenPopup(...y))},[...t[12]||(t[12]=[n.createElementVNode("div",{class:"process-pc-value--people"},n.toDisplayString(234),-1)])])],64)):n.createCommentVNode("",!0)],64))),256)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),n.createVNode(a,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),n.createVNode(c,{visible:r.visible,"onUpdate:visible":t[4]||(t[4]=p=>r.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:n.withCtx(()=>[n.createElementVNode("div",EE,[r.visible?(n.openBlock(),n.createBlock(l,n.mergeProps({key:0,isTitle:!1,visible:r.visible,request:i.param.request},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["visible","request","onCallback","onCancel"])):n.createCommentVNode("",!0)])]),_:1},8,["visible"]),r.labels=="\u62D2\u7EDD"?(n.openBlock(),n.createBlock(m,{key:1,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):n.createCommentVNode("",!0),n.createVNode(c,{visible:r.visibleListMsg,"onUpdate:visible":t[5]||(t[5]=p=>r.visibleListMsg=p),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:n.withCtx(()=>[n.createVNode(u,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),n.createVNode(c,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[6]||(t[6]=p=>r.visibleMsgComfig=p)},null,8,["context","cancel","comfig","visible"])])}const CE=ae(oE,[["render",bE],["__scopeId","data-v-59b811ec"]]),Yb="",wE={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:tt,attchViews:$t,TopPopup:Fe,departPerson:yt.departPerson,TopDownSelect:Oa,MsgList:Ui},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},option:[],nodeId:"",actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{async handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.entity.checkedArray=[],this.actionName=e.actionName},immediate:!0,deep:!0}},created(){this.getReturnNode()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},getReturnNode(){this.param.request.get("/bladex/blade-workflow/process/getBackNodes",{params:{taskId:this.param.taskInstId}}).then(e=>{e.code===200&&(this.option=(e.data||[]).map(t=>({...t,name:t.nodeName,id:t.nodeId})).filter(t=>!(t.nodeId||"").includes("startEvent")))})},handleChange(e){this.nodeId=e.id},handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u9000\u56DE\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;if(!this.nodeId)return this.textTips="\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9!",this.$refs.topTips.handleOpen(),!1;this.handleTips("",!0,"loading"),this.param.request.post("/bladex/blade-workflow/tis/rollback",{taskInstId:this.param.taskInstId,rollbackReason:this.commentMsg,targetActivityId:this.nodeId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,s)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("\u9000\u56DE")}}},NE={class:"process-popup-content"},TE={class:"process-popup-content-msg"},IE={class:"process-pc-value",style:{display:"inline-block",width:"50%"}},BE={class:"process-pc-value"},xE={class:"process-popup-textarea"},SE={class:"process-popup-textarea-num"};function DE(e,t,i,s,r,o){const a=n.resolveComponent("TopDownSelect"),l=n.resolveComponent("TopTips"),c=n.resolveComponent("MsgList"),m=n.resolveComponent("TopPopup"),u=n.resolveComponent("attchViews");return n.openBlock(),n.createElementBlock("div",NE,[n.createElementVNode("div",TE,[t[3]||(t[3]=n.createElementVNode("div",{class:"process-pc-label",style:{"background-color":"#fff",position:"relative","z-index":"199",display:"inline-block",width:"50%"}},[n.createTextVNode(" \u9000\u56DE\u8282\u70B9\uFF1A "),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",IE,[n.createVNode(a,{option:r.option,onChange:o.handleChange,optionStyle:"width:calc(100% - 40px);left:20px;",maskShow:!1,border:""},null,8,["option","onChange"])]),t[4]||(t[4]=n.createElementVNode("div",{class:"process-pc-label"},[n.createTextVNode(" \u9000\u56DE\u7406\u7531\uFF1A "),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",BE,[n.createElementVNode("div",xE,[n.withDirectives(n.createElementVNode("textarea",{"onUpdate:modelValue":t[0]||(t[0]=p=>r.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[n.vModelText,r.commentMsg]]),n.createElementVNode("div",SE,n.toDisplayString(r.commentMsg.length)+"/200 ",1)])])]),n.createVNode(l,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),n.createVNode(m,{visible:r.visibleListMsg,"onUpdate:visible":t[1]||(t[1]=p=>r.visibleListMsg=p),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:n.withCtx(()=>[n.createVNode(c,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),n.createVNode(m,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[2]||(t[2]=p=>r.visibleMsgComfig=p)},null,8,["context","cancel","comfig","visible"]),r.labels=="\u9000\u56DE"?(n.openBlock(),n.createBlock(u,{key:0,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):n.createCommentVNode("",!0)])}const PE=ae(wE,[["render",DE],["__scopeId","data-v-fcd1a869"]]),Wb="",ME={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:tt,departPerson:yt.departPerson},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:""}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.checkedArray=[],this.entity.source="1",this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){let e="";this.multiNodeParticipant[this.partObjId].map((t,i)=>{i==0?e=t:e=`${e} ${t}`}),await this.param.request.post("/bladex/blade-workflow/tis/createCCTask",{processInstId:this.param.processInstId,taskId:this.param.taskInstId,title:"",participant:e}).then(t=>{t.code==200?(this.$emit("handleClosecctaskTopPopup"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal()):this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})}),e&&e.length&&this.confirm()},handleCancel(){},getValues(e){this.attchLists=e},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("ccTask")}}},OE={style:{height:"100%"}};function VE(e,t,i,s,r,o){const a=n.resolveComponent("departPerson"),l=n.resolveComponent("TopTips");return n.openBlock(),n.createElementBlock("div",OE,[i.param.visible?(n.openBlock(),n.createBlock(a,n.mergeProps({key:0,isTitle:!1,request:i.param.request},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["request","onCallback","onCancel"])):n.createCommentVNode("",!0),n.createVNode(l,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"])])}const RE=ae(ME,[["render",VE]]),Xb="",LE={name:"nf-button",components:{TopTips:tt},props:{uid:{type:String,default:""},loading:{type:Boolean,default:!1},buttonList:{type:Array,default:()=>[]},process:{type:Object,default:()=>({variables:{}})},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{}})},comment:String},data(){return{isCollapse:!0,nodeVisible:!1,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:{handler(e,t){e&&e.taskId&&this.request.get("/bladex/blade-workflow/process/getBackNodes",{params:{taskId:e.taskId}}).then(i=>{const s=i.data;this.backNodes=s})},deep:!0,immediate:!0}},methods:{handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleRollback(){if(!this.comment){this.$message.error("\u8BF7\u586B\u5199\u6279\u590D\u610F\u89C1");return}this.nodeVisible=!0},handleNodeSubmit(){const{nodeId:e}=this.nodeForm;this.$emit("rollback",e)},getButton(e){return this.buttonList.find(t=>t.buttonKey==e)}}},vE={class:"process-btns"},FE=["disabled"],QE={key:0},UE={key:1},jE=["disabled"],GE={key:0},_E={key:1},qE=["disabled"],JE=["disabled"],zE=["disabled"],KE=["disabled"],HE=["disabled"],YE=["disabled"],WE=["disabled"],XE=["disabled"],ZE=["disabled"];function $E(e,t,i,s,r,o){return n.openBlock(),n.createElementBlock("div",vE,[i.process.status=="todo"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[o.getButton("wf_pass")?(n.openBlock(),n.createElementBlock("button",{key:0,class:"process-button success",size:"default",disabled:i.loading,onClick:t[0]||(t[0]=a=>e.$emit("examine",!0,["deleted"].includes(i.process.processIsFinished)?"\u91CD\u65B0\u63D0\u4EA4":o.getButton("wf_pass").name))},[["deleted"].includes(i.process.processIsFinished)?(n.openBlock(),n.createElementBlock("span",QE,"\u91CD\u65B0\u63D0\u4EA4")):(n.openBlock(),n.createElementBlock("span",UE,n.toDisplayString(o.getButton("wf_pass").name),1))],8,FE)):n.createCommentVNode("",!0),o.getButton("wf_reject")?(n.openBlock(),n.createElementBlock("button",{key:1,class:"process-button danger",size:"default",disabled:i.loading,onClick:t[1]||(t[1]=a=>e.$emit("examine",!1,(r.backNodes.length>1,o.getButton("wf_reject").name)))},[r.backNodes.length>1?(n.openBlock(),n.createElementBlock("span",GE,n.toDisplayString(o.getButton("wf_reject").name),1)):(n.openBlock(),n.createElementBlock("span",_E,n.toDisplayString(o.getButton("wf_reject").name),1))],8,jE)):n.createCommentVNode("",!0),i.uid==(i.process.variables||{}).applyUserId?(n.openBlock(),n.createElementBlock("button",{key:2,size:"default",class:"process-button info",disabled:i.loading,onClick:t[2]||(t[2]=a=>e.$emit("reminders"))},[...t[11]||(t[11]=[n.createElementVNode("span",null,"\u50AC\u529E",-1)])],8,qE)):n.createCommentVNode("",!0),o.getButton("wf_transfer")?(n.openBlock(),n.createElementBlock("button",{key:3,class:"process-button primary",size:"default",disabled:i.loading,onClick:t[3]||(t[3]=a=>e.$emit("user-select",{type:"transfer",checkType:"radio",name:o.getButton("wf_transfer").name}))},n.toDisplayString(o.getButton("wf_transfer").name),9,JE)):n.createCommentVNode("",!0),o.getButton("wf_delegate")?(n.openBlock(),n.createElementBlock("button",{key:4,class:"process-button warning",size:"default",disabled:i.loading,onClick:t[4]||(t[4]=a=>e.$emit("user-select",{type:"delegate",checkType:"radio",name:o.getButton("wf_delegate").name}))},n.toDisplayString(o.getButton("wf_delegate").name),9,zE)):n.createCommentVNode("",!0),o.getButton("wf_rollback")?(n.openBlock(),n.createElementBlock("button",{key:5,class:"process-button success",size:"default",disabled:i.loading,onClick:t[5]||(t[5]=a=>e.$emit("rollback",o.getButton("wf_rollback").name))},n.toDisplayString(o.getButton("wf_rollback").name),9,KE)):n.createCommentVNode("",!0),o.getButton("wf_terminate")?(n.openBlock(),n.createElementBlock("button",{key:6,class:"process-button danger",size:"default",disabled:i.loading,onClick:t[6]||(t[6]=a=>e.$emit("terminate"))},n.toDisplayString(o.getButton("wf_terminate").name),9,HE)):n.createCommentVNode("",!0),i.process.isMultiInstance&&o.getButton("wf_add_instance")?(n.openBlock(),n.createElementBlock("button",{key:7,class:"process-button primary",size:"default",disabled:i.loading,onClick:t[7]||(t[7]=a=>e.$emit("user-select",{type:"addInstance",checkType:"checkbox",name:o.getButton("wf_add_instance").name}))},n.toDisplayString(o.getButton("wf_add_instance").name),9,YE)):n.createCommentVNode("",!0),o.getButton("wf_cctask")?(n.openBlock(),n.createElementBlock("button",{key:8,class:"process-button info",size:"default",disabled:i.loading,onClick:t[8]||(t[8]=a=>e.$emit("circulate",o.getButton("wf_cctask").name))},[n.createElementVNode("span",null,n.toDisplayString(o.getButton("wf_cctask").name),1)],8,WE)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0),i.process.isOwner&&i.process.isReturnable&&!["deleted"].includes(i.process.processIsFinished)?(n.openBlock(),n.createElementBlock("button",{key:1,class:"process-button danger",size:"default",disabled:i.loading,onClick:t[9]||(t[9]=a=>e.$emit("withdraw","\u64A4\u9500"))}," \u64A4\u9500 ",8,XE)):n.createCommentVNode("",!0),o.getButton("wf_print")?(n.openBlock(),n.createElementBlock("button",{key:2,class:"process-button info",size:"default",disabled:i.loading,onClick:t[10]||(t[10]=a=>e.$emit("print"))},n.toDisplayString(o.getButton("wf_print").name),9,ZE)):n.createCommentVNode("",!0)])}const eb=We({name:"TopProcess",components:{processBtns:ae(LE,[["render",$E],["__scopeId","data-v-5024d104"]]),TopTab:_g,TopPopup:Fe,TopTips:tt,TopSumbitPopup:Ra},props:{tapList:{require:!1,default:()=>[],type:Array},selfTapList:{require:!1,default:()=>[],type:Array},processDefId:{require:!0,default:"",type:String},processInstId:{require:!0,default:"",type:String},isAdditional:{require:!1,default:!1,type:Boolean},isView:{default:!1,type:Boolean},formData:{default:{},type:Object},getVarsStatus:{default:!0,type:Boolean},getVars:{default:null,type:Function},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{}})},endFunction:{type:Function,default:null},beforeFunction:{type:Function,default:null},isDocument:{type:Boolean,default:!1},restartData:{type:Object,default:{businessType:"",showType:"",processName:""}},selfList:{type:Array,default:()=>[]},selfBtn:{type:Array,default:()=>[]},uid:{type:String,default:""},isMsg:{type:Boolean,default:!0},isRequire:{type:Boolean,default:!0},isCheckType:{type:String,default:"0"},isOrgType:{type:Array,default:()=>[0]},isCodeType:{type:Array,default:()=>[3]},isQuickReply:{type:Boolean,default:!1},ccTaskFunction:{type:Function,default:null},hideHeader:{type:Boolean,default:!1},needResubmit:{type:Boolean,default:!0}},data(){return{currentProcess:{currentProcessOriginData:[],currentMan:[],currentFirstNode:{}},incomingConditionItemList:[],submitLoading:!1,nextTaskNode:{},deptId:"",absoluteTaskId:"",comment:"",processXml:"",approvalData:[],processStatus:{},processDefList:{},processBusiness:{},getFirstProcessNode:{},taskNode:[],taskNodeList:[],taskNodeIds:[],taskState:NaN,taskCurrent:0,taskObj:{},taskId:"",taskNodeShow:!1,actionShow:!1,titleText:"",btnStyle:"",processIntId:"",trackUrl:"",taskCommentList:[],operationCom:null,operationComKey:Date.now(),ProcessInsObj:{button:[],flow:[],form:{},process:{}},popupContext:"",operationParam:{},nextTaskNode:{},annexlabel:"",handleTipsType:"",textTips:"",statusTips:!1,typeTips:"",outGatewayUserTaskModel:[],nextNodeData:[],visibleSong:!1,trackList:[],user:{},canCheck:!0,approveNode:{},restartDataS:{},selfBtnList:[],topNum:144,bottomNum:70,userIdData:"",TopPopup1:!1,cctaskTopPopup:!1,cctaskTopPopupTitle:"\u6284\u9001"}},watch:{processInstId:{async handler(e,t){this.processIntId=this.processInstId||this.formData.processId||this.formData.processInstId,e&&(this.request.get("/bladex/blade-workflow/tis/getTaskModelDetail",{params:{processInstId:this.processInstId}}).then(i=>{var s;if(i.code==200){this.ProcessInsObj={...this.ProcessInsObj,...i.data},this.taskObj.buttons=this.ProcessInsObj.button||[],this.trackList=(((s=i.data)==null?void 0:s.flow)||[]).filter(a=>["userTask","candidate"].includes(a.historyActivityType));const r=((this.ProcessInsObj.process||{}).variables||{}).deptId;this.deptId=r;const o=(this.ProcessInsObj.process||{}).taskId;this.absoluteTaskId=o,this.approvalData=(i.data||{}).flow||[],this.processXml=((i.data||{}).process||{}).xml||"",this.handleGetProcessStatus(),this.$emit("get-process-data",this.ProcessInsObj)}}),this.getCurrentProcess(),this.getUserInfo())},immediate:!0,deep:!0},restartData:{handler(e,t){e&&(this.restartDataS=e)},immediate:!0,deep:!0},selfBtn:{handler(e,t){e&&e.length&&(this.selfBtnList=e)},immediate:!0,deep:!0},uid:{handler(e,t){e&&(this.userIdData=e)},immediate:!0,deep:!0}},mounted(){},computed:{actionBtn(){return this.operBtn.length>3?this.operBtn.slice(3):[]},operBtn(){let e=[];const t=this.ProcessInsObj.process,i=this.ProcessInsObj.button;if(!t||!i)return e;if(this.getButton("wf_pass"),this.needResubmit&&t.status=="todo"&&this.userIdData&&t.isOwner&&["deleted"].includes(t.processIsFinished)&&this.getButton("wf_pass")){let r={};r.name="\u91CD\u65B0\u63D0\u4EA4",r.btnProps={type:"default"},e.push(r),r.click=o=>{this.handlePass("\u91CD\u65B0\u63D0\u4EA4"),this.submitLoading=!0,this.handleActionClose()}}if(!this.isView&&t.status=="todo"&&this.getButton("wf_pass")){let r={};r.name=this.getButton("wf_pass").name,r.btnProps={type:"primary"},e.push(r),r.click=o=>{this.handlePass(this.getButton("wf_pass").name),this.submitLoading=!0,this.handleActionClose()}}if(!this.isView&&t.status=="todo"&&this.getButton("wf_reject")){let r={};r.name=this.getButton("wf_reject").name,r.btnProps={type:"danger"},e.push(r),r.click=o=>{this.handleCancel(this.getButton("wf_reject").name),this.submitLoading=!0,this.handleActionClose()}}if(this.selfBtnList&&this.selfBtnList.length&&this.selfBtnList.map(r=>{let o={};o.name=r.name,o.btnProps={type:r.type},e.push(o),o.click=r.click}),["wf_edit"].map(r=>{if(!this.isView&&t.status=="todo"&&this.getButton(r)){let o={};o.name=this.getButton(r).name,o.btnProps={},o.key=o.name,o.click=()=>{this.$emit("clickCustomButton",o.name)},e.push(o)}}),!this.isView&&t.status=="todo"&&this.getButton("wf_rollback")){let r={};r.name=this.getButton("wf_rollback").name,r.btnProps={type:"danger"},e.push(r),r.click=o=>{this.handleRollbackTask(this.getButton("wf_rollback").name),this.handleActionClose()}}if(!this.isView&&t.status=="todo"&&this.getButton("wf_cctask")){let r={};r.name=this.getButton("wf_cctask").name,r.btnProps={type:"default"},r.click=async o=>{this.handleCirculate(this.getButton("wf_cctask").name),this.handleActionClose()},e.push(r)}if(!this.isView&&t.status=="todo"&&this.getButton("wf_delegate")){let r={};r.name=this.getButton("wf_delegate").name,r.btnProps={type:"warning"},r.key="cc2",r.click=()=>{this.handleUserSelect({type:"delegate",checkType:"radio",name:this.getButton("wf_delegate").name}),this.handleActionClose()},e.push(r)}if(!this.isView&&t.status=="todo"&&this.getButton("wf_terminate")){let r={};r.name=this.getButton("wf_terminate").name,r.btnProps={type:"danger"},r.key="cc3",r.click=()=>{this.handleTerminateProcess(),this.handleActionClose()},e.push(r)}if(!this.isView&&t.status=="todo"&&this.getButton("wf_transfer")){let r={};r.name=this.getButton("wf_transfer").name,r.btnProps={type:"default"},r.click=o=>{this.handleUserSelect({type:"transfer",checkType:"radio",name:this.getButton("wf_transfer").name}),this.handleActionClose()},e.push(r)}if(!this.isView&&this.getButton("wf_add_instance")){let r={};r.name=this.getButton("wf_add_instance").name,r.btnProps={type:"primary"},r.click=o=>{this.handleUserSelect({type:"addInstance",checkType:"checkbox",name:this.getButton("wf_add_instance").name}),this.handleActionClose()},e.push(r)}if(t.pass==!1&&t.isOwner&&this.processIntId){let r={};r.name="\u50AC\u529E",r.btnProps={type:"default"},r.click=o=>{this.handleReminders("\u50AC\u529E"),this.handleActionClose()},e.push(r)}if(this.processIntId&&t.isOwner&&t.isReturnable&&!["deleted"].includes(t.processIsFinished)){let r={};r.name="\u64A4\u9500",r.btnProps={type:"default"},r.click=o=>{this.handleWithdrawTask("\u64A4\u9500"),this.handleActionClose()},e.push(r)}return console.error(e,"btnList"),e},processCardHeight(){let e=this.topNum+this.bottomNum-10;return this.isAdditional&&!this.operBtn&&!this.operBtn.length&&!this.ProcessInsObj.end&&(e-=this.bottomNum),this.hideHeader&&(e-=204),`calc(100vh - ${e}px)`},processBtn(){if(this.isAdditional&&!this.operBtn&&!this.operBtn.length&&!this.ProcessInsObj.end)return`-${this.bottomNum}px`}},methods:{async getCurrentProcess(){this.request.get("/bladex/blade-workflow/repository/queryTaskNodeList",{params:{processInstId:this.processIntId}}).then(e=>{if(e.code==200){const t={};if(t.currentProcessOriginData=e.data||[],t.currentProcessOriginData.length>0){let i=t.currentProcessOriginData[0],s=(i.currentName||"").split(","),r=(i.avatar||"").split(",");s=s.map((o,a)=>({realName:o,avatar:r[a]||"",phone:"",ancestorNames:[]})),t.currentMan=s,t.currentFirstNode=i,this.currentProcess=t}}else this.currentProcess={currentProcessOriginData:[],currentMan:[],currentFirstNode:{}}}).catch(e=>{console.error(e)})},getButton(e){const t=(this.ProcessInsObj.button||[]).find(i=>i.buttonKey==e);return t},handleActionBtn(e){switch(e.buttonKey){case"wf_pass":this.handleExamine(!0,["deleted"].includes(this.ProcessInsObj.process.processIsFinished)?"\u91CD\u65B0\u63D0\u4EA4":e.name);break;case"wf_reject":this.handleExamine(!1,e.name);break;case"wf_transfer":this.handleTransfer(e.name);break;case"wf_add_instance":this.handleAddInstance(e.name);break;case"wf_rollback":this.handleRollbackTask(e.name);break;case"wf_transfer":this.handleTransfer(e.name);break;case"wf_terminate":this.handleTerminateProcess(e.name);case"wf_cctask":this.handleCirculate(e.name);break}this.handleActionClose()},handleDraft(){this.submitLoading=!0},handleExamine(e,t){e?this.handlePass(t):this.handleCancel(t),this.submitLoading=!0},async handlePass(e){this.operationParam.nodeLoading=!0,this.before?this.before().then(()=>{this.showOperation(va,e)}):this.showOperation(va,e),this.deptId&&(await this.getNextNode(this.deptId),this.operationParam={...this.operationParam,nodeLoading:!1,incomingConditionItemList:this.incomingConditionItemList,nextNodeData:this.nextTaskNode})},handleCancel(e){this.showOperation(CE,e)},handleUserSelect({type:e,checkType:t,name:i}){e=="transfer"?this.handleTransfer(i):e=="addInstance"&&this.handleAddInstance(i)},async handleTransfer(e){this.deptId&&await this.getNextNode(this.deptId),this.showOperation(WA,e)},async handleAddInstance(e){this.deptId&&await this.getNextNode(this.deptId),this.showOperation(DA,e)},handlePrint(){},handleRollbackTask(e){this.showOperation(PE,e)},handleTerminateProcess(){},handleWithdrawTask(e){this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText="\u64A4\u9500",this.popupContext="\u786E\u5B9A\u64A4\u9500\u5417?",this.handleTipsType="\u64A4\u9500"},handleReminders(e){this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText="\u50AC\u529E",this.popupContext="\u786E\u5B9A\u50AC\u529E\u5417?",this.handleTipsType="\u50AC\u529E"},handleCirculate(e){this.showOperation(RE,e,this.request,this.taskObj.ccTaskButtonAnnex,"\u6284\u9001"),this.cctaskTopPopupTitle=e},async getNextNode(e){if(this.ProcessInsObj.process&&(this.ProcessInsObj.process||{}).taskParentId)return!0;let t;try{t=await this.request.get("/bladex/blade-workflow/tis/simulation",{params:{taskId:this.absoluteTaskId,processInstId:this.processIntId}})}catch(s){console.error(s),t={}}let i=t.data||{};t.code==200&&!t.data.evaluation&&(this.incomingConditionItemList=[],i.branches=await this.getOutgoingProcessNode(this.absoluteTaskId,t.data.id)),t.code==200&&t.data.evaluation&&t.data.branches&&t.data.branches.length>0&&t.data.branches[0].nodeType!="userTask"&&(this.incomingConditionItemList=[],i.branches=await this.getOutgoingProcessNode(this.absoluteTaskId,t.data.branches[0].id)),i=await this.getSelectFixData(i,e),this.nextTaskNode=i,this.operationParam={...this.operationParam,nextNodeData:(this.nextTaskNode||{}).id?[this.nextTaskNode]:[]}},async getNodeUser({deptId:e,intersection:t,userIds:i,postIds:s,deptIds:r}){return await this.request.post("/auth/user/getTaskAuditor",{deptId:e,intersection:t,userIds:i,postIds:s,deptIds:r})},handleGetHeight(){this.$nextTick(()=>{setTimeout(()=>{let e=document.getElementById("process-header"),t=document.getElementById("process-footer");this.bottomNum=t?t.scrollHeight+10:70,this.topNum=e?e.scrollHeight+10:144},1e3)})},handleTestsss(e,t){},handleTestS(){this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success")},handleTest(){this.visibleSong=!0},async getUserInfo(){let e=await this.request.get("/app/user/info");e.code===200&&(this.user=e.data||{},this.userIdData=e.data.userId)},async handleGetSimulation(e){this.handleTips("",!0,"loading");let t={processInstId:this.processInstId,taskInstId:this.taskNode.length?this.taskNode[0].taskId:"",vars:e,errorTip:!1},i=await this.request.post("/aws/tis/simulation",t);if(i.success){this.handleTips("",!1,"success"),this.nextNodeData=i.data;for(let s=0;s<this.nextNodeData.length;s++)this.approveNode=this.nextNodeData[s]}else{let s=this.taskNode&&this.taskNode.length?this.taskNode[0].taskId:"";this.outGatewayUserTaskModel=await this.getOutgoingProcessNode(s,"")}},async getSelectFixData(e,t){let i=JSON.parse(JSON.stringify(e));if(i.nodeType!="userTask"&&Array.isArray(i.branches))for(let s=0;s<i.branches.length;s++){let r=i.branches[s],o=r.nodeInfoDTO?r.nodeInfoDTO:r;try{o=await this.getSelectFixData(o,t)}catch(a){}r.nodeInfoDTO?r.nodeInfoDTO=o:r=o,i.branches[s]=r}else if(i.nodeType=="userTask"&&!i.setPersonnel){let s=Pa(i),r;try{r=await this.getNodeUser({deptId:t,intersection:s.intersection?1:0,userIds:s.userIds,postIds:s.postIds,deptIds:s.deptIds}),r.code==$enum.apiCode.success}catch(o){}r.code==200&&(i.userList=r.data)}return i},async getOutgoingProcessNode(e,t){let i=await this.request.get("/bladex/blade-workflow/tis/getOutgoingProcessNode",{params:{taskId:e,processNodeId:t}});if(i.code==200){if(i.data&&i.data.length){for(let s=0;s<i.data.length;s++){let r=i.data[s];r.incomingConditionItemList&&r.incomingConditionItemList.length!==0&&(r.nodeInfoDTO.incomingConditionItemList=r.incomingConditionItemList,this.incomingConditionItemList.push(...r.incomingConditionItemList)),r.nodeInfoDTO.nodeType!="userTask"&&(r.nodeInfoDTO.branches=await this.getOutgoingProcessNode(e,r.nodeInfoDTO.id))}return this.handleTips("",!1,"success"),i.data}return this.handleTips("",!1,"success"),[]}return[]},handleGet(e){this.taskNode=[].concat(e),this.taskNodeShow=!1,this.actionShow=!1,this.handleGetProcessStatus(),this.handleGetUserTaskModel()},handleGetProcessStatus(){this.handleTips("",!0,"loading"),this.request.get("/bladex/blade-workflow/repository/findTaskTodoInfoByTaskId",{params:{taskId:this.absoluteTaskId||""}}).then(e=>{e.code==200&&(this.processStatus={...e.data||{},...e.data.vars?e.data.vars:{},bizStatusName:e.data.taskState,currUserName:e.data.currentName,allUserNames:e.data.currentName}),this.handleGetHeight(),this.handleTips("",!1,"success")}).catch(e=>{this.handleGetHeight()}).finally(()=>{})},handleGetUserTaskModel(){this.taskNode&&this.taskNode.length?this.request.get("/aws/repository/getUserTaskModel",{params:{taskId:this.taskNode[0].taskId}}).then(e=>{e.code==200&&(this.taskObj=e.data),this.handleGetHeight(),this.$refs.topTips.handleClose()}).catch(e=>{this.handleGetHeight(),this.$refs.topTips.handleClose()}):this.$refs.topTips.handleClose()},async showOperation(e,t,i,s,r){switch(this.beforeFunction&&(this.operationParam.beforeFunction=this.beforeFunction),this.operationParam.request=this.request,this.annexlabel=s||"fasdfsafdsa",this.titleText=t,this.operationCom=e,this.operationComKey=Date.now(),this.operationParam.selChildrenItems={},this.operationParam.annex=s||"fasdfsafdsa",this.operationParam.subjectId=this.formData.subjectId,this.operationParam.processInstId=this.processIntId,this.operationParam.taskInstId=(this.ProcessInsObj.process||{}).taskId||"",this.operationParam.variables=(this.ProcessInsObj.process||{}).variables||{},this.operationParam.extendedProperties=(this.ProcessInsObj.form||{}).extendedProperties||[],this.operationParam.actionName=t,this.operationParam.formData=this.formData,this.operationParam.ProcessInsObj=this.ProcessInsObj.process||{},this.operationParam.userInfo=this.user,this.nextTaskNode,this.operationParam.nextNodeData=(this.nextTaskNode||{}).id?[this.nextTaskNode]:[],this.operationParam.incomingConditionItemList=this.incomingConditionItemList,this.operationParam.outGatewayUserTaskModel=this.outGatewayUserTaskModel,this.operationParam.taskNode=this.taskNode,this.operationParam.appId=this.processStatus.appId,this.operationParam.endFunction=this.endFunction,this.operationParam.isDocument=this.isDocument,this.operationParam.isQuickReply=this.isQuickReply,this.operationParam.isMsg=this.isMsg,this.operationParam.isRequire=this.isRequire,this.operationParam.canCheck=this.canCheck,this.operationParam.isCheckType=this.isCheckType,this.operationParam.isOrgType=this.isOrgType,this.operationParam.isCodeType=this.isCodeType,r){case"\u6284\u9001":this.operationParam.visible=!0,this.cctaskTopPopup=!0;break;default:this.operationParam.visible=!0,this.TopPopup1=!0;break}},handleCancelPopup(){this.TopPopup1=!1,this.operationParam.visible=!1,this.submitLoading=!1},async handleComfig(){this.$refs.operationRef.confirm()},handleClosePopup1(){this.TopPopup1=!1,this.operationParam.visible=!1,this.submitLoading=!1},handleClosecctaskTopPopup(){this.cctaskTopPopup=!1,this.operationParam.visible=!1,this.submitLoading=!1},handleTipsComfig(){this.$refs.TopPopup2.handleCancel(),this.handleTipsType=="\u50AC\u529E"&&(this.handleTips("",!0,"loading"),this.request.get("/bladex/blade-workflow/tis/reminders",{params:{processInstId:this.processIntId}}).then(e=>{e.code==200?(this.handleTips("\u50AC\u529E\u6210\u529F",!0,"success"),window.top.postMessage("success","*"),this.endFunction("\u50AC\u529E")):this.handleTips(e.msg,!0,"error")})),this.handleTipsType=="\u64A4\u9500"&&(this.handleTips("",!0,"loading"),this.request.get("/bladex/blade-workflow/tis/withdrawTask",{params:{processInstId:this.processIntId}}).then(e=>{e.code==200?(this.handleTips("\u64A4\u9500\u6210\u529F",!0,"success"),window.top.postMessage("success","*"),this.endFunction("\u64A4\u9500")):(this.textTips=e.msg,this.typeTips="error",this.handleTips(e.msg,!0,"error"))}))},handleTipsCancel(){},getColor(e){return e=="\u5BA1\u6838\u4E2D"?"#FFA52D":e=="\u5DF2\u9A73\u56DE"?"#F14B4C":e=="\u5DF2\u64A4\u9500"?"#CECECE":e=="\u5DF2\u5B8C\u6210"?"#6DC743":"#1389FF"},handleActionOpen(){this.actionShow=!0},handleActionClose(){this.actionShow=!1},actionClick(e){this.titleText=e,this.actionShow=!1},getBtnStyle(e){switch(e){case"primary":return"background-color:#3c9cff;color:#fff";case"danger":return"background-color:rgb(255, 230, 230);color:rgb(255, 96, 96)";case"default":return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)";default:return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)"}},async handleRestart(){this.handleTips("",!0,"loading"),await this.request.post("/bladex/blade-workflow/repository/getProcessDefList",{appId:this.processStatus.appId}).then(e=>{this.processDefList=e.data,this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.formData.businessKey}}).then(t=>{this.processBusiness=t.data,this.request.get("/bladex/blade-workflow/repository/getAllProcessNode",{params:{processDefId:this.processBusiness.processDefId}}).then(i=>{this.getFirstProcessNode=i.data[0],this.operationParam.getFirstProcessNode=this.getFirstProcessNode,this.operationParam.formData=this.formData,this.handleTips("",!1,"success"),this.handleActionClose(),this.showOperation(void 0,"\u91CD\u65B0\u63D0\u4EA4",this.request)}).catch(i=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(t=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(e=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()}}}),$b="",tb={class:"process-warp"},ib={key:0,class:"process-main",id:"process-header",ref:"processheader"},nb={class:"process-ml-item border"},sb={class:"process-mli-value"},rb={class:"process-ml-item border"},ob={class:"process-mli-value"},ab={key:0,class:"process-ml-item"},lb={class:"process-mli-value",style:{width:"50%","text-align":"right"}},cb={class:"process-mliv-jd"},db=["slot"],pb={slot:"default",style:{height:"100%"}},hb=["slot"],ub={key:0,class:"footBtnRow"},mb=["onClick"],fb={slot:"completeSlot"},gb=["onClick"],yb=["onClick"],Ab={slot:"completeSlot"};function kb(e,t,i,s,r,o){const a=n.resolveComponent("TopTab"),l=n.resolveComponent("TopPopup"),c=n.resolveComponent("TopTips"),m=n.resolveComponent("TopSumbitPopup");return n.openBlock(),n.createElementBlock("div",null,[n.createElementVNode("div",tb,[(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)&&!e.hideHeader?(n.openBlock(),n.createElementBlock("div",ib,[n.createElementVNode("div",nb,[t[5]||(t[5]=n.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u72B6\u6001",-1)),n.createElementVNode("div",sb,[e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status?(n.openBlock(),n.createElementBlock("div",{key:0,class:"process-mliv-dd",style:n.normalizeStyle({background:e.getColor(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)})},n.toDisplayString(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status),5)):n.createCommentVNode("",!0)])]),n.createElementVNode("div",rb,[t[6]||(t[6]=n.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u53D1\u8D77\u65F6\u95F4",-1)),n.createElementVNode("div",ob,[n.createElementVNode("span",null,n.toDisplayString(e.processStatus.createTime),1)])]),e.processStatus.allUserNames&&e.processStatus.allUserNames.length?(n.openBlock(),n.createElementBlock("div",ab,[t[7]||(t[7]=n.createElementVNode("div",{class:"process-mli-name"},"\u5BA1\u6279\u8282\u70B9",-1)),n.createElementVNode("div",lb,[n.createElementVNode("span",cb,n.toDisplayString(`${e.processStatus.taskState==4?e.processStatus.currUserName:e.processStatus.allUserNames.toString()}\u5BA1\u6279\u4E2D`),1)])])):n.createCommentVNode("",!0)],512)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"process-card",style:n.normalizeStyle({height:e.processCardHeight})},[n.createVNode(a,{ProcessInsObj:e.ProcessInsObj,processXml:e.processXml,approvalData:e.approvalData,tapList:e.tapList,selfTapList:e.selfTapList,processIntId:e.processIntId,track:e.trackUrl,taskComment:e.taskCommentList,trackList:e.trackList},{default:n.withCtx(()=>[e.selfTapList&&e.selfTapList.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.selfTapList,(u,p)=>(n.openBlock(),n.createElementBlock("div",{key:p,slot:u.slot,style:{height:"100%"}},[n.renderSlot(e.$slots,u.slot,{processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)],8,db))),128)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createElementVNode("div",pb,[n.renderSlot(e.$slots,"default",{processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tapList,(u,p)=>(n.openBlock(),n.createElementBlock("div",{style:{height:"100%"},key:p,slot:u.slot},[n.renderSlot(e.$slots,u.slot,{processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)],8,hb))),128))],64))]),_:3},8,["ProcessInsObj","processXml","approvalData","tapList","selfTapList","processIntId","track","taskComment","trackList"])],4),e.isView?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:1,class:"process-btn",id:"process-footer",style:n.normalizeStyle({bottom:e.processBtn})},[e.isAdditional?(n.openBlock(),n.createElementBlock("div",ub,[n.renderSlot(e.$slots,"btn",{data:e.processStatus,processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[e.isDocument&&(e.formData.currentState=="\u7F16\u6587\u53F7\u5957\u7EA2"||e.formData.currentState=="\u76D6\u7AE0")?(n.openBlock(),n.createElementBlock("div",{key:0,class:"top-button",style:n.normalizeStyle(e.getBtnStyle("default"))}," \u8BF7\u53BBPC\u7AEF\u5904\u7406\u8BE5\u6D41\u7A0B ",4)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[e.formData.currentState!="\u5DF2\u5B8C\u6210"||e.processStatus.status!="\u5DF2\u5B8C\u6210"||e.processStatus.bizStatusName!="\u5DF2\u5B8C\u6210"?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.operBtn,(u,p)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[p<3?(n.openBlock(),n.createElementBlock("div",{class:"top-button",style:n.normalizeStyle(e.getBtnStyle((u.btnProps.type||"default").toString())),key:u.name,onClick:y=>u.click(u.name)},n.toDisplayString(u.name),13,mb)):n.createCommentVNode("",!0)],64))),256)):n.createCommentVNode("",!0),e.operBtn.length>3&&e.actionBtn&&e.actionBtn.length?(n.openBlock(),n.createElementBlock("div",{key:1,class:"elips",onClick:t[0]||(t[0]=(...u)=>e.handleActionOpen&&e.handleActionOpen(...u))},[...t[8]||(t[8]=[n.createElementVNode("div",{class:"circle"},null,-1),n.createElementVNode("div",{class:"circle"},null,-1),n.createElementVNode("div",{class:"circle"},null,-1)])])):n.createCommentVNode("",!0)],64))],64))],4))]),n.createVNode(l,{ref:"TopPopup1",cancel:e.handleCancelPopup,comfig:e.handleComfig,titleText:e.titleText,visible:e.TopPopup1,"onUpdate:visible":t[1]||(t[1]=u=>e.TopPopup1=u),className:"toppopup-component"},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.operationCom),{key:e.operationComKey,ref:"operationRef",param:e.operationParam,onHandleClosePopup1:e.handleClosePopup1},{default:n.withCtx(()=>[n.createElementVNode("div",fb,[n.renderSlot(e.$slots,"completeSlot",{processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)])]),_:3},40,["param","onHandleClosePopup1"]))]),_:3},8,["cancel","comfig","titleText","visible"]),n.createVNode(l,{ref:"TopPopup2",titleText:e.titleText,isTips:!0,context:e.popupContext,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig},null,8,["titleText","context","cancel","comfig"]),n.createVNode(c,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),e.actionBtn&&e.actionBtn.length||e.taskNodeList&&e.taskNodeList.length?(n.openBlock(),n.createElementBlock("div",{key:0,class:"top-elips",style:n.normalizeStyle(e.actionShow?"transform: translateY(0)":"transform: translateY(100%)")},[e.taskNodeShow?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.taskNodeList,u=>(n.openBlock(),n.createElementBlock("div",{class:"top-elips-items",onClick:p=>e.handleGet(u),key:u.taskId},n.toDisplayString(u.name),9,gb))),128)):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(e.actionBtn,u=>(n.openBlock(),n.createElementBlock("div",{class:"top-elips-items",onClick:p=>u.click(u.name),key:u.name},n.toDisplayString(u.name),9,yb))),128)),n.createElementVNode("div",{class:"top-elips-items top-elips-items--cancel",onClick:t[2]||(t[2]=(...u)=>e.handleActionClose&&e.handleActionClose(...u))}," \u53D6\u6D88 ")],4)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"top-elips-mask",onClick:t[3]||(t[3]=(...u)=>e.handleActionClose&&e.handleActionClose(...u)),style:n.normalizeStyle(e.actionShow?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4),n.createVNode(m,n.mergeProps({visible:e.visibleSong,ref:"actionPop",request:e.request,appId:e.processStatus.appId,id:e.formData.businessKey,resubmit:!0},e.restartDataS,{onSuccessFn:e.endFunction,selfList:e.selfList,onChange:e.handleTestsss,isCheckType:e.isCheckType,isOrgType:e.isOrgType,isCodeType:e.isCodeType}),null,16,["visible","request","appId","id","onSuccessFn","selfList","onChange","isCheckType","isOrgType","isCodeType"]),n.createVNode(l,{ref:"cctaskTopPopup",titleText:e.cctaskTopPopupTitle,visible:e.cctaskTopPopup,"onUpdate:visible":t[4]||(t[4]=u=>e.cctaskTopPopup=u),isDrawer:!0},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.operationCom),{ref:"cctaskOperationRef",param:e.operationParam,onHandleClosecctaskTopPopup:e.handleClosecctaskTopPopup},{default:n.withCtx(()=>[n.createElementVNode("div",Ab,[n.renderSlot(e.$slots,"completeSlot",{processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)])]),_:3},40,["param","onHandleClosecctaskTopPopup"]))]),_:3},8,["titleText","visible"])])}const Eb=ae(eb,[["render",kb],["__scopeId","data-v-773f6eab"]]),Fa={name:"ddy-process-h5",version:"1.0.1-rc.3.35",description:"> app\u7AEF \u6D41\u7A0B\u63D2\u4EF6",main:"./ddy-process-h5.umd.cjs",style:"./style.css",type:"module",exports:{".":{import:"./ddy-process-h5.js",require:"./ddy-process-h5.umd.cjs"},"./style.css":{import:"./style.css",require:"./style.css"}},scripts:{test:'echo "Error: no test specified" && exit 1',postinstall:"node scripts/postinstall.mjs"},devDependencies:{"checked-pick-app":"1.6.7",dsbridge:"^3.1.4"},dependencies:{"checked-pick-app":"1.6.7",dsbridge:"^3.1.4"},author:"",license:"ISC"};console.info("%c\u26A1"+Fa.name+"%c v"+Fa.version,"background: linear-gradient(135deg, #ff3939ff, #ffbe5cff); color: white; padding: 9px 4px 9px 4px; border-radius: 3px 0 0 3px;font-size: 12px;","background: #5100ffff; color: white; padding: 9px 6px 9px 4px; border-radius: 0px 3px 3px 0px;font-size: 12px;"),qe.TopProcess=Eb,qe.TopSumbitPopup=Ra,qe.ViewAttchList=zr,qe.attchViews=$t,Object.defineProperties(qe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|