qgb-process 0.1.87 → 0.1.88

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.
@@ -25,7 +25,7 @@ var t=e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_
25
25
  * Released under MIT license <https://lodash.com/license>
26
26
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
27
27
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
28
- */Rm.after=_y.after,Rm.ary=_y.ary,Rm.assign=zC.assign,Rm.assignIn=zC.assignIn,Rm.assignInWith=zC.assignInWith,Rm.assignWith=zC.assignWith,Rm.at=zC.at,Rm.before=_y.before,Rm.bind=_y.bind,Rm.bindAll=oj.bindAll,Rm.bindKey=_y.bindKey,Rm.castArray=fk.castArray,Rm.chain=hD.chain,Rm.chunk=Ld.chunk,Rm.compact=Ld.compact,Rm.concat=Ld.concat,Rm.cond=oj.cond,Rm.conforms=oj.conforms,Rm.constant=oj.constant,Rm.countBy=Up.countBy,Rm.create=zC.create,Rm.curry=_y.curry,Rm.curryRight=_y.curryRight,Rm.debounce=_y.debounce,Rm.defaults=zC.defaults,Rm.defaultsDeep=zC.defaultsDeep,Rm.defer=_y.defer,Rm.delay=_y.delay,Rm.difference=Ld.difference,Rm.differenceBy=Ld.differenceBy,Rm.differenceWith=Ld.differenceWith,Rm.drop=Ld.drop,Rm.dropRight=Ld.dropRight,Rm.dropRightWhile=Ld.dropRightWhile,Rm.dropWhile=Ld.dropWhile,Rm.fill=Ld.fill,Rm.filter=Up.filter,Rm.flatMap=Up.flatMap,Rm.flatMapDeep=Up.flatMapDeep,Rm.flatMapDepth=Up.flatMapDepth,Rm.flatten=Ld.flatten,Rm.flattenDeep=Ld.flattenDeep,Rm.flattenDepth=Ld.flattenDepth,Rm.flip=_y.flip,Rm.flow=oj.flow,Rm.flowRight=oj.flowRight,Rm.fromPairs=Ld.fromPairs,Rm.functions=zC.functions,Rm.functionsIn=zC.functionsIn,Rm.groupBy=Up.groupBy,Rm.initial=Ld.initial,Rm.intersection=Ld.intersection,Rm.intersectionBy=Ld.intersectionBy,Rm.intersectionWith=Ld.intersectionWith,Rm.invert=zC.invert,Rm.invertBy=zC.invertBy,Rm.invokeMap=Up.invokeMap,Rm.iteratee=oj.iteratee,Rm.keyBy=Up.keyBy,Rm.keys=Xo,Rm.keysIn=zC.keysIn,Rm.map=Up.map,Rm.mapKeys=zC.mapKeys,Rm.mapValues=zC.mapValues,Rm.matches=oj.matches,Rm.matchesProperty=oj.matchesProperty,Rm.memoize=_y.memoize,Rm.merge=zC.merge,Rm.mergeWith=zC.mergeWith,Rm.method=oj.method,Rm.methodOf=oj.methodOf,Rm.mixin=Ej,Rm.negate=Df,Rm.nthArg=oj.nthArg,Rm.omit=zC.omit,Rm.omitBy=zC.omitBy,Rm.once=_y.once,Rm.orderBy=Up.orderBy,Rm.over=oj.over,Rm.overArgs=_y.overArgs,Rm.overEvery=oj.overEvery,Rm.overSome=oj.overSome,Rm.partial=_y.partial,Rm.partialRight=_y.partialRight,Rm.partition=Up.partition,Rm.pick=zC.pick,Rm.pickBy=zC.pickBy,Rm.property=oj.property,Rm.propertyOf=oj.propertyOf,Rm.pull=Ld.pull,Rm.pullAll=Ld.pullAll,Rm.pullAllBy=Ld.pullAllBy,Rm.pullAllWith=Ld.pullAllWith,Rm.pullAt=Ld.pullAt,Rm.range=oj.range,Rm.rangeRight=oj.rangeRight,Rm.rearg=_y.rearg,Rm.reject=Up.reject,Rm.remove=Ld.remove,Rm.rest=_y.rest,Rm.reverse=Ld.reverse,Rm.sampleSize=Up.sampleSize,Rm.set=zC.set,Rm.setWith=zC.setWith,Rm.shuffle=Up.shuffle,Rm.slice=Ld.slice,Rm.sortBy=Up.sortBy,Rm.sortedUniq=Ld.sortedUniq,Rm.sortedUniqBy=Ld.sortedUniqBy,Rm.split=AE.split,Rm.spread=_y.spread,Rm.tail=Ld.tail,Rm.take=Ld.take,Rm.takeRight=Ld.takeRight,Rm.takeRightWhile=Ld.takeRightWhile,Rm.takeWhile=Ld.takeWhile,Rm.tap=hD.tap,Rm.throttle=_y.throttle,Rm.thru=BC,Rm.toArray=fk.toArray,Rm.toPairs=zC.toPairs,Rm.toPairsIn=zC.toPairsIn,Rm.toPath=oj.toPath,Rm.toPlainObject=fk.toPlainObject,Rm.transform=zC.transform,Rm.unary=_y.unary,Rm.union=Ld.union,Rm.unionBy=Ld.unionBy,Rm.unionWith=Ld.unionWith,Rm.uniq=Ld.uniq,Rm.uniqBy=Ld.uniqBy,Rm.uniqWith=Ld.uniqWith,Rm.unset=zC.unset,Rm.unzip=Ld.unzip,Rm.unzipWith=Ld.unzipWith,Rm.update=zC.update,Rm.updateWith=zC.updateWith,Rm.values=zC.values,Rm.valuesIn=zC.valuesIn,Rm.without=Ld.without,Rm.words=AE.words,Rm.wrap=_y.wrap,Rm.xor=Ld.xor,Rm.xorBy=Ld.xorBy,Rm.xorWith=Ld.xorWith,Rm.zip=Ld.zip,Rm.zipObject=Ld.zipObject,Rm.zipObjectDeep=Ld.zipObjectDeep,Rm.zipWith=Ld.zipWith,Rm.entries=zC.toPairs,Rm.entriesIn=zC.toPairsIn,Rm.extend=zC.assignIn,Rm.extendWith=zC.assignInWith,Ej(Rm,Rm),Rm.add=aM.add,Rm.attempt=oj.attempt,Rm.camelCase=AE.camelCase,Rm.capitalize=AE.capitalize,Rm.ceil=aM.ceil,Rm.clamp=_M.clamp,Rm.clone=fk.clone,Rm.cloneDeep=fk.cloneDeep,Rm.cloneDeepWith=fk.cloneDeepWith,Rm.cloneWith=fk.cloneWith,Rm.conformsTo=fk.conformsTo,Rm.deburr=AE.deburr,Rm.defaultTo=oj.defaultTo,Rm.divide=aM.divide,Rm.endsWith=AE.endsWith,Rm.eq=fk.eq,Rm.escape=AE.escape,Rm.escapeRegExp=AE.escapeRegExp,Rm.every=Up.every,Rm.find=Up.find,Rm.findIndex=Ld.findIndex,Rm.findKey=zC.findKey,Rm.findLast=Up.findLast,Rm.findLastIndex=Ld.findLastIndex,Rm.findLastKey=zC.findLastKey,Rm.floor=aM.floor,Rm.forEach=Up.forEach,Rm.forEachRight=Up.forEachRight,Rm.forIn=zC.forIn,Rm.forInRight=zC.forInRight,Rm.forOwn=zC.forOwn,Rm.forOwnRight=zC.forOwnRight,Rm.get=zC.get,Rm.gt=fk.gt,Rm.gte=fk.gte,Rm.has=zC.has,Rm.hasIn=zC.hasIn,Rm.head=Ld.head,Rm.identity=Ei,Rm.includes=Up.includes,Rm.indexOf=Ld.indexOf,Rm.inRange=_M.inRange,Rm.invoke=zC.invoke,Rm.isArguments=fk.isArguments,Rm.isArray=xt,Rm.isArrayBuffer=fk.isArrayBuffer,Rm.isArrayLike=fk.isArrayLike,Rm.isArrayLikeObject=fk.isArrayLikeObject,Rm.isBoolean=fk.isBoolean,Rm.isBuffer=fk.isBuffer,Rm.isDate=fk.isDate,Rm.isElement=fk.isElement,Rm.isEmpty=fk.isEmpty,Rm.isEqual=fk.isEqual,Rm.isEqualWith=fk.isEqualWith,Rm.isError=fk.isError,Rm.isFinite=fk.isFinite,Rm.isFunction=fk.isFunction,Rm.isInteger=fk.isInteger,Rm.isLength=fk.isLength,Rm.isMap=fk.isMap,Rm.isMatch=fk.isMatch,Rm.isMatchWith=fk.isMatchWith,Rm.isNaN=fk.isNaN,Rm.isNative=fk.isNative,Rm.isNil=fk.isNil,Rm.isNull=fk.isNull,Rm.isNumber=fk.isNumber,Rm.isObject=ge,Rm.isObjectLike=fk.isObjectLike,Rm.isPlainObject=fk.isPlainObject,Rm.isRegExp=fk.isRegExp,Rm.isSafeInteger=fk.isSafeInteger,Rm.isSet=fk.isSet,Rm.isString=fk.isString,Rm.isSymbol=fk.isSymbol,Rm.isTypedArray=fk.isTypedArray,Rm.isUndefined=fk.isUndefined,Rm.isWeakMap=fk.isWeakMap,Rm.isWeakSet=fk.isWeakSet,Rm.join=Ld.join,Rm.kebabCase=AE.kebabCase,Rm.last=Bs,Rm.lastIndexOf=Ld.lastIndexOf,Rm.lowerCase=AE.lowerCase,Rm.lowerFirst=AE.lowerFirst,Rm.lt=fk.lt,Rm.lte=fk.lte,Rm.max=aM.max,Rm.maxBy=aM.maxBy,Rm.mean=aM.mean,Rm.meanBy=aM.meanBy,Rm.min=aM.min,Rm.minBy=aM.minBy,Rm.stubArray=oj.stubArray,Rm.stubFalse=oj.stubFalse,Rm.stubObject=oj.stubObject,Rm.stubString=oj.stubString,Rm.stubTrue=oj.stubTrue,Rm.multiply=aM.multiply,Rm.nth=Ld.nth,Rm.noop=oj.noop,Rm.now=Kp.now,Rm.pad=AE.pad,Rm.padEnd=AE.padEnd,Rm.padStart=AE.padStart,Rm.parseInt=AE.parseInt,Rm.random=_M.random,Rm.reduce=Up.reduce,Rm.reduceRight=Up.reduceRight,Rm.repeat=AE.repeat,Rm.replace=AE.replace,Rm.result=zC.result,Rm.round=aM.round,Rm.sample=Up.sample,Rm.size=Up.size,Rm.snakeCase=AE.snakeCase,Rm.some=Up.some,Rm.sortedIndex=Ld.sortedIndex,Rm.sortedIndexBy=Ld.sortedIndexBy,Rm.sortedIndexOf=Ld.sortedIndexOf,Rm.sortedLastIndex=Ld.sortedLastIndex,Rm.sortedLastIndexBy=Ld.sortedLastIndexBy,Rm.sortedLastIndexOf=Ld.sortedLastIndexOf,Rm.startCase=AE.startCase,Rm.startsWith=AE.startsWith,Rm.subtract=aM.subtract,Rm.sum=aM.sum,Rm.sumBy=aM.sumBy,Rm.template=AE.template,Rm.times=oj.times,Rm.toFinite=fk.toFinite,Rm.toInteger=rt,Rm.toLength=fk.toLength,Rm.toLower=AE.toLower,Rm.toNumber=fk.toNumber,Rm.toSafeInteger=fk.toSafeInteger,Rm.toString=fk.toString,Rm.toUpper=AE.toUpper,Rm.trim=AE.trim,Rm.trimEnd=AE.trimEnd,Rm.trimStart=AE.trimStart,Rm.truncate=AE.truncate,Rm.unescape=AE.unescape,Rm.uniqueId=oj.uniqueId,Rm.upperCase=AE.upperCase,Rm.upperFirst=AE.upperFirst,Rm.each=Up.forEach,Rm.eachRight=Up.forEachRight,Rm.first=Ld.head,Ej(Rm,function(){var e={};return Ad(Rm,(function(t,n){Cj.call(Rm.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Rm.VERSION=bj,(Rm.templateSettings=AE.templateSettings).imports._=Rm,Jd(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Rm[e].placeholder=Rm})),Jd(["drop","take"],(function(e,t){km.prototype[e]=function(n){n=void 0===n?1:Lj(rt(n),0);var i=this.__filtered__&&!t?new km(this):this.clone();return i.__filtered__?i.__takeCount__=Tj(n,i.__takeCount__):i.__views__.push({size:Tj(n,kj),type:e+(i.__dir__<0?"Right":"")}),i},km.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Jd(["filter","map","takeWhile"],(function(e,t){var n=t+1,i=n==wj||n==xj;km.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:zs(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}})),Jd(["head","last"],(function(e,t){var n="take"+(t?"Right":"");km.prototype[e]=function(){return this[n](1).value()[0]}})),Jd(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");km.prototype[e]=function(){return this.__filtered__?new km(this):this[n](1)}})),km.prototype.compact=function(){return this.filter(Ei)},km.prototype.find=function(e){return this.filter(e).head()},km.prototype.findLast=function(e){return this.reverse().find(e)},km.prototype.invokeMap=Ji((function(e,t){return"function"==typeof e?new km(this):this.map((function(n){return Qh(n,e,t)}))})),km.prototype.reject=function(e){return this.filter(Df(zs(e)))},km.prototype.slice=function(e,t){e=rt(e);var n=this;return n.__filtered__&&(e>0||t<0)?new km(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(t=rt(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},km.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},km.prototype.toArray=function(){return this.take(kj)},Ad(km.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),r=Rm[i?"take"+("last"==t?"Right":""):t],o=i||/^find/.test(t);r&&(Rm.prototype[t]=function(){var t=this.__wrapped__,a=i?[1]:arguments,s=t instanceof km,l=a[0],u=s||xt(t),c=function(e){var t=r.apply(Rm,ht([e],a));return i&&d?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(s=u=!1);var d=this.__chain__,h=!!this.__actions__.length,f=o&&!d,p=s&&!h;if(!o&&u){t=p?t:new km(this);var m=e.apply(t,a);return m.__actions__.push({func:BC,args:[c],thisArg:void 0}),new Om(m,d)}return f&&p?e.apply(this,a):(m=this.thru(c),f?i?m.value()[0]:m.value():m)})})),Jd(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Mj[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);Rm.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var r=this.value();return t.apply(xt(r)?r:[],e)}return this[n]((function(n){return t.apply(xt(n)?n:[],e)}))}})),Ad(km.prototype,(function(e,t){var n=Rm[t];if(n){var i=n.name+"";Cj.call(Dm,i)||(Dm[i]=[]),Dm[i].push({name:t,func:n})}})),Dm[Iv(void 0,_j).name]=[{name:"wrapper",func:void 0}],km.prototype.clone=sj,km.prototype.reverse=uj,km.prototype.value=yj,Rm.prototype.at=hD.at,Rm.prototype.chain=hD.wrapperChain,Rm.prototype.commit=hD.commit,Rm.prototype.next=hD.next,Rm.prototype.plant=hD.plant,Rm.prototype.reverse=hD.reverse,Rm.prototype.toJSON=Rm.prototype.valueOf=Rm.prototype.value=hD.value,Rm.prototype.first=Rm.prototype.head,Dj&&(Rm.prototype[Dj]=hD.toIterator);var Pj=Rm,jj={disabled:!1,inline:!1,isShowLabel:!0,isDialog:!1,isShowSubmitBtn:!1,isShowBackBtn:!1,isShowResetBtn:!1,isShowCancelBtn:!1,isResponsive:!0,submitBtnText:"提交",cancelBtnText:"取消",backBtnText:"返回",resetBtnText:"重置",labelWidth:"90",labelPosition:"right",span:null,formBtnSize:null,grid:"one"};g.a.use(y["a"]);var Oj=Pj.cloneDeep(jj),Ij=new y["a"].Store({state:{curCusTableIndex:null,notDataFlag:!1,headImg:"",relationState:"",ScheduleDel:!1,storeInformation:{},storeType:!1,identity:{user:!1,realName:!1,enterprise:!1,authentication:!1,relevance:!1,type:0},centerMeun:{},token:"",area:{},loginType:!1,user:{identityCard:"",realName:"",registerTime:"",userRole:0},auth_user:{authorities:[]},global_area:[],shopInfo:{},menuList:[],upload:"".concat("https://gateway.shigongbang.com/enterprise-managerment-release","/file/add"),uploadMess:"".concat("https://gateway.shigongbang.com/enterprise-managerment-release","/file/recognition"),uploadApp:"".concat("https://gateway.shigongbang.com").concat("/sgb-app-manager","/v1/app/common/imgUpload"),otherUpload:"file/add",otherUploadMess:"file/recognition",imgUrl:"https://shigongbang.oss-cn-hangzhou.aliyuncs.com/",imgShop:"https://shigongbang.oss-cn-hangzhou.aliyuncs.com/",isCollapse:!1,tags:[],current_tag:"",menuFinish:!1,currentMenu:"/Hgcgl",currentTopMenu:0,projectName:"",msgs:{},sysMsgs:[],customSysMsgs:[],sysMsgUnread:{},session:[],nimState:!1,toUser:"",friends:[],teams:[],imUserName:"",teamMember:{},formAttr:Oj,list:{default:[]},selectIndex:null,activeFormName:"default",formBuilder:{menuId:"",formDesId:"",currentMenu:""},formBuilderActive:1,refreshList:!0,selSubIndex:null},mutations:{SET_MENULIST:function(e,t){e.menuList=t},SET_NODATAFLAG:function(e,t){},changeMsgNum:function(e,t){e.user.msgNum=t},updateStoreInformation:function(e,t){e.storeInformation=t},SET_LOGINTYPE:function(e,t){e.loginType=t},SET_CENTERMEUN:function(e,t){t.childrens.length>0&&t.childrens.forEach((function(e){e.unfold=!1})),0===t.childrens.length?(Auth.forEach((function(e){e.childrens.length,e.unfold=!1})),t.unfold=!0,this.$router.push({path:t.path})):(Auth.forEach((function(e){e.unfold=!1})),t.unfold?t.unfold=!1:t.unfold=!0),e.centerMeun=t},SET_TOKEN:function(e,t){e.token=t},SET_AUTH_USER:function(e,t){e.auth_user=t},SET_GLOBAL_AREA:function(e,t){e.global_area=t},SET_ISCOLLAPSE:function(e){e.isCollapse=!e.isCollapse},SET_USER:function(e,t){e.user=t,e.identity.user=!1,e.identity.realName=!1,e.identity.enterprise=!1,0==t.userRole&&(e.identity.user=!0,e.identity.type=0),0==t.userRole&&1==t.personalAuth&&(e.identity.realName=!0,e.identity.type=1),t.userRole&&0!=t.userRole&&(e.identity.enterprise=!0,e.identity.type=2,this.dispatch("setStoreInformation")),t.relevance&&(e.identity.relevance=!0),(e.identity.user&&e.identity.relevance||e.identity.enterprise)&&(e.identity.authentication=!0),t.imAccount&&t.imToken},LOGIN_OUT:function(e){e.loginType=!1,e.menuFinish=!1,e.user={identityCard:"",realName:"",registerTime:"",userRole:0},e.identity.user=!1,e.identity.realName=!1,e.identity.enterprise=!1,e.tags=[],e.currentMenu="",e.currentTopMenu=0,this.commit("SET_LOGINTYPE",!1),this.commit("SET_TOKEN",null),this.commit("SET_USER",{}),A.set("expire",!0),C.cookieClear("token"),C.cookieClear("h_projectNo"),e.msgs={},e.sysMsgs=[],e.session=[],e.toUser="",e.friends=[],e.teams=[],e.imUserName="",e.teamMember={},window.nim&&window.nim.destroy({done:function(e){window.nim=null}})},SET_AREA:function(e,t){e.area=t},SET_STORE_TYPE:function(e,t){e.storeType=t},SET_SHOPINFO:function(e,t){e.shopinfo=t},SET_MENUFINISH:function(e,t){e.menuFinish=t},SET_CURRENTMENU:function(e,t){e.currentMenu=t},SET_CURRENTTOPMENU:function(e,t){e.currentTopMenu=t},SET_TAGS:function(e,t){e.tags.push(t)},SET_CURRENTTAG:function(e,t){e.current_tag=t},RESET_TAGS:function(e,t){e.tags=t},SET_MSGS:function(e,t){if(Array.isArray(t)||(t=[t]),t[0]){var n=t[0].sessionId,i=window.nim.mergeMsgs(e.msgs[n],t);e.msgs[n]=i,e.msgs=Object.assign({},e.msgs)}},DELMSYS:function(e,t){e.msgs[t.msg.sessionId].forEach((function(n,i){n.idServer==t.msg.idServer&&e.msgs[t.msg.sessionId].splice(i,1,t.data)}))},SET_SYSMSGS:function(e,t){!Array.isArray(t)&&"deleteMsg"==t.type&&e.msgs[t.msg.sessionId]&&e.msgs[t.msg.sessionId].forEach((function(n,i){n.idServer==t.deletedIdServer&&(e.msgs[t.msg.sessionId].splice(i,1),nimTool.sendTipMsg(t.msg,e))}));var n=Array.isArray(t)?t:[t],i=n.filter((function(e){return!e.type&&"deleteMsg"==e.type}));if(i.length>0){window.nim.markSysMsgRead({sysMsgs:i,done:function(e,t){}});var r=i.map((function(e){return e.idServer}));window.nim.deleteLocalSysMsg({idServer:r,done:function(e,t){}})}e.sysMsgs=window.nim.mergeSysMsgs(e.sysMsgs,t)},updatwSysMsgUnread:function(e,t){e.sysMsgUnread=t},updatwCustomSysMsgs:function(e,t){var n=e.customSysMsgs;Array.isArray(t)?n=n.concat(t):n.push(t),e.customSysMsgs=n},SET_SESSION:function(e,t){e.session=window.nim.mergeSessions(e.session,t)},UPDATE_SESSION:function(e,t){var n="";e.session.forEach((function(e,i){e.id==t.id&&(n=i)})),""!==n?e.session.splice(n,1,t):e.session.push(t)},DELETE_SESSION:function(e,t){e.session.forEach((function(n,i){n.id==t&&e.session.splice(i,1)}))},updateNimState:function(e,t){e.nimState=t},SETTOUSER:function(e,t){window.nim&&window.nim.setCurrSession(t),e.toUser=t},SET_FRIENDS:function(e,t){e.friends=t},DELETE_FRIEND:function(e,t){var n=window.nim.cutFriendsByAccounts(e.friends,t);e.friends=Object.assign({},n)},DELETE_TEAM:function(e,t){var n=window.nim.mergeTeams(e.teams,t);n=window.nim.cutTeams(e.teams,t.invalid),e.teams=n},SET_TEAMS:function(e,t){Array.isArray(t)||(t=[t]),t=t.filter((function(e){return!!e})),t.forEach((function(e){void 0===e.validToCurrentUser&&(e.validToCurrentUser=!0)}));var n=window.nim.mergeTeams(e.teams,t);n=window.nim.cutTeams(n,t.invalid),e.teams=n},SET_IMUSERNAME:function(e,t){e.imUserName=t},SET_TEAMMENBER:function(e,t){var n=Object.assign({},e.teamMember);n[t.teamId]=t.menber,e.teamMember=n},updateCurrentItem:function(e,t){e.list[e.activeFormName].splice(e.selectIndex,1,t)},updateSelectIndex:function(e,t){e.selSubIndex=null,e.selectIndex=t},updateSelSubIndex:function(e,t){e.selSubIndex=t},updateCusIndex:function(e,t){e.curCusTableIndex=t},clearForm:function(e,t){t?D["MessageBox"].confirm("此操作将清空该表单中的内容, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectIndex=null,e.selSubIndex=null,e.list=Object.assign({},{default:[]}),e.formAttr=Oj,Object(D["Message"])({type:"success",message:"清空成功!"})})).catch((function(){Object(D["Message"])({type:"info",message:"已取消"})})):(e.selectIndex=null,e.selSubIndex=null,e.list=Object.assign({},{default:[]}),e.formAttr=Oj)},updateFormAttr:function(e,t){var n=Pj.cloneDeep(t);e.formAttr=n},deleteItemByIndex:function(e,t){var n=t.index,i=t.name;e.list[i].splice(n,1)},updateList:function(e,t){var n=Pj.cloneDeep(t.newList);e.list[t.name]=n,e.list=Object.assign({},e.list)},updateFormBuilder:function(e,t){var n=Pj.cloneDeep(t);e.formBuilder=n},updateActiveFormName:function(e,t){e.activeFormName=t},updateTitleArr:function(e,t){e.formAttr.title=t;var n=Pj.cloneDeep(formAttr);e.formAttr.title=n},UPDATAREFRESHLIST:function(e){e.refreshList=!e.refreshList}},getters:{getCurrentTitleArr:function(e){return e.formAttr.title},getUser:function(e){return e.user},menuList:function(e){return e.menuList},currentFormItem:function(e,t){if(null!=e.selSubIndex){var n,i,r=null!==e.selectIndex&&e.list[e.activeFormName]?e.list[e.activeFormName][e.selectIndex]:null;return r&&null!==r&&void 0!==r&&null!==(n=r.attrs)&&void 0!==n&&n.columns?null!==(i=r.attrs.columns[e.selSubIndex])&&void 0!==i&&i.content?(r.attrs.columns[e.selSubIndex].content["pid"]=e.list[e.activeFormName][e.selectIndex].field,r.attrs.columns[e.selSubIndex].content):(r.attrs.columns[e.selSubIndex]["pid"]=e.list[e.activeFormName][e.selectIndex].field,r.attrs.columns[e.selSubIndex]):null}return null!==e.selectIndex&&e.list[e.activeFormName]?e.list[e.activeFormName][e.selectIndex]:null}},actions:{setStoreInformation:function(e){return d(regeneratorRuntime.mark((function t(){var n,i,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.commit,t.next=3,B.getStoreInformation();case 3:i=t.sent,r=i.data.data,r&&""!==r.image&&(r.image=r.image.split(",")),n("updateStoreInformation",r);case 7:case"end":return t.stop()}}),t)})))()},setUser:function(e){var t=this;return d(regeneratorRuntime.mark((function n(){var i,r,o,a,s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=e.commit,n.next=3,q.getUserInfo();case 3:return r=n.sent,o=r.data.data,i("SET_USER",o),n.next=8,apiAuth.getAuthList();case 8:a=n.sent,s=a.data,0===s.code?i("SET_AUTH_USER",s.result):t.$message.error(s.msg);case 11:case"end":return n.stop()}}),n)})))()}}}),Yj=Ij;window.pending=[];window.pending,m.a.CancelToken;var Aj=JSON.parse(localStorage.getItem("env"))||{};m.a.defaults.timeout=5e4,m.a.defaults.baseURL=Aj.VUE_APP_APIUSER,m.a.interceptors.request.use((function(e){var t=C.cookieRead("token");return t&&(e.headers.Authorization="Bearer ".concat(t)),e}),(function(e){return Promise.reject(e)})),m.a.interceptors.response.use((function(e){return e}),(function(e){return e.response&&(666===e.response.data.code?(D["Message"].error(e.response.data.msg),Yj.commit("LOGIN_OUT")):D["Message"].error(e.response.data.msg)),{data:e.response?e.response.data:"error"}}));var Nj={get:function(e,t){return new Promise((function(n,i){m()({method:"get",params:t,url:e}).then((function(e){n(e)}))}))},getData:function(e,t,n){return new Promise((function(i,r){m()({method:"get",params:t,url:e,data:n}).then((function(e){i(e)}))}))},post:function(e,t){return new Promise((function(n,i){m()({method:"post",data:t,url:e}).then((function(e){n(e)}))}))},postParams:function(e,t){return new Promise((function(n,i){m()({method:"post",params:t,url:e}).then((function(e){n(e)}))}))},postHeaders:function(e,t,n){return new Promise((function(n,i){m()({method:"post",data:t,url:e,headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((function(e){n(e)}))}))},postData:function(e,t,n){return new Promise((function(i,r){m()({method:"post",params:t,url:e,data:n}).then((function(e){i(e)}))}))},postLogin:function(e,t){return new Promise((function(n,i){m()({method:"post",headers:{Authorization:"Basic Z2N0eDpnY3R4"},url:e,params:t}).then((function(e){n(e)}))}))},put:function(e,t){return new Promise((function(n,i){m()({method:"put",data:t,url:e}).then((function(e){n(e)}))}))},patch:function(e,t){return new Promise((function(n,i){m()({method:"patch",data:t,url:e}).then((function(e){n(e)}))}))},delete:function(e){return new Promise((function(t,n){m()({method:"delete",url:e}).then((function(e){t(e)}))}))},deleteParams:function(e,t){return new Promise((function(n,i){m()({method:"delete",url:e,data:t}).then((function(e){n(e)}))}))}},Hj=n("7c78"),Rj=n.n(Hj),Fj=JSON.parse(localStorage.getItem("env")),zj=Fj.VUE_APP_API+"/sgb-meta-design";Fj.VUE_APP_API,Fj.VUE_APP_QIGUAN;console.log(zj);var $j=function(){var e=d(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Nj.postHeaders("".concat(zj,"/v1/pc/process/addProcess"),Rj.a.stringify(t)));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Bj=function(){var e=d(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Nj.post("".concat(zj,"/v1/pc/process/addProcessV1"),t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Wj=function(){var e=d(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Nj.postHeaders("".concat(zj,"/v1/pc/process/updateProcess"),Rj.a.stringify(t)));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Vj=function(){var e=d(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Nj.post("".concat(zj,"/v1/pc/process/updateProcessV1"),t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Uj=function(){var e=d(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Nj.postHeaders("".concat(zj,"/v1/pc/process/updateOldProcessToNewProcess"),Rj.a.stringify(t)));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),qj=function(){var e=d(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Nj.post("".concat(zj,"/v1/pc/process/queryProcessByType"),t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Gj=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Nj.get("".concat(zj,"/v1/pc/process/directorLevelList")));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Kj=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.easyFlowVisible?n("div",[e.tools?n("el-row",[n("el-col",{staticClass:"right-plan",attrs:{span:24}},[n("div",{staticClass:"process-heard"},[e.queryName?[e.isEdit?n("div",[n("span",{staticClass:"process-title"},[e._v(e._s(e.queryName)+"流程")])]):n("div",[n("el-input",{attrs:{autofocus:"",placeholder:"请输入内容"},on:{blur:e.changeName},model:{value:e.conName,callback:function(t){e.conName=t},expression:"conName"}})],1)]:n("div"),n("div",[n("div",{staticClass:"switch"},[n("span",[e._v("是否开启审批:")]),n("el-switch",{model:{value:e.isFlg,callback:function(t){e.isFlg=t},expression:"isFlg"}})],1),n("el-button",{on:{click:e.cancal}},[e._v("取消")]),n("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保存")])],1)],2)])],1):e._e(),n("el-col",{attrs:{span:24}},[n("div",{staticClass:"container-process",attrs:{id:"flowContainer"}},[e._l(e.data.nodeList,(function(t,i){return["addCondition"!==t.item.type?n("flow-node",{key:i,ref:"flowNode",refInFor:!0,attrs:{node:t.item,level:t.level},on:{deleteNode:e.deleteNode,changeNodeSite:e.changeNodeSite,nodeRightMenu:e.nodeRightMenu,editNode:e.editNode,showForm:e.showForm,changeName:e.changeNodeName}}):n("div",{key:t.item.id+"_add",staticClass:"add-condition",style:{top:t.item.top,left:t.item.left},attrs:{id:"flowchartWindow"+t.item.id},on:{click:function(t){return e.addExtraCondition(t)}}},[e._v("\n 添加条件\n ")])]})),n("flow-node-condition",{directives:[{name:"show",rawName:"v-show",value:e.conditionVisible,expression:"conditionVisible"}],ref:"conditionForm",attrs:{formData:e.connection,title:e.title},on:{edit:e.editName,save:e.setCondition,cancal:function(t){e.conditionVisible=!1}}}),e.showAddNode?n("add-node-box",{attrs:{info:e.addNodeInfo},on:{close:function(){e.showAddNode=!1},addNode:e.addNode}}):e._e()],2)]),n("approver-selector",{ref:"approverSelector",attrs:{approverList:e.approverSelectorData.approverList,notifierList:e.approverSelectorData.notifierList},on:{save:e.setNode},model:{value:e.selectorVisible,callback:function(t){e.selectorVisible=t},expression:"selectorVisible"}})],1):e._e()},Jj=[];function Xj(e){if(Array.isArray(e))return e}n("3f01"),n("4fa8"),n("b4a0"),n("7f6e"),n("1ab5");function Zj(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done);a=!0)if(o.push(i.value),t&&o.length===t)break}catch(l){s=!0,r=l}finally{try{a||null==n["return"]||n["return"]()}finally{if(s)throw r}}return o}}n("952e"),n("f73d");function Qj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function eO(e,t){if(e){if("string"===typeof e)return Qj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qj(e,t):void 0}}function tO(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function nO(e,t){return Xj(e)||Zj(e,t)||eO(e,t)||tO()}n("2c48"),n("e59e"),n("5b91"),n("f736");var iO=n("46f3"),rO=n.n(iO),oO=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.update?n("div",{ref:"node",staticClass:"plannode",style:e.nodeContainerStyle,attrs:{id:"flowchartWindow"+e.node.id},on:{mouseenter:function(t){e.mouseEnter=!0},mouseleave:function(t){e.mouseEnter=!1},mouseup:e.changeNodePosition}},[[n("div",{staticClass:"flow-node-header",class:e.mouseEnter?"point":""},["start"!==e.node.type&&"end"!==e.node.type?n("p",{staticClass:"flow-name"},[e.isEdit?n("el-input",{ref:"editInput",on:{blur:e.handleBlur},model:{value:e.editName,callback:function(t){e.editName="string"===typeof t?t.trim():t},expression:"editName"}}):n("span",{staticClass:"hand-icon",on:{click:function(t){return t.stopPropagation(),e.editNodeName.apply(null,arguments)}}},[e._v(e._s(e.node.name))])],1):n("p",{staticClass:"flow-name"},[n("span",[e._v(e._s(e.node.name))])]),"start"!==e.node.type&&"end"!==e.node.type?n("div",{staticClass:"flow-node-operate"},[n("a",{attrs:{href:"#"},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.deleteNode(e.node)},mousemove:function(e){return e.stopPropagation(),e.preventDefault(),function(){}.apply(null,arguments)}}},[n("i",{staticClass:"el-icon-close"})]),e._v("\n  \n ")]):e._e()]),"condition"==e.node.type?n("div",{staticClass:"flow-node-body",attrs:{title:e.node.desc?e.node.desc:""},on:{click:function(t){return e.showForm(e.node)}}},[e._v("\n "+e._s(e.node.desc?e.node.desc:"请设置条件")+"\n ")]):"ccTask"==e.node.type?n("div",{staticClass:"flow-node-body",on:{click:function(t){return e.showForm(e.node)}}},[e.node.notifiers&&e.node.notifiers.length?n("span",[e._l(e.node.notifiers,(function(t,i){return n("i",{key:i,staticStyle:{padding:"0 5px"}},[e._v(e._s(t.userName))])})),e._v("\n (抄送"+e._s(e.node.notifiers.length)+"人)\n ")],2):n("span",[e._v("请选择抄送人")])]):"userTask"==e.node.type?n("div",{staticClass:"flow-node-body",on:{click:function(t){return e.showForm(e.node)}}},[n("div"),e.node.directorType&&2==e.node.directorType.type?n("span",[e._v("\n "+e._s(e.node.approvers&&e.node.directorType.type?e.node.approvers&&e.node.approvers[0].directorName:"")+"\n "+e._s("2"==e.node.approverType?"或签":"3"==e.node.approverType?"依次审批":"会签")+"\n ")]):n("span",[e.node.approvers&&e.node.approvers.length>0?n("span",e._l(e.node.approvers,(function(t,i){return n("i",{key:i,staticStyle:{padding:"0 5px"}},[e._v(e._s(t.userName))])})),0):e._e(),e._v("\n ("+e._s(e.node.approvers&&e.node.approvers.length>0?1==e.node.approvers.length?e.node.approvers[0].userName:e.node.approvers.length+"人":"请选择审批人")+")\n "),e.node.approvers&&e.node.approvers.length>1?n("span",[e._v(e._s("2"==e.node.approverType?"或签":"3"==e.node.approverType?"依次审批":"会签"))]):e._e()])]):n("div",{staticClass:"flow-node-body"})]],2):e._e()},aO=[],sO=(n("cee7"),{props:{node:Object,level:Number},data:function(){return{mouseEnter:!1,isEdit:!1,editName:"",update:!0}},computed:{nodeContainerStyle:function(){return{position:"absolute",width:"addCondition"==this.node.type?"auto":"200px",top:this.node.top,left:this.node.left,boxShadow:this.mouseEnter?"#66a6e0 0px 0px 12px 0px":"",backgroundColor:"transparent"}},nodeIcoClass:function(){var e={};return e[this.node.ico]=!0,e["flow-node-drag"]=!0,e}},methods:{refreshFlowItem:function(){var e=this;this.update=!1,this.$nextTick((function(){e.update=!0}))},deleteNode:function(e){},editNode:function(){},changeNodePosition:function(){var e=this;if(this.node.left!=this.$refs.node.style.left||this.node.top!=this.$refs.node.style.top)return setTimeout((function(){e.$emit("changeNodeSite",{id:e.node.id,left:e.$refs.node.style.left,top:e.$refs.node.style.top})}),100),!1},editNodeName:function(){var e=this;this.editName=this.node.name,this.isEdit=!0,this.$nextTick((function(){e.$refs.editInput.$refs.input.focus()}))},handleBlur:function(){this.editName!==this.node.name&&""!=this.editName&&this.$emit("changeName",{node:this.node,name:this.editName}),this.isEdit=!1},showForm:function(e){},addCondition:function(){}}}),lO=sO;n("027f");function uO(e,t,n,i,r,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}var cO,dO=uO(lO,oO,aO,!1,null,null,null),hO=dO.exports,fO=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-drawer",{staticClass:"nodeConditionModal",attrs:{visible:e.nodeConditionModal,direction:"rtl",wrapperClosable:!1,"show-close":!1,"close-on-press-escape":!1,"destroy-on-close":"","append-to-body":!0}},[n("div",{staticClass:"wrapper",on:{click:function(e){e.stopPropagation()}}},[n("div",{staticClass:"title"},[e.isEdit?n("div",[n("span",[e._v(e._s(e.title))]),n("i",{staticClass:"el-icon-edit",on:{click:function(t){t.stopPropagation(),e.isEdit=!1}}})]):n("div",[n("el-input",{attrs:{autofocus:"",placeholder:"请输入内容"},on:{blur:e.changeName},model:{value:e.conName,callback:function(t){e.conName=t},expression:"conName"}})],1)]),n("div",{staticClass:"content"},[n("el-form",{ref:"form",staticClass:"form-box",attrs:{model:e.form,"label-width":"80px"}},e._l(e.formConfig,(function(t,i){return n("div",{key:i},["checkbox"==t.ele?[n("el-form-item",{attrs:{label:t.name+": "}},[n("el-checkbox-group",{on:{change:function(n){return e.handlerChange(n,t)}},model:{value:e.form[t.variable].value,callback:function(n){e.$set(e.form[t.variable],"value",n)},expression:"form[item.variable].value"}},e._l(t.data,(function(t,i){return n("el-checkbox",{key:i,attrs:{label:t.no}},[e._v(e._s(t.name))])})),1)],1)]:e._e(),"input"==t.ele?[n("el-form-item",{attrs:{label:t.name+": ",rules:{validator:e.validatePass,trigger:"change",message:"不能小于0"},prop:t.variable}},[n("el-row",{attrs:{gutter:4}},[n("el-col",{attrs:{span:11}},[n("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form[t.variable].opt,callback:function(n){e.$set(e.form[t.variable],"opt",n)},expression:"form[item.variable].opt"}},e._l(e.optOption,(function(e){return n("el-option",{key:e.value,attrs:{label:e.labal,value:e.value}})})),1)],1),n("el-col",{attrs:{span:11}},[n("el-input",{model:{value:e.form[t.variable].value,callback:function(n){e.$set(e.form[t.variable],"value",n)},expression:"form[item.variable].value"}})],1)],1)],1)]:e._e(),"sponsor"==t.ele?[n("el-form-item",{attrs:{label:t.name+": "}},[n("div",[e.form[t.variable].sponsors&&e.form[t.variable].sponsors.length>0?[n("div",{staticClass:"selector",on:{click:function(t){e.showSelector=!0}}},e._l(e.form[t.variable].sponsors,(function(i){return n("el-tag",{key:i.userId,attrs:{closable:""},on:{close:function(n){return e.removeTag(t.variable,i)}}},[e._v("\n "+e._s(i.userName)+"\n ")])})),1)]:[n("el-input",{attrs:{placeholder:"请选择具体人员"},on:{focus:function(t){e.showSelector=!0}}})]],2)])]:e._e(),"spoSxy"==t.ele?[n("el-form-item",{attrs:{label:t.name+": "}},[n("div",[e.form[t.variable].sponsors&&e.form[t.variable].sponsors.length>0?[n("div",{staticClass:"selector",on:{click:function(n){return e.showSxyL(t.variable)}}},e._l(e.form[t.variable].sponsors,(function(i){return n("el-tag",{key:i[t.variable],attrs:{closable:""},on:{close:function(n){return e.removeTag(t.variable,i)}}},[e._v("\n "+e._s(i.userName)+"\n ")])})),1)]:[n("el-input",{attrs:{placeholder:"请选择人员"},on:{focus:function(n){return e.showSxyL(t.variable)}}})]],2)])]:e._e(),"radio"==t.ele?[n("el-form-item",{attrs:{label:t.name+": "}},[n("div",[n("el-radio-group",{model:{value:e.form[t.variable].value,callback:function(n){e.$set(e.form[t.variable],"value",n)},expression:"form[item.variable].value"}},[e._l(t.data,(function(t,i){return[n("el-radio",{key:i,attrs:{label:t.value}},[e._v(e._s(t.name))])]}))],2)],1)])]:e._e()],2)})),0),n("el-form",{staticClass:"userHandle"},[n("el-form-item",[n("el-button",{attrs:{type:"primary",size:"medium"},on:{click:function(t){return t.stopPropagation(),e.addCondition.apply(null,arguments)}}},[e._v("添加条件")]),n("span",{staticClass:"mar_l20"},[e._v("还有 "+e._s(e.able)+" 个可用条件")])],1)],1)],1),n("div",{staticClass:"btn-group"},[n("el-button",{on:{click:function(t){return t.stopPropagation(),e.nodeConditionHandler.apply(null,arguments)}}},[e._v("取消")]),n("el-button",{attrs:{type:"primary"},on:{click:function(t){return t.stopPropagation(),e.save.apply(null,arguments)}}},[e._v("保存")])],1),n("el-dialog",{staticClass:"conditionSelect",attrs:{title:"选择条件",visible:e.isShow,width:"30%",modal:!1,"before-close":e.handleClose},on:{"update:visible":function(t){e.isShow=t}}},[n("span",[e._v("请选择用来区分审批流程的条件字段")]),n("el-checkbox-group",{staticClass:"mar_t20",model:{value:e.condition,callback:function(t){e.condition=t},expression:"condition"}},e._l(e.configList,(function(t,i){return n("el-checkbox",{key:i,attrs:{label:t.variable}},[e._v(e._s(t.name))])})),1),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){return t.stopPropagation(),e.cancel.apply(null,arguments)}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:function(t){return t.stopPropagation(),e.determine.apply(null,arguments)}}},[e._v("确 定")])],1)],1),e.showSelector?n("MemberSelection",{attrs:{title:"选择发起人",directClose:!1,formData:e.selectData,memberNo:e.memberNo},on:{close:function(t){e.showSelector=!1},save:e.checkMenber}}):e._e(),e.showSxytor?n("MemberSelection",{attrs:{title:"选择申请人",directClose:!1,formData:e.selSxytData,memberNo:e.memSxyrNo},on:{close:function(t){e.showSxytor=!1},save:e.checkSxyber}}):e._e()],1)])},pO=[];function mO(e){return mO="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mO(e)}function vO(e){if(Array.isArray(e))return Qj(e)}function gO(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function yO(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function bO(e){return vO(e)||gO(e)||eO(e)||yO()}var _O=JSON.parse(localStorage.getItem("env")),wO=_O.VUE_APP_APIUSER,xO="https://api.sgbwl.com/sgb-app",kO=_O.VUE_APP_APIUSER,MO=_O.VUE_APP_API+_O.VUE_APP_QIGUAN,SO=(cO={permitGroupName:function(e){return Nj.post(wO+"/v1/api/management/attendance/permitGroupName",e)},attendance:function(e){return Nj.post(wO+"/v1/api/management/attendance/list",e)},getQueryById:function(e){return Nj.post(wO+"/v1/api/management/attendance/queryById",e)},deleteRule:function(e){return Nj.post(wO+"/v1/api/management/attendance/delete",e)},changeRule:function(e){return Nj.post(wO+"/v1/api/management/attendance/modify",e)},addRule:function(e){return Nj.post(wO+"/v1/api/management/attendance/save",e)},clock:function(e){return Nj.post(wO+"/v1/api/management/clock",e)},getUserList:function(e){return Nj.post(wO+"/v1/api/management/attendance/getUserList",e)},addSave:function(e){return Nj.post(wO+"/v1/api/management/clock/save",e)},deleteSave:function(e){return Nj.post(wO+"/v1/api/management/clock/delete",e)},changeSave:function(e){return Nj.post(wO+"/v1/api/management/clock/modify",e)},detailsSave:function(e){return Nj.post(wO+"/v1/api/management/clock/queryById",e)},permitConfigName:function(e){return Nj.post(wO+"/v1/api/management/clock/permitConfigName",e)},getClockInList:function(e){return Nj.post(wO+"/v1/api/management/attendanceStatistics/list",e)},saveOutInfo:function(e,t){return Nj.post(xO+"/v1/web/approver/saveOutInfo?userNo="+t,e)},getOutApplyList:function(e){return Nj.post(kO+"/v1/api/management/apply/getOutApplyList",e)},savePatchInfo:function(e,t){return Nj.post(xO+"/v1/web/approver/savePatchInfo?userNo="+t,e)},saveLeaveInfo:function(e,t){return Nj.post(xO+"/v1/web/approver/saveLeaveInfo?userNo="+t,e)},leaveType:function(e){return Nj.post(xO+"/v1/web/approver/leaveType?userNo="+e)},getVacationList:function(e){return Nj.get(wO+"/v1/api/management/holidayLeave/getHolidayList",e)},saveLoanInfo:function(e,t){return Nj.post(xO+"/v1/web/approver/saveLoanInfo?userNo="+t,e)},getOutDetail:function(e,t){return Nj.post(xO+"/v1/web/approver/outDetail?userNo="+t+"&applyNo="+e)},getPatchDetail:function(e,t){return Nj.post(xO+"/v1/web/approver/patchDetail?userNo="+t+"&applyNo="+e)},saveBusinessTrip:function(e,t){return Nj.post(xO+"/v1/web/approver/saveBusinessTrip?userNo="+t,e)},detailBusinessTrip:function(e,t){return Nj.post(xO+"/v1/web/approver/travelDetail?userNo="+t+"&applyNo="+e)},loanDetail:function(e,t){return Nj.post(xO+"/v1/web/approver/loanDetail?userNo="+t+"&applyNo="+e)},getLoanApplyList:function(e){return Nj.post(kO+"/v1/api/management/apply/getLoanApplyList",e)},getLeaveDetail:function(e,t){return Nj.post(xO+"/v1/web/approver/leaveDetail?userNo="+t+"&applyNo="+e)},getLeaveApplyList:function(e){return Nj.post(kO+"/v1/api/management/apply/getLeaveApplyList",e)},getAuditDetailForAudit:function(e){return Nj.post(kO+"/v2/api/audit/getAuditDetailForAudit",e)},getApplierInfo:function(e){return Nj.post(xO+"/v1/web/approver/applierInfo?userNo="+e)},approvalAudit:function(e){return Nj.post("".concat(xO,"/v1/web/approver/approvalAudit?resourceToken=").concat(e.resourceToken,"&userNo=").concat(e.userNo,"&reason=").concat(e.reason,"&result=").concat(e.result,"&applyNo=").concat(e.applyNo))},getEvectionList:function(e){return Nj.post(kO+"/v1/api/management/apply/getTravelApplyList",e)},getApplicantList:function(e){return Nj.get(kO+"/v1/api/management/apply/getUserByName",e)},getPatchApplyList:function(e){return Nj.post(kO+"/v1/api/management/apply/getPatchApplyList",e)},savePatchCardInfo:function(e){return Nj.post(MO+"/v1/app/webMeeting/savePatchInfo",e)}},o(cO,"savePatchCardInfo",(function(e){return Nj.post(MO+"/v1/app/webMeeting/savePatchInfo",e)})),o(cO,"getAssetCategoryList",(function(){return Nj.get("".concat(wO,"/v1/api/assetType/assetTree"))})),cO),CO=SO,DO=JSON.parse(localStorage.getItem("env")),LO=DO.VUE_APP_APIUSER,TO=DO.VUE_APP_API,EO=DO.VUE_APP_EMTERPRISE,PO={saveNotice:function(e){return Nj.post(LO+"/v1/api/notice/add",e)},GetNoticeType:function(){return Nj.get(LO+"/v1/api/notice/getType")},GetPublisher:function(){return Nj.get("api/user/getCurrentUserInfo")},GetCompany:function(){return Nj.get(TO+EO+"/v1/organization/getCompany")},GetDepartment:function(e){return Nj.get(TO+EO+"/v1/organization/getDep/".concat(e))},GetNoticeList:function(e){return Nj.post(LO+"/v1/api/notice/queryPage",e)},deleteNotices:function(e){return Nj.delete(LO+"/v1/api/notice/deleteById/"+e)},GetNoticeDetails:function(e){return Nj.get(LO+"/v1/api/notice/queryById/"+e)},GetDocumentType:function(){return Nj.get(LO+"/v1/api/officialDocument/typeList")}},jO=PO,OO=function(){var e=d(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Nj.get("v1/organization/getCompany",t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),IO=JSON.parse(localStorage.getItem("env")),YO=IO.VUE_APP_TEAM,AO=YO,NO=function(e,t){return Nj.get(AO+"".concat(e),t)},HO=function(){var e=d(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Nj.post(AO+"".concat(t),n));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),RO=function(){var e=d(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Nj.delete(AO+"".concat(t),n));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),FO={get:NO,post:HO,del:RO},zO=JSON.parse(localStorage.getItem("env")),$O=(zO.VUE_APP_APIUSER,JSON.parse(localStorage.getItem("env"))),BO=$O.VUE_APP_API,WO=$O.VUE_APP_EMTERPRISE,VO=$O.VUE_APP_QIGUAN,UO=$O.VUE_APP_AUTH,qO={list:function(){return Nj.get(BO+WO+"/v1/organization/getOrganization")},companylist:function(){return Nj.get(BO+WO+"/v1/organization/getCompany")},deplist:function(e){return Nj.get(BO+WO+"/v1/organization/getDep/".concat(e))},getId:function(e){return Nj.get(BO+WO+"/v1/organization/getOrganization/".concat(e))},save:function(e){return Nj.post(BO+WO+"/v1/organization/saveOrganization",e)},setSort:function(e){return Nj.post(BO+WO+"/v1/organization/setSort",e)},setRoleSort:function(e){return Nj.post(BO+WO+"/v1/organization/setRoleSort",e)},del:function(e){return Nj.delete(BO+WO+"/v1/organization/delOrg/".concat(e))},delRole:function(e){return Nj.delete(BO+WO+"/v1/organization/delRole/".concat(e))},getRole:function(){return Nj.get(BO+WO+"/v1/organization/getRole")},saveRole:function(e){return Nj.post(BO+WO+"/v1/organization/saveRole",e)},getUser:function(e){return Nj.post(BO+WO+"/v1/organization/getUser",e)},getUserByParentId:function(e){return Nj.get(BO+WO+"/v1/organization/getUserByParentId/".concat(e))},setUserSort:function(e){return Nj.post(BO+WO+"/v1/organization/setUserSort",e)},saveContacts:function(e){return Nj.post(BO+WO+"/v1/organization/saveContacts",e)},openIm:function(e){return Nj.get(BO+VO+"/v1/app/common/openIm?mobile="+e)},getUserByPhone:function(e){return Nj.post(BO+WO+"/v1/organization/getUserByPhone",e)},delUser:function(e){return Nj.post(BO+WO+"/v1/organization/delUser",e)},getRoleId:function(e){return Nj.get(BO+WO+"/v1/organization/getRoleById/".concat(e))},getMenu:function(){return Nj.get(BO+UO+"/v1/sys/menu/findByMark/company")},saveAuth:function(e){return Nj.post(BO+WO+"/v1/organization/saveManagementAuth",e)},getAuth:function(e){return Nj.get(BO+WO+"/v1/organization/getAuth/".concat(e))},auth:function(e,t){return Nj.get(BO+WO+"/v1/organization/auth/".concat(e,"/").concat(t))},getCompanyByUser:function(e){return Nj.post(BO+WO+"/v1/organization/getOrganizationCompanyByUser",e)},getDepByCompany:function(e){return Nj.post(BO+WO+"/v1/organization/getOrganizationDepByUserAndParentId",e)},getUserByCompany:function(e){return Nj.post(BO+WO+"/v1/organization/getAllUserByCompany",e)}},GO=qO,KO={addPosition:function(e){return Nj.post("/v1/rankposition/createNewPosition",e)},getPosition:function(e){return Nj.get("/v1/rankposition/getAllRankPosition",e)},delPosition:function(e){return Nj.get("/v1/rankposition/deleteRankPosition?id=".concat(e))},editPosition:function(e){return Nj.get("/v1/rankposition/editRankPosition",e)},getRank:function(){return Nj.get("/v1/rankmanagement/getAllRankPosition")},addRank:function(e){return Nj.post("/v1/rankmanagement/createNewRank",e)},getRankList:function(e){return Nj.get("/v1/rankmanagement/getAllRank",e)},delRank:function(e){return Nj.get("/v1/rankmanagement/deleteRank?id=".concat(e))},editRank:function(e){return Nj.post("/v1/rankmanagement/editRank",e)},pageRank:function(e){return Nj.get("/v1/rankmanagement/getRankImgById?id=".concat(e))}},JO=KO,XO=(n("14b6"),function(){var e=d(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=[{name:"请假类型",variable:"type",ele:"checkbox",data:[]},{name:"时长(天)",variable:"duration",ele:"input"}],e.next=3,CO.getVacationList({member:Yj.state.user.no});case 3:return n=e.sent,"200"==n.data.code&&(t[0].data=n.data.data.map((function(e){return{no:e.no,name:e.holidayName}}))),e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),ZO=function(){var e=d(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=[{name:"资产分类",variable:"assetTypeJp",ele:"checkbox",data:[]}],e.next=3,CO.getAssetCategoryList();case 3:return n=e.sent,200===n.data.code&&(t[0].data=n.data.data[0].subList),e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),QO=function(){var e=d(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=[{name:"耗材分类",variable:"matericalTypeJp",ele:"checkbox",data:[]}],e.next=3,CO.getAssetCategoryList();case 3:return n=e.sent,200===n.data.code&&(console.log(n.data.data[0].subList.subList),[],t[0].data=n.data.data[1].subList),e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),eI=function(){var e=d(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=[{name:"时长(天)",variable:"timeLength",ele:"input"}],e.abrupt("return",t);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),tI=function(){var e=d(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=[{name:"时长(天)",variable:"duration",ele:"input"}],e.abrupt("return",t);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),nI=function(){var e=d(regeneratorRuntime.mark((function e(){var t,n,i,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=[{name:"申请单位",variable:"accountSubject",ele:"checkbox",data:[]},{name:"工程类型",variable:"type",ele:"checkbox",data:[]},{name:"资金来源",variable:"fundSource",ele:"checkbox",data:iI},{name:"项目造价",variable:"price",ele:"input"},{name:"经营类型",variable:"businessType",ele:"checkbox",data:[{name:"合作管理",no:"1"},{name:"组织经营",no:"2"}]}],e.next=3,OO();case 3:return n=e.sent,t[0].data=bO(n.data.data),e.next=7,FO.get("/sysTeamCategory/findCategoryListTree");case 7:return i=e.sent,r=i.data,t[1].data=r.data,e.abrupt("return",t);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),iI=[{name:"国拨资金",no:"国拨资金"},{name:"业主自筹资金",no:"业主自筹资金"},{name:"国拨和自筹资金",no:"国拨和自筹资金"},{name:"专项资金",no:"专项资金"},{name:"市场回款",no:"市场回款"},{name:"银行融资",no:"银行融资"},{name:"援疆资金",no:"援疆资金"},{name:"全额中央预算内资金",no:"全额中央预算内资金"},{name:"扶贫资金",no:"扶贫资金"},{name:"政府发债资金",no:"政府发债资金"},{name:"财政资金",no:"财政资金"},{name:"中央内资金",no:"中央内资金"}],rI=function(){var e=d(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return function(){var e=d(regeneratorRuntime.mark((function e(n,i){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:r=[],n.length>0&&n.forEach(function(){var e=d(regeneratorRuntime.mark((function e(t){var n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,GO.deplist(t);case 2:n=e.sent,200==n.data.code&&(i=oI(n.data.data,"name","id"),r.push.apply(r,bO(i)));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),t[1].data=r,i&&(i.form.departmentNo.value=i.form.departmentNo.value.filter((function(e){var t=r.filter((function(e){e.no}));return t.length>0})));case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),t=[{name:"申请人",variable:"proposer",ele:"spoSxy"}],e.abrupt("return",t);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();function oI(e,t,n){var i=[];return e.forEach((function(e){if(i.push({name:e[t],no:e[n]}),e.children){var r=oI(e.children,t,n);i.push.apply(i,bO(r))}})),console.log(i),i}var aI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[{name:"申请人",variable:"proposer",ele:"spoSxy"}]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),sI=function(){var e=d(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={pageNum:1,pageSize:20},n=[{name:"职位",variable:"departmentRank",ele:"checkbox",data:[]}],e.next=4,JO.getPosition(t);case 4:return i=e.sent,"200"==i.data.code&&(n[0].data=i.data.data.content.map((function(e){return{no:e.id,name:e.rankName}}))),e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),lI=function(){var e=d(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={pageNum:1,pageSize:20},n=[{name:"职位",variable:"departmentRank",ele:"checkbox",data:[]},{name:"是否调薪",variable:"isAdjustedSalary",ele:"radio",data:[{value:"1",name:"是"},{value:"0",name:"否"}]}],e.next=4,JO.getPosition(t);case 4:return i=e.sent,"200"==i.data.code&&(n[0].data=i.data.data.content.map((function(e){return{no:e.id,name:e.rankName}}))),e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),uI=function(){var e=d(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=[{name:"公告类型",variable:"noticeType",ele:"checkbox",data:[]}],e.next=3,jO.GetNoticeType();case 3:return n=e.sent,200==n.data.code&&(t[0].data=n.data.data.map((function(e){return{no:e.key,name:e.value}}))),e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),cI=function(){var e=d(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=[{name:"公文类型",variable:"documentType",ele:"checkbox",data:[]}],e.next=4,jO.GetDocumentType();case 4:return n=e.sent,200==n.data.code&&(t[0].data=n.data.data.map((function(e){return{no:e.key,name:e.value}}))),e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),dI=function(){var e=d(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={pageNum:1,pageSize:20},n=[{name:"调入职位",variable:"departmentRank",ele:"checkbox",data:[]}],e.next=4,JO.getPosition(t);case 4:return i=e.sent,"200"==i.data.code&&(n[0].data=i.data.data.content.map((function(e){return{no:e.id,name:e.rankName}}))),e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),hI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),fI=function(){var e=d(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={pageNum:1,pageSize:20},n=[{name:"职位",variable:"departmentRank",ele:"checkbox",data:[]}],e.next=4,JO.getPosition(t);case 4:return i=e.sent,"200"==i.data.code&&(n[0].data=i.data.data.content.map((function(e){return{no:e.id,name:e.rankName}}))),e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),pI=function(){var e=d(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={pageNum:1,pageSize:20},n=[{name:"职位",variable:"departmentRank",ele:"checkbox",data:[]}],e.next=4,JO.getPosition(t);case 4:return i=e.sent,"200"==i.data.code&&(n[0].data=i.data.data.content.map((function(e){return{no:e.id,name:e.rankName}}))),e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),mI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[{name:"借款金额",variable:"loanAmount",ele:"input"}]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),vI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),gI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),yI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),bI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),_I=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),wI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),xI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),kI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),MI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),SI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),CI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),DI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),LI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),TI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),EI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),PI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),jI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),OI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),II=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dialog",{attrs:{title:e.title,visible:e.dialogVisible,width:"600px","append-to-body":"","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[n("div",{staticClass:"wrapper"},[n("div",{staticClass:"plan"},[n("div",{staticClass:"plan-title"},[e._v("选择:")]),n("div",{staticClass:"tab"},[""==e.onlyType?n("div",{staticClass:"tab-title"},[n("span",{class:1==e.type?"active":"",on:{click:function(t){return e.changeList("type",1)}}},[e._v("角色")]),n("span",{class:2==e.type?"active":"",on:{click:function(t){return e.changeList("type",2)}}},[e._v("成员")])]):e._e(),n("div",{staticClass:"approvers"},[n("div",[n("el-input",{directives:[{name:"show",rawName:"v-show",value:1==e.type,expression:"type == 1"}],attrs:{placeholder:"输入角色名",clearable:""},model:{value:e.filterApprovers,callback:function(t){e.filterApprovers=t},expression:"filterApprovers"}}),n("el-input",{directives:[{name:"show",rawName:"v-show",value:2==e.type,expression:"type == 2"}],attrs:{placeholder:"输入姓名",clearable:""},model:{value:e.filterNotifiers,callback:function(t){e.filterNotifiers=t},expression:"filterNotifiers"}}),n("el-tree",{ref:"approvers",class:""!=e.onlyType?"filter-tree":"",attrs:{load:e.loadNode,lazy:"",props:e.defaultProps,"default-expand-all":"","show-checkbox":"","node-key":"id","default-checked-keys":e.defaultCheck,"filter-node-method":e.filterNode},on:{check:e.handleCheckChange1}})],1)])])]),n("div",{staticClass:"plan",attrs:{span:11}},[n("div",{staticClass:"plan-title"},[e._v("已选:")]),n("div",[n("div",{staticClass:"checklist"},[e.roleList.length>0?n("el-row",[n("el-col",{attrs:{span:6}},[n("span",[e._v("角色:")])]),n("el-col",{attrs:{span:16}},e._l(e.roleList,(function(t,i){return n("div",{key:i,staticClass:"check-list"},[n("span",[e._v(e._s(t.name))]),n("i",{staticClass:"el-icon-circle-close",on:{click:function(n){return e.removeList("roleList",t)}}})])})),0)],1):e._e(),e.userList.length>0?n("el-row",[n("el-col",{attrs:{span:6}},[n("span",[e._v("成员:")])]),n("el-col",{attrs:{span:16}},e._l(e.userList,(function(t,i){return n("div",{key:i,staticClass:"check-list"},[n("span",[e._v(e._s(t.name||t.userName))]),n("i",{staticClass:"el-icon-circle-close",on:{click:function(n){return e.removeList("userList",t)}}})])})),0)],1):e._e()],1)])])]),n("div",[e._t("default")],2),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:e.handleClose}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")])],1)])},YI=[],AI=JSON.parse(localStorage.getItem("env")),NI=AI.VUE_APP_API,HI=AI.VUE_APP_EMTERPRISE,RI=AI.VUE_APP_QIGUAN,FI={getOrgsData:function(){return Nj.get(NI+HI+"/v1/organization/getNewOrganizationAndContacts")},list:function(){return Nj.get(NI+HI+"/v1/organization/getOrganizationAndContacts")},companylist:function(){return Nj.get(NI+HI+"/v1/organization/getCompany")},deplist:function(e){return Nj.get(NI+HI+"/v1/organization/getDep/".concat(e))},getId:function(e){return Nj.get(NI+HI+"/v1/organization/getOrganization/".concat(e))},save:function(e){return Nj.post(NI+HI+"/v1/organization/saveOrganization",e)},setSort:function(e){return Nj.post(NI+HI+"/v1/organization/setSort",e)},setRoleSort:function(e){return Nj.post(NI+HI+"/v1/organization/setRoleSort",e)},del:function(e){return Nj.delete(NI+HI+"/v1/organization/delOrg/".concat(e))},delRole:function(e){return Nj.delete(NI+HI+"/v1/organization/delRole/".concat(e))},getRole:function(){return Nj.get(NI+HI+"/v1/organization/getRole")},saveRole:function(e){return Nj.post(NI+HI+"/v1/organization/saveRole",e)},getUser:function(e){return Nj.post(NI+HI+"/v1/organization/getUser",e)},getUserByParentId:function(e){return Nj.get(NI+HI+"/v1/organization/getUserByParentId/".concat(e))},setUserSort:function(e){return Nj.post(NI+HI+"/v1/organization/setUserSort",e)},saveContacts:function(e){return Nj.post(NI+HI+"/v1/organization/saveContacts",e)},openIm:function(e){return Nj.get(NI+RI+"/v1/app/common/openIm?mobile="+e)},getUserByPhone:function(e){return Nj.post(NI+HI+"/v1/organization/getUserByPhone",e)},delUser:function(e){return Nj.post(NI+HI+"/v1/organization/delUser",e)},getRoleId:function(e){return Nj.get(NI+HI+"/v1/organization/getRoleById/".concat(e))},getMenu:function(){return Nj.get(NI+HI+"/v1/organization/getMenu")},saveAuth:function(e){return Nj.post(NI+HI+"/v1/organization/saveManagementAuth",e)},getAuth:function(e){return Nj.get(NI+HI+"/v1/organization/getAuth/".concat(e))},auth:function(e,t){return Nj.get(NI+HI+"/v1/organization/auth/".concat(e,"/").concat(t))},getCompanyByUser:function(e){return Nj.post(NI+HI+"/v1/organization/getOrganizationCompanyByUser",e)},getDepByCompany:function(e){return Nj.post(NI+HI+"/v1/organization/getOrganizationDepByUserAndParentId",e)},getUserByCompany:function(e){return Nj.post(NI+HI+"/v1/organization/getAllUserByCompany",e)}},zI=FI,$I={name:"",mixins:[],extends:{},components:{},props:{title:{type:String,default:"选择"},formData:{type:Object,default:function(){return{roleList:[],userList:[]}}},onlyType:{type:String,default:"2"},isRadio:{type:Boolean,default:!1},memberNo:{type:Array,default:function(){return[]}},directClose:{type:Boolean,default:!0}},data:function(){return{editChekcId:"",dialogVisible:!0,filterNotifiers:"",filterApprovers:"",type:"1",defaultProps:{children:"children",label:"name"},roleList:[],userList:[],defaultCheck:[]}},filters:{addPriceIcon:function(e){}},watch:{filterApprovers:function(e){this.$refs.approvers.filter(e)},filterNotifiers:function(e){this.$refs.approvers.filter(e)},formData:{immediate:!0,deep:!0,handler:function(e,t){var n=this;this.userList=e.userList,this.userList=e.userList?this.userList:[];for(var i={},r=0;r<e.roleList.length;r++)i[e.roleList[r].id]||(this.roleList.push(e.roleList[r]),i[e.roleList[r].id]=!0);console.log(this.roleList," newVal.roleList;"),this.$nextTick((function(){"2"==n.onlyType?n.defaultCheck=n.userList.length>0?n.userList.map((function(e){return e.id})):[]:n.defaultCheck=n.roleList.length>0?n.roleList.map((function(e){return e.id})):[]}))}},onlyType:{immediate:!0,handler:function(e,t){""!=e&&(this.type=e)}}},computed:{},methods:{handleClose:function(){this.roleList=[],this.userList=[],this.$emit("close")},save:function(){for(var e={roleList:this.roleList,userList:[]},t={},n=0;n<this.userList.length;n++)t[this.userList[n].id]||(e.userList.push(this.userList[n]),t[this.userList[n].id]=!0);this.$emit("save",e),this.directClose&&this.handleClose()},filterNode:function(e,t){return!e||-1!==t.name.indexOf(e)},handleCheckChange1:function(e,t){if(1==this.type)if(this.isRadio){var n=t.checkedKeys.indexOf(e.id)>-1;this.roleList=n?[e]:[],this.$refs.approvers.setCheckedNodes(this.roleList)}else{var i=this.$refs.approvers.getCheckedNodes().filter((function(e,t){return!(void 0!=e.type||void 0!=e.children)}));this.roleList=i}else if(this.isRadio){var r=t.checkedKeys.indexOf(e.id)>-1;this.userList=r?[e]:[],this.$refs.approvers.setCheckedNodes(this.userList)}else{var o=this.$refs.approvers.getCheckedNodes().filter((function(e,t){return!(void 0!=e.type||void 0!=e.children)}));this.userList=o}},changeList:function(e,t){this[e]=t,1==t?this.$refs.approvers.setCheckedNodes(this.roleList):this.$refs.approvers.setCheckedNodes(this.userList)},func:function(e){var t=this;e.forEach((function(n){n.contacts&&0!==n.contacts.length&&n.contacts.forEach((function(i){n.children.push(i),t.treeData=e}))}))},loadNode:function(e,t){var n=this;return d(regeneratorRuntime.mark((function i(){var r,o,a,s;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(n,0!==e.level){i.next=11;break}return i.next=4,zI.getOrgsData();case 4:return r=i.sent,o=[],o.push(r.data.data),o[0]&&o[0].contacts&&o[0].contacts.length>0&&(a=o[0].contacts.map((function(e){return e.disabled=e.imAccount==!e.imAccount,e})),o[0].children=o[0].children.concat(a),o[0].imAccount="account"+o[0].id),i.abrupt("return",t(o));case 11:if(!e.data.children){i.next=17;break}return s=e.data.children,s.forEach((function(e){if(e.contacts&&e.contacts.length>0){var t=e.contacts.map((function(e){return e}));e.children=e.children.concat(t)}e.imAccount=e.imAccount?e.imAccount:"account"+e.id})),i.abrupt("return",t(s));case 17:return i.abrupt("return",t([]));case 18:case"end":return i.stop()}}),i)})))()},removeList:function(e,t){this[e]=this[e].filter((function(e){return e.memberNo!==t.memberNo})),this[e].length>0?this.$refs.approvers.setCheckedNodes(this[e]):this.$refs.approvers.setCheckedKeys([])}},created:function(){},mounted:function(){}},BI=$I,WI=(n("57c1"),uO(BI,II,YI,!1,null,"37f95368",null)),VI=WI.exports,UI={name:"",mixins:[],extends:{},components:{MemberSelection:VI},props:{formData:{type:Object,default:function(){return{}}},title:{type:String,default:""},queryInfo:{type:Object,default:function(){return{}}}},data:function(){return{SxyData:"",form:{},optOption:[{labal:"大于等于",value:">="},{labal:"大于",value:">"},{labal:"小于等于",value:"<="},{labal:"小于",value:"<"}],formConfig:[],isShow:!1,configList:[],condition:[],oldCOndition:[],isEdit:!0,conName:"",applyType:"",showSelector:!1,showSxytor:!1,selectData:{roleList:[],userList:[]},selSxytData:{roleList:[],userList:[]},memberNo:[],memSxyrNo:[],nodeConditionModal:!1}},watch:{showSelector:{deep:!0,handler:function(e){}},formData:{immediate:!0,deep:!0,handler:function(e,t){var n=Object.keys(e);if(n.length>0){var i=[],r=[];this.configList.forEach((function(e,t){n.indexOf(e.variable)>-1&&(i.push(e),r.push(e.variable))})),n.indexOf("userId")>-1?(this.selectData.userList=e.userId.sponsors,this.memberNo=e.userId.sponsors.map((function(e){return e.userId}))):(this.selectData.userList=[],this.memberNo=[]),n.indexOf("proposer")>-1?(this.selSxytData.userList=e.proposer.sponsors,this.memSxyrNo=e.proposer.sponsors.map((function(e){return e.userId}))):(this.selSxytData.userList=[],this.memSxyrNo=[]),this.formConfig=i,this.form=e,"documentType"==n[0]&&e.documentType.value.map((function(t,n){e.documentType.value[n]=Number(e.documentType.value[n])})),this.condition=r}else this.formConfig=[],this.form={},this.condition=[],this.selectData.userList=[],this.selSxytData.userList=[],this.memberNo=[],this.memSxyrNo=[]}},title:{immediate:!0,handler:function(e,t){this.conName=e}}},computed:{able:function(){return this.configList.length-this.condition.length}},methods:{showSxyL:function(e){this.SxyData=e,this.showSxytor=!0},nodeConditionHandler:function(){this.nodeConditionModal=!this.nodeConditionModal},removeTag:function(e,t){this.form[e].sponsors=this.form[e].sponsors.filter((function(e){return e.userName!=t.userName&&e.userId!=t.userId})),this.memberNo=this.form[e].sponsors.map((function(e){return e.userId})),this.selectData.userList=this.form[e].value},validatePass:function(e,t,n){""!=parseFloat(t.value)&&parseFloat(t.value)>=0?n():n("不能小于0")},save:function(){var e=this;this.$refs.form.validate((function(t){if(t){var n=[],i=function(t){var i=""==e.form[t].value||e.form[t].value==[]||""==e.form[t].opt;if(i&&"userId"!=t&&"spoSxy"!=e.form[t].ele)return e.$message.error("条件数据不能为空"),{v:void 0};if(("spoSxy"==e.form[t].ele||"userId"==t)&&e.form[t].sponsors.length<1)return e.$message.error("条件数据不能为空"),{v:void 0};if("radio"==e.form[t].ele||"checkbox"==e.form[t].ele){var r,o=e.configList.filter((function(e){return e.variable==t}))[0].data;if(o&&Array.isArray(e.form[t].value))r=e.form[t].value.map((function(e){return o.filter((function(t){return t.no==e}))[0].name}));else if(o&&!Array.isArray(e.form[t].value)){var a=o.filter((function(n){return n.value==e.form[t].value}))[0].name;r=[a]}n.push(e.form[t].name+"属于:"+r.join("或"))}else if("spoSxy"==e.form[t].ele||"userId"==t){var s=e.form[t].sponsors.map((function(e){return e.userName}));n.push(e.form[t].name+"属于:"+s.join("或"))}else n.push("".concat(e.form[t].name," ").concat(e.form[t].opt," ").concat(e.form[t].value))};for(var r in e.form){var o=i(r);if("object"===mO(o))return o.v}e.$parent.submitCondition({form:e.form,desc:n,SxyData:e.SxyData})}}))},changeName:function(){this.conName?this.$emit("edit",this.conName):this.conName=this.title,this.isEdit=!0},handleClose:function(){this.isShow=!1},addCondition:function(){this.oldCondition=this.condition,this.isShow=!0},cancel:function(){this.condition=this.oldCondition,this.isShow=!1},determine:function(){var e=[],t=this,n=Pj.cloneDeep(t.form);t.configList.forEach((function(i,r){if(t.condition.indexOf(i.variable)>-1){if(e.push(i),void 0==n[i.variable]){var o="input"==i.ele?"":"=",a="input"==i.ele?"":[];"radio"==i.ele&&(a=i.data&&i.data.length>0?i.data[0].value:"0"),n[i.variable]={opt:o,value:a,dateType:"String",name:i.name,sponsors:[],ele:i.ele}}}else void 0!==n[i.variable]&&delete n[i.variable];"radio"!=i.ele||i.data&&0!=i.data.length||t.$set(i,"data",[{value:"1",name:"是"},{value:"0",name:"否"}])})),this.form=n,this.formConfig=e,this.isShow=!1},setConfig:function(){var e=this;return d(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.applyType=e.queryInfo.type,n={ele:"sponsor",name:"发起人",variable:"userId"},!r[e.applyType]){t.next=8;break}return t.next=5,r[e.applyType](e);case 5:t.t0=t.sent,t.next=9;break;case 8:t.t0=[];case 9:e.configList=t.t0,"sealApproval"==e.queryInfo.type||"用章申请"==e.queryInfo.name||"用车申请"==e.queryInfo.name||"carApproval"==e.queryInfo.type?n={}:e.configList.unshift(n);case 11:case"end":return t.stop()}}),t)})))()},handlerChange:function(e,t){void 0!=t.changeFuc&&t.changeFuc(e,this)},checkMenber:function(e){var t=[],n=[];e.userList.forEach((function(e,i){t.push({userId:e.memberNo,companyId:e.comNo,userName:e.name,roleName:e.roleName}),n.push(e.memberNo)})),this.memberNo=n,this.form.userId.sponsors=t,this.form=Object.assign({},this.form),this.$set(this.selectData,"userList",e.userList),this.showSelector=!1},checkSxyber:function(e){var t=[],n=[];e.userList.forEach((function(e,i){t.push({userId:e.memberNo,companyId:e.comNo,userName:e.name,roleName:e.roleName}),n.push(e.memberNo)})),this.memSxyrNo=n,this.form[this.SxyData].sponsors=t,this.form=Object.assign({},this.form),this.showSxytor=!1}},created:function(){this.setConfig()},mounted:function(){}},qI=UI,GI=(n("9fdb"),uO(qI,fO,pO,!1,null,"4a5dcae5",null)),KI=GI.exports,JI=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"wrapper",style:"left: "+e.info.left+"px; top: "+e.info.top+"px"},[i("div",{staticClass:"close",on:{click:function(t){return e.$emit("close")}}},[i("img",{attrs:{src:n("2e5b"),alt:""}})]),i("div",{staticClass:"node",on:{click:function(t){return e.addNode("userTask")}}},[i("img",{attrs:{src:n("bf66")}}),i("p",[e._v("审批人")])]),i("div",{staticClass:"node",on:{click:function(t){return e.addNode("copyUser")}}},[i("img",{attrs:{src:n("bf66")}}),i("p",[e._v("抄送人")])]),i("div",{staticClass:"node",on:{click:function(t){return e.addNode("condition")}}},[i("img",{attrs:{src:n("50e8")}}),i("p",[e._v("条件分支")])])])},XI=[],ZI={name:"",mixins:[],extends:{},components:{},props:{info:{type:Object,default:function(){return{left:0,top:0,isShow:!0}}}},data:function(){return{}},watch:{},computed:{},methods:{addNode:function(e){var t;t="userTask"==e?"流程节点":"copyUser"==e?"抄送人":"条件分支",this.$emit("addNode",{type:e,name:t})}},created:function(){},mounted:function(){}},QI=ZI,eY=(n("1062"),uO(QI,JI,XI,!1,null,"45838bc0",null)),tY=eY.exports,nY=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-drawer",{attrs:{title:"审批节点",visible:e.visible,direction:"rtl",wrapperClosable:!1,"show-close":!1,"close-on-press-escape":!1,"destroy-on-close":"","append-to-body":!0}},[n("div",{staticClass:"drawer-wrap"},[e.isCCTask?e._e():n("div",{staticClass:"approverSelectorItem"},[n("div",{staticClass:"multi-title"},[e._v("审批人")]),n("div",{staticClass:"approverSelectorItemCon rowDirection"},[n("el-radio-group",{on:{change:e.approverModeChange},model:{value:e.approverMode,callback:function(t){e.approverMode=t},expression:"approverMode"}},[n("el-radio",{attrs:{label:1}},[e._v("指定成员")]),e.queryInfo.type|e.filterType?n("el-radio",{attrs:{label:2}},[e._v("主管")]):e._e()],1),1==e.approverMode?n("div",{staticClass:"selector-list"},[e.approverList.length<25?n("el-button",{staticClass:"list-item-btn",attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:function(t){return e.showStaffSelector(0)}}}):e._e(),e.approverList.length?n("div",{staticClass:"tagList"},[e._l(e.approverList,(function(t,i){return[n("el-tag",{key:i,staticClass:"list-item list-item-opt",attrs:{closable:"",type:"info",size:"medium"},on:{close:function(t){return e.removeItem("approverList",i)}}},[e._v("\n "+e._s(t.name||t.userName)+"\n ")])]})),n("span",{staticClass:"clear-btn list-item",on:{click:function(t){return e.clear("approverList")}}},[e._v("清空")])],2):e._e()],1):e._e()],1)]),2==e.approverMode?n("div",{staticClass:"approverSelectorItem layoutRowItem"},[n("div",{staticClass:"multi-title"},[e._v("发起人:")]),n("div",{staticClass:"approverSelectorItemCon"},[n("el-select",{attrs:{placeholder:"请选择"},on:{change:function(t){return e.changeEvent(t,e.options)}},model:{value:e.valueKey,callback:function(t){e.valueKey=t},expression:"valueKey"}},e._l(e.options,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)]):e._e(),[4].includes(e.approverMode)||e.isCCTask?e._e():n("div",{staticClass:"approverSelectorItem"},[n("div",{staticClass:"multi-title"},[e._v("多人审批时采用的审批方式")]),n("div",{staticClass:"approverSelectorItemCon"},[n("el-radio-group",{on:{change:e.examineModeChange},model:{value:e.approverType,callback:function(t){e.approverType=t},expression:"approverType"}},[n("el-radio",{attrs:{label:"3"}},[e._v("依次审批")]),n("el-radio",{attrs:{label:"1"}},[e._v("会签(须所有审批人同意)")]),n("el-radio",{attrs:{label:"2"}},[e._v("或签(一名审批人同意或拒绝即可)")])],1)],1)]),2==e.approverMode?n("div",{staticClass:"approverSelectorItem"},[n("div",{staticClass:"multi-title"},[e._v("审批人为空时")]),n("div",{staticClass:"approverSelectorItemCon"},[n("el-radio-group",{on:{change:e.noHanderActionChange},model:{value:e.directorType.authType,callback:function(t){e.$set(e.directorType,"authType",t)},expression:"directorType.authType"}},[n("el-radio",{attrs:{label:"1"}},[e._v("自动通过 ")]),n("el-radio",{attrs:{label:"2"}},[e._v("自动转交主管理员")])],1)],1)]):e._e(),e.isCCTask?n("div",{staticClass:"approverSelectorItem"},[n("div",{staticClass:"multi-title"},[e._v("抄送人")]),n("div",{staticClass:"approverSelectorItemCon rowDirection"},[n("el-radio-group",{model:{value:e.isCCTaskType,callback:function(t){e.isCCTaskType=t},expression:"isCCTaskType"}},[n("el-radio",{attrs:{label:1}},[e._v("指定成员")])],1),n("div",{staticClass:"selector-list"},[e.notifierList.length<25?n("el-button",{staticClass:"list-item-btn",attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:function(t){return e.showStaffSelector(1)}}}):e._e(),e.notifierList.length?n("div",{staticClass:"tagList"},[e._l(e.notifierList,(function(t,i){return n("el-tag",{key:i,staticClass:"list-item list-item-opt",attrs:{closable:"",type:"info",size:"medium"},on:{close:function(t){return e.removeItem("notifierList",i)}}},[e._v("\n "+e._s(t.name||t.userName)+"\n ")])})),n("span",{staticClass:"clear-btn list-item",on:{click:function(t){return e.clear("notifierList")}}},[e._v("清空")])],2):e._e()],1)],1)]):e._e(),n("div",{staticClass:"drawer-footer"},[n("el-button",{on:{click:e.cancel}},[e._v("取消")]),n("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("保存")])],1)])]),n("FlowNodeForm",{ref:"nodeForm",attrs:{id:"nodeForm",orgVisible:e.nodeVisible,type:e.memberSelectorType},on:{close:function(t){e.nodeVisible=!1},confirm:e.memberSelectorConfirm}})],1)},iY=[],rY=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-dialog",{attrs:{title:e.title,visible:e.orgVisible,width:"600px","append-to-body":"","before-close":e.cancel,"close-on-click-modal":!1,"destroy-on-close":""},on:{"update:visible":function(t){e.orgVisible=t}}},[n("div",{staticClass:"main-wrapper"},[n("div",{staticClass:"main-block"},[n("div",{staticClass:"block-title"},[e._v("选择:")]),n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"block-card"},[n("el-input",{staticStyle:{"margin-bottom":"10px"},attrs:{type:"text",clearable:"",placeholder:"输入姓名",size:"small"},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}},[n("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),n("div",[n("el-tree",{ref:"tree",staticClass:"filter-tree",attrs:{data:e.orgData,props:e.defaultProps,"default-expand-all":"","show-checkbox":"","node-key":"uniqueProp","default-checked-keys":e.defaultCheck,"filter-node-method":e.filterNode},on:{check:e.handleCheckChange}})],1)],1)]),n("div",{staticClass:"main-block"},[n("div",{staticClass:"block-title"},[e._v("已选:")]),n("div",{staticClass:"block-card block-card-right"},[n("ul",{staticClass:"opt-wrap",attrs:{id:"opt-wrap"}},e._l(e.selectedList,(function(t,i){return n("li",{key:i,staticClass:"opt",attrs:{"data-memberNo":t.userId||t.memberNo}},[n("span",{staticClass:"opt-name"},[e._v(e._s(t.name||t.userName))]),n("i",{staticClass:"el-icon-circle-close",on:{click:function(n){return e.deleteOpt(t,i)}}})])})),0)])])]),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:e.cancel}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:e.confirm}},[e._v("确 认")])],1)])],1)},oY=[],aY=(n("54ff"),{name:"FlowNodeForm",components:{},props:{type:{type:Number,default:0},orgVisible:{type:Boolean,default:!1},value:{type:Array,default:function(){return[]}}},data:function(){return{isSearching:!1,currentSelectedAll:!1,searchValue:null,loading:!1,orgData:null,selectedList:[],defaultCheck:[],defaultProps:{children:"children",label:"name"}}},computed:{title:function(){return 0===this.type?"请选择审批人":"请选择抄送人"}},watch:{currentLevelList:{handler:function(e){this.generateSelectedList(),this.generateCurrentSelectedAll()},deep:!0},searchValue:{handler:function(e){this.$refs.tree.filter(e)}}},created:function(){var e=this;return d(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.getOrgData();case 1:case"end":return t.stop()}}),t)})))()},methods:{init:function(e){var t=this;this.selectedList=_.cloneDeep(e);var n=e.map((function(e){return e.memberNo||e.userId})),i=function e(i){i.forEach((function(i){2===i.holidayType&&n.includes(i.memberNo||i.userId)?t.$refs.tree.setChecked(i.uniqueProp,!0):2!==i.holidayType&&i.children.length&&e(i.children)}))};i(this.orgData)},filterNode:function(e,t){return!e||-1!==t.name.indexOf(e)},getOrgData:function(){var e=this;return d(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,zI.getOrgsData();case 3:n=t.sent,200===n.data.code&&(n.data.data.checked=!1,e.orgData=e.dataFormatter([n.data.data]),e.currentLevelList=e.orgData,e.loading=!1);case 5:case"end":return t.stop()}}),t)})))()},dataFormatter:function(e){var t={},n=function e(n){n.forEach((function(n){2!==n.holidayType?(n.children=n.children.concat(n.contacts),n.uniqueProp=n.id,n.children.length&&e(n.children)):(t[n.memberNo]?t[n.memberNo]=t[n.memberNo]+1:t[n.memberNo]=1,n.uniqueProp=n.memberNo+"-"+t[n.memberNo])}))};return n(e),e},handleCheckChange:function(e,t,n){var i;if(void 0===n){var r=e.uniqueProp;i=t.checkedKeys.includes(r)}else i=n;if(i){var o=this.selectedList.map((function(e){return e.memberNo})),a=this.$refs.tree.getCheckedNodes().filter((function(e){return 2===e.holidayType})).filter((function(e){return!o.includes(e.memberNo)}));this.selectedList=this.uniqueList(this.selectedList.concat(this.uniqueList(a)))}else{var s=e.memberNo;if(s){var l=t.checkedKeys.some((function(e){return e.split("-")[0]===s}));if(!l){var u=this.selectedList.indexOf(e);this.selectedList.splice(u,1)}}else for(var c=0;c<e.children.length;c++)this.handleCheckChange(e.children[c],t,!1)}},uniqueList:function(e){var t=[],n=[];return e.map((function(e){n.includes(e.memberNo||e.userId)||(t.push(e),n.push(e.memberNo||e.userId))})),t},generateSelectedList:function(){var e=[],t=function t(n){n.forEach((function(n){n.checked&&e.push(n),n.children&&t(n.children)}))};t(this.orgData),this.selectedList=e},deleteOpt:function(e,t){var n=this;this.selectedList.splice(t,1);var i=function t(i){i.forEach((function(i){2===i.holidayType&&i.memberNo===e.memberNo?n.$refs.tree.setChecked(i.uniqueProp,!1):2!==i.holidayType&&i.children.length&&t(i.children)}))};i(this.orgData)},cancel:function(){this.$emit("close")},confirm:function(){if(this.selectedList.length>25){var e=0===this.type?"申请人最多选择25人":"抄送人最多选择25人";return this.$message.warning(e),!1}var t={list:this.selectedList,type:this.type};this.$emit("close"),this.$emit("confirm",JSON.stringify(t))}}}),sY=aY,lY=(n("3c5c"),uO(sY,rY,oY,!1,null,"64f53724",null)),uY=lY.exports,cY={components:{FlowNodeForm:uY},props:{value:{type:Boolean,default:!0},queryInfo:{type:Object,default:function(){return{}}}},data:function(){return{isCCTask:!1,isCCTaskType:1,visible:!1,approverType:"3",approverMode:1,passCopy:!0,nodeVisible:!1,notifierList:[],approverList:[],directorType:{typeName:"",type:"1",authType:"1"},director:{},memberSelectorType:null,options:[],optionsList:[{value:"直接主管",key:0},{value:"第2级主管",key:1},{value:"第3级主管",key:2},{value:"第4级主管",key:3},{value:"第5级主管",key:4},{value:"第6级主管",key:5},{value:"第7级主管",key:6},{value:"第8级主管",key:7},{value:"第9级主管",key:8},{value:"第10级主管",key:9}],valueKey:"直接主管",appList:[{directorName:"",directorId:""}]}},watch:{value:function(e){this.visible=e}},mounted:function(){this.direSxyList()},methods:{init:function(e){var t=this,n=e.type,i=e.nodeUserList,r=e.examineMode,o=e.authType,a=e.setType,s=e.directorLevel,l={approverType:r,approvers:1==n?i:[],passCopy:!0,notifiers:2==n?i:[],directorType:{typeName:"",type:parseInt(a),authType:o}};this.isCCTask=2==n,this.directorType=l.directorType,this.directorType.authType=l.directorType&&l.directorType.authType?l.directorType.authType:"1",this.approverMode=l.directorType&&l.directorType.type?l.directorType.type:"1",this.directorType&&"1"==this.directorType.type&&(this.approverList=l.approvers),this.directorType&&"2"==this.directorType.type&&(this.options.map((function(e){e.key==s&&(t.valueKey=e.value)})),this.approverList[0]={directorId:s,directorName:this.valueKey}),this.approverType=l.approverType||"3",this.notifierList=l.notifiers,this.passCopy=void 0===l.passCopy||l.passCopy,this.visible=!0},approverModeChange:function(e){this.$parent.changeType(e)},examineModeChange:function(e){this.$parent.examineModeChange(e)},noHanderActionChange:function(e){this.$parent.noHanderActionChange(e)},changeEvent:function(e,t){this.approverList=[{directorName:"",directorId:""}];for(var n=0;n<t.length;n++)t[n].value==e&&(this.approverList[0].directorName=t[n].value,this.approverList[0].directorId=t[n].key);this.$parent.directorLevelChange(this.approverList[0].directorId)},direSxyList:function(){var e=this;return d(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Gj();case 2:n=t.sent,"ok"==n.data.state?e.options=n.data.data:e.options=e.optionsList;case 4:case"end":return t.stop()}}),t)})))()},showApproverSelector:function(){this.visible=!this.visible},memberSelectorConfirm:function(e){var t=JSON.parse(e);0===t.type?this.approverList=t.list:this.notifierList=t.list},showStaffSelector:function(e){var t=this;this.memberSelectorType=e,this.nodeVisible=!0;var n=0===e?this.approverList:this.notifierList;this.$nextTick((function(){t.$refs.nodeForm.init(n)}))},removeItem:function(e,t){this[e].splice(t,1)},clear:function(e){this[e]=[]},cancel:function(){this.visible=!this.visible},submit:function(){this.directorType.type=this.approverMode,this.directorType.typeName=1==this.approverMode?"指定成员":"主管";for(var e=[],t=0;t<this.notifierList.length;t++){var n=this.notifierList[t];e.push({id:n.id,userName:n.name||n.userName,phone:n.phone,roleName:n.roleName,companyId:n.comNo||n.companyId,userId:n.memberNo})}if(this.isCCTask){var i=e.map((function(e){return e.type="1",e.memberNo=e.userId,e})),r={approverType:this.approverType,approvers:this.appList,notifiers:i,passCopy:this.passCopy,directorType:this.directorType};this.$parent.submitCopyer(r)}else if(1==this.approverMode){if(!this.approverList.length)return void this.$message.warning("请配置审批人");for(var o=[],a=0;a<this.approverList.length;a++){var s=this.approverList[a];s.id&&o.push({id:s.id,userName:s.userName||s.name,phone:s.phone,roleName:s.roleName,companyId:s.comNo||s.companyId,userId:s.memberNo||s.userId})}var l={approverType:this.approverType,approvers:o,notifiers:e,passCopy:this.passCopy,directorType:this.directorType};l.directorType.authType="",this.$parent.submitApprover(l)}else{this.appList[0].directorName=this.approverList[0]?this.approverList[0].directorName:"直接主管",this.appList[0].directorId=this.approverList[0]?this.approverList[0].directorId:0;var u={approverType:this.approverType,approvers:this.appList,notifiers:e,passCopy:this.passCopy,directorType:this.directorType};void 0==u.approvers[0].directorId&&(u.approvers[0].directorId=0,u.approvers[0].directorName="直接主管"),this.$parent.submitApprover(u)}}},computed:{filterType:function(e){return"notice"!=this.queryInfo.type&&"officialDocument"!=this.queryInfo.type}}},dY=cY,hY=(n("0b2d"),uO(dY,nY,iY,!1,null,"0922466c",null)),fY=hY.exports,pY=n("7c98"),mY=n.n(pY),vY=function(e){this.item=e,this.lists=[]};vY.prototype.add=function(e){this.lists.push(e)},vY.prototype.scan=function(){console.log("扫描",this.item);for(var e=0;e<this.lists.length;e++)console.log(this.item.from+"----\x3e"+this.lists[e].item.to),this.lists[e].scan()};var gY=function(e){this.item=e};function yY(e,t,n,i,r,o,a,s){var l={id:e,name:t,type:n,left:i,top:r,from:o,to:a,isCondition:"0"};return"userTask"==n?l=Object.assign(l,{approverType:"3",approvers:[],notifiers:[],passCopy:!0,directorType:{typeName:"指定成员",type:1,authType:"1"}}):"condition"==n&&(l=Object.assign(l,{desc:"",conditions:[],a:s})),l}function bY(e){for(var t=e.map((function(e){return e.level=1,e})),n=function(e){if(!t[e].lists)return"continue";var n=t[e].lists.map((function(n){return n.level=t[e].level+1,n}));t.splice.apply(t,[e+1,0].concat(bO(n)))},i=0;i<t.length;i++)n(i);return t}function _Y(e){return function(t,n){var i=t[e],r=n[e];return i-r}}gY.prototype.add=function(){throw Error("文件下不能添加其它文件夹或文件")},gY.prototype.scan=function(){console.log("-----\x3e",this.item)};var wY={props:["queryInfo","tools","path","userInfo"],data:function(){var e;return e={approverSelectorData:{approverList:[],notifierList:[]},memberSelectorType:0,selectorVisible:!1,jsPlumb:null,isFlg:!0,isEdit:!0,easyFlowVisible:!0,nodeVisible:!1,nodeInfo:{},data:{nodeList:[],lineList:[]},connection:{},title:"",conditionVisible:!1,showAddNode:!1,addNodeInfo:{top:"0",left:"0",isShwo:!0},root:new vY(yY("0","根节点","root","320px","20px","1","2")),currentChooseItem:{},currentNode:{sourceId:"",targetId:""},id:0,params:{},processId:""},o(e,"isFlg",!0),o(e,"isClick",!0),o(e,"name",""),o(e,"version",1),o(e,"indexFlg",1),e},components:{flowNode:hO,FlowNodeCondition:KI,addNodeBox:tY,approverSelector:fY},computed:{user:function(){return""},orgSelectorList:function(){return 0===this.memberSelectorType?this.nodeInfo.approvers:this.nodeInfo.notifiers}},created:function(){this.type=this.queryInfo.type},mounted:function(){this.jsPlumbInit()},methods:{save:function(){var e=this;return d(regeneratorRuntime.mark((function t(){var n,i,r,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.userInfo,!1,"/index"==e.path&&(e.params.menuId=""),e.params.switchOn=e.isFlg?"1":"0",!e.processId){t.next=11;break}return i={id:e.processId+"",content:JSON.stringify(e.params)},t.next=8,Wj(i);case 8:n=t.sent,t.next=15;break;case 11:return r={content:JSON.stringify(e.params)},t.next=14,$j(r);case 14:n=t.sent;case 15:o=0;case 16:if(!(o<e.params.nodeList.length)){t.next=23;break}if("userTask"!=e.params.nodeList[o].item.type||0!=e.params.nodeList[o].item.approvers.length||!e.params.nodeList[o].item.directorType||1!=e.params.nodeList[o].item.directorType.type){t.next=20;break}return e.$message.error("当前审批流程中【"+e.params.nodeList[o].item.name+"】节点审批人不能为空"),t.abrupt("return");case 20:o++,t.next=16;break;case 23:"ok"==n.data.state?(e.$message.success({message:e.processId?"编辑成功":"保存成功",duration:1500}),e.processId=n.data.data,-1==e.type.indexOf("customForm_")&&(e.$removeTag1(e.$route),e.$router.go(-1))):e.$message.error({message:n.data.msg?n.data.msg:"保存失败",duration:1500});case 24:case"end":return t.stop()}}),t)})))()},cancal:function(){var e=this;this.$confirm("有修改的内容未保存,确认离开吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.$removeTag1(e.$route),e.$router.go(-1)})).catch((function(){}))},initProcess:function(){this.easyFlowVisible=!1;var e=new vY(yY("1","开始","start","320px","20px","1","2")),t=new vY(yY("2","审批人","userTask","320px","200px","1","3")),n=new vY(yY("3","抄送人","ccTask","320px","350px","7","5")),i=new vY(yY("5","结束","end","320px","330px","2","5"));this.root.add(e),e.add(t),t.add(n),n.add(i),this.refresh()},refresh:function(){this.jsPlumb.reset();for(var e,t,n,i=this.root.lists,r=(i[0],bY(i)),o=this,a=0,s=0,l=0,u=0;u<r.length;u++){var c=r[u];if(parseFloat(c.item.left)>a&&(a=parseFloat(c.item.left)),l<c.level&&"end"!=c.item.type&&(l=c.level),"end"==c.item.type&&(e=c),"start"==c.item.type&&(t=c),"addCondition"==c.item.type){n=c;var d=n.lists[0],h=n.lists[n.lists.length-1],f=parseFloat(d.item.left)+parseFloat(h.item.left);s<f/2&&(s=f/2),n.item.left=f/2+"px"}}console.log(l);var p=s>0?s:(a+320)/2;e.item.left=p+"px",e.level=l+1,e.item.top=200*(e.level-1)+20+"px",t.item.left=p+"px",this.data.nodeList=r,this.easyFlowVisible=!0;var m=["Label",{location:0,label:"",cssClass:"aLabel",events:{click:function(e,t){var n=e.getElement(),i=parseFloat(n.style.top)-35,r=parseFloat(n.style.left)+30;o.showAddNode=!0,o.addNodeInfo={top:i,left:r};var a=e.component,s=a.sourceId.replace("flowchartWindow",""),l=a.targetId.replace("flowchartWindow","");o.currentNode.sourceId=s,o.currentNode.targetId=l}}}],v={endpoint:["Dot",{radius:3}],connector:["Flowchart"],anchors:["Bottom","Top"],overlays:[["Arrow",{width:10,length:10,location:1}],m]},g={endpoint:["Dot",{radius:3}],connector:["Flowchart"],anchors:["Bottom","Top"],overlays:[["Arrow",{width:10,length:10,location:1}]]};this.$nextTick((function(){for(var e=[],t=this,n=0;n<this.data.nodeList.length;n++){var i=this.data.nodeList[n];if(this.jsPlumb.draggable("flowchartWindow"+i.item.id,{grid:[20,20],containment:"parent",stop:function(e){t.isClick=!1,setTimeout((function(){t.isClick=!0}),1e3),e.e.preventDefault()}}),"end"!=i.item.type)if(i.lists.length>0&&"addCondition"==i.item.type)for(var r=0;r<i.lists.length;r++){var o=i.lists[r],a={id:o.item.id,type:"condition",name:o.item.name,left:o.item.left,top:o.item.top,from:o.item.from,gateWayKey:i.item.id,to:o.item.to,conditions:o.item.conditions,ifNo:10,desc:o.item.desc,isCondition:o.item.isCondition};e.push(a),this.jsPlumb.connect({source:"flowchartWindow"+i.item.id,target:"flowchartWindow"+o.item.id},g)}else this.jsPlumb.connect({source:"flowchartWindow"+i.item.id,target:"flowchartWindow"+i.item.to},v)}this.loadEasyFlowFinish=!0;var s={name:this.name,desc:"",creator:this.user.no,processId:this.processId,startId:"1",endId:"5",companyId:this.user.cno,type:this.type,switchOn:this.isFlg?"1":"0",gateWayList:e,nodeList:this.data.nodeList,lineList:[],version:this.version};this.params=s}))},jsPlumbInit:function(){var e=this;return d(regeneratorRuntime.mark((function t(){var n,i,r,o,a,s,l,u,c;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e,e.jsPlumb=rO.a.jsPlumb?rO.a.jsPlumb.getInstance():rO.a.getInstance(),e.jsPlumb.importDefaults({ConnectionsDetachable:!1}),n={companyId:e.user.cno+"",type:e.type},t.next=6,qj(n);case 6:i=t.sent,i.data.data&&i.data.data.gateWays?(r=JSON.parse(i.data.data.content),e.data={nodeList:r.nodeList,lineList:r.lineList},e.name=e.queryInfo.name?e.queryInfo.name+"流程":r.name,e.isFlg=0!=r.switchOn,e.processId=i.data.data._id,e.version=i.data.data.rootNode.version,e.root.add(r.nodeList[0]),e.refresh(),o=r.nodeList.map((function(e){return parseFloat(e.item.id)})),e.id=Math.max.apply(null,o)):i.data.data&&i.data.data._id?(e.processId=i.data.data._id,a=JSON.parse(i.data.data.content),e.name=a.name,e.name=e.queryInfo.name?e.queryInfo.name+"流程":a.name,e.isFlg=0!=a.switchOn,e.version=i.data.data.rootNode.version,s=e.dataTonewList(a.nodeList),s?(e.refresh(),l=a.nodeList.map((function(e){return parseFloat(e.id)})),e.id=Math.max.apply(null,l),setTimeout(d(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n={id:e.processId+"",content:JSON.stringify(e.params)},console.log(n),t.next=4,Uj(n);case 4:t.sent;case 5:case"end":return t.stop()}}),t)}))),200)):(e.name=e.queryInfo.name?e.queryInfo.name+"流程":"流程",e.initProcess(),u=bY(e.root.lists),e.id=u.length+10)):(e.name=e.queryInfo.name?e.queryInfo.name+"流程":"流程",e.initProcess(),c=bY(e.root.lists),e.id=c.length+10);case 8:case"end":return t.stop()}}),t)})))()},dataTonewList:function(e){var t=this.root,n=1,i=!0;while("end"!=t.item.type&&i){var r=this.getCurrentNode(e,n);if(!r){i=!1;break}var o=new vY(yY(r.id,r.name,r.type,r.left,r.top,r.from,r.to));"userTask"==r.type&&(o.item=Object.assign(o.item,{approverType:r.approverType,approvers:r.approvers,notifiers:r.notifiers,passCopy:r.passCopy})),"condition"==r.type?(n=r.to,t.item.to=r.to):(t.add(o),n=r.to,t=o)}return i},getCurrentNode:function(e,t){var n=e.filter((function(e){return e.id==t}));return n.length>0?n[0]:null},setNode:function(e){console.log(e);var t=JSON.parse(e);this.activeNode.directorType=t.directorType,this.activeNode.approverType=t.approverType,this.activeNode.approvers=t.approvers,this.activeNode.notifiers=t.notifiers,this.activeNode.passCopy=t.passCopy,this.$refs.flowNode.map((function(e){e.refreshFlowItem()}))},deleteNode:function(e,t){var n=this;3!=this.data.nodeList.length?this.$confirm("确定需要删除当前节点?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var i=null;n.findNodeById(n.root,e.id);var r=_.cloneDeep(n.currentChooseItem);if(n.findNodeById(n.root,e.from),console.log(r.item.type),"userTask"==r.item.type)n.currentChooseItem.item.to=r.item.to,n.currentChooseItem.lists=r.lists,n.currentChooseItem.lists.forEach((function(e,t){e.item.from=n.currentChooseItem.item.id})),n.data.nodeList.map((function(e,t){var i=n.data.nodeList[t].item,o=i.type,a=i.from;"condition"==o&&a==n.currentChooseItem.item.from&&(n.data.nodeList[t].item.to=r.item.to)}));else if("ccTask"==r.item.type)n.currentChooseItem.item.to=r.item.to,n.currentChooseItem.lists=r.lists,n.currentChooseItem.lists.forEach((function(e,t){e.item.from=n.currentChooseItem.item.id})),n.data.nodeList.map((function(e,t){var i=n.data.nodeList[t].item,o=i.type,a=i.from;"condition"==o&&a==n.currentChooseItem.item.from&&(n.data.nodeList[t].item.to=r.item.to)}));else{var o=n.currentChooseItem.lists.length;if(o>2)n.currentChooseItem.lists.forEach((function(t,r){t.item.id==e.id&&(n.currentChooseItem.lists.splice(r,1),0==r&&(n.currentChooseItem.item.to=n.currentChooseItem.lists[1].item.id,i=n.currentChooseItem.lists[1]))}));else{var a=_.cloneDeep(n.currentChooseItem.lists[0].lists[0]),s=n.currentChooseItem.item.from;a?(a.item.from=s,a.item.left=n.currentChooseItem.item.left,n.findNodeById(n.root,s),n.currentChooseItem.item.to=a.item.id,n.currentChooseItem.lists=[a],n.data.nodeList.map((function(e,t){var i=n.data.nodeList[t].item,r=i.type,o=i.from;"condition"==r&&o==n.currentChooseItem.item.from&&(n.data.nodeList[t].item.to=a.item.id)}))):(n.findNodeById(n.root,s),n.currentChooseItem.item.to=t.to,n.currentChooseItem.lists=r.lists,n.currentChooseItem.lists.forEach((function(e,t){e.item.from=n.currentChooseItem.item.id})),n.data.nodeList.map((function(e,i){var r=n.data.nodeList[i].item,o=r.type,a=r.from;"condition"==o&&a==n.currentChooseItem.item.from&&(n.data.nodeList[i].item.to=t.to)})))}}var l=bY(n.root.lists);if(i){var u=l.filter((function(e){return"end"==e.item.type})),c=new vY(yY("5","结束","end","320px","380px","","5"));if(u.length<1){var d=n.getLastList(i);d.push(c)}n.setResultToNode()}l.sort(_Y("level"));for(var h=0;h<l.length;h++){var f=l[h],p=200*(f.level-1)+20;f.item.top=p+"px"}n.refresh()})).catch((function(){})):this.$message.error("流程中必须保留一个审批或抄送节点")},getLastList:function(e){return 0==e.lists.length?e.lists:this.getLastList(e.lists[0])},changeNodeSite:function(){},nodeRightMenu:function(){},addNode:function(e){var t;if(this.showAddNode=!1,this.findNodeById(this.root,this.currentNode.sourceId),this.id+=1,"condition"==e.type){console.log(this.currentNode),console.log(this.currentChooseItem),t=new vY(yY(this.id,"条件"+this.id,"addCondition",this.currentChooseItem.item.left,"20px",this.currentNode.sourceId,this.currentNode.targetId)),this.currentChooseItem.item.isCondition="1",this.currentChooseItem.item.to=t.item.id;var n=null;this.currentChooseItem.lists.length>0&&(this.currentChooseItem.lists[0].item.from=t.item.id,n=_.cloneDeep(this.currentChooseItem.lists[0])),this.id+=1;var i=new vY(yY(this.id,"条件1","condition","320px","20px",this.currentNode.sourceId,this.currentNode.targetId));t.item.to=i.item.id,i.item.from=t.item.id,i.item.to=n?n.item.id:this.currentNode.targetId,n&&"addCondition"==n.item.type&&(i.item.isCondition="1"),n&&(n.item.from=i.item.id,i.lists.push(n)),this.currentChooseItem.lists[0]=t,t.lists.push(i),this.addExtraCondition(event,!0)}else if("copyUser"==e.type){if(t=new vY(yY(this.id,"抄送人","ccTask","320px","20px",this.currentNode.sourceId,this.currentNode.targetId)),this.currentChooseItem.item.isCondition="0",this.currentChooseItem.item.to=t.item.id,t.item.left=this.currentChooseItem.item.left,this.currentChooseItem.lists&&this.currentChooseItem.lists.length>0){this.currentChooseItem.lists[0].item.from=t.item.id;var r=_.cloneDeep(this.currentChooseItem.lists[0]);this.currentChooseItem.lists[0]=t,t.lists.push(r)}else this.currentChooseItem.lists.push(t);var o=bY(this.root.lists);o.sort(_Y("level"));for(var a=0;a<o.length;a++){var s=o[a],l=200*(s.level-1)+20;s.item.top=l+"px"}}else{if(t=new vY(yY(this.id,"审批人","userTask","320px","20px",this.currentNode.sourceId,this.currentNode.targetId)),this.currentChooseItem.item.isCondition="0",this.currentChooseItem.item.to=t.item.id,t.item.left=this.currentChooseItem.item.left,this.currentChooseItem.lists&&this.currentChooseItem.lists.length>0){this.currentChooseItem.lists[0].item.from=t.item.id;var u=_.cloneDeep(this.currentChooseItem.lists[0]);this.currentChooseItem.lists[0]=t,t.lists.push(u)}else this.currentChooseItem.lists.push(t);var c=bY(this.root.lists);c.sort(_Y("level"));for(var d=0;d<c.length;d++){var h=c[d],f=200*(h.level-1)+20;h.item.top=f+"px"}}this.refresh()},editNode:function(){},showForm:function(e){var t=this;if(console.log(this.data.nodeList,"showForm"),console.log(e),this.activeNode=e,"condition"==e.type){var n=mY.a.cloneDeep(e),i={};n.conditions.forEach((function(e,t){e.isArray&&"userId"!=e.variable&&(e.value=e.value.split(",")),i[e.variable]=e})),this.connection=i,this.title=e.name,this.conditionVisible=!0}else if("ccTask"==e.type){console.log(e);var r={approverType:"1",approvers:e.approvers||[],notifiers:e.notifiers||[],directorType:{typeName:"指定成员",type:1,authType:"1",isCCTask:!0}};console.log(r),this.$nextTick((function(){t.$refs.approverSelector.init(r)}))}else if("userTask"==e.type){e.approvers.forEach((function(e){e.name=e.userName,e.memberNo=e.userId})),e.notifiers.forEach((function(e){e.name=e.userName,e.memberNo=e.userId})),console.log(e.directorType,"*****");var o={approverType:e.approverType,approvers:e.approvers||[],notifiers:e.notifiers||[],passCopy:e.passCopy};this.nodeInfo=o,e.directorType?o.directorType=e.directorType:o.directorType={typeName:"指定成员",type:1,authType:"1"},0!=e.approvers.length?o.approvers=e.approvers:o.approvers=[{directorId:0,directorName:"直接主管"}],this.$nextTick((function(){t.$refs.approverSelector.init(o)}))}},changeNodeName:function(e){"condition"==e.node.type&&this.params.gateWayList.forEach((function(t,n){t.id==e.node.id&&(t.name=e.name)})),e.node.name=e.name},editName:function(e){this.title=e,this.activeNode.name=e},setCondition:function(e){var t=this;console.log(e);var n=Object.entries(e.form).map((function(t){var n=nO(t,2),i=n[0],r=n[1];return Array.isArray(r.value)?s(s({},r),{},{variable:i,value:"userId"==i||i==e.SxyData?"":r.value.join(","),opt:"=",isArray:!0,sponsors:"userId"==i||i==e.SxyData?r.sponsors:[]}):s(s({},r),{},{variable:i,isArray:!1})}));this.activeNode.conditions=n,this.activeNode.desc=e.desc.join(" 并且 "),this.params.gateWayList.forEach((function(e){e.id==t.activeNode.id&&(e.conditions=t.activeNode.conditions,e.desc=t.activeNode.desc)})),this.conditionVisible=!1},dataReload:function(e){},findNodeById:function(e,t){var n=this;e.item.id!=t?e.lists.forEach((function(e,i){e.item.id!=t?n.findNodeById(e,t):n.currentChooseItem=e})):n.currentChooseItem=e},addExtraCondition:function(e,t){if(this.isClick){var n=e.currentTarget,i=n.id;""!=i&&(i=i.replace("flowchartWindow",""),this.findNodeById(this.root,parseInt(i))),this.id+=1;var r=t?1:Math.max.apply("",this.currentChooseItem.lists.map((function(e){return parseFloat(e.item.name.substring(2))})));r++;var o,a=new vY(yY(this.id,"条件"+r,"condition","320px","20px",this.currentNode.sourceId,this.currentNode.targetId));if(""==i){o=this.currentChooseItem.lists[0];this.currentChooseItem.lists[0].lists.length;this.currentChooseItem.lists[0].lists.push(a)}else o=this.currentChooseItem,this.currentChooseItem.lists.push(a);a.item.from=o.item.id,a.item.to=o.lists[0].item.to,this.setResultToNode(),this.refresh()}},setResultToNode:function(){var e=bY(this.root.lists);e.sort(_Y("level")),console.log(e,"result");for(var t=320,n=e.length;n>0;n--){for(var i=e[n-1],r=0;r<i.lists.length;r++){var o=i.lists[r];0==r?o.item.left=t/2+"px":(t+=320,o.item.left=t+"px",this.resetNodeLeft(o))}var a=200*(i.level-1)+20;i.item.top=a+"px"}this.data.nodeList=e},resetNodeLeft:function(e){var t=this;"condition"==e.item.type||"userTask"==e.item.type?e.lists.length>0&&e.lists.forEach((function(n){n.item.left=e.item.left,t.resetNodeLeft(n)})):"addCondition"==e.item.type&&e.lists.forEach((function(n,i){n.item.left=parseFloat(e.item.left)-160+320*i+"px",t.resetNodeLeft(n)}))}}},xY=wY,kY=(n("ee82"),uO(xY,Kj,Jj,!1,null,null,null)),MY=kY.exports,SY=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[4!=e.nodeConfig.type?n("div",{staticClass:"node-wrap"},[n("div",{staticClass:"node-wrap-box",class:(0==e.nodeConfig.type?"start-node ":"")+(e.isTried&&e.nodeConfig.error?"active error":"")},[n("div",[n("div",{staticClass:"title",style:"background: rgb("+["87, 106, 149","255, 148, 62","50, 150, 250"][e.nodeConfig.type]+");"},[n("span",{directives:[{name:"show",rawName:"v-show",value:1==e.nodeConfig.type,expression:"nodeConfig.type==1"}],staticClass:"iconfont"},[e._v("")]),n("span",{directives:[{name:"show",rawName:"v-show",value:2==e.nodeConfig.type,expression:"nodeConfig.type==2"}],staticClass:"iconfont"},[e._v("")]),0==e.nodeConfig.type?n("span",[e._v(e._s(e.nodeConfig.nodeName))]):e._e(),0!=e.nodeConfig.type&&e.isInput?n("input",{directives:[{name:"focus",rawName:"v-focus"},{name:"model",rawName:"v-model",value:e.nodeConfig.nodeName,expression:"nodeConfig.nodeName"}],staticClass:"ant-input editable-title-input",attrs:{type:"text",placeholder:e.placeholderList[e.nodeConfig.type]},domProps:{value:e.nodeConfig.nodeName},on:{blur:function(t){return e.blurEvent()},focus:function(e){return e.currentTarget.select()},input:function(t){t.target.composing||e.$set(e.nodeConfig,"nodeName",t.target.value)}}}):e._e(),0==e.nodeConfig.type||e.isInput?e._e():n("span",{staticClass:"editable-title",on:{click:function(t){return e.clickEvent()}}},[e._v(e._s(e.nodeConfig.nodeName))]),0!=e.nodeConfig.type?n("i",{staticClass:"anticon anticon-close close",on:{click:function(t){return e.delNode()}}}):e._e()]),n("div",{staticClass:"content",on:{click:e.setPerson}},[0==e.nodeConfig.type?n("div",{staticClass:"text"},[e._v(e._s(e.arrToStr(e.flowPermission)?e.arrToStr(e.flowPermission):"请求发起人"))]):e._e(),1==e.nodeConfig.type?n("div",{staticClass:"text"},[e.setApproverStr(e.nodeConfig)?e._e():n("span",{staticClass:"placeholder"},[e._v("请选择"+e._s(e.placeholderList[e.nodeConfig.type]))]),e._v("\n "+e._s(e.setApproverStr(e.nodeConfig))+"\n ")]):e._e(),2==e.nodeConfig.type?n("div",{staticClass:"text"},[e.copyerStr(e.nodeConfig)?e._e():n("span",{staticClass:"placeholder"},[e._v("请选择"+e._s(e.placeholderList[e.nodeConfig.type]))]),e._v("\n "+e._s(e.copyerStr(e.nodeConfig))+"\n ")]):e._e(),n("i",{staticClass:"anticon anticon-right arrow"})]),e.isTried&&e.nodeConfig.error?n("div",{staticClass:"error_tip"},[n("i",{staticClass:"anticon anticon-exclamation-circle",staticStyle:{color:"rgb(242, 86, 67)"}})]):e._e()])]),n("addNode",{attrs:{childNodeP:e.nodeConfig.childNode},on:{"update:childNodeP":function(t){return e.$set(e.nodeConfig,"childNode",t)},"update:child-node-p":function(t){return e.$set(e.nodeConfig,"childNode",t)}}})],1):e._e(),4==e.nodeConfig.type?n("div",{staticClass:"branch-wrap"},[n("div",{staticClass:"branch-box-wrap"},[n("div",{staticClass:"branch-box"},[n("button",{staticClass:"add-branch",on:{click:e.addTerm}},[e._v("添加条件")]),e._l(e.nodeConfig.conditionNodes,(function(t,i){return n("div",{key:i,staticClass:"col-box"},[n("div",{staticClass:"condition-node"},[n("div",{staticClass:"condition-node-box"},[n("div",{staticClass:"auto-judge",class:e.isTried&&t.error?"error active":""},[0!=i?n("div",{staticClass:"sort-left",on:{click:function(t){return e.arrTransfer(i,-1)}}},[e._v("<")]):e._e(),n("div",{staticClass:"title-wrapper"},[e.isInputList[i]?n("input",{directives:[{name:"focus",rawName:"v-focus"},{name:"model",rawName:"v-model",value:t.nodeName,expression:"item.nodeName"}],staticClass:"ant-input editable-title-input",attrs:{type:"text"},domProps:{value:t.nodeName},on:{blur:function(t){return e.blurEvent(i)},focus:function(e){return e.currentTarget.select()},input:function(n){n.target.composing||e.$set(t,"nodeName",n.target.value)}}}):e._e(),e.isInputList[i]?e._e():n("span",{staticClass:"editable-title",on:{click:function(t){return e.clickEvent(i)}}},[e._v(e._s(t.nodeName))]),n("span",{staticClass:"priority-title",on:{click:function(n){return e.setPerson(t.priority,t)}}},[e._v("优先级"+e._s(t.priority))]),n("i",{staticClass:"anticon anticon-close close",on:{click:function(t){return e.delTerm(i)}}})]),i!=e.nodeConfig.conditionNodes.length-1?n("div",{staticClass:"sort-right",on:{click:function(t){return e.arrTransfer(i)}}},[e._v(">")]):e._e(),n("div",{staticClass:"content",on:{click:function(n){return e.setPerson(t.priority,t)}}},[e._v(e._s(e.conditionStr(t,i)))]),e.isTried&&t.error?n("div",{staticClass:"error_tip"},[n("i",{staticClass:"anticon anticon-exclamation-circle",staticStyle:{color:"rgb(242, 86, 67)"}})]):e._e()]),n("addNode",{attrs:{childNodeP:t.childNode},on:{"update:childNodeP":function(n){return e.$set(t,"childNode",n)},"update:child-node-p":function(n){return e.$set(t,"childNode",n)}}})],1)]),t.childNode&&t.childNode?n("nodeWrap",{attrs:{nodeConfig:t.childNode,tableId:e.tableId,isTried:e.isTried,directorMaxLevel:e.directorMaxLevel},on:{"update:nodeConfig":function(n){return e.$set(t,"childNode",n)},"update:node-config":function(n){return e.$set(t,"childNode",n)},"update:isTried":function(t){e.isTried=t},"update:is-tried":function(t){e.isTried=t}}}):e._e(),0==i?n("div",{staticClass:"top-left-cover-line"}):e._e(),0==i?n("div",{staticClass:"bottom-left-cover-line"}):e._e(),i==e.nodeConfig.conditionNodes.length-1?n("div",{staticClass:"top-right-cover-line"}):e._e(),i==e.nodeConfig.conditionNodes.length-1?n("div",{staticClass:"bottom-right-cover-line"}):e._e()],1)}))],2),n("addNode",{attrs:{childNodeP:e.nodeConfig.childNode},on:{"update:childNodeP":function(t){return e.$set(e.nodeConfig,"childNode",t)},"update:child-node-p":function(t){return e.$set(e.nodeConfig,"childNode",t)}}})],1)]):e._e(),e.nodeConfig.childNode&&e.nodeConfig.childNode?n("nodeWrap",{attrs:{nodeConfig:e.nodeConfig.childNode,tableId:e.tableId,isTried:e.isTried,directorMaxLevel:e.directorMaxLevel,queryInfo:e.queryInfo},on:{"update:nodeConfig":function(t){return e.$set(e.nodeConfig,"childNode",t)},"update:node-config":function(t){return e.$set(e.nodeConfig,"childNode",t)},"update:isTried":function(t){e.isTried=t},"update:is-tried":function(t){e.isTried=t}}}):e._e(),n("ApproverSelector",{ref:"approverSelector",attrs:{queryInfo:e.queryInfo}}),n("NodeConditionConfig",{ref:"conditionForm",attrs:{formData:e.connection,title:e.title,queryInfo:e.queryInfo}})],1)},CY=[],DY=(n("a575"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"add-node-btn-box"},[n("div",{staticClass:"add-node-btn"},[n("el-popover",{attrs:{placement:"right-start"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[n("div",{staticClass:"add-node-popover-body"},[n("a",{staticClass:"add-node-popover-item approver",on:{click:function(t){return e.addType(1)}}},[n("div",{staticClass:"item-wrapper"},[n("span",{staticClass:"iconfont"},[e._v("")]),n("p",[e._v("审批人")])])]),n("a",{staticClass:"add-node-popover-item notifier",on:{click:function(t){return e.addType(2)}}},[n("div",{staticClass:"item-wrapper"},[n("span",{staticClass:"iconfont"},[e._v("")]),n("p",[e._v("抄送人")])])]),n("a",{staticClass:"add-node-popover-item condition",on:{click:function(t){return e.addType(4)}}},[n("div",{staticClass:"item-wrapper"},[n("span",{staticClass:"iconfont"},[e._v("")]),n("p",[e._v("条件分支")])])])]),n("button",{staticClass:"btn",attrs:{slot:"reference",type:"button"},slot:"reference"},[n("span",{staticClass:"iconfont"},[e._v("")])])])],1)])}),LY=[],TY={props:["childNodeP"],data:function(){return{visible:!1}},methods:{addType:function(e){var t;(this.visible=!1,4!=e)?(1==e?t={nodeName:"审批人",error:!0,type:1,setType:1,directorLevel:1,examineMode:"3",authType:"1",childNode:this.childNodeP,nodeUserList:[]}:2==e&&(t={nodeName:"抄送人",type:2,ccSelfSelectFlag:1,childNode:this.childNodeP,nodeUserList:[]}),this.$emit("update:childNodeP",t)):this.$emit("update:childNodeP",{nodeName:"路由",type:4,childNode:null,conditionNodes:[{nodeName:"条件1",error:!0,type:3,priority:1,conditionList:[],nodeUserList:[],childNode:this.childNodeP},{nodeName:"条件2",type:3,priority:2,conditionList:[],nodeUserList:[],childNode:null}]})}}},EY=TY,PY=uO(EY,DY,LY,!1,null,null,null),jY=PY.exports,OY={props:["nodeConfig","flowPermission","directorMaxLevel","isTried","tableId","queryInfo"],components:{ApproverSelector:fY,NodeConditionConfig:KI,addNode:jY},name:"nodeWrap",data:function(){return{placeholderList:["发起人","审批人","抄送人"],isInputList:[],isInput:!1,approverConfig:{},copyerConfig:{},ccSelfSelectFlag:[],conditionConfig:{},conditionsConfig:{conditionNodes:[]},bPriorityLevel:"",conditions:[],conditionList:[],connection:{},title:""}},mounted:function(){if(1==this.nodeConfig.type)this.nodeConfig.error=!this.setApproverStr(this.nodeConfig);else if(2==this.nodeConfig.type)this.nodeConfig.error=!this.copyerStr(this.nodeConfig);else if(4==this.nodeConfig.type)for(var e=0;e<this.nodeConfig.conditionNodes.length;e++)this.nodeConfig.conditionNodes[e].error="请设置条件"==this.conditionStr(this.nodeConfig.conditionNodes[e],e)&&e!=this.nodeConfig.conditionNodes.length-1},created:function(){},methods:{clickEvent:function(e){e||0===e?this.$set(this.isInputList,e,!0):this.isInput=!0},blurEvent:function(e){e||0===e?(this.$set(this.isInputList,e,!1),this.nodeConfig.conditionNodes[e].nodeName=this.nodeConfig.conditionNodes[e].nodeName?this.nodeConfig.conditionNodes[e].nodeName:"条件"):(this.isInput=!1,this.nodeConfig.nodeName=this.nodeConfig.nodeName?this.nodeConfig.nodeName:this.placeholderList[this.nodeConfig.type])},setPerson:function(e,t){var n=this.nodeConfig.type;0==n||(1==n?(this.$refs.approverSelector.init(this.nodeConfig),this.approverConfig=JSON.parse(JSON.stringify(this.nodeConfig)),this.approverConfig.setType=this.approverConfig.setType?this.approverConfig.setType:1):2==n?(this.$refs.approverSelector.init(this.nodeConfig),this.copyerConfig=JSON.parse(JSON.stringify(this.nodeConfig)),this.ccSelfSelectFlag=0==this.copyerConfig.ccSelfSelectFlag?[]:[this.copyerConfig.ccSelfSelectFlag]):(this.bPriorityLevel=e,this.conditionsConfig=JSON.parse(JSON.stringify(this.nodeConfig)),this.conditionConfig=this.conditionsConfig.conditionNodes[e-1],this.$refs.conditionForm.nodeConditionHandler(),this.fillConditionForm(this.conditionConfig)))},changeType:function(e){this.approverConfig.nodeUserList=[],this.approverConfig.examineMode="3",this.approverConfig.authType="1",2==e&&(this.approverConfig.directorLevel=0),this.approverConfig.setType=e},noHanderActionChange:function(e){this.approverConfig.authType=e},directorLevelChange:function(e){this.approverConfig.directorLevel=e},examineModeChange:function(e){this.approverConfig.examineMode=e},submitApprover:function(e){e.approverType;var t=e.approvers;e.directorType,e.notifiers;this.approverConfig.nodeUserList=[],1==this.approverConfig.setType&&(this.approverConfig.nodeUserList=t),this.saveApprover(),this.$refs.approverSelector.showApproverSelector()},saveApprover:function(){this.approverConfig.error=!this.setApproverStr(this.approverConfig),this.$emit("update:nodeConfig",this.approverConfig)},setApproverStr:function(e){if(1==e.setType){if(1==e.nodeUserList.length)return e.nodeUserList[0].userName;if(e.nodeUserList.length>1){if("1"==e.examineMode)return e.nodeUserList.length+"人会签";if("2"==e.examineMode)return e.nodeUserList.length+"人或签";if("3"==e.examineMode)return e.nodeUserList.length+"人依次审批"}}else if(2==e.setType){var t=0==e.directorLevel?"直接主管":"第"+(parseInt(e.directorLevel)+1)+"级主管";if("1"==e.examineMode)return t+"会签";if("2"==e.examineMode)return t+"人或签";if("3"==e.examineMode)return t+"人依次审批"}},arrToStr:function(e){if(e)return e.map((function(e){return e.userName})).toString()},submitCopyer:function(e){e.approverType,e.approvers;var t=e.notifiers;e.passCopy,e.directorType;this.copyerConfig.nodeUserList=t,this.saveCopyer(),this.$refs.approverSelector.showApproverSelector()},saveCopyer:function(){this.copyerConfig.ccSelfSelectFlag=0==this.ccSelfSelectFlag.length?0:1,this.copyerConfig.error=!this.copyerStr(this.copyerConfig),this.$emit("update:nodeConfig",this.copyerConfig)},copyerStr:function(e){if(0!=e.nodeUserList.length)return this.arrToStr(e.nodeUserList)},delNode:function(){this.$emit("update:nodeConfig",this.nodeConfig.childNode)},addTerm:function(){var e=this.nodeConfig.conditionNodes.length+1;this.nodeConfig.conditionNodes.push({nodeName:"条件"+e,type:3,priority:e,conditionList:[],nodeUserList:[],childNode:null});for(var t=0;t<this.nodeConfig.conditionNodes.length;t++)this.nodeConfig.conditionNodes[t].error="请设置条件"==this.conditionStr(this.nodeConfig.conditionNodes[t],t)&&t!=this.nodeConfig.conditionNodes.length-1;this.$emit("update:nodeConfig",this.nodeConfig)},delTerm:function(e){this.nodeConfig.conditionNodes.splice(e,1);for(var t=0;t<this.nodeConfig.conditionNodes.length;t++)this.nodeConfig.conditionNodes[t].error="请设置条件"==this.conditionStr(this.nodeConfig.conditionNodes[t],t)&&t!=this.nodeConfig.conditionNodes.length-1;this.$emit("update:nodeConfig",this.nodeConfig),1==this.nodeConfig.conditionNodes.length&&(this.nodeConfig.childNode&&(this.nodeConfig.conditionNodes[0].childNode?this.reData(this.nodeConfig.conditionNodes[0].childNode,this.nodeConfig.childNode):this.nodeConfig.conditionNodes[0].childNode=this.nodeConfig.childNode),this.$emit("update:nodeConfig",this.nodeConfig.conditionNodes[0].childNode))},reData:function(e,t){e.childNode?this.reData(e.childNode,t):e.childNode=t},fillConditionForm:function(e){var t={};e.conditionList.forEach((function(e,n){e.isArray&&"userId"!=e.variable&&(e.value=e.value.split(",")),["input","sponsor"].includes(e.ele)||(e.value=e.value.split(","),e.value.map((function(t,n){return e.value[n]=parseInt(t)}))),t[e.variable]=e})),this.connection=t,this.title=e.nodeName},saveCondition:function(){var e=this.conditionsConfig.conditionNodes.splice(this.bPriorityLevel-1,1);this.conditionsConfig.conditionNodes.splice(this.conditionConfig.priority-1,0,e[0]),this.conditionsConfig.conditionNodes.map((function(e,t){return e.priority=t+1}));for(var t=0;t<this.conditionsConfig.conditionNodes.length;t++)this.conditionsConfig.conditionNodes[t].error="请设置条件"==this.conditionStr(this.conditionsConfig.conditionNodes[t],t)&&t!=this.conditionsConfig.conditionNodes.length-1;this.$emit("update:nodeConfig",this.conditionsConfig)},submitCondition:function(e){var t=e.form,n=e.desc;e.SxyData;for(var i in this.conditionConfig.nodeUserList=[],this.conditionConfig.conditionList=[],this.conditionConfig.desc=n,t.userId&&(this.conditionConfig.nodeUserList=t.userId.sponsors),t){var r=void 0;Array.isArray(t[i].value)&&(r={value:t[i].value.join(",")}),this.conditionConfig.conditionList.push(s(s({},t[i]),{},{variable:i},r))}this.saveCondition(),this.$refs.conditionForm.nodeConditionHandler()},conditionStr:function(e,t){var n=e.conditionList;e.nodeUserList;return 0==n.length?t==this.nodeConfig.conditionNodes.length-1&&0!=this.nodeConfig.conditionNodes[0].conditionList.length?"其他条件进入此流程":"请设置条件":e.desc?e.desc.join(";"):void 0},arrTransfer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.nodeConfig.conditionNodes[e]=this.nodeConfig.conditionNodes.splice(e+t,1,this.nodeConfig.conditionNodes[e])[0],this.nodeConfig.conditionNodes.map((function(e,t){e.priority=t+1}));for(var n=0;n<this.nodeConfig.conditionNodes.length;n++)this.nodeConfig.conditionNodes[n].error="请设置条件"==this.conditionStr(this.nodeConfig.conditionNodes[n],n)&&n!=this.nodeConfig.conditionNodes.length-1;this.$emit("update:nodeConfig",this.nodeConfig)}}},IY=OY,YY=(n("94b8"),uO(IY,SY,CY,!1,null,"2e4fa73a",null)),AY=YY.exports,NY={name:"Process",components:{OldProcess:MY,nodeWrap:AY},props:{path:{type:String,default:function(){return"/index"}},queryInfo:{type:Object,default:function(){return{name:"公告管理",type:"notice"}}},userInfo:{type:Object,default:function(){return{companyNo:"202008267425615",no:""}}},formBuilder:{type:Object,default:function(){return{formDesId:""}}}},data:function(){return{isTried:!1,tipList:[],tipVisible:!1,nowVal:100,processConfig:{},nodeConfig:{},workFlowDef:{},flowPermission:[],directorMaxLevel:0,dialogVisible:!0,tableId:"",isFlg:!0,isOldData:!1,oldModal:!1,type:null,processId:null}},mounted:function(){},created:function(){this.getProcessSet(),this.type="/index"==this.path?"customForm_"+this.formBuilder.formDesId:this.queryInfo.type},methods:{initData:function(e){this.processConfig=e,this.processConfig.processId=this.processId,this.nodeConfig=this.processConfig.nodeConfig,this.flowPermission=this.processConfig.flowPermission,this.directorMaxLevel=this.processConfig.directorMaxLevel,this.workFlowDef={switchOn:!!parseInt(this.processConfig.switchOn),automaticPass:!!parseInt(this.processConfig.automaticPass)}},getProcessSet:function(){var e=this;return d(regeneratorRuntime.mark((function t(){var n,i,r,o,a,s,l;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n={companyId:e.userInfo.companyNo,type:e.queryInfo.type},t.next=3,qj(n);case 3:i=t.sent,r=i.data,o=r.state,a=r.data,"ok"==o&&a?(e.processId=a._id,s=a.content,l=a.rootNode,l.isNewVersion?e.initData(JSON.parse(s)):(e.isOldData=!0,e.initData(e.handleOldProcess(s)))):e.initData(JSON.parse(JSON.stringify(f.data)));case 6:case"end":return t.stop()}}),t)})))()},handleOldProcess:function(e){var t=this,n=JSON.parse(e),i=n.nodeList,r=n.companyId,o=n.creator,a=n.describe,s=n.processName,l=n.switchOn,u=n.type,c=n.version,d=i.filter((function(e){return!["start","end"].includes(e.item.type)})),h={companyId:r,creator:o,describe:a,nodeConfig:{pkId:"sid-start-node",nodeName:"发起人",type:0,priority:"",setType:"",directorLevel:"",examineMode:"",authType:"",ccSelfSelectFlag:"",conditionList:[],nodeUserList:[],childNode:null,conditionNodes:[]},processId:this.processId,processName:s,switchOn:l,automaticPass:0,type:u,version:c},f=d.filter((function(e){return"addCondition"==e.item.type}));if(!f.length){var p={},m=[];d.map((function(e,n){d[n].item=t.createTypeData(e.item),delete d[n].lists,delete d[n].level})),d.forEach((function(e){p[e.item.id]=e.item})),d.forEach((function(e){var t=p[parseInt(e.item.from)];t?(t.children||(t.children=[])).push(e.item):m.push(e.item)})),this.flatChildNode(m[0]),h.nodeConfig.childNode=m[0]}return h},flatChildNode:function(e){e.childNode=e.children&&e.children[0]?e.children[0]:null,e.children&&e.children[0]&&(e.children[0].children&&this.flatChildNode(e.children[0]),delete e.id,delete e.from,delete e.children,delete e.childNode.id,delete e.childNode.from)},createTypeData:function(e){var t={};return"userTask"==e.type?t={nodeName:"审批人",type:1,priority:1,setType:e.directorType&&e.directorType.type||1,directorLevel:"3"==e.approverType?e.approvers[0].directorId:"",examineMode:e.approverType,authType:e.directorType&&e.directorType.type||"1",ccSelfSelectFlag:1,conditionList:[],nodeUserList:e.approvers||[],childNode:null,conditionNodes:[],error:!1,id:e.id,from:e.from}:"ccTask"==e.type&&(t={ccSelfSelectFlag:1,error:!1,type:2,nodeName:"抄送人",nodeUserList:e.notifiers,id:e.id,from:e.from}),t},showOldModal:function(){this.oldModal=!this.oldModal},toReturn:function(){},reErr:function(e){if(e.childNode){if(1==e.childNode.type)e.childNode.error&&this.tipList.push({name:e.childNode.nodeName,type:"审批人"}),this.reErr(e.childNode);else if(2==e.childNode.type)e.childNode.error&&this.tipList.push({name:e.childNode.nodeName,type:"抄送人"}),this.reErr(e.childNode);else if(3==e.childNode.type)this.reErr(e.childNode.childNode);else if(4==e.childNode.type){this.reErr(e.childNode);for(var t=0;t<e.childNode.conditionNodes.length;t++)e.childNode.conditionNodes[t].error&&this.tipList.push({name:e.childNode.conditionNodes[t].nodeName,type:"条件"}),this.reErr(e.childNode.conditionNodes[t])}}else e.childNode=null},saveSet:function(){var e=this;return d(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.isTried=!0,e.tipList=[],e.reErr(e.nodeConfig),0==e.tipList.length){t.next=6;break}return e.tipVisible=!0,t.abrupt("return");case 6:if(e.processConfig.flowPermission=e.flowPermission,e.processConfig=s(s({},e.processConfig),{},{switchOn:e.workFlowDef.switchOn?1:0,automaticPass:e.workFlowDef.automaticPass?1:0,creator:e.userInfo.no,companyId:e.userInfo.companyNo,type:e.queryInfo.type,processName:e.queryInfo.name,describe:e.queryInfo.name}),!e.processConfig.processId){t.next=14;break}return t.next=11,Vj(e.processConfig);case 11:n=t.sent,t.next=17;break;case 14:return t.next=16,Bj(e.processConfig);case 16:n=t.sent;case 17:"ok"==n.data.state?(e.$message.success({message:e.processConfig.processId?"编辑成功":"保存成功",duration:1500}),-1==e.type.indexOf("customForm_")&&(e.$removeTag1(e.$route),e.$router.go(-1))):(e.isTried=!1,e.$message.error({message:n.data.msg?n.data.msg:"保存失败",duration:1500}));case 18:case"end":return t.stop()}}),t)})))()},cancel:function(){var e=this;this.$confirm("有修改的内容未保存,确认离开吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.$removeTag1(e.$route),e.$router.go(-1)})).catch((function(){}))},zoomSize:function(e){if(1==e){if(50==this.nowVal)return;this.nowVal-=10}else{if(300==this.nowVal)return;this.nowVal+=10}}}},HY=NY,RY=(n("6444"),uO(HY,l,u,!1,null,"6dbe2c3a",null)),FY=RY.exports,zY=[FY],$Y=function e(t){e.installed||(e.installed=!0,zY.map((function(e){t.component(e.name,e)})))};"undefined"!==typeof window&&window.Vue&&$Y(window.Vue);var BY=s({install:$Y},zY);t["default"]=BY},"12cb":function(e,t,n){var i=n("3a08"),r=Math.max,o=Math.min;e.exports=function(e,t){return e=i(e),e<0?r(e+t,0):o(e,t)}},"12e7":function(e,t,n){"use strict";var i=n("3866").charAt;e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},1320:function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
28
+ */Rm.after=_y.after,Rm.ary=_y.ary,Rm.assign=zC.assign,Rm.assignIn=zC.assignIn,Rm.assignInWith=zC.assignInWith,Rm.assignWith=zC.assignWith,Rm.at=zC.at,Rm.before=_y.before,Rm.bind=_y.bind,Rm.bindAll=oj.bindAll,Rm.bindKey=_y.bindKey,Rm.castArray=fk.castArray,Rm.chain=hD.chain,Rm.chunk=Ld.chunk,Rm.compact=Ld.compact,Rm.concat=Ld.concat,Rm.cond=oj.cond,Rm.conforms=oj.conforms,Rm.constant=oj.constant,Rm.countBy=Up.countBy,Rm.create=zC.create,Rm.curry=_y.curry,Rm.curryRight=_y.curryRight,Rm.debounce=_y.debounce,Rm.defaults=zC.defaults,Rm.defaultsDeep=zC.defaultsDeep,Rm.defer=_y.defer,Rm.delay=_y.delay,Rm.difference=Ld.difference,Rm.differenceBy=Ld.differenceBy,Rm.differenceWith=Ld.differenceWith,Rm.drop=Ld.drop,Rm.dropRight=Ld.dropRight,Rm.dropRightWhile=Ld.dropRightWhile,Rm.dropWhile=Ld.dropWhile,Rm.fill=Ld.fill,Rm.filter=Up.filter,Rm.flatMap=Up.flatMap,Rm.flatMapDeep=Up.flatMapDeep,Rm.flatMapDepth=Up.flatMapDepth,Rm.flatten=Ld.flatten,Rm.flattenDeep=Ld.flattenDeep,Rm.flattenDepth=Ld.flattenDepth,Rm.flip=_y.flip,Rm.flow=oj.flow,Rm.flowRight=oj.flowRight,Rm.fromPairs=Ld.fromPairs,Rm.functions=zC.functions,Rm.functionsIn=zC.functionsIn,Rm.groupBy=Up.groupBy,Rm.initial=Ld.initial,Rm.intersection=Ld.intersection,Rm.intersectionBy=Ld.intersectionBy,Rm.intersectionWith=Ld.intersectionWith,Rm.invert=zC.invert,Rm.invertBy=zC.invertBy,Rm.invokeMap=Up.invokeMap,Rm.iteratee=oj.iteratee,Rm.keyBy=Up.keyBy,Rm.keys=Xo,Rm.keysIn=zC.keysIn,Rm.map=Up.map,Rm.mapKeys=zC.mapKeys,Rm.mapValues=zC.mapValues,Rm.matches=oj.matches,Rm.matchesProperty=oj.matchesProperty,Rm.memoize=_y.memoize,Rm.merge=zC.merge,Rm.mergeWith=zC.mergeWith,Rm.method=oj.method,Rm.methodOf=oj.methodOf,Rm.mixin=Ej,Rm.negate=Df,Rm.nthArg=oj.nthArg,Rm.omit=zC.omit,Rm.omitBy=zC.omitBy,Rm.once=_y.once,Rm.orderBy=Up.orderBy,Rm.over=oj.over,Rm.overArgs=_y.overArgs,Rm.overEvery=oj.overEvery,Rm.overSome=oj.overSome,Rm.partial=_y.partial,Rm.partialRight=_y.partialRight,Rm.partition=Up.partition,Rm.pick=zC.pick,Rm.pickBy=zC.pickBy,Rm.property=oj.property,Rm.propertyOf=oj.propertyOf,Rm.pull=Ld.pull,Rm.pullAll=Ld.pullAll,Rm.pullAllBy=Ld.pullAllBy,Rm.pullAllWith=Ld.pullAllWith,Rm.pullAt=Ld.pullAt,Rm.range=oj.range,Rm.rangeRight=oj.rangeRight,Rm.rearg=_y.rearg,Rm.reject=Up.reject,Rm.remove=Ld.remove,Rm.rest=_y.rest,Rm.reverse=Ld.reverse,Rm.sampleSize=Up.sampleSize,Rm.set=zC.set,Rm.setWith=zC.setWith,Rm.shuffle=Up.shuffle,Rm.slice=Ld.slice,Rm.sortBy=Up.sortBy,Rm.sortedUniq=Ld.sortedUniq,Rm.sortedUniqBy=Ld.sortedUniqBy,Rm.split=AE.split,Rm.spread=_y.spread,Rm.tail=Ld.tail,Rm.take=Ld.take,Rm.takeRight=Ld.takeRight,Rm.takeRightWhile=Ld.takeRightWhile,Rm.takeWhile=Ld.takeWhile,Rm.tap=hD.tap,Rm.throttle=_y.throttle,Rm.thru=BC,Rm.toArray=fk.toArray,Rm.toPairs=zC.toPairs,Rm.toPairsIn=zC.toPairsIn,Rm.toPath=oj.toPath,Rm.toPlainObject=fk.toPlainObject,Rm.transform=zC.transform,Rm.unary=_y.unary,Rm.union=Ld.union,Rm.unionBy=Ld.unionBy,Rm.unionWith=Ld.unionWith,Rm.uniq=Ld.uniq,Rm.uniqBy=Ld.uniqBy,Rm.uniqWith=Ld.uniqWith,Rm.unset=zC.unset,Rm.unzip=Ld.unzip,Rm.unzipWith=Ld.unzipWith,Rm.update=zC.update,Rm.updateWith=zC.updateWith,Rm.values=zC.values,Rm.valuesIn=zC.valuesIn,Rm.without=Ld.without,Rm.words=AE.words,Rm.wrap=_y.wrap,Rm.xor=Ld.xor,Rm.xorBy=Ld.xorBy,Rm.xorWith=Ld.xorWith,Rm.zip=Ld.zip,Rm.zipObject=Ld.zipObject,Rm.zipObjectDeep=Ld.zipObjectDeep,Rm.zipWith=Ld.zipWith,Rm.entries=zC.toPairs,Rm.entriesIn=zC.toPairsIn,Rm.extend=zC.assignIn,Rm.extendWith=zC.assignInWith,Ej(Rm,Rm),Rm.add=aM.add,Rm.attempt=oj.attempt,Rm.camelCase=AE.camelCase,Rm.capitalize=AE.capitalize,Rm.ceil=aM.ceil,Rm.clamp=_M.clamp,Rm.clone=fk.clone,Rm.cloneDeep=fk.cloneDeep,Rm.cloneDeepWith=fk.cloneDeepWith,Rm.cloneWith=fk.cloneWith,Rm.conformsTo=fk.conformsTo,Rm.deburr=AE.deburr,Rm.defaultTo=oj.defaultTo,Rm.divide=aM.divide,Rm.endsWith=AE.endsWith,Rm.eq=fk.eq,Rm.escape=AE.escape,Rm.escapeRegExp=AE.escapeRegExp,Rm.every=Up.every,Rm.find=Up.find,Rm.findIndex=Ld.findIndex,Rm.findKey=zC.findKey,Rm.findLast=Up.findLast,Rm.findLastIndex=Ld.findLastIndex,Rm.findLastKey=zC.findLastKey,Rm.floor=aM.floor,Rm.forEach=Up.forEach,Rm.forEachRight=Up.forEachRight,Rm.forIn=zC.forIn,Rm.forInRight=zC.forInRight,Rm.forOwn=zC.forOwn,Rm.forOwnRight=zC.forOwnRight,Rm.get=zC.get,Rm.gt=fk.gt,Rm.gte=fk.gte,Rm.has=zC.has,Rm.hasIn=zC.hasIn,Rm.head=Ld.head,Rm.identity=Ei,Rm.includes=Up.includes,Rm.indexOf=Ld.indexOf,Rm.inRange=_M.inRange,Rm.invoke=zC.invoke,Rm.isArguments=fk.isArguments,Rm.isArray=xt,Rm.isArrayBuffer=fk.isArrayBuffer,Rm.isArrayLike=fk.isArrayLike,Rm.isArrayLikeObject=fk.isArrayLikeObject,Rm.isBoolean=fk.isBoolean,Rm.isBuffer=fk.isBuffer,Rm.isDate=fk.isDate,Rm.isElement=fk.isElement,Rm.isEmpty=fk.isEmpty,Rm.isEqual=fk.isEqual,Rm.isEqualWith=fk.isEqualWith,Rm.isError=fk.isError,Rm.isFinite=fk.isFinite,Rm.isFunction=fk.isFunction,Rm.isInteger=fk.isInteger,Rm.isLength=fk.isLength,Rm.isMap=fk.isMap,Rm.isMatch=fk.isMatch,Rm.isMatchWith=fk.isMatchWith,Rm.isNaN=fk.isNaN,Rm.isNative=fk.isNative,Rm.isNil=fk.isNil,Rm.isNull=fk.isNull,Rm.isNumber=fk.isNumber,Rm.isObject=ge,Rm.isObjectLike=fk.isObjectLike,Rm.isPlainObject=fk.isPlainObject,Rm.isRegExp=fk.isRegExp,Rm.isSafeInteger=fk.isSafeInteger,Rm.isSet=fk.isSet,Rm.isString=fk.isString,Rm.isSymbol=fk.isSymbol,Rm.isTypedArray=fk.isTypedArray,Rm.isUndefined=fk.isUndefined,Rm.isWeakMap=fk.isWeakMap,Rm.isWeakSet=fk.isWeakSet,Rm.join=Ld.join,Rm.kebabCase=AE.kebabCase,Rm.last=Bs,Rm.lastIndexOf=Ld.lastIndexOf,Rm.lowerCase=AE.lowerCase,Rm.lowerFirst=AE.lowerFirst,Rm.lt=fk.lt,Rm.lte=fk.lte,Rm.max=aM.max,Rm.maxBy=aM.maxBy,Rm.mean=aM.mean,Rm.meanBy=aM.meanBy,Rm.min=aM.min,Rm.minBy=aM.minBy,Rm.stubArray=oj.stubArray,Rm.stubFalse=oj.stubFalse,Rm.stubObject=oj.stubObject,Rm.stubString=oj.stubString,Rm.stubTrue=oj.stubTrue,Rm.multiply=aM.multiply,Rm.nth=Ld.nth,Rm.noop=oj.noop,Rm.now=Kp.now,Rm.pad=AE.pad,Rm.padEnd=AE.padEnd,Rm.padStart=AE.padStart,Rm.parseInt=AE.parseInt,Rm.random=_M.random,Rm.reduce=Up.reduce,Rm.reduceRight=Up.reduceRight,Rm.repeat=AE.repeat,Rm.replace=AE.replace,Rm.result=zC.result,Rm.round=aM.round,Rm.sample=Up.sample,Rm.size=Up.size,Rm.snakeCase=AE.snakeCase,Rm.some=Up.some,Rm.sortedIndex=Ld.sortedIndex,Rm.sortedIndexBy=Ld.sortedIndexBy,Rm.sortedIndexOf=Ld.sortedIndexOf,Rm.sortedLastIndex=Ld.sortedLastIndex,Rm.sortedLastIndexBy=Ld.sortedLastIndexBy,Rm.sortedLastIndexOf=Ld.sortedLastIndexOf,Rm.startCase=AE.startCase,Rm.startsWith=AE.startsWith,Rm.subtract=aM.subtract,Rm.sum=aM.sum,Rm.sumBy=aM.sumBy,Rm.template=AE.template,Rm.times=oj.times,Rm.toFinite=fk.toFinite,Rm.toInteger=rt,Rm.toLength=fk.toLength,Rm.toLower=AE.toLower,Rm.toNumber=fk.toNumber,Rm.toSafeInteger=fk.toSafeInteger,Rm.toString=fk.toString,Rm.toUpper=AE.toUpper,Rm.trim=AE.trim,Rm.trimEnd=AE.trimEnd,Rm.trimStart=AE.trimStart,Rm.truncate=AE.truncate,Rm.unescape=AE.unescape,Rm.uniqueId=oj.uniqueId,Rm.upperCase=AE.upperCase,Rm.upperFirst=AE.upperFirst,Rm.each=Up.forEach,Rm.eachRight=Up.forEachRight,Rm.first=Ld.head,Ej(Rm,function(){var e={};return Ad(Rm,(function(t,n){Cj.call(Rm.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Rm.VERSION=bj,(Rm.templateSettings=AE.templateSettings).imports._=Rm,Jd(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Rm[e].placeholder=Rm})),Jd(["drop","take"],(function(e,t){km.prototype[e]=function(n){n=void 0===n?1:Lj(rt(n),0);var i=this.__filtered__&&!t?new km(this):this.clone();return i.__filtered__?i.__takeCount__=Tj(n,i.__takeCount__):i.__views__.push({size:Tj(n,kj),type:e+(i.__dir__<0?"Right":"")}),i},km.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Jd(["filter","map","takeWhile"],(function(e,t){var n=t+1,i=n==wj||n==xj;km.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:zs(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}})),Jd(["head","last"],(function(e,t){var n="take"+(t?"Right":"");km.prototype[e]=function(){return this[n](1).value()[0]}})),Jd(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");km.prototype[e]=function(){return this.__filtered__?new km(this):this[n](1)}})),km.prototype.compact=function(){return this.filter(Ei)},km.prototype.find=function(e){return this.filter(e).head()},km.prototype.findLast=function(e){return this.reverse().find(e)},km.prototype.invokeMap=Ji((function(e,t){return"function"==typeof e?new km(this):this.map((function(n){return Qh(n,e,t)}))})),km.prototype.reject=function(e){return this.filter(Df(zs(e)))},km.prototype.slice=function(e,t){e=rt(e);var n=this;return n.__filtered__&&(e>0||t<0)?new km(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(t=rt(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},km.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},km.prototype.toArray=function(){return this.take(kj)},Ad(km.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),r=Rm[i?"take"+("last"==t?"Right":""):t],o=i||/^find/.test(t);r&&(Rm.prototype[t]=function(){var t=this.__wrapped__,a=i?[1]:arguments,s=t instanceof km,l=a[0],u=s||xt(t),c=function(e){var t=r.apply(Rm,ht([e],a));return i&&d?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(s=u=!1);var d=this.__chain__,h=!!this.__actions__.length,f=o&&!d,p=s&&!h;if(!o&&u){t=p?t:new km(this);var m=e.apply(t,a);return m.__actions__.push({func:BC,args:[c],thisArg:void 0}),new Om(m,d)}return f&&p?e.apply(this,a):(m=this.thru(c),f?i?m.value()[0]:m.value():m)})})),Jd(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Mj[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);Rm.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var r=this.value();return t.apply(xt(r)?r:[],e)}return this[n]((function(n){return t.apply(xt(n)?n:[],e)}))}})),Ad(km.prototype,(function(e,t){var n=Rm[t];if(n){var i=n.name+"";Cj.call(Dm,i)||(Dm[i]=[]),Dm[i].push({name:t,func:n})}})),Dm[Iv(void 0,_j).name]=[{name:"wrapper",func:void 0}],km.prototype.clone=sj,km.prototype.reverse=uj,km.prototype.value=yj,Rm.prototype.at=hD.at,Rm.prototype.chain=hD.wrapperChain,Rm.prototype.commit=hD.commit,Rm.prototype.next=hD.next,Rm.prototype.plant=hD.plant,Rm.prototype.reverse=hD.reverse,Rm.prototype.toJSON=Rm.prototype.valueOf=Rm.prototype.value=hD.value,Rm.prototype.first=Rm.prototype.head,Dj&&(Rm.prototype[Dj]=hD.toIterator);var Pj=Rm,jj={disabled:!1,inline:!1,isShowLabel:!0,isDialog:!1,isShowSubmitBtn:!1,isShowBackBtn:!1,isShowResetBtn:!1,isShowCancelBtn:!1,isResponsive:!0,submitBtnText:"提交",cancelBtnText:"取消",backBtnText:"返回",resetBtnText:"重置",labelWidth:"90",labelPosition:"right",span:null,formBtnSize:null,grid:"one"};g.a.use(y["a"]);var Oj=Pj.cloneDeep(jj),Ij=new y["a"].Store({state:{curCusTableIndex:null,notDataFlag:!1,headImg:"",relationState:"",ScheduleDel:!1,storeInformation:{},storeType:!1,identity:{user:!1,realName:!1,enterprise:!1,authentication:!1,relevance:!1,type:0},centerMeun:{},token:"",area:{},loginType:!1,user:{identityCard:"",realName:"",registerTime:"",userRole:0},auth_user:{authorities:[]},global_area:[],shopInfo:{},menuList:[],upload:"".concat("https://gateway.shigongbang.com/enterprise-managerment-release","/file/add"),uploadMess:"".concat("https://gateway.shigongbang.com/enterprise-managerment-release","/file/recognition"),uploadApp:"".concat("https://gateway.shigongbang.com").concat("/sgb-app-manager","/v1/app/common/imgUpload"),otherUpload:"file/add",otherUploadMess:"file/recognition",imgUrl:"https://shigongbang.oss-cn-hangzhou.aliyuncs.com/",imgShop:"https://shigongbang.oss-cn-hangzhou.aliyuncs.com/",isCollapse:!1,tags:[],current_tag:"",menuFinish:!1,currentMenu:"/Hgcgl",currentTopMenu:0,projectName:"",msgs:{},sysMsgs:[],customSysMsgs:[],sysMsgUnread:{},session:[],nimState:!1,toUser:"",friends:[],teams:[],imUserName:"",teamMember:{},formAttr:Oj,list:{default:[]},selectIndex:null,activeFormName:"default",formBuilder:{menuId:"",formDesId:"",currentMenu:""},formBuilderActive:1,refreshList:!0,selSubIndex:null},mutations:{SET_MENULIST:function(e,t){e.menuList=t},SET_NODATAFLAG:function(e,t){},changeMsgNum:function(e,t){e.user.msgNum=t},updateStoreInformation:function(e,t){e.storeInformation=t},SET_LOGINTYPE:function(e,t){e.loginType=t},SET_CENTERMEUN:function(e,t){t.childrens.length>0&&t.childrens.forEach((function(e){e.unfold=!1})),0===t.childrens.length?(Auth.forEach((function(e){e.childrens.length,e.unfold=!1})),t.unfold=!0,this.$router.push({path:t.path})):(Auth.forEach((function(e){e.unfold=!1})),t.unfold?t.unfold=!1:t.unfold=!0),e.centerMeun=t},SET_TOKEN:function(e,t){e.token=t},SET_AUTH_USER:function(e,t){e.auth_user=t},SET_GLOBAL_AREA:function(e,t){e.global_area=t},SET_ISCOLLAPSE:function(e){e.isCollapse=!e.isCollapse},SET_USER:function(e,t){e.user=t,e.identity.user=!1,e.identity.realName=!1,e.identity.enterprise=!1,0==t.userRole&&(e.identity.user=!0,e.identity.type=0),0==t.userRole&&1==t.personalAuth&&(e.identity.realName=!0,e.identity.type=1),t.userRole&&0!=t.userRole&&(e.identity.enterprise=!0,e.identity.type=2,this.dispatch("setStoreInformation")),t.relevance&&(e.identity.relevance=!0),(e.identity.user&&e.identity.relevance||e.identity.enterprise)&&(e.identity.authentication=!0),t.imAccount&&t.imToken},LOGIN_OUT:function(e){e.loginType=!1,e.menuFinish=!1,e.user={identityCard:"",realName:"",registerTime:"",userRole:0},e.identity.user=!1,e.identity.realName=!1,e.identity.enterprise=!1,e.tags=[],e.currentMenu="",e.currentTopMenu=0,this.commit("SET_LOGINTYPE",!1),this.commit("SET_TOKEN",null),this.commit("SET_USER",{}),A.set("expire",!0),C.cookieClear("token"),C.cookieClear("h_projectNo"),e.msgs={},e.sysMsgs=[],e.session=[],e.toUser="",e.friends=[],e.teams=[],e.imUserName="",e.teamMember={},window.nim&&window.nim.destroy({done:function(e){window.nim=null}})},SET_AREA:function(e,t){e.area=t},SET_STORE_TYPE:function(e,t){e.storeType=t},SET_SHOPINFO:function(e,t){e.shopinfo=t},SET_MENUFINISH:function(e,t){e.menuFinish=t},SET_CURRENTMENU:function(e,t){e.currentMenu=t},SET_CURRENTTOPMENU:function(e,t){e.currentTopMenu=t},SET_TAGS:function(e,t){e.tags.push(t)},SET_CURRENTTAG:function(e,t){e.current_tag=t},RESET_TAGS:function(e,t){e.tags=t},SET_MSGS:function(e,t){if(Array.isArray(t)||(t=[t]),t[0]){var n=t[0].sessionId,i=window.nim.mergeMsgs(e.msgs[n],t);e.msgs[n]=i,e.msgs=Object.assign({},e.msgs)}},DELMSYS:function(e,t){e.msgs[t.msg.sessionId].forEach((function(n,i){n.idServer==t.msg.idServer&&e.msgs[t.msg.sessionId].splice(i,1,t.data)}))},SET_SYSMSGS:function(e,t){!Array.isArray(t)&&"deleteMsg"==t.type&&e.msgs[t.msg.sessionId]&&e.msgs[t.msg.sessionId].forEach((function(n,i){n.idServer==t.deletedIdServer&&(e.msgs[t.msg.sessionId].splice(i,1),nimTool.sendTipMsg(t.msg,e))}));var n=Array.isArray(t)?t:[t],i=n.filter((function(e){return!e.type&&"deleteMsg"==e.type}));if(i.length>0){window.nim.markSysMsgRead({sysMsgs:i,done:function(e,t){}});var r=i.map((function(e){return e.idServer}));window.nim.deleteLocalSysMsg({idServer:r,done:function(e,t){}})}e.sysMsgs=window.nim.mergeSysMsgs(e.sysMsgs,t)},updatwSysMsgUnread:function(e,t){e.sysMsgUnread=t},updatwCustomSysMsgs:function(e,t){var n=e.customSysMsgs;Array.isArray(t)?n=n.concat(t):n.push(t),e.customSysMsgs=n},SET_SESSION:function(e,t){e.session=window.nim.mergeSessions(e.session,t)},UPDATE_SESSION:function(e,t){var n="";e.session.forEach((function(e,i){e.id==t.id&&(n=i)})),""!==n?e.session.splice(n,1,t):e.session.push(t)},DELETE_SESSION:function(e,t){e.session.forEach((function(n,i){n.id==t&&e.session.splice(i,1)}))},updateNimState:function(e,t){e.nimState=t},SETTOUSER:function(e,t){window.nim&&window.nim.setCurrSession(t),e.toUser=t},SET_FRIENDS:function(e,t){e.friends=t},DELETE_FRIEND:function(e,t){var n=window.nim.cutFriendsByAccounts(e.friends,t);e.friends=Object.assign({},n)},DELETE_TEAM:function(e,t){var n=window.nim.mergeTeams(e.teams,t);n=window.nim.cutTeams(e.teams,t.invalid),e.teams=n},SET_TEAMS:function(e,t){Array.isArray(t)||(t=[t]),t=t.filter((function(e){return!!e})),t.forEach((function(e){void 0===e.validToCurrentUser&&(e.validToCurrentUser=!0)}));var n=window.nim.mergeTeams(e.teams,t);n=window.nim.cutTeams(n,t.invalid),e.teams=n},SET_IMUSERNAME:function(e,t){e.imUserName=t},SET_TEAMMENBER:function(e,t){var n=Object.assign({},e.teamMember);n[t.teamId]=t.menber,e.teamMember=n},updateCurrentItem:function(e,t){e.list[e.activeFormName].splice(e.selectIndex,1,t)},updateSelectIndex:function(e,t){e.selSubIndex=null,e.selectIndex=t},updateSelSubIndex:function(e,t){e.selSubIndex=t},updateCusIndex:function(e,t){e.curCusTableIndex=t},clearForm:function(e,t){t?D["MessageBox"].confirm("此操作将清空该表单中的内容, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectIndex=null,e.selSubIndex=null,e.list=Object.assign({},{default:[]}),e.formAttr=Oj,Object(D["Message"])({type:"success",message:"清空成功!"})})).catch((function(){Object(D["Message"])({type:"info",message:"已取消"})})):(e.selectIndex=null,e.selSubIndex=null,e.list=Object.assign({},{default:[]}),e.formAttr=Oj)},updateFormAttr:function(e,t){var n=Pj.cloneDeep(t);e.formAttr=n},deleteItemByIndex:function(e,t){var n=t.index,i=t.name;e.list[i].splice(n,1)},updateList:function(e,t){var n=Pj.cloneDeep(t.newList);e.list[t.name]=n,e.list=Object.assign({},e.list)},updateFormBuilder:function(e,t){var n=Pj.cloneDeep(t);e.formBuilder=n},updateActiveFormName:function(e,t){e.activeFormName=t},updateTitleArr:function(e,t){e.formAttr.title=t;var n=Pj.cloneDeep(formAttr);e.formAttr.title=n},UPDATAREFRESHLIST:function(e){e.refreshList=!e.refreshList}},getters:{getCurrentTitleArr:function(e){return e.formAttr.title},getUser:function(e){return e.user},menuList:function(e){return e.menuList},currentFormItem:function(e,t){if(null!=e.selSubIndex){var n,i,r=null!==e.selectIndex&&e.list[e.activeFormName]?e.list[e.activeFormName][e.selectIndex]:null;return r&&null!==r&&void 0!==r&&null!==(n=r.attrs)&&void 0!==n&&n.columns?null!==(i=r.attrs.columns[e.selSubIndex])&&void 0!==i&&i.content?(r.attrs.columns[e.selSubIndex].content["pid"]=e.list[e.activeFormName][e.selectIndex].field,r.attrs.columns[e.selSubIndex].content):(r.attrs.columns[e.selSubIndex]["pid"]=e.list[e.activeFormName][e.selectIndex].field,r.attrs.columns[e.selSubIndex]):null}return null!==e.selectIndex&&e.list[e.activeFormName]?e.list[e.activeFormName][e.selectIndex]:null}},actions:{setStoreInformation:function(e){return d(regeneratorRuntime.mark((function t(){var n,i,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.commit,t.next=3,B.getStoreInformation();case 3:i=t.sent,r=i.data.data,r&&""!==r.image&&(r.image=r.image.split(",")),n("updateStoreInformation",r);case 7:case"end":return t.stop()}}),t)})))()},setUser:function(e){var t=this;return d(regeneratorRuntime.mark((function n(){var i,r,o,a,s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=e.commit,n.next=3,q.getUserInfo();case 3:return r=n.sent,o=r.data.data,i("SET_USER",o),n.next=8,apiAuth.getAuthList();case 8:a=n.sent,s=a.data,0===s.code?i("SET_AUTH_USER",s.result):t.$message.error(s.msg);case 11:case"end":return n.stop()}}),n)})))()}}}),Yj=Ij;window.pending=[];window.pending,m.a.CancelToken;var Aj=JSON.parse(localStorage.getItem("env"))||{};m.a.defaults.timeout=5e4,m.a.defaults.baseURL=Aj.VUE_APP_APIUSER,m.a.interceptors.request.use((function(e){var t=C.cookieRead("token");return t&&(e.headers.Authorization="Bearer ".concat(t)),e}),(function(e){return Promise.reject(e)})),m.a.interceptors.response.use((function(e){return e}),(function(e){return e.response&&(666===e.response.data.code?(D["Message"].error(e.response.data.msg),Yj.commit("LOGIN_OUT")):D["Message"].error(e.response.data.msg)),{data:e.response?e.response.data:"error"}}));var Nj={get:function(e,t){return new Promise((function(n,i){m()({method:"get",params:t,url:e}).then((function(e){n(e)}))}))},getData:function(e,t,n){return new Promise((function(i,r){m()({method:"get",params:t,url:e,data:n}).then((function(e){i(e)}))}))},post:function(e,t){return new Promise((function(n,i){m()({method:"post",data:t,url:e}).then((function(e){n(e)}))}))},postParams:function(e,t){return new Promise((function(n,i){m()({method:"post",params:t,url:e}).then((function(e){n(e)}))}))},postHeaders:function(e,t,n){return new Promise((function(n,i){m()({method:"post",data:t,url:e,headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((function(e){n(e)}))}))},postData:function(e,t,n){return new Promise((function(i,r){m()({method:"post",params:t,url:e,data:n}).then((function(e){i(e)}))}))},postLogin:function(e,t){return new Promise((function(n,i){m()({method:"post",headers:{Authorization:"Basic Z2N0eDpnY3R4"},url:e,params:t}).then((function(e){n(e)}))}))},put:function(e,t){return new Promise((function(n,i){m()({method:"put",data:t,url:e}).then((function(e){n(e)}))}))},patch:function(e,t){return new Promise((function(n,i){m()({method:"patch",data:t,url:e}).then((function(e){n(e)}))}))},delete:function(e){return new Promise((function(t,n){m()({method:"delete",url:e}).then((function(e){t(e)}))}))},deleteParams:function(e,t){return new Promise((function(n,i){m()({method:"delete",url:e,data:t}).then((function(e){n(e)}))}))}},Hj=n("7c78"),Rj=n.n(Hj),Fj=JSON.parse(localStorage.getItem("env")),zj=Fj.VUE_APP_API+"/sgb-meta-design";Fj.VUE_APP_API,Fj.VUE_APP_QIGUAN;console.log(zj);var $j=function(){var e=d(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Nj.postHeaders("".concat(zj,"/v1/pc/process/addProcess"),Rj.a.stringify(t)));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Bj=function(){var e=d(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Nj.post("".concat(zj,"/v1/pc/process/addProcessV1"),t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Wj=function(){var e=d(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Nj.postHeaders("".concat(zj,"/v1/pc/process/updateProcess"),Rj.a.stringify(t)));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Vj=function(){var e=d(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Nj.post("".concat(zj,"/v1/pc/process/updateProcessV1"),t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Uj=function(){var e=d(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Nj.postHeaders("".concat(zj,"/v1/pc/process/updateOldProcessToNewProcess"),Rj.a.stringify(t)));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),qj=function(){var e=d(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Nj.post("".concat(zj,"/v1/pc/process/queryProcessByType"),t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Gj=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Nj.get("".concat(zj,"/v1/pc/process/directorLevelList")));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Kj=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.easyFlowVisible?n("div",[e.tools?n("el-row",[n("el-col",{staticClass:"right-plan",attrs:{span:24}},[n("div",{staticClass:"process-heard"},[e.queryName?[e.isEdit?n("div",[n("span",{staticClass:"process-title"},[e._v(e._s(e.queryName)+"流程")])]):n("div",[n("el-input",{attrs:{autofocus:"",placeholder:"请输入内容"},on:{blur:e.changeName},model:{value:e.conName,callback:function(t){e.conName=t},expression:"conName"}})],1)]:n("div"),n("div",[n("div",{staticClass:"switch"},[n("span",[e._v("是否开启审批:")]),n("el-switch",{model:{value:e.isFlg,callback:function(t){e.isFlg=t},expression:"isFlg"}})],1),n("el-button",{on:{click:e.cancal}},[e._v("取消")]),n("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保存")])],1)],2)])],1):e._e(),n("el-col",{attrs:{span:24}},[n("div",{staticClass:"container-process",attrs:{id:"flowContainer"}},[e._l(e.data.nodeList,(function(t,i){return["addCondition"!==t.item.type?n("flow-node",{key:i,ref:"flowNode",refInFor:!0,attrs:{node:t.item,level:t.level},on:{deleteNode:e.deleteNode,changeNodeSite:e.changeNodeSite,nodeRightMenu:e.nodeRightMenu,editNode:e.editNode,showForm:e.showForm,changeName:e.changeNodeName}}):n("div",{key:t.item.id+"_add",staticClass:"add-condition",style:{top:t.item.top,left:t.item.left},attrs:{id:"flowchartWindow"+t.item.id},on:{click:function(t){return e.addExtraCondition(t)}}},[e._v("\n 添加条件\n ")])]})),n("flow-node-condition",{directives:[{name:"show",rawName:"v-show",value:e.conditionVisible,expression:"conditionVisible"}],ref:"conditionForm",attrs:{formData:e.connection,title:e.title},on:{edit:e.editName,save:e.setCondition,cancal:function(t){e.conditionVisible=!1}}}),e.showAddNode?n("add-node-box",{attrs:{info:e.addNodeInfo},on:{close:function(){e.showAddNode=!1},addNode:e.addNode}}):e._e()],2)]),n("approver-selector",{ref:"approverSelector",attrs:{approverList:e.approverSelectorData.approverList,notifierList:e.approverSelectorData.notifierList},on:{save:e.setNode},model:{value:e.selectorVisible,callback:function(t){e.selectorVisible=t},expression:"selectorVisible"}})],1):e._e()},Jj=[];function Xj(e){if(Array.isArray(e))return e}n("3f01"),n("4fa8"),n("b4a0"),n("7f6e"),n("1ab5");function Zj(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done);a=!0)if(o.push(i.value),t&&o.length===t)break}catch(l){s=!0,r=l}finally{try{a||null==n["return"]||n["return"]()}finally{if(s)throw r}}return o}}n("952e"),n("f73d");function Qj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function eO(e,t){if(e){if("string"===typeof e)return Qj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qj(e,t):void 0}}function tO(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function nO(e,t){return Xj(e)||Zj(e,t)||eO(e,t)||tO()}n("2c48"),n("e59e"),n("5b91"),n("f736");var iO=n("46f3"),rO=n.n(iO),oO=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.update?n("div",{ref:"node",staticClass:"plannode",style:e.nodeContainerStyle,attrs:{id:"flowchartWindow"+e.node.id},on:{mouseenter:function(t){e.mouseEnter=!0},mouseleave:function(t){e.mouseEnter=!1},mouseup:e.changeNodePosition}},[[n("div",{staticClass:"flow-node-header",class:e.mouseEnter?"point":""},["start"!==e.node.type&&"end"!==e.node.type?n("p",{staticClass:"flow-name"},[e.isEdit?n("el-input",{ref:"editInput",on:{blur:e.handleBlur},model:{value:e.editName,callback:function(t){e.editName="string"===typeof t?t.trim():t},expression:"editName"}}):n("span",{staticClass:"hand-icon",on:{click:function(t){return t.stopPropagation(),e.editNodeName.apply(null,arguments)}}},[e._v(e._s(e.node.name))])],1):n("p",{staticClass:"flow-name"},[n("span",[e._v(e._s(e.node.name))])]),"start"!==e.node.type&&"end"!==e.node.type?n("div",{staticClass:"flow-node-operate"},[n("a",{attrs:{href:"#"},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.deleteNode(e.node)},mousemove:function(e){return e.stopPropagation(),e.preventDefault(),function(){}.apply(null,arguments)}}},[n("i",{staticClass:"el-icon-close"})]),e._v("\n  \n ")]):e._e()]),"condition"==e.node.type?n("div",{staticClass:"flow-node-body",attrs:{title:e.node.desc?e.node.desc:""},on:{click:function(t){return e.showForm(e.node)}}},[e._v("\n "+e._s(e.node.desc?e.node.desc:"请设置条件")+"\n ")]):"ccTask"==e.node.type?n("div",{staticClass:"flow-node-body",on:{click:function(t){return e.showForm(e.node)}}},[e.node.notifiers&&e.node.notifiers.length?n("span",[e._l(e.node.notifiers,(function(t,i){return n("i",{key:i,staticStyle:{padding:"0 5px"}},[e._v(e._s(t.userName))])})),e._v("\n (抄送"+e._s(e.node.notifiers.length)+"人)\n ")],2):n("span",[e._v("请选择抄送人")])]):"userTask"==e.node.type?n("div",{staticClass:"flow-node-body",on:{click:function(t){return e.showForm(e.node)}}},[n("div"),e.node.directorType&&2==e.node.directorType.type?n("span",[e._v("\n "+e._s(e.node.approvers&&e.node.directorType.type?e.node.approvers&&e.node.approvers[0].directorName:"")+"\n "+e._s("2"==e.node.approverType?"或签":"3"==e.node.approverType?"依次审批":"会签")+"\n ")]):n("span",[e.node.approvers&&e.node.approvers.length>0?n("span",e._l(e.node.approvers,(function(t,i){return n("i",{key:i,staticStyle:{padding:"0 5px"}},[e._v(e._s(t.userName))])})),0):e._e(),e._v("\n ("+e._s(e.node.approvers&&e.node.approvers.length>0?1==e.node.approvers.length?e.node.approvers[0].userName:e.node.approvers.length+"人":"请选择审批人")+")\n "),e.node.approvers&&e.node.approvers.length>1?n("span",[e._v(e._s("2"==e.node.approverType?"或签":"3"==e.node.approverType?"依次审批":"会签"))]):e._e()])]):n("div",{staticClass:"flow-node-body"})]],2):e._e()},aO=[],sO=(n("cee7"),{props:{node:Object,level:Number},data:function(){return{mouseEnter:!1,isEdit:!1,editName:"",update:!0}},computed:{nodeContainerStyle:function(){return{position:"absolute",width:"addCondition"==this.node.type?"auto":"200px",top:this.node.top,left:this.node.left,boxShadow:this.mouseEnter?"#66a6e0 0px 0px 12px 0px":"",backgroundColor:"transparent"}},nodeIcoClass:function(){var e={};return e[this.node.ico]=!0,e["flow-node-drag"]=!0,e}},methods:{refreshFlowItem:function(){var e=this;this.update=!1,this.$nextTick((function(){e.update=!0}))},deleteNode:function(e){},editNode:function(){},changeNodePosition:function(){var e=this;if(this.node.left!=this.$refs.node.style.left||this.node.top!=this.$refs.node.style.top)return setTimeout((function(){e.$emit("changeNodeSite",{id:e.node.id,left:e.$refs.node.style.left,top:e.$refs.node.style.top})}),100),!1},editNodeName:function(){var e=this;this.editName=this.node.name,this.isEdit=!0,this.$nextTick((function(){e.$refs.editInput.$refs.input.focus()}))},handleBlur:function(){this.editName!==this.node.name&&""!=this.editName&&this.$emit("changeName",{node:this.node,name:this.editName}),this.isEdit=!1},showForm:function(e){},addCondition:function(){}}}),lO=sO;n("027f");function uO(e,t,n,i,r,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}var cO,dO=uO(lO,oO,aO,!1,null,null,null),hO=dO.exports,fO=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-drawer",{staticClass:"nodeConditionModal",attrs:{visible:e.nodeConditionModal,direction:"rtl",wrapperClosable:!1,"show-close":!1,"close-on-press-escape":!1,"destroy-on-close":"","append-to-body":!0}},[n("div",{staticClass:"wrapper",on:{click:function(e){e.stopPropagation()}}},[n("div",{staticClass:"title"},[e.isEdit?n("div",[n("span",[e._v(e._s(e.title))]),n("i",{staticClass:"el-icon-edit",on:{click:function(t){t.stopPropagation(),e.isEdit=!1}}})]):n("div",[n("el-input",{attrs:{autofocus:"",placeholder:"请输入内容"},on:{blur:e.changeName},model:{value:e.conName,callback:function(t){e.conName=t},expression:"conName"}})],1)]),n("div",{staticClass:"content"},[n("el-form",{ref:"form",staticClass:"form-box",attrs:{model:e.form,"label-width":"80px"}},e._l(e.formConfig,(function(t,i){return n("div",{key:i},["checkbox"==t.ele?[n("el-form-item",{attrs:{label:t.name+": "}},[n("el-checkbox-group",{on:{change:function(n){return e.handlerChange(n,t)}},model:{value:e.form[t.variable].value,callback:function(n){e.$set(e.form[t.variable],"value",n)},expression:"form[item.variable].value"}},e._l(t.data,(function(t,i){return n("el-checkbox",{key:i,attrs:{label:t.no}},[e._v(e._s(t.name))])})),1)],1)]:e._e(),"input"==t.ele?[n("el-form-item",{attrs:{label:t.name+": ",rules:{validator:e.validatePass,trigger:"change",message:"不能小于0"},prop:t.variable}},[n("el-row",{attrs:{gutter:4}},[n("el-col",{attrs:{span:11}},[n("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form[t.variable].opt,callback:function(n){e.$set(e.form[t.variable],"opt",n)},expression:"form[item.variable].opt"}},e._l(e.optOption,(function(e){return n("el-option",{key:e.value,attrs:{label:e.labal,value:e.value}})})),1)],1),n("el-col",{attrs:{span:11}},[n("el-input",{model:{value:e.form[t.variable].value,callback:function(n){e.$set(e.form[t.variable],"value",n)},expression:"form[item.variable].value"}})],1)],1)],1)]:e._e(),"sponsor"==t.ele?[n("el-form-item",{attrs:{label:t.name+": "}},[n("div",[e.form[t.variable].sponsors&&e.form[t.variable].sponsors.length>0?[n("div",{staticClass:"selector",on:{click:function(t){e.showSelector=!0}}},e._l(e.form[t.variable].sponsors,(function(i){return n("el-tag",{key:i.userId,attrs:{closable:""},on:{close:function(n){return e.removeTag(t.variable,i)}}},[e._v("\n "+e._s(i.userName)+"\n ")])})),1)]:[n("el-input",{attrs:{placeholder:"请选择具体人员"},on:{focus:function(t){e.showSelector=!0}}})]],2)])]:e._e(),"spoSxy"==t.ele?[n("el-form-item",{attrs:{label:t.name+": "}},[n("div",[e.form[t.variable].sponsors&&e.form[t.variable].sponsors.length>0?[n("div",{staticClass:"selector",on:{click:function(n){return e.showSxyL(t.variable)}}},e._l(e.form[t.variable].sponsors,(function(i){return n("el-tag",{key:i[t.variable],attrs:{closable:""},on:{close:function(n){return e.removeTag(t.variable,i)}}},[e._v("\n "+e._s(i.userName)+"\n ")])})),1)]:[n("el-input",{attrs:{placeholder:"请选择人员"},on:{focus:function(n){return e.showSxyL(t.variable)}}})]],2)])]:e._e(),"radio"==t.ele?[n("el-form-item",{attrs:{label:t.name+": "}},[n("div",[n("el-radio-group",{model:{value:e.form[t.variable].value,callback:function(n){e.$set(e.form[t.variable],"value",n)},expression:"form[item.variable].value"}},[e._l(t.data,(function(t,i){return[n("el-radio",{key:i,attrs:{label:t.value}},[e._v(e._s(t.name))])]}))],2)],1)])]:e._e()],2)})),0),n("el-form",{staticClass:"userHandle"},[n("el-form-item",[n("el-button",{attrs:{type:"primary",size:"medium"},on:{click:function(t){return t.stopPropagation(),e.addCondition.apply(null,arguments)}}},[e._v("添加条件")]),n("span",{staticClass:"mar_l20"},[e._v("还有 "+e._s(e.able)+" 个可用条件")])],1)],1)],1),n("div",{staticClass:"btn-group"},[n("el-button",{on:{click:function(t){return t.stopPropagation(),e.nodeConditionHandler.apply(null,arguments)}}},[e._v("取消")]),n("el-button",{attrs:{type:"primary"},on:{click:function(t){return t.stopPropagation(),e.save.apply(null,arguments)}}},[e._v("保存")])],1),n("el-dialog",{staticClass:"conditionSelect",attrs:{title:"选择条件",visible:e.isShow,width:"30%",modal:!1,"before-close":e.handleClose},on:{"update:visible":function(t){e.isShow=t}}},[n("span",[e._v("请选择用来区分审批流程的条件字段")]),n("el-checkbox-group",{staticClass:"mar_t20",model:{value:e.condition,callback:function(t){e.condition=t},expression:"condition"}},e._l(e.configList,(function(t,i){return n("el-checkbox",{key:i,attrs:{label:t.variable}},[e._v(e._s(t.name))])})),1),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){return t.stopPropagation(),e.cancel.apply(null,arguments)}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:function(t){return t.stopPropagation(),e.determine.apply(null,arguments)}}},[e._v("确 定")])],1)],1),e.showSelector?n("MemberSelection",{attrs:{title:"选择发起人",directClose:!1,formData:e.selectData,memberNo:e.memberNo},on:{close:function(t){e.showSelector=!1},save:e.checkMenber}}):e._e(),e.showSxytor?n("MemberSelection",{attrs:{title:"选择申请人",directClose:!1,formData:e.selSxytData,memberNo:e.memSxyrNo},on:{close:function(t){e.showSxytor=!1},save:e.checkSxyber}}):e._e()],1)])},pO=[];function mO(e){return mO="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mO(e)}function vO(e){if(Array.isArray(e))return Qj(e)}function gO(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function yO(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function bO(e){return vO(e)||gO(e)||eO(e)||yO()}var _O=JSON.parse(localStorage.getItem("env")),wO=_O.VUE_APP_APIUSER,xO="https://api.sgbwl.com/sgb-app",kO=_O.VUE_APP_APIUSER,MO=_O.VUE_APP_API+_O.VUE_APP_QIGUAN,SO=(cO={permitGroupName:function(e){return Nj.post(wO+"/v1/api/management/attendance/permitGroupName",e)},attendance:function(e){return Nj.post(wO+"/v1/api/management/attendance/list",e)},getQueryById:function(e){return Nj.post(wO+"/v1/api/management/attendance/queryById",e)},deleteRule:function(e){return Nj.post(wO+"/v1/api/management/attendance/delete",e)},changeRule:function(e){return Nj.post(wO+"/v1/api/management/attendance/modify",e)},addRule:function(e){return Nj.post(wO+"/v1/api/management/attendance/save",e)},clock:function(e){return Nj.post(wO+"/v1/api/management/clock",e)},getUserList:function(e){return Nj.post(wO+"/v1/api/management/attendance/getUserList",e)},addSave:function(e){return Nj.post(wO+"/v1/api/management/clock/save",e)},deleteSave:function(e){return Nj.post(wO+"/v1/api/management/clock/delete",e)},changeSave:function(e){return Nj.post(wO+"/v1/api/management/clock/modify",e)},detailsSave:function(e){return Nj.post(wO+"/v1/api/management/clock/queryById",e)},permitConfigName:function(e){return Nj.post(wO+"/v1/api/management/clock/permitConfigName",e)},getClockInList:function(e){return Nj.post(wO+"/v1/api/management/attendanceStatistics/list",e)},saveOutInfo:function(e,t){return Nj.post(xO+"/v1/web/approver/saveOutInfo?userNo="+t,e)},getOutApplyList:function(e){return Nj.post(kO+"/v1/api/management/apply/getOutApplyList",e)},savePatchInfo:function(e,t){return Nj.post(xO+"/v1/web/approver/savePatchInfo?userNo="+t,e)},saveLeaveInfo:function(e,t){return Nj.post(xO+"/v1/web/approver/saveLeaveInfo?userNo="+t,e)},leaveType:function(e){return Nj.post(xO+"/v1/web/approver/leaveType?userNo="+e)},getVacationList:function(e){return Nj.get(wO+"/v1/api/management/holidayLeave/getHolidayList",e)},saveLoanInfo:function(e,t){return Nj.post(xO+"/v1/web/approver/saveLoanInfo?userNo="+t,e)},getOutDetail:function(e,t){return Nj.post(xO+"/v1/web/approver/outDetail?userNo="+t+"&applyNo="+e)},getPatchDetail:function(e,t){return Nj.post(xO+"/v1/web/approver/patchDetail?userNo="+t+"&applyNo="+e)},saveBusinessTrip:function(e,t){return Nj.post(xO+"/v1/web/approver/saveBusinessTrip?userNo="+t,e)},detailBusinessTrip:function(e,t){return Nj.post(xO+"/v1/web/approver/travelDetail?userNo="+t+"&applyNo="+e)},loanDetail:function(e,t){return Nj.post(xO+"/v1/web/approver/loanDetail?userNo="+t+"&applyNo="+e)},getLoanApplyList:function(e){return Nj.post(kO+"/v1/api/management/apply/getLoanApplyList",e)},getLeaveDetail:function(e,t){return Nj.post(xO+"/v1/web/approver/leaveDetail?userNo="+t+"&applyNo="+e)},getLeaveApplyList:function(e){return Nj.post(kO+"/v1/api/management/apply/getLeaveApplyList",e)},getAuditDetailForAudit:function(e){return Nj.post(kO+"/v2/api/audit/getAuditDetailForAudit",e)},getApplierInfo:function(e){return Nj.post(xO+"/v1/web/approver/applierInfo?userNo="+e)},approvalAudit:function(e){return Nj.post("".concat(xO,"/v1/web/approver/approvalAudit?resourceToken=").concat(e.resourceToken,"&userNo=").concat(e.userNo,"&reason=").concat(e.reason,"&result=").concat(e.result,"&applyNo=").concat(e.applyNo))},getEvectionList:function(e){return Nj.post(kO+"/v1/api/management/apply/getTravelApplyList",e)},getApplicantList:function(e){return Nj.get(kO+"/v1/api/management/apply/getUserByName",e)},getPatchApplyList:function(e){return Nj.post(kO+"/v1/api/management/apply/getPatchApplyList",e)},savePatchCardInfo:function(e){return Nj.post(MO+"/v1/app/webMeeting/savePatchInfo",e)}},o(cO,"savePatchCardInfo",(function(e){return Nj.post(MO+"/v1/app/webMeeting/savePatchInfo",e)})),o(cO,"getAssetCategoryList",(function(){return Nj.get("".concat(wO,"/v1/api/assetType/assetTree"))})),cO),CO=SO,DO=JSON.parse(localStorage.getItem("env")),LO=DO.VUE_APP_APIUSER,TO=DO.VUE_APP_API,EO=DO.VUE_APP_EMTERPRISE,PO={saveNotice:function(e){return Nj.post(LO+"/v1/api/notice/add",e)},GetNoticeType:function(){return Nj.get(LO+"/v1/api/notice/getType")},GetPublisher:function(){return Nj.get("api/user/getCurrentUserInfo")},GetCompany:function(){return Nj.get(TO+EO+"/v1/organization/getCompany")},GetDepartment:function(e){return Nj.get(TO+EO+"/v1/organization/getDep/".concat(e))},GetNoticeList:function(e){return Nj.post(LO+"/v1/api/notice/queryPage",e)},deleteNotices:function(e){return Nj.delete(LO+"/v1/api/notice/deleteById/"+e)},GetNoticeDetails:function(e){return Nj.get(LO+"/v1/api/notice/queryById/"+e)},GetDocumentType:function(){return Nj.get(LO+"/v1/api/officialDocument/typeList")}},jO=PO,OO=function(){var e=d(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Nj.get("v1/organization/getCompany",t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),IO=JSON.parse(localStorage.getItem("env")),YO=IO.VUE_APP_TEAM,AO=YO,NO=function(e,t){return Nj.get(AO+"".concat(e),t)},HO=function(){var e=d(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Nj.post(AO+"".concat(t),n));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),RO=function(){var e=d(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Nj.delete(AO+"".concat(t),n));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),FO={get:NO,post:HO,del:RO},zO=JSON.parse(localStorage.getItem("env")),$O=(zO.VUE_APP_APIUSER,JSON.parse(localStorage.getItem("env"))),BO=$O.VUE_APP_API,WO=$O.VUE_APP_EMTERPRISE,VO=$O.VUE_APP_QIGUAN,UO=$O.VUE_APP_AUTH,qO={list:function(){return Nj.get(BO+WO+"/v1/organization/getOrganization")},companylist:function(){return Nj.get(BO+WO+"/v1/organization/getCompany")},deplist:function(e){return Nj.get(BO+WO+"/v1/organization/getDep/".concat(e))},getId:function(e){return Nj.get(BO+WO+"/v1/organization/getOrganization/".concat(e))},save:function(e){return Nj.post(BO+WO+"/v1/organization/saveOrganization",e)},setSort:function(e){return Nj.post(BO+WO+"/v1/organization/setSort",e)},setRoleSort:function(e){return Nj.post(BO+WO+"/v1/organization/setRoleSort",e)},del:function(e){return Nj.delete(BO+WO+"/v1/organization/delOrg/".concat(e))},delRole:function(e){return Nj.delete(BO+WO+"/v1/organization/delRole/".concat(e))},getRole:function(){return Nj.get(BO+WO+"/v1/organization/getRole")},saveRole:function(e){return Nj.post(BO+WO+"/v1/organization/saveRole",e)},getUser:function(e){return Nj.post(BO+WO+"/v1/organization/getUser",e)},getUserByParentId:function(e){return Nj.get(BO+WO+"/v1/organization/getUserByParentId/".concat(e))},setUserSort:function(e){return Nj.post(BO+WO+"/v1/organization/setUserSort",e)},saveContacts:function(e){return Nj.post(BO+WO+"/v1/organization/saveContacts",e)},openIm:function(e){return Nj.get(BO+VO+"/v1/app/common/openIm?mobile="+e)},getUserByPhone:function(e){return Nj.post(BO+WO+"/v1/organization/getUserByPhone",e)},delUser:function(e){return Nj.post(BO+WO+"/v1/organization/delUser",e)},getRoleId:function(e){return Nj.get(BO+WO+"/v1/organization/getRoleById/".concat(e))},getMenu:function(){return Nj.get(BO+UO+"/v1/sys/menu/findByMark/company")},saveAuth:function(e){return Nj.post(BO+WO+"/v1/organization/saveManagementAuth",e)},getAuth:function(e){return Nj.get(BO+WO+"/v1/organization/getAuth/".concat(e))},auth:function(e,t){return Nj.get(BO+WO+"/v1/organization/auth/".concat(e,"/").concat(t))},getCompanyByUser:function(e){return Nj.post(BO+WO+"/v1/organization/getOrganizationCompanyByUser",e)},getDepByCompany:function(e){return Nj.post(BO+WO+"/v1/organization/getOrganizationDepByUserAndParentId",e)},getUserByCompany:function(e){return Nj.post(BO+WO+"/v1/organization/getAllUserByCompany",e)}},GO=qO,KO={addPosition:function(e){return Nj.post("/v1/rankposition/createNewPosition",e)},getPosition:function(e){return Nj.get("/v1/rankposition/getAllRankPosition",e)},delPosition:function(e){return Nj.get("/v1/rankposition/deleteRankPosition?id=".concat(e))},editPosition:function(e){return Nj.get("/v1/rankposition/editRankPosition",e)},getRank:function(){return Nj.get("/v1/rankmanagement/getAllRankPosition")},addRank:function(e){return Nj.post("/v1/rankmanagement/createNewRank",e)},getRankList:function(e){return Nj.get("/v1/rankmanagement/getAllRank",e)},delRank:function(e){return Nj.get("/v1/rankmanagement/deleteRank?id=".concat(e))},editRank:function(e){return Nj.post("/v1/rankmanagement/editRank",e)},pageRank:function(e){return Nj.get("/v1/rankmanagement/getRankImgById?id=".concat(e))}},JO=KO,XO=(n("14b6"),function(){var e=d(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=[{name:"请假类型",variable:"type",ele:"checkbox",data:[]},{name:"时长(天)",variable:"duration",ele:"input"}],e.next=3,CO.getVacationList({member:Yj.state.user.no});case 3:return n=e.sent,"200"==n.data.code&&(t[0].data=n.data.data.map((function(e){return{no:e.no,name:e.holidayName}}))),e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),ZO=function(){var e=d(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=[{name:"资产分类",variable:"assetTypeJp",ele:"checkbox",data:[]}],e.next=3,CO.getAssetCategoryList();case 3:return n=e.sent,200===n.data.code&&(t[0].data=n.data.data[0].subList),e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),QO=function(){var e=d(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=[{name:"耗材分类",variable:"matericalTypeJp",ele:"checkbox",data:[]}],e.next=3,CO.getAssetCategoryList();case 3:return n=e.sent,200===n.data.code&&(console.log(n.data.data[0].subList.subList),[],t[0].data=n.data.data[1].subList),e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),eI=function(){var e=d(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=[{name:"时长(天)",variable:"timeLength",ele:"input"}],e.abrupt("return",t);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),tI=function(){var e=d(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=[{name:"时长(天)",variable:"duration",ele:"input"}],e.abrupt("return",t);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),nI=function(){var e=d(regeneratorRuntime.mark((function e(){var t,n,i,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=[{name:"申请单位",variable:"accountSubject",ele:"checkbox",data:[]},{name:"工程类型",variable:"type",ele:"checkbox",data:[]},{name:"资金来源",variable:"fundSource",ele:"checkbox",data:iI},{name:"项目造价",variable:"price",ele:"input"},{name:"经营类型",variable:"businessType",ele:"checkbox",data:[{name:"合作管理",no:"1"},{name:"组织经营",no:"2"}]}],e.next=3,OO();case 3:return n=e.sent,t[0].data=bO(n.data.data),e.next=7,FO.get("/sysTeamCategory/findCategoryListTree");case 7:return i=e.sent,r=i.data,t[1].data=r.data,e.abrupt("return",t);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),iI=[{name:"国拨资金",no:"国拨资金"},{name:"业主自筹资金",no:"业主自筹资金"},{name:"国拨和自筹资金",no:"国拨和自筹资金"},{name:"专项资金",no:"专项资金"},{name:"市场回款",no:"市场回款"},{name:"银行融资",no:"银行融资"},{name:"援疆资金",no:"援疆资金"},{name:"全额中央预算内资金",no:"全额中央预算内资金"},{name:"扶贫资金",no:"扶贫资金"},{name:"政府发债资金",no:"政府发债资金"},{name:"财政资金",no:"财政资金"},{name:"中央内资金",no:"中央内资金"}],rI=function(){var e=d(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return function(){var e=d(regeneratorRuntime.mark((function e(n,i){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:r=[],n.length>0&&n.forEach(function(){var e=d(regeneratorRuntime.mark((function e(t){var n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,GO.deplist(t);case 2:n=e.sent,200==n.data.code&&(i=oI(n.data.data,"name","id"),r.push.apply(r,bO(i)));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),t[1].data=r,i&&(i.form.departmentNo.value=i.form.departmentNo.value.filter((function(e){var t=r.filter((function(e){e.no}));return t.length>0})));case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),t=[{name:"申请人",variable:"proposer",ele:"spoSxy"}],e.abrupt("return",t);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();function oI(e,t,n){var i=[];return e.forEach((function(e){if(i.push({name:e[t],no:e[n]}),e.children){var r=oI(e.children,t,n);i.push.apply(i,bO(r))}})),console.log(i),i}var aI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[{name:"申请人",variable:"proposer",ele:"spoSxy"}]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),sI=function(){var e=d(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={pageNum:1,pageSize:20},n=[{name:"职位",variable:"departmentRank",ele:"checkbox",data:[]}],e.next=4,JO.getPosition(t);case 4:return i=e.sent,"200"==i.data.code&&(n[0].data=i.data.data.content.map((function(e){return{no:e.id,name:e.rankName}}))),e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),lI=function(){var e=d(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={pageNum:1,pageSize:20},n=[{name:"职位",variable:"departmentRank",ele:"checkbox",data:[]},{name:"是否调薪",variable:"isAdjustedSalary",ele:"radio",data:[{value:"1",name:"是"},{value:"0",name:"否"}]}],e.next=4,JO.getPosition(t);case 4:return i=e.sent,"200"==i.data.code&&(n[0].data=i.data.data.content.map((function(e){return{no:e.id,name:e.rankName}}))),e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),uI=function(){var e=d(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=[{name:"公告类型",variable:"noticeType",ele:"checkbox",data:[]}],e.next=3,jO.GetNoticeType();case 3:return n=e.sent,200==n.data.code&&(t[0].data=n.data.data.map((function(e){return{no:e.key,name:e.value}}))),e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),cI=function(){var e=d(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=[{name:"公文类型",variable:"documentType",ele:"checkbox",data:[]}],e.next=4,jO.GetDocumentType();case 4:return n=e.sent,200==n.data.code&&(t[0].data=n.data.data.map((function(e){return{no:e.key,name:e.value}}))),e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),dI=function(){var e=d(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={pageNum:1,pageSize:20},n=[{name:"调入职位",variable:"departmentRank",ele:"checkbox",data:[]}],e.next=4,JO.getPosition(t);case 4:return i=e.sent,"200"==i.data.code&&(n[0].data=i.data.data.content.map((function(e){return{no:e.id,name:e.rankName}}))),e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),hI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),fI=function(){var e=d(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={pageNum:1,pageSize:20},n=[{name:"职位",variable:"departmentRank",ele:"checkbox",data:[]}],e.next=4,JO.getPosition(t);case 4:return i=e.sent,"200"==i.data.code&&(n[0].data=i.data.data.content.map((function(e){return{no:e.id,name:e.rankName}}))),e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),pI=function(){var e=d(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={pageNum:1,pageSize:20},n=[{name:"职位",variable:"departmentRank",ele:"checkbox",data:[]}],e.next=4,JO.getPosition(t);case 4:return i=e.sent,"200"==i.data.code&&(n[0].data=i.data.data.content.map((function(e){return{no:e.id,name:e.rankName}}))),e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),mI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[{name:"借款金额",variable:"loanAmount",ele:"input"}]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),vI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),gI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),yI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),bI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),_I=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),wI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),xI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),kI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),MI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),SI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),CI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),DI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),LI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),TI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),EI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),PI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),jI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),OI=function(){var e=d(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),II=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dialog",{attrs:{title:e.title,visible:e.dialogVisible,width:"600px","append-to-body":"","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[n("div",{staticClass:"wrapper"},[n("div",{staticClass:"plan"},[n("div",{staticClass:"plan-title"},[e._v("选择:")]),n("div",{staticClass:"tab"},[""==e.onlyType?n("div",{staticClass:"tab-title"},[n("span",{class:1==e.type?"active":"",on:{click:function(t){return e.changeList("type",1)}}},[e._v("角色")]),n("span",{class:2==e.type?"active":"",on:{click:function(t){return e.changeList("type",2)}}},[e._v("成员")])]):e._e(),n("div",{staticClass:"approvers"},[n("div",[n("el-input",{directives:[{name:"show",rawName:"v-show",value:1==e.type,expression:"type == 1"}],attrs:{placeholder:"输入角色名",clearable:""},model:{value:e.filterApprovers,callback:function(t){e.filterApprovers=t},expression:"filterApprovers"}}),n("el-input",{directives:[{name:"show",rawName:"v-show",value:2==e.type,expression:"type == 2"}],attrs:{placeholder:"输入姓名",clearable:""},model:{value:e.filterNotifiers,callback:function(t){e.filterNotifiers=t},expression:"filterNotifiers"}}),n("el-tree",{ref:"approvers",class:""!=e.onlyType?"filter-tree":"",attrs:{load:e.loadNode,lazy:"",props:e.defaultProps,"default-expand-all":"","show-checkbox":"","node-key":"id","default-checked-keys":e.defaultCheck,"filter-node-method":e.filterNode},on:{check:e.handleCheckChange1}})],1)])])]),n("div",{staticClass:"plan",attrs:{span:11}},[n("div",{staticClass:"plan-title"},[e._v("已选:")]),n("div",[n("div",{staticClass:"checklist"},[e.roleList.length>0?n("el-row",[n("el-col",{attrs:{span:6}},[n("span",[e._v("角色:")])]),n("el-col",{attrs:{span:16}},e._l(e.roleList,(function(t,i){return n("div",{key:i,staticClass:"check-list"},[n("span",[e._v(e._s(t.name))]),n("i",{staticClass:"el-icon-circle-close",on:{click:function(n){return e.removeList("roleList",t)}}})])})),0)],1):e._e(),e.userList.length>0?n("el-row",[n("el-col",{attrs:{span:6}},[n("span",[e._v("成员:")])]),n("el-col",{attrs:{span:16}},e._l(e.userList,(function(t,i){return n("div",{key:i,staticClass:"check-list"},[n("span",[e._v(e._s(t.name||t.userName))]),n("i",{staticClass:"el-icon-circle-close",on:{click:function(n){return e.removeList("userList",t)}}})])})),0)],1):e._e()],1)])])]),n("div",[e._t("default")],2),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:e.handleClose}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")])],1)])},YI=[],AI=JSON.parse(localStorage.getItem("env")),NI=AI.VUE_APP_API,HI=AI.VUE_APP_EMTERPRISE,RI=AI.VUE_APP_QIGUAN,FI={getOrgsData:function(){return Nj.get(NI+HI+"/v1/organization/getNewOrganizationAndContacts")},list:function(){return Nj.get(NI+HI+"/v1/organization/getOrganizationAndContacts")},companylist:function(){return Nj.get(NI+HI+"/v1/organization/getCompany")},deplist:function(e){return Nj.get(NI+HI+"/v1/organization/getDep/".concat(e))},getId:function(e){return Nj.get(NI+HI+"/v1/organization/getOrganization/".concat(e))},save:function(e){return Nj.post(NI+HI+"/v1/organization/saveOrganization",e)},setSort:function(e){return Nj.post(NI+HI+"/v1/organization/setSort",e)},setRoleSort:function(e){return Nj.post(NI+HI+"/v1/organization/setRoleSort",e)},del:function(e){return Nj.delete(NI+HI+"/v1/organization/delOrg/".concat(e))},delRole:function(e){return Nj.delete(NI+HI+"/v1/organization/delRole/".concat(e))},getRole:function(){return Nj.get(NI+HI+"/v1/organization/getRole")},saveRole:function(e){return Nj.post(NI+HI+"/v1/organization/saveRole",e)},getUser:function(e){return Nj.post(NI+HI+"/v1/organization/getUser",e)},getUserByParentId:function(e){return Nj.get(NI+HI+"/v1/organization/getUserByParentId/".concat(e))},setUserSort:function(e){return Nj.post(NI+HI+"/v1/organization/setUserSort",e)},saveContacts:function(e){return Nj.post(NI+HI+"/v1/organization/saveContacts",e)},openIm:function(e){return Nj.get(NI+RI+"/v1/app/common/openIm?mobile="+e)},getUserByPhone:function(e){return Nj.post(NI+HI+"/v1/organization/getUserByPhone",e)},delUser:function(e){return Nj.post(NI+HI+"/v1/organization/delUser",e)},getRoleId:function(e){return Nj.get(NI+HI+"/v1/organization/getRoleById/".concat(e))},getMenu:function(){return Nj.get(NI+HI+"/v1/organization/getMenu")},saveAuth:function(e){return Nj.post(NI+HI+"/v1/organization/saveManagementAuth",e)},getAuth:function(e){return Nj.get(NI+HI+"/v1/organization/getAuth/".concat(e))},auth:function(e,t){return Nj.get(NI+HI+"/v1/organization/auth/".concat(e,"/").concat(t))},getCompanyByUser:function(e){return Nj.post(NI+HI+"/v1/organization/getOrganizationCompanyByUser",e)},getDepByCompany:function(e){return Nj.post(NI+HI+"/v1/organization/getOrganizationDepByUserAndParentId",e)},getUserByCompany:function(e){return Nj.post(NI+HI+"/v1/organization/getAllUserByCompany",e)}},zI=FI,$I={name:"",mixins:[],extends:{},components:{},props:{title:{type:String,default:"选择"},formData:{type:Object,default:function(){return{roleList:[],userList:[]}}},onlyType:{type:String,default:"2"},isRadio:{type:Boolean,default:!1},memberNo:{type:Array,default:function(){return[]}},directClose:{type:Boolean,default:!0}},data:function(){return{editChekcId:"",dialogVisible:!0,filterNotifiers:"",filterApprovers:"",type:"1",defaultProps:{children:"children",label:"name"},roleList:[],userList:[],defaultCheck:[]}},filters:{addPriceIcon:function(e){}},watch:{filterApprovers:function(e){this.$refs.approvers.filter(e)},filterNotifiers:function(e){this.$refs.approvers.filter(e)},formData:{immediate:!0,deep:!0,handler:function(e,t){var n=this;this.userList=e.userList,this.userList=e.userList?this.userList:[];for(var i={},r=0;r<e.roleList.length;r++)i[e.roleList[r].id]||(this.roleList.push(e.roleList[r]),i[e.roleList[r].id]=!0);console.log(this.roleList," newVal.roleList;"),this.$nextTick((function(){"2"==n.onlyType?n.defaultCheck=n.userList.length>0?n.userList.map((function(e){return e.id})):[]:n.defaultCheck=n.roleList.length>0?n.roleList.map((function(e){return e.id})):[]}))}},onlyType:{immediate:!0,handler:function(e,t){""!=e&&(this.type=e)}}},computed:{},methods:{handleClose:function(){this.roleList=[],this.userList=[],this.$emit("close")},save:function(){for(var e={roleList:this.roleList,userList:[]},t={},n=0;n<this.userList.length;n++)t[this.userList[n].id]||(e.userList.push(this.userList[n]),t[this.userList[n].id]=!0);this.$emit("save",e),this.directClose&&this.handleClose()},filterNode:function(e,t){return!e||-1!==t.name.indexOf(e)},handleCheckChange1:function(e,t){if(1==this.type)if(this.isRadio){var n=t.checkedKeys.indexOf(e.id)>-1;this.roleList=n?[e]:[],this.$refs.approvers.setCheckedNodes(this.roleList)}else{var i=this.$refs.approvers.getCheckedNodes().filter((function(e,t){return!(void 0!=e.type||void 0!=e.children)}));this.roleList=i}else if(this.isRadio){var r=t.checkedKeys.indexOf(e.id)>-1;this.userList=r?[e]:[],this.$refs.approvers.setCheckedNodes(this.userList)}else{var o=this.$refs.approvers.getCheckedNodes().filter((function(e,t){return!(void 0!=e.type||void 0!=e.children)}));this.userList=o}},changeList:function(e,t){this[e]=t,1==t?this.$refs.approvers.setCheckedNodes(this.roleList):this.$refs.approvers.setCheckedNodes(this.userList)},func:function(e){var t=this;e.forEach((function(n){n.contacts&&0!==n.contacts.length&&n.contacts.forEach((function(i){n.children.push(i),t.treeData=e}))}))},loadNode:function(e,t){var n=this;return d(regeneratorRuntime.mark((function i(){var r,o,a,s;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(n,0!==e.level){i.next=11;break}return i.next=4,zI.getOrgsData();case 4:return r=i.sent,o=[],o.push(r.data.data),o[0]&&o[0].contacts&&o[0].contacts.length>0&&(a=o[0].contacts.map((function(e){return e.disabled=e.imAccount==!e.imAccount,e})),o[0].children=o[0].children.concat(a),o[0].imAccount="account"+o[0].id),i.abrupt("return",t(o));case 11:if(!e.data.children){i.next=17;break}return s=e.data.children,s.forEach((function(e){if(e.contacts&&e.contacts.length>0){var t=e.contacts.map((function(e){return e}));e.children=e.children.concat(t)}e.imAccount=e.imAccount?e.imAccount:"account"+e.id})),i.abrupt("return",t(s));case 17:return i.abrupt("return",t([]));case 18:case"end":return i.stop()}}),i)})))()},removeList:function(e,t){this[e]=this[e].filter((function(e){return e.memberNo!==t.memberNo})),this[e].length>0?this.$refs.approvers.setCheckedNodes(this[e]):this.$refs.approvers.setCheckedKeys([])}},created:function(){},mounted:function(){}},BI=$I,WI=(n("57c1"),uO(BI,II,YI,!1,null,"37f95368",null)),VI=WI.exports,UI={name:"",mixins:[],extends:{},components:{MemberSelection:VI},props:{formData:{type:Object,default:function(){return{}}},title:{type:String,default:""},queryInfo:{type:Object,default:function(){return{}}}},data:function(){return{SxyData:"",form:{},optOption:[{labal:"大于等于",value:">="},{labal:"大于",value:">"},{labal:"小于等于",value:"<="},{labal:"小于",value:"<"}],formConfig:[],isShow:!1,configList:[],condition:[],oldCOndition:[],isEdit:!0,conName:"",applyType:"",showSelector:!1,showSxytor:!1,selectData:{roleList:[],userList:[]},selSxytData:{roleList:[],userList:[]},memberNo:[],memSxyrNo:[],nodeConditionModal:!1}},watch:{showSelector:{deep:!0,handler:function(e){}},formData:{immediate:!0,deep:!0,handler:function(e,t){var n=Object.keys(e);if(n.length>0){var i=[],r=[];this.configList.forEach((function(e,t){n.indexOf(e.variable)>-1&&(i.push(e),r.push(e.variable))})),n.indexOf("userId")>-1?(this.selectData.userList=e.userId.sponsors,this.memberNo=e.userId.sponsors.map((function(e){return e.userId}))):(this.selectData.userList=[],this.memberNo=[]),n.indexOf("proposer")>-1?(this.selSxytData.userList=e.proposer.sponsors,this.memSxyrNo=e.proposer.sponsors.map((function(e){return e.userId}))):(this.selSxytData.userList=[],this.memSxyrNo=[]),this.formConfig=i,this.form=e,"documentType"==n[0]&&e.documentType.value.map((function(t,n){e.documentType.value[n]=Number(e.documentType.value[n])})),this.condition=r}else this.formConfig=[],this.form={},this.condition=[],this.selectData.userList=[],this.selSxytData.userList=[],this.memberNo=[],this.memSxyrNo=[]}},title:{immediate:!0,handler:function(e,t){this.conName=e}}},computed:{able:function(){return this.configList.length-this.condition.length}},methods:{showSxyL:function(e){this.SxyData=e,this.showSxytor=!0},nodeConditionHandler:function(){this.nodeConditionModal=!this.nodeConditionModal},removeTag:function(e,t){this.form[e].sponsors=this.form[e].sponsors.filter((function(e){return e.userName!=t.userName&&e.userId!=t.userId})),this.memberNo=this.form[e].sponsors.map((function(e){return e.userId})),this.selectData.userList=this.form[e].value},validatePass:function(e,t,n){""!=parseFloat(t.value)&&parseFloat(t.value)>=0?n():n("不能小于0")},save:function(){var e=this;this.$refs.form.validate((function(t){if(t){var n=[],i=function(t){var i=""==e.form[t].value||e.form[t].value==[]||""==e.form[t].opt;if(i&&"userId"!=t&&"spoSxy"!=e.form[t].ele)return e.$message.error("条件数据不能为空"),{v:void 0};if(("spoSxy"==e.form[t].ele||"userId"==t)&&e.form[t].sponsors.length<1)return e.$message.error("条件数据不能为空"),{v:void 0};if("radio"==e.form[t].ele||"checkbox"==e.form[t].ele){var r,o=e.configList.filter((function(e){return e.variable==t}))[0].data;if(o&&Array.isArray(e.form[t].value))r=e.form[t].value.map((function(e){return o.filter((function(t){return t.no==e}))[0].name}));else if(o&&!Array.isArray(e.form[t].value)){var a=o.filter((function(n){return n.value==e.form[t].value}))[0].name;r=[a]}n.push(e.form[t].name+"属于:"+r.join("或"))}else if("spoSxy"==e.form[t].ele||"userId"==t){var s=e.form[t].sponsors.map((function(e){return e.userName}));n.push(e.form[t].name+"属于:"+s.join("或"))}else n.push("".concat(e.form[t].name," ").concat(e.form[t].opt," ").concat(e.form[t].value))};for(var r in e.form){var o=i(r);if("object"===mO(o))return o.v}e.$parent.submitCondition({form:e.form,desc:n,SxyData:e.SxyData})}}))},changeName:function(){this.conName?this.$emit("edit",this.conName):this.conName=this.title,this.isEdit=!0},handleClose:function(){this.isShow=!1},addCondition:function(){this.oldCondition=this.condition,this.isShow=!0},cancel:function(){this.condition=this.oldCondition,this.isShow=!1},determine:function(){var e=[],t=this,n=Pj.cloneDeep(t.form);t.configList.forEach((function(i,r){if(t.condition.indexOf(i.variable)>-1){if(e.push(i),void 0==n[i.variable]){var o="input"==i.ele?"":"=",a="input"==i.ele?"":[];"radio"==i.ele&&(a=i.data&&i.data.length>0?i.data[0].value:"0"),n[i.variable]={opt:o,value:a,dateType:"String",name:i.name,sponsors:[],ele:i.ele}}}else void 0!==n[i.variable]&&delete n[i.variable];"radio"!=i.ele||i.data&&0!=i.data.length||t.$set(i,"data",[{value:"1",name:"是"},{value:"0",name:"否"}])})),this.form=n,this.formConfig=e,this.isShow=!1},setConfig:function(){var e=this;return d(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.applyType=e.queryInfo.type,n={ele:"sponsor",name:"发起人",variable:"userId"},!r[e.applyType]){t.next=8;break}return t.next=5,r[e.applyType](e);case 5:t.t0=t.sent,t.next=9;break;case 8:t.t0=[];case 9:e.configList=t.t0,"sealApproval"==e.queryInfo.type||"用章申请"==e.queryInfo.name||"用车申请"==e.queryInfo.name||"carApproval"==e.queryInfo.type?n={}:e.configList.unshift(n);case 11:case"end":return t.stop()}}),t)})))()},handlerChange:function(e,t){void 0!=t.changeFuc&&t.changeFuc(e,this)},checkMenber:function(e){var t=[],n=[];e.userList.forEach((function(e,i){t.push({userId:e.memberNo,companyId:e.comNo,userName:e.name,roleName:e.roleName}),n.push(e.memberNo)})),this.memberNo=n,this.form.userId.sponsors=t,this.form=Object.assign({},this.form),this.$set(this.selectData,"userList",e.userList),this.showSelector=!1},checkSxyber:function(e){var t=[],n=[];e.userList.forEach((function(e,i){t.push({userId:e.memberNo,companyId:e.comNo,userName:e.name,roleName:e.roleName}),n.push(e.memberNo)})),this.memSxyrNo=n,this.form[this.SxyData].sponsors=t,this.form=Object.assign({},this.form),this.showSxytor=!1}},created:function(){this.setConfig()},mounted:function(){}},qI=UI,GI=(n("9fdb"),uO(qI,fO,pO,!1,null,"4a5dcae5",null)),KI=GI.exports,JI=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"wrapper",style:"left: "+e.info.left+"px; top: "+e.info.top+"px"},[i("div",{staticClass:"close",on:{click:function(t){return e.$emit("close")}}},[i("img",{attrs:{src:n("2e5b"),alt:""}})]),i("div",{staticClass:"node",on:{click:function(t){return e.addNode("userTask")}}},[i("img",{attrs:{src:n("bf66")}}),i("p",[e._v("审批人")])]),i("div",{staticClass:"node",on:{click:function(t){return e.addNode("copyUser")}}},[i("img",{attrs:{src:n("bf66")}}),i("p",[e._v("抄送人")])]),i("div",{staticClass:"node",on:{click:function(t){return e.addNode("condition")}}},[i("img",{attrs:{src:n("50e8")}}),i("p",[e._v("条件分支")])])])},XI=[],ZI={name:"",mixins:[],extends:{},components:{},props:{info:{type:Object,default:function(){return{left:0,top:0,isShow:!0}}}},data:function(){return{}},watch:{},computed:{},methods:{addNode:function(e){var t;t="userTask"==e?"流程节点":"copyUser"==e?"抄送人":"条件分支",this.$emit("addNode",{type:e,name:t})}},created:function(){},mounted:function(){}},QI=ZI,eY=(n("1062"),uO(QI,JI,XI,!1,null,"45838bc0",null)),tY=eY.exports,nY=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-drawer",{attrs:{title:"审批节点",visible:e.visible,direction:"rtl",wrapperClosable:!1,"show-close":!1,"close-on-press-escape":!1,"destroy-on-close":"","append-to-body":!0}},[n("div",{staticClass:"drawer-wrap"},[e.isCCTask?e._e():n("div",{staticClass:"approverSelectorItem"},[n("div",{staticClass:"multi-title"},[e._v("审批人")]),n("div",{staticClass:"approverSelectorItemCon rowDirection"},[n("el-radio-group",{on:{change:e.approverModeChange},model:{value:e.approverMode,callback:function(t){e.approverMode=t},expression:"approverMode"}},[n("el-radio",{attrs:{label:1}},[e._v("指定成员")]),e.queryInfo.type|e.filterType?n("el-radio",{attrs:{label:2}},[e._v("主管")]):e._e()],1),1==e.approverMode?n("div",{staticClass:"selector-list"},[e.approverList.length<25?n("el-button",{staticClass:"list-item-btn",attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:function(t){return e.showStaffSelector(0)}}}):e._e(),e.approverList.length?n("div",{staticClass:"tagList"},[e._l(e.approverList,(function(t,i){return[n("el-tag",{key:i,staticClass:"list-item list-item-opt",attrs:{closable:"",type:"info",size:"medium"},on:{close:function(t){return e.removeItem("approverList",i)}}},[e._v("\n "+e._s(t.name||t.userName)+"\n ")])]})),n("span",{staticClass:"clear-btn list-item",on:{click:function(t){return e.clear("approverList")}}},[e._v("清空")])],2):e._e()],1):e._e()],1)]),2==e.approverMode?n("div",{staticClass:"approverSelectorItem layoutRowItem"},[n("div",{staticClass:"multi-title"},[e._v("发起人:")]),n("div",{staticClass:"approverSelectorItemCon"},[n("el-select",{attrs:{placeholder:"请选择"},on:{change:function(t){return e.changeEvent(t,e.options)}},model:{value:e.valueKey,callback:function(t){e.valueKey=t},expression:"valueKey"}},e._l(e.options,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)]):e._e(),[4].includes(e.approverMode)||e.isCCTask?e._e():n("div",{staticClass:"approverSelectorItem"},[n("div",{staticClass:"multi-title"},[e._v("多人审批时采用的审批方式")]),n("div",{staticClass:"approverSelectorItemCon"},[n("el-radio-group",{on:{change:e.examineModeChange},model:{value:e.approverType,callback:function(t){e.approverType=t},expression:"approverType"}},[n("el-radio",{attrs:{label:"3"}},[e._v("依次审批")]),n("el-radio",{attrs:{label:"1"}},[e._v("会签(须所有审批人同意)")]),n("el-radio",{attrs:{label:"2"}},[e._v("或签(一名审批人同意或拒绝即可)")])],1)],1)]),2==e.approverMode?n("div",{staticClass:"approverSelectorItem"},[n("div",{staticClass:"multi-title"},[e._v("审批人为空时")]),n("div",{staticClass:"approverSelectorItemCon"},[n("el-radio-group",{on:{change:e.noHanderActionChange},model:{value:e.directorType.authType,callback:function(t){e.$set(e.directorType,"authType",t)},expression:"directorType.authType"}},[n("el-radio",{attrs:{label:"1"}},[e._v("自动通过 ")]),n("el-radio",{attrs:{label:"2"}},[e._v("自动转交主管理员")])],1)],1)]):e._e(),e.isCCTask?n("div",{staticClass:"approverSelectorItem"},[n("div",{staticClass:"multi-title"},[e._v("抄送人")]),n("div",{staticClass:"approverSelectorItemCon rowDirection"},[n("el-radio-group",{model:{value:e.isCCTaskType,callback:function(t){e.isCCTaskType=t},expression:"isCCTaskType"}},[n("el-radio",{attrs:{label:1}},[e._v("指定成员")])],1),n("div",{staticClass:"selector-list"},[e.notifierList.length<25?n("el-button",{staticClass:"list-item-btn",attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:function(t){return e.showStaffSelector(1)}}}):e._e(),e.notifierList.length?n("div",{staticClass:"tagList"},[e._l(e.notifierList,(function(t,i){return n("el-tag",{key:i,staticClass:"list-item list-item-opt",attrs:{closable:"",type:"info",size:"medium"},on:{close:function(t){return e.removeItem("notifierList",i)}}},[e._v("\n "+e._s(t.name||t.userName)+"\n ")])})),n("span",{staticClass:"clear-btn list-item",on:{click:function(t){return e.clear("notifierList")}}},[e._v("清空")])],2):e._e()],1)],1)]):e._e(),n("div",{staticClass:"drawer-footer"},[n("el-button",{on:{click:e.cancel}},[e._v("取消")]),n("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("保存")])],1)])]),n("FlowNodeForm",{ref:"nodeForm",attrs:{id:"nodeForm",orgVisible:e.nodeVisible,type:e.memberSelectorType},on:{close:function(t){e.nodeVisible=!1},confirm:e.memberSelectorConfirm}})],1)},iY=[],rY=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-dialog",{attrs:{title:e.title,visible:e.orgVisible,width:"600px","append-to-body":"","before-close":e.cancel,"close-on-click-modal":!1,"destroy-on-close":""},on:{"update:visible":function(t){e.orgVisible=t}}},[n("div",{staticClass:"main-wrapper"},[n("div",{staticClass:"main-block"},[n("div",{staticClass:"block-title"},[e._v("选择:")]),n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"block-card"},[n("el-input",{staticStyle:{"margin-bottom":"10px"},attrs:{type:"text",clearable:"",placeholder:"输入姓名",size:"small"},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}},[n("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),n("div",[n("el-tree",{ref:"tree",staticClass:"filter-tree",attrs:{data:e.orgData,props:e.defaultProps,"default-expand-all":"","show-checkbox":"","node-key":"uniqueProp","default-checked-keys":e.defaultCheck,"filter-node-method":e.filterNode},on:{check:e.handleCheckChange}})],1)],1)]),n("div",{staticClass:"main-block"},[n("div",{staticClass:"block-title"},[e._v("已选:")]),n("div",{staticClass:"block-card block-card-right"},[n("ul",{staticClass:"opt-wrap",attrs:{id:"opt-wrap"}},e._l(e.selectedList,(function(t,i){return n("li",{key:i,staticClass:"opt",attrs:{"data-memberNo":t.userId||t.memberNo}},[n("span",{staticClass:"opt-name"},[e._v(e._s(t.name||t.userName))]),n("i",{staticClass:"el-icon-circle-close",on:{click:function(n){return e.deleteOpt(t,i)}}})])})),0)])])]),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:e.cancel}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:e.confirm}},[e._v("确 认")])],1)])],1)},oY=[],aY=(n("54ff"),{name:"FlowNodeForm",components:{},props:{type:{type:Number,default:0},orgVisible:{type:Boolean,default:!1},value:{type:Array,default:function(){return[]}}},data:function(){return{isSearching:!1,currentSelectedAll:!1,searchValue:null,loading:!1,orgData:null,selectedList:[],defaultCheck:[],defaultProps:{children:"children",label:"name"}}},computed:{title:function(){return 0===this.type?"请选择审批人":"请选择抄送人"}},watch:{currentLevelList:{handler:function(e){this.generateSelectedList(),this.generateCurrentSelectedAll()},deep:!0},searchValue:{handler:function(e){this.$refs.tree.filter(e)}}},created:function(){var e=this;return d(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.getOrgData();case 1:case"end":return t.stop()}}),t)})))()},methods:{init:function(e){var t=this;this.selectedList=_.cloneDeep(e);var n=e.map((function(e){return e.memberNo||e.userId})),i=function e(i){i.forEach((function(i){2===i.holidayType&&n.includes(i.memberNo||i.userId)?t.$refs.tree.setChecked(i.uniqueProp,!0):2!==i.holidayType&&i.children.length&&e(i.children)}))};i(this.orgData)},filterNode:function(e,t){return!e||-1!==t.name.indexOf(e)},getOrgData:function(){var e=this;return d(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,zI.getOrgsData();case 3:n=t.sent,200===n.data.code&&(n.data.data.checked=!1,e.orgData=e.dataFormatter([n.data.data]),e.currentLevelList=e.orgData,e.loading=!1);case 5:case"end":return t.stop()}}),t)})))()},dataFormatter:function(e){var t={},n=function e(n){n.forEach((function(n){2!==n.holidayType?(n.children=n.children.concat(n.contacts),n.uniqueProp=n.id,n.children.length&&e(n.children)):(t[n.memberNo]?t[n.memberNo]=t[n.memberNo]+1:t[n.memberNo]=1,n.uniqueProp=n.memberNo+"-"+t[n.memberNo])}))};return n(e),e},handleCheckChange:function(e,t,n){var i;if(void 0===n){var r=e.uniqueProp;i=t.checkedKeys.includes(r)}else i=n;if(i){var o=this.selectedList.map((function(e){return e.memberNo})),a=this.$refs.tree.getCheckedNodes().filter((function(e){return 2===e.holidayType})).filter((function(e){return!o.includes(e.memberNo)}));this.selectedList=this.uniqueList(this.selectedList.concat(this.uniqueList(a)))}else{var s=e.memberNo;if(s){var l=t.checkedKeys.some((function(e){return e.split("-")[0]===s}));if(!l){var u=this.selectedList.indexOf(e);this.selectedList.splice(u,1)}}else for(var c=0;c<e.children.length;c++)this.handleCheckChange(e.children[c],t,!1)}},uniqueList:function(e){var t=[],n=[];return e.map((function(e){n.includes(e.memberNo||e.userId)||(t.push(e),n.push(e.memberNo||e.userId))})),t},generateSelectedList:function(){var e=[],t=function t(n){n.forEach((function(n){n.checked&&e.push(n),n.children&&t(n.children)}))};t(this.orgData),this.selectedList=e},deleteOpt:function(e,t){var n=this;this.selectedList.splice(t,1);var i=function t(i){i.forEach((function(i){2===i.holidayType&&i.memberNo===e.memberNo?n.$refs.tree.setChecked(i.uniqueProp,!1):2!==i.holidayType&&i.children.length&&t(i.children)}))};i(this.orgData)},cancel:function(){this.$emit("close")},confirm:function(){if(this.selectedList.length>25){var e=0===this.type?"申请人最多选择25人":"抄送人最多选择25人";return this.$message.warning(e),!1}var t={list:this.selectedList,type:this.type};this.$emit("close"),this.$emit("confirm",JSON.stringify(t))}}}),sY=aY,lY=(n("3c5c"),uO(sY,rY,oY,!1,null,"64f53724",null)),uY=lY.exports,cY={components:{FlowNodeForm:uY},props:{value:{type:Boolean,default:!0},queryInfo:{type:Object,default:function(){return{}}}},data:function(){return{isCCTask:!1,isCCTaskType:1,visible:!1,approverType:"3",approverMode:1,passCopy:!0,nodeVisible:!1,notifierList:[],approverList:[],directorType:{typeName:"",type:"1",authType:"1"},director:{},memberSelectorType:null,options:[],optionsList:[{value:"直接主管",key:0},{value:"第2级主管",key:1},{value:"第3级主管",key:2},{value:"第4级主管",key:3},{value:"第5级主管",key:4},{value:"第6级主管",key:5},{value:"第7级主管",key:6},{value:"第8级主管",key:7},{value:"第9级主管",key:8},{value:"第10级主管",key:9}],valueKey:"直接主管",appList:[{directorName:"",directorId:""}]}},watch:{value:function(e){this.visible=e}},mounted:function(){this.direSxyList()},methods:{init:function(e){var t=this,n=e.type,i=e.nodeUserList,r=e.examineMode,o=e.authType,a=e.setType,s=e.directorLevel,l={approverType:r,approvers:1==n?i:[],passCopy:!0,notifiers:2==n?i:[],directorType:{typeName:"",type:parseInt(a),authType:o}};this.isCCTask=2==n,this.directorType=l.directorType,this.directorType.authType=l.directorType&&l.directorType.authType?l.directorType.authType:"1",this.approverMode=l.directorType&&l.directorType.type?l.directorType.type:"1",this.directorType&&"1"==this.directorType.type&&(this.approverList=l.approvers),this.directorType&&"2"==this.directorType.type&&(this.options.map((function(e){e.key==s&&(t.valueKey=e.value)})),this.approverList[0]={directorId:s,directorName:this.valueKey}),this.approverType=l.approverType||"3",this.notifierList=l.notifiers,this.passCopy=void 0===l.passCopy||l.passCopy,this.visible=!0},approverModeChange:function(e){this.$parent.changeType(e)},examineModeChange:function(e){this.$parent.examineModeChange(e)},noHanderActionChange:function(e){this.$parent.noHanderActionChange(e)},changeEvent:function(e,t){this.approverList=[{directorName:"",directorId:""}];for(var n=0;n<t.length;n++)t[n].value==e&&(this.approverList[0].directorName=t[n].value,this.approverList[0].directorId=t[n].key);this.$parent.directorLevelChange(this.approverList[0].directorId)},direSxyList:function(){var e=this;return d(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Gj();case 2:n=t.sent,"ok"==n.data.state?e.options=n.data.data:e.options=e.optionsList;case 4:case"end":return t.stop()}}),t)})))()},showApproverSelector:function(){this.visible=!this.visible},memberSelectorConfirm:function(e){var t=JSON.parse(e);0===t.type?this.approverList=t.list:this.notifierList=t.list},showStaffSelector:function(e){var t=this;this.memberSelectorType=e,this.nodeVisible=!0;var n=0===e?this.approverList:this.notifierList;this.$nextTick((function(){t.$refs.nodeForm.init(n)}))},removeItem:function(e,t){this[e].splice(t,1)},clear:function(e){this[e]=[]},cancel:function(){this.visible=!this.visible},submit:function(){this.directorType.type=this.approverMode,this.directorType.typeName=1==this.approverMode?"指定成员":"主管";for(var e=[],t=0;t<this.notifierList.length;t++){var n=this.notifierList[t];e.push({id:n.id,userName:n.name||n.userName,phone:n.phone,roleName:n.roleName,companyId:n.comNo||n.companyId,userId:n.memberNo})}if(this.isCCTask){var i=e.map((function(e){return e.type="1",e.memberNo=e.userId,e})),r={approverType:this.approverType,approvers:this.appList,notifiers:i,passCopy:this.passCopy,directorType:this.directorType};this.$parent.submitCopyer(r)}else if(1==this.approverMode){if(!this.approverList.length)return void this.$message.warning("请配置审批人");for(var o=[],a=0;a<this.approverList.length;a++){var s=this.approverList[a];s.id&&o.push({id:s.id,userName:s.userName||s.name,phone:s.phone,roleName:s.roleName,companyId:s.comNo||s.companyId,userId:s.memberNo||s.userId})}var l={approverType:this.approverType,approvers:o,notifiers:e,passCopy:this.passCopy,directorType:this.directorType};l.directorType.authType="",this.$parent.submitApprover(l)}else{this.appList[0].directorName=this.approverList[0]?this.approverList[0].directorName:"直接主管",this.appList[0].directorId=this.approverList[0]?this.approverList[0].directorId:0;var u={approverType:this.approverType,approvers:this.appList,notifiers:e,passCopy:this.passCopy,directorType:this.directorType};void 0==u.approvers[0].directorId&&(u.approvers[0].directorId=0,u.approvers[0].directorName="直接主管"),this.$parent.submitApprover(u)}}},computed:{filterType:function(e){return"notice"!=this.queryInfo.type&&"officialDocument"!=this.queryInfo.type}}},dY=cY,hY=(n("0b2d"),uO(dY,nY,iY,!1,null,"0922466c",null)),fY=hY.exports,pY=n("7c98"),mY=n.n(pY),vY=function(e){this.item=e,this.lists=[]};vY.prototype.add=function(e){this.lists.push(e)},vY.prototype.scan=function(){console.log("扫描",this.item);for(var e=0;e<this.lists.length;e++)console.log(this.item.from+"----\x3e"+this.lists[e].item.to),this.lists[e].scan()};var gY=function(e){this.item=e};function yY(e,t,n,i,r,o,a,s){var l={id:e,name:t,type:n,left:i,top:r,from:o,to:a,isCondition:"0"};return"userTask"==n?l=Object.assign(l,{approverType:"3",approvers:[],notifiers:[],passCopy:!0,directorType:{typeName:"指定成员",type:1,authType:"1"}}):"condition"==n&&(l=Object.assign(l,{desc:"",conditions:[],a:s})),l}function bY(e){for(var t=e.map((function(e){return e.level=1,e})),n=function(e){if(!t[e].lists)return"continue";var n=t[e].lists.map((function(n){return n.level=t[e].level+1,n}));t.splice.apply(t,[e+1,0].concat(bO(n)))},i=0;i<t.length;i++)n(i);return t}function _Y(e){return function(t,n){var i=t[e],r=n[e];return i-r}}gY.prototype.add=function(){throw Error("文件下不能添加其它文件夹或文件")},gY.prototype.scan=function(){console.log("-----\x3e",this.item)};var wY={props:["queryInfo","tools","path","userInfo"],data:function(){var e;return e={approverSelectorData:{approverList:[],notifierList:[]},memberSelectorType:0,selectorVisible:!1,jsPlumb:null,isFlg:!0,isEdit:!0,easyFlowVisible:!0,nodeVisible:!1,nodeInfo:{},data:{nodeList:[],lineList:[]},connection:{},title:"",conditionVisible:!1,showAddNode:!1,addNodeInfo:{top:"0",left:"0",isShwo:!0},root:new vY(yY("0","根节点","root","320px","20px","1","2")),currentChooseItem:{},currentNode:{sourceId:"",targetId:""},id:0,params:{},processId:""},o(e,"isFlg",!0),o(e,"isClick",!0),o(e,"name",""),o(e,"version",1),o(e,"indexFlg",1),e},components:{flowNode:hO,FlowNodeCondition:KI,addNodeBox:tY,approverSelector:fY},computed:{user:function(){return""},orgSelectorList:function(){return 0===this.memberSelectorType?this.nodeInfo.approvers:this.nodeInfo.notifiers}},created:function(){this.type=this.queryInfo.type},mounted:function(){this.jsPlumbInit()},methods:{save:function(){var e=this;return d(regeneratorRuntime.mark((function t(){var n,i,r,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.userInfo,!1,"/index"==e.path&&(e.params.menuId=""),e.params.switchOn=e.isFlg?"1":"0",!e.processId){t.next=11;break}return i={id:e.processId+"",content:JSON.stringify(e.params)},t.next=8,Wj(i);case 8:n=t.sent,t.next=15;break;case 11:return r={content:JSON.stringify(e.params)},t.next=14,$j(r);case 14:n=t.sent;case 15:o=0;case 16:if(!(o<e.params.nodeList.length)){t.next=23;break}if("userTask"!=e.params.nodeList[o].item.type||0!=e.params.nodeList[o].item.approvers.length||!e.params.nodeList[o].item.directorType||1!=e.params.nodeList[o].item.directorType.type){t.next=20;break}return e.$message.error("当前审批流程中【"+e.params.nodeList[o].item.name+"】节点审批人不能为空"),t.abrupt("return");case 20:o++,t.next=16;break;case 23:"ok"==n.data.state?(e.$message.success({message:e.processId?"编辑成功":"保存成功",duration:1500}),e.processId=n.data.data,-1==e.type.indexOf("customForm_")&&(e.$removeTag1(e.$route),e.$router.go(-1))):e.$message.error({message:n.data.msg?n.data.msg:"保存失败",duration:1500});case 24:case"end":return t.stop()}}),t)})))()},cancal:function(){var e=this;this.$confirm("有修改的内容未保存,确认离开吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.$removeTag1(e.$route),e.$router.go(-1)})).catch((function(){}))},initProcess:function(){this.easyFlowVisible=!1;var e=new vY(yY("1","开始","start","320px","20px","1","2")),t=new vY(yY("2","审批人","userTask","320px","200px","1","3")),n=new vY(yY("3","抄送人","ccTask","320px","350px","7","5")),i=new vY(yY("5","结束","end","320px","330px","2","5"));this.root.add(e),e.add(t),t.add(n),n.add(i),this.refresh()},refresh:function(){this.jsPlumb.reset();for(var e,t,n,i=this.root.lists,r=(i[0],bY(i)),o=this,a=0,s=0,l=0,u=0;u<r.length;u++){var c=r[u];if(parseFloat(c.item.left)>a&&(a=parseFloat(c.item.left)),l<c.level&&"end"!=c.item.type&&(l=c.level),"end"==c.item.type&&(e=c),"start"==c.item.type&&(t=c),"addCondition"==c.item.type){n=c;var d=n.lists[0],h=n.lists[n.lists.length-1],f=parseFloat(d.item.left)+parseFloat(h.item.left);s<f/2&&(s=f/2),n.item.left=f/2+"px"}}console.log(l);var p=s>0?s:(a+320)/2;e.item.left=p+"px",e.level=l+1,e.item.top=200*(e.level-1)+20+"px",t.item.left=p+"px",this.data.nodeList=r,this.easyFlowVisible=!0;var m=["Label",{location:0,label:"",cssClass:"aLabel",events:{click:function(e,t){var n=e.getElement(),i=parseFloat(n.style.top)-35,r=parseFloat(n.style.left)+30;o.showAddNode=!0,o.addNodeInfo={top:i,left:r};var a=e.component,s=a.sourceId.replace("flowchartWindow",""),l=a.targetId.replace("flowchartWindow","");o.currentNode.sourceId=s,o.currentNode.targetId=l}}}],v={endpoint:["Dot",{radius:3}],connector:["Flowchart"],anchors:["Bottom","Top"],overlays:[["Arrow",{width:10,length:10,location:1}],m]},g={endpoint:["Dot",{radius:3}],connector:["Flowchart"],anchors:["Bottom","Top"],overlays:[["Arrow",{width:10,length:10,location:1}]]};this.$nextTick((function(){for(var e=[],t=this,n=0;n<this.data.nodeList.length;n++){var i=this.data.nodeList[n];if(this.jsPlumb.draggable("flowchartWindow"+i.item.id,{grid:[20,20],containment:"parent",stop:function(e){t.isClick=!1,setTimeout((function(){t.isClick=!0}),1e3),e.e.preventDefault()}}),"end"!=i.item.type)if(i.lists.length>0&&"addCondition"==i.item.type)for(var r=0;r<i.lists.length;r++){var o=i.lists[r],a={id:o.item.id,type:"condition",name:o.item.name,left:o.item.left,top:o.item.top,from:o.item.from,gateWayKey:i.item.id,to:o.item.to,conditions:o.item.conditions,ifNo:10,desc:o.item.desc,isCondition:o.item.isCondition};e.push(a),this.jsPlumb.connect({source:"flowchartWindow"+i.item.id,target:"flowchartWindow"+o.item.id},g)}else this.jsPlumb.connect({source:"flowchartWindow"+i.item.id,target:"flowchartWindow"+i.item.to},v)}this.loadEasyFlowFinish=!0;var s={name:this.name,desc:"",creator:this.user.no,processId:this.processId,startId:"1",endId:"5",companyId:this.user.cno,type:this.type,switchOn:this.isFlg?"1":"0",gateWayList:e,nodeList:this.data.nodeList,lineList:[],version:this.version};this.params=s}))},jsPlumbInit:function(){var e=this;return d(regeneratorRuntime.mark((function t(){var n,i,r,o,a,s,l,u,c;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e,e.jsPlumb=rO.a.jsPlumb?rO.a.jsPlumb.getInstance():rO.a.getInstance(),e.jsPlumb.importDefaults({ConnectionsDetachable:!1}),n={companyId:e.user.cno+"",type:e.type},t.next=6,qj(n);case 6:i=t.sent,i.data.data&&i.data.data.gateWays?(r=JSON.parse(i.data.data.content),e.data={nodeList:r.nodeList,lineList:r.lineList},e.name=e.queryInfo.name?e.queryInfo.name+"流程":r.name,e.isFlg=0!=r.switchOn,e.processId=i.data.data._id,e.version=i.data.data.rootNode.version,e.root.add(r.nodeList[0]),e.refresh(),o=r.nodeList.map((function(e){return parseFloat(e.item.id)})),e.id=Math.max.apply(null,o)):i.data.data&&i.data.data._id?(e.processId=i.data.data._id,a=JSON.parse(i.data.data.content),e.name=a.name,e.name=e.queryInfo.name?e.queryInfo.name+"流程":a.name,e.isFlg=0!=a.switchOn,e.version=i.data.data.rootNode.version,s=e.dataTonewList(a.nodeList),s?(e.refresh(),l=a.nodeList.map((function(e){return parseFloat(e.id)})),e.id=Math.max.apply(null,l),setTimeout(d(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n={id:e.processId+"",content:JSON.stringify(e.params)},console.log(n),t.next=4,Uj(n);case 4:t.sent;case 5:case"end":return t.stop()}}),t)}))),200)):(e.name=e.queryInfo.name?e.queryInfo.name+"流程":"流程",e.initProcess(),u=bY(e.root.lists),e.id=u.length+10)):(e.name=e.queryInfo.name?e.queryInfo.name+"流程":"流程",e.initProcess(),c=bY(e.root.lists),e.id=c.length+10);case 8:case"end":return t.stop()}}),t)})))()},dataTonewList:function(e){var t=this.root,n=1,i=!0;while("end"!=t.item.type&&i){var r=this.getCurrentNode(e,n);if(!r){i=!1;break}var o=new vY(yY(r.id,r.name,r.type,r.left,r.top,r.from,r.to));"userTask"==r.type&&(o.item=Object.assign(o.item,{approverType:r.approverType,approvers:r.approvers,notifiers:r.notifiers,passCopy:r.passCopy})),"condition"==r.type?(n=r.to,t.item.to=r.to):(t.add(o),n=r.to,t=o)}return i},getCurrentNode:function(e,t){var n=e.filter((function(e){return e.id==t}));return n.length>0?n[0]:null},setNode:function(e){console.log(e);var t=JSON.parse(e);this.activeNode.directorType=t.directorType,this.activeNode.approverType=t.approverType,this.activeNode.approvers=t.approvers,this.activeNode.notifiers=t.notifiers,this.activeNode.passCopy=t.passCopy,this.$refs.flowNode.map((function(e){e.refreshFlowItem()}))},deleteNode:function(e,t){var n=this;3!=this.data.nodeList.length?this.$confirm("确定需要删除当前节点?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var i=null;n.findNodeById(n.root,e.id);var r=_.cloneDeep(n.currentChooseItem);if(n.findNodeById(n.root,e.from),console.log(r.item.type),"userTask"==r.item.type)n.currentChooseItem.item.to=r.item.to,n.currentChooseItem.lists=r.lists,n.currentChooseItem.lists.forEach((function(e,t){e.item.from=n.currentChooseItem.item.id})),n.data.nodeList.map((function(e,t){var i=n.data.nodeList[t].item,o=i.type,a=i.from;"condition"==o&&a==n.currentChooseItem.item.from&&(n.data.nodeList[t].item.to=r.item.to)}));else if("ccTask"==r.item.type)n.currentChooseItem.item.to=r.item.to,n.currentChooseItem.lists=r.lists,n.currentChooseItem.lists.forEach((function(e,t){e.item.from=n.currentChooseItem.item.id})),n.data.nodeList.map((function(e,t){var i=n.data.nodeList[t].item,o=i.type,a=i.from;"condition"==o&&a==n.currentChooseItem.item.from&&(n.data.nodeList[t].item.to=r.item.to)}));else{var o=n.currentChooseItem.lists.length;if(o>2)n.currentChooseItem.lists.forEach((function(t,r){t.item.id==e.id&&(n.currentChooseItem.lists.splice(r,1),0==r&&(n.currentChooseItem.item.to=n.currentChooseItem.lists[1].item.id,i=n.currentChooseItem.lists[1]))}));else{var a=_.cloneDeep(n.currentChooseItem.lists[0].lists[0]),s=n.currentChooseItem.item.from;a?(a.item.from=s,a.item.left=n.currentChooseItem.item.left,n.findNodeById(n.root,s),n.currentChooseItem.item.to=a.item.id,n.currentChooseItem.lists=[a],n.data.nodeList.map((function(e,t){var i=n.data.nodeList[t].item,r=i.type,o=i.from;"condition"==r&&o==n.currentChooseItem.item.from&&(n.data.nodeList[t].item.to=a.item.id)}))):(n.findNodeById(n.root,s),n.currentChooseItem.item.to=t.to,n.currentChooseItem.lists=r.lists,n.currentChooseItem.lists.forEach((function(e,t){e.item.from=n.currentChooseItem.item.id})),n.data.nodeList.map((function(e,i){var r=n.data.nodeList[i].item,o=r.type,a=r.from;"condition"==o&&a==n.currentChooseItem.item.from&&(n.data.nodeList[i].item.to=t.to)})))}}var l=bY(n.root.lists);if(i){var u=l.filter((function(e){return"end"==e.item.type})),c=new vY(yY("5","结束","end","320px","380px","","5"));if(u.length<1){var d=n.getLastList(i);d.push(c)}n.setResultToNode()}l.sort(_Y("level"));for(var h=0;h<l.length;h++){var f=l[h],p=200*(f.level-1)+20;f.item.top=p+"px"}n.refresh()})).catch((function(){})):this.$message.error("流程中必须保留一个审批或抄送节点")},getLastList:function(e){return 0==e.lists.length?e.lists:this.getLastList(e.lists[0])},changeNodeSite:function(){},nodeRightMenu:function(){},addNode:function(e){var t;if(this.showAddNode=!1,this.findNodeById(this.root,this.currentNode.sourceId),this.id+=1,"condition"==e.type){console.log(this.currentNode),console.log(this.currentChooseItem),t=new vY(yY(this.id,"条件"+this.id,"addCondition",this.currentChooseItem.item.left,"20px",this.currentNode.sourceId,this.currentNode.targetId)),this.currentChooseItem.item.isCondition="1",this.currentChooseItem.item.to=t.item.id;var n=null;this.currentChooseItem.lists.length>0&&(this.currentChooseItem.lists[0].item.from=t.item.id,n=_.cloneDeep(this.currentChooseItem.lists[0])),this.id+=1;var i=new vY(yY(this.id,"条件1","condition","320px","20px",this.currentNode.sourceId,this.currentNode.targetId));t.item.to=i.item.id,i.item.from=t.item.id,i.item.to=n?n.item.id:this.currentNode.targetId,n&&"addCondition"==n.item.type&&(i.item.isCondition="1"),n&&(n.item.from=i.item.id,i.lists.push(n)),this.currentChooseItem.lists[0]=t,t.lists.push(i),this.addExtraCondition(event,!0)}else if("copyUser"==e.type){if(t=new vY(yY(this.id,"抄送人","ccTask","320px","20px",this.currentNode.sourceId,this.currentNode.targetId)),this.currentChooseItem.item.isCondition="0",this.currentChooseItem.item.to=t.item.id,t.item.left=this.currentChooseItem.item.left,this.currentChooseItem.lists&&this.currentChooseItem.lists.length>0){this.currentChooseItem.lists[0].item.from=t.item.id;var r=_.cloneDeep(this.currentChooseItem.lists[0]);this.currentChooseItem.lists[0]=t,t.lists.push(r)}else this.currentChooseItem.lists.push(t);var o=bY(this.root.lists);o.sort(_Y("level"));for(var a=0;a<o.length;a++){var s=o[a],l=200*(s.level-1)+20;s.item.top=l+"px"}}else{if(t=new vY(yY(this.id,"审批人","userTask","320px","20px",this.currentNode.sourceId,this.currentNode.targetId)),this.currentChooseItem.item.isCondition="0",this.currentChooseItem.item.to=t.item.id,t.item.left=this.currentChooseItem.item.left,this.currentChooseItem.lists&&this.currentChooseItem.lists.length>0){this.currentChooseItem.lists[0].item.from=t.item.id;var u=_.cloneDeep(this.currentChooseItem.lists[0]);this.currentChooseItem.lists[0]=t,t.lists.push(u)}else this.currentChooseItem.lists.push(t);var c=bY(this.root.lists);c.sort(_Y("level"));for(var d=0;d<c.length;d++){var h=c[d],f=200*(h.level-1)+20;h.item.top=f+"px"}}this.refresh()},editNode:function(){},showForm:function(e){var t=this;if(console.log(this.data.nodeList,"showForm"),console.log(e),this.activeNode=e,"condition"==e.type){var n=mY.a.cloneDeep(e),i={};n.conditions.forEach((function(e,t){e.isArray&&"userId"!=e.variable&&(e.value=e.value.split(",")),i[e.variable]=e})),this.connection=i,this.title=e.name,this.conditionVisible=!0}else if("ccTask"==e.type){console.log(e);var r={approverType:"1",approvers:e.approvers||[],notifiers:e.notifiers||[],directorType:{typeName:"指定成员",type:1,authType:"1",isCCTask:!0}};console.log(r),this.$nextTick((function(){t.$refs.approverSelector.init(r)}))}else if("userTask"==e.type){e.approvers.forEach((function(e){e.name=e.userName,e.memberNo=e.userId})),e.notifiers.forEach((function(e){e.name=e.userName,e.memberNo=e.userId})),console.log(e.directorType,"*****");var o={approverType:e.approverType,approvers:e.approvers||[],notifiers:e.notifiers||[],passCopy:e.passCopy};this.nodeInfo=o,e.directorType?o.directorType=e.directorType:o.directorType={typeName:"指定成员",type:1,authType:"1"},0!=e.approvers.length?o.approvers=e.approvers:o.approvers=[{directorId:0,directorName:"直接主管"}],this.$nextTick((function(){t.$refs.approverSelector.init(o)}))}},changeNodeName:function(e){"condition"==e.node.type&&this.params.gateWayList.forEach((function(t,n){t.id==e.node.id&&(t.name=e.name)})),e.node.name=e.name},editName:function(e){this.title=e,this.activeNode.name=e},setCondition:function(e){var t=this;console.log(e);var n=Object.entries(e.form).map((function(t){var n=nO(t,2),i=n[0],r=n[1];return Array.isArray(r.value)?s(s({},r),{},{variable:i,value:"userId"==i||i==e.SxyData?"":r.value.join(","),opt:"=",isArray:!0,sponsors:"userId"==i||i==e.SxyData?r.sponsors:[]}):s(s({},r),{},{variable:i,isArray:!1})}));this.activeNode.conditions=n,this.activeNode.desc=e.desc.join(" 并且 "),this.params.gateWayList.forEach((function(e){e.id==t.activeNode.id&&(e.conditions=t.activeNode.conditions,e.desc=t.activeNode.desc)})),this.conditionVisible=!1},dataReload:function(e){},findNodeById:function(e,t){var n=this;e.item.id!=t?e.lists.forEach((function(e,i){e.item.id!=t?n.findNodeById(e,t):n.currentChooseItem=e})):n.currentChooseItem=e},addExtraCondition:function(e,t){if(this.isClick){var n=e.currentTarget,i=n.id;""!=i&&(i=i.replace("flowchartWindow",""),this.findNodeById(this.root,parseInt(i))),this.id+=1;var r=t?1:Math.max.apply("",this.currentChooseItem.lists.map((function(e){return parseFloat(e.item.name.substring(2))})));r++;var o,a=new vY(yY(this.id,"条件"+r,"condition","320px","20px",this.currentNode.sourceId,this.currentNode.targetId));if(""==i){o=this.currentChooseItem.lists[0];this.currentChooseItem.lists[0].lists.length;this.currentChooseItem.lists[0].lists.push(a)}else o=this.currentChooseItem,this.currentChooseItem.lists.push(a);a.item.from=o.item.id,a.item.to=o.lists[0].item.to,this.setResultToNode(),this.refresh()}},setResultToNode:function(){var e=bY(this.root.lists);e.sort(_Y("level")),console.log(e,"result");for(var t=320,n=e.length;n>0;n--){for(var i=e[n-1],r=0;r<i.lists.length;r++){var o=i.lists[r];0==r?o.item.left=t/2+"px":(t+=320,o.item.left=t+"px",this.resetNodeLeft(o))}var a=200*(i.level-1)+20;i.item.top=a+"px"}this.data.nodeList=e},resetNodeLeft:function(e){var t=this;"condition"==e.item.type||"userTask"==e.item.type?e.lists.length>0&&e.lists.forEach((function(n){n.item.left=e.item.left,t.resetNodeLeft(n)})):"addCondition"==e.item.type&&e.lists.forEach((function(n,i){n.item.left=parseFloat(e.item.left)-160+320*i+"px",t.resetNodeLeft(n)}))}}},xY=wY,kY=(n("ee82"),uO(xY,Kj,Jj,!1,null,null,null)),MY=kY.exports,SY=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[4!=e.nodeConfig.type?n("div",{staticClass:"node-wrap"},[n("div",{staticClass:"node-wrap-box",class:(0==e.nodeConfig.type?"start-node ":"")+(e.isTried&&e.nodeConfig.error?"active error":"")},[n("div",[n("div",{staticClass:"title",style:"background: rgb("+["87, 106, 149","255, 148, 62","50, 150, 250"][e.nodeConfig.type]+");"},[n("span",{directives:[{name:"show",rawName:"v-show",value:1==e.nodeConfig.type,expression:"nodeConfig.type==1"}],staticClass:"iconfont"},[e._v("")]),n("span",{directives:[{name:"show",rawName:"v-show",value:2==e.nodeConfig.type,expression:"nodeConfig.type==2"}],staticClass:"iconfont"},[e._v("")]),0==e.nodeConfig.type?n("span",[e._v(e._s(e.nodeConfig.nodeName))]):e._e(),0!=e.nodeConfig.type&&e.isInput?n("input",{directives:[{name:"focus",rawName:"v-focus"},{name:"model",rawName:"v-model",value:e.nodeConfig.nodeName,expression:"nodeConfig.nodeName"}],staticClass:"ant-input editable-title-input",attrs:{type:"text",placeholder:e.placeholderList[e.nodeConfig.type]},domProps:{value:e.nodeConfig.nodeName},on:{blur:function(t){return e.blurEvent()},focus:function(e){return e.currentTarget.select()},input:function(t){t.target.composing||e.$set(e.nodeConfig,"nodeName",t.target.value)}}}):e._e(),0==e.nodeConfig.type||e.isInput?e._e():n("span",{staticClass:"editable-title",on:{click:function(t){return e.clickEvent()}}},[e._v(e._s(e.nodeConfig.nodeName))]),0!=e.nodeConfig.type?n("i",{staticClass:"anticon anticon-close close",on:{click:function(t){return e.delNode()}}}):e._e()]),n("div",{staticClass:"content",on:{click:e.setPerson}},[0==e.nodeConfig.type?n("div",{staticClass:"text"},[e._v(e._s(e.arrToStr(e.flowPermission)?e.arrToStr(e.flowPermission):"请求发起人"))]):e._e(),1==e.nodeConfig.type?n("div",{staticClass:"text"},[e.setApproverStr(e.nodeConfig)?e._e():n("span",{staticClass:"placeholder"},[e._v("请选择"+e._s(e.placeholderList[e.nodeConfig.type]))]),e._v("\n "+e._s(e.setApproverStr(e.nodeConfig))+"\n ")]):e._e(),2==e.nodeConfig.type?n("div",{staticClass:"text"},[e.copyerStr(e.nodeConfig)?e._e():n("span",{staticClass:"placeholder"},[e._v("请选择"+e._s(e.placeholderList[e.nodeConfig.type]))]),e._v("\n "+e._s(e.copyerStr(e.nodeConfig))+"\n ")]):e._e(),n("i",{staticClass:"anticon anticon-right arrow"})]),e.isTried&&e.nodeConfig.error?n("div",{staticClass:"error_tip"},[n("i",{staticClass:"anticon anticon-exclamation-circle",staticStyle:{color:"rgb(242, 86, 67)"}})]):e._e()])]),n("addNode",{attrs:{childNodeP:e.nodeConfig.childNode},on:{"update:childNodeP":function(t){return e.$set(e.nodeConfig,"childNode",t)},"update:child-node-p":function(t){return e.$set(e.nodeConfig,"childNode",t)}}})],1):e._e(),4==e.nodeConfig.type?n("div",{staticClass:"branch-wrap"},[n("div",{staticClass:"branch-box-wrap"},[n("div",{staticClass:"branch-box"},[n("button",{staticClass:"add-branch",on:{click:e.addTerm}},[e._v("添加条件")]),e._l(e.nodeConfig.conditionNodes,(function(t,i){return n("div",{key:i,staticClass:"col-box"},[n("div",{staticClass:"condition-node"},[n("div",{staticClass:"condition-node-box"},[n("div",{staticClass:"auto-judge",class:e.isTried&&t.error?"error active":""},[0!=i?n("div",{staticClass:"sort-left",on:{click:function(t){return e.arrTransfer(i,-1)}}},[e._v("<")]):e._e(),n("div",{staticClass:"title-wrapper"},[e.isInputList[i]?n("input",{directives:[{name:"focus",rawName:"v-focus"},{name:"model",rawName:"v-model",value:t.nodeName,expression:"item.nodeName"}],staticClass:"ant-input editable-title-input",attrs:{type:"text"},domProps:{value:t.nodeName},on:{blur:function(t){return e.blurEvent(i)},focus:function(e){return e.currentTarget.select()},input:function(n){n.target.composing||e.$set(t,"nodeName",n.target.value)}}}):e._e(),e.isInputList[i]?e._e():n("span",{staticClass:"editable-title",on:{click:function(t){return e.clickEvent(i)}}},[e._v(e._s(t.nodeName))]),n("span",{staticClass:"priority-title",on:{click:function(n){return e.setPerson(t.priority,t)}}},[e._v("优先级"+e._s(t.priority))]),n("i",{staticClass:"anticon anticon-close close",on:{click:function(t){return e.delTerm(i)}}})]),i!=e.nodeConfig.conditionNodes.length-1?n("div",{staticClass:"sort-right",on:{click:function(t){return e.arrTransfer(i)}}},[e._v(">")]):e._e(),n("div",{staticClass:"content",on:{click:function(n){return e.setPerson(t.priority,t)}}},[e._v(e._s(e.conditionStr(t,i)))]),e.isTried&&t.error?n("div",{staticClass:"error_tip"},[n("i",{staticClass:"anticon anticon-exclamation-circle",staticStyle:{color:"rgb(242, 86, 67)"}})]):e._e()]),n("addNode",{attrs:{childNodeP:t.childNode},on:{"update:childNodeP":function(n){return e.$set(t,"childNode",n)},"update:child-node-p":function(n){return e.$set(t,"childNode",n)}}})],1)]),t.childNode&&t.childNode?n("nodeWrap",{attrs:{nodeConfig:t.childNode,tableId:e.tableId,isTried:e.isTried,directorMaxLevel:e.directorMaxLevel},on:{"update:nodeConfig":function(n){return e.$set(t,"childNode",n)},"update:node-config":function(n){return e.$set(t,"childNode",n)},"update:isTried":function(t){e.isTried=t},"update:is-tried":function(t){e.isTried=t}}}):e._e(),0==i?n("div",{staticClass:"top-left-cover-line"}):e._e(),0==i?n("div",{staticClass:"bottom-left-cover-line"}):e._e(),i==e.nodeConfig.conditionNodes.length-1?n("div",{staticClass:"top-right-cover-line"}):e._e(),i==e.nodeConfig.conditionNodes.length-1?n("div",{staticClass:"bottom-right-cover-line"}):e._e()],1)}))],2),n("addNode",{attrs:{childNodeP:e.nodeConfig.childNode},on:{"update:childNodeP":function(t){return e.$set(e.nodeConfig,"childNode",t)},"update:child-node-p":function(t){return e.$set(e.nodeConfig,"childNode",t)}}})],1)]):e._e(),e.nodeConfig.childNode&&e.nodeConfig.childNode?n("nodeWrap",{attrs:{nodeConfig:e.nodeConfig.childNode,tableId:e.tableId,isTried:e.isTried,directorMaxLevel:e.directorMaxLevel,queryInfo:e.queryInfo},on:{"update:nodeConfig":function(t){return e.$set(e.nodeConfig,"childNode",t)},"update:node-config":function(t){return e.$set(e.nodeConfig,"childNode",t)},"update:isTried":function(t){e.isTried=t},"update:is-tried":function(t){e.isTried=t}}}):e._e(),n("ApproverSelector",{ref:"approverSelector",attrs:{queryInfo:e.queryInfo}}),n("NodeConditionConfig",{ref:"conditionForm",attrs:{formData:e.connection,title:e.title,queryInfo:e.queryInfo}})],1)},CY=[],DY=(n("a575"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"add-node-btn-box"},[n("div",{staticClass:"add-node-btn"},[n("el-popover",{attrs:{placement:"right-start"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[n("div",{staticClass:"add-node-popover-body"},[n("a",{staticClass:"add-node-popover-item approver",on:{click:function(t){return e.addType(1)}}},[n("div",{staticClass:"item-wrapper"},[n("span",{staticClass:"iconfont"},[e._v("")]),n("p",[e._v("审批人")])])]),n("a",{staticClass:"add-node-popover-item notifier",on:{click:function(t){return e.addType(2)}}},[n("div",{staticClass:"item-wrapper"},[n("span",{staticClass:"iconfont"},[e._v("")]),n("p",[e._v("抄送人")])])]),n("a",{staticClass:"add-node-popover-item condition",on:{click:function(t){return e.addType(4)}}},[n("div",{staticClass:"item-wrapper"},[n("span",{staticClass:"iconfont"},[e._v("")]),n("p",[e._v("条件分支")])])])]),n("button",{staticClass:"btn",attrs:{slot:"reference",type:"button"},slot:"reference"},[n("span",{staticClass:"iconfont"},[e._v("")])])])],1)])}),LY=[],TY={props:["childNodeP"],data:function(){return{visible:!1}},methods:{addType:function(e){var t;(this.visible=!1,4!=e)?(1==e?t={nodeName:"审批人",error:!0,type:1,setType:1,directorLevel:1,examineMode:"3",authType:"1",childNode:this.childNodeP,nodeUserList:[]}:2==e&&(t={nodeName:"抄送人",type:2,ccSelfSelectFlag:1,childNode:this.childNodeP,nodeUserList:[]}),this.$emit("update:childNodeP",t)):this.$emit("update:childNodeP",{nodeName:"路由",type:4,childNode:null,conditionNodes:[{nodeName:"条件1",error:!0,type:3,priority:1,conditionList:[],nodeUserList:[],childNode:this.childNodeP},{nodeName:"条件2",type:3,priority:2,conditionList:[],nodeUserList:[],childNode:null}]})}}},EY=TY,PY=uO(EY,DY,LY,!1,null,null,null),jY=PY.exports,OY={props:["nodeConfig","flowPermission","directorMaxLevel","isTried","tableId","queryInfo"],components:{ApproverSelector:fY,NodeConditionConfig:KI,addNode:jY},name:"nodeWrap",data:function(){return{placeholderList:["发起人","审批人","抄送人"],isInputList:[],isInput:!1,approverConfig:{},copyerConfig:{},ccSelfSelectFlag:[],conditionConfig:{},conditionsConfig:{conditionNodes:[]},bPriorityLevel:"",conditions:[],conditionList:[],connection:{},title:""}},mounted:function(){if(1==this.nodeConfig.type)this.nodeConfig.error=!this.setApproverStr(this.nodeConfig);else if(2==this.nodeConfig.type)this.nodeConfig.error=!this.copyerStr(this.nodeConfig);else if(4==this.nodeConfig.type)for(var e=0;e<this.nodeConfig.conditionNodes.length;e++)this.nodeConfig.conditionNodes[e].error="请设置条件"==this.conditionStr(this.nodeConfig.conditionNodes[e],e)&&e!=this.nodeConfig.conditionNodes.length-1},created:function(){},methods:{clickEvent:function(e){e||0===e?this.$set(this.isInputList,e,!0):this.isInput=!0},blurEvent:function(e){e||0===e?(this.$set(this.isInputList,e,!1),this.nodeConfig.conditionNodes[e].nodeName=this.nodeConfig.conditionNodes[e].nodeName?this.nodeConfig.conditionNodes[e].nodeName:"条件"):(this.isInput=!1,this.nodeConfig.nodeName=this.nodeConfig.nodeName?this.nodeConfig.nodeName:this.placeholderList[this.nodeConfig.type])},setPerson:function(e,t){var n=this.nodeConfig.type;0==n||(1==n?(this.$refs.approverSelector.init(this.nodeConfig),this.approverConfig=JSON.parse(JSON.stringify(this.nodeConfig)),this.approverConfig.setType=this.approverConfig.setType?this.approverConfig.setType:1):2==n?(this.$refs.approverSelector.init(this.nodeConfig),this.copyerConfig=JSON.parse(JSON.stringify(this.nodeConfig)),this.ccSelfSelectFlag=0==this.copyerConfig.ccSelfSelectFlag?[]:[this.copyerConfig.ccSelfSelectFlag]):(this.bPriorityLevel=e,this.conditionsConfig=JSON.parse(JSON.stringify(this.nodeConfig)),this.conditionConfig=this.conditionsConfig.conditionNodes[e-1],this.$refs.conditionForm.nodeConditionHandler(),this.fillConditionForm(this.conditionConfig)))},changeType:function(e){this.approverConfig.nodeUserList=[],this.approverConfig.examineMode="3",this.approverConfig.authType="1",2==e&&(this.approverConfig.directorLevel=0),this.approverConfig.setType=e},noHanderActionChange:function(e){this.approverConfig.authType=e},directorLevelChange:function(e){this.approverConfig.directorLevel=e},examineModeChange:function(e){this.approverConfig.examineMode=e},submitApprover:function(e){e.approverType;var t=e.approvers;e.directorType,e.notifiers;this.approverConfig.nodeUserList=[],1==this.approverConfig.setType&&(this.approverConfig.nodeUserList=t),this.saveApprover(),this.$refs.approverSelector.showApproverSelector()},saveApprover:function(){this.approverConfig.error=!this.setApproverStr(this.approverConfig),this.$emit("update:nodeConfig",this.approverConfig)},setApproverStr:function(e){if(1==e.setType){if(1==e.nodeUserList.length)return e.nodeUserList[0].userName;if(e.nodeUserList.length>1){if("1"==e.examineMode)return e.nodeUserList.length+"人会签";if("2"==e.examineMode)return e.nodeUserList.length+"人或签";if("3"==e.examineMode)return e.nodeUserList.length+"人依次审批"}}else if(2==e.setType){var t=0==e.directorLevel?"直接主管":"第"+(parseInt(e.directorLevel)+1)+"级主管";if("1"==e.examineMode)return t+"会签";if("2"==e.examineMode)return t+"人或签";if("3"==e.examineMode)return t+"人依次审批"}},arrToStr:function(e){if(e)return e.map((function(e){return e.userName})).toString()},submitCopyer:function(e){e.approverType,e.approvers;var t=e.notifiers;e.passCopy,e.directorType;this.copyerConfig.nodeUserList=t,this.saveCopyer(),this.$refs.approverSelector.showApproverSelector()},saveCopyer:function(){this.copyerConfig.ccSelfSelectFlag=0==this.ccSelfSelectFlag.length?0:1,this.copyerConfig.error=!this.copyerStr(this.copyerConfig),this.$emit("update:nodeConfig",this.copyerConfig)},copyerStr:function(e){if(0!=e.nodeUserList.length)return this.arrToStr(e.nodeUserList)},delNode:function(){this.$emit("update:nodeConfig",this.nodeConfig.childNode)},addTerm:function(){var e=this.nodeConfig.conditionNodes.length+1;this.nodeConfig.conditionNodes.push({nodeName:"条件"+e,type:3,priority:e,conditionList:[],nodeUserList:[],childNode:null});for(var t=0;t<this.nodeConfig.conditionNodes.length;t++)this.nodeConfig.conditionNodes[t].error="请设置条件"==this.conditionStr(this.nodeConfig.conditionNodes[t],t)&&t!=this.nodeConfig.conditionNodes.length-1;this.$emit("update:nodeConfig",this.nodeConfig)},delTerm:function(e){this.nodeConfig.conditionNodes.splice(e,1);for(var t=0;t<this.nodeConfig.conditionNodes.length;t++)this.nodeConfig.conditionNodes[t].error="请设置条件"==this.conditionStr(this.nodeConfig.conditionNodes[t],t)&&t!=this.nodeConfig.conditionNodes.length-1;this.$emit("update:nodeConfig",this.nodeConfig),1==this.nodeConfig.conditionNodes.length&&(this.nodeConfig.childNode&&(this.nodeConfig.conditionNodes[0].childNode?this.reData(this.nodeConfig.conditionNodes[0].childNode,this.nodeConfig.childNode):this.nodeConfig.conditionNodes[0].childNode=this.nodeConfig.childNode),this.$emit("update:nodeConfig",this.nodeConfig.conditionNodes[0].childNode))},reData:function(e,t){e.childNode?this.reData(e.childNode,t):e.childNode=t},fillConditionForm:function(e){var t={};e.conditionList.forEach((function(e,n){e.isArray&&"userId"!=e.variable&&(e.value=e.value.split(",")),["input","sponsor"].includes(e.ele)||(e.value=e.value.split(","),e.value.map((function(t,n){return e.value[n]=parseInt(t)}))),t[e.variable]=e})),this.connection=t,this.title=e.nodeName},saveCondition:function(){var e=this.conditionsConfig.conditionNodes.splice(this.bPriorityLevel-1,1);this.conditionsConfig.conditionNodes.splice(this.conditionConfig.priority-1,0,e[0]),this.conditionsConfig.conditionNodes.map((function(e,t){return e.priority=t+1}));for(var t=0;t<this.conditionsConfig.conditionNodes.length;t++)this.conditionsConfig.conditionNodes[t].error="请设置条件"==this.conditionStr(this.conditionsConfig.conditionNodes[t],t)&&t!=this.conditionsConfig.conditionNodes.length-1;this.$emit("update:nodeConfig",this.conditionsConfig)},submitCondition:function(e){var t=e.form,n=e.desc;e.SxyData;for(var i in this.conditionConfig.nodeUserList=[],this.conditionConfig.conditionList=[],this.conditionConfig.desc=n,t.userId&&(this.conditionConfig.nodeUserList=t.userId.sponsors),t){var r=void 0;Array.isArray(t[i].value)&&(r={value:t[i].value.join(",")}),this.conditionConfig.conditionList.push(s(s({},t[i]),{},{variable:i},r))}this.saveCondition(),this.$refs.conditionForm.nodeConditionHandler()},conditionStr:function(e,t){var n=e.conditionList;e.nodeUserList;return 0==n.length?t==this.nodeConfig.conditionNodes.length-1&&0!=this.nodeConfig.conditionNodes[0].conditionList.length?"其他条件进入此流程":"请设置条件":e.desc?e.desc.join(";"):void 0},arrTransfer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.nodeConfig.conditionNodes[e]=this.nodeConfig.conditionNodes.splice(e+t,1,this.nodeConfig.conditionNodes[e])[0],this.nodeConfig.conditionNodes.map((function(e,t){e.priority=t+1}));for(var n=0;n<this.nodeConfig.conditionNodes.length;n++)this.nodeConfig.conditionNodes[n].error="请设置条件"==this.conditionStr(this.nodeConfig.conditionNodes[n],n)&&n!=this.nodeConfig.conditionNodes.length-1;this.$emit("update:nodeConfig",this.nodeConfig)}}},IY=OY,YY=(n("94b8"),uO(IY,SY,CY,!1,null,"2e4fa73a",null)),AY=YY.exports,NY={name:"Process",components:{OldProcess:MY,nodeWrap:AY},props:{path:{type:String,default:function(){return"/index"}},queryInfo:{type:Object,default:function(){return{name:"公告管理",type:"notice"}}},userInfo:{type:Object,default:function(){return{companyNo:"202008267425615",no:""}}},formBuilder:{type:Object,default:function(){return{formDesId:""}}}},data:function(){return{isTried:!1,tipList:[],tipVisible:!1,nowVal:100,processConfig:{},nodeConfig:{},workFlowDef:{},flowPermission:[],directorMaxLevel:0,dialogVisible:!0,tableId:"",isFlg:!0,isOldData:!1,oldModal:!1,type:null,processId:null}},mounted:function(){},created:function(){this.getProcessSet(),this.type="/index"==this.path?"customForm_"+this.formBuilder.formDesId:this.queryInfo.type},methods:{initData:function(e){this.processConfig=e,this.processConfig.processId=this.processId,this.nodeConfig=this.processConfig.nodeConfig,this.flowPermission=this.processConfig.flowPermission,this.directorMaxLevel=this.processConfig.directorMaxLevel,this.workFlowDef={switchOn:!!parseInt(this.processConfig.switchOn),automaticPass:!!parseInt(this.processConfig.automaticPass)}},getProcessSet:function(){var e=this;return d(regeneratorRuntime.mark((function t(){var n,i,r,o,a,s,l;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n={companyId:e.userInfo.companyNo,type:e.queryInfo.type},t.next=3,qj(n);case 3:i=t.sent,r=i.data,o=r.state,a=r.data,"ok"==o&&a?(e.processId=a._id,s=a.content,l=a.rootNode,l.isNewVersion?e.initData(JSON.parse(s)):(e.isOldData=!0,e.initData(e.handleOldProcess(s)))):e.initData(JSON.parse(JSON.stringify(f.data)));case 6:case"end":return t.stop()}}),t)})))()},handleOldProcess:function(e){var t=this,n=JSON.parse(e),i=n.nodeList,r=n.companyId,o=n.creator,a=n.describe,s=n.processName,l=n.switchOn,u=n.type,c=n.version,d=i.filter((function(e){return!["start","end"].includes(e.item.type)})),h={companyId:r,creator:o,describe:a,nodeConfig:{pkId:"sid-start-node",nodeName:"发起人",type:0,priority:"",setType:"",directorLevel:"",examineMode:"",authType:"",ccSelfSelectFlag:"",conditionList:[],nodeUserList:[],childNode:null,conditionNodes:[]},processId:this.processId,processName:s,switchOn:l,automaticPass:0,type:u,version:c},f=d.filter((function(e){return"addCondition"==e.item.type}));if(!f.length){var p={},m=[];d.map((function(e,n){d[n].item=t.createTypeData(e.item),delete d[n].lists,delete d[n].level})),d.forEach((function(e){p[e.item.id]=e.item})),d.forEach((function(e){var t=p[parseInt(e.item.from)];t?(t.children||(t.children=[])).push(e.item):m.push(e.item)})),this.flatChildNode(m[0]),h.nodeConfig.childNode=m[0]}return h},flatChildNode:function(e){e.childNode=e.children&&e.children[0]?e.children[0]:null,e.children&&e.children[0]&&(e.children[0].children&&this.flatChildNode(e.children[0]),delete e.id,delete e.from,delete e.children,delete e.childNode.id,delete e.childNode.from)},createTypeData:function(e){var t={};return"userTask"==e.type?t={nodeName:"审批人",type:1,priority:1,setType:e.directorType&&e.directorType.type||1,directorLevel:"3"==e.approverType?e.approvers[0].directorId:"",examineMode:e.approverType,authType:e.directorType&&e.directorType.type||"1",ccSelfSelectFlag:1,conditionList:[],nodeUserList:e.approvers||[],childNode:null,conditionNodes:[],error:!1,id:e.id,from:e.from}:"ccTask"==e.type&&(t={ccSelfSelectFlag:1,error:!1,type:2,nodeName:"抄送人",nodeUserList:e.notifiers,id:e.id,from:e.from}),t},showOldModal:function(){this.oldModal=!this.oldModal},toReturn:function(){},reErr:function(e){if(e.childNode){if(1==e.childNode.type)e.childNode.error&&this.tipList.push({name:e.childNode.nodeName,type:"审批人"}),this.reErr(e.childNode);else if(2==e.childNode.type)e.childNode.error&&this.tipList.push({name:e.childNode.nodeName,type:"抄送人"}),this.reErr(e.childNode);else if(3==e.childNode.type)this.reErr(e.childNode.childNode);else if(4==e.childNode.type){this.reErr(e.childNode);for(var t=0;t<e.childNode.conditionNodes.length;t++)e.childNode.conditionNodes[t].error&&this.tipList.push({name:e.childNode.conditionNodes[t].nodeName,type:"条件"}),this.reErr(e.childNode.conditionNodes[t])}}else e.childNode=null},saveSet:function(){var e=this;return d(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.isTried=!0,e.tipList=[],e.reErr(e.nodeConfig),0==e.tipList.length){t.next=6;break}return e.tipVisible=!0,t.abrupt("return");case 6:if(e.processConfig.flowPermission=e.flowPermission,e.processConfig=s(s({},e.processConfig),{},{switchOn:e.workFlowDef.switchOn?1:0,automaticPass:e.workFlowDef.automaticPass?1:0,creator:e.userInfo.no,companyId:e.userInfo.companyNo,type:e.type,processName:e.queryInfo.name,describe:e.queryInfo.name}),!e.processConfig.processId){t.next=14;break}return t.next=11,Vj(e.processConfig);case 11:n=t.sent,t.next=17;break;case 14:return t.next=16,Bj(e.processConfig);case 16:n=t.sent;case 17:"ok"==n.data.state?(e.$message.success({message:e.processConfig.processId?"编辑成功":"保存成功",duration:1500}),-1==e.type.indexOf("customForm_")&&(e.$removeTag1(e.$route),e.$router.go(-1))):(e.isTried=!1,e.$message.error({message:n.data.msg?n.data.msg:"保存失败",duration:1500}));case 18:case"end":return t.stop()}}),t)})))()},cancel:function(){var e=this;this.$confirm("有修改的内容未保存,确认离开吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.$removeTag1(e.$route),e.$router.go(-1)})).catch((function(){}))},zoomSize:function(e){if(1==e){if(50==this.nowVal)return;this.nowVal-=10}else{if(300==this.nowVal)return;this.nowVal+=10}}}},HY=NY,RY=(n("7662"),uO(HY,l,u,!1,null,"1b97e2f3",null)),FY=RY.exports,zY=[FY],$Y=function e(t){e.installed||(e.installed=!0,zY.map((function(e){t.component(e.name,e)})))};"undefined"!==typeof window&&window.Vue&&$Y(window.Vue);var BY=s({install:$Y},zY);t["default"]=BY},"12cb":function(e,t,n){var i=n("3a08"),r=Math.max,o=Math.min;e.exports=function(e,t){return e=i(e),e<0?r(e+t,0):o(e,t)}},"12e7":function(e,t,n){"use strict";var i=n("3866").charAt;e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},1320:function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
29
29
  //! moment.js locale configuration
30
30
  var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"},n=e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){var n=e%10,i=e>=100?100:null;return e+(t[e]||t[n]||t[i])},week:{dow:1,doy:7}});return n}))},1331:function(e,t,n){var i=n("7bb6"),r=n("357f"),o=n("21d5"),a=r("species");e.exports=function(e){return o>=51||!i((function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"13d6":function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
31
31
  //! moment.js locale configuration
@@ -99,7 +99,7 @@ function t(e){return"undefined"!==typeof Function&&e instanceof Function||"[obje
99
99
  //! moment.js locale configuration
100
100
  var t=e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:0,doy:6}});return t}))},4064:function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
101
101
  //! moment.js locale configuration
102
- var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(t,r,o,a){var s=n(t),l=i[e][n(t)];return 2===s&&(l=l[r?0:1]),l.replace(/%d/i,t)}},o=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],a=e.defineLocale("ar-ly",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}});return a}))},4074:function(e,t,n){var i=n("faec");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("5925").default;r("737d2dca",i,!0,{sourceMap:!1,shadowMode:!1})},"40b2":function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},"41a9":function(e,t,n){var i=n("357f"),r=i("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[r]=function(){return this},Array.from(s,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(l){}return n}},"426c":function(e,t,n){var i=n("357b");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("5925").default;r("748eecf4",i,!0,{sourceMap:!1,shadowMode:!1})},"428a":function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
102
+ var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(t,r,o,a){var s=n(t),l=i[e][n(t)];return 2===s&&(l=l[r?0:1]),l.replace(/%d/i,t)}},o=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],a=e.defineLocale("ar-ly",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}});return a}))},"40b2":function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},"41a9":function(e,t,n){var i=n("357f"),r=i("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[r]=function(){return this},Array.from(s,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(l){}return n}},"426c":function(e,t,n){var i=n("357b");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("5925").default;r("748eecf4",i,!0,{sourceMap:!1,shadowMode:!1})},"428a":function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
103
103
  //! moment.js locale configuration
104
104
  var t=e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t}))},4348:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAACAUlEQVRIS8VXO0xUQRQ9hxUIkcJgdqFTY2yobUyEfZUSYmWBBYmflUIrI6XagZQaKijgoSQUUlgRRKrFmNhYW2iM2LFvI7HAEMDlkHnrbhbf231DNjDT3nvOmXvn3pk7hM2SmH1VvErhGqTLIi4COPMP+pvCd5CfRayu3U1/BKkkWjZyuLKojratwgMKj0CeSyIL7dJPEZO7nd3Tn4a4XQ9TV9ibCQbQoikA560Eo07r2OfD/EhmJQ4fK+z5wbigJwQaZiRpQwJEcCKfyzz73zdC7M1tzEC8n0R6JDs1m7/XM1KLOSRsIgX09Eik1s58Xht5VdicqVq0bJvejlNl6PbfxAIu15xJ+z4HK2ceok31tm8FX2wLyYDeDJ0NCW8t/jKktmt9pzPTa6o9FM76G48JvrBFt6WA97czofv1+QC7JVukiVyja7mel4REzy/8sO5TAM0Imz7P57ovMDsX9FH6YL/nJoXNeZP99PxgDFCkzxptpKmIQ2KO05stvAMxcJIRQ1hh1i98JXCp3rXWmopaWlPE0nA6NNxYKGKvFK3rvVLYQrFLwDcjHBAos9Qs06evb3YhfTpG2SI9xT8l3Hm7GdvnAopOhd2k2llxOWsnZxeIsyvT3SPh8lk0UTsZBCoXkZPRpyruYtirjfzEx9uquIuBviLu5Atz6OU7hk/bAdcdVGYiysgaAAAAAElFTkSuQmCC"},4367:function(e,t,n){"use strict";t.__esModule=!0;var i=n("d7d8"),r=l(i),o=n("7aa9"),a=l(o),s="function"===typeof a.default&&"symbol"===typeof r.default?function(e){return typeof e}:function(e){return e&&"function"===typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":typeof e};function l(e){return e&&e.__esModule?e:{default:e}}t.default="function"===typeof a.default&&"symbol"===s(r.default)?function(e){return"undefined"===typeof e?"undefined":s(e)}:function(e){return e&&"function"===typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":"undefined"===typeof e?"undefined":s(e)}},"43ce":function(e,t){e.exports={}},4409:function(e,t,n){var i=n("4b9f"),r=n("946b"),o=n("0cc5");e.exports=function(e){var t=i(e),n=r.f;if(n){var a,s=n(e),l=o.f,u=0;while(s.length>u)l.call(e,a=s[u++])&&t.push(a)}return t}},"455e":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"459d":function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
105
105
  //! moment.js locale configuration
@@ -107,7 +107,7 @@ var t=e.defineLocale("th",{months:"มกราคม_กุมภาพัน
107
107
  //! moment.js locale configuration
108
108
  function t(e,t,n,i){var r={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?r[n][2]?r[n][2]:r[n][1]:i?r[n][0]:r[n][1]}var n=e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n}))},4652:function(e,t,n){"use strict";var i,r,o,a=n("7bb6"),s=n("92e1"),l=n("3004"),u=n("2561"),c=n("ae12"),d=n("357f"),h=n("7195"),f=d("iterator"),p=!1;[].keys&&(o=[].keys(),"next"in o?(r=u(u(o)),r!==Object.prototype&&(i=r)):p=!0);var m=void 0==i||a((function(){var e={};return i[f].call(e)!==e}));m?i={}:h&&(i=l(i)),s(i[f])||c(i,f,(function(){return this})),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:p}},"46f3":function(e,t,n){(function(){"undefined"==typeof Math.sgn&&(Math.sgn=function(e){return 0==e?0:e>0?1:-1});var e={subtract:function(e,t){return{x:e.x-t.x,y:e.y-t.y}},dotProduct:function(e,t){return e.x*t.x+e.y*t.y},square:function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},scale:function(e,t){return{x:e.x*t,y:e.y*t}}},n=64,i=Math.pow(2,-n-1),r=function(t,n){for(var i=[],r=a(t,n),o=n.length-1,l=2*o-1,u=s(r,l,i,0),c=e.subtract(t,n[0]),h=e.square(c),f=0,p=0;p<u;p++){c=e.subtract(t,d(n,o,i[p],null,null));var m=e.square(c);m<h&&(h=m,f=i[p])}return c=e.subtract(t,n[o]),m=e.square(c),m<h&&(h=m,f=1),{location:f,distance:h}},o=function(e,t){var n=r(e,t);return{point:d(t,t.length-1,n.location,null,null),location:n.location}},a=function(t,n){for(var i=n.length-1,r=2*i-1,o=[],a=[],s=[],l=[],u=[[1,.6,.3,.1],[.4,.6,.6,.4],[.1,.3,.6,1]],c=0;c<=i;c++)o[c]=e.subtract(n[c],t);for(c=0;c<=i-1;c++)a[c]=e.subtract(n[c+1],n[c]),a[c]=e.scale(a[c],3);for(var d=0;d<=i-1;d++)for(var h=0;h<=i;h++)s[d]||(s[d]=[]),s[d][h]=e.dotProduct(a[d],o[h]);for(c=0;c<=r;c++)l[c]||(l[c]=[]),l[c].y=0,l[c].x=parseFloat(c)/r;for(var f=i,p=i-1,m=0;m<=f+p;m++){var v=Math.max(0,m-p),g=Math.min(m,f);for(c=v;c<=g;c++){var y=m-c;l[c+y].y+=s[y][c]*u[y][c]}}return l},s=function(e,t,i,r){var o,a,h=[],f=[],p=[],m=[];switch(l(e,t)){case 0:return 0;case 1:if(r>=n)return i[0]=(e[0].x+e[t].x)/2,1;if(u(e,t))return i[0]=c(e,t),1;break}d(e,t,.5,h,f),o=s(h,t,p,r+1),a=s(f,t,m,r+1);for(var v=0;v<o;v++)i[v]=p[v];for(v=0;v<a;v++)i[v+o]=m[v];return o+a},l=function(e,t){var n,i,r=0;n=i=Math.sgn(e[0].y);for(var o=1;o<=t;o++)n=Math.sgn(e[o].y),n!=i&&r++,i=n;return r},u=function(e,t){var n,r,o,a,s,l,u,c,d,h,f,p,m,v,g,y,b,_;l=e[0].y-e[t].y,u=e[t].x-e[0].x,c=e[0].x*e[t].y-e[t].x*e[0].y,b=_=0;for(var w=1;w<t;w++){var x=l*e[w].x+u*e[w].y+c;x>b?b=x:x<_&&(_=x)}return f=0,p=1,m=0,v=l,g=u,y=c-b,d=f*g-v*p,h=1/d,r=(p*y-g*m)*h,v=l,g=u,y=c-_,d=f*g-v*p,h=1/d,o=(p*y-g*m)*h,a=Math.min(r,o),s=Math.max(r,o),n=s-a,n<i?1:0},c=function(e,t){var n=1,i=0,r=e[t].x-e[0].x,o=e[t].y-e[0].y,a=e[0].x-0,s=e[0].y-0,l=r*i-o*n,u=1/l,c=(r*s-o*a)*u;return 0+n*c},d=function(e,t,n,i,r){for(var o=[[]],a=0;a<=t;a++)o[0][a]=e[a];for(var s=1;s<=t;s++)for(a=0;a<=t-s;a++)o[s]||(o[s]=[]),o[s][a]||(o[s][a]={}),o[s][a].x=(1-n)*o[s-1][a].x+n*o[s-1][a+1].x,o[s][a].y=(1-n)*o[s-1][a].y+n*o[s-1][a+1].y;if(null!=i)for(a=0;a<=t;a++)i[a]=o[a][0];if(null!=r)for(a=0;a<=t;a++)r[a]=o[t-a][a];return o[t][0]},h={},f=function(e){var t=h[e];if(!t){t=[];var n=function(){return function(t){return Math.pow(t,e)}},i=function(){return function(t){return Math.pow(1-t,e)}},r=function(e){return function(t){return e}},o=function(){return function(e){return e}},a=function(){return function(e){return 1-e}},s=function(e){return function(t){for(var n=1,i=0;i<e.length;i++)n*=e[i](t);return n}};t.push(new n);for(var l=1;l<e;l++){for(var u=[new r(e)],c=0;c<e-l;c++)u.push(new o);for(c=0;c<l;c++)u.push(new a);t.push(new s(u))}t.push(new i),h[e]=t}return t},p=function(e,t){for(var n=f(e.length-1),i=0,r=0,o=0;o<e.length;o++)i+=e[o].x*n[o](t),r+=e[o].y*n[o](t);return{x:i,y:r}},m=function(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},v=function(e){return e[0].x===e[1].x&&e[0].y===e[1].y},g=function(e,t,n){if(v(e))return{point:e[0],location:t};var i=p(e,t),r=0,o=t,a=n>0?1:-1,s=null;while(r<Math.abs(n))o+=.005*a,s=p(e,o),r+=m(s,i),i=s;return{point:s,location:o}},y=function(e){var t=(new Date).getTime();if(v(e))return 0;var n=p(e,0),i=0,r=0,o=1,a=null;while(r<1)r+=.005*o,a=p(e,r),i+=m(a,n),n=a;return console.log("length",(new Date).getTime()-t),i},b=function(e,t,n){return g(e,t,n).point},_=function(e,t,n){return g(e,t,n).location},w=function(e,t){var n=p(e,t),i=p(e.slice(0,e.length-1),t),r=i.y-n.y,o=i.x-n.x;return 0===r?1/0:Math.atan(r/o)},x=function(e,t,n){var i=g(e,t,n);return i.location>1&&(i.location=1),i.location<0&&(i.location=0),w(e,i.location)},k=function(e,t,n,i){i=null==i?0:i;var r=g(e,t,i),o=w(e,r.location),a=Math.atan(-1/o),s=n/2*Math.sin(a),l=n/2*Math.cos(a);return[{x:r.point.x+l,y:r.point.y+s},{x:r.point.x-l,y:r.point.y-s}]},M=function(e,t,n,i,r){var o=i-t,a=e-n,s=e*(t-i)+t*(n-e),l=L(r),u=[o*l[0][0]+a*l[1][0],o*l[0][1]+a*l[1][1],o*l[0][2]+a*l[1][2],o*l[0][3]+a*l[1][3]+s],c=E.apply(null,u),d=[];if(null!=c)for(var h=0;h<3;h++){var f,p=c[h],m=Math.pow(p,2),v=Math.pow(p,3),g=[l[0][0]*v+l[0][1]*m+l[0][2]*p+l[0][3],l[1][0]*v+l[1][1]*m+l[1][2]*p+l[1][3]];f=n-e!==0?(g[0]-e)/(n-e):(g[1]-t)/(i-t),p>=0&&p<=1&&f>=0&&f<=1&&d.push(g)}return d},S=function(e,t,n,i,r){var o=[];return o.push.apply(o,M(e,t,e+n,t,r)),o.push.apply(o,M(e+n,t,e+n,t+i,r)),o.push.apply(o,M(e+n,t+i,e,t+i,r)),o.push.apply(o,M(e,t+i,e,t,r)),o},C=function(e,t){var n=[];return n.push.apply(n,M(e.x,e.y,e.x+e.w,e.y,t)),n.push.apply(n,M(e.x+e.w,e.y,e.x+e.w,e.y+e.h,t)),n.push.apply(n,M(e.x+e.w,e.y+e.h,e.x,e.y+e.h,t)),n.push.apply(n,M(e.x,e.y+e.h,e.x,e.y,t)),n};function D(e,t){return[-e[0][t]+3*e[1][t]+-3*e[2][t]+e[3][t],3*e[0][t]-6*e[1][t]+3*e[2][t],-3*e[0][t]+3*e[1][t],e[0][t]]}function L(e){return[D(e,"x"),D(e,"y")]}function T(e){return e<0?-1:e>0?1:0}function E(e,t,n,i){var r,o,a=t/e,s=n/e,l=i/e,u=(3*s-Math.pow(a,2))/9,c=(9*a*s-27*l-2*Math.pow(a,3))/54,d=Math.pow(u,3)+Math.pow(c,2),h=[];if(d>=0)r=T(c+Math.sqrt(d))*Math.pow(Math.abs(c+Math.sqrt(d)),1/3),o=T(c-Math.sqrt(d))*Math.pow(Math.abs(c-Math.sqrt(d)),1/3),h[0]=-a/3+(r+o),h[1]=-a/3-(r+o)/2,h[2]=-a/3-(r+o)/2,0!==Math.abs(Math.sqrt(3)*(r-o)/2)&&(h[1]=-1,h[2]=-1);else{var f=Math.acos(c/Math.sqrt(-Math.pow(u,3)));h[0]=2*Math.sqrt(-u)*Math.cos(f/3)-a/3,h[1]=2*Math.sqrt(-u)*Math.cos((f+2*Math.PI)/3)-a/3,h[2]=2*Math.sqrt(-u)*Math.cos((f+4*Math.PI)/3)-a/3}for(var p=0;p<3;p++)(h[p]<0||h[p]>1)&&(h[p]=-1);return h}var P=this.jsBezier={distanceFromCurve:r,gradientAtPoint:w,gradientAtPointAlongCurveFrom:x,nearestPointOnCurve:o,pointOnCurve:p,pointAlongCurveFrom:b,perpendicularToCurveAt:k,locationAlongCurveFrom:_,getLength:y,lineIntersection:M,boxIntersection:S,boundingBoxIntersection:C,version:"0.9.0"};t.jsBezier=P}).call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,n=e.Biltong={version:"0.4.0"};t.Biltong=n;var i=function(e){return"[object Array]"===Object.prototype.toString.call(e)},r=function(e,t,n){return e=i(e)?e:[e.x,e.y],t=i(t)?t:[t.x,t.y],n(e,t)},o=n.gradient=function(e,t){return r(e,t,(function(e,t){return t[0]==e[0]?t[1]>e[1]?1/0:-1/0:t[1]==e[1]?t[0]>e[0]?0:-0:(t[1]-e[1])/(t[0]-e[0])}))},a=(n.normal=function(e,t){return-1/o(e,t)},n.lineLength=function(e,t){return r(e,t,(function(e,t){return Math.sqrt(Math.pow(t[1]-e[1],2)+Math.pow(t[0]-e[0],2))}))},n.quadrant=function(e,t){return r(e,t,(function(e,t){return t[0]>e[0]||t[0]==e[0]?t[1]>e[1]?2:1:t[1]>e[1]?3:4}))}),s=(n.theta=function(e,t){return r(e,t,(function(e,t){var n=o(e,t),i=Math.atan(n),r=a(e,t);return 4!=r&&3!=r||(i+=Math.PI),i<0&&(i+=2*Math.PI),i}))},n.intersects=function(e,t){var n=e.x,i=e.x+e.w,r=e.y,o=e.y+e.h,a=t.x,s=t.x+t.w,l=t.y,u=t.y+t.h;return n<=a&&a<=i&&r<=l&&l<=o||n<=s&&s<=i&&r<=l&&l<=o||n<=a&&a<=i&&r<=u&&u<=o||n<=s&&a<=i&&r<=u&&u<=o||a<=n&&n<=s&&l<=r&&r<=u||a<=i&&i<=s&&l<=r&&r<=u||a<=n&&n<=s&&l<=o&&o<=u||a<=i&&n<=s&&l<=o&&o<=u},n.encloses=function(e,t,n){var i=e.x,r=e.x+e.w,o=e.y,a=e.y+e.h,s=t.x,l=t.x+t.w,u=t.y,c=t.y+t.h,d=function(e,t,i,r){return n?e<=t&&i>=r:e<t&&i>r};return d(i,s,r,l)&&d(o,u,a,c)},[null,[1,-1],[1,1],[-1,1],[-1,-1]]),l=[null,[-1,-1],[-1,1],[1,1],[1,-1]];n.pointOnLine=function(e,t,n){var i=o(e,t),r=a(e,t),u=n>0?s[r]:l[r],c=Math.atan(i),d=Math.abs(n*Math.sin(c))*u[1],h=Math.abs(n*Math.cos(c))*u[0];return{x:e.x+h,y:e.y+d}},n.perpendicularLineTo=function(e,t,n){var i=o(e,t),r=Math.atan(-1/i),a=n/2*Math.sin(r),s=n/2*Math.cos(r);return[{x:t.x+s,y:t.y+a},{x:t.x-s,y:t.y-a}]}}.call("undefined"!==typeof window?window:this),function(){"use strict";function e(e,t,n,i,r,o,a,s){return new Touch({target:t,identifier:A(),pageX:n,pageY:i,screenX:r,screenY:o,clientX:a||r,clientY:s||o})}function n(){var e=[];return Array.prototype.push.apply(e,arguments),e.item=function(e){return this[e]},e}function i(t,i,r,o,a,s,l,u){return n(e.apply(null,arguments))}var r=this,o=function(e,t,n){n=n||e.parentNode;for(var i=n.querySelectorAll(t),r=0;r<i.length;r++)if(i[r]===e)return!0;return!1},a=function(e){return"string"==typeof e||e.constructor===String?document.getElementById(e):e},s=function(e){return e.srcElement||e.target},l=function(e,t,n,i){if(i){if("undefined"!==typeof e.path&&e.path.indexOf)return{path:e.path,end:e.path.indexOf(n)};var r={path:[],end:-1},o=function(e){r.path.push(e),e===n?r.end=r.path.length-1:null!=e.parentNode&&o(e.parentNode)};return o(t),r}return{path:[t],end:1}},u=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]==t)break;n<e.length&&e.splice(n,1)},c=1,d=function(e,t,n){var i=c++;return e.__ta=e.__ta||{},e.__ta[t]=e.__ta[t]||{},e.__ta[t][i]=n,n.__tauid=i,i},h=function(e,t,n){if(e.__ta&&e.__ta[t]&&delete e.__ta[t][n.__tauid],n.__taExtra){for(var i=0;i<n.__taExtra.length;i++)I(e,n.__taExtra[i][0],n.__taExtra[i][1]);n.__taExtra.length=0}n.__taUnstore&&n.__taUnstore()},f=function(e,t,n,i){if(null==e)return n;var r=e.split(","),a=function(i){a.__tauid=n.__tauid;var u=s(i),c=u,d=l(i,u,t,null!=e);if(-1!=d.end)for(var h=0;h<d.end;h++){c=d.path[h];for(var f=0;f<r.length;f++)o(c,r[f],t)&&n.apply(c,arguments)}};return p(n,i,a),a},p=function(e,t,n){e.__taExtra=e.__taExtra||[],e.__taExtra.push([t,n])},m=function(e,t,n,i){if(w&&k[t]){var r=f(i,e,n,k[t]);O(e,k[t],r,n)}"focus"===t&&null==e.getAttribute("tabindex")&&e.setAttribute("tabindex","1"),O(e,t,f(i,e,n,t),n)},v=function(e,t,n,i){if(null==e.__taSmartClicks){var r=function(t){e.__tad=D(t)},o=function(t){e.__tau=D(t)},a=function(t){if(e.__tad&&e.__tau&&e.__tad[0]===e.__tau[0]&&e.__tad[1]===e.__tau[1])for(var n=0;n<e.__taSmartClicks.length;n++)e.__taSmartClicks[n].apply(s(t),[t])};m(e,"mousedown",r,i),m(e,"mouseup",o,i),m(e,"click",a,i),e.__taSmartClicks=[]}e.__taSmartClicks.push(n),n.__taUnstore=function(){u(e.__taSmartClicks,n)}},g={tap:{touches:1,taps:1},dbltap:{touches:1,taps:2},contextmenu:{touches:2,taps:1}},y=function(e,t){return function(n,i,r,a){if("contextmenu"==i&&x)m(n,i,r,a);else{if(null==n.__taTapHandler){var c=n.__taTapHandler={tap:[],dbltap:[],contextmenu:[],down:!1,taps:0,downSelectors:[]},d=function(i){for(var r=s(i),u=l(i,r,n,null!=a),d=!1,h=0;h<u.end;h++){if(d)return;r=u.path[h];for(var m=0;m<c.downSelectors.length;m++)if(null==c.downSelectors[m]||o(r,c.downSelectors[m],n)){c.down=!0,setTimeout(f,e),setTimeout(p,t),d=!0;break}}},h=function(e){if(c.down){var t,i,r=s(e);c.taps++;var a=j(e);for(var u in g)if(g.hasOwnProperty(u)){var d=g[u];if(d.touches===a&&(1===d.taps||d.taps===c.taps))for(var h=0;h<c[u].length;h++){i=l(e,r,n,null!=c[u][h][1]);for(var f=0;f<i.end;f++)if(t=i.path[f],null==c[u][h][1]||o(t,c[u][h][1],n)){c[u][h][0].apply(t,[e]);break}}}}},f=function(){c.down=!1},p=function(){c.taps=0};m(n,"mousedown",d),m(n,"mouseup",h)}n.__taTapHandler.downSelectors.push(a),n.__taTapHandler[i].push([r,a]),r.__taUnstore=function(){u(n.__taTapHandler[i],r)}}}},b=function(e,t,n,i){for(var r in n.__tamee[e])n.__tamee[e].hasOwnProperty(r)&&n.__tamee[e][r].apply(i,[t])},_=function(){var e=[];return function(t,n,i,r){if(!t.__tamee){t.__tamee={over:!1,mouseenter:[],mouseexit:[]};var a=function(n){var i=s(n);(null==r&&i==t&&!t.__tamee.over||o(i,r,t)&&(null==i.__tamee||!i.__tamee.over))&&(b("mouseenter",n,t,i),i.__tamee=i.__tamee||{},i.__tamee.over=!0,e.push(i))},l=function(n){for(var i=s(n),r=0;r<e.length;r++)i!=e[r]||o(n.relatedTarget||n.toElement,"*",i)||(i.__tamee.over=!1,e.splice(r,1),b("mouseexit",n,t,i))};O(t,"mouseover",f(r,t,a,"mouseover"),a),O(t,"mouseout",f(r,t,l,"mouseout"),l)}i.__taUnstore=function(){delete t.__tamee[n][i.__tauid]},d(t,n,i),t.__tamee[n][i.__tauid]=i}},w="ontouchstart"in document.documentElement||navigator.maxTouchPoints,x="onmousedown"in document.documentElement,k={mousedown:"touchstart",mouseup:"touchend",mousemove:"touchmove"},M=function(){var e=-1;if("Microsoft Internet Explorer"==navigator.appName){var t=navigator.userAgent,n=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");null!=n.exec(t)&&(e=parseFloat(RegExp.$1))}return e}(),S=M>-1&&M<9,C=function(e,t){if(null==e)return[0,0];var n=P(e),i=E(n,0);return[i[t+"X"],i[t+"Y"]]},D=function(e){return null==e?[0,0]:S?[e.clientX+document.documentElement.scrollLeft,e.clientY+document.documentElement.scrollTop]:C(e,"page")},L=function(e){return C(e,"screen")},T=function(e){return C(e,"client")},E=function(e,t){return e.item?e.item(t):e[t]},P=function(e){return e.touches&&e.touches.length>0?e.touches:e.changedTouches&&e.changedTouches.length>0?e.changedTouches:e.targetTouches&&e.targetTouches.length>0?e.targetTouches:[e]},j=function(e){return P(e).length},O=function(e,t,n,i){if(d(e,t,n),i.__tauid=n.__tauid,e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent){var r=t+n.__tauid;e["e"+r]=n,e[r]=function(){e["e"+r]&&e["e"+r](window.event)},e.attachEvent("on"+t,e[r])}},I=function(e,t,n){null!=n&&Y(e,(function(){var i=a(this);if(h(i,t,n),null!=n.__tauid)if(i.removeEventListener)i.removeEventListener(t,n,!1),w&&k[t]&&i.removeEventListener(k[t],n,!1);else if(this.detachEvent){var r=t+n.__tauid;i[r]&&i.detachEvent("on"+t,i[r]),i[r]=null,i["e"+r]=null}n.__taTouchProxy&&I(e,n.__taTouchProxy[1],n.__taTouchProxy[0])}))},Y=function(e,t){if(null!=e){e="undefined"!==typeof Window&&"unknown"!==typeof e.top&&e==e.top?[e]:"string"!==typeof e&&null==e.tagName&&null!=e.length?e:"string"===typeof e?document.querySelectorAll(e):[e];for(var n=0;n<e.length;n++)t.apply(e[n])}},A=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0,n="x"==e?t:3&t|8;return n.toString(16)}))};r.Mottle=function(e){e=e||{};var t=e.clickThreshold||250,n=e.dblClickThreshold||450,r=new _,o=new y(t,n),s=e.smartClicks,l=function(e,t,n,i){null!=n&&Y(e,(function(){var e=a(this);s&&"click"===t?v(e,t,n,i):"tap"===t||"dbltap"===t||"contextmenu"===t?o(e,t,n,i):"mouseenter"===t||"mouseexit"==t?r(e,t,n,i):m(e,t,n,i)}))};this.remove=function(e){return Y(e,(function(){var e=a(this);if(e.__ta)for(var t in e.__ta)if(e.__ta.hasOwnProperty(t))for(var n in e.__ta[t])e.__ta[t].hasOwnProperty(n)&&I(e,t,e.__ta[t][n]);e.parentNode&&e.parentNode.removeChild(e)})),this},this.on=function(e,t,n,i){var r=arguments[0],o=4==arguments.length?arguments[2]:null,a=arguments[1],s=arguments[arguments.length-1];return l(r,a,s,o),this},this.off=function(e,t,n){return I(e,t,n),this},this.trigger=function(e,t,n,r){var o=x&&("undefined"===typeof MouseEvent||null==n||n.constructor===MouseEvent),s=w&&!x&&k[t]?k[t]:t,l=!(w&&!x&&k[t]),u=D(n),c=L(n),d=T(n);return Y(e,(function(){var e,h=a(this);n=n||{screenX:c[0],screenY:c[1],clientX:d[0],clientY:d[1]};var f=function(e){r&&(e.payload=r)},p={TouchEvent:function(e){var t=i(window,h,0,u[0],u[1],c[0],c[1],d[0],d[1]),n=e.initTouchEvent||e.initEvent;n(s,!0,!0,window,null,c[0],c[1],d[0],d[1],!1,!1,!1,!1,t,t,t,1,0)},MouseEvents:function(e){e.initMouseEvent(s,!0,!0,window,0,c[0],c[1],d[0],d[1],!1,!1,!1,!1,1,h)}};if(document.createEvent){var m=!l&&!o&&w&&k[t],v=m?"TouchEvent":"MouseEvents";e=document.createEvent(v),p[v](e),f(e),h.dispatchEvent(e)}else document.createEventObject&&(e=document.createEventObject(),e.eventType=e.eventName=s,e.screenX=c[0],e.screenY=c[1],e.clientX=d[0],e.clientY=d[1],f(e),h.fireEvent("on"+s,e))})),this}},r.Mottle.consume=function(e,t){e.stopPropagation?e.stopPropagation():e.returnValue=!1,!t&&e.preventDefault&&e.preventDefault()},r.Mottle.pageLocation=D,r.Mottle.setForceTouchEvents=function(e){w=e},r.Mottle.setForceMouseEvents=function(e){x=e},r.Mottle.version="0.8.0",t.Mottle=r.Mottle}.call("undefined"===typeof window?this:window),function(){"use strict";var e=this,n=function(e,t,n){return-1===e.indexOf(t)&&(n?e.unshift(t):e.push(t),!0)},i=function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)},r=function(e,t){for(var n=[],i=0;i<e.length;i++)-1===t.indexOf(e[i])&&n.push(e[i]);return n},o=function(e){return null!=e&&("string"===typeof e||e.constructor===String)},a=function(e){var t=e.getBoundingClientRect(),n=document.body,i=document.documentElement,r=window.pageYOffset||i.scrollTop||n.scrollTop,o=window.pageXOffset||i.scrollLeft||n.scrollLeft,a=i.clientTop||n.clientTop||0,s=i.clientLeft||n.clientLeft||0,l=t.top+r-a,u=t.left+o-s;return{top:Math.round(l),left:Math.round(u)}},s=function(e,t,n){n=n||e.parentNode;for(var i=n.querySelectorAll(t),r=0;r<i.length;r++)if(i[r]===e)return!0;return!1},l=function(e,t,n){if(s(t,n,e))return t;var i=t.parentNode;while(null!=i&&i!==e){if(s(i,n,e))return i;i=i.parentNode}},u=function(e,t,n){for(var i=null,r=t.getAttribute("katavorio-draggable"),o=null!=r?"[katavorio-draggable='"+r+"'] ":"",a=0;a<e.length;a++)if(i=l(t,n,o+e[a].selector),null!=i){if(e[a].filter){var u=s(n,e[a].filter,i),c=!0===e[a].filterExclude;if(c&&!u||u)return null}return[e[a],i]}return null},c=function(){var e=-1;if("Microsoft Internet Explorer"===navigator.appName){var t=navigator.userAgent,n=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");null!=n.exec(t)&&(e=parseFloat(RegExp.$1))}return e}(),d=10,h=10,f=c>-1&&c<9,p=9===c,m=function(e){if(f)return[e.clientX+document.documentElement.scrollLeft,e.clientY+document.documentElement.scrollTop];var t=g(e),n=v(t,0);return p?[n.pageX||n.clientX,n.pageY||n.clientY]:[n.pageX,n.pageY]},v=function(e,t){return e.item?e.item(t):e[t]},g=function(e){return e.touches&&e.touches.length>0?e.touches:e.changedTouches&&e.changedTouches.length>0?e.changedTouches:e.targetTouches&&e.targetTouches.length>0?e.targetTouches:[e]},y={delegatedDraggable:"katavorio-delegated-draggable",draggable:"katavorio-draggable",droppable:"katavorio-droppable",drag:"katavorio-drag",selected:"katavorio-drag-selected",active:"katavorio-drag-active",hover:"katavorio-drag-hover",noSelect:"katavorio-drag-no-select",ghostProxy:"katavorio-ghost-proxy",clonedDrag:"katavorio-clone-drag"},b="katavorio-drag-scope",_=["stop","start","drag","drop","over","out","beforeStart"],w=function(){},x=function(){return!0},k=function(e,t,n){for(var i=0;i<e.length;i++)e[i]!=n&&t(e[i])},M=function(e,t,n,i){k(e,(function(e){e.setActive(t),t&&e.updatePosition(),n&&e.setHover(i,t)}))},S=function(e,t){if(null!=e){e=o(e)||null!=e.tagName||null==e.length?[e]:e;for(var n=0;n<e.length;n++)t.apply(e[n],[e[n]])}},C=function(e){e.stopPropagation?(e.stopPropagation(),e.preventDefault()):e.returnValue=!1},D="input,textarea,select,button,option",L=function(e,t,n){var i=e.srcElement||e.target;return!s(i,n.getInputFilterSelector(),t)},T=function(e,t,n,i){this.params=t||{},this.el=e,this.params.addClass(this.el,this._class),this.uuid=I();var r=!0;return this.setEnabled=function(e){r=e},this.isEnabled=function(){return r},this.toggleEnabled=function(){r=!r},this.setScope=function(e){this.scopes=e?e.split(/\s+/):[i]},this.addScope=function(e){var t={};for(var n in S(this.scopes,(function(e){t[e]=!0})),S(e?e.split(/\s+/):[],(function(e){t[e]=!0})),this.scopes=[],t)this.scopes.push(n)},this.removeScope=function(e){var t={};for(var n in S(this.scopes,(function(e){t[e]=!0})),S(e?e.split(/\s+/):[],(function(e){delete t[e]})),this.scopes=[],t)this.scopes.push(n)},this.toggleScope=function(e){var t={};for(var n in S(this.scopes,(function(e){t[e]=!0})),S(e?e.split(/\s+/):[],(function(e){t[e]?delete t[e]:t[e]=!0})),this.scopes=[],t)this.scopes.push(n)},this.setScope(t.scope),this.k=t.katavorio,t.katavorio},E=function(){return!0},P=function(){return!1},j=function(e,t,n,i){this._class=n.draggable;var r=T.apply(this,arguments);this.rightButtonCanDrag=this.params.rightButtonCanDrag;var l,c,f,p,v,g,b=[0,0],_=null,w=null,k=[0,0],S=!1,D=[0,0],j=!1!==this.params.consumeStartEvent,O=this.el,A=this.params.clone,N=(this.params.scroll,!1!==t.multipleDrop),H=!1,R=null,F=[],z=null,$=t.ghostProxyParent;if(l=!0===t.ghostProxy?E:t.ghostProxy&&"function"===typeof t.ghostProxy?t.ghostProxy:function(e,t){return!(!z||!z.useGhostProxy)&&z.useGhostProxy(e,t)},c=t.makeGhostProxy?t.makeGhostProxy:function(e){return z&&z.makeGhostProxy?z.makeGhostProxy(e):e.cloneNode(!0)},t.selector){var B=e.getAttribute("katavorio-draggable");null==B&&(B=""+(new Date).getTime(),e.setAttribute("katavorio-draggable",B)),F.push(t)}var W,V=t.snapThreshold,U=function(e,t,n,i,r){var o=Math.floor(e[0]/t),a=t*o,s=a+t,l=Math.abs(e[0]-a)<=i?a:Math.abs(s-e[0])<=i?s:e[0],u=Math.floor(e[1]/n),c=n*u,d=c+n,h=Math.abs(e[1]-c)<=r?c:Math.abs(d-e[1])<=r?d:e[1];return[l,h]};this.posses=[],this.posseRoles={},this.toGrid=function(e){if(null==this.params.grid)return e;var t=this.params.grid?this.params.grid[0]/2:V||d/2,n=this.params.grid?this.params.grid[1]/2:V||h/2;return U(e,this.params.grid[0],this.params.grid[1],t,n)},this.snap=function(e,t){if(null!=O){e=e||(this.params.grid?this.params.grid[0]:d),t=t||(this.params.grid?this.params.grid[1]:h);var n=this.params.getPosition(O),i=this.params.grid?this.params.grid[0]/2:V,r=this.params.grid?this.params.grid[1]/2:V,o=U(n,e,t,i,r);return this.params.setPosition(O,o),o}},this.setUseGhostProxy=function(e){l=e?E:P};var q=function(e){return!1===t.allowNegative?[Math.max(0,e[0]),Math.max(0,e[1])]:e},G=function(e){W="function"===typeof e?e:e?function(e,t,n,i){return q([Math.max(0,Math.min(n.w-i[0],e[0])),Math.max(0,Math.min(n.h-i[1],e[1]))])}.bind(this):function(e){return q(e)}}.bind(this);G("function"===typeof this.params.constrain?this.params.constrain:this.params.constrain||this.params.containment),this.setConstrain=function(e){G(e)};var K,J=function(e,t,n,i){return null!=z&&z.constrain&&"function"===typeof z.constrain?z.constrain(e,t,n,i):W(e,t,n,i)};this.setRevert=function(e){K=e},this.params.revert&&(K=this.params.revert);var X=function(e){return"function"===typeof e?(e._katavorioId=I(),e._katavorioId):e},Z={},Q=function(e){for(var t in Z){var n=Z[t],i=n[0](e);if(n[1]&&(i=!i),!i)return!1}return!0},ee=this.setFilter=function(t,n){if(t){var i=X(t);Z[i]=[function(n){var i,r=n.srcElement||n.target;return o(t)?i=s(r,t,e):"function"===typeof t&&(i=t(n,e)),i},!1!==n]}};this.addFilter=ee,this.removeFilter=function(e){var t="function"===typeof e?e._katavorioId:e;delete Z[t]};this.clearAllFilters=function(){Z={}},this.canDrag=this.params.canDrag||x;var te,ne=[],ie=[];this.addSelector=function(e){e.selector&&F.push(e)},this.downListener=function(e){if(!e.defaultPrevented){var t=this.rightButtonCanDrag||3!==e.which&&2!==e.button;if(t&&this.isEnabled()&&this.canDrag()){var i=Q(e)&&L(e,this.el,this.k);if(i){if(z=null,R=null,F.length>0){var o=u(F,this.el,e.target||e.srcElement);if(null!=o&&(z=o[0],R=o[1]),null==R)return}else R=this.el;if(A)if(O=R.cloneNode(!0),this.params.addClass(O,y.clonedDrag),O.setAttribute("id",null),O.style.position="absolute",null!=this.params.parent){var s=this.params.getPosition(this.el);O.style.left=s[0]+"px",O.style.top=s[1]+"px",this.params.parent.appendChild(O)}else{var l=a(R);O.style.left=l.left+"px",O.style.top=l.top+"px",document.body.appendChild(O)}else O=R;j&&C(e),b=m(e),O&&O.parentNode&&(D=[O.parentNode.scrollLeft,O.parentNode.scrollTop]),this.params.bind(document,"mousemove",this.moveListener),this.params.bind(document,"mouseup",this.upListener),r.markSelection(this),r.markPosses(this),this.params.addClass(document.body,n.noSelect),ae("beforeStart",{el:this.el,pos:_,e:e,drag:this})}else this.params.consumeFilteredEvents&&C(e)}}}.bind(this),this.moveListener=function(e){if(b){if(!S){var t=ae("start",{el:this.el,pos:_,e:e,drag:this});if(!1!==t){if(!b)return;this.mark(!0),S=!0}else this.abort()}if(b){ie.length=0;var n=m(e),i=n[0]-b[0],o=n[1]-b[1],a=this.params.ignoreZoom?1:r.getZoom();O&&O.parentNode&&(i+=O.parentNode.scrollLeft-D[0],o+=O.parentNode.scrollTop-D[1]),i/=a,o/=a,this.moveBy(i,o,e),r.updateSelection(i,o,this),r.updatePosses(i,o,this)}}}.bind(this),this.upListener=function(e){b&&(b=null,this.params.unbind(document,"mousemove",this.moveListener),this.params.unbind(document,"mouseup",this.upListener),this.params.removeClass(document.body,n.noSelect),this.unmark(e),r.unmarkSelection(this,e),r.unmarkPosses(this,e),this.stop(e),r.notifyPosseDragStop(this,e),S=!1,ie.length=0,A?(O&&O.parentNode&&O.parentNode.removeChild(O),O=null):K&&!0===K(O,this.params.getPosition(O))&&(this.params.setPosition(O,_),ae("revert",O)))}.bind(this),this.getFilters=function(){return Z},this.abort=function(){null!=b&&this.upListener()},this.getDragElement=function(e){return e?R||this.el:O||this.el};var re={start:[],drag:[],stop:[],over:[],out:[],beforeStart:[],revert:[]};t.events.start&&re.start.push(t.events.start),t.events.beforeStart&&re.beforeStart.push(t.events.beforeStart),t.events.stop&&re.stop.push(t.events.stop),t.events.drag&&re.drag.push(t.events.drag),t.events.revert&&re.revert.push(t.events.revert),this.on=function(e,t){re[e]&&re[e].push(t)},this.off=function(e,t){if(re[e]){for(var n=[],i=0;i<re[e].length;i++)re[e][i]!==t&&n.push(re[e][i]);re[e]=n}};var oe,ae=function(e,t){var n=null;if(z&&z[e])n=z[e](t);else if(re[e])for(var i=0;i<re[e].length;i++)try{var r=re[e][i](t);null!=r&&(n=r)}catch(o){}return n};this.notifyStart=function(e){ae("start",{el:this.el,pos:this.params.getPosition(O),e:e,drag:this})},this.stop=function(e,t){if(t||S){var n=[],i=r.getSelection(),o=this.params.getPosition(O);if(i.length>0)for(var a=0;a<i.length;a++){var s=this.params.getPosition(i[a].el);n.push([i[a].el,{left:s[0],top:s[1]},i[a]])}else n.push([O,{left:o[0],top:o[1]},this]);ae("stop",{el:O,pos:oe||o,finalPos:o,e:e,drag:this,selection:n})}},this.mark=function(e){var t;_=this.params.getPosition(O),w=this.params.getPosition(O,!0),k=[w[0]-_[0],w[1]-_[1]],this.size=this.params.getSize(O),ne=r.getMatchingDroppables(this),M(ne,!0,!1,this),this.params.addClass(O,this.params.dragClass||n.drag),t=this.params.getConstrainingRectangle?this.params.getConstrainingRectangle(O):this.params.getSize(O.parentNode),te={w:t[0],h:t[1]},v=0,g=0,e&&r.notifySelectionDragStart(this)},this.unmark=function(e,i){if(M(ne,!1,!0,this),H&&l(R,O)?(oe=[O.offsetLeft-v,O.offsetTop-g],O.parentNode.removeChild(O),O=R):oe=null,this.params.removeClass(O,this.params.dragClass||n.drag),ne.length=0,H=!1,!i){ie.length>0&&oe&&t.setPosition(R,oe),ie.sort(Y);for(var r=0;r<ie.length;r++){var o=ie[r].drop(this,e);if(!0===o)break}}},this.moveBy=function(e,n,i){ie.length=0;var r=this.toGrid([_[0]+e,_[1]+n]),o=J(r,O,te,this.size);if(l(this.el,O))if(r[0]!==o[0]||r[1]!==o[1]){if(!H){var a=c(R);t.addClass(a,y.ghostProxy),$?($.appendChild(a),f=t.getPosition(R.parentNode,!0),p=t.getPosition(t.ghostProxyParent,!0),v=f[0]-p[0],g=f[1]-p[1]):R.parentNode.appendChild(a),O=a,H=!0}o=r}else H&&(O.parentNode.removeChild(O),O=R,H=!1,f=null,p=null,v=0,g=0);var s={x:o[0],y:o[1],w:this.size[0],h:this.size[1]},u={x:s.x+k[0],y:s.y+k[1],w:s.w,h:s.h},d=null;this.params.setPosition(O,[o[0]+v,o[1]+g]);for(var h=0;h<ne.length;h++){var m={x:ne[h].pagePosition[0],y:ne[h].pagePosition[1],w:ne[h].size[0],h:ne[h].size[1]};this.params.intersects(u,m)&&(N||null==d||d===ne[h].el)&&ne[h].canDrop(this)?(d||(d=ne[h].el),ie.push(ne[h]),ne[h].setHover(this,!0,i)):ne[h].isHover()&&ne[h].setHover(this,!1,i)}ae("drag",{el:this.el,pos:o,e:i,drag:this})},this.destroy=function(){this.params.unbind(this.el,"mousedown",this.downListener),this.params.unbind(document,"mousemove",this.moveListener),this.params.unbind(document,"mouseup",this.upListener),this.downListener=null,this.upListener=null,this.moveListener=null},this.params.bind(this.el,"mousedown",this.downListener),this.params.handle?ee(this.params.handle,!1):ee(this.params.filter,this.params.filterExclude)},O=function(e,t,n,i){this._class=n.droppable,this.params=t||{},this.rank=t.rank||0,this._activeClass=this.params.activeClass||n.active,this._hoverClass=this.params.hoverClass||n.hover,T.apply(this,arguments);var r=!1;this.allowLoopback=!1!==this.params.allowLoopback,this.setActive=function(e){this.params[e?"addClass":"removeClass"](this.el,this._activeClass)},this.updatePosition=function(){this.position=this.params.getPosition(this.el),this.pagePosition=this.params.getPosition(this.el,!0),this.size=this.params.getSize(this.el)},this.canDrop=this.params.canDrop||function(e){return!0},this.isHover=function(){return r},this.setHover=function(e,t,n){(t||null==this.el._katavorioDragHover||this.el._katavorioDragHover===e.el._katavorio)&&(this.params[t?"addClass":"removeClass"](this.el,this._hoverClass),this.el._katavorioDragHover=t?e.el._katavorio:null,r!==t&&this.params.events[t?"over":"out"]({el:this.el,e:n,drag:e,drop:this}),r=t)},this.drop=function(e,t){return this.params.events["drop"]({drag:e,e:t,drop:this})},this.destroy=function(){this._class=null,this._activeClass=null,this._hoverClass=null,r=null}},I=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0,n="x"===e?t:3&t|8;return n.toString(16)}))},Y=function(e,t){return e.rank<t.rank?1:e.rank>t.rank?-1:0},A=function(e){return null==e?null:(e="string"===typeof e||e.constructor===String?document.getElementById(e):e,null==e?null:(e._katavorio=e._katavorio||I(),e))};e.Katavorio=function(e){var t=[],a={};this._dragsByScope={},this._dropsByScope={};var s=1,l=function(e,t){S(e,(function(e){for(var n=0;n<e.scopes.length;n++)t[e.scopes[n]]=t[e.scopes[n]]||[],t[e.scopes[n]].push(e)}))},u=function(t,n){var i=0;return S(t,(function(t){for(var r=0;r<t.scopes.length;r++)if(n[t.scopes[r]]){var o=e.indexOf(n[t.scopes[r]],t);-1!==o&&(n[t.scopes[r]].splice(o,1),i++)}})),i>0},c=(this.getMatchingDroppables=function(e){for(var t=[],n={},i=0;i<e.scopes.length;i++){var r=this._dropsByScope[e.scopes[i]];if(r)for(var o=0;o<r.length;o++)!r[o].canDrop(e)||n[r[o].uuid]||!r[o].allowLoopback&&r[o].el===e.el||(n[r[o].uuid]=!0,t.push(r[o]))}return t.sort(Y),t},function(t){t=t||{};var n,i={events:{}};for(n in e)i[n]=e[n];for(n in t)i[n]=t[n];for(n=0;n<_.length;n++)i.events[_[n]]=t[_[n]]||w;return i.katavorio=this,i}.bind(this)),d=function(e,t){for(var n=0;n<_.length;n++)t[_[n]]&&e.on(_[n],t[_[n]])}.bind(this),h={},f=e.css||{},p=e.scope||b;for(var m in y)h[m]=y[m];for(var m in f)h[m]=f[m];var v=e.inputFilterSelector||D;this.getInputFilterSelector=function(){return v},this.setInputFilterSelector=function(e){return v=e,this},this.draggable=function(t,n){var i=[];return S(t,function(t){if(t=A(t),null!=t)if(null==t._katavorioDrag){var r=c(n);t._katavorioDrag=new j(t,r,h,p),l(t._katavorioDrag,this._dragsByScope),i.push(t._katavorioDrag),e.addClass(t,r.selector?h.delegatedDraggable:h.draggable)}else d(t._katavorioDrag,n)}.bind(this)),i},this.droppable=function(t,n){var i=[];return S(t,function(t){if(t=A(t),null!=t){var r=new O(t,c(n),h,p);t._katavorioDrop=t._katavorioDrop||[],t._katavorioDrop.push(r),l(r,this._dropsByScope),i.push(r),e.addClass(t,h.droppable)}}.bind(this)),i},this.select=function(n){return S(n,(function(){var n=A(this);n&&n._katavorioDrag&&(a[n._katavorio]||(t.push(n._katavorioDrag),a[n._katavorio]=[n,t.length-1],e.addClass(n,h.selected)))})),this},this.deselect=function(n){return S(n,(function(){var n=A(this);if(n&&n._katavorio){var i=a[n._katavorio];if(i){for(var r=[],o=0;o<t.length;o++)t[o].el!==n&&r.push(t[o]);t=r,delete a[n._katavorio],e.removeClass(n,h.selected)}}})),this},this.deselectAll=function(){for(var n in a){var i=a[n];e.removeClass(i[0],h.selected)}t.length=0,a={}},this.markSelection=function(e){k(t,(function(e){e.mark()}),e)},this.markPosses=function(e){e.posses&&S(e.posses,(function(t){e.posseRoles[t]&&L[t]&&k(L[t].members,(function(e){e.mark()}),e)}))},this.unmarkSelection=function(e,n){k(t,(function(e){e.unmark(n)}),e)},this.unmarkPosses=function(e,t){e.posses&&S(e.posses,(function(n){e.posseRoles[n]&&L[n]&&k(L[n].members,(function(e){e.unmark(t,!0)}),e)}))},this.getSelection=function(){return t.slice(0)},this.updateSelection=function(e,n,i){k(t,(function(t){t.moveBy(e,n)}),i)};var g=function(e,t){t.posses&&S(t.posses,(function(n){t.posseRoles[n]&&L[n]&&k(L[n].members,(function(t){e(t)}),t)}))};this.updatePosses=function(e,t,n){g((function(n){n.moveBy(e,t)}),n)},this.notifyPosseDragStop=function(e,t){g((function(e){e.stop(t,!0)}),e)},this.notifySelectionDragStop=function(e,n){k(t,(function(e){e.stop(n,!0)}),e)},this.notifySelectionDragStart=function(e,n){k(t,(function(e){e.notifyStart(n)}),e)},this.setZoom=function(e){s=e},this.getZoom=function(){return s};var x=function(e,t,n,i){S(e,(function(e){u(e,n),e[i](t),l(e,n)}))};S(["set","add","remove","toggle"],function(e){this[e+"Scope"]=function(t,n){x(t._katavorioDrag,n,this._dragsByScope,e+"Scope"),x(t._katavorioDrop,n,this._dropsByScope,e+"Scope")}.bind(this),this[e+"DragScope"]=function(t,n){x(t.constructor===j?t:t._katavorioDrag,n,this._dragsByScope,e+"Scope")}.bind(this),this[e+"DropScope"]=function(t,n){x(t.constructor===O?t:t._katavorioDrop,n,this._dropsByScope,e+"Scope")}.bind(this)}.bind(this)),this.snapToGrid=function(e,t){for(var n in this._dragsByScope)k(this._dragsByScope[n],(function(n){n.snap(e,t)}))},this.getDragsForScope=function(e){return this._dragsByScope[e]},this.getDropsForScope=function(e){return this._dropsByScope[e]};var M=function(e,n,i){if(e=A(e),e[n]){var r=t.indexOf(e[n]);r>=0&&t.splice(r,1),u(e[n],i)&&S(e[n],(function(e){e.destroy()})),delete e[n]}},C=function(e,t,n,i){e=A(e),e[t]&&e[t].off(n,i)};this.elementRemoved=function(e){e["_katavorioDrag"]&&this.destroyDraggable(e),e["_katavorioDrop"]&&this.destroyDroppable(e)},this.destroyDraggable=function(e,t,n){1===arguments.length?M(e,"_katavorioDrag",this._dragsByScope):C(e,"_katavorioDrag",t,n)},this.destroyDroppable=function(e,t,n){1===arguments.length?M(e,"_katavorioDrop",this._dropsByScope):C(e,"_katavorioDrop",t,n)},this.reset=function(){this._dragsByScope={},this._dropsByScope={},t=[],a={},L={}};var L={},T=function(e,t,i){var r=o(t)?t:t.id,a=!!o(t)||!1!==t.active,s=L[r]||function(){var e={name:r,members:[]};return L[r]=e,e}();return S(e,(function(e){if(e._katavorioDrag){if(i&&null!=e._katavorioDrag.posseRoles[s.name])return;n(s.members,e._katavorioDrag),n(e._katavorioDrag.posses,s.name),e._katavorioDrag.posseRoles[s.name]=a}})),s};this.addToPosse=function(e,t){for(var n=[],i=1;i<arguments.length;i++)n.push(T(e,arguments[i]));return 1===n.length?n[0]:n},this.setPosse=function(e,t){for(var n=[],i=1;i<arguments.length;i++)n.push(T(e,arguments[i],!0).name);return S(e,function(e){if(e._katavorioDrag){var t=r(e._katavorioDrag.posses,n),i=[];Array.prototype.push.apply(i,e._katavorioDrag.posses);for(var o=0;o<t.length;o++)this.removeFromPosse(e,t[o])}}.bind(this)),1===n.length?n[0]:n},this.removeFromPosse=function(e,t){if(arguments.length<2)throw new TypeError("No posse id provided for remove operation");for(var n=1;n<arguments.length;n++)t=arguments[n],S(e,(function(e){if(e._katavorioDrag&&e._katavorioDrag.posses){var n=e._katavorioDrag;S(t,(function(e){i(L[e].members,n),i(n.posses,e),delete n.posseRoles[e]}))}}))},this.removeFromAllPosses=function(e){S(e,(function(e){if(e._katavorioDrag&&e._katavorioDrag.posses){var t=e._katavorioDrag;S(t.posses,(function(e){i(L[e].members,t)})),t.posses.length=0,t.posseRoles={}}}))},this.setPosseState=function(e,t,n){var i=L[t];i&&S(e,(function(e){e._katavorioDrag&&e._katavorioDrag.posses&&(e._katavorioDrag.posseRoles[i.name]=n)}))}},e.Katavorio.version="1.0.0",t.Katavorio=e.Katavorio}.call("undefined"!==typeof window?window:this),function(){var e=this;e.jsPlumbUtil=e.jsPlumbUtil||{};var n=e.jsPlumbUtil;function i(e){return"[object Array]"===Object.prototype.toString.call(e)}function r(e){return"[object Number]"===Object.prototype.toString.call(e)}function o(e){return"string"===typeof e}function a(e){return"boolean"===typeof e}function s(e){return null==e}function l(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return"[object Date]"===Object.prototype.toString.call(e)}function c(e){return"[object Function]"===Object.prototype.toString.call(e)}function d(e){return c(e)&&null!=e.name&&e.name.length>0}function h(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function f(e){if(o(e))return""+e;if(a(e))return!!e;if(u(e))return new Date(e.getTime());if(c(e))return e;if(i(e)){for(var t=[],n=0;n<e.length;n++)t.push(f(e[n]));return t}if(l(e)){var r={};for(var s in e)r[s]=f(e[s]);return r}return e}function p(e,t,n,r){var s,u,c={},d={};for(n=n||[],r=r||[],u=0;u<n.length;u++)c[n[u]]=!0;for(u=0;u<r.length;u++)d[r[u]]=!0;var h=f(e);for(u in t)if(null==h[u]||d[u])h[u]=t[u];else if(o(t[u])||a(t[u]))c[u]?(s=[],s.push.apply(s,i(h[u])?h[u]:[h[u]]),s.push.apply(s,a(t[u])?t[u]:[t[u]]),h[u]=s):h[u]=t[u];else if(i(t[u]))s=[],i(h[u])&&s.push.apply(s,h[u]),s.push.apply(s,t[u]),h[u]=s;else if(l(t[u]))for(var p in l(h[u])||(h[u]={}),t[u])h[u][p]=t[u][p];return h}function m(e,t,n){if(null!=e){var i=e,r=i;return t.replace(/([^\.])+/g,(function(e,t,i,o){var a=e.match(/([^\[0-9]+){1}(\[)([0-9+])/),s=i+e.length>=o.length,l=function(){return r[a[1]]||function(){return r[a[1]]=[],r[a[1]]}()};if(s)a?l()[a[3]]=n:r[e]=n;else if(a){var u=l();r=u[a[3]]||function(){return u[a[3]]={},u[a[3]]}()}else r=r[e]||function(){return r[e]={},r[e]}();return""})),e}}function v(e,t,n){for(var i=0;i<n.length;i++){var r=n[i][0][n[i][1]].apply(n[i][0],n[i][2]);if(r===t)return r}return e}function g(e,t,n,r){var a=function(e){var n=e.match(/(\${.*?})/g);if(null!=n)for(var i=0;i<n.length;i++){var r=t[n[i].substring(2,n[i].length-1)]||"";null!=r&&(e=e.replace(n[i],r))}return e},s=function(e){if(null!=e){if(o(e))return a(e);if(!c(e)||r||null!=n&&0!==(e.name||"").indexOf(n)){if(i(e)){for(var u=[],d=0;d<e.length;d++)u.push(s(e[d]));return u}if(l(e)){var h={};for(var f in e)h[f]=s(e[f]);return h}return e}return e(t)}};return s(e)}function y(e,t){if(e)for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function b(e,t){var n=y(e,t);return n>-1&&e.splice(n,1),-1!==n}function _(e,t){var n=e.indexOf(t);return n>-1&&e.splice(n,1),-1!==n}function w(e,t,n){-1===y(e,n)&&e.push(t)}function x(e,t,n,i){var r=e[t];return null==r&&(r=[],e[t]=r),r[i?"unshift":"push"](n),r}function k(e,t,n){return-1===e.indexOf(t)&&(n?e.unshift(t):e.push(t),!0)}function M(e,t,n){var r;t=i(t)?t:[t];var o=function(t){var n=t.__proto__;while(null!=n)if(null!=n.prototype){for(var i in n.prototype)n.prototype.hasOwnProperty(i)&&!e.prototype.hasOwnProperty(i)&&(e.prototype[i]=n.prototype[i]);n=n.prototype.__proto__}else n=null};for(r=0;r<t.length;r++){for(var a in t[r].prototype)t[r].prototype.hasOwnProperty(a)&&!e.prototype.hasOwnProperty(a)&&(e.prototype[a]=t[r].prototype[a]);o(t[r])}var s=function(e,n){return function(){for(r=0;r<t.length;r++)t[r].prototype[e]&&t[r].prototype[e].apply(this,arguments);return n.apply(this,arguments)}},l=function(t){for(var n in t)e.prototype[n]=s(n,t[n])};if(arguments.length>2)for(r=2;r<arguments.length;r++)l(arguments[r]);return e}t.jsPlumbUtil=n,n.isArray=i,n.isNumber=r,n.isString=o,n.isBoolean=a,n.isNull=s,n.isObject=l,n.isDate=u,n.isFunction=c,n.isNamedFunction=d,n.isEmpty=h,n.clone=f,n.merge=p,n.replace=m,n.functionChain=v,n.populate=g,n.findWithFunction=y,n.removeWithFunction=b,n.remove=_,n.addWithFunction=w,n.addToList=x,n.suggest=k,n.extend=M;for(var S=[],C=0;C<256;C++)S[C]=(C<16?"0":"")+C.toString(16);function D(){var e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,i=4294967295*Math.random()|0;return S[255&e]+S[e>>8&255]+S[e>>16&255]+S[e>>24&255]+"-"+S[255&t]+S[t>>8&255]+"-"+S[t>>16&15|64]+S[t>>24&255]+"-"+S[63&n|128]+S[n>>8&255]+"-"+S[n>>16&255]+S[n>>24&255]+S[255&i]+S[i>>8&255]+S[i>>16&255]+S[i>>24&255]}function L(e){if(null==e)return null;var t=e.replace(/^\s\s*/,""),n=/\s/,i=t.length;while(n.test(t.charAt(--i)));return t.slice(0,i+1)}function T(e,t){e=null==e.length||"string"===typeof e?[e]:e;for(var n=0;n<e.length;n++)t(e[n])}function E(e,t){for(var n=[],i=0;i<e.length;i++)n.push(t(e[i]));return n}function P(e,t,n){n=n||"parent";var i=function(e){return e?t[e]:null},r=function(e){return e?i(e[n]):null},o=function(e,t){if(null==e)return t;var n=["anchor","anchors","cssClass","connector","paintStyle","hoverPaintStyle","endpoint","endpoints"];"override"===t.mergeStrategy&&Array.prototype.push.apply(n,["events","overlays"]);var i=p(e,t,[],n);return o(r(e),i)},a=function(e){if(null==e)return{};if("string"===typeof e)return i(e);if(e.length){var t=!1,n=0,r=void 0;while(!t&&n<e.length)r=a(e[n]),r?t=!0:n++;return r}},s=a(e);return s?o(r(s),s):{}}function j(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(n.logEnabled&&"undefined"!==typeof console)try{var i=arguments[arguments.length-1];console.log(i)}catch(r){}}function O(e,t,n){return function(){var i=null;try{null!=t&&(i=t.apply(this,arguments))}catch(r){j("jsPlumb function failed : "+r)}if(null!=e&&(null==n||i!==n))try{i=e.apply(this,arguments)}catch(r){j("wrapped function failed : "+r)}return i}}n.uuid=D,n.fastTrim=L,n.each=T,n.map=E,n.mergeWithParents=P,n.logEnabled=!0,n.log=j,n.wrap=O;var I=function(){function e(){var e=this;this._listeners={},this.eventsSuspended=!1,this.tick=!1,this.eventsToDieOn={ready:!0},this.queue=[],this.bind=function(t,n,i){var r=function(t){x(e._listeners,t,n,i),n.__jsPlumb=n.__jsPlumb||{},n.__jsPlumb[D()]=t};if("string"===typeof t)r(t);else if(null!=t.length)for(var o=0;o<t.length;o++)r(t[o]);return e},this.fire=function(e,t,n){if(this.tick)this.queue.unshift(arguments);else{if(this.tick=!0,!this.eventsSuspended&&this._listeners[e]){var i=this._listeners[e].length,r=0,o=!1,a=null;if(!this.shouldFireEvent||this.shouldFireEvent(e,t,n))while(!o&&r<i&&!1!==a){if(this.eventsToDieOn[e])this._listeners[e][r].apply(this,[t,n]);else try{a=this._listeners[e][r].apply(this,[t,n])}catch(s){j("jsPlumb: fire failed for event "+e+" : "+s)}r++,null!=this._listeners&&null!=this._listeners[e]||(o=!0)}}this.tick=!1,this._drain()}return this},this._drain=function(){var t=e.queue.pop();t&&e.fire.apply(e,t)},this.unbind=function(e,t){if(0===arguments.length)this._listeners={};else if(1===arguments.length){if("string"===typeof e)delete this._listeners[e];else if(e.__jsPlumb){var n=void 0;for(var i in e.__jsPlumb)n=e.__jsPlumb[i],_(this._listeners[n]||[],e)}}else 2===arguments.length&&_(this._listeners[e]||[],t);return this},this.getListener=function(t){return e._listeners[t]},this.setSuspendEvents=function(t){e.eventsSuspended=t},this.isSuspendEvents=function(){return e.eventsSuspended},this.silently=function(t){e.setSuspendEvents(!0);try{t()}catch(n){j("Cannot execute silent function "+n)}e.setSuspendEvents(!1)},this.cleanupListeners=function(){for(var t in e._listeners)e._listeners[t]=null}}return e}();function Y(e,t,n){var i=[e[0]-t[0],e[1]-t[1]],r=Math.cos(n/360*Math.PI*2),o=Math.sin(n/360*Math.PI*2);return[i[0]*r-i[1]*o+t[0],i[1]*r+i[0]*o+t[1],r,o]}function A(e,t){var n=Y(e,[0,0],t);return[Math.round(n[0]),Math.round(n[1])]}n.EventGenerator=I,n.rotatePoint=Y,n.rotateAnchorOrientation=A}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this;e.jsPlumbUtil.matchesSelector=function(e,t,n){n=n||e.parentNode;for(var i=n.querySelectorAll(t),r=0;r<i.length;r++)if(i[r]===e)return!0;return!1},e.jsPlumbUtil.consume=function(e,t){e.stopPropagation?e.stopPropagation():e.returnValue=!1,!t&&e.preventDefault&&e.preventDefault()},e.jsPlumbUtil.sizeElement=function(e,t,n,i,r){e&&(e.style.height=r+"px",e.height=r,e.style.width=i+"px",e.width=i,e.style.left=t+"px",e.style.top=n+"px")}}.call("undefined"!==typeof window?window:this),function(){var e={deriveAnchor:function(e,t,n,i){return{top:["TopRight","TopLeft"],bottom:["BottomRight","BottomLeft"]}[e][t]}},t=this,n=function(e,t){this.count=0,this.instance=e,this.lists={},this.options=t||{},this.instance.addList=function(e,t){return this.listManager.addList(e,t)},this.instance.removeList=function(e){this.listManager.removeList(e)},this.instance.bind("manageElement",function(e){for(var t=this.instance.getSelector(e.el,"[jtk-scrollable-list]"),n=0;n<t.length;n++)this.addList(t[n])}.bind(this)),this.instance.bind("unmanageElement",(function(e){this.removeList(e.el)})),this.instance.bind("connection",function(e,t){null==t&&(this._maybeUpdateParentList(e.source),this._maybeUpdateParentList(e.target))}.bind(this))};t.jsPlumbListManager=n,n.prototype={addList:function(t,n){var r=this.instance.extend({},e);this.instance.extend(r,this.options),n=this.instance.extend(r,n||{});var o=[this.instance.getInstanceIndex(),this.count++].join("_");this.lists[o]=new i(this.instance,t,n,o)},removeList:function(e){var t=this.lists[e._jsPlumbList];t&&(t.destroy(),delete this.lists[e._jsPlumbList])},_maybeUpdateParentList:function(e){var t=e.parentNode,n=this.instance.getContainer();while(null!=t&&t!==n){if(null!=t._jsPlumbList&&null!=this.lists[t._jsPlumbList])return void t._jsPlumbScrollHandler();t=t.parentNode}}};var i=function(e,t,n,i){function r(e,t,i,r){return n.anchor?n.anchor:n.deriveAnchor(e,t,i,r)}function o(e,t,i,r){return n.deriveEndpoint?n.deriveEndpoint(e,t,i,r):n.endpoint?n.endpoint:i.type}function a(t){var n=t.parentNode,i=e.getContainer();while(null!=n&&n!==i){if(e.hasClass(n,"jtk-managed"))return void e.recalculateOffsets(n);n=n.parentNode}}t["_jsPlumbList"]=i;var s=function(n){for(var i=e.getSelector(t,".jtk-managed"),s=e.getId(t),l=0;l<i.length;l++){if(i[l].offsetTop<t.scrollTop)i[l]._jsPlumbProxies||(i[l]._jsPlumbProxies=i[l]._jsPlumbProxies||[],e.select({source:i[l]}).each((function(n){e.proxyConnection(n,0,t,s,(function(){return o("top",0,n.endpoints[0],n)}),(function(){return r("top",0,n.endpoints[0],n)})),i[l]._jsPlumbProxies.push([n,0])})),e.select({target:i[l]}).each((function(n){e.proxyConnection(n,1,t,s,(function(){return o("top",1,n.endpoints[1],n)}),(function(){return r("top",1,n.endpoints[1],n)})),i[l]._jsPlumbProxies.push([n,1])})));else if(i[l].offsetTop+i[l].offsetHeight>t.scrollTop+t.offsetHeight)i[l]._jsPlumbProxies||(i[l]._jsPlumbProxies=i[l]._jsPlumbProxies||[],e.select({source:i[l]}).each((function(n){e.proxyConnection(n,0,t,s,(function(){return o("bottom",0,n.endpoints[0],n)}),(function(){return r("bottom",0,n.endpoints[0],n)})),i[l]._jsPlumbProxies.push([n,0])})),e.select({target:i[l]}).each((function(n){e.proxyConnection(n,1,t,s,(function(){return o("bottom",1,n.endpoints[1],n)}),(function(){return r("bottom",1,n.endpoints[1],n)})),i[l]._jsPlumbProxies.push([n,1])})));else if(i[l]._jsPlumbProxies){for(var u=0;u<i[l]._jsPlumbProxies.length;u++)e.unproxyConnection(i[l]._jsPlumbProxies[u][0],i[l]._jsPlumbProxies[u][1],s);delete i[l]._jsPlumbProxies}e.revalidate(i[l])}a(t)};e.setAttribute(t,"jtk-scrollable-list","true"),t._jsPlumbScrollHandler=s,e.on(t,"scroll",s),s(),this.destroy=function(){e.off(t,"scroll",s),delete t._jsPlumbScrollHandler;for(var n=e.getSelector(t,".jtk-managed"),i=e.getId(t),r=0;r<n.length;r++)if(n[r]._jsPlumbProxies){for(var o=0;o<n[r]._jsPlumbProxies.length;o++)e.unproxyConnection(n[r]._jsPlumbProxies[o][0],n[r]._jsPlumbProxies[o][1],i);delete n[r]._jsPlumbProxies}}}}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,n=e.jsPlumbUtil,i=function(e){if(e._jsPlumb.paintStyle&&e._jsPlumb.hoverPaintStyle){var t={};p.extend(t,e._jsPlumb.paintStyle),p.extend(t,e._jsPlumb.hoverPaintStyle),delete e._jsPlumb.hoverPaintStyle,t.gradient&&e._jsPlumb.paintStyle.fill&&delete t.gradient,e._jsPlumb.hoverPaintStyle=t}},r=["tap","dbltap","click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","contextmenu"],o=function(e,t,n,i){var r=e.getAttachedElements();if(r)for(var o=0,a=r.length;o<a;o++)i&&i===r[o]||r[o].setHover(t,!0,n)},a=function(e){return null==e?null:e.split(" ")},s=function(e,t,n){for(var i in t)e[i]=n},l=function(e,t,i){if(e.getDefaultType){var r=e.getTypeDescriptor(),o={},a=e.getDefaultType(),l=n.merge({},a);s(o,a,"__default");for(var u=0,c=e._jsPlumb.types.length;u<c;u++){var d=e._jsPlumb.types[u];if("__default"!==d){var h=e._jsPlumb.instance.getType(d,r);if(null!=h){var f=["anchor","anchors","connector","paintStyle","hoverPaintStyle","endpoint","endpoints","connectorOverlays","connectorStyle","connectorHoverStyle","endpointStyle","endpointHoverStyle"],p=[];"override"===h.mergeStrategy?Array.prototype.push.apply(f,["events","overlays","cssClass"]):p.push("cssClass"),l=n.merge(l,h,p,f),s(o,h,d)}}}t&&(l=n.populate(l,t,"_")),e.applyType(l,i,o),i||e.repaint()}},u=e.jsPlumbUIComponent=function(e){n.EventGenerator.apply(this,arguments);var t=this,i=arguments,r=t.idPrefix,o=r+(new Date).getTime();this._jsPlumb={instance:e._jsPlumb,parameters:e.parameters||{},paintStyle:null,hoverPaintStyle:null,paintStyleInUse:null,hover:!1,beforeDetach:e.beforeDetach,beforeDrop:e.beforeDrop,overlayPlacements:[],hoverClass:e.hoverClass||e._jsPlumb.Defaults.HoverClass,types:[],typeCache:{}},this.cacheTypeItem=function(e,t,n){this._jsPlumb.typeCache[n]=this._jsPlumb.typeCache[n]||{},this._jsPlumb.typeCache[n][e]=t},this.getCachedTypeItem=function(e,t){return this._jsPlumb.typeCache[t]?this._jsPlumb.typeCache[t][e]:null},this.getId=function(){return o};var a=e.overlays||[],s={};if(this.defaultOverlayKeys){for(var l=0;l<this.defaultOverlayKeys.length;l++)Array.prototype.push.apply(a,this._jsPlumb.instance.Defaults[this.defaultOverlayKeys[l]]||[]);for(l=0;l<a.length;l++){var u=p.convertToFullOverlaySpec(a[l]);s[u[1].id]=u}}var c={overlays:s,parameters:e.parameters||{},scope:e.scope||this._jsPlumb.instance.getDefaultScope()};if(this.getDefaultType=function(){return c},this.appendToDefaultType=function(e){for(var t in e)c[t]=e[t]},e.events)for(var d in e.events)t.bind(d,e.events[d]);this.clone=function(){var e=Object.create(this.constructor.prototype);return this.constructor.apply(e,i),e}.bind(this),this.isDetachAllowed=function(e){var t=!0;if(this._jsPlumb.beforeDetach)try{t=this._jsPlumb.beforeDetach(e)}catch(i){n.log("jsPlumb: beforeDetach callback failed",i)}return t},this.isDropAllowed=function(e,t,i,r,o,a,s){var l=this._jsPlumb.instance.checkCondition("beforeDrop",{sourceId:e,targetId:t,scope:i,connection:r,dropEndpoint:o,source:a,target:s});if(this._jsPlumb.beforeDrop)try{l=this._jsPlumb.beforeDrop({sourceId:e,targetId:t,scope:i,connection:r,dropEndpoint:o,source:a,target:s})}catch(u){n.log("jsPlumb: beforeDrop callback failed",u)}return l};var h=[];this.setListenerComponent=function(e){for(var t=0;t<h.length;t++)h[t][3]=e}},c=function(e,t){var n=e._jsPlumb.types[t],i=e._jsPlumb.instance.getType(n,e.getTypeDescriptor());null!=i&&i.cssClass&&e.canvas&&e._jsPlumb.instance.removeClass(e.canvas,i.cssClass)};n.extend(e.jsPlumbUIComponent,n.EventGenerator,{getParameter:function(e){return this._jsPlumb.parameters[e]},setParameter:function(e,t){this._jsPlumb.parameters[e]=t},getParameters:function(){return this._jsPlumb.parameters},setParameters:function(e){this._jsPlumb.parameters=e},getClass:function(){return p.getClass(this.canvas)},hasClass:function(e){return p.hasClass(this.canvas,e)},addClass:function(e){p.addClass(this.canvas,e)},removeClass:function(e){p.removeClass(this.canvas,e)},updateClasses:function(e,t){p.updateClasses(this.canvas,e,t)},setType:function(e,t,n){this.clearTypes(),this._jsPlumb.types=a(e)||[],l(this,t,n)},getType:function(){return this._jsPlumb.types},reapplyTypes:function(e,t){l(this,e,t)},hasType:function(e){return-1!==this._jsPlumb.types.indexOf(e)},addType:function(e,t,n){var i=a(e),r=!1;if(null!=i){for(var o=0,s=i.length;o<s;o++)this.hasType(i[o])||(this._jsPlumb.types.push(i[o]),r=!0);r&&l(this,t,n)}},removeType:function(e,t,n){var i=a(e),r=!1,o=function(e){var t=this._jsPlumb.types.indexOf(e);return-1!==t&&(c(this,t),this._jsPlumb.types.splice(t,1),!0)}.bind(this);if(null!=i){for(var s=0,u=i.length;s<u;s++)r=o(i[s])||r;r&&l(this,t,n)}},clearTypes:function(e,t){for(var n=this._jsPlumb.types.length,i=0;i<n;i++)c(this,0),this._jsPlumb.types.splice(0,1);l(this,e,t)},toggleType:function(e,t,n){var i=a(e);if(null!=i){for(var r=0,o=i.length;r<o;r++){var s=this._jsPlumb.types.indexOf(i[r]);-1!==s?(c(this,s),this._jsPlumb.types.splice(s,1)):this._jsPlumb.types.push(i[r])}l(this,t,n)}},applyType:function(e,t){if(this.setPaintStyle(e.paintStyle,t),this.setHoverPaintStyle(e.hoverPaintStyle,t),e.parameters)for(var n in e.parameters)this.setParameter(n,e.parameters[n]);this._jsPlumb.paintStyleInUse=this.getPaintStyle()},setPaintStyle:function(e,t){this._jsPlumb.paintStyle=e,this._jsPlumb.paintStyleInUse=this._jsPlumb.paintStyle,i(this),t||this.repaint()},getPaintStyle:function(){return this._jsPlumb.paintStyle},setHoverPaintStyle:function(e,t){this._jsPlumb.hoverPaintStyle=e,i(this),t||this.repaint()},getHoverPaintStyle:function(){return this._jsPlumb.hoverPaintStyle},destroy:function(e){(e||null==this.typeId)&&(this.cleanupListeners(),this.clone=null,this._jsPlumb=null)},isHover:function(){return this._jsPlumb.hover},setHover:function(e,t,n){if(this._jsPlumb&&!this._jsPlumb.instance.currentlyDragging&&!this._jsPlumb.instance.isHoverSuspended()){this._jsPlumb.hover=e;var i=e?"addClass":"removeClass";null!=this.canvas&&(null!=this._jsPlumb.instance.hoverClass&&this._jsPlumb.instance[i](this.canvas,this._jsPlumb.instance.hoverClass),null!=this._jsPlumb.hoverClass&&this._jsPlumb.instance[i](this.canvas,this._jsPlumb.hoverClass)),null!=this._jsPlumb.hoverPaintStyle&&(this._jsPlumb.paintStyleInUse=e?this._jsPlumb.hoverPaintStyle:this._jsPlumb.paintStyle,this._jsPlumb.instance.isSuspendDrawing()||(n=n||jsPlumbUtil.uuid(),this.repaint({timestamp:n,recalc:!1}))),this.getAttachedElements&&!t&&o(this,e,jsPlumbUtil.uuid(),this)}}});var d=0,h=function(){var e=d+1;return d++,e},f=e.jsPlumbInstance=function(t){this.version="2.15.6",this.Defaults={Anchor:"Bottom",Anchors:[null,null],ConnectionsDetachable:!0,ConnectionOverlays:[],Connector:"Bezier",Container:null,DoNotThrowErrors:!1,DragOptions:{},DropOptions:{},Endpoint:"Dot",EndpointOverlays:[],Endpoints:[null,null],EndpointStyle:{fill:"#456"},EndpointStyles:[null,null],EndpointHoverStyle:null,EndpointHoverStyles:[null,null],HoverPaintStyle:null,LabelStyle:{color:"black"},ListStyle:{},LogEnabled:!1,Overlays:[],MaxConnections:1,PaintStyle:{"stroke-width":4,stroke:"#456"},ReattachConnections:!1,RenderMode:"svg",Scope:"jsPlumb_DefaultScope"},t&&p.extend(this.Defaults,t),this.logEnabled=this.Defaults.LogEnabled,this._connectionTypes={},this._endpointTypes={},n.EventGenerator.apply(this);var i=this,o=h(),a=i.bind,s={},l=1,c=function(e){if(null==e)return null;if(3===e.nodeType||8===e.nodeType)return{el:e,text:!0};var t=i.getElement(e);return{el:t,id:n.isString(e)&&null==t?e:W(t)}};for(var d in this.getInstanceIndex=function(){return o},this.setZoom=function(e,t){return l=e,i.fire("zoom",l),t&&i.repaintEverything(),!0},this.getZoom=function(){return l},this.Defaults)s[d]=this.Defaults[d];var f,m=[];this.unbindContainer=function(){if(null!=f&&m.length>0)for(var e=0;e<m.length;e++)i.off(f,m[e][0],m[e][1])},this.setContainer=function(e){this.unbindContainer(),e=this.getElement(e),this.select().each((function(t){t.moveParent(e)})),this.selectEndpoints().each((function(t){t.moveParent(e)}));var t=f;f=e,m.length=0;for(var n={endpointclick:"endpointClick",endpointdblclick:"endpointDblClick"},o=function(e,t,r){var o=t.srcElement||t.target,a=(o&&o.parentNode?o.parentNode._jsPlumb:null)||(o?o._jsPlumb:null)||(o&&o.parentNode&&o.parentNode.parentNode?o.parentNode.parentNode._jsPlumb:null);if(a){a.fire(e,a,t);var s=r&&n[r+e]||e;i.fire(s,a.component||a,t)}},a=function(e,t,n){m.push([e,n]),i.on(f,e,t,n)},s=function(e){a(e,".jtk-connector",(function(t){o(e,t)})),a(e,".jtk-endpoint",(function(t){o(e,t,"endpoint")})),a(e,".jtk-overlay",(function(t){o(e,t)}))},l=0;l<r.length;l++)s(r[l]);for(var u in w){var c=w[u].el;c.parentNode===t&&(t.removeChild(c),f.appendChild(c))}},this.getContainer=function(){return f},this.bind=function(e,t){"ready"===e&&g?t():a.apply(i,[e,t])},i.importDefaults=function(e){for(var t in e)i.Defaults[t]=e[t];return e.Container&&i.setContainer(e.Container),i},i.restoreDefaults=function(){return i.Defaults=p.extend({},s),i};var v=null,g=!1,y=[],b={},_={},w={},x={},k={},M=!1,S=[],C=!1,D=null,L=this.Defaults.Scope,T=1,E=function(){return""+T++},P=function(e,t){f?f.appendChild(e):t?this.getElement(t).appendChild(e):this.appendToRoot(e)}.bind(this),j=function(e,t,n,r){var o={c:[],e:[]};if(!C&&(e=i.getElement(e),null!=e)){var a=W(e),s=e.querySelectorAll(".jtk-managed");null==n&&(n=jsPlumbUtil.uuid());fe({elId:a,offset:t,recalc:!1,timestamp:n});for(var l=0;l<s.length;l++)fe({elId:s[l].getAttribute("id"),recalc:!0,timestamp:n});var u=i.router.redraw(a,t,n,null,r);if(Array.prototype.push.apply(o.c,u.c),Array.prototype.push.apply(o.e,u.e),s)for(var c=0;c<s.length;c++)u=i.router.redraw(s[c].getAttribute("id"),null,n,null,r,!0),Array.prototype.push.apply(o.c,u.c),Array.prototype.push.apply(o.e,u.e)}return o},O=function(e){return _[e]},I=function(e,t){for(var n=e.scope.split(/\s/),i=t.scope.split(/\s/),r=0;r<n.length;r++)for(var o=0;o<i.length;o++)if(i[o]===n[r])return!0;return!1},Y=function(e,t){var n=p.extend({},e);for(var i in t)t[i]&&(n[i]=t[i]);return n},A=function(e,t){var r=p.extend({},e);if(t&&p.extend(r,t),r.source&&(r.source.endpoint?r.sourceEndpoint=r.source:r.source=i.getElement(r.source)),r.target&&(r.target.endpoint?r.targetEndpoint=r.target:r.target=i.getElement(r.target)),e.uuids&&(r.sourceEndpoint=O(e.uuids[0]),r.targetEndpoint=O(e.uuids[1])),r.sourceEndpoint&&r.sourceEndpoint.isFull())n.log(i,"could not add connection; source endpoint is full");else if(r.targetEndpoint&&r.targetEndpoint.isFull())n.log(i,"could not add connection; target endpoint is full");else{if(!r.type&&r.sourceEndpoint&&(r.type=r.sourceEndpoint.connectionType),r.sourceEndpoint&&r.sourceEndpoint.connectorOverlays){r.overlays=r.overlays||[];for(var o=0,a=r.sourceEndpoint.connectorOverlays.length;o<a;o++)r.overlays.push(r.sourceEndpoint.connectorOverlays[o])}r.sourceEndpoint&&r.sourceEndpoint.scope&&(r.scope=r.sourceEndpoint.scope),!r["pointer-events"]&&r.sourceEndpoint&&r.sourceEndpoint.connectorPointerEvents&&(r["pointer-events"]=r.sourceEndpoint.connectorPointerEvents);var s=function(e,t,n){var o=Y(t,{anchor:r.anchors?r.anchors[n]:r.anchor,endpoint:r.endpoints?r.endpoints[n]:r.endpoint,paintStyle:r.endpointStyles?r.endpointStyles[n]:r.endpointStyle,hoverPaintStyle:r.endpointHoverStyles?r.endpointHoverStyles[n]:r.endpointHoverStyle});return i.addEndpoint(e,o)},l=function(e,t,n,i){if(r[e]&&!r[e].endpoint&&!r[e+"Endpoint"]&&!r.newConnection){var o=W(r[e]),a=n[o];if(a=a?a[i]:null,a){if(!a.enabled)return!1;var l=p.extend({},a.def);delete l.label;var u=null!=a.endpoint&&a.endpoint._jsPlumb?a.endpoint:s(r[e],l,t);if(u.isFull())return!1;r[e+"Endpoint"]=u,!r.scope&&l.scope&&(r.scope=l.scope),a.uniqueEndpoint?a.endpoint?u.finalEndpoint=a.endpoint:(a.endpoint=u,u.setDeleteOnEmpty(!1)):u.setDeleteOnEmpty(!0),0===t&&a.def.connectorOverlays&&(r.overlays=r.overlays||[],Array.prototype.push.apply(r.overlays,a.def.connectorOverlays))}}};if(!1!==l("source",0,this.sourceEndpointDefinitions,r.type||"default")&&!1!==l("target",1,this.targetEndpointDefinitions,r.type||"default"))return r.sourceEndpoint&&r.targetEndpoint&&(I(r.sourceEndpoint,r.targetEndpoint)||(r=null)),r}}.bind(i),N=function(e){var t=i.Defaults.ConnectionType||i.getDefaultConnectionType();e._jsPlumb=i,e.newConnection=N,e.newEndpoint=R,e.endpointsByUUID=_,e.endpointsByElement=b,e.finaliseConnection=H,e.id="con_"+E();var n=new t(e);return n.isDetachable()&&(n.endpoints[0].initDraggable("_jsPlumbSource"),n.endpoints[1].initDraggable("_jsPlumbTarget")),n},H=i.finaliseConnection=function(e,t,n,r){if(t=t||{},e.suspendedEndpoint||y.push(e),e.pending=null,e.endpoints[0].isTemporarySource=!1,!1!==r&&i.router.newConnection(e),j(e.source),!t.doNotFireConnectionEvent&&!1!==t.fireEvent){var o={connection:e,source:e.source,target:e.target,sourceId:e.sourceId,targetId:e.targetId,sourceEndpoint:e.endpoints[0],targetEndpoint:e.endpoints[1]};i.fire("connection",o,n)}},R=function(e,t){var n=i.Defaults.EndpointType||p.Endpoint,r=p.extend({},e);r._jsPlumb=i,r.newConnection=N,r.newEndpoint=R,r.endpointsByUUID=_,r.endpointsByElement=b,r.fireDetachEvent=q,r.elementId=t||W(r.source);var o=new n(r);return o.id="ep_"+E(),he(r.elementId,r.source),p.headless||i.getDragManager().endpointAdded(r.source,t),o},F=function(e,t,n){var i=b[e];if(i&&i.length)for(var r=0,o=i.length;r<o;r++){for(var a=0,s=i[r].connections.length;a<s;a++){var l=t(i[r].connections[a]);if(l)return}n&&n(i[r])}},z=function(e,t,n){t="block"===t;var i=null;n&&(i=function(e){e.setVisible(t,!0,!0)});var r=c(e);F(r.id,(function(e){if(t&&n){var i=e.sourceId===r.id?1:0;e.endpoints[i].isVisible()&&e.setVisible(!0)}else e.setVisible(t)}),i)},$=function(e,t){var n=null;t&&(n=function(e){var t=e.isVisible();e.setVisible(!t)}),F(e,(function(e){var t=e.isVisible();e.setVisible(!t)}),n)},B=function(e){var t=x[e];return t?{o:t,s:S[e]}:fe({elId:e})},W=function(e,t,r){if(n.isString(e))return e;if(null==e)return null;var a=i.getAttribute(e,"id");return a&&"undefined"!==a||(2===arguments.length&&void 0!==arguments[1]?a=t:(1===arguments.length||3===arguments.length&&!arguments[2])&&(a="jsPlumb_"+o+"_"+E()),r||i.setAttribute(e,"id",a)),a};this.setConnectionBeingDragged=function(e){M=e},this.isConnectionBeingDragged=function(){return M},this.getManagedElements=function(){return w},this.connectorClass="jtk-connector",this.connectorOutlineClass="jtk-connector-outline",this.connectedClass="jtk-connected",this.hoverClass="jtk-hover",this.endpointClass="jtk-endpoint",this.endpointConnectedClass="jtk-endpoint-connected",this.endpointFullClass="jtk-endpoint-full",this.endpointDropAllowedClass="jtk-endpoint-drop-allowed",this.endpointDropForbiddenClass="jtk-endpoint-drop-forbidden",this.overlayClass="jtk-overlay",this.draggingClass="jtk-dragging",this.elementDraggingClass="jtk-element-dragging",this.sourceElementDraggingClass="jtk-source-element-dragging",this.targetElementDraggingClass="jtk-target-element-dragging",this.endpointAnchorClassPrefix="jtk-endpoint-anchor",this.hoverSourceClass="jtk-source-hover",this.hoverTargetClass="jtk-target-hover",this.dragSelectClass="jtk-drag-select",this.Anchors={},this.Connectors={svg:{}},this.Endpoints={svg:{}},this.Overlays={svg:{}},this.ConnectorRenderers={},this.SVG="svg",this.addEndpoint=function(e,t,r){r=r||{};var o=p.extend({},r);p.extend(o,t),o.endpoint=o.endpoint||i.Defaults.Endpoint,o.paintStyle=o.paintStyle||i.Defaults.EndpointStyle;for(var a=[],s=n.isArray(e)||null!=e.length&&!n.isString(e)?e:[e],l=0,u=s.length;l<u;l++){o.source=i.getElement(s[l]),ce(o.source);var c=W(o.source),d=R(o,c),h=he(c,o.source,null,!C).info.o;n.addToList(b,c,d),C||d.paint({anchorLoc:d.anchor.compute({xy:[h.left,h.top],wh:S[c],element:d,timestamp:D,rotation:this.getRotation(c)}),timestamp:D}),a.push(d)}return 1===a.length?a[0]:a},this.addEndpoints=function(e,t,r){for(var o=[],a=0,s=t.length;a<s;a++){var l=i.addEndpoint(e,t[a],r);n.isArray(l)?Array.prototype.push.apply(o,l):o.push(l)}return o},this.animate=function(e,t,r){if(!this.animationSupported)return!1;r=r||{};var o=i.getElement(e),a=W(o),s=p.animEvents.step,l=p.animEvents.complete;r[s]=n.wrap(r[s],(function(){i.revalidate(a)})),r[l]=n.wrap(r[l],(function(){i.revalidate(a)})),i.doAnimate(o,t,r)},this.checkCondition=function(e,t){var r=i.getListener(e),o=!0;if(r&&r.length>0){var a=Array.prototype.slice.call(arguments,1);try{for(var s=0,l=r.length;s<l;s++)o=o&&r[s].apply(r[s],a)}catch(u){n.log(i,"cannot check condition ["+e+"]"+u)}}return o},this.connect=function(e,t){var i,r=A(e,t);if(r){if(null==r.source&&null==r.sourceEndpoint)return void n.log("Cannot establish connection - source does not exist");if(null==r.target&&null==r.targetEndpoint)return void n.log("Cannot establish connection - target does not exist");ce(r.source),i=N(r),H(i,r)}return i};var V=[{el:"source",elId:"sourceId",epDefs:"sourceEndpointDefinitions"},{el:"target",elId:"targetId",epDefs:"targetEndpointDefinitions"}],U=function(e,t,n,i){var r,o,a,s=V[n],l=e[s.elId],u=(e[s.el],e.endpoints[n]),c={index:n,originalSourceId:0===n?l:e.sourceId,newSourceId:e.sourceId,originalTargetId:1===n?l:e.targetId,newTargetId:e.targetId,connection:e};if(t.constructor===p.Endpoint)r=t,r.addConnection(e),t=r.element;else if(o=W(t),a=this[s.epDefs][o],o===e[s.elId])r=null;else if(a)for(var d in a){if(!a[d].enabled)return;r=null!=a[d].endpoint&&a[d].endpoint._jsPlumb?a[d].endpoint:this.addEndpoint(t,a[d].def),a[d].uniqueEndpoint&&(a[d].endpoint=r),r.addConnection(e)}else r=e.makeEndpoint(0===n,t,o);return null!=r&&(u.detachFromConnection(e),e.endpoints[n]=r,e[s.el]=r.element,e[s.elId]=r.elementId,c[0===n?"newSourceId":"newTargetId"]=r.elementId,G(c),i||e.repaint()),c.element=t,c}.bind(this);this.setSource=function(e,t,n){var i=U(e,t,0,n);this.router.sourceOrTargetChanged(i.originalSourceId,i.newSourceId,e,i.el,0)},this.setTarget=function(e,t,n){var i=U(e,t,1,n);this.router.sourceOrTargetChanged(i.originalTargetId,i.newTargetId,e,i.el,1)},this.deleteEndpoint=function(e,t,n){var r="string"===typeof e?_[e]:e;return r&&i.deleteObject({endpoint:r,dontUpdateHover:t,deleteAttachedObjects:n}),i},this.deleteEveryEndpoint=function(){var e=i.setSuspendDrawing(!0);for(var t in b){var n=b[t];if(n&&n.length)for(var r=0,o=n.length;r<o;r++)i.deleteEndpoint(n[r],!0)}b={},w={},_={},x={},k={},i.router.reset();var a=i.getDragManager();return a&&a.reset(),e||i.setSuspendDrawing(!1),i};var q=function(e,t,n){var r=i.Defaults.ConnectionType||i.getDefaultConnectionType(),o=e.constructor===r,a=o?{connection:e,source:e.source,target:e.target,sourceId:e.sourceId,targetId:e.targetId,sourceEndpoint:e.endpoints[0],targetEndpoint:e.endpoints[1]}:e;t&&i.fire("connectionDetached",a,n),i.fire("internal.connectionDetached",a,n),i.router.connectionDetached(a)},G=i.fireMoveEvent=function(e,t){i.fire("connectionMoved",e,t)};this.unregisterEndpoint=function(e){for(var t in e._jsPlumb.uuid&&(_[e._jsPlumb.uuid]=null),i.router.deleteEndpoint(e),b){var n=b[t];if(n){for(var r=[],o=0,a=n.length;o<a;o++)n[o]!==e&&r.push(n[o]);b[t]=r}b[t].length<1&&delete b[t]}};var K="isDetachAllowed",J="beforeDetach",X="checkCondition";this.deleteConnection=function(e,t){return!(null==e||(t=t||{},!t.force&&!n.functionChain(!0,!1,[[e.endpoints[0],K,[e]],[e.endpoints[1],K,[e]],[e,K,[e]],[i,X,[J,e]]])))&&(e.setHover(!1),q(e,!e.pending&&!1!==t.fireEvent,t.originalEvent),e.endpoints[0].detachFromConnection(e),e.endpoints[1].detachFromConnection(e),n.removeWithFunction(y,(function(t){return e.id===t.id})),e.cleanup(),e.destroy(),!0)},this.deleteEveryConnection=function(e){e=e||{};var t=y.length,n=0;return i.batch((function(){for(var r=0;r<t;r++)n+=i.deleteConnection(y[0],e)?1:0})),n},this.deleteConnectionsForElement=function(e,t){t=t||{},e=i.getElement(e);var n=W(e),r=b[n];if(r&&r.length)for(var o=0,a=r.length;o<a;o++)r[o].deleteEveryConnection(t);return i},this.deleteObject=function(e){var t={endpoints:{},connections:{},endpointCount:0,connectionCount:0},r=!1!==e.deleteAttachedObjects,o=function(n){null!=n&&null==t.connections[n.id]&&(e.dontUpdateHover||null==n._jsPlumb||n.setHover(!1),t.connections[n.id]=n,t.connectionCount++)},a=function(n){if(null!=n&&null==t.endpoints[n.id]&&(e.dontUpdateHover||null==n._jsPlumb||n.setHover(!1),t.endpoints[n.id]=n,t.endpointCount++,r))for(var i=0;i<n.connections.length;i++){var a=n.connections[i];o(a)}};for(var s in e.connection?o(e.connection):a(e.endpoint),t.connections){var l=t.connections[s];if(l._jsPlumb){n.removeWithFunction(y,(function(e){return l.id===e.id})),q(l,!1!==e.fireEvent&&!l.pending,e.originalEvent);var u=null==e.deleteAttachedObjects?null:!e.deleteAttachedObjects;l.endpoints[0].detachFromConnection(l,null,u),l.endpoints[1].detachFromConnection(l,null,u),l.cleanup(!0),l.destroy(!0)}}for(var c in t.endpoints){var d=t.endpoints[c];d._jsPlumb&&(i.unregisterEndpoint(d),d.cleanup(!0),d.destroy(!0))}return t};var Z=function(e,t,n,i){for(var r=0,o=e.length;r<o;r++)e[r][t].apply(e[r],n);return i(e)},Q=function(e,t,n){for(var i=[],r=0,o=e.length;r<o;r++)i.push([e[r][t].apply(e[r],n),e[r]]);return i},ee=function(e,t,n){return function(){return Z(e,t,arguments,n)}},te=function(e,t){return function(){return Q(e,t,arguments)}},ne=function(e,t){var n=[];if(e)if("string"===typeof e){if("*"===e)return e;n.push(e)}else if(t)n=e;else if(e.length)for(var i=0,r=e.length;i<r;i++)n.push(c(e[i]).id);else n.push(c(e).id);return n},ie=function(e,t,n){return"*"===e||(e.length>0?-1!==e.indexOf(t):!n)};this.getConnections=function(e,t){e?e.constructor===String&&(e={scope:e}):e={};for(var n=e.scope||i.getDefaultScope(),r=ne(n,!0),o=ne(e.source),a=ne(e.target),s=!t&&r.length>1?{}:[],l=function(e,n){if(!t&&r.length>1){var i=s[e];null==i&&(i=s[e]=[]),i.push(n)}else s.push(n)},u=0,c=y.length;u<c;u++){var d=y[u],h=d.proxies&&d.proxies[0]?d.proxies[0].originalEp.elementId:d.sourceId,f=d.proxies&&d.proxies[1]?d.proxies[1].originalEp.elementId:d.targetId;ie(r,d.scope)&&ie(o,h)&&ie(a,f)&&l(d.scope,d)}return s};var re=function(e,t){return function(n){for(var i=0,r=e.length;i<r;i++)n(e[i]);return t(e)}},oe=function(e){return function(t){return e[t]}},ae=function(e,t){var n,i,r={length:e.length,each:re(e,t),get:oe(e)},o=["setHover","removeAllOverlays","setLabel","addClass","addOverlay","removeOverlay","removeOverlays","showOverlay","hideOverlay","showOverlays","hideOverlays","setPaintStyle","setHoverPaintStyle","setSuspendEvents","setParameter","setParameters","setVisible","repaint","addType","toggleType","removeType","removeClass","setType","bind","unbind"],a=["getLabel","getOverlay","isHover","getParameter","getParameters","getPaintStyle","getHoverPaintStyle","isVisible","hasType","getType","isSuspendEvents"];for(n=0,i=o.length;n<i;n++)r[o[n]]=ee(e,o[n],t);for(n=0,i=a.length;n<i;n++)r[a[n]]=te(e,a[n]);return r},se=function(e){var t=ae(e,se);return p.extend(t,{setDetachable:ee(e,"setDetachable",se),setReattach:ee(e,"setReattach",se),setConnector:ee(e,"setConnector",se),delete:function(){for(var t=0,n=e.length;t<n;t++)i.deleteConnection(e[t])},isDetachable:te(e,"isDetachable"),isReattach:te(e,"isReattach")})},le=function(e){var t=ae(e,le);return p.extend(t,{setEnabled:ee(e,"setEnabled",le),setAnchor:ee(e,"setAnchor",le),isEnabled:te(e,"isEnabled"),deleteEveryConnection:function(){for(var t=0,n=e.length;t<n;t++)e[t].deleteEveryConnection()},delete:function(){for(var t=0,n=e.length;t<n;t++)i.deleteEndpoint(e[t])}})};this.select=function(e){return e=e||{},e.scope=e.scope||"*",se(e.connections||i.getConnections(e,!0))},this.selectEndpoints=function(e){e=e||{},e.scope=e.scope||"*";var t=!e.element&&!e.source&&!e.target,n=t?"*":ne(e.element),i=t?"*":ne(e.source),r=t?"*":ne(e.target),o=ne(e.scope,!0),a=[];for(var s in b){var l=ie(n,s,!0),u=ie(i,s,!0),c="*"!==i,d=ie(r,s,!0),h="*"!==r;if(l||u||d)e:for(var f=0,p=b[s].length;f<p;f++){var m=b[s][f];if(ie(o,m.scope,!0)){var v=c&&i.length>0&&!m.isSource,g=h&&r.length>0&&!m.isTarget;if(v||g)continue e;a.push(m)}}}return le(a)},this.getAllConnections=function(){return y},this.getDefaultScope=function(){return L},this.getEndpoint=O,this.getEndpoints=function(e){return b[c(e).id]||[]},this.getDefaultEndpointType=function(){return p.Endpoint},this.getDefaultConnectionType=function(){return p.Connection},this.getId=W,this.draw=j,this.info=c,this.appendElement=P;var ue=!1;this.isHoverSuspended=function(){return ue},this.setHoverSuspended=function(e){ue=e},this.hide=function(e,t){return z(e,"none",t),i},this.idstamp=E;var ce=function(e){if(!f&&e){var t=i.getElement(e);t.offsetParent&&i.setContainer(t.offsetParent)}},de=function(){i.Defaults.Container&&i.setContainer(i.Defaults.Container)},he=i.manage=function(e,t,n,r){return w[e]?r&&(w[e].info=fe({elId:e,timestamp:D,recalc:!0})):(w[e]={el:t,endpoints:[],connections:[],rotation:0},w[e].info=fe({elId:e,timestamp:D}),i.addClass(t,"jtk-managed"),n||i.fire("manageElement",{id:e,info:w[e].info,el:t})),w[e]};this.unmanage=function(e){if(w[e]){var t=w[e].el;i.removeClass(t,"jtk-managed"),delete w[e],i.fire("unmanageElement",{id:e,el:t})}},this.rotate=function(e,t,n){return w[e]&&(w[e].rotation=t,w[e].el.style.transform="rotate("+t+"deg)",w[e].el.style.transformOrigin="center center",!0!==n)?this.revalidate(e):{c:[],e:[]}},this.getRotation=function(e){return w[e]&&w[e].rotation||0};var fe=function(e){var t,n=e.timestamp,r=e.recalc,o=e.offset,a=e.elId;return C&&!n&&(n=D),!r&&n&&n===k[a]?{o:e.offset||x[a],s:S[a]}:(r||!o&&null==x[a]?(t=w[a]?w[a].el:null,null!=t&&(S[a]=i.getSize(t),x[a]=i.getOffset(t),k[a]=n)):(x[a]=o||x[a],null==S[a]&&(t=w[a].el,null!=t&&(S[a]=i.getSize(t))),k[a]=n),x[a]&&!x[a].right&&(x[a].right=x[a].left+S[a][0],x[a].bottom=x[a].top+S[a][1],x[a].width=S[a][0],x[a].height=S[a][1],x[a].centerx=x[a].left+x[a].width/2,x[a].centery=x[a].top+x[a].height/2),{o:x[a],s:S[a]})};this.updateOffset=fe,this.init=function(){g||(de(),i.router=new e.jsPlumb.DefaultRouter(i),i.anchorManager=i.router.anchorManager,g=!0,i.fire("ready",i))}.bind(this),this.log=v,this.jsPlumbUIComponent=u,this.makeAnchor=function(){var t,r=function(t,n){if(e.jsPlumb.Anchors[t])return new e.jsPlumb.Anchors[t](n);if(!i.Defaults.DoNotThrowErrors)throw{msg:"jsPlumb: unknown anchor type '"+t+"'"}};if(0===arguments.length)return null;var o=arguments[0],a=arguments[1],s=null;if(o.compute&&o.getOrientation)return o;if("string"===typeof o)s=r(arguments[0],{elementId:a,jsPlumbInstance:i});else if(n.isArray(o))if(n.isArray(o[0])||n.isString(o[0]))2===o.length&&n.isObject(o[1])?n.isString(o[0])?(t=e.jsPlumb.extend({elementId:a,jsPlumbInstance:i},o[1]),s=r(o[0],t)):(t=e.jsPlumb.extend({elementId:a,jsPlumbInstance:i,anchors:o[0]},o[1]),s=new e.jsPlumb.DynamicAnchor(t)):s=new p.DynamicAnchor({anchors:o,selector:null,elementId:a,jsPlumbInstance:i});else{var l={x:o[0],y:o[1],orientation:o.length>=4?[o[2],o[3]]:[0,0],offsets:o.length>=6?[o[4],o[5]]:[0,0],elementId:a,jsPlumbInstance:i,cssClass:7===o.length?o[6]:null};s=new e.jsPlumb.Anchor(l),s.clone=function(){return new e.jsPlumb.Anchor(l)}}return s.id||(s.id="anchor_"+E()),s},this.makeAnchors=function(t,r,o){for(var a=[],s=0,l=t.length;s<l;s++)"string"===typeof t[s]?a.push(e.jsPlumb.Anchors[t[s]]({elementId:r,jsPlumbInstance:o})):n.isArray(t[s])&&a.push(i.makeAnchor(t[s],r,o));return a},this.makeDynamicAnchor=function(t,n){return new e.jsPlumb.DynamicAnchor({anchors:t,selector:n,elementId:null,jsPlumbInstance:i})},this.targetEndpointDefinitions={},this.sourceEndpointDefinitions={};var pe=function(e,t,n,i,r){for(var o=e.target||e.srcElement,a=!1,s=i.getSelector(t,n),l=0;l<s.length;l++)if(s[l]===o){a=!0;break}return r?!a:a},me=function(t,r,o,a,s){var l=new u(r),c=r._jsPlumb.EndpointDropHandler({jsPlumb:i,enabled:function(){return t.def.enabled},isFull:function(){var e=i.select({target:t.id}).length;return t.def.maxConnections>0&&e>=t.def.maxConnections},element:t.el,elementId:t.id,isSource:a,isTarget:s,addClass:function(e){i.addClass(t.el,e)},removeClass:function(e){i.removeClass(t.el,e)},onDrop:function(e){var t=e.endpoints[0];t.anchor.locked=!1},isDropAllowed:function(){return l.isDropAllowed.apply(l,arguments)},isRedrop:function(e){return null!=e.suspendedElement&&null!=e.suspendedEndpoint&&e.suspendedEndpoint.element===t.el},getEndpoint:function(n){var o=t.def.endpoint;if(null==o||null==o._jsPlumb){var a=i.deriveEndpointAndAnchorSpec(n.getType().join(" "),!0),s=a.endpoints?e.jsPlumb.extend(r,{endpoint:t.def.def.endpoint||a.endpoints[1]}):r;a.anchors&&(s=e.jsPlumb.extend(s,{anchor:t.def.def.anchor||a.anchors[1]})),o=i.addEndpoint(t.el,s),o._mtNew=!0}if(r.uniqueEndpoint&&(t.def.endpoint=o),o.setDeleteOnEmpty(!0),n.isDetachable()&&o.initDraggable(),null!=o.anchor.positionFinder){var l=i.getUIPosition(arguments,i.getZoom()),u=i.getOffset(t.el),c=i.getSize(t.el),d=null==l?[0,0]:o.anchor.positionFinder(l,u,c,o.anchor.constructorParams);o.anchor.x=d[0],o.anchor.y=d[1]}return o},maybeCleanup:function(e){e._mtNew&&0===e.connections.length?i.deleteObject({endpoint:e}):delete e._mtNew}}),d=e.jsPlumb.dragEvents.drop;return o.scope=o.scope||r.scope||i.Defaults.Scope,o[d]=n.wrap(o[d],c,!0),o.rank=r.rank||0,s&&(o[e.jsPlumb.dragEvents.over]=function(){return!0}),!1===r.allowLoopback&&(o.canDrop=function(e){var n=e.getDragElement()._jsPlumbRelatedElement;return n!==t.el}),i.initDroppable(t.el,o,"internal"),c};this.makeTarget=function(t,n,r){var o=e.jsPlumb.extend({_jsPlumb:this},r);e.jsPlumb.extend(o,n);for(var a=o.maxConnections||-1,s=function(t){var n=c(t),r=n.id,s=e.jsPlumb.extend({},o.dropOptions||{}),l=o.connectionType||"default";this.targetEndpointDefinitions[r]=this.targetEndpointDefinitions[r]||{},ce(r),n.el._isJsPlumbGroup&&null==s.rank&&(s.rank=-1);var u={def:e.jsPlumb.extend({},o),uniqueEndpoint:o.uniqueEndpoint,maxConnections:a,enabled:!0};o.createEndpoint&&(u.uniqueEndpoint=!0,u.endpoint=i.addEndpoint(t,u.def),u.endpoint.setDeleteOnEmpty(!1)),n.def=u,this.targetEndpointDefinitions[r][l]=u,me(n,o,s,!0===o.isSource,!0),n.el._katavorioDrop[n.el._katavorioDrop.length-1].targetDef=u}.bind(this),l=t.length&&t.constructor!==String?t:[t],u=0,d=l.length;u<d;u++)s(l[u]);return this},this.unmakeTarget=function(e,t){var n=c(e);return i.destroyDroppable(n.el,"internal"),t||delete this.targetEndpointDefinitions[n.id],this},this.makeSource=function(t,r,o){var a=e.jsPlumb.extend({_jsPlumb:this},o);e.jsPlumb.extend(a,r);var s=a.connectionType||"default",u=i.deriveEndpointAndAnchorSpec(s);a.endpoint=a.endpoint||u.endpoints[0],a.anchor=a.anchor||u.anchors[0];for(var d=a.maxConnections||-1,h=a.onMaxConnections,f=function(r){var o=r.id,u=this.getElement(r.el);this.sourceEndpointDefinitions[o]=this.sourceEndpointDefinitions[o]||{},ce(o);var c={def:e.jsPlumb.extend({},a),uniqueEndpoint:a.uniqueEndpoint,maxConnections:d,enabled:!0};a.createEndpoint&&(c.uniqueEndpoint=!0,c.endpoint=i.addEndpoint(t,c.def),c.endpoint.setDeleteOnEmpty(!1)),this.sourceEndpointDefinitions[o][s]=c,r.def=c;var f=e.jsPlumb.dragEvents.stop,p=e.jsPlumb.dragEvents.drag,m=e.jsPlumb.extend({},a.dragOptions||{}),v=m.drag,g=m.stop,y=null,b=!1;m.scope=m.scope||a.scope,m[p]=n.wrap(m[p],(function(){v&&v.apply(this,arguments),b=!1})),m[f]=n.wrap(m[f],function(){if(g&&g.apply(this,arguments),this.currentlyDragging=!1,null!=y._jsPlumb){var e=a.anchor||this.Defaults.Anchor,t=y.anchor,n=y.connections[0],r=this.makeAnchor(e,o,this),s=y.element;if(null!=r.positionFinder){var l=i.getOffset(s),u=this.getSize(s),c={left:l.left+t.x*u[0],top:l.top+t.y*u[1]},d=r.positionFinder(c,l,u,r.constructorParams);r.x=d[0],r.y=d[1]}y.setAnchor(r,!0),y.repaint(),this.repaint(y.elementId),null!=n&&this.repaint(n.targetId)}}.bind(this));var _=function(t){if(3!==t.which&&2!==t.button){o=this.getId(this.getElement(r.el));var c=this.sourceEndpointDefinitions[o][s];if(c.enabled){if(a.filter){var f=n.isString(a.filter)?pe(t,r.el,a.filter,this,a.filterExclude):a.filter(t,r.el);if(!1===f)return}var p=this.select({source:o}).length;if(c.maxConnections>=0&&p>=c.maxConnections)return h&&h({element:r.el,maxConnections:d},t),!1;var v=e.jsPlumb.getPositionOnElement(t,u,l),g={};e.jsPlumb.extend(g,c.def),g.isTemporarySource=!0,g.anchor=[v[0],v[1],0,0],g.dragOptions=m,c.def.scope&&(g.scope=c.def.scope),y=this.addEndpoint(o,g),b=!0,y.setDeleteOnEmpty(!0),c.uniqueEndpoint&&(c.endpoint?y.finalEndpoint=c.endpoint:(c.endpoint=y,y.setDeleteOnEmpty(!1)));var _=function(){i.off(y.canvas,"mouseup",_),i.off(r.el,"mouseup",_),b&&(b=!1,i.deleteEndpoint(y))};i.on(y.canvas,"mouseup",_),i.on(r.el,"mouseup",_);var w={};if(c.def.extract)for(var x in c.def.extract){var k=(t.srcElement||t.target).getAttribute(x);k&&(w[c.def.extract[x]]=k)}i.trigger(y.canvas,"mousedown",t,w),n.consume(t)}}}.bind(this);this.on(r.el,"mousedown",_),c.trigger=_,a.filter&&(n.isString(a.filter)||n.isFunction(a.filter))&&i.setDragFilter(r.el,a.filter);var w=e.jsPlumb.extend({},a.dropOptions||{});me(r,a,w,!0,!0===a.isTarget)}.bind(this),p=t.length&&t.constructor!==String?t:[t],m=0,v=p.length;m<v;m++)f(c(p[m]));return this},this.unmakeSource=function(e,t,n){var r=c(e);i.destroyDroppable(r.el,"internal");var o=this.sourceEndpointDefinitions[r.id];if(o)for(var a in o)if(null==t||t===a){var s=o[a].trigger;s&&i.off(r.el,"mousedown",s),n||delete this.sourceEndpointDefinitions[r.id][a]}return this},this.unmakeEverySource=function(){for(var e in this.sourceEndpointDefinitions)i.unmakeSource(e,null,!0);return this.sourceEndpointDefinitions={},this};var ve=function(e,t,i){t=n.isArray(t)?t:[t];var r=W(e);i=i||"default";for(var o=0;o<t.length;o++){var a=this[t[o]][r];if(a&&a[i])return a[i].def.scope||this.Defaults.Scope}}.bind(this),ge=function(e,t,i,r){i=n.isArray(i)?i:[i];var o=W(e);r=r||"default";for(var a=0;a<i.length;a++){var s=this[i[a]][o];s&&s[r]&&(s[r].def.scope=t)}}.bind(this);this.getScope=function(e,t){return ve(e,["sourceEndpointDefinitions","targetEndpointDefinitions"])},this.getSourceScope=function(e){return ve(e,"sourceEndpointDefinitions")},this.getTargetScope=function(e){return ve(e,"targetEndpointDefinitions")},this.setScope=function(e,t,n){this.setSourceScope(e,t,n),this.setTargetScope(e,t,n)},this.setSourceScope=function(e,t,n){ge(e,t,"sourceEndpointDefinitions",n),this.setDragScope(e,t)},this.setTargetScope=function(e,t,n){ge(e,t,"targetEndpointDefinitions",n),this.setDropScope(e,t)},this.unmakeEveryTarget=function(){for(var e in this.targetEndpointDefinitions)i.unmakeTarget(e,!0);return this.targetEndpointDefinitions={},this};var ye=function(e,t,r,o,a){var s,l,u,d="source"===e?this.sourceEndpointDefinitions:this.targetEndpointDefinitions;if(a=a||"default",t.length&&!n.isString(t)){s=[];for(var h=0,f=t.length;h<f;h++)l=c(t[h]),d[l.id]&&d[l.id][a]&&(s[h]=d[l.id][a].enabled,u=o?!s[h]:r,d[l.id][a].enabled=u,i[u?"removeClass":"addClass"](l.el,"jtk-"+e+"-disabled"))}else{l=c(t);var p=l.id;d[p]&&d[p][a]&&(s=d[p][a].enabled,u=o?!s:r,d[p][a].enabled=u,i[u?"removeClass":"addClass"](l.el,"jtk-"+e+"-disabled"))}return s}.bind(this),be=function(e,t){if(null!=e){if(n.isString(e)||!e.length)return t.apply(this,[e]);if(e.length)return t.apply(this,[e[0]])}}.bind(this);this.toggleSourceEnabled=function(e,t){return ye("source",e,null,!0,t),this.isSourceEnabled(e,t)},this.setSourceEnabled=function(e,t,n){return ye("source",e,t,null,n)},this.isSource=function(e,t){return t=t||"default",be(e,function(e){var n=this.sourceEndpointDefinitions[c(e).id];return null!=n&&null!=n[t]}.bind(this))},this.isSourceEnabled=function(e,t){return t=t||"default",be(e,function(e){var n=this.sourceEndpointDefinitions[c(e).id];return n&&n[t]&&!0===n[t].enabled}.bind(this))},this.toggleTargetEnabled=function(e,t){return ye("target",e,null,!0,t),this.isTargetEnabled(e,t)},this.isTarget=function(e,t){return t=t||"default",be(e,function(e){var n=this.targetEndpointDefinitions[c(e).id];return null!=n&&null!=n[t]}.bind(this))},this.isTargetEnabled=function(e,t){return t=t||"default",be(e,function(e){var n=this.targetEndpointDefinitions[c(e).id];return n&&n[t]&&!0===n[t].enabled}.bind(this))},this.setTargetEnabled=function(e,t,n){return ye("target",e,t,null,n)},this.ready=function(e){i.bind("ready",e)};var _e=function(e,t){if("object"===typeof e&&e.length)for(var n=0,r=e.length;n<r;n++)t(e[n]);else t(e);return i};this.repaint=function(e,t,n){return _e(e,(function(e){j(e,t,n)}))},this.revalidate=function(e,t,n){var r=n?e:i.getId(e);i.updateOffset({elId:r,recalc:!0,timestamp:t});var o=i.getDragManager();return o&&o.updateOffsets(r),j(e,null,t)},this.repaintEverything=function(){var e,t=jsPlumbUtil.uuid();for(e in b)i.updateOffset({elId:e,recalc:!0,timestamp:t});for(e in b)j(e,null,t);return this},this.removeAllEndpoints=function(e,t,n){n=n||[];var r=function(e){var o,a,s=c(e),l=b[s.id];if(l)for(n.push(s),o=0,a=l.length;o<a;o++)i.deleteEndpoint(l[o],!1);if(delete b[s.id],t&&s.el&&3!==s.el.nodeType&&8!==s.el.nodeType)for(o=0,a=s.el.childNodes.length;o<a;o++)r(s.el.childNodes[o])};return r(e),this};var we=function(e,t){i.removeAllEndpoints(e.id,!0,t);for(var n=i.getDragManager(),r=function(e){n&&n.elementRemoved(e.id),i.router.elementRemoved(e.id),i.isSource(e.el)&&i.unmakeSource(e.el),i.isTarget(e.el)&&i.unmakeTarget(e.el),i.destroyDraggable(e.el),i.destroyDroppable(e.el),delete i.floatingConnections[e.id],delete w[e.id],delete x[e.id],e.el&&(i.removeElement(e.el),e.el._jsPlumb=null)},o=1;o<t.length;o++)r(t[o]);r(e)};this.remove=function(e,t){var n=c(e),r=[];return n.text&&n.el.parentNode?n.el.parentNode.removeChild(n.el):n.id&&i.batch((function(){we(n,r)}),!0===t),i},this.empty=function(e,t){var n=[],r=function(e,t){var i=c(e);if(i.text)i.el.parentNode.removeChild(i.el);else if(i.el){while(i.el.childNodes.length>0)r(i.el.childNodes[0]);t||we(i,n)}};return i.batch((function(){r(e,!0)}),!1===t),i},this.reset=function(e){i.silently(function(){ue=!1,i.removeAllGroups(),i.removeGroupManager(),i.deleteEveryEndpoint(),e||i.unbind(),this.targetEndpointDefinitions={},this.sourceEndpointDefinitions={},y.length=0,this.doReset&&this.doReset()}.bind(this))},this.destroy=function(){this.reset(),f=null,m=null};var xe=function(e){e.canvas&&e.canvas.parentNode&&e.canvas.parentNode.removeChild(e.canvas),e.cleanup(),e.destroy()};this.clear=function(){i.select().each(xe),i.selectEndpoints().each(xe),b={},_={}},this.setDefaultScope=function(e){return L=e,i},this.deriveEndpointAndAnchorSpec=function(e,t){for(var n=((t?"":"default ")+e).split(/[\s]/),r=null,o=null,a=null,s=null,l=0;l<n.length;l++){var u=i.getType(n[l],"connection");u&&(u.endpoints&&(r=u.endpoints),u.endpoint&&(o=u.endpoint),u.anchors&&(s=u.anchors),u.anchor&&(a=u.anchor))}return{endpoints:r||[o,o],anchors:s||[a,a]}},this.setId=function(e,t,i){var r;n.isString(e)?r=e:(e=this.getElement(e),r=this.getId(e));var o=this.getConnections({source:r,scope:"*"},!0),a=this.getConnections({target:r,scope:"*"},!0);t=""+t,i?e=this.getElement(t):(e=this.getElement(r),this.setAttribute(e,"id",t)),b[t]=b[r]||[];for(var s=0,l=b[t].length;s<l;s++)b[t][s].setElementId(t),b[t][s].setReferenceElement(e);delete b[r],this.sourceEndpointDefinitions[t]=this.sourceEndpointDefinitions[r],delete this.sourceEndpointDefinitions[r],this.targetEndpointDefinitions[t]=this.targetEndpointDefinitions[r],delete this.targetEndpointDefinitions[r],this.router.changeId(r,t);var u=this.getDragManager();u&&u.changeId(r,t),w[t]=w[r],delete w[r];var c=function(n,i,r){for(var o=0,a=n.length;o<a;o++)n[o].endpoints[i].setElementId(t),n[o].endpoints[i].setReferenceElement(e),n[o][r+"Id"]=t,n[o][r]=e};c(o,0,"source"),c(a,1,"target"),this.repaint(t)},this.setDebugLog=function(e){v=e},this.setSuspendDrawing=function(e,t){var n=C;return C=e,D=e?(new Date).getTime():null,t&&this.repaintEverything(),n},this.isSuspendDrawing=function(){return C},this.getSuspendedAt=function(){return D},this.batch=function(e,t){var i=this.isSuspendDrawing();i||this.setSuspendDrawing(!0);try{e()}catch(r){n.log("Function run while suspended failed",r)}i||this.setSuspendDrawing(!1,!t)},this.doWhileSuspended=this.batch,this.getCachedData=B,this.show=function(e,t){return z(e,"block",t),i},this.toggleVisible=$,this.addListener=this.bind;var ke=[];this.registerFloatingConnection=function(e,t,i){ke[e.id]=t,n.addToList(b,e.id,i)},this.getFloatingConnectionFor=function(e){return ke[e]},this.listManager=new e.jsPlumbListManager(this,this.Defaults.ListStyle)};n.extend(e.jsPlumbInstance,n.EventGenerator,{setAttribute:function(e,t,n){this.setAttribute(e,t,n)},getAttribute:function(t,n){return this.getAttribute(e.jsPlumb.getElement(t),n)},convertToFullOverlaySpec:function(e){return n.isString(e)&&(e=[e,{}]),e[1].id=e[1].id||n.uuid(),e},registerConnectionType:function(t,n){if(this._connectionTypes[t]=e.jsPlumb.extend({},n),n.overlays){for(var i={},r=0;r<n.overlays.length;r++){var o=this.convertToFullOverlaySpec(n.overlays[r]);i[o[1].id]=o}this._connectionTypes[t].overlays=i}},registerConnectionTypes:function(e){for(var t in e)this.registerConnectionType(t,e[t])},registerEndpointType:function(t,n){if(this._endpointTypes[t]=e.jsPlumb.extend({},n),n.overlays){for(var i={},r=0;r<n.overlays.length;r++){var o=this.convertToFullOverlaySpec(n.overlays[r]);i[o[1].id]=o}this._endpointTypes[t].overlays=i}},registerEndpointTypes:function(e){for(var t in e)this.registerEndpointType(t,e[t])},getType:function(e,t){return"connection"===t?this._connectionTypes[e]:this._endpointTypes[e]},setIdChanged:function(e,t){this.setId(e,t,!0)},setParent:function(e,t){var n=this.getElement(e),i=this.getId(n),r=this.getElement(t),o=this.getId(r),a=this.getDragManager();n.parentNode.removeChild(n),r.appendChild(n),a&&a.setParent(n,i,r,o)},extend:function(e,t,n){var i;if(n)for(i=0;i<n.length;i++)e[n[i]]=t[n[i]];else for(i in t)e[i]=t[i];return e},floatingConnections:{},getFloatingAnchorIndex:function(e){return e.endpoints[0].isFloating()?0:e.endpoints[1].isFloating()?1:-1},proxyConnection:function(e,t,n,i,r,o){var a,s=e.endpoints[t].elementId,l=e.endpoints[t];e.proxies=e.proxies||[],a=e.proxies[t]?e.proxies[t].ep:this.addEndpoint(n,{endpoint:r(e,t),anchor:o(e,t),parameters:{isProxyEndpoint:!0}}),a.setDeleteOnEmpty(!0),e.proxies[t]={ep:a,originalEp:l},0===t?this.router.sourceOrTargetChanged(s,i,e,n,0):this.router.sourceOrTargetChanged(s,i,e,n,1),l.detachFromConnection(e,null,!0),a.connections=[e],e.endpoints[t]=a,l.setVisible(!1),e.setVisible(!0),this.revalidate(n)},unproxyConnection:function(e,t,n){if(null!=e._jsPlumb&&null!=e.proxies&&null!=e.proxies[t]){var i=e.proxies[t].originalEp.element,r=e.proxies[t].originalEp.elementId;e.endpoints[t]=e.proxies[t].originalEp,0===t?this.router.sourceOrTargetChanged(n,r,e,i,0):this.router.sourceOrTargetChanged(n,r,e,i,1),e.proxies[t].ep.detachFromConnection(e,null),e.proxies[t].originalEp.addConnection(e),e.isVisible()&&e.proxies[t].originalEp.setVisible(!0),delete e.proxies[t]}}});var p=new f;e.jsPlumb=p,p.getInstance=function(e,t){var n=new f(e);if(t)for(var i in t)n[i]=t[i];return n.init(),n},p.each=function(e,t){if(null!=e)if("string"===typeof e)t(p.getElement(e));else if(null!=e.length)for(var n=0;n<e.length;n++)t(p.getElement(e[n]));else t(e)},t.jsPlumb=p}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumb,n=e.jsPlumbUtil,i="__label",r=function(e,n){var r={cssClass:n.cssClass,labelStyle:e.labelStyle,id:i,component:e,_jsPlumb:e._jsPlumb.instance},o=t.extend(r,n);return new(t.Overlays[e._jsPlumb.instance.getRenderMode()].Label)(o)},o=function(e,i){var r=null;if(n.isArray(i)){var o=i[0],a=t.extend({component:e,_jsPlumb:e._jsPlumb.instance},i[1]);3===i.length&&t.extend(a,i[2]),r=new(t.Overlays[e._jsPlumb.instance.getRenderMode()][o])(a)}else r=i.constructor===String?new(t.Overlays[e._jsPlumb.instance.getRenderMode()][i])({component:e,_jsPlumb:e._jsPlumb.instance}):i;return r.id=r.id||n.uuid(),e.cacheTypeItem("overlay",r,r.id),e._jsPlumb.overlays[r.id]=r,r};t.OverlayCapableJsPlumbUIComponent=function(t){e.jsPlumbUIComponent.apply(this,arguments),this._jsPlumb.overlays={},this._jsPlumb.overlayPositions={},t.label&&(this.getDefaultType().overlays[i]=["Label",{label:t.label,location:t.labelLocation||this.defaultLabelLocation||.5,labelStyle:t.labelStyle||this._jsPlumb.instance.Defaults.LabelStyle,id:i}]),this.setListenerComponent=function(e){if(this._jsPlumb)for(var t in this._jsPlumb.overlays)this._jsPlumb.overlays[t].setListenerComponent(e)}},t.OverlayCapableJsPlumbUIComponent.applyType=function(e,t){if(t.overlays){var n,i={};for(n in t.overlays){var r=e._jsPlumb.overlays[t.overlays[n][1].id];if(r)r.updateFrom(t.overlays[n][1]),i[t.overlays[n][1].id]=!0,r.reattach(e._jsPlumb.instance,e);else{var o=e.getCachedTypeItem("overlay",t.overlays[n][1].id);null!=o?(o.reattach(e._jsPlumb.instance,e),o.setVisible(!0),o.updateFrom(t.overlays[n][1]),e._jsPlumb.overlays[o.id]=o):o=e.addOverlay(t.overlays[n],!0),i[o.id]=!0}}for(n in e._jsPlumb.overlays)null==i[e._jsPlumb.overlays[n].id]&&e.removeOverlay(e._jsPlumb.overlays[n].id,!0)}},n.extend(t.OverlayCapableJsPlumbUIComponent,e.jsPlumbUIComponent,{setHover:function(e,t){if(this._jsPlumb&&!this._jsPlumb.instance.isConnectionBeingDragged())for(var n in this._jsPlumb.overlays)this._jsPlumb.overlays[n][e?"addClass":"removeClass"](this._jsPlumb.instance.hoverClass)},addOverlay:function(e,t){var i=o(this,e);if(this.getData&&"Label"===i.type&&n.isArray(e)){var r=this.getData(),a=e[1];if(r){var s=a.labelLocationAttribute||"labelLocation",l=r?r[s]:null;l&&(i.loc=l)}}return t||this.repaint(),i},getOverlay:function(e){return this._jsPlumb.overlays[e]},getOverlays:function(){return this._jsPlumb.overlays},hideOverlay:function(e){var t=this.getOverlay(e);t&&t.hide()},hideOverlays:function(){for(var e in this._jsPlumb.overlays)this._jsPlumb.overlays[e].hide()},showOverlay:function(e){var t=this.getOverlay(e);t&&t.show()},showOverlays:function(){for(var e in this._jsPlumb.overlays)this._jsPlumb.overlays[e].show()},removeAllOverlays:function(e){for(var t in this._jsPlumb.overlays)this._jsPlumb.overlays[t].cleanup&&this._jsPlumb.overlays[t].cleanup();this._jsPlumb.overlays={},this._jsPlumb.overlayPositions=null,this._jsPlumb.overlayPlacements={},e||this.repaint()},removeOverlay:function(e,t){var n=this._jsPlumb.overlays[e];n&&(n.setVisible(!1),!t&&n.cleanup&&n.cleanup(),delete this._jsPlumb.overlays[e],this._jsPlumb.overlayPositions&&delete this._jsPlumb.overlayPositions[e],this._jsPlumb.overlayPlacements&&delete this._jsPlumb.overlayPlacements[e])},removeOverlays:function(){for(var e=0,t=arguments.length;e<t;e++)this.removeOverlay(arguments[e])},moveParent:function(e){if(this.bgCanvas&&(this.bgCanvas.parentNode.removeChild(this.bgCanvas),e.appendChild(this.bgCanvas)),this.canvas&&this.canvas.parentNode)for(var t in this.canvas.parentNode.removeChild(this.canvas),e.appendChild(this.canvas),this._jsPlumb.overlays)if(this._jsPlumb.overlays[t].isAppendedAtTopLevel){var n=this._jsPlumb.overlays[t].getElement();n.parentNode.removeChild(n),e.appendChild(n)}},getLabel:function(){var e=this.getOverlay(i);return null!=e?e.getLabel():null},getLabelOverlay:function(){return this.getOverlay(i)},setLabel:function(e){var t=this.getOverlay(i);if(t)e.constructor===String||e.constructor===Function?t.setLabel(e):(e.label&&t.setLabel(e.label),e.location&&t.setLocation(e.location));else{var n=e.constructor===String||e.constructor===Function?{label:e}:e;t=r(this,n),this._jsPlumb.overlays[i]=t}this._jsPlumb.instance.isSuspendDrawing()||this.repaint()},cleanup:function(e){for(var t in this._jsPlumb.overlays)this._jsPlumb.overlays[t].cleanup(e),this._jsPlumb.overlays[t].destroy(e);e&&(this._jsPlumb.overlays={},this._jsPlumb.overlayPositions=null)},setVisible:function(e){this[e?"showOverlays":"hideOverlays"]()},setAbsoluteOverlayPosition:function(e,t){this._jsPlumb.overlayPositions[e.id]=t},getAbsoluteOverlayPosition:function(e){return this._jsPlumb.overlayPositions?this._jsPlumb.overlayPositions[e.id]:null},_clazzManip:function(e,t,n){if(!n)for(var i in this._jsPlumb.overlays)this._jsPlumb.overlays[i][e+"Class"](t)},addClass:function(e,t){this._clazzManip("add",e,t)},removeClass:function(e,t){this._clazzManip("remove",e,t)}})}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumb,n=e.jsPlumbUtil,i=function(e,t,n){var i=!1;return{drag:function(){if(i)return i=!1,!0;if(t.element){var r=n.getUIPosition(arguments,n.getZoom());null!=r&&n.setPosition(t.element,r),n.repaint(t.element,r),e.paint({anchorPoint:e.anchor.getCurrentLocation({element:e})})}},stopDrag:function(){i=!0}}},r=function(e,t,n,i){var r=t.createElement("div",{position:"absolute"});t.appendElement(r);var o=t.getId(r);t.setPosition(r,n),r.style.width=i[0]+"px",r.style.height=i[1]+"px",t.manage(o,r,!0),e.id=o,e.element=r},o=function(e,n,i,r,o,a,s,l){var u=new t.FloatingAnchor({reference:n,referenceCanvas:r,jsPlumbInstance:a});return s({paintStyle:e,endpoint:i,anchor:u,source:o,scope:l})},a=["connectorStyle","connectorHoverStyle","connectorOverlays","connector","connectionType","connectorClass","connectorHoverClass"],s=function(e,t){var n=0;if(null!=t)for(var i=0;i<e.connections.length;i++)if(e.connections[i].sourceId===t||e.connections[i].targetId===t){n=i;break}return e.connections[n]};t.Endpoint=function(e){var l=e._jsPlumb,u=e.newConnection,c=e.newEndpoint;this.idPrefix="_jsplumb_e_",this.defaultLabelLocation=[.5,.5],this.defaultOverlayKeys=["Overlays","EndpointOverlays"],t.OverlayCapableJsPlumbUIComponent.apply(this,arguments),this.appendToDefaultType({connectionType:e.connectionType,maxConnections:null==e.maxConnections?this._jsPlumb.instance.Defaults.MaxConnections:e.maxConnections,paintStyle:e.endpointStyle||e.paintStyle||e.style||this._jsPlumb.instance.Defaults.EndpointStyle||t.Defaults.EndpointStyle,hoverPaintStyle:e.endpointHoverStyle||e.hoverPaintStyle||this._jsPlumb.instance.Defaults.EndpointHoverStyle||t.Defaults.EndpointHoverStyle,connectorStyle:e.connectorStyle,connectorHoverStyle:e.connectorHoverStyle,connectorClass:e.connectorClass,connectorHoverClass:e.connectorHoverClass,connectorOverlays:e.connectorOverlays,connector:e.connector,connectorTooltip:e.connectorTooltip}),this._jsPlumb.enabled=!(!1===e.enabled),this._jsPlumb.visible=!0,this.element=t.getElement(e.source),this._jsPlumb.uuid=e.uuid,this._jsPlumb.floatingEndpoint=null;var d=null;this._jsPlumb.uuid&&(e.endpointsByUUID[this._jsPlumb.uuid]=this),this.elementId=e.elementId,this.dragProxy=e.dragProxy,this._jsPlumb.connectionCost=e.connectionCost,this._jsPlumb.connectionsDirected=e.connectionsDirected,this._jsPlumb.currentAnchorClass="",this._jsPlumb.events={};var h=!0===e.deleteOnEmpty;this.setDeleteOnEmpty=function(e){h=e};var f=function(){var e=l.endpointAnchorClassPrefix+"-"+this._jsPlumb.currentAnchorClass;this._jsPlumb.currentAnchorClass=this.anchor.getCssClass();var n=l.endpointAnchorClassPrefix+(this._jsPlumb.currentAnchorClass?"-"+this._jsPlumb.currentAnchorClass:"");this.removeClass(e),this.addClass(n),t.updateClasses(this.element,n,e)}.bind(this);this.prepareAnchor=function(e){var t=this._jsPlumb.instance.makeAnchor(e,this.elementId,l);return t.bind("anchorChanged",function(e){this.fire("anchorChanged",{endpoint:this,anchor:e}),f()}.bind(this)),t},this.setPreparedAnchor=function(e,t){return this._jsPlumb.instance.continuousAnchorFactory.clear(this.elementId),this.anchor=e,f(),t||this._jsPlumb.instance.repaint(this.elementId),this},this.setAnchor=function(e,t){var n=this.prepareAnchor(e);return this.setPreparedAnchor(n,t),this};var p=function(e){if(this.connections.length>0)for(var t=0;t<this.connections.length;t++)this.connections[t].setHover(e,!1);else this.setHover(e)}.bind(this);this.bind("mouseover",(function(){p(!0)})),this.bind("mouseout",(function(){p(!1)})),e._transient||this._jsPlumb.instance.router.addEndpoint(this,this.elementId),this.prepareEndpoint=function(i,r){var o,a=function(e,n){var i=l.getRenderMode();if(t.Endpoints[i][e])return new t.Endpoints[i][e](n);if(!l.Defaults.DoNotThrowErrors)throw{msg:"jsPlumb: unknown endpoint type '"+e+"'"}},s={_jsPlumb:this._jsPlumb.instance,cssClass:e.cssClass,container:e.container,tooltip:e.tooltip,connectorTooltip:e.connectorTooltip,endpoint:this};return n.isString(i)?o=a(i,s):n.isArray(i)?(s=n.merge(i[1],s),o=a(i[0],s)):o=i.clone(),o.clone=function(){return n.isString(i)?a(i,s):n.isArray(i)?(s=n.merge(i[1],s),a(i[0],s)):void 0}.bind(this),o.typeId=r,o},this.setEndpoint=function(e,t){var n=this.prepareEndpoint(e);this.setPreparedEndpoint(n,!0)},this.setPreparedEndpoint=function(e,t){null!=this.endpoint&&(this.endpoint.cleanup(),this.endpoint.destroy()),this.endpoint=e,this.type=this.endpoint.type,this.canvas=this.endpoint.canvas},t.extend(this,e,a),this.isSource=e.isSource||!1,this.isTemporarySource=e.isTemporarySource||!1,this.isTarget=e.isTarget||!1,this.connections=e.connections||[],this.connectorPointerEvents=e["connector-pointer-events"],this.scope=e.scope||l.getDefaultScope(),this.timestamp=null,this.reattachConnections=e.reattach||l.Defaults.ReattachConnections,this.connectionsDetachable=l.Defaults.ConnectionsDetachable,!1!==e.connectionsDetachable&&!1!==e.detachable||(this.connectionsDetachable=!1),this.dragAllowedWhenFull=!1!==e.dragAllowedWhenFull,e.onMaxConnections&&this.bind("maxConnections",e.onMaxConnections),this.addConnection=function(e){this.connections.push(e),this[(this.connections.length>0?"add":"remove")+"Class"](l.endpointConnectedClass),this[(this.isFull()?"add":"remove")+"Class"](l.endpointFullClass)},this.detachFromConnection=function(e,t,n){t=null==t?this.connections.indexOf(e):t,t>=0&&(this.connections.splice(t,1),this[(this.connections.length>0?"add":"remove")+"Class"](l.endpointConnectedClass),this[(this.isFull()?"add":"remove")+"Class"](l.endpointFullClass)),!n&&h&&0===this.connections.length&&l.deleteObject({endpoint:this,fireEvent:!1,deleteAttachedObjects:!0!==n})},this.deleteEveryConnection=function(e){for(var t=this.connections.length,n=0;n<t;n++)l.deleteConnection(this.connections[0],e)},this.detachFrom=function(e,t,n){for(var i=[],r=0;r<this.connections.length;r++)this.connections[r].endpoints[1]!==e&&this.connections[r].endpoints[0]!==e||i.push(this.connections[r]);for(var o=0,a=i.length;o<a;o++)l.deleteConnection(i[0]);return this},this.getElement=function(){return this.element},this.setElement=function(i){var r=this._jsPlumb.instance.getId(i),o=this.elementId;return n.removeWithFunction(e.endpointsByElement[this.elementId],function(e){return e.id===this.id}.bind(this)),this.element=t.getElement(i),this.elementId=l.getId(this.element),l.router.rehomeEndpoint(this,o,this.element),l.dragManager.endpointAdded(this.element),n.addToList(e.endpointsByElement,r,this),this},this.makeInPlaceCopy=function(){var t=this.anchor.getCurrentLocation({element:this}),n=this.anchor.getOrientation(this),i=this.anchor.getCssClass(),r={bind:function(){},compute:function(){return[t[0],t[1]]},getCurrentLocation:function(){return[t[0],t[1]]},getOrientation:function(){return n},getCssClass:function(){return i}};return c({dropOptions:e.dropOptions,anchor:r,source:this.element,paintStyle:this.getPaintStyle(),endpoint:e.hideOnDrag?"Blank":this.endpoint,_transient:!0,scope:this.scope,reference:this})},this.connectorSelector=function(){return this.connections[0]},this.setStyle=this.setPaintStyle,this.paint=function(e){e=e||{};var t=e.timestamp,n=!(!1===e.recalc);if(!t||this.timestamp!==t){var i=l.updateOffset({elId:this.elementId,timestamp:t}),r=e.offset?e.offset.o:i.o;if(null!=r){var o=e.anchorPoint,a=e.connectorPaintStyle;if(null==o){var u=e.dimensions||i.s,c={xy:[r.left,r.top],wh:u,element:this,timestamp:t};if(n&&this.anchor.isDynamic&&this.connections.length>0){var d=s(this,e.elementWithPrecedence),h=d.endpoints[0]===this?1:0,f=0===h?d.sourceId:d.targetId,p=l.getCachedData(f),m=p.o,v=p.s;c.index=0===h?1:0,c.connection=d,c.txy=[m.left,m.top],c.twh=v,c.tElement=d.endpoints[h],c.tRotation=l.getRotation(f)}else this.connections.length>0&&(c.connection=this.connections[0]);c.rotation=l.getRotation(this.elementId),o=this.anchor.compute(c)}for(var g in this.endpoint.compute(o,this.anchor.getOrientation(this),this._jsPlumb.paintStyleInUse,a||this.paintStyleInUse),this.endpoint.paint(this._jsPlumb.paintStyleInUse,this.anchor),this.timestamp=t,this._jsPlumb.overlays)if(this._jsPlumb.overlays.hasOwnProperty(g)){var y=this._jsPlumb.overlays[g];y.isVisible()&&(this._jsPlumb.overlayPlacements[g]=y.draw(this.endpoint,this._jsPlumb.paintStyleInUse),y.paint(this._jsPlumb.overlayPlacements[g]))}}}},this.getTypeDescriptor=function(){return"endpoint"},this.isVisible=function(){return this._jsPlumb.visible},this.repaint=this.paint;var m=!1;this.initDraggable=function(){if(!m&&t.isDragSupported(this.element)){var a,s={id:null,element:null},h=null,f=!1,p=null,v=i(this,s,l),g=e.dragOptions||{},y={},b=t.dragEvents.start,_=t.dragEvents.stop,w=t.dragEvents.drag,x=t.dragEvents.beforeStart,k=function(e){a=e.e.payload||{}},M=function(n){h=this.connectorSelector();var i=!0;this.isEnabled()||(i=!1),null!=h||this.isSource||this.isTemporarySource||(i=!1),!this.isSource||!this.isFull()||null!=h&&this.dragAllowedWhenFull||(i=!1),null==h||h.isDetachable(this)||(this.isFull()?i=!1:h=null);var d=l.checkCondition(null==h?"beforeDrag":"beforeStartDetach",{endpoint:this,source:this.element,sourceId:this.elementId,connection:h});if(!1===d?i=!1:"object"===typeof d?t.extend(d,a||{}):d=a||{},!1===i)return l.stopDrag&&l.stopDrag(this.canvas),v.stopDrag(),!1;for(var m=0;m<this.connections.length;m++)this.connections[m].setHover(!1);this.addClass("endpointDrag"),l.setConnectionBeingDragged(!0),h&&!this.isFull()&&this.isSource&&(h=null),l.updateOffset({elId:this.elementId});var g=this._jsPlumb.instance.getOffset(this.canvas),y=this.canvas,b=this._jsPlumb.instance.getSize(this.canvas);r(s,l,g,b),l.setAttributes(this.canvas,{dragId:s.id,elId:this.elementId});var _=this.dragProxy||this.endpoint;if(null==this.dragProxy&&null!=this.connectionType){var w=this._jsPlumb.instance.deriveEndpointAndAnchorSpec(this.connectionType);w.endpoints[1]&&(_=w.endpoints[1])}var x=this._jsPlumb.instance.makeAnchor("Center");x.isFloating=!0,this._jsPlumb.floatingEndpoint=o(this.getPaintStyle(),x,_,this.canvas,s.element,l,c,this.scope);var k=this._jsPlumb.floatingEndpoint.anchor;if(null==h)this.setHover(!1,!1),h=u({sourceEndpoint:this,targetEndpoint:this._jsPlumb.floatingEndpoint,source:this.element,target:s.element,anchors:[this.anchor,this._jsPlumb.floatingEndpoint.anchor],paintStyle:e.connectorStyle,hoverPaintStyle:e.connectorHoverStyle,connector:e.connector,overlays:e.connectorOverlays,type:this.connectionType,cssClass:this.connectorClass,hoverClass:this.connectorHoverClass,scope:e.scope,data:d}),h.pending=!0,h.addClass(l.draggingClass),this._jsPlumb.floatingEndpoint.addClass(l.draggingClass),this._jsPlumb.floatingEndpoint.anchor=k,l.fire("connectionDrag",h),l.router.newConnection(h);else{f=!0,h.setHover(!1);var M=h.endpoints[0].id===this.id?0:1;this.detachFromConnection(h,null,!0);var S=l.getDragScope(y);l.setAttribute(this.canvas,"originalScope",S),l.fire("connectionDrag",h),0===M?(p=[h.source,h.sourceId,y,S],l.router.sourceOrTargetChanged(h.endpoints[M].elementId,s.id,h,s.element,0)):(p=[h.target,h.targetId,y,S],l.router.sourceOrTargetChanged(h.endpoints[M].elementId,s.id,h,s.element,1)),h.suspendedEndpoint=h.endpoints[M],h.suspendedElement=h.endpoints[M].getElement(),h.suspendedElementId=h.endpoints[M].elementId,h.suspendedElementType=0===M?"source":"target",h.suspendedEndpoint.setHover(!1),this._jsPlumb.floatingEndpoint.referenceEndpoint=h.suspendedEndpoint,h.endpoints[M]=this._jsPlumb.floatingEndpoint,h.addClass(l.draggingClass),this._jsPlumb.floatingEndpoint.addClass(l.draggingClass)}l.registerFloatingConnection(s,h,this._jsPlumb.floatingEndpoint),l.currentlyDragging=!0}.bind(this),S=function(){if(l.setConnectionBeingDragged(!1),h&&null!=h.endpoints){var e=l.getDropEvent(arguments),t=l.getFloatingAnchorIndex(h);if(h.endpoints[0===t?1:0].anchor.locked=!1,h.removeClass(l.draggingClass),this._jsPlumb&&(h.deleteConnectionNow||h.endpoints[t]===this._jsPlumb.floatingEndpoint)&&f&&h.suspendedEndpoint){0===t?(h.floatingElement=h.source,h.floatingId=h.sourceId,h.floatingEndpoint=h.endpoints[0],h.floatingIndex=0,h.source=p[0],h.sourceId=p[1]):(h.floatingElement=h.target,h.floatingId=h.targetId,h.floatingEndpoint=h.endpoints[1],h.floatingIndex=1,h.target=p[0],h.targetId=p[1]);var n=this._jsPlumb.floatingEndpoint;l.setDragScope(p[2],p[3]),h.endpoints[t]=h.suspendedEndpoint,h.isReattach()||h._forceReattach||h._forceDetach||!l.deleteConnection(h,{originalEvent:e})?(h.setHover(!1),h._forceDetach=null,h._forceReattach=null,this._jsPlumb.floatingEndpoint.detachFromConnection(h),h.suspendedEndpoint.addConnection(h),1===t?l.router.sourceOrTargetChanged(h.floatingId,h.targetId,h,h.target,t):l.router.sourceOrTargetChanged(h.floatingId,h.sourceId,h,h.source,t),l.repaint(p[1])):l.deleteObject({endpoint:n})}this.deleteAfterDragStop?l.deleteObject({endpoint:this}):this._jsPlumb&&this.paint({recalc:!1}),l.fire("connectionDragStop",h,e),h.pending&&l.fire("connectionAborted",h,e),l.currentlyDragging=!1,h.suspendedElement=null,h.suspendedEndpoint=null,h=null}s&&s.element&&l.remove(s.element,!1,!1),d&&l.deleteObject({endpoint:d}),this._jsPlumb&&(this.canvas.style.visibility="visible",this.anchor.locked=!1,this._jsPlumb.floatingEndpoint=null)}.bind(this);g=t.extend(y,g),g.scope=this.scope||g.scope,g[x]=n.wrap(g[x],k,!1),g[b]=n.wrap(g[b],M,!1),g[w]=n.wrap(g[w],v.drag),g[_]=n.wrap(g[_],S),g.multipleDrop=!1,g.canDrag=function(){return this.isSource||this.isTemporarySource||this.connections.length>0&&!1!==this.connectionsDetachable}.bind(this),l.initDraggable(this.canvas,g,"internal"),this.canvas._jsPlumbRelatedElement=this.element,m=!0}};var v=e.endpoint||this._jsPlumb.instance.Defaults.Endpoint||t.Defaults.Endpoint;this.setEndpoint(v,!0);var g=e.anchor?e.anchor:e.anchors?e.anchors:l.Defaults.Anchor||"Top";this.setAnchor(g,!0);var y=["default",e.type||""].join(" ");this.addType(y,e.data,!0),this.canvas=this.endpoint.canvas,this.canvas._jsPlumb=this,this.initDraggable();var b=function(i,r,o,a){if(t.isDropSupported(this.element)){var s=e.dropOptions||l.Defaults.DropOptions||t.Defaults.DropOptions;s=t.extend({},s),s.scope=s.scope||this.scope;var u=t.dragEvents.drop,c=t.dragEvents.over,d=t.dragEvents.out,h=this,f=l.EndpointDropHandler({getEndpoint:function(){return h},jsPlumb:l,enabled:function(){return null==o||o.isEnabled()},isFull:function(){return o.isFull()},element:this.element,elementId:this.elementId,isSource:this.isSource,isTarget:this.isTarget,addClass:function(e){h.addClass(e)},removeClass:function(e){h.removeClass(e)},isDropAllowed:function(){return h.isDropAllowed.apply(h,arguments)},reference:a,isRedrop:function(e,t){return e.suspendedEndpoint&&t.reference&&e.suspendedEndpoint.id===t.reference.id}});s[u]=n.wrap(s[u],f,!0),s[c]=n.wrap(s[c],function(){var e=t.getDragObject(arguments),n=l.getAttribute(t.getElement(e),"dragId"),i=l.getFloatingConnectionFor(n);if(null!=i){var r=l.getFloatingAnchorIndex(i),o=this.isTarget&&0!==r||i.suspendedEndpoint&&this.referenceEndpoint&&this.referenceEndpoint.id===i.suspendedEndpoint.id;if(o){var a=l.checkCondition("checkDropAllowed",{sourceEndpoint:i.endpoints[r],targetEndpoint:this,connection:i});this[(a?"add":"remove")+"Class"](l.endpointDropAllowedClass),this[(a?"remove":"add")+"Class"](l.endpointDropForbiddenClass),i.endpoints[r].anchor.over(this.anchor,this)}}}.bind(this)),s[d]=n.wrap(s[d],function(){var e=t.getDragObject(arguments),n=null==e?null:l.getAttribute(t.getElement(e),"dragId"),i=n?l.getFloatingConnectionFor(n):null;if(null!=i){var r=l.getFloatingAnchorIndex(i),o=this.isTarget&&0!==r||i.suspendedEndpoint&&this.referenceEndpoint&&this.referenceEndpoint.id===i.suspendedEndpoint.id;o&&(this.removeClass(l.endpointDropAllowedClass),this.removeClass(l.endpointDropForbiddenClass),i.endpoints[r].anchor.out())}}.bind(this)),l.initDroppable(i,s,"internal",r)}}.bind(this);return this.anchor.isFloating||b(this.canvas,!(e._transient||this.anchor.isFloating),this,e.reference),this},n.extend(t.Endpoint,t.OverlayCapableJsPlumbUIComponent,{setVisible:function(e,t,n){if(this._jsPlumb.visible=e,this.canvas&&(this.canvas.style.display=e?"block":"none"),this[e?"showOverlays":"hideOverlays"](),!t)for(var i=0;i<this.connections.length;i++)if(this.connections[i].setVisible(e),!n){var r=this===this.connections[i].endpoints[0]?1:0;1===this.connections[i].endpoints[r].connections.length&&this.connections[i].endpoints[r].setVisible(e,!0,!0)}},getAttachedElements:function(){return this.connections},applyType:function(e,n){this.setPaintStyle(e.endpointStyle||e.paintStyle,n),this.setHoverPaintStyle(e.endpointHoverStyle||e.hoverPaintStyle,n),null!=e.maxConnections&&(this._jsPlumb.maxConnections=e.maxConnections),e.scope&&(this.scope=e.scope),t.extend(this,e,a),null!=e.cssClass&&this.canvas&&this._jsPlumb.instance.addClass(this.canvas,e.cssClass),t.OverlayCapableJsPlumbUIComponent.applyType(this,e)},isEnabled:function(){return this._jsPlumb.enabled},setEnabled:function(e){this._jsPlumb.enabled=e},cleanup:function(){var e=this._jsPlumb.instance.endpointAnchorClassPrefix+(this._jsPlumb.currentAnchorClass?"-"+this._jsPlumb.currentAnchorClass:"");t.removeClass(this.element,e),this.anchor=null,this.endpoint.cleanup(!0),this.endpoint.destroy(),this.endpoint=null,this._jsPlumb.instance.destroyDraggable(this.canvas,"internal"),this._jsPlumb.instance.destroyDroppable(this.canvas,"internal")},setHover:function(e){this.endpoint&&this._jsPlumb&&!this._jsPlumb.instance.isConnectionBeingDragged()&&this.endpoint.setHover(e)},isFull:function(){return 0===this._jsPlumb.maxConnections||!(this.isFloating()||this._jsPlumb.maxConnections<0||this.connections.length<this._jsPlumb.maxConnections)},isFloating:function(){return null!=this.anchor&&this.anchor.isFloating},isConnectedTo:function(e){var t=!1;if(e)for(var n=0;n<this.connections.length;n++)if(this.connections[n].endpoints[1]===e||this.connections[n].endpoints[0]===e){t=!0;break}return t},getConnectionCost:function(){return this._jsPlumb.connectionCost},setConnectionCost:function(e){this._jsPlumb.connectionCost=e},areConnectionsDirected:function(){return this._jsPlumb.connectionsDirected},setConnectionsDirected:function(e){this._jsPlumb.connectionsDirected=e},setElementId:function(e){this.elementId=e,this.anchor.elementId=e},setReferenceElement:function(e){this.element=t.getElement(e)},setDragAllowedWhenFull:function(e){this.dragAllowedWhenFull=e},equals:function(e){return this.anchor.equals(e.anchor)},getUuid:function(){return this._jsPlumb.uuid},computeAnchor:function(e){return this.anchor.compute(e)}}),e.jsPlumbInstance.prototype.EndpointDropHandler=function(e){return function(t){var i=e.jsPlumb;e.removeClass(i.endpointDropAllowedClass),e.removeClass(i.endpointDropForbiddenClass);var r=i.getDropEvent(arguments),o=i.getDragObject(arguments),a=i.getAttribute(o,"dragId"),s=(i.getAttribute(o,"elId"),i.getAttribute(o,"originalScope")),l=i.getFloatingConnectionFor(a);if(null!=l){var u=null!=l.suspendedEndpoint;if(!u||null!=l.suspendedEndpoint._jsPlumb){var c=e.getEndpoint(l);if(null!=c){if(e.isRedrop(l,e))return l._forceReattach=!0,l.setHover(!1),void(e.maybeCleanup&&e.maybeCleanup(c));var d=i.getFloatingAnchorIndex(l);if(0===d&&!e.isSource||1===d&&!e.isTarget)e.maybeCleanup&&e.maybeCleanup(c);else{e.onDrop&&e.onDrop(l),s&&i.setDragScope(o,s);var h=e.isFull(t);if(h&&c.fire("maxConnections",{endpoint:this,connection:l,maxConnections:c._jsPlumb.maxConnections},r),!h&&e.enabled()){var f=!0;0===d?(l.floatingElement=l.source,l.floatingId=l.sourceId,l.floatingEndpoint=l.endpoints[0],l.floatingIndex=0,l.source=e.element,l.sourceId=i.getId(e.element)):(l.floatingElement=l.target,l.floatingId=l.targetId,l.floatingEndpoint=l.endpoints[1],l.floatingIndex=1,l.target=e.element,l.targetId=i.getId(e.element)),u&&l.suspendedEndpoint.id!==c.id&&(l.isDetachAllowed(l)&&l.endpoints[d].isDetachAllowed(l)&&l.suspendedEndpoint.isDetachAllowed(l)&&i.checkCondition("beforeDetach",l)||(f=!1));var p=function(t){l.endpoints[d].detachFromConnection(l),l.suspendedEndpoint&&l.suspendedEndpoint.detachFromConnection(l),l.endpoints[d]=c,c.addConnection(l);var o=c.getParameters();for(var a in o)l.setParameter(a,o[a]);if(u){var s=l.suspendedEndpoint.elementId;i.fireMoveEvent({index:d,originalSourceId:0===d?s:l.sourceId,newSourceId:0===d?c.elementId:l.sourceId,originalTargetId:1===d?s:l.targetId,newTargetId:1===d?c.elementId:l.targetId,originalSourceEndpoint:0===d?l.suspendedEndpoint:l.endpoints[0],newSourceEndpoint:0===d?c:l.endpoints[0],originalTargetEndpoint:1===d?l.suspendedEndpoint:l.endpoints[1],newTargetEndpoint:1===d?c:l.endpoints[1],connection:l},r)}else o.draggable&&i.initDraggable(this.element,e.dragOptions,"internal",i);if(1===d?i.router.sourceOrTargetChanged(l.floatingId,l.targetId,l,l.target,1):i.router.sourceOrTargetChanged(l.floatingId,l.sourceId,l,l.source,0),l.endpoints[0].finalEndpoint){var h=l.endpoints[0];h.detachFromConnection(l),l.endpoints[0]=l.endpoints[0].finalEndpoint,l.endpoints[0].addConnection(l)}n.isObject(t)&&l.mergeData(t),i.finaliseConnection(l,null,r,!1),l.setHover(!1),i.revalidate(l.endpoints[0].element)}.bind(this),m=function(){l.suspendedEndpoint&&(l.endpoints[d]=l.suspendedEndpoint,l.setHover(!1),l._forceDetach=!0,0===d?(l.source=l.suspendedEndpoint.element,l.sourceId=l.suspendedEndpoint.elementId):(l.target=l.suspendedEndpoint.element,l.targetId=l.suspendedEndpoint.elementId),l.suspendedEndpoint.addConnection(l),1===d?i.router.sourceOrTargetChanged(l.floatingId,l.targetId,l,l.target,1):i.router.sourceOrTargetChanged(l.floatingId,l.sourceId,l,l.source,0),i.repaint(l.sourceId),l._forceDetach=!1)};if(f=f&&e.isDropAllowed(l.sourceId,l.targetId,l.scope,l,c),f)return p(f),!0;m()}e.maybeCleanup&&e.maybeCleanup(c),i.currentlyDragging=!1}}}}}}}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumb,n=e.jsPlumbUtil,i=function(e,i,r,o,a){if(t.Connectors[i]=t.Connectors[i]||{},null==t.Connectors[i][r]){if(null==t.Connectors[r]){if(e.Defaults.DoNotThrowErrors)return null;throw new TypeError("jsPlumb: unknown connector type '"+r+"'")}t.Connectors[i][r]=function(){t.Connectors[r].apply(this,arguments),t.ConnectorRenderers[i].apply(this,arguments)},n.extend(t.Connectors[i][r],[t.Connectors[r],t.ConnectorRenderers[i]])}return new t.Connectors[i][r](o,a)},r=function(e,t,n){return e?n.makeAnchor(e,t,n):null},o=function(e,t,i,r){null!=t&&(t._jsPlumbConnections=t._jsPlumbConnections||{},r?delete t._jsPlumbConnections[e.id]:t._jsPlumbConnections[e.id]=!0,n.isEmpty(t._jsPlumbConnections)?i.removeClass(t,i.connectedClass):i.addClass(t,i.connectedClass))};t.Connection=function(e){var i=e.newEndpoint;this.id=e.id,this.connector=null,this.idPrefix="_jsplumb_c_",this.defaultLabelLocation=.5,this.defaultOverlayKeys=["Overlays","ConnectionOverlays"],this.previousConnection=e.previousConnection,this.source=t.getElement(e.source),this.target=t.getElement(e.target),t.OverlayCapableJsPlumbUIComponent.apply(this,arguments),e.sourceEndpoint?(this.source=e.sourceEndpoint.getElement(),this.sourceId=e.sourceEndpoint.elementId):this.sourceId=this._jsPlumb.instance.getId(this.source),e.targetEndpoint?(this.target=e.targetEndpoint.getElement(),this.targetId=e.targetEndpoint.elementId):this.targetId=this._jsPlumb.instance.getId(this.target),this.scope=e.scope,this.endpoints=[],this.endpointStyles=[];var r=this._jsPlumb.instance;r.manage(this.sourceId,this.source),r.manage(this.targetId,this.target),this._jsPlumb.visible=!0,this._jsPlumb.params={cssClass:e.cssClass,container:e.container,"pointer-events":e["pointer-events"],editorParams:e.editorParams,overlays:e.overlays},this._jsPlumb.lastPaintedAt=null,this.bind("mouseover",function(){this.setHover(!0)}.bind(this)),this.bind("mouseout",function(){this.setHover(!1)}.bind(this)),this.makeEndpoint=function(t,n,o,a,s){return o=o||this._jsPlumb.instance.getId(n),this.prepareEndpoint(r,i,this,a,t?0:1,e,n,o,s)},e.type&&(e.endpoints=e.endpoints||this._jsPlumb.instance.deriveEndpointAndAnchorSpec(e.type).endpoints);var o=this.makeEndpoint(!0,this.source,this.sourceId,e.sourceEndpoint),a=this.makeEndpoint(!1,this.target,this.targetId,e.targetEndpoint);o&&n.addToList(e.endpointsByElement,this.sourceId,o),a&&n.addToList(e.endpointsByElement,this.targetId,a),this.scope||(this.scope=this.endpoints[0].scope),null!=e.deleteEndpointsOnEmpty&&(this.endpoints[0].setDeleteOnEmpty(e.deleteEndpointsOnEmpty),this.endpoints[1].setDeleteOnEmpty(e.deleteEndpointsOnEmpty));var s=r.Defaults.ConnectionsDetachable;!1===e.detachable&&(s=!1),!1===this.endpoints[0].connectionsDetachable&&(s=!1),!1===this.endpoints[1].connectionsDetachable&&(s=!1);var l=e.reattach||this.endpoints[0].reattachConnections||this.endpoints[1].reattachConnections||r.Defaults.ReattachConnections;this.appendToDefaultType({detachable:s,reattach:l,paintStyle:this.endpoints[0].connectorStyle||this.endpoints[1].connectorStyle||e.paintStyle||r.Defaults.PaintStyle||t.Defaults.PaintStyle,hoverPaintStyle:this.endpoints[0].connectorHoverStyle||this.endpoints[1].connectorHoverStyle||e.hoverPaintStyle||r.Defaults.HoverPaintStyle||t.Defaults.HoverPaintStyle});var u=r.getSuspendedAt();if(!r.isSuspendDrawing()){var c=r.getCachedData(this.sourceId),d=c.o,h=c.s,f=r.getCachedData(this.targetId),p=f.o,m=f.s,v=u||jsPlumbUtil.uuid(),g=this.endpoints[0].anchor.compute({xy:[d.left,d.top],wh:h,element:this.endpoints[0],elementId:this.endpoints[0].elementId,txy:[p.left,p.top],twh:m,tElement:this.endpoints[1],timestamp:v,rotation:r.getRotation(this.endpoints[0].elementId)});this.endpoints[0].paint({anchorLoc:g,timestamp:v}),g=this.endpoints[1].anchor.compute({xy:[p.left,p.top],wh:m,element:this.endpoints[1],elementId:this.endpoints[1].elementId,txy:[d.left,d.top],twh:h,tElement:this.endpoints[0],timestamp:v,rotation:r.getRotation(this.endpoints[1].elementId)}),this.endpoints[1].paint({anchorLoc:g,timestamp:v})}this.getTypeDescriptor=function(){return"connection"},this.getAttachedElements=function(){return this.endpoints},this.isDetachable=function(e){return!1!==this._jsPlumb.detachable&&(null!=e?!0===e.connectionsDetachable:!0===this._jsPlumb.detachable)},this.setDetachable=function(e){this._jsPlumb.detachable=!0===e},this.isReattach=function(){return!0===this._jsPlumb.reattach||!0===this.endpoints[0].reattachConnections||!0===this.endpoints[1].reattachConnections},this.setReattach=function(e){this._jsPlumb.reattach=!0===e},this._jsPlumb.cost=e.cost||this.endpoints[0].getConnectionCost(),this._jsPlumb.directed=e.directed,null==e.directed&&(this._jsPlumb.directed=this.endpoints[0].areConnectionsDirected());var y=t.extend({},this.endpoints[1].getParameters());t.extend(y,this.endpoints[0].getParameters()),t.extend(y,this.getParameters()),this.setParameters(y),this.setConnector(this.endpoints[0].connector||this.endpoints[1].connector||e.connector||r.Defaults.Connector||t.Defaults.Connector,!0);var b=null!=e.data&&n.isObject(e.data)?e.data:{};this.getData=function(){return b},this.setData=function(e){b=e||{}},this.mergeData=function(e){b=t.extend(b,e)};var _=["default",this.endpoints[0].connectionType,this.endpoints[1].connectionType,e.type].join(" ");/[^\s]/.test(_)&&this.addType(_,e.data,!0),this.updateConnectedClass()},n.extend(t.Connection,t.OverlayCapableJsPlumbUIComponent,{applyType:function(e,n,i){var r=null;null!=e.connector&&(r=this.getCachedTypeItem("connector",i.connector),null==r&&(r=this.prepareConnector(e.connector,i.connector),this.cacheTypeItem("connector",r,i.connector)),this.setPreparedConnector(r)),null!=e.detachable&&this.setDetachable(e.detachable),null!=e.reattach&&this.setReattach(e.reattach),e.scope&&(this.scope=e.scope),null!=e.cssClass&&this.canvas&&this._jsPlumb.instance.addClass(this.canvas,e.cssClass);var o=null;e.anchor?(o=this.getCachedTypeItem("anchors",i.anchor),null==o&&(o=[this._jsPlumb.instance.makeAnchor(e.anchor),this._jsPlumb.instance.makeAnchor(e.anchor)],this.cacheTypeItem("anchors",o,i.anchor))):e.anchors&&(o=this.getCachedTypeItem("anchors",i.anchors),null==o&&(o=[this._jsPlumb.instance.makeAnchor(e.anchors[0]),this._jsPlumb.instance.makeAnchor(e.anchors[1])],this.cacheTypeItem("anchors",o,i.anchors))),null!=o&&(this.endpoints[0].anchor=o[0],this.endpoints[1].anchor=o[1],this.endpoints[1].anchor.isDynamic&&this._jsPlumb.instance.repaint(this.endpoints[1].elementId)),t.OverlayCapableJsPlumbUIComponent.applyType(this,e)},addClass:function(e,t){t&&(this.endpoints[0].addClass(e),this.endpoints[1].addClass(e),this.suspendedEndpoint&&this.suspendedEndpoint.addClass(e)),this.connector&&this.connector.addClass(e)},removeClass:function(e,t){t&&(this.endpoints[0].removeClass(e),this.endpoints[1].removeClass(e),this.suspendedEndpoint&&this.suspendedEndpoint.removeClass(e)),this.connector&&this.connector.removeClass(e)},isVisible:function(){return this._jsPlumb.visible},setVisible:function(e){this._jsPlumb.visible=e,this.connector&&this.connector.setVisible(e),this.repaint()},cleanup:function(){this.updateConnectedClass(!0),this.endpoints=null,this.source=null,this.target=null,null!=this.connector&&(this.connector.cleanup(!0),this.connector.destroy(!0)),this.connector=null},updateConnectedClass:function(e){this._jsPlumb&&(o(this,this.source,this._jsPlumb.instance,e),o(this,this.target,this._jsPlumb.instance,e))},setHover:function(t){this.connector&&this._jsPlumb&&!this._jsPlumb.instance.isConnectionBeingDragged()&&(this.connector.setHover(t),e.jsPlumb[t?"addClass":"removeClass"](this.source,this._jsPlumb.instance.hoverSourceClass),e.jsPlumb[t?"addClass":"removeClass"](this.target,this._jsPlumb.instance.hoverTargetClass))},getUuids:function(){return[this.endpoints[0].getUuid(),this.endpoints[1].getUuid()]},getCost:function(){return this._jsPlumb?this._jsPlumb.cost:-1/0},setCost:function(e){this._jsPlumb.cost=e},isDirected:function(){return this._jsPlumb.directed},getConnector:function(){return this.connector},prepareConnector:function(e,t){var r,o={_jsPlumb:this._jsPlumb.instance,cssClass:this._jsPlumb.params.cssClass,container:this._jsPlumb.params.container,"pointer-events":this._jsPlumb.params["pointer-events"]},a=this._jsPlumb.instance.getRenderMode();return n.isString(e)?r=i(this._jsPlumb.instance,a,e,o,this):n.isArray(e)&&(r=1===e.length?i(this._jsPlumb.instance,a,e[0],o,this):i(this._jsPlumb.instance,a,e[0],n.merge(e[1],o),this)),null!=t&&(r.typeId=t),r},setPreparedConnector:function(e,t,n,i){if(this.connector!==e){var r,o="";if(null!=this.connector&&(r=this.connector,o=r.getClass(),this.connector.cleanup(),this.connector.destroy()),this.connector=e,i&&this.cacheTypeItem("connector",e,i),this.canvas=this.connector.canvas,this.bgCanvas=this.connector.bgCanvas,this.connector.reattach(this._jsPlumb.instance),this.addClass(o),this.canvas&&(this.canvas._jsPlumb=this),this.bgCanvas&&(this.bgCanvas._jsPlumb=this),null!=r)for(var a=this.getOverlays(),s=0;s<a.length;s++)a[s].transfer&&a[s].transfer(this.connector);n||this.setListenerComponent(this.connector),t||this.repaint()}},setConnector:function(e,t,n,i){var r=this.prepareConnector(e,i);this.setPreparedConnector(r,t,n,i)},paint:function(e){if(!this._jsPlumb.instance.isSuspendDrawing()&&this._jsPlumb.visible){e=e||{};var t=e.timestamp,n=!1,i=n?this.sourceId:this.targetId,r=n?this.targetId:this.sourceId,o=n?0:1,a=n?1:0;if(null==t||t!==this._jsPlumb.lastPaintedAt){var s=this._jsPlumb.instance.updateOffset({elId:r}).o,l=this._jsPlumb.instance.updateOffset({elId:i}).o,u=this.endpoints[a],c=this.endpoints[o],d=u.anchor.getCurrentLocation({xy:[s.left,s.top],wh:[s.width,s.height],element:u,timestamp:t,rotation:this._jsPlumb.instance.getRotation(this.sourceId)}),h=c.anchor.getCurrentLocation({xy:[l.left,l.top],wh:[l.width,l.height],element:c,timestamp:t,rotation:this._jsPlumb.instance.getRotation(this.targetId)});this.connector.resetBounds(),this.connector.compute({sourcePos:d,targetPos:h,sourceOrientation:u.anchor.getOrientation(u),targetOrientation:c.anchor.getOrientation(c),sourceEndpoint:this.endpoints[a],targetEndpoint:this.endpoints[o],"stroke-width":this._jsPlumb.paintStyleInUse.strokeWidth,sourceInfo:s,targetInfo:l});var f={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};for(var p in this._jsPlumb.overlays)if(this._jsPlumb.overlays.hasOwnProperty(p)){var m=this._jsPlumb.overlays[p];m.isVisible()&&(this._jsPlumb.overlayPlacements[p]=m.draw(this.connector,this._jsPlumb.paintStyleInUse,this.getAbsoluteOverlayPosition(m)),f.minX=Math.min(f.minX,this._jsPlumb.overlayPlacements[p].minX),f.maxX=Math.max(f.maxX,this._jsPlumb.overlayPlacements[p].maxX),f.minY=Math.min(f.minY,this._jsPlumb.overlayPlacements[p].minY),f.maxY=Math.max(f.maxY,this._jsPlumb.overlayPlacements[p].maxY))}var v=parseFloat(this._jsPlumb.paintStyleInUse.strokeWidth||1)/2,g=parseFloat(this._jsPlumb.paintStyleInUse.strokeWidth||0),y={xmin:Math.min(this.connector.bounds.minX-(v+g),f.minX),ymin:Math.min(this.connector.bounds.minY-(v+g),f.minY),xmax:Math.max(this.connector.bounds.maxX+(v+g),f.maxX),ymax:Math.max(this.connector.bounds.maxY+(v+g),f.maxY)};for(var b in this.connector.paintExtents=y,this.connector.paint(this._jsPlumb.paintStyleInUse,null,y),this._jsPlumb.overlays)if(this._jsPlumb.overlays.hasOwnProperty(b)){var _=this._jsPlumb.overlays[b];_.isVisible()&&_.paint(this._jsPlumb.overlayPlacements[b],y)}}this._jsPlumb.lastPaintedAt=t}},repaint:function(e){var t=jsPlumb.extend(e||{},{});t.elId=this.sourceId,this.paint(t)},prepareEndpoint:function(e,n,i,o,a,s,l,u,c){var d;if(o)i.endpoints[a]=o,o.addConnection(i);else{s.endpoints||(s.endpoints=[null,null]);var h=c||s.endpoints[a]||s.endpoint||e.Defaults.Endpoints[a]||t.Defaults.Endpoints[a]||e.Defaults.Endpoint||t.Defaults.Endpoint;s.endpointStyles||(s.endpointStyles=[null,null]),s.endpointHoverStyles||(s.endpointHoverStyles=[null,null]);var f=s.endpointStyles[a]||s.endpointStyle||e.Defaults.EndpointStyles[a]||t.Defaults.EndpointStyles[a]||e.Defaults.EndpointStyle||t.Defaults.EndpointStyle;null==f.fill&&null!=s.paintStyle&&(f.fill=s.paintStyle.stroke),null==f.outlineStroke&&null!=s.paintStyle&&(f.outlineStroke=s.paintStyle.outlineStroke),null==f.outlineWidth&&null!=s.paintStyle&&(f.outlineWidth=s.paintStyle.outlineWidth);var p=s.endpointHoverStyles[a]||s.endpointHoverStyle||e.Defaults.EndpointHoverStyles[a]||t.Defaults.EndpointHoverStyles[a]||e.Defaults.EndpointHoverStyle||t.Defaults.EndpointHoverStyle;null!=s.hoverPaintStyle&&(null==p&&(p={}),null==p.fill&&(p.fill=s.hoverPaintStyle.stroke));var m=s.anchors?s.anchors[a]:s.anchor?s.anchor:r(e.Defaults.Anchors[a],u,e)||r(t.Defaults.Anchors[a],u,e)||r(e.Defaults.Anchor,u,e)||r(t.Defaults.Anchor,u,e),v=s.uuids?s.uuids[a]:null;d=n({paintStyle:f,hoverPaintStyle:p,endpoint:h,connections:[i],uuid:v,anchor:m,source:l,scope:s.scope,reattach:s.reattach||e.Defaults.ReattachConnections,detachable:s.detachable||e.Defaults.ConnectionsDetachable}),null==o&&d.setDeleteOnEmpty(!0),i.endpoints[a]=d,!1===s.drawEndpoints&&d.setVisible(!1,!0,!0)}return d},replaceEndpoint:function(e,t){var n=this.endpoints[e],i=n.elementId,r=this._jsPlumb.instance.getEndpoints(i),o=r.indexOf(n),a=this.makeEndpoint(0===e,n.element,i,null,t);this.endpoints[e]=a,r.splice(o,1,a),this._jsPlumb.instance.deleteObject({endpoint:n,deleteAttachedObjects:!1}),this._jsPlumb.instance.fire("endpointReplaced",{previous:n,current:a}),this._jsPlumb.instance.router.sourceOrTargetChanged(this.endpoints[1].elementId,this.endpoints[1].elementId,this,this.endpoints[1].element,1)}})}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumbUtil,n=e.jsPlumb;n.AnchorManager=function(e){var i={},r={},o={},a={},s=this,l={},u=e.jsPlumbInstance,c={},d=function(e,t,n,i,r,o,a,s){for(var l=[],u=t[r?0:1]/(i.length+1),c=0;c<i.length;c++){var d=(c+1)*u,h=o*t[r?1:0];a&&(d=t[r?0:1]-d);var f=r?d:h,p=n.left+f,m=f/t[0],v=r?h:d,g=n.top+v,y=v/t[1];if(0!==s){var b=jsPlumbUtil.rotatePoint([p,g],[n.centerx,n.centery],s);p=b[0],g=b[1]}l.push([p,g,m,y,i[c][1],i[c][2]])}return l},h=function(e,t){return t[0][0]-e[0][0]},f=function(e,t){var n=e[0][0]<0?-Math.PI-e[0][0]:Math.PI-e[0][0],i=t[0][0]<0?-Math.PI-t[0][0]:Math.PI-t[0][0];return n-i},p={top:f,right:h,bottom:h,left:f},m=function(e,t){return e.sort(t)},v=function(e,t){var n=u.getCachedData(e),i=n.s,a=n.o,s=function(t,n,i,a,s,l,c){if(a.length>0)for(var h=m(a,p[t]),f="right"===t||"top"===t,v=u.getRotation(e),g=d(t,n,i,h,s,l,f,v),y=function(e,t){r[e.id]=[t[0],t[1],t[2],t[3]],o[e.id]=c},b=0;b<g.length;b++){var _=g[b][4],w=_.endpoints[0].elementId===e,x=_.endpoints[1].elementId===e;w&&y(_.endpoints[0],g[b]),x&&y(_.endpoints[1],g[b])}};s("bottom",i,a,t.bottom,!0,1,[0,1]),s("top",i,a,t.top,!0,0,[0,-1]),s("left",i,a,t.left,!1,0,[-1,0]),s("right",i,a,t.right,!1,1,[1,0])};this.reset=function(){i={},a={},l={}},this.addFloatingConnection=function(e,t){c[e]=t},this.newConnection=function(e){var i=e.sourceId,r=e.targetId,o=e.endpoints,s=!0,l=function(l,u,c,d,h){i===r&&c.isContinuous&&(e._jsPlumb.instance.removeElement(o[1].canvas),s=!1),t.addToList(a,d,[h,u,c.constructor===n.DynamicAnchor])};l(0,o[0],o[0].anchor,r,e),s&&l(1,o[1],o[1].anchor,i,e)};var g=function(e){(function(e,n){if(e){var i=function(e){return e[4]===n};t.removeWithFunction(e.top,i),t.removeWithFunction(e.left,i),t.removeWithFunction(e.bottom,i),t.removeWithFunction(e.right,i)}})(l[e.elementId],e.id)};this.connectionDetached=function(e,n){var i=e.connection||e,r=e.sourceId,o=e.targetId,l=i.endpoints,u=function(e,n,i,r,o){t.removeWithFunction(a[r],(function(e){return e[0].id===o.id}))};u(1,l[1],l[1].anchor,r,i),u(0,l[0],l[0].anchor,o,i),i.floatingId&&(u(i.floatingIndex,i.floatingEndpoint,i.floatingEndpoint.anchor,i.floatingId,i),g(i.floatingEndpoint)),g(i.endpoints[0]),g(i.endpoints[1]),n||(s.redraw(i.sourceId),i.targetId!==i.sourceId&&s.redraw(i.targetId))},this.addEndpoint=function(e,n){t.addToList(i,n,e)},this.changeId=function(e,t){a[t]=a[e],i[t]=i[e],delete a[e],delete i[e]},this.getConnectionsFor=function(e){return a[e]||[]},this.getEndpointsFor=function(e){return i[e]||[]},this.deleteEndpoint=function(e){t.removeWithFunction(i[e.elementId],(function(t){return t.id===e.id})),g(e)},this.elementRemoved=function(e){delete c[e],delete i[e],i[e]=[]};var y=function(n,i,r,o,a,s,l,u,c,d,h,f){var p,m,v=-1,g=-1,y=o.endpoints[l],b=y.id,_=[1,0][l],w=[[i,r],o,a,s,b],x=n[c],k=y._continuousAnchorEdge?n[y._continuousAnchorEdge]:null;if(k){var M=t.findWithFunction(k,(function(e){return e[4]===b}));if(-1!==M)for(k.splice(M,1),p=0;p<k.length;p++)m=k[p][1],t.addWithFunction(h,m,(function(e){return e.id===m.id})),t.addWithFunction(f,k[p][1].endpoints[l],(function(e){return e.id===m.endpoints[l].id})),t.addWithFunction(f,k[p][1].endpoints[_],(function(e){return e.id===m.endpoints[_].id}))}for(p=0;p<x.length;p++)m=x[p][1],1===e.idx&&x[p][3]===s&&-1===g&&(g=p),t.addWithFunction(h,m,(function(e){return e.id===m.id})),t.addWithFunction(f,x[p][1].endpoints[l],(function(e){return e.id===m.endpoints[l].id})),t.addWithFunction(f,x[p][1].endpoints[_],(function(e){return e.id===m.endpoints[_].id}));if(-1!==v)x[v]=w;else{var S=u?-1!==g?g:0:x.length;x.splice(S,0,w)}y._continuousAnchorEdge=c};this.sourceOrTargetChanged=function(e,i,r,o,s){if(0===s){if(e!==i){r.sourceId=i,r.source=o,t.removeWithFunction(a[e],(function(e){return e[0].id===r.id}));var l=t.findWithFunction(a[r.targetId],(function(e){return e[0].id===r.id}));l>-1&&(a[r.targetId][l][0]=r,a[r.targetId][l][1]=r.endpoints[0],a[r.targetId][l][2]=r.endpoints[0].anchor.constructor===n.DynamicAnchor),t.addToList(a,i,[r,r.endpoints[1],r.endpoints[1].anchor.constructor===n.DynamicAnchor]),r.endpoints[1].anchor.isContinuous&&(r.source===r.target?r._jsPlumb.instance.removeElement(r.endpoints[1].canvas):null==r.endpoints[1].canvas.parentNode&&r._jsPlumb.instance.appendElement(r.endpoints[1].canvas)),r.updateConnectedClass()}}else if(1===s){var u=r.endpoints[0].elementId;r.target=o,r.targetId=i;var c=t.findWithFunction(a[u],(function(e){return e[0].id===r.id})),d=t.findWithFunction(a[e],(function(e){return e[0].id===r.id}));-1!==c&&(a[u][c][0]=r,a[u][c][1]=r.endpoints[1],a[u][c][2]=r.endpoints[1].anchor.constructor===n.DynamicAnchor),d>-1&&(a[e].splice(d,1),t.addToList(a,i,[r,r.endpoints[0],r.endpoints[0].anchor.constructor===n.DynamicAnchor])),r.updateConnectedClass()}},this.rehomeEndpoint=function(e,t,n){var r=i[t]||[],o=u.getId(n);if(o!==t){var a=r.indexOf(e);if(a>-1){var l=r.splice(a,1)[0];s.add(l,o)}}for(var c=0;c<e.connections.length;c++)e.connections[c].sourceId===t?s.sourceOrTargetChanged(t,e.elementId,e.connections[c],e.element,0):e.connections[c].targetId===t&&s.sourceOrTargetChanged(t,e.elementId,e.connections[c],e.element,1)},this.redraw=function(e,r,o,s,d,h){var f=[],p=[],m=[];if(!u.isSuspendDrawing()){var g=i[e]||[],b=a[e]||[];o=o||jsPlumbUtil.uuid(),s=s||{left:0,top:0},r&&(r={left:r.left+s.left,top:r.top+s.top});for(var _=u.updateOffset({elId:e,offset:r,recalc:!1,timestamp:o}),w={},x=0;x<b.length;x++){var k=b[x][0],M=k.sourceId,S=k.targetId,C=k.endpoints[0].anchor.isContinuous,D=k.endpoints[1].anchor.isContinuous;if(C||D){var L=M+"_"+S,T=w[L],E=k.sourceId===e?1:0,P=u.getRotation(S),j=u.getRotation(M);C&&!l[M]&&(l[M]={top:[],right:[],bottom:[],left:[]}),D&&!l[S]&&(l[S]={top:[],right:[],bottom:[],left:[]}),e!==S&&u.updateOffset({elId:S,timestamp:o}),e!==M&&u.updateOffset({elId:M,timestamp:o});var O=u.getCachedData(S),I=u.getCachedData(M);S===M&&(C||D)?(y(l[M],-Math.PI/2,0,k,!1,S,0,!1,"top",M,f,p),y(l[S],-Math.PI/2,0,k,!1,M,1,!1,"top",S,f,p)):(T||(T=this.calculateOrientation(M,S,I.o,O.o,k.endpoints[0].anchor,k.endpoints[1].anchor,k,j,P),w[L]=T),C&&y(l[M],T.theta,0,k,!1,S,0,!1,T.a[0],M,f,p),D&&y(l[S],T.theta2,-1,k,!0,M,1,!0,T.a[1],S,f,p)),C&&t.addWithFunction(m,M,(function(e){return e===M})),D&&t.addWithFunction(m,S,(function(e){return e===S})),t.addWithFunction(f,k,(function(e){return e.id===k.id})),(C&&0===E||D&&1===E)&&t.addWithFunction(p,k.endpoints[E],(function(e){return e.id===k.endpoints[E].id}))}}for(x=0;x<g.length;x++)0===g[x].connections.length&&g[x].anchor.isContinuous&&(l[e]||(l[e]={top:[],right:[],bottom:[],left:[]}),y(l[e],-Math.PI/2,0,{endpoints:[g[x],g[x]],paint:function(){}},!1,e,0,!1,g[x].anchor.getDefaultFace(),e,f,p),t.addWithFunction(m,e,(function(t){return t===e})));for(x=0;x<m.length;x++)v(m[x],l[m[x]]);for(x=0;x<g.length;x++)g[x].paint({timestamp:o,offset:_,dimensions:_.s,recalc:!0!==h});for(x=0;x<p.length;x++){var Y=u.getCachedData(p[x].elementId);p[x].paint({timestamp:null,offset:Y,dimensions:Y.s})}for(x=0;x<b.length;x++){var A=b[x][1];if(A.anchor.constructor===n.DynamicAnchor){A.paint({elementWithPrecedence:e,timestamp:o}),t.addWithFunction(f,b[x][0],(function(e){return e.id===b[x][0].id}));for(var N=0;N<A.connections.length;N++)A.connections[N]!==b[x][0]&&t.addWithFunction(f,A.connections[N],(function(e){return e.id===A.connections[N].id}))}else t.addWithFunction(f,b[x][0],(function(e){return e.id===b[x][0].id}))}var H=c[e];for(H&&H.paint({timestamp:o,recalc:!1,elId:e}),x=0;x<f.length;x++)f[x].paint({elId:e,timestamp:null,recalc:!1,clearEdits:d})}return{c:f,e:p}};var b=function(e){t.EventGenerator.apply(this),this.type="Continuous",this.isDynamic=!0,this.isContinuous=!0;for(var n=e.faces||["top","right","bottom","left"],i=!(!1===e.clockwise),a={},s={top:"bottom",right:"left",left:"right",bottom:"top"},l={top:"right",right:"bottom",left:"top",bottom:"left"},u={top:"left",right:"top",left:"bottom",bottom:"right"},c=i?l:u,d=i?u:l,h=e.cssClass||"",f=null,p=null,m=["left","right"],v=["top","bottom"],g=null,y=0;y<n.length;y++)a[n[y]]=!0;this.getDefaultFace=function(){return 0===n.length?"top":n[0]},this.isRelocatable=function(){return!0},this.isSnapOnRelocate=function(){return!0},this.verifyEdge=function(e){return a[e]?e:a[s[e]]?s[e]:a[c[e]]?c[e]:a[d[e]]?d[e]:e},this.isEdgeSupported=function(e){return null==g?null==p?!0===a[e]:p===e:-1!==g.indexOf(e)},this.setCurrentFace=function(e,t){f=e,t&&null!=p&&(p=f)},this.getCurrentFace=function(){return f},this.getSupportedFaces=function(){var e=[];for(var t in a)a[t]&&e.push(t);return e},this.lock=function(){p=f},this.unlock=function(){p=null},this.isLocked=function(){return null!=p},this.lockCurrentAxis=function(){null!=f&&(g="left"===f||"right"===f?m:v)},this.unlockCurrentAxis=function(){g=null},this.compute=function(e){return r[e.element.id]||[0,0]},this.getCurrentLocation=function(e){return r[e.element.id]||[0,0]},this.getOrientation=function(e){return o[e.id]||[0,0]},this.getCssClass=function(){return h}};u.continuousAnchorFactory={get:function(e){return new b(e)},clear:function(e){delete r[e]}}},n.AnchorManager.prototype.calculateOrientation=function(e,t,n,i,r,o,a,s,l){var u={HORIZONTAL:"horizontal",VERTICAL:"vertical",DIAGONAL:"diagonal",IDENTITY:"identity"},c=["left","top","right","bottom"];if(e===t)return{orientation:u.IDENTITY,a:["top","top"]};var d=Math.atan2(i.centery-n.centery,i.centerx-n.centerx),h=Math.atan2(n.centery-i.centery,n.centerx-i.centerx),f=[],p={};(function(e,t){for(var n=0;n<e.length;n++)if(p[e[n]]={left:[t[n][0].left,t[n][0].centery],right:[t[n][0].right,t[n][0].centery],top:[t[n][0].centerx,t[n][0].top],bottom:[t[n][0].centerx,t[n][0].bottom]},0!==t[n][1])for(var i in p[e[n]])p[e[n]][i]=jsPlumbUtil.rotatePoint(p[e[n]][i],[t[n][0].centerx,t[n][0].centery],t[n][1])})(["source","target"],[[n,s],[i,l]]);for(var m=0;m<c.length;m++)for(var v=0;v<c.length;v++)f.push({source:c[m],target:c[v],dist:Biltong.lineLength(p.source[c[m]],p.target[c[v]])});f.sort((function(e,t){return e.dist<t.dist?-1:e.dist>t.dist?1:0}));for(var g=f[0].source,y=f[0].target,b=0;b<f.length;b++)if(g=r.isContinuous&&r.locked?r.getCurrentFace():!r.isContinuous||r.isEdgeSupported(f[b].source)?f[b].source:null,y=o.isContinuous&&o.locked?o.getCurrentFace():!o.isContinuous||o.isEdgeSupported(f[b].target)?f[b].target:null,null!=g&&null!=y)break;return r.isContinuous&&r.setCurrentFace(g),o.isContinuous&&o.setCurrentFace(y),{a:[g,y],theta:d,theta2:h}},n.Anchor=function(e){this.x=e.x||0,this.y=e.y||0,this.elementId=e.elementId,this.cssClass=e.cssClass||"",this.orientation=e.orientation||[0,0],this.lastReturnValue=null,this.offsets=e.offsets||[0,0],this.timestamp=null,this._unrotatedOrientation=[this.orientation[0],this.orientation[1]],this.relocatable=!1!==e.relocatable,this.snapOnRelocate=!1!==e.snapOnRelocate,this.locked=!1,t.EventGenerator.apply(this),this.compute=function(e){var t=e.xy,n=e.wh,i=e.timestamp;if(i&&i===this.timestamp)return this.lastReturnValue;var r=[t[0]+this.x*n[0]+this.offsets[0],t[1]+this.y*n[1]+this.offsets[1],this.x,this.y],o=e.rotation;if(null!=o&&0!==o){var a=jsPlumbUtil.rotatePoint(r,[t[0]+n[0]/2,t[1]+n[1]/2],o);this.orientation[0]=Math.round(this._unrotatedOrientation[0]*a[2]-this._unrotatedOrientation[1]*a[3]),this.orientation[1]=Math.round(this._unrotatedOrientation[1]*a[2]+this._unrotatedOrientation[0]*a[3]),this.lastReturnValue=[a[0],a[1],this.x,this.y]}else this.orientation[0]=this._unrotatedOrientation[0],this.orientation[1]=this._unrotatedOrientation[1],this.lastReturnValue=r;return this.timestamp=i,this.lastReturnValue},this.getCurrentLocation=function(e){return e=e||{},null==this.lastReturnValue||null!=e.timestamp&&this.timestamp!==e.timestamp?this.compute(e):this.lastReturnValue},this.setPosition=function(e,t,n,i,r){this.locked&&!r||(this.x=e,this.y=t,this.orientation=[n,i],this.lastReturnValue=null)}},t.extend(n.Anchor,t.EventGenerator,{equals:function(e){if(!e)return!1;var t=e.getOrientation(),n=this.getOrientation();return this.x===e.x&&this.y===e.y&&this.offsets[0]===e.offsets[0]&&this.offsets[1]===e.offsets[1]&&n[0]===t[0]&&n[1]===t[1]},getOrientation:function(){return this.orientation},getCssClass:function(){return this.cssClass}}),n.FloatingAnchor=function(e){n.Anchor.apply(this,arguments);var t=e.reference,i=e.referenceCanvas,r=n.getSize(i),o=0,a=0,s=null,l=null;this.orientation=null,this.x=0,this.y=0,this.isFloating=!0,this.compute=function(e){var t=e.xy,n=[t[0]+r[0]/2,t[1]+r[1]/2];return l=n,n},this.getOrientation=function(e){if(s)return s;var n=t.getOrientation(e);return[Math.abs(n[0])*o*-1,Math.abs(n[1])*a*-1]},this.over=function(e,t){s=e.getOrientation(t)},this.out=function(){s=null},this.getCurrentLocation=function(e){return null==l?this.compute(e):l}},t.extend(n.FloatingAnchor,n.Anchor);var i=function(e,t,i){return e.constructor===n.Anchor?e:t.makeAnchor(e,i,t)};n.DynamicAnchor=function(e){n.Anchor.apply(this,arguments),this.isDynamic=!0,this.anchors=[],this.elementId=e.elementId,this.jsPlumbInstance=e.jsPlumbInstance;for(var t=0;t<e.anchors.length;t++)this.anchors[t]=i(e.anchors[t],this.jsPlumbInstance,this.elementId);this.getAnchors=function(){return this.anchors};var r=this.anchors.length>0?this.anchors[0]:null,o=r,a=function(e,t,n,i,r,o,a){var s=i[0]+e.x*r[0],l=i[1]+e.y*r[1],u=i[0]+r[0]/2,c=i[1]+r[1]/2;if(null!=o&&0!==o){var d=jsPlumbUtil.rotatePoint([s,l],[u,c],o);s=d[0],l=d[1]}return Math.sqrt(Math.pow(t-s,2)+Math.pow(n-l,2))+Math.sqrt(Math.pow(u-s,2)+Math.pow(c-l,2))},s=e.selector||function(e,t,n,i,r,o,s){for(var l=n[0]+i[0]/2,u=n[1]+i[1]/2,c=-1,d=1/0,h=0;h<s.length;h++){var f=a(s[h],l,u,e,t,r,o);f<d&&(c=h+0,d=f)}return s[c]};this.compute=function(e){var t=e.xy,n=e.wh,i=e.txy,a=e.twh,l=e.rotation,u=e.tRotation;return this.timestamp=e.timestamp,this.locked||null==i||null==a?(this.lastReturnValue=r.compute(e),this.lastReturnValue):(e.timestamp=null,r=s(t,n,i,a,l,u,this.anchors),this.x=r.x,this.y=r.y,r!==o&&this.fire("anchorChanged",r),o=r,this.lastReturnValue=r.compute(e),this.lastReturnValue)},this.getCurrentLocation=function(e){return null!=r?r.getCurrentLocation(e):null},this.getOrientation=function(e){return null!=r?r.getOrientation(e):[0,0]},this.over=function(e,t){null!=r&&r.over(e,t)},this.out=function(){null!=r&&r.out()},this.setAnchor=function(e){r=e},this.getCssClass=function(){return r&&r.getCssClass()||""},this.setAnchorCoordinates=function(e){var t=jsPlumbUtil.findWithFunction(this.anchors,(function(t){return t.x===e[0]&&t.y===e[1]}));return-1!==t&&(this.setAnchor(this.anchors[t]),!0)}},t.extend(n.DynamicAnchor,n.Anchor);var r=function(e,t,i,r,o,a){n.Anchors[o]=function(n){var s=n.jsPlumbInstance.makeAnchor([e,t,i,r,0,0],n.elementId,n.jsPlumbInstance);return s.type=o,a&&a(s,n),s}};r(.5,0,0,-1,"TopCenter"),r(.5,1,0,1,"BottomCenter"),r(0,.5,-1,0,"LeftMiddle"),r(1,.5,1,0,"RightMiddle"),r(.5,0,0,-1,"Top"),r(.5,1,0,1,"Bottom"),r(0,.5,-1,0,"Left"),r(1,.5,1,0,"Right"),r(.5,.5,0,0,"Center"),r(1,0,0,-1,"TopRight"),r(1,1,0,1,"BottomRight"),r(0,0,0,-1,"TopLeft"),r(0,1,0,1,"BottomLeft"),n.Defaults.DynamicAnchors=function(e){return e.jsPlumbInstance.makeAnchors(["TopCenter","RightMiddle","BottomCenter","LeftMiddle"],e.elementId,e.jsPlumbInstance)},n.Anchors.AutoDefault=function(e){var t=e.jsPlumbInstance.makeDynamicAnchor(n.Defaults.DynamicAnchors(e));return t.type="AutoDefault",t};var o=function(e,t){n.Anchors[e]=function(n){var i=n.jsPlumbInstance.makeAnchor(["Continuous",{faces:t}],n.elementId,n.jsPlumbInstance);return i.type=e,i}};n.Anchors.Continuous=function(e){return e.jsPlumbInstance.continuousAnchorFactory.get(e)},o("ContinuousLeft",["left"]),o("ContinuousTop",["top"]),o("ContinuousBottom",["bottom"]),o("ContinuousRight",["right"]),r(0,0,0,0,"Assign",(function(e,t){var n=t.position||"Fixed";e.positionFinder=n.constructor===String?t.jsPlumbInstance.AnchorPositionFinders[n]:n,e.constructorParams=t})),e.jsPlumbInstance.prototype.AnchorPositionFinders={Fixed:function(e,t,n){return[(e.left-t.left)/n[0],(e.top-t.top)/n[1]]},Grid:function(e,t,n,i){var r=e.left-t.left,o=e.top-t.top,a=n[0]/i.grid[0],s=n[1]/i.grid[1],l=Math.floor(r/a),u=Math.floor(o/s);return[(l*a+a/2)/n[0],(u*s+s/2)/n[1]]}},n.Anchors.Perimeter=function(e){e=e||{};var t=e.anchorCount||60,n=e.shape;if(!n)throw new Error("no shape supplied to Perimeter Anchor type");var i=function(){for(var e=.5,n=2*Math.PI/t,i=0,r=[],o=0;o<t;o++){var a=e+e*Math.sin(i),s=e+e*Math.cos(i);r.push([a,s,0,0]),i+=n}return r},r=function(e){for(var n=t/e.length,i=[],r=function(e,r,o,a,s,l,u){n=t*s;for(var c=(o-e)/n,d=(a-r)/n,h=0;h<n;h++)i.push([e+c*h,r+d*h,null==l?0:l,null==u?0:u])},o=0;o<e.length;o++)r.apply(null,e[o]);return i},o=function(e){for(var t=[],n=0;n<e.length;n++)t.push([e[n][0],e[n][1],e[n][2],e[n][3],1/e.length,e[n][4],e[n][5]]);return r(t)},a=function(){return o([[0,0,1,0,0,-1],[1,0,1,1,1,0],[1,1,0,1,0,1],[0,1,0,0,-1,0]])},s={Circle:i,Ellipse:i,Diamond:function(){return o([[.5,0,1,.5],[1,.5,.5,1],[.5,1,0,.5],[0,.5,.5,0]])},Rectangle:a,Square:a,Triangle:function(){return o([[.5,0,1,1],[1,1,0,1],[0,1,.5,0]])},Path:function(e){for(var t=e.points,n=[],i=0,o=0;o<t.length-1;o++){var a=Math.sqrt(Math.pow(t[o][2]-t[o][0])+Math.pow(t[o][3]-t[o][1]));i+=a,n.push([t[o][0],t[o][1],t[o+1][0],t[o+1][1],a])}for(var s=0;s<n.length;s++)n[s][4]=n[s][4]/i;return r(n)}},l=function(e,t){for(var n=[],i=t/180*Math.PI,r=0;r<e.length;r++){var o=e[r][0]-.5,a=e[r][1]-.5;n.push([o*Math.cos(i)-a*Math.sin(i)+.5,o*Math.sin(i)+a*Math.cos(i)+.5,e[r][2],e[r][3]])}return n};if(!s[n])throw new Error("Shape ["+n+"] is unknown by Perimeter Anchor type");var u=s[n](e);e.rotation&&(u=l(u,e.rotation));var c=e.jsPlumbInstance.makeDynamicAnchor(u);return c.type="Perimeter",c}}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=(e.jsPlumbUtil,e.jsPlumb);t.DefaultRouter=function(e){this.jsPlumbInstance=e,this.anchorManager=new t.AnchorManager({jsPlumbInstance:e}),this.sourceOrTargetChanged=function(e,t,n,i,r){this.anchorManager.sourceOrTargetChanged(e,t,n,i,r)},this.reset=function(){this.anchorManager.reset()},this.changeId=function(e,t){this.anchorManager.changeId(e,t)},this.elementRemoved=function(e){this.anchorManager.elementRemoved(e)},this.newConnection=function(e){this.anchorManager.newConnection(e)},this.connectionDetached=function(e,t){this.anchorManager.connectionDetached(e,t)},this.redraw=function(e,t,n,i,r,o){return this.anchorManager.redraw(e,t,n,i,r,o)},this.deleteEndpoint=function(e){this.anchorManager.deleteEndpoint(e)},this.rehomeEndpoint=function(e,t,n){this.anchorManager.rehomeEndpoint(e,t,n)},this.addEndpoint=function(e,t){this.anchorManager.addEndpoint(e,t)}}}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumb,n=e.jsPlumbUtil,i=e.Biltong;t.Segments={AbstractSegment:function(e){this.params=e,this.findClosestPointOnPath=function(e,t){return{d:1/0,x:null,y:null,l:null}},this.getBounds=function(){return{minX:Math.min(e.x1,e.x2),minY:Math.min(e.y1,e.y2),maxX:Math.max(e.x1,e.x2),maxY:Math.max(e.y1,e.y2)}},this.lineIntersection=function(e,t,n,i){return[]},this.boxIntersection=function(e,t,n,i){var r=[];return r.push.apply(r,this.lineIntersection(e,t,e+n,t)),r.push.apply(r,this.lineIntersection(e+n,t,e+n,t+i)),r.push.apply(r,this.lineIntersection(e+n,t+i,e,t+i)),r.push.apply(r,this.lineIntersection(e,t+i,e,t)),r},this.boundingBoxIntersection=function(e){return this.boxIntersection(e.x,e.y,e.w,e.y)}},Straight:function(e){t.Segments.AbstractSegment.apply(this,arguments);var n,r,o,a,s,l,u,c=function(){n=Math.sqrt(Math.pow(s-a,2)+Math.pow(u-l,2)),r=i.gradient({x:a,y:l},{x:s,y:u}),o=-1/r};this.type="Straight",this.getLength=function(){return n},this.getGradient=function(){return r},this.getCoordinates=function(){return{x1:a,y1:l,x2:s,y2:u}},this.setCoordinates=function(e){a=e.x1,l=e.y1,s=e.x2,u=e.y2,c()},this.setCoordinates({x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2}),this.getBounds=function(){return{minX:Math.min(a,s),minY:Math.min(l,u),maxX:Math.max(a,s),maxY:Math.max(l,u)}},this.pointOnPath=function(e,t){if(0!==e||t){if(1!==e||t){var r=t?e>0?e:n+e:e*n;return i.pointOnLine({x:a,y:l},{x:s,y:u},r)}return{x:s,y:u}}return{x:a,y:l}},this.gradientAtPoint=function(e){return r},this.pointAlongPathFrom=function(e,t,n){var r=this.pointOnPath(e,n),o=t<=0?{x:a,y:l}:{x:s,y:u};return t<=0&&Math.abs(t)>1&&(t*=-1),i.pointOnLine(r,o,t)};var d=function(e,t,n){return n>=Math.min(e,t)&&n<=Math.max(e,t)},h=function(e,t,n){return Math.abs(n-e)<Math.abs(n-t)?e:t};this.findClosestPointOnPath=function(e,t){var c={d:1/0,x:null,y:null,l:null,x1:a,x2:s,y1:l,y2:u};if(0===r)c.y=l,c.x=d(a,s,e)?e:h(a,s,e);else if(r===1/0||r===-1/0)c.x=a,c.y=d(l,u,t)?t:h(l,u,t);else{var f=l-r*a,p=t-o*e,m=(p-f)/(r-o),v=r*m+f;c.x=d(a,s,m)?m:h(a,s,m),c.y=d(l,u,v)?v:h(l,u,v)}var g=i.lineLength([c.x,c.y],[a,l]);return c.d=i.lineLength([e,t],[c.x,c.y]),c.l=g/n,c};var f=function(e,t,n){return n>t?t<=e&&e<=n:t>=e&&e>=n},p=f;this.lineIntersection=function(e,t,n,o){var c=Math.abs(i.gradient({x:e,y:t},{x:n,y:o})),d=Math.abs(r),h=d===1/0?a:l-d*a,f=[],m=c===1/0?e:t-c*e;if(c!==d)if(c===1/0&&0===d)p(e,a,s)&&p(l,t,o)&&(f=[e,l]);else if(0===c&&d===1/0)p(t,l,u)&&p(a,e,n)&&(f=[a,t]);else{var v,g;c===1/0?(v=e,p(v,a,s)&&(g=d*e+h,p(g,t,o)&&(f=[v,g]))):0===c?(g=t,p(g,l,u)&&(v=(t-h)/d,p(v,e,n)&&(f=[v,g]))):(v=(m-h)/(d-c),g=d*v+h,p(v,a,s)&&p(g,l,u)&&(f=[v,g]))}return f},this.boxIntersection=function(e,t,n,i){var r=[];return r.push.apply(r,this.lineIntersection(e,t,e+n,t)),r.push.apply(r,this.lineIntersection(e+n,t,e+n,t+i)),r.push.apply(r,this.lineIntersection(e+n,t+i,e,t+i)),r.push.apply(r,this.lineIntersection(e,t+i,e,t)),r},this.boundingBoxIntersection=function(e){return this.boxIntersection(e.x,e.y,e.w,e.h)}},Arc:function(e){t.Segments.AbstractSegment.apply(this,arguments);var n=function(t,n){return i.theta([e.cx,e.cy],[t,n])},r=function(e,t){if(e.anticlockwise){var n=e.startAngle<e.endAngle?e.startAngle+o:e.startAngle,i=Math.abs(n-e.endAngle);return n-i*t}var r=e.endAngle<e.startAngle?e.endAngle+o:e.endAngle,a=Math.abs(r-e.startAngle);return e.startAngle+a*t},o=2*Math.PI;this.radius=e.r,this.anticlockwise=e.ac,this.type="Arc",e.startAngle&&e.endAngle?(this.startAngle=e.startAngle,this.endAngle=e.endAngle,this.x1=e.cx+this.radius*Math.cos(e.startAngle),this.y1=e.cy+this.radius*Math.sin(e.startAngle),this.x2=e.cx+this.radius*Math.cos(e.endAngle),this.y2=e.cy+this.radius*Math.sin(e.endAngle)):(this.startAngle=n(e.x1,e.y1),this.endAngle=n(e.x2,e.y2),this.x1=e.x1,this.y1=e.y1,this.x2=e.x2,this.y2=e.y2),this.endAngle<0&&(this.endAngle+=o),this.startAngle<0&&(this.startAngle+=o);var a=this.endAngle<this.startAngle?this.endAngle+o:this.endAngle;this.sweep=Math.abs(a-this.startAngle),this.anticlockwise&&(this.sweep=o-this.sweep);var s=2*Math.PI*this.radius,l=this.sweep/o,u=s*l;this.getLength=function(){return u},this.getBounds=function(){return{minX:e.cx-e.r,maxX:e.cx+e.r,minY:e.cy-e.r,maxY:e.cy+e.r}};var c=1e-10,d=function(e){var t=Math.floor(e),n=Math.ceil(e);return e-t<c?t:n-e<c?n:e};this.pointOnPath=function(t,n){if(0===t)return{x:this.x1,y:this.y1,theta:this.startAngle};if(1===t)return{x:this.x2,y:this.y2,theta:this.endAngle};n&&(t/=u);var i=r(this,t),o=e.cx+e.r*Math.cos(i),a=e.cy+e.r*Math.sin(i);return{x:d(o),y:d(a),theta:i}},this.gradientAtPoint=function(t,n){var r=this.pointOnPath(t,n),o=i.normal([e.cx,e.cy],[r.x,r.y]);return this.anticlockwise||o!==1/0&&o!==-1/0||(o*=-1),o},this.pointAlongPathFrom=function(t,n,i){var r=this.pointOnPath(t,i),o=n/s*2*Math.PI,a=this.anticlockwise?-1:1,l=r.theta+a*o,u=e.cx+this.radius*Math.cos(l),c=e.cy+this.radius*Math.sin(l);return{x:u,y:c}}},Bezier:function(n){this.curve=[{x:n.x1,y:n.y1},{x:n.cp1x,y:n.cp1y},{x:n.cp2x,y:n.cp2y},{x:n.x2,y:n.y2}];var i=function(e){return e[0].x===e[1].x&&e[0].y===e[1].y},r=function(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},o=function(e){var t={x:0,y:0};if(0===e)return this.curve[0];var n=this.curve.length-1;if(1===e)return this.curve[n];var i=this.curve,r=1-e;if(0===n)return this.curve[0];if(1===n)return{x:r*i[0].x+e*i[1].x,y:r*i[0].y+e*i[1].y};if(n<4){var o,a,s,l=r*r,u=e*e,c=0;return 2===n?(i=[i[0],i[1],i[2],t],o=l,a=r*e*2,s=u):3===n&&(o=l*r,a=l*e*3,s=r*u*3,c=e*u),{x:o*i[0].x+a*i[1].x+s*i[2].x+c*i[3].x,y:o*i[0].y+a*i[1].y+s*i[2].y+c*i[3].y}}return t}.bind(this),a=function(e){var t=[];e--;for(var n=0;n<=e;n++)t.push(o(n/e));return t},s=function(){i(this.curve)&&(this.length=0);var e=16,t=a(e);this.length=0;for(var n=0;n<e-1;n++){var o=t[n],s=t[n+1];this.length+=r(o,s)}}.bind(this);t.Segments.AbstractSegment.apply(this,arguments);this.bounds={minX:Math.min(n.x1,n.x2,n.cp1x,n.cp2x),minY:Math.min(n.y1,n.y2,n.cp1y,n.cp2y),maxX:Math.max(n.x1,n.x2,n.cp1x,n.cp2x),maxY:Math.max(n.y1,n.y2,n.cp1y,n.cp2y)},this.type="Bezier",s();var l=function(t,n,i){return i&&(n=e.jsBezier.locationAlongCurveFrom(t,n>0?0:1,n)),n};this.pointOnPath=function(t,n){return t=l(this.curve,t,n),e.jsBezier.pointOnCurve(this.curve,t)},this.gradientAtPoint=function(t,n){return t=l(this.curve,t,n),e.jsBezier.gradientAtPoint(this.curve,t)},this.pointAlongPathFrom=function(t,n,i){return t=l(this.curve,t,i),e.jsBezier.pointAlongCurveFrom(this.curve,t,n)},this.getLength=function(){return this.length},this.getBounds=function(){return this.bounds},this.findClosestPointOnPath=function(t,n){var i=e.jsBezier.nearestPointOnCurve({x:t,y:n},this.curve);return{d:Math.sqrt(Math.pow(i.point.x-t,2)+Math.pow(i.point.y-n,2)),x:i.point.x,y:i.point.y,l:1-i.location,s:this}},this.lineIntersection=function(t,n,i,r){return e.jsBezier.lineIntersection(t,n,i,r,this.curve)}}},t.SegmentRenderer={getPath:function(e,t){return{Straight:function(t){var n=e.getCoordinates();return(t?"M "+n.x1+" "+n.y1+" ":"")+"L "+n.x2+" "+n.y2},Bezier:function(t){var n=e.params;return(t?"M "+n.x2+" "+n.y2+" ":"")+"C "+n.cp2x+" "+n.cp2y+" "+n.cp1x+" "+n.cp1y+" "+n.x1+" "+n.y1},Arc:function(t){var n=e.params,i=e.sweep>Math.PI?1:0,r=e.anticlockwise?0:1;return(t?"M"+e.x1+" "+e.y1+" ":"")+"A "+e.radius+" "+n.r+" 0 "+i+","+r+" "+e.x2+" "+e.y2}}[e.type](t)}};var r=function(){this.resetBounds=function(){this.bounds={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}},this.resetBounds()};t.Connectors.AbstractConnector=function(e){r.apply(this,arguments);var o=[],a=0,s=[],l=[],u=e.stub||0,c=n.isArray(u)?u[0]:u,d=n.isArray(u)?u[1]:u,h=e.gap||0,f=n.isArray(h)?h[0]:h,p=n.isArray(h)?h[1]:h,m=null,v=null;this.getPathData=function(){for(var e="",n=0;n<o.length;n++)e+=t.SegmentRenderer.getPath(o[n],0===n),e+=" ";return e},this.findSegmentForPoint=function(e,t){for(var n={d:1/0,s:null,x:null,y:null,l:null},i=0;i<o.length;i++){var r=o[i].findClosestPointOnPath(e,t);r.d<n.d&&(n.d=r.d,n.l=r.l,n.x=r.x,n.y=r.y,n.s=o[i],n.x1=r.x1,n.x2=r.x2,n.y1=r.y1,n.y2=r.y2,n.index=i,n.connectorLocation=s[i][0]+r.l*(s[i][1]-s[i][0]))}return n},this.lineIntersection=function(e,t,n,i){for(var r=[],a=0;a<o.length;a++)r.push.apply(r,o[a].lineIntersection(e,t,n,i));return r},this.boxIntersection=function(e,t,n,i){for(var r=[],a=0;a<o.length;a++)r.push.apply(r,o[a].boxIntersection(e,t,n,i));return r},this.boundingBoxIntersection=function(e){for(var t=[],n=0;n<o.length;n++)t.push.apply(t,o[n].boundingBoxIntersection(e));return t};var g=function(){for(var e=0,t=0;t<o.length;t++){var n=o[t].getLength();l[t]=n/a,s[t]=[e,e+=n/a]}},y=function(e,t){var n,i,r;if(t&&(e=e>0?e/a:(a+e)/a),1===e)n=o.length-1,r=1;else if(0===e)r=0,n=0;else if(e>=.5){for(n=0,r=0,i=s.length-1;i>-1;i--)if(s[i][1]>=e&&s[i][0]<=e){n=i,r=(e-s[i][0])/l[i];break}}else for(n=s.length-1,r=1,i=0;i<s.length;i++)if(s[i][1]>=e){n=i,r=(e-s[i][0])/l[i];break}return{segment:o[n],proportion:r,index:n}},b=function(e,n,i){if(i.x1!==i.x2||i.y1!==i.y2){var r=new t.Segments[n](i);o.push(r),a+=r.getLength(),e.updateBounds(r)}},_=function(){a=o.length=s.length=l.length=0};this.setSegments=function(e){m=[],a=0;for(var t=0;t<e.length;t++)m.push(e[t]),a+=e[t].getLength()},this.getLength=function(){return a};var w=function(e){this.strokeWidth=e.strokeWidth;var t=i.quadrant(e.sourcePos,e.targetPos),n=e.targetPos[0]<e.sourcePos[0],r=e.targetPos[1]<e.sourcePos[1],o=e.strokeWidth||1,a=e.sourceEndpoint.anchor.getOrientation(e.sourceEndpoint),s=e.targetEndpoint.anchor.getOrientation(e.targetEndpoint),l=n?e.targetPos[0]:e.sourcePos[0],u=r?e.targetPos[1]:e.sourcePos[1],h=Math.abs(e.targetPos[0]-e.sourcePos[0]),m=Math.abs(e.targetPos[1]-e.sourcePos[1]);if(0===a[0]&&0===a[1]||0===s[0]&&0===s[1]){var v=h>m?0:1,g=[1,0][v];a=[],s=[],a[v]=e.sourcePos[v]>e.targetPos[v]?-1:1,s[v]=e.sourcePos[v]>e.targetPos[v]?1:-1,a[g]=0,s[g]=0}var y=n?h+f*a[0]:f*a[0],b=r?m+f*a[1]:f*a[1],_=n?p*s[0]:h+p*s[0],w=r?p*s[1]:m+p*s[1],x=a[0]*s[0]+a[1]*s[1],k={sx:y,sy:b,tx:_,ty:w,lw:o,xSpan:Math.abs(_-y),ySpan:Math.abs(w-b),mx:(y+_)/2,my:(b+w)/2,so:a,to:s,x:l,y:u,w:h,h:m,segment:t,startStubX:y+a[0]*c,startStubY:b+a[1]*c,endStubX:_+s[0]*d,endStubY:w+s[1]*d,isXGreaterThanStubTimes2:Math.abs(y-_)>c+d,isYGreaterThanStubTimes2:Math.abs(b-w)>c+d,opposite:-1===x,perpendicular:0===x,orthogonal:1===x,sourceAxis:0===a[0]?"y":"x",points:[l,u,h,m,y,b,_,w],stubs:[c,d]};return k.anchorOrientation=k.opposite?"opposite":k.orthogonal?"orthogonal":"perpendicular",k};this.getSegments=function(){return o},this.updateBounds=function(e){var t=e.getBounds();this.bounds.minX=Math.min(this.bounds.minX,t.minX),this.bounds.maxX=Math.max(this.bounds.maxX,t.maxX),this.bounds.minY=Math.min(this.bounds.minY,t.minY),this.bounds.maxY=Math.max(this.bounds.maxY,t.maxY)};return this.pointOnPath=function(e,t){var n=y(e,t);return n.segment&&n.segment.pointOnPath(n.proportion,!1)||[0,0]},this.gradientAtPoint=function(e,t){var n=y(e,t);return n.segment&&n.segment.gradientAtPoint(n.proportion,!1)||0},this.pointAlongPathFrom=function(e,t,n){var i=y(e,n);return i.segment&&i.segment.pointAlongPathFrom(i.proportion,t,!1)||[0,0]},this.compute=function(e){v=w.call(this,e),_(),this._compute(v,e),this.x=v.points[0],this.y=v.points[1],this.w=v.points[2],this.h=v.points[3],this.segment=v.segment,g()},{addSegment:b,prepareCompute:w,sourceStub:c,targetStub:d,maxStub:Math.max(c,d),sourceGap:f,targetGap:p,maxGap:Math.max(f,p)}},n.extend(t.Connectors.AbstractConnector,r),t.Endpoints.AbstractEndpoint=function(e){r.apply(this,arguments);var t=this.compute=function(e,t,n,i){var r=this._compute.apply(this,arguments);return this.x=r[0],this.y=r[1],this.w=r[2],this.h=r[3],this.bounds.minX=this.x,this.bounds.minY=this.y,this.bounds.maxX=this.x+this.w,this.bounds.maxY=this.y+this.h,r};return{compute:t,cssClass:e.cssClass}},n.extend(t.Endpoints.AbstractEndpoint,r),t.Endpoints.Dot=function(e){this.type="Dot";t.Endpoints.AbstractEndpoint.apply(this,arguments);e=e||{},this.radius=e.radius||10,this.defaultOffset=.5*this.radius,this.defaultInnerRadius=this.radius/3,this._compute=function(e,t,n,i){this.radius=n.radius||this.radius;var r=e[0]-this.radius,o=e[1]-this.radius,a=2*this.radius,s=2*this.radius;if(n.stroke){var l=n.strokeWidth||1;r-=l,o-=l,a+=2*l,s+=2*l}return[r,o,a,s,this.radius]}},n.extend(t.Endpoints.Dot,t.Endpoints.AbstractEndpoint),t.Endpoints.Rectangle=function(e){this.type="Rectangle";t.Endpoints.AbstractEndpoint.apply(this,arguments);e=e||{},this.width=e.width||20,this.height=e.height||20,this._compute=function(e,t,n,i){var r=n.width||this.width,o=n.height||this.height,a=e[0]-r/2,s=e[1]-o/2;return[a,s,r,o]}},n.extend(t.Endpoints.Rectangle,t.Endpoints.AbstractEndpoint);var o=function(e){t.jsPlumbUIComponent.apply(this,arguments),this._jsPlumb.displayElements=[]};n.extend(o,t.jsPlumbUIComponent,{getDisplayElements:function(){return this._jsPlumb.displayElements},appendDisplayElement:function(e){this._jsPlumb.displayElements.push(e)}}),t.Endpoints.Image=function(i){this.type="Image",o.apply(this,arguments),t.Endpoints.AbstractEndpoint.apply(this,arguments);var r=i.onload,a=i.src||i.url,s=i.cssClass?" "+i.cssClass:"";this._jsPlumb.img=new Image,this._jsPlumb.ready=!1,this._jsPlumb.initialized=!1,this._jsPlumb.deleted=!1,this._jsPlumb.widthToUse=i.width,this._jsPlumb.heightToUse=i.height,this._jsPlumb.endpoint=i.endpoint,this._jsPlumb.img.onload=function(){null!=this._jsPlumb&&(this._jsPlumb.ready=!0,this._jsPlumb.widthToUse=this._jsPlumb.widthToUse||this._jsPlumb.img.width,this._jsPlumb.heightToUse=this._jsPlumb.heightToUse||this._jsPlumb.img.height,r&&r(this))}.bind(this),this._jsPlumb.endpoint.setImage=function(e,t){var n=e.constructor===String?e:e.src;r=t,this._jsPlumb.img.src=n,null!=this.canvas&&this.canvas.setAttribute("src",this._jsPlumb.img.src)}.bind(this),this._jsPlumb.endpoint.setImage(a,r),this._compute=function(e,t,n,i){return this.anchorPoint=e,this._jsPlumb.ready?[e[0]-this._jsPlumb.widthToUse/2,e[1]-this._jsPlumb.heightToUse/2,this._jsPlumb.widthToUse,this._jsPlumb.heightToUse]:[0,0,0,0]},this.canvas=t.createElement("img",{position:"absolute",margin:0,padding:0,outline:0},this._jsPlumb.instance.endpointClass+s),this._jsPlumb.widthToUse&&this.canvas.setAttribute("width",this._jsPlumb.widthToUse),this._jsPlumb.heightToUse&&this.canvas.setAttribute("height",this._jsPlumb.heightToUse),this._jsPlumb.instance.appendElement(this.canvas),this.actuallyPaint=function(e,t,i){if(!this._jsPlumb.deleted){this._jsPlumb.initialized||(this.canvas.setAttribute("src",this._jsPlumb.img.src),this.appendDisplayElement(this.canvas),this._jsPlumb.initialized=!0);var r=this.anchorPoint[0]-this._jsPlumb.widthToUse/2,o=this.anchorPoint[1]-this._jsPlumb.heightToUse/2;n.sizeElement(this.canvas,r,o,this._jsPlumb.widthToUse,this._jsPlumb.heightToUse)}},this.paint=function(t,n){null!=this._jsPlumb&&(this._jsPlumb.ready?this.actuallyPaint(t,n):e.setTimeout(function(){this.paint(t,n)}.bind(this),200))}},n.extend(t.Endpoints.Image,[o,t.Endpoints.AbstractEndpoint],{cleanup:function(e){e&&(this._jsPlumb.deleted=!0,this.canvas&&this.canvas.parentNode.removeChild(this.canvas),this.canvas=null)}}),t.Endpoints.Blank=function(e){t.Endpoints.AbstractEndpoint.apply(this,arguments);this.type="Blank",o.apply(this,arguments),this._compute=function(e,t,n,i){return[e[0],e[1],10,0]};var i=e.cssClass?" "+e.cssClass:"";this.canvas=t.createElement("div",{display:"block",width:"1px",height:"1px",background:"transparent",position:"absolute"},this._jsPlumb.instance.endpointClass+i),this._jsPlumb.instance.appendElement(this.canvas),this.paint=function(e,t){n.sizeElement(this.canvas,this.x,this.y,this.w,this.h)}},n.extend(t.Endpoints.Blank,[t.Endpoints.AbstractEndpoint,o],{cleanup:function(){this.canvas&&this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas)}}),t.Endpoints.Triangle=function(e){this.type="Triangle",t.Endpoints.AbstractEndpoint.apply(this,arguments);var n=this;e=e||{},e.width=e.width||55,e.height=e.height||55,this.width=e.width,this.height=e.height,this._compute=function(e,t,i,r){var o=i.width||n.width,a=i.height||n.height,s=e[0]-o/2,l=e[1]-a/2;return[s,l,o,a]}};var a=t.Overlays.AbstractOverlay=function(e){this.visible=!0,this.isAppendedAtTopLevel=!0,this.component=e.component,this.loc=null==e.location?.5:e.location,this.endpointLoc=null==e.endpointLocation?[.5,.5]:e.endpointLocation,this.visible=!1!==e.visible};a.prototype={cleanup:function(e){e&&(this.component=null,this.canvas=null,this.endpointLoc=null)},reattach:function(e,t){},setVisible:function(e){this.visible=e,this.component.repaint()},isVisible:function(){return this.visible},hide:function(){this.setVisible(!1)},show:function(){this.setVisible(!0)},incrementLocation:function(e){this.loc+=e,this.component.repaint()},setLocation:function(e){this.loc=e,this.component.repaint()},getLocation:function(){return this.loc},updateFrom:function(){}},t.Overlays.Arrow=function(e){this.type="Arrow",a.apply(this,arguments),this.isAppendedAtTopLevel=!1,e=e||{};var r=this;this.length=e.length||20,this.width=e.width||20,this.id=e.id,this.direction=(e.direction||1)<0?-1:1;var o=e.paintStyle||{"stroke-width":1},s=e.foldback||.623;this.computeMaxSize=function(){return 1.5*r.width},this.elementCreated=function(n,i){if(this.path=n,e.events)for(var r in e.events)t.on(n,r,e.events[r])},this.draw=function(e,t){var r,a,l,u,c;if(e.pointAlongPathFrom){if(n.isString(this.loc)||this.loc>1||this.loc<0){var d=parseInt(this.loc,10),h=this.loc<0?1:0;r=e.pointAlongPathFrom(h,d,!1),a=e.pointAlongPathFrom(h,d-this.direction*this.length/2,!1),l=i.pointOnLine(r,a,this.length)}else if(1===this.loc){if(r=e.pointOnPath(this.loc),a=e.pointAlongPathFrom(this.loc,-this.length),l=i.pointOnLine(r,a,this.length),-1===this.direction){var f=l;l=r,r=f}}else if(0===this.loc){if(l=e.pointOnPath(this.loc),a=e.pointAlongPathFrom(this.loc,this.length),r=i.pointOnLine(l,a,this.length),-1===this.direction){var p=l;l=r,r=p}}else r=e.pointAlongPathFrom(this.loc,this.direction*this.length/2),a=e.pointOnPath(this.loc),l=i.pointOnLine(r,a,this.length);u=i.perpendicularLineTo(r,l,this.width),c=i.pointOnLine(r,l,s*this.length);var m={hxy:r,tail:u,cxy:c},v=o.stroke||t.stroke,g=o.fill||t.stroke,y=o.strokeWidth||t.strokeWidth;return{component:e,d:m,"stroke-width":y,stroke:v,fill:g,minX:Math.min(r.x,u[0].x,u[1].x),maxX:Math.max(r.x,u[0].x,u[1].x),minY:Math.min(r.y,u[0].y,u[1].y),maxY:Math.max(r.y,u[0].y,u[1].y)}}return{component:e,minX:0,maxX:0,minY:0,maxY:0}}},n.extend(t.Overlays.Arrow,a,{updateFrom:function(e){this.length=e.length||this.length,this.width=e.width||this.width,this.direction=null!=e.direction?e.direction:this.direction,this.foldback=e.foldback||this.foldback},cleanup:function(){this.path&&this.path.parentNode&&this.path.parentNode.removeChild(this.path)}}),t.Overlays.PlainArrow=function(e){e=e||{};var n=t.extend(e,{foldback:1});t.Overlays.Arrow.call(this,n),this.type="PlainArrow"},n.extend(t.Overlays.PlainArrow,t.Overlays.Arrow),t.Overlays.Diamond=function(e){e=e||{};var n=e.length||40,i=t.extend(e,{length:n/2,foldback:2});t.Overlays.Arrow.call(this,i),this.type="Diamond"},n.extend(t.Overlays.Diamond,t.Overlays.Arrow);var s=function(e,t){return(null==e._jsPlumb.cachedDimensions||t)&&(e._jsPlumb.cachedDimensions=e.getDimensions()),e._jsPlumb.cachedDimensions},l=function(e){t.jsPlumbUIComponent.apply(this,arguments),a.apply(this,arguments);var i=this.fire;this.fire=function(){i.apply(this,arguments),this.component&&this.component.fire.apply(this.component,arguments)},this.detached=!1,this.id=e.id,this._jsPlumb.div=null,this._jsPlumb.initialised=!1,this._jsPlumb.component=e.component,this._jsPlumb.cachedDimensions=null,this._jsPlumb.create=e.create,this._jsPlumb.initiallyInvisible=!1===e.visible,this.getElement=function(){if(null==this._jsPlumb.div){var n=this._jsPlumb.div=t.getElement(this._jsPlumb.create(this._jsPlumb.component));n.style.position="absolute",jsPlumb.addClass(n,this._jsPlumb.instance.overlayClass+" "+(this.cssClass?this.cssClass:e.cssClass?e.cssClass:"")),this._jsPlumb.instance.appendElement(n),this._jsPlumb.instance.getId(n),this.canvas=n;var i="translate(-50%, -50%)";n.style.webkitTransform=i,n.style.mozTransform=i,n.style.msTransform=i,n.style.oTransform=i,n.style.transform=i,n._jsPlumb=this,!1===e.visible&&(n.style.display="none")}return this._jsPlumb.div},this.draw=function(e,t,i){var r=s(this);if(null!=r&&2===r.length){var o={x:0,y:0};if(i)o={x:i[0],y:i[1]};else if(e.pointOnPath){var a=this.loc,l=!1;(n.isString(this.loc)||this.loc<0||this.loc>1)&&(a=parseInt(this.loc,10),l=!0),o=e.pointOnPath(a,l)}else{var u=this.loc.constructor===Array?this.loc:this.endpointLoc;o={x:u[0]*e.w,y:u[1]*e.h}}var c=o.x-r[0]/2,d=o.y-r[1]/2;return{component:e,d:{minx:c,miny:d,td:r,cxy:o},minX:c,maxX:c+r[0],minY:d,maxY:d+r[1]}}return{minX:0,maxX:0,minY:0,maxY:0}}};n.extend(l,[t.jsPlumbUIComponent,a],{getDimensions:function(){return[1,1]},setVisible:function(e){this._jsPlumb.div&&(this._jsPlumb.div.style.display=e?"block":"none",e&&this._jsPlumb.initiallyInvisible&&(s(this,!0),this.component.repaint(),this._jsPlumb.initiallyInvisible=!1))},clearCachedDimensions:function(){this._jsPlumb.cachedDimensions=null},cleanup:function(e){e?null!=this._jsPlumb.div&&(this._jsPlumb.div._jsPlumb=null,this._jsPlumb.instance.removeElement(this._jsPlumb.div)):(this._jsPlumb&&this._jsPlumb.div&&this._jsPlumb.div.parentNode&&this._jsPlumb.div.parentNode.removeChild(this._jsPlumb.div),this.detached=!0)},reattach:function(e,t){null!=this._jsPlumb.div&&e.getContainer().appendChild(this._jsPlumb.div),this.detached=!1},computeMaxSize:function(){var e=s(this);return Math.max(e[0],e[1])},paint:function(e,t){this._jsPlumb.initialised||(this.getElement(),e.component.appendDisplayElement(this._jsPlumb.div),this._jsPlumb.initialised=!0,this.detached&&this._jsPlumb.div.parentNode.removeChild(this._jsPlumb.div)),this._jsPlumb.div.style.left=e.component.x+e.d.minx+"px",this._jsPlumb.div.style.top=e.component.y+e.d.miny+"px"}}),t.Overlays.Custom=function(e){this.type="Custom",l.apply(this,arguments)},n.extend(t.Overlays.Custom,l),t.Overlays.GuideLines=function(){var e=this;e.length=50,e.strokeWidth=5,this.type="GuideLines",a.apply(this,arguments),t.jsPlumbUIComponent.apply(this,arguments),this.draw=function(t,n){var r=t.pointAlongPathFrom(e.loc,e.length/2),o=t.pointOnPath(e.loc),a=i.pointOnLine(r,o,e.length),s=i.perpendicularLineTo(r,a,40),l=i.perpendicularLineTo(a,r,20);return{connector:t,head:r,tail:a,headLine:l,tailLine:s,minX:Math.min(r.x,a.x,l[0].x,l[1].x),minY:Math.min(r.y,a.y,l[0].y,l[1].y),maxX:Math.max(r.x,a.x,l[0].x,l[1].x),maxY:Math.max(r.y,a.y,l[0].y,l[1].y)}}},t.Overlays.Label=function(e){this.labelStyle=e.labelStyle;this.cssClass=null!=this.labelStyle?this.labelStyle.cssClass:null;var n=t.extend({create:function(){return t.createElement("div")}},e);if(t.Overlays.Custom.call(this,n),this.type="Label",this.label=e.label||"",this.labelText=null,this.labelStyle){var i=this.getElement();if(this.labelStyle.font=this.labelStyle.font||"12px sans-serif",i.style.font=this.labelStyle.font,i.style.color=this.labelStyle.color||"black",this.labelStyle.fill&&(i.style.background=this.labelStyle.fill),this.labelStyle.borderWidth>0){var r=this.labelStyle.borderStyle?this.labelStyle.borderStyle:"black";i.style.border=this.labelStyle.borderWidth+"px solid "+r}this.labelStyle.padding&&(i.style.padding=this.labelStyle.padding)}},n.extend(t.Overlays.Label,t.Overlays.Custom,{cleanup:function(e){e&&(this.div=null,this.label=null,this.labelText=null,this.cssClass=null,this.labelStyle=null)},getLabel:function(){return this.label},setLabel:function(e){this.label=e,this.labelText=null,this.clearCachedDimensions(),this.update(),this.component.repaint()},getDimensions:function(){return this.update(),l.prototype.getDimensions.apply(this,arguments)},update:function(){if("function"===typeof this.label){var e=this.label(this);this.getElement().innerHTML=e.replace(/\r\n/g,"<br/>")}else null==this.labelText&&(this.labelText=this.label,this.getElement().innerHTML=this.labelText.replace(/\r\n/g,"<br/>"))},updateFrom:function(e){null!=e.label&&this.setLabel(e.label)}})}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumbUtil,n=e.jsPlumbInstance,i="jtk-group-collapsed",r="jtk-group-expanded",o="[jtk-group-content]",a="elementDraggable",s="stop",l="revert",u="_groupManager",c="_jsPlumbGroup",d="_jsPlumbGroupDrag",h="group:addMember",f="group:removeMember",p="group:add",m="group:remove",v="group:expand",g="group:collapse",y="groupDragStop",b="connectionMoved",_="internal.connectionDetached",w="removeAll",x="orphanAll",k="show",M="hide",S=function(e){var n={},o={},a={},s=this;function l(t,n){var i=e.getContainer(),r=!1;while(!r){if(null==t||t===i)return!1;if(t===n)return!0;t=t.parentNode}}function u(e){delete e.proxies;var n,i=o[e.id];null!=i&&(n=function(t){return t.id===e.id},t.removeWithFunction(i.connections.source,n),t.removeWithFunction(i.connections.target,n),delete o[e.id]),i=a[e.id],null!=i&&(n=function(t){return t.id===e.id},t.removeWithFunction(i.connections.source,n),t.removeWithFunction(i.connections.target,n),delete a[e.id])}function d(t,n){for(var i=t.getEl().querySelectorAll(".jtk-managed"),r=0;r<i.length;r++)e[n?k:M](i[r],!0)}e.bind("connection",(function(n){var i=e.getGroupFor(n.source),r=e.getGroupFor(n.target);null!=i&&null!=r&&i===r?(o[n.connection.id]=i,a[n.connection.id]=i):(null!=i&&(t.suggest(i.connections.source,n.connection),o[n.connection.id]=i),null!=r&&(t.suggest(r.connections.target,n.connection),a[n.connection.id]=r))})),e.bind(_,(function(e){u(e.connection)})),e.bind(b,(function(e){var t=0===e.index?o:a,n=t[e.connection.id];if(n){var i=n.connections[0===e.index?"source":"target"],r=i.indexOf(e.connection);-1!==r&&i.splice(r,1)}})),this.addGroup=function(t){e.addClass(t.getEl(),r),n[t.id]=t,t.manager=this,S(t),e.fire(p,{group:t})},this.addToGroup=function(t,n,i){if(t=this.getGroup(t),t){var r=t.getEl();if(n._isJsPlumbGroup)return;var o=n._jsPlumbGroup;if(o!==t){e.removeFromDragSelection(n);var a=e.getOffset(n,!0),l=t.collapsed?e.getOffset(r,!0):e.getOffset(t.getDragArea(),!0);null!=o&&(o.remove(n,!1,i,!1,t),s.updateConnectionsForGroup(o)),t.add(n,i);var u=function(e,n){var i=0===n?1:0;e.each((function(e){e.setVisible(!1),e.endpoints[i].element._jsPlumbGroup===t?(e.endpoints[i].setVisible(!1),y(e,i,t)):(e.endpoints[n].setVisible(!1),f(e,n,t))}))};t.collapsed&&(u(e.select({source:n}),0),u(e.select({target:n}),1));var c=e.getId(n);e.dragManager.setParent(n,c,r,e.getId(r),a);var d={left:a.left-l.left,top:a.top-l.top};if(e.setPosition(n,d),e.dragManager.revalidateParent(n,c,a),s.updateConnectionsForGroup(t),e.revalidate(c),!i){var p={group:t,el:n,pos:d};o&&(p.sourceGroup=o),e.fire(h,p)}}}},this.removeFromGroup=function(e,t,n){if(e=this.getGroup(e),e){if(e.collapsed){var i=function(n,i){for(var r=0;r<n.length;r++){var o=n[r];if(o.proxies)for(var a=0;a<o.proxies.length;a++)if(null!=o.proxies[a]){var s=o.proxies[a].originalEp.element;(s===t||l(s,t))&&y(o,i,e)}}};i(e.connections.source.slice(),0),i(e.connections.target.slice(),1)}e.remove(t,null,n)}},this.getGroup=function(e){var i=e;if(t.isString(e)&&(i=n[e],null==i))throw new TypeError("No such group ["+e+"]");return i},this.getGroups=function(){var e=[];for(var t in n)e.push(n[t]);return e},this.removeGroup=function(t,i,r,o){t=this.getGroup(t),this.expandGroup(t,!0);var a=t[i?w:x](r,o);return e.remove(t.getEl()),delete n[t.id],delete e._groups[t.id],e.fire(m,{group:t}),a},this.removeAllGroups=function(e,t,i){for(var r in n)this.removeGroup(n[r],e,t,i)};var f=function(t,n,i){var r=t.endpoints[0===n?1:0].element;if(!r[c]||r[c].shouldProxy()||!r[c].collapsed){var o=i.getEl(),a=e.getId(o);e.proxyConnection(t,n,o,a,(function(e,t){return i.getEndpoint(e,t)}),(function(e,t){return i.getAnchor(e,t)}))}};this.collapseGroup=function(t){if(t=this.getGroup(t),null!=t&&!t.collapsed){var n=t.getEl();if(d(t,!1),t.shouldProxy()){var o=function(e,n){for(var i=0;i<e.length;i++){var r=e[i];f(r,n,t)}};o(t.connections.source,0),o(t.connections.target,1)}t.collapsed=!0,e.removeClass(n,r),e.addClass(n,i),e.revalidate(n),e.fire(g,{group:t})}};var y=function(t,n,i){e.unproxyConnection(t,n,e.getId(i.getEl()))};function S(t){for(var n=t.getMembers().slice(),i=[],r=0;r<n.length;r++)Array.prototype.push.apply(i,n[r].querySelectorAll(".jtk-managed"));Array.prototype.push.apply(n,i);var s=e.getConnections({source:n,scope:"*"},!0),l=e.getConnections({target:n,scope:"*"},!0),u={};t.connections.source.length=0,t.connections.target.length=0;var c=function(n){for(var i=0;i<n.length;i++)if(!u[n[i].id]){u[n[i].id]=!0;var r=e.getGroupFor(n[i].source),s=e.getGroupFor(n[i].target);r===t?(s!==t&&t.connections.source.push(n[i]),o[n[i].id]=t):s===t&&(t.connections.target.push(n[i]),a[n[i].id]=t)}};c(s),c(l)}this.expandGroup=function(t,n){if(t=this.getGroup(t),null!=t&&t.collapsed){var o=t.getEl();if(d(t,!0),t.shouldProxy()){var a=function(e,n){for(var i=0;i<e.length;i++){var r=e[i];y(r,n,t)}};a(t.connections.source,0),a(t.connections.target,1)}t.collapsed=!1,e.addClass(o,r),e.removeClass(o,i),e.revalidate(o),this.repaintGroup(t),n||e.fire(v,{group:t})}},this.repaintGroup=function(t){t=this.getGroup(t);for(var n=t.getMembers(),i=0;i<n.length;i++)e.revalidate(n[i])},this.updateConnectionsForGroup=S,this.refreshAllGroups=function(){for(var t in n)S(n[t]),e.dragManager.updateOffsets(e.getId(n[t].getEl()))}},C=function(n,i){var r=this,u=i.el;this.getEl=function(){return u},this.id=i.id||t.uuid(),u._isJsPlumbGroup=!0;var h=this.getDragArea=function(){var e=n.getSelector(u,o);return e&&e.length>0?e[0]:u},p=!0===i.ghost,m=p||!0===i.constrain,v=!1!==i.revert,g=!0===i.orphan,b=!0===i.prune,_=!0===i.dropOverride,w=!1!==i.proxied,x=[];if(this.connections={source:[],target:[],internal:[]},this.getAnchor=function(e,t){return i.anchor||"Continuous"},this.getEndpoint=function(e,t){return i.endpoint||["Dot",{radius:10}]},this.collapsed=!1,!1!==i.draggable){var k={drag:function(){for(var e=0;e<x.length;e++)n.draw(x[e])},stop:function(e){n.fire(y,jsPlumb.extend(e,{group:r}))},scope:d};i.dragOptions&&e.jsPlumb.extend(k,i.dragOptions),n.draggable(i.el,k)}!1!==i.droppable&&n.droppable(i.el,{drop:function(e){var t=e.drag.el;if(!t._isJsPlumbGroup){var i=t._jsPlumbGroup;if(i!==r){if(null!=i&&i.overrideDrop(t,r))return;n.getGroupManager().addToGroup(r,t,!1)}}}});var M=function(e,t){for(var n=null==e.nodeType?e:[e],i=0;i<n.length;i++)t(n[i])};function S(e){return e.offsetParent}function C(e,t){var i=S(e),r=n.getSize(i),o=n.getSize(e),a=t[0],s=a+o[0],l=t[1],u=l+o[1];return s>0&&a<r[0]&&u>0&&l<r[1]}function D(e){var t=n.getId(e),i=n.getOffset(e);return e.parentNode.removeChild(e),n.getContainer().appendChild(e),n.setPosition(e,i),E(e),n.dragManager.clearParent(e,t),[t,i]}function L(e){var t=[];function i(e,t,i){var r=null;if(!C(e,[t,i])){var o=e._jsPlumbGroup;b?n.remove(e):r=D(e),o.remove(e)}return r}for(var r=0;r<e.selection.length;r++)t.push(i(e.selection[r][0],e.selection[r][1].left,e.selection[r][1].top));return 1===t.length?t[0]:t}function T(e){var t=n.getId(e);n.revalidate(e),n.dragManager.revalidateParent(e,t)}function E(e){e._katavorioDrag&&((b||g)&&e._katavorioDrag.off(s,L),b||g||!v||(e._katavorioDrag.off(l,T),e._katavorioDrag.setRevert(null)))}function P(e){e._katavorioDrag&&((b||g)&&e._katavorioDrag.on(s,L),m&&e._katavorioDrag.setConstrain(!0),p&&e._katavorioDrag.setUseGhostProxy(!0),b||g||!v||(e._katavorioDrag.on(l,T),e._katavorioDrag.setRevert((function(e,t){return!C(e,t)}))))}this.overrideDrop=function(e,t){return _&&(v||b||g)},this.add=function(e,t){var i=h();M(e,(function(e){if(null!=e._jsPlumbGroup){if(e._jsPlumbGroup===r)return;e._jsPlumbGroup.remove(e,!0,t,!1)}e._jsPlumbGroup=r,x.push(e),n.isAlreadyDraggable(e)&&P(e),e.parentNode!==i&&i.appendChild(e)})),n.getGroupManager().updateConnectionsForGroup(r)},this.remove=function(e,i,o,a,s){M(e,(function(e){if(e._jsPlumbGroup===r){if(delete e._jsPlumbGroup,t.removeWithFunction(x,(function(t){return t===e})),i)try{r.getDragArea().removeChild(e)}catch(l){jsPlumbUtil.log("Could not remove element from Group "+l)}if(E(e),!o){var a={group:r,el:e};s&&(a.targetGroup=s),n.fire(f,a)}}})),a||n.getGroupManager().updateConnectionsForGroup(r)},this.removeAll=function(e,t){for(var i=0,o=x.length;i<o;i++){var a=x[0];r.remove(a,e,t,!0),n.remove(a,!0)}x.length=0,n.getGroupManager().updateConnectionsForGroup(r)},this.orphanAll=function(){for(var e={},t=0;t<x.length;t++){var n=D(x[t]);e[n[0]]=n[1]}return x.length=0,e},this.getMembers=function(){return x},u[c]=this,n.bind(a,function(e){e.el._jsPlumbGroup===this&&P(e.el)}.bind(this)),this.shouldProxy=function(){return w},n.getGroupManager().addGroup(this)};n.prototype.addGroup=function(e){var t=this;if(t._groups=t._groups||{},null!=t._groups[e.id])throw new TypeError("cannot create Group ["+e.id+"]; a Group with that ID exists");if(null!=e.el[c])throw new TypeError("cannot create Group ["+e.id+"]; the given element is already a Group");var n=new C(t,e);return t._groups[n.id]=n,e.collapsed&&this.collapseGroup(n),n},n.prototype.addToGroup=function(e,t,n){var i=function(t){var i=this.getId(t);this.manage(i,t),this.getGroupManager().addToGroup(e,t,n)}.bind(this);if(Array.isArray(t))for(var r=0;r<t.length;r++)i(t[r]);else i(t)},n.prototype.removeFromGroup=function(e,t,n){this.getGroupManager().removeFromGroup(e,t,n),this.getContainer().appendChild(t)},n.prototype.removeGroup=function(e,t,n,i){return this.getGroupManager().removeGroup(e,t,n,i)},n.prototype.removeAllGroups=function(e,t,n){this.getGroupManager().removeAllGroups(e,t,n)},n.prototype.getGroup=function(e){return this.getGroupManager().getGroup(e)},n.prototype.getGroups=function(){return this.getGroupManager().getGroups()},n.prototype.expandGroup=function(e){this.getGroupManager().expandGroup(e)},n.prototype.collapseGroup=function(e){this.getGroupManager().collapseGroup(e)},n.prototype.repaintGroup=function(e){this.getGroupManager().repaintGroup(e)},n.prototype.toggleGroup=function(e){e=this.getGroupManager().getGroup(e),null!=e&&this.getGroupManager()[e.collapsed?"expandGroup":"collapseGroup"](e)},n.prototype.getGroupManager=function(){var e=this[u];return null==e&&(e=this[u]=new S(this)),e},n.prototype.removeGroupManager=function(){delete this[u]},n.prototype.getGroupFor=function(e){if(e=this.getElement(e),e){var t=this.getContainer(),n=!1,i=null;while(!n)null==e||e===t?n=!0:e[c]?(i=e[c],e,n=!0):e=e.parentNode;return i}}}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumb,n=e.jsPlumbUtil,i="Straight",r="Arc",o=function(e){this.type="Flowchart",e=e||{},e.stub=null==e.stub?30:e.stub;var n,o=t.Connectors.AbstractConnector.apply(this,arguments),a=null==e.midpoint||isNaN(e.midpoint)?.5:e.midpoint,s=!0===e.alwaysRespectStubs,l=null,u=null,c=null!=e.cornerRadius?e.cornerRadius:0,d=(e.loopbackRadius,function(e){return e<0?-1:0===e?0:1}),h=function(e){return[d(e[2]-e[0]),d(e[3]-e[1])]},f=function(e,t,n,i){if(l!==t||u!==n){var r=null==l?i.sx:l,o=null==u?i.sy:u,a=r===t?"v":"h";l=t,u=n,e.push([r,o,t,n,a])}},p=function(e){return Math.sqrt(Math.pow(e[0]-e[2],2)+Math.pow(e[1]-e[3],2))},m=function(e){var t=[];return t.push.apply(t,e),t},v=function(e,t,n){for(var a,s,l,u=null,d=0;d<t.length-1;d++){if(u=u||m(t[d]),a=m(t[d+1]),s=h(u),l=h(a),c>0&&u[4]!==a[4]){var f=Math.min(p(u),p(a)),v=Math.min(c,f/2);u[2]-=s[0]*v,u[3]-=s[1]*v,a[0]+=l[0]*v,a[1]+=l[1]*v;var g=s[1]===l[0]&&1===l[0]||s[1]===l[0]&&0===l[0]&&s[0]!==l[1]||s[1]===l[0]&&-1===l[0],y=a[1]>u[3]?1:-1,b=a[0]>u[2]?1:-1,_=y===b,w=_&&g||!_&&!g?a[0]:u[2],x=_&&g||!_&&!g?u[3]:a[1];o.addSegment(e,i,{x1:u[0],y1:u[1],x2:u[2],y2:u[3]}),o.addSegment(e,r,{r:v,x1:u[2],y1:u[3],x2:a[0],y2:a[1],cx:w,cy:x,ac:g})}else{var k=u[2]===u[0]?0:u[2]>u[0]?n.lw/2:-n.lw/2,M=u[3]===u[1]?0:u[3]>u[1]?n.lw/2:-n.lw/2;o.addSegment(e,i,{x1:u[0]-k,y1:u[1]-M,x2:u[2]+k,y2:u[3]+M})}u=a}null!=a&&o.addSegment(e,i,{x1:a[0],y1:a[1],x2:a[2],y2:a[3]})};this.midpoint=a,this._compute=function(e,t){n=[],l=null,u=null,null;var i=function(){return[e.startStubX,e.startStubY,e.endStubX,e.endStubY]},r={perpendicular:i,orthogonal:i,opposite:function(t){var n=e,i="x"===t?0:1,r={x:function(){return 1===n.so[i]&&(n.startStubX>n.endStubX&&n.tx>n.startStubX||n.sx>n.endStubX&&n.tx>n.sx)||-1===n.so[i]&&(n.startStubX<n.endStubX&&n.tx<n.startStubX||n.sx<n.endStubX&&n.tx<n.sx)},y:function(){return 1===n.so[i]&&(n.startStubY>n.endStubY&&n.ty>n.startStubY||n.sy>n.endStubY&&n.ty>n.sy)||-1===n.so[i]&&(n.startStubY<n.endStubY&&n.ty<n.startStubY||n.sy<n.endStubY&&n.ty<n.sy)}};return!s&&r[t]()?{x:[(e.sx+e.tx)/2,e.startStubY,(e.sx+e.tx)/2,e.endStubY],y:[e.startStubX,(e.sy+e.ty)/2,e.endStubX,(e.sy+e.ty)/2]}[t]:[e.startStubX,e.startStubY,e.endStubX,e.endStubY]}},c=r[e.anchorOrientation](e.sourceAxis),d="x"===e.sourceAxis?0:1,h="x"===e.sourceAxis?1:0,p=c[d],m=c[h],g=c[d+2],y=c[h+2];f(n,c[0],c[1],e);var b=e.startStubX+(e.endStubX-e.startStubX)*a,_=e.startStubY+(e.endStubY-e.startStubY)*a,w={x:[0,1],y:[1,0]},x={perpendicular:function(t){var n=e,i={x:[[[1,2,3,4],null,[2,1,4,3]],null,[[4,3,2,1],null,[3,4,1,2]]],y:[[[3,2,1,4],null,[2,3,4,1]],null,[[4,1,2,3],null,[1,4,3,2]]]},r={x:[[n.startStubX,n.endStubX],null,[n.endStubX,n.startStubX]],y:[[n.startStubY,n.endStubY],null,[n.endStubY,n.startStubY]]},o={x:[[b,n.startStubY],[b,n.endStubY]],y:[[n.startStubX,_],[n.endStubX,_]]},a={x:[[n.endStubX,n.startStubY]],y:[[n.startStubX,n.endStubY]]},s={x:[[n.startStubX,n.endStubY],[n.endStubX,n.endStubY]],y:[[n.endStubX,n.startStubY],[n.endStubX,n.endStubY]]},l={x:[[n.startStubX,_],[n.endStubX,_],[n.endStubX,n.endStubY]],y:[[b,n.startStubY],[b,n.endStubY],[n.endStubX,n.endStubY]]},u={x:[n.startStubY,n.endStubY],y:[n.startStubX,n.endStubX]},c=w[t][0],d=w[t][1],h=n.so[c]+1,f=n.to[d]+1,p=-1===n.to[d]&&u[t][1]<u[t][0]||1===n.to[d]&&u[t][1]>u[t][0],m=r[t][h][0],v=r[t][h][1],g=i[t][h][f];return n.segment===g[3]||n.segment===g[2]&&p?o[t]:n.segment===g[2]&&v<m?a[t]:n.segment===g[2]&&v>=m||n.segment===g[1]&&!p?l[t]:n.segment===g[0]||n.segment===g[1]&&p?s[t]:void 0},orthogonal:function(t,n,i,r,o){var a=e,s={x:-1===a.so[0]?Math.min(n,r):Math.max(n,r),y:-1===a.so[1]?Math.min(n,r):Math.max(n,r)}[t];return{x:[[s,i],[s,o],[r,o]],y:[[i,s],[o,s],[o,r]]}[t]},opposite:function(n,i,r,a){var s=e,l={x:"y",y:"x"}[n],u={x:"height",y:"width"}[n],c=s["is"+n.toUpperCase()+"GreaterThanStubTimes2"];if(t.sourceEndpoint.elementId===t.targetEndpoint.elementId){var h=r+(1-t.sourceEndpoint.anchor[l])*t.sourceInfo[u]+o.maxStub;return{x:[[i,h],[a,h]],y:[[h,i],[h,a]]}[n]}return!c||1===s.so[d]&&i>a||-1===s.so[d]&&i<a?{x:[[i,_],[a,_]],y:[[b,i],[b,a]]}[n]:1===s.so[d]&&i<a||-1===s.so[d]&&i>a?{x:[[b,s.sy],[b,s.ty]],y:[[s.sx,_],[s.tx,_]]}[n]:void 0}},k=x[e.anchorOrientation](e.sourceAxis,p,m,g,y);if(k)for(var M=0;M<k.length;M++)f(n,k[M][0],k[M][1],e);f(n,c[2],c[3],e),f(n,e.tx,e.ty,e),v(this,n,e)}};t.Connectors.Flowchart=o,n.extend(t.Connectors.Flowchart,t.Connectors.AbstractConnector)}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumb,n=e.jsPlumbUtil;t.Connectors.AbstractBezierConnector=function(e){e=e||{};var n,i=!1!==e.showLoopback,r=(e.curviness,e.margin||5),o=(e.proximityLimit,e.orientation&&"clockwise"===e.orientation),a=e.loopbackRadius||25;return this._compute=function(e,t){var s=t.sourcePos,l=t.targetPos,u=Math.abs(s[0]-l[0]),c=Math.abs(s[1]-l[1]);if(i&&t.sourceEndpoint.elementId===t.targetEndpoint.elementId){!0;var d=t.sourcePos[0],h=t.sourcePos[1]-r,f=d,p=h-a,m=f-a,v=p-a;u=2*a,c=2*a,e.points[0]=m,e.points[1]=v,e.points[2]=u,e.points[3]=c,n.addSegment(this,"Arc",{loopback:!0,x1:d-m+4,y1:h-v,startAngle:0,endAngle:2*Math.PI,r:a,ac:!o,x2:d-m-4,y2:h-v,cx:f-m,cy:p-v})}else!1,this._computeBezier(e,t,s,l,u,c)},n=t.Connectors.AbstractConnector.apply(this,arguments),n},n.extend(t.Connectors.AbstractBezierConnector,t.Connectors.AbstractConnector);var i=function(e){e=e||{},this.type="Bezier";var n=t.Connectors.AbstractBezierConnector.apply(this,arguments),i=e.curviness||150,r=10;this.getCurviness=function(){return i},this._findControlPoint=function(e,t,n,o,a,s,l){var u=s[0]!==l[0]||s[1]===l[1],c=[];return u?(0===l[0]?c.push(n[0]<t[0]?e[0]+r:e[0]-r):c.push(e[0]+i*l[0]),0===l[1]?c.push(n[1]<t[1]?e[1]+r:e[1]-r):c.push(e[1]+i*s[1])):(0===s[0]?c.push(t[0]<n[0]?e[0]+r:e[0]-r):c.push(e[0]-i*s[0]),0===s[1]?c.push(t[1]<n[1]?e[1]+r:e[1]-r):c.push(e[1]+i*l[1])),c},this._computeBezier=function(e,t,i,r,o,a){var s,l,u=i[0]<r[0]?o:0,c=i[1]<r[1]?a:0,d=i[0]<r[0]?0:o,h=i[1]<r[1]?0:a;s=this._findControlPoint([u,c],i,r,t.sourceEndpoint,t.targetEndpoint,e.so,e.to),l=this._findControlPoint([d,h],r,i,t.targetEndpoint,t.sourceEndpoint,e.to,e.so),n.addSegment(this,"Bezier",{x1:u,y1:c,x2:d,y2:h,cp1x:s[0],cp1y:s[1],cp2x:l[0],cp2y:l[1]})}};t.Connectors.Bezier=i,n.extend(i,t.Connectors.AbstractBezierConnector)}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumb,n=e.jsPlumbUtil,i=function(e,t,n,i){return e<=n&&i<=t?1:e<=n&&t<=i?2:n<=e&&i>=t?3:4},r=function(e,t,n,i,r,o,a,s,l){return s<=l?[e,t]:1===n?i[3]<=0&&r[3]>=1?[e+(i[2]<.5?-1*o:o),t]:i[2]>=1&&r[2]<=0?[e,t+(i[3]<.5?-1*a:a)]:[e+-1*o,t+-1*a]:2===n?i[3]>=1&&r[3]<=0?[e+(i[2]<.5?-1*o:o),t]:i[2]>=1&&r[2]<=0?[e,t+(i[3]<.5?-1*a:a)]:[e+o,t+-1*a]:3===n?i[3]>=1&&r[3]<=0?[e+(i[2]<.5?-1*o:o),t]:i[2]<=0&&r[2]>=1?[e,t+(i[3]<.5?-1*a:a)]:[e+-1*o,t+-1*a]:4===n?i[3]<=0&&r[3]>=1?[e+(i[2]<.5?-1*o:o),t]:i[2]<=0&&r[2]>=1?[e,t+(i[3]<.5?-1*a:a)]:[e+o,t+-1*a]:void 0},o=function(e){e=e||{},this.type="StateMachine";var n,o=t.Connectors.AbstractBezierConnector.apply(this,arguments),a=e.curviness||10,s=e.margin||5,l=e.proximityLimit||80;e.orientation&&e.orientation;this._computeBezier=function(e,t,u,c,d,h){var f=t.sourcePos[0]<t.targetPos[0]?0:d,p=t.sourcePos[1]<t.targetPos[1]?0:h,m=t.sourcePos[0]<t.targetPos[0]?d:0,v=t.sourcePos[1]<t.targetPos[1]?h:0;0===t.sourcePos[2]&&(f-=s),1===t.sourcePos[2]&&(f+=s),0===t.sourcePos[3]&&(p-=s),1===t.sourcePos[3]&&(p+=s),0===t.targetPos[2]&&(m-=s),1===t.targetPos[2]&&(m+=s),0===t.targetPos[3]&&(v-=s),1===t.targetPos[3]&&(v+=s);var g,y,b,_,w=(f+m)/2,x=(p+v)/2,k=i(f,p,m,v),M=Math.sqrt(Math.pow(m-f,2)+Math.pow(v-p,2));n=r(w,x,k,t.sourcePos,t.targetPos,a,a,M,l),g=n[0],y=n[0],b=n[1],_=n[1],o.addSegment(this,"Bezier",{x1:m,y1:v,x2:f,y2:p,cp1x:g,cp1y:b,cp2x:y,cp2y:_})}};t.Connectors.StateMachine=o,n.extend(o,t.Connectors.AbstractBezierConnector)}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumb,n=e.jsPlumbUtil,i="Straight",r=function(e){this.type=i;var n=t.Connectors.AbstractConnector.apply(this,arguments);this._compute=function(e,t){n.addSegment(this,i,{x1:e.sx,y1:e.sy,x2:e.startStubX,y2:e.startStubY}),n.addSegment(this,i,{x1:e.startStubX,y1:e.startStubY,x2:e.endStubX,y2:e.endStubY}),n.addSegment(this,i,{x1:e.endStubX,y1:e.endStubY,x2:e.tx,y2:e.ty})}};t.Connectors.Straight=r,n.extend(r,t.Connectors.AbstractConnector)}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumb,n=e.jsPlumbUtil,i={"stroke-linejoin":"stroke-linejoin","stroke-dashoffset":"stroke-dashoffset","stroke-linecap":"stroke-linecap"},r="stroke-dasharray",o="dashstyle",a="linearGradient",s="radialGradient",l="defs",u="fill",c="stop",d="stroke",h="stroke-width",f="style",p="none",m="jsplumb_gradient_",v="strokeWidth",g={svg:"http://www.w3.org/2000/svg"},y=function(e,t){for(var n in t)e.setAttribute(n,""+t[n])},b=function(e,n){return n=n||{},n.version="1.1",n.xmlns=g.svg,t.createElementNS(g.svg,e,null,null,n)},_=function(e){return"position:absolute;left:"+e[0]+"px;top:"+e[1]+"px"},w=function(e){for(var t=e.querySelectorAll(" defs,linearGradient,radialGradient"),n=0;n<t.length;n++)t[n].parentNode.removeChild(t[n])},x=function(e,t,n,i,r){var o,h=m+r._jsPlumb.instance.idstamp();w(e),o=n.gradient.offset?b(s,{id:h}):b(a,{id:h,gradientUnits:"userSpaceOnUse"});var f=b(l);e.appendChild(f),f.appendChild(o);for(var p=0;p<n.gradient.stops.length;p++){var v=1===r.segment||2===r.segment?p:n.gradient.stops.length-1-p,g=n.gradient.stops[v][1],y=b(c,{offset:Math.floor(100*n.gradient.stops[p][0])+"%","stop-color":g});o.appendChild(y)}var _=n.stroke?d:u;t.setAttribute(_,"url(#"+h+")")},k=function(e,t,n,a,s){if(t.setAttribute(u,n.fill?n.fill:p),t.setAttribute(d,n.stroke?n.stroke:p),n.gradient?x(e,t,n,a,s):(w(e),t.setAttribute(f,"")),n.strokeWidth&&t.setAttribute(h,n.strokeWidth),n[o]&&n[v]&&!n[r]){var l=-1===n[o].indexOf(",")?" ":",",c=n[o].split(l),m="";c.forEach((function(e){m+=Math.floor(e*n.strokeWidth)+l})),t.setAttribute(r,m)}else n[r]&&t.setAttribute(r,n[r]);for(var g in i)n[g]&&t.setAttribute(i[g],n[g])},M=function(e,t,n){e.childNodes.length>n?e.insertBefore(t,e.childNodes[n]):e.appendChild(t)};n.svg={node:b,attr:y,pos:_};var S=function(e){var i=e.pointerEventsSpec||"all",r={};t.jsPlumbUIComponent.apply(this,e.originalArgs),this.canvas=null,this.path=null,this.svg=null,this.bgCanvas=null;var o=e.cssClass+" "+(e.originalArgs[0].cssClass||""),a={style:"",width:0,height:0,"pointer-events":i,position:"absolute"};this.svg=b("svg",a),e.useDivWrapper?(this.canvas=t.createElement("div",{position:"absolute"}),n.sizeElement(this.canvas,0,0,1,1),this.canvas.className=o):(y(this.svg,{class:o}),this.canvas=this.svg),e._jsPlumb.appendElement(this.canvas,e.originalArgs[0].parent),e.useDivWrapper&&this.canvas.appendChild(this.svg);var s=[this.canvas];return this.getDisplayElements=function(){return s},this.appendDisplayElement=function(e){s.push(e)},this.paint=function(t,i,o){if(null!=t){var a,s=[this.x,this.y],l=[this.w,this.h];null!=o&&(o.xmin<0&&(s[0]+=o.xmin),o.ymin<0&&(s[1]+=o.ymin),l[0]=o.xmax+(o.xmin<0?-o.xmin:0),l[1]=o.ymax+(o.ymin<0?-o.ymin:0)),e.useDivWrapper?(n.sizeElement(this.canvas,s[0],s[1],l[0]>0?l[0]:1,l[1]>0?l[1]:1),s[0]=0,s[1]=0,a=_([0,0])):a=_([s[0],s[1]]),r.paint.apply(this,arguments),y(this.svg,{style:a,width:l[0]||1,height:l[1]||1})}},{renderer:r}};n.extend(S,t.jsPlumbUIComponent,{cleanup:function(e){e||null==this.typeId?(this.canvas&&(this.canvas._jsPlumb=null),this.svg&&(this.svg._jsPlumb=null),this.bgCanvas&&(this.bgCanvas._jsPlumb=null),this.canvas&&this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.bgCanvas&&this.bgCanvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.svg=null,this.canvas=null,this.path=null,this.group=null,this._jsPlumb=null):(this.canvas&&this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.bgCanvas&&this.bgCanvas.parentNode&&this.bgCanvas.parentNode.removeChild(this.bgCanvas))},reattach:function(e){var t=e.getContainer();this.canvas&&null==this.canvas.parentNode&&t.appendChild(this.canvas),this.bgCanvas&&null==this.bgCanvas.parentNode&&t.appendChild(this.bgCanvas)},setVisible:function(e){this.canvas&&(this.canvas.style.display=e?"block":"none")}}),t.ConnectorRenderers.svg=function(e){var n=this,i=S.apply(this,[{cssClass:e._jsPlumb.connectorClass,originalArgs:arguments,pointerEventsSpec:"none",_jsPlumb:e._jsPlumb}]);i.renderer.paint=function(i,r,o){var a=n.getSegments(),s="",l=[0,0];if(o.xmin<0&&(l[0]=-o.xmin),o.ymin<0&&(l[1]=-o.ymin),a.length>0){s=n.getPathData();var u={d:s,transform:"translate("+l[0]+","+l[1]+")","pointer-events":e["pointer-events"]||"visibleStroke"},c=null,d=[n.x,n.y,n.w,n.h];if(i.outlineStroke){var h=i.outlineWidth||1,f=i.strokeWidth+2*h;c=t.extend({},i),delete c.gradient,c.stroke=i.outlineStroke,c.strokeWidth=f,null==n.bgPath?(n.bgPath=b("path",u),t.addClass(n.bgPath,t.connectorOutlineClass),M(n.svg,n.bgPath,0)):y(n.bgPath,u),k(n.svg,n.bgPath,c,d,n)}null==n.path?(n.path=b("path",u),M(n.svg,n.path,i.outlineStroke?1:0)):y(n.path,u),k(n.svg,n.path,i,d,n)}}},n.extend(t.ConnectorRenderers.svg,S);var C=t.SvgEndpoint=function(e){var n=S.apply(this,[{cssClass:e._jsPlumb.endpointClass,originalArgs:arguments,pointerEventsSpec:"all",useDivWrapper:!0,_jsPlumb:e._jsPlumb}]);n.renderer.paint=function(e){var n=t.extend({},e);n.outlineStroke&&(n.stroke=n.outlineStroke),null==this.node?(this.node=this.makeNode(n),this.svg.appendChild(this.node)):null!=this.updateNode&&this.updateNode(this.node),k(this.svg,this.node,n,[this.x,this.y,this.w,this.h],this),_(this.node,[this.x,this.y])}.bind(this)};n.extend(C,S),t.Endpoints.svg.Dot=function(){t.Endpoints.Dot.apply(this,arguments),C.apply(this,arguments),this.makeNode=function(e){return b("circle",{cx:this.w/2,cy:this.h/2,r:this.radius})},this.updateNode=function(e){y(e,{cx:this.w/2,cy:this.h/2,r:this.radius})}},n.extend(t.Endpoints.svg.Dot,[t.Endpoints.Dot,C]),t.Endpoints.svg.Rectangle=function(){t.Endpoints.Rectangle.apply(this,arguments),C.apply(this,arguments),this.makeNode=function(e){return b("rect",{width:this.w,height:this.h})},this.updateNode=function(e){y(e,{width:this.w,height:this.h})}},n.extend(t.Endpoints.svg.Rectangle,[t.Endpoints.Rectangle,C]),t.Endpoints.svg.Image=t.Endpoints.Image,t.Endpoints.svg.Blank=t.Endpoints.Blank,t.Overlays.svg.Label=t.Overlays.Label,t.Overlays.svg.Custom=t.Overlays.Custom;var D=function(e,n){e.apply(this,n),t.jsPlumbUIComponent.apply(this,n),this.isAppendedAtTopLevel=!1;this.path=null,this.paint=function(e,t){if(e.component.svg&&t){null==this.path&&(this.path=b("path",{"pointer-events":"all"}),e.component.svg.appendChild(this.path),this.elementCreated&&this.elementCreated(this.path,e.component),this.canvas=e.component.svg);var r=n&&1===n.length&&n[0].cssClass||"",o=[0,0];t.xmin<0&&(o[0]=-t.xmin),t.ymin<0&&(o[1]=-t.ymin),y(this.path,{d:i(e.d),class:r,stroke:e.stroke?e.stroke:null,fill:e.fill?e.fill:null,transform:"translate("+o[0]+","+o[1]+")"})}};var i=function(e){return isNaN(e.cxy.x)||isNaN(e.cxy.y)?"":"M"+e.hxy.x+","+e.hxy.y+" L"+e.tail[0].x+","+e.tail[0].y+" L"+e.cxy.x+","+e.cxy.y+" L"+e.tail[1].x+","+e.tail[1].y+" L"+e.hxy.x+","+e.hxy.y};this.transfer=function(e){e.canvas&&this.path&&this.path.parentNode&&(this.path.parentNode.removeChild(this.path),e.canvas.appendChild(this.path))}},L={cleanup:function(e){null!=this.path&&(e?this._jsPlumb.instance.removeElement(this.path):this.path.parentNode&&this.path.parentNode.removeChild(this.path))},reattach:function(e,t){this.path&&t.canvas&&t.canvas.appendChild(this.path)},setVisible:function(e){null!=this.path&&(this.path.style.display=e?"block":"none")}};n.extend(D,[t.jsPlumbUIComponent,t.Overlays.AbstractOverlay]),t.Overlays.svg.Arrow=function(){D.apply(this,[t.Overlays.Arrow,arguments])},n.extend(t.Overlays.svg.Arrow,[t.Overlays.Arrow,D],L),t.Overlays.svg.PlainArrow=function(){D.apply(this,[t.Overlays.PlainArrow,arguments])},n.extend(t.Overlays.svg.PlainArrow,[t.Overlays.PlainArrow,D],L),t.Overlays.svg.Diamond=function(){D.apply(this,[t.Overlays.Diamond,arguments])},n.extend(t.Overlays.svg.Diamond,[t.Overlays.Diamond,D],L),t.Overlays.svg.GuideLines=function(){var e,n,i=null,r=this;t.Overlays.GuideLines.apply(this,arguments),this.paint=function(t,a){null==i&&(i=b("path"),t.connector.svg.appendChild(i),r.attachListeners(i,t.connector),r.attachListeners(i,r),e=b("path"),t.connector.svg.appendChild(e),r.attachListeners(e,t.connector),r.attachListeners(e,r),n=b("path"),t.connector.svg.appendChild(n),r.attachListeners(n,t.connector),r.attachListeners(n,r));var s=[0,0];a.xmin<0&&(s[0]=-a.xmin),a.ymin<0&&(s[1]=-a.ymin),y(i,{d:o(t.head,t.tail),stroke:"red",fill:null,transform:"translate("+s[0]+","+s[1]+")"}),y(e,{d:o(t.tailLine[0],t.tailLine[1]),stroke:"blue",fill:null,transform:"translate("+s[0]+","+s[1]+")"}),y(n,{d:o(t.headLine[0],t.headLine[1]),stroke:"green",fill:null,transform:"translate("+s[0]+","+s[1]+")"})};var o=function(e,t){return"M "+e.x+","+e.y+" L"+t.x+","+t.y}},n.extend(t.Overlays.svg.GuideLines,t.Overlays.GuideLines)}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumb,n=e.jsPlumbUtil,i=e.Katavorio,r=e.Biltong,o=function(t){var n=t._mottle;return n||(n=t._mottle=new e.Mottle),n},a=function(e,n){n=n||"main";var o="_katavorio_"+n,a=e[o],s=e.getEventManager();return a||(a=new i({bind:s.on,unbind:s.off,getSize:t.getSize,getConstrainingRectangle:function(e){return[e.parentNode.scrollWidth,e.parentNode.scrollHeight]},getPosition:function(t,n){var i=e.getOffset(t,n,t._katavorioDrag?t.offsetParent:null);return[i.left,i.top]},setPosition:function(e,t){e.style.left=t[0]+"px",e.style.top=t[1]+"px"},addClass:t.addClass,removeClass:t.removeClass,intersects:r.intersects,indexOf:function(e,t){return e.indexOf(t)},scope:e.getDefaultScope(),css:{noSelect:e.dragSelectClass,droppable:"jtk-droppable",draggable:"jtk-draggable",drag:"jtk-drag",selected:"jtk-drag-selected",active:"jtk-drag-active",hover:"jtk-drag-hover",ghostProxy:"jtk-ghost-proxy"}}),a.setZoom(e.getZoom()),e[o]=a,e.bind("zoom",a.setZoom)),a},s=function(e){var t=e.el._jsPlumbDragOptions,n=!0;return t.canDrag&&(n=t.canDrag()),n&&(this.setHoverSuspended(!0),this.select({source:e.el}).addClass(this.elementDraggingClass+" "+this.sourceElementDraggingClass,!0),this.select({target:e.el}).addClass(this.elementDraggingClass+" "+this.targetElementDraggingClass,!0),this.setConnectionBeingDragged(!0)),n},l=function(e){var t=this.getUIPosition(arguments,this.getZoom());if(null!=t){var n=e.el._jsPlumbDragOptions;this.draw(e.el,t,null,!0),n._dragging&&this.addClass(e.el,"jtk-dragged"),n._dragging=!0}},u=function(e){for(var t,n=e.selection,i=function(n){var i;null!=n[1]&&(t=this.getUIPosition([{el:n[2].el,pos:[n[1].left,n[1].top]}]),i=this.draw(n[2].el,t)),null!=n[0]._jsPlumbDragOptions&&delete n[0]._jsPlumbDragOptions._dragging,this.removeClass(n[0],"jtk-dragged"),this.select({source:n[2].el}).removeClass(this.elementDraggingClass+" "+this.sourceElementDraggingClass,!0),this.select({target:n[2].el}).removeClass(this.elementDraggingClass+" "+this.targetElementDraggingClass,!0),e.e._drawResult=e.e._drawResult||{c:[],e:[],a:[]},Array.prototype.push.apply(e.e._drawResult.c,i.c),Array.prototype.push.apply(e.e._drawResult.e,i.e),Array.prototype.push.apply(e.e._drawResult.a,i.a),this.getDragManager().dragEnded(n[2].el)}.bind(this),r=0;r<n.length;r++)i(n[r]);this.setHoverSuspended(!1),this.setConnectionBeingDragged(!1)},c=function(e,t){var i=function(i){if(null!=t[i]){if(n.isString(t[i])){var r=t[i].match(/-=/)?-1:1,o=t[i].substring(2);return e[i]+r*o}return t[i]}return e[i]};return[i("left"),i("top")]},d=function(e,t){if(null==t)return[0,0];var n=v(t),i=m(n,0);return[i[e+"X"],i[e+"Y"]]},h=d.bind(this,"page"),f=d.bind(this,"screen"),p=d.bind(this,"client"),m=function(e,t){return e.item?e.item(t):e[t]},v=function(e){return e.touches&&e.touches.length>0?e.touches:e.changedTouches&&e.changedTouches.length>0?e.changedTouches:e.targetTouches&&e.targetTouches.length>0?e.targetTouches:[e]},g=function(e){var t={},n=[],i={},r={},o={};this.register=function(a){var s,l=e.getId(a);t[l]||(t[l]=a,n.push(a),i[l]={});var u=function(t){if(t)for(var n=0;n<t.childNodes.length;n++)if(3!==t.childNodes[n].nodeType&&8!==t.childNodes[n].nodeType){var c=jsPlumb.getElement(t.childNodes[n]),d=e.getId(t.childNodes[n],null,!0);if(d&&r[d]&&r[d]>0){s||(s=e.getOffset(a));var h=e.getOffset(c);i[l][d]={id:d,offset:{left:h.left-s.left,top:h.top-s.top}},o[d]=l}u(t.childNodes[n])}};u(a)},this.updateOffsets=function(t,n){if(null!=t){n=n||{};var r,a=jsPlumb.getElement(t),s=e.getId(a),l=i[s];if(l)for(var u in l)if(l.hasOwnProperty(u)){var c=jsPlumb.getElement(u),d=n[u]||e.getOffset(c);if(null==c.offsetParent&&null!=i[s][u])continue;r||(r=e.getOffset(a)),i[s][u]={id:u,offset:{left:d.left-r.left,top:d.top-r.top}},o[u]=s}}},this.endpointAdded=function(n,a){a=a||e.getId(n);var s=document.body,l=n.parentNode;r[a]=r[a]?r[a]+1:1;while(null!=l&&l!==s){var u=e.getId(l,null,!0);if(u&&t[u]){var c=e.getOffset(l);if(null==i[u][a]){var d=e.getOffset(n);i[u][a]={id:a,offset:{left:d.left-c.left,top:d.top-c.top}},o[a]=u}break}l=l.parentNode}},this.endpointDeleted=function(e){if(r[e.elementId]&&(r[e.elementId]--,r[e.elementId]<=0))for(var t in i)i.hasOwnProperty(t)&&i[t]&&(delete i[t][e.elementId],delete o[e.elementId])},this.changeId=function(e,t){i[t]=i[e],i[e]={},o[t]=o[e],o[e]=null},this.getElementsForDraggable=function(e){return i[e]},this.elementRemoved=function(e){var t=o[e];t&&(i[t]&&delete i[t][e],delete o[e])},this.reset=function(){t={},n=[],i={},r={}},this.dragEnded=function(t){if(null!=t.offsetParent){var n=e.getId(t),i=o[n];i&&this.updateOffsets(i)}},this.setParent=function(t,n,r,a,s){var l=o[n];i[a]||(i[a]={});var u=e.getOffset(r),c=s||e.getOffset(t);l&&i[l]&&delete i[l][n],i[a][n]={id:n,offset:{left:c.left-u.left,top:c.top-u.top}},o[n]=a},this.clearParent=function(e,t){var n=o[t];n&&(delete i[n][t],delete o[t])},this.revalidateParent=function(t,n,i){var r=o[n];if(r){var a={};a[n]=i,this.updateOffsets(r,a),e.revalidate(r)}},this.getDragAncestor=function(t){var n=jsPlumb.getElement(t),i=e.getId(n),r=o[i];return r?jsPlumb.getElement(r):null}},y=function(e,t,i){t=n.fastTrim(t),"undefined"!==typeof e.className.baseVal?e.className.baseVal=t:e.className=t;try{var r=e.classList;if(null!=r){while(r.length>0)r.remove(r.item(0));for(var o=0;o<i.length;o++)i[o]&&r.add(i[o])}}catch(a){n.log("JSPLUMB: cannot set class list",a)}},b=function(e){return"undefined"===typeof e.className.baseVal?e.className:e.className.baseVal},_=function(e,t,i){t=null==t?[]:n.isArray(t)?t:t.split(/\s+/),i=null==i?[]:n.isArray(i)?i:i.split(/\s+/);var r=b(e),o=r.split(/\s+/),a=function(e,t){for(var n=0;n<t.length;n++)if(e)-1===o.indexOf(t[n])&&o.push(t[n]);else{var i=o.indexOf(t[n]);-1!==i&&o.splice(i,1)}};a(!0,t),a(!1,i),y(e,o.join(" "),o)};e.jsPlumb.extend(e.jsPlumbInstance.prototype,{headless:!1,pageLocation:h,screenLocation:f,clientLocation:p,getDragManager:function(){return null==this.dragManager&&(this.dragManager=new g(this)),this.dragManager},recalculateOffsets:function(e){this.getDragManager().updateOffsets(e)},createElement:function(e,t,n,i){return this.createElementNS(null,e,t,n,i)},createElementNS:function(e,t,n,i,r){var o,a=null==e?document.createElement(t):document.createElementNS(e,t);for(o in n=n||{},n)a.style[o]=n[o];for(o in i&&(a.className=i),r=r||{},r)a.setAttribute(o,""+r[o]);return a},getAttribute:function(e,t){return null!=e.getAttribute?e.getAttribute(t):null},setAttribute:function(e,t,n){null!=e.setAttribute&&e.setAttribute(t,n)},setAttributes:function(e,t){for(var n in t)t.hasOwnProperty(n)&&e.setAttribute(n,t[n])},appendToRoot:function(e){document.body.appendChild(e)},getRenderModes:function(){return["svg"]},getClass:b,addClass:function(e,t){jsPlumb.each(e,(function(e){_(e,t)}))},hasClass:function(e,t){return e=jsPlumb.getElement(e),e.classList?e.classList.contains(t):-1!==b(e).indexOf(t)},removeClass:function(e,t){jsPlumb.each(e,(function(e){_(e,null,t)}))},toggleClass:function(e,t){jsPlumb.hasClass(e,t)?jsPlumb.removeClass(e,t):jsPlumb.addClass(e,t)},updateClasses:function(e,t,n){jsPlumb.each(e,(function(e){_(e,t,n)}))},setClass:function(e,t){null!=t&&jsPlumb.each(e,(function(e){y(e,t,t.split(/\s+/))}))},setPosition:function(e,t){e.style.left=t.left+"px",e.style.top=t.top+"px"},getPosition:function(e){var t=function(t){var n=e.style[t];return n?n.substring(0,n.length-2):0};return{left:t("left"),top:t("top")}},getStyle:function(e,t){return"undefined"!==typeof window.getComputedStyle?getComputedStyle(e,null).getPropertyValue(t):e.currentStyle[t]},getSelector:function(e,t){var n=null;return n=1===arguments.length?null!=e.nodeType?e:document.querySelectorAll(e):e.querySelectorAll(t),n},getOffset:function(e,t,n){e=jsPlumb.getElement(e),n=n||this.getContainer();var i={left:e.offsetLeft,top:e.offsetTop},r=t||null!=n&&e!==n&&e.offsetParent!==n?e.offsetParent:null,o=function(e){null!=e&&e!==document.body&&(e.scrollTop>0||e.scrollLeft>0)&&(i.left-=e.scrollLeft,i.top-=e.scrollTop)}.bind(this);while(null!=r)i.left+=r.offsetLeft,i.top+=r.offsetTop,o(r),r=t?r.offsetParent:r.offsetParent===n?null:r.offsetParent;if(null!=n&&!t&&(n.scrollTop>0||n.scrollLeft>0)){var a=null!=e.offsetParent?this.getStyle(e.offsetParent,"position"):"static",s=this.getStyle(e,"position");"absolute"!==s&&"fixed"!==s&&"absolute"!==a&&"fixed"!==a&&(i.left-=n.scrollLeft,i.top-=n.scrollTop)}return i},getPositionOnElement:function(e,t,n){var i="undefined"!==typeof t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0,width:0,height:0},r=document.body,o=document.documentElement,a=window.pageYOffset||o.scrollTop||r.scrollTop,s=window.pageXOffset||o.scrollLeft||r.scrollLeft,l=o.clientTop||r.clientTop||0,u=o.clientLeft||r.clientLeft||0,c=0,d=0,h=i.top+a-l+c*n,f=i.left+s-u+d*n,p=jsPlumb.pageLocation(e),m=i.width||t.offsetWidth*n,v=i.height||t.offsetHeight*n,g=(p[0]-f)/m,y=(p[1]-h)/v;return[g,y]},getAbsolutePosition:function(e){var t=function(t){var n=e.style[t];if(n)return parseFloat(n.substring(0,n.length-2))};return[t("left"),t("top")]},setAbsolutePosition:function(e,t,n,i){n?this.animate(e,{left:"+="+(t[0]-n[0]),top:"+="+(t[1]-n[1])},i):(e.style.left=t[0]+"px",e.style.top=t[1]+"px")},getSize:function(e){return[e.offsetWidth,e.offsetHeight]},getWidth:function(e){return e.offsetWidth},getHeight:function(e){return e.offsetHeight},getRenderMode:function(){return"svg"},draggable:function(e,t){var i;return e=n.isArray(e)||null!=e.length&&!n.isString(e)?e:[e],Array.prototype.slice.call(e).forEach(function(e){i=this.info(e),i.el&&this._initDraggableIfNecessary(i.el,!0,t,i.id,!0)}.bind(this)),this},snapToGrid:function(e,t,n){var i=[],r=function(e){var r=this.info(e);if(null!=r.el&&r.el._katavorioDrag){var o=r.el._katavorioDrag.snap(t,n);this.revalidate(r.el),i.push([r.el,o])}}.bind(this);if(1===arguments.length||3===arguments.length)r(e,t,n);else{var o=this.getManagedElements();for(var a in o)r(a,arguments[0],arguments[1])}return i},initDraggable:function(e,t,n){a(this,n).draggable(e,t),e._jsPlumbDragOptions=t},destroyDraggable:function(e,t){a(this,t).destroyDraggable(e),e._jsPlumbDragOptions=null,e._jsPlumbRelatedElement=null},unbindDraggable:function(e,t,n,i){a(this,i).destroyDraggable(e,t,n)},setDraggable:function(e,t){return jsPlumb.each(e,function(e){this.isDragSupported(e)&&(this._draggableStates[this.getAttribute(e,"id")]=t,this.setElementDraggable(e,t))}.bind(this))},_draggableStates:{},toggleDraggable:function(e){var t;return jsPlumb.each(e,function(e){var n=this.getAttribute(e,"id");return t=null!=this._draggableStates[n]&&this._draggableStates[n],t=!t,this._draggableStates[n]=t,this.setDraggable(e,t),t}.bind(this)),t},_initDraggableIfNecessary:function(e,t,i,r,o){if(!jsPlumb.headless){var a=null!=t&&t;if(a&&jsPlumb.isDragSupported(e,this)){var c=i||this.Defaults.DragOptions;if(c=jsPlumb.extend({},c),jsPlumb.isAlreadyDraggable(e,this))i.force&&this.initDraggable(e,c);else{var d=jsPlumb.dragEvents.drag,h=jsPlumb.dragEvents.stop,f=jsPlumb.dragEvents.start;this.manage(r,e),c[f]=n.wrap(c[f],s.bind(this)),c[d]=n.wrap(c[d],l.bind(this)),c[h]=n.wrap(c[h],u.bind(this));var p=this.getId(e);this._draggableStates[p]=!0;var m=this._draggableStates[p];c.disabled=null!=m&&!m,this.initDraggable(e,c),this.getDragManager().register(e),o&&this.fire("elementDraggable",{el:e,options:c})}}}},animationSupported:!0,getElement:function(e){return null==e?null:(e="string"===typeof e?e:null==e.tagName&&null!=e.length&&null==e.enctype?e[0]:e,"string"===typeof e?document.getElementById(e):e)},removeElement:function(e){a(this).elementRemoved(e),this.getEventManager().remove(e)},doAnimate:function(e,n,i){i=i||{};var r=this.getOffset(e),o=c(r,n),a=o[0]-r.left,s=o[1]-r.top,l=i.duration||250,u=15,d=l/u,h=u/l*a,f=u/l*s,p=0,m=setInterval((function(){t.setPosition(e,{left:r.left+h*(p+1),top:r.top+f*(p+1)}),null!=i.step&&i.step(p,Math.ceil(d)),p++,p>=d&&(window.clearInterval(m),null!=i.complete&&i.complete())}),u)},destroyDroppable:function(e,t){a(this,t).destroyDroppable(e)},unbindDroppable:function(e,t,n,i){a(this,i).destroyDroppable(e,t,n)},droppable:function(e,t){var i;return e=n.isArray(e)||null!=e.length&&!n.isString(e)?e:[e],t=t||{},t.allowLoopback=!1,Array.prototype.slice.call(e).forEach(function(e){i=this.info(e),i.el&&this.initDroppable(i.el,t)}.bind(this)),this},initDroppable:function(e,t,n){a(this,n).droppable(e,t)},isAlreadyDraggable:function(e){return null!=e._katavorioDrag},isDragSupported:function(e,t){return!0},isDropSupported:function(e,t){return!0},isElementDraggable:function(e){return e=t.getElement(e),e._katavorioDrag&&e._katavorioDrag.isEnabled()},getDragObject:function(e){return e[0].drag.getDragElement()},getDragScope:function(e){return e._katavorioDrag&&e._katavorioDrag.scopes.join(" ")||""},getDropEvent:function(e){return e[0].e},getUIPosition:function(e,t){var n=e[0].el;if(null==n.offsetParent)return null;var i=e[0].finalPos||e[0].pos,r={left:i[0],top:i[1]};if(n._katavorioDrag&&n.offsetParent!==this.getContainer()){var o=this.getOffset(n.offsetParent);r.left+=o.left,r.top+=o.top}return r},setDragFilter:function(e,t,n){e._katavorioDrag&&e._katavorioDrag.setFilter(t,n)},setElementDraggable:function(e,n){e=t.getElement(e),e._katavorioDrag&&e._katavorioDrag.setEnabled(n)},setDragScope:function(e,t){e._katavorioDrag&&e._katavorioDrag.k.setDragScope(e,t)},setDropScope:function(e,t){e._katavorioDrop&&e._katavorioDrop.length>0&&e._katavorioDrop[0].k.setDropScope(e,t)},addToPosse:function(e,n){var i=Array.prototype.slice.call(arguments,1),r=a(this);t.each(e,(function(e){e=[t.getElement(e)],e.push.apply(e,i),r.addToPosse.apply(r,e)}))},setPosse:function(e,n){var i=Array.prototype.slice.call(arguments,1),r=a(this);t.each(e,(function(e){e=[t.getElement(e)],e.push.apply(e,i),r.setPosse.apply(r,e)}))},removeFromPosse:function(e,n){var i=Array.prototype.slice.call(arguments,1),r=a(this);t.each(e,(function(e){e=[t.getElement(e)],e.push.apply(e,i),r.removeFromPosse.apply(r,e)}))},removeFromAllPosses:function(e){var n=a(this);t.each(e,(function(e){n.removeFromAllPosses(t.getElement(e))}))},setPosseState:function(e,n,i){var r=a(this);t.each(e,(function(e){r.setPosseState(t.getElement(e),n,i)}))},dragEvents:{start:"start",stop:"stop",drag:"drag",step:"step",over:"over",out:"out",drop:"drop",complete:"complete",beforeStart:"beforeStart"},animEvents:{step:"step",complete:"complete"},stopDrag:function(e){e._katavorioDrag&&e._katavorioDrag.abort()},addToDragSelection:function(e){var t=this.getElement(e);null==t||!t._isJsPlumbGroup&&null!=t._jsPlumbGroup||a(this).select(e)},removeFromDragSelection:function(e){a(this).deselect(e)},getDragSelection:function(){return a(this).getSelection()},clearDragSelection:function(){a(this).deselectAll()},trigger:function(e,t,n,i){this.getEventManager().trigger(e,t,n,i)},doReset:function(){for(var e in this)0===e.indexOf("_katavorio_")&&this[e].reset()},getEventManager:function(){return o(this)},on:function(e,t,n){return this.getEventManager().on.apply(this,arguments),this},off:function(e,t,n){return this.getEventManager().off.apply(this,arguments),this}});var w=function(e){var t=function(){/complete|loaded|interactive/.test(document.readyState)&&"undefined"!==typeof document.body&&null!=document.body?e():setTimeout(t,9)};t()};w(t.init)}.call("undefined"!==typeof window?window:this)},"47ac":function(e,t,n){var i=n("5454");t=e.exports=n("690e")(!1),t.push([e.i,".right-plan{overflow-y:auto}.process-heard{padding:10px 20px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.process-heard .el-icon-edit{cursor:pointer}.process-heard .process-title{font-size:18px;margin-right:10px}#flowContainer{height:10000px;position:relative;overflow:auto;height:calc(100vh - 144px)}.container-process{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.labelClass{background-color:#fff;padding:5px;opacity:.7;border:1px solid #346789;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.aLabel{width:30px;height:30px;margin-top:25px;background:url("+i(n("4348"))+") 50% no-repeat;cursor:pointer}.switch{display:inline-block;margin-right:30px}.switch>span{margin-right:10px}.add-condition{color:#66a6e0;font-size:14px;text-align:center;padding:10px 0;border:1px solid #66a6e0;cursor:pointer;position:absolute;width:200px}.condition-container{display:-webkit-box;display:-ms-flexbox;display:flex}.condition-item{margin:30px;padding:20px}.gray-background-class{background-color:#f4f4f8}",""])},"488b":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"4a84":function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
109
109
  //! moment.js locale configuration
110
- var t=e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}});return t}))},"4a92":function(e,t,n){e.exports=!n("5e9e")&&!n("99fe")((function(){return 7!=Object.defineProperty(n("e7e0")("div"),"a",{get:function(){return 7}}).a}))},"4b7b":function(e,t,n){var i=n("c903"),r=i.match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},"4b9f":function(e,t,n){var i=n("3c75"),r=n("69ac");e.exports=Object.keys||function(e){return i(e,r)}},"4c16":function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
110
+ var t=e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}});return t}))},"4a92":function(e,t,n){e.exports=!n("5e9e")&&!n("99fe")((function(){return 7!=Object.defineProperty(n("e7e0")("div"),"a",{get:function(){return 7}}).a}))},"4b7b":function(e,t,n){var i=n("c903"),r=i.match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},"4b9f":function(e,t,n){var i=n("3c75"),r=n("69ac");e.exports=Object.keys||function(e){return i(e,r)}},"4bef":function(e,t,n){var i=n("d02c");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("5925").default;r("5efba282",i,!0,{sourceMap:!1,shadowMode:!1})},"4c16":function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
111
111
  //! moment.js locale configuration
112
112
  var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"],i=e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}});return i}))},"4c39":function(e,t){var n,i,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}function l(e){if(i===clearTimeout)return clearTimeout(e);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{return i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(function(){try{n="function"===typeof setTimeout?setTimeout:o}catch(e){n=o}try{i="function"===typeof clearTimeout?clearTimeout:a}catch(e){i=a}})();var u,c=[],d=!1,h=-1;function f(){d&&u&&(d=!1,u.length?c=u.concat(c):h=-1,c.length&&p())}function p(){if(!d){var e=s(f);d=!0;var t=c.length;while(t){u=c,c=[];while(++h<t)u&&u[h].run();h=-1,t=c.length}u=null,d=!1,l(e)}}function m(e,t){this.fun=e,this.array=t}function v(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new m(e,t)),1!==c.length||d||s(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=v,r.addListener=v,r.once=v,r.off=v,r.removeListener=v,r.removeAllListeners=v,r.emit=v,r.prependListener=v,r.prependOnceListener=v,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},"4e6a":function(e,t,n){var i=n("ce99"),r=n("a4cf"),o="__core-js_shared__",a=r[o]||(r[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n("bf84")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"4e84":function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
113
113
  //! moment.js locale configuration
@@ -131,7 +131,7 @@ var t=e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_augus
131
131
  //! moment.js locale configuration
132
132
  var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var r=t.words[i];return 1===i.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}},n=e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var e=["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},6239:function(e,t,n){n("8af7")("asyncIterator")},6305:function(e,t,n){t=e.exports=n("690e")(!1),t.push([e.i,'.from[data-v-45838bc0]{overflow:hidden;margin-bottom:20px}.from .fromitem[data-v-45838bc0]{float:left;margin-right:20px}.from .fromitem span[data-v-45838bc0]{text-align:right;vertical-align:middle;font-size:14px;color:#606266;line-height:40px;padding:0 12px 0 0;-webkit-box-sizing:border-box;box-sizing:border-box}.talent-box[data-v-45838bc0]{padding:15px 20px 20px}.talent-box .title[data-v-45838bc0]{font-size:18px;font-weight:400;margin-bottom:15px}.offer-root[data-v-45838bc0]{color:#666}.offer-root .projectForm[data-v-45838bc0]{padding:0 0 10px 0}.offer-root .projectForm .projectForm[data-v-45838bc0]{margin-top:10px}.offer-root .projectForm .el-form-item[data-v-45838bc0]{margin-bottom:0}.continue[data-v-45838bc0]{color:#0286df}.common-offer-dialog .dialog-footer[data-v-45838bc0],.offer-pagination[data-v-45838bc0]{text-align:center}.offer-pagination .el-pagination[data-v-45838bc0]{margin:20px 0}.re-form .el-cascader[data-v-45838bc0],.re-form .el-date-editor[data-v-45838bc0],.re-form .el-input-number[data-v-45838bc0],.re-form .el-range-editor[data-v-45838bc0],.re-form .el-select[data-v-45838bc0]{width:100%}.re-form .el-input-number .el-input__inner[data-v-45838bc0]{text-align:left}.re-form .input-number-icon.el-input-number .el-input[data-v-45838bc0]{display:-webkit-box;display:-ms-flexbox;display:flex}.re-form .input-number-icon.el-input-number .el-input .el-input__inner[data-v-45838bc0]{border-radius:4px 0 4px 0}.re-form .input-number-icon.el-input-number .el-input[data-v-45838bc0]:after{-webkit-box-flex:1;-ms-flex:1;flex:1;padding:0 20px;height:38px;display:inline-block;background:#f5f7fa;text-align:center;border:1px solid #dcdfe6;border-left:0;border-radius:0 4px 4px 0;color:#909399}.re-form .number-yuan.el-input-number .el-input[data-v-45838bc0]:after{content:"\\5143"}.re-form .number-tian.el-input-number .el-input[data-v-45838bc0]:after{content:"\\5929"}.re-form .line-feed .el-form-item__label[data-v-45838bc0]{line-height:inherit!important}.el-submenu__icon-arrow[data-v-45838bc0]{position:absolute!important;top:50%!important;right:8px!important;margin-top:-7px!important;-webkit-transition:-webkit-transform .3s!important;transition:-webkit-transform .3s!important;transition:transform .3s!important;transition:transform .3s,-webkit-transform .3s!important;font-size:12px!important}.base-pagination[data-v-45838bc0]{text-align:center}.base-pagination .el-pagination[data-v-45838bc0]{margin:20px 0}.pointer[data-v-45838bc0]{cursor:pointer}.base-ellipsis[data-v-45838bc0]{display:inline-block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.btns-line[data-v-45838bc0]{margin-bottom:10px}.base-page-style[data-v-45838bc0]{padding:10px 10px}.base-page-style .btns-line[data-v-45838bc0]{margin-bottom:10px}.base-page-style .el-table .warning-row .cell[data-v-45838bc0]{color:red}.form-w100[data-v-45838bc0]{width:100%}.form-w100.el-input-number .el-input__inner[data-v-45838bc0]{text-align:left}.base-info-title[data-v-45838bc0]{font-size:18px;line-height:20px;color:#0286df;border-bottom:2px dotted #e4e7ed;padding-bottom:10px;margin-bottom:20px;position:relative}.base-info-title span[data-v-45838bc0]{border-left:3px solid #0286df;padding-left:10px}.base-info-title .append[data-v-45838bc0]{position:absolute;right:10px;top:0}.action-btns .btns[data-v-45838bc0]{margin-bottom:10px}.form-btns[data-v-45838bc0]{text-align:center}.text-danger[data-v-45838bc0]{color:#ff4949}.text-warning[data-v-45838bc0]{color:#f7ba2a}.text-blue[data-v-45838bc0]{color:#2e90fe}.clearboth[data-v-45838bc0]{clear:both}.noselect[data-v-45838bc0]{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}input[data-v-45838bc0]::-webkit-input-safebox-button{display:none}body[data-v-45838bc0]{background-color:#f5f5f5;font-family:Microsoft YaHei,微软雅黑,Arial,sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}.hover_02[data-v-45838bc0]:hover{color:#0286df!important}.color-default[data-v-45838bc0]{color:#0286df}.line-width[data-v-45838bc0]{background:#ededed;width:896px;height:1px}.bg-default[data-v-45838bc0]{background:#0286df}.hover-color-default[data-v-45838bc0]:hover{color:#0286df}.hover-bg-default[data-v-45838bc0]:hover{background:#ffeeea!important}.default-color[data-v-45838bc0]{color:#0286df}.page-left[data-v-45838bc0]{float:left}.page-right[data-v-45838bc0]{float:right}.colordefault[data-v-45838bc0]{color:#0286df}.colorgrey[data-v-45838bc0]{color:#ccc}.colortheme[data-v-45838bc0]{color:#ff8b00}.colorff4[data-v-45838bc0]{color:#ff4e00}.color-orange[data-v-45838bc0]{color:#f60}.p20[data-v-45838bc0]{padding:20px}.pl20[data-v-45838bc0]{padding-left:20px}.pb20[data-v-45838bc0]{padding-bottom:20px}.mt10[data-v-45838bc0]{margin-top:10px}.mt20[data-v-45838bc0]{margin-top:20px}.ml26[data-v-45838bc0]{margin-left:26px}.ml400[data-v-45838bc0]{margin-left:400px}.mb10[data-v-45838bc0]{margin-bottom:10px}.mb20[data-v-45838bc0]{margin-bottom:20px}.ml10[data-v-45838bc0]{margin-left:10px}.text-center[data-v-45838bc0]{text-align:center}.clearfix[data-v-45838bc0]{overflow:hidden}.fl[data-v-45838bc0]{float:left}.fr[data-v-45838bc0]{float:right}.avatar-uploader .el-upload[data-v-45838bc0]{border:1px dashed #d9d9d9;border-radius:6px;cursor:pointer;position:relative;overflow:hidden}.avatar-uploader .el-upload[data-v-45838bc0]:hover{border-color:#409eff}.avatar-uploader-icon[data-v-45838bc0]{font-size:28px;color:#8c939d;width:178px;height:178px;line-height:178px;text-align:center}.avatar-uploader-icon[data-v-45838bc0]:before{line-height:178px}.avatar[data-v-45838bc0]{width:178px;height:178px;border:1px dashed #c0ccda;border-radius:6px;display:block}.cell-button[data-v-45838bc0]{color:#0286df!important}.cell-del-button[data-v-45838bc0]{color:#f60!important}.tableStyle[data-v-45838bc0]{border-top:1px solid #e4e7ed;width:100%;margin-top:20px}.tabs-box .el-tabs .el-tabs__header[data-v-45838bc0]{margin:0}.tabs-box .el-tabs__item .is-active[data-v-45838bc0]{color:#0286df}.tabs-box .el-tabs__item[data-v-45838bc0]{color:#333}.m-l-15[data-v-45838bc0]{margin-left:15px!important}.m-l-20[data-v-45838bc0]{margin-left:20px!important}.m-l-40[data-v-45838bc0]{margin-left:40px!important}.pagination-box[data-v-45838bc0]{text-align:center;font-size:16px}.pagination-box .el-pagination[data-v-45838bc0]{margin-top:20px}.el-input__count[data-v-45838bc0]{background:none!important;bottom:-10px!important}.el-link.el-link--primary[data-v-45838bc0],.el-tabs__item.is-active[data-v-45838bc0]{color:#0286df!important}.info2 .successinfo i[data-v-45838bc0]{font-size:75px!important;color:#78c06e!important}.el-table__body tr.hover-row td[data-v-45838bc0]{background-color:#f5f7fa!important}.el-pager li.active[data-v-45838bc0]{color:#0286df!important}.el-loading-mask[data-v-45838bc0]{z-index:9999}.el-icon-loading[data-v-45838bc0]{font-size:40px}.el-button.is-loading .el-icon-loading[data-v-45838bc0]{font-size:14px}.el-tooltip__popper[data-v-45838bc0]{max-width:80%}li[data-v-45838bc0],ul[data-v-45838bc0]{list-style:none}a[data-v-45838bc0]{outline:medium none;text-decoration:none}.colorff66[data-v-45838bc0]{color:#f60}.color02[data-v-45838bc0]{color:#0286df}.color33[data-v-45838bc0]{color:#333}.colorff[data-v-45838bc0]{color:#fff}.color00[data-v-45838bc0]{color:#000}.color66[data-v-45838bc0]{color:#666}.color96[data-v-45838bc0]{color:#969696}.colorbf[data-v-45838bc0]{color:#bfbfbf}.color59[data-v-45838bc0]{color:#595959}.color5e[data-v-45838bc0]{color:#5e5e5e}.colorcc[data-v-45838bc0]{color:#ccc}.color6f[data-v-45838bc0]{color:#6f6f6f}.color2c[data-v-45838bc0]{color:#2c2c2b}.color8d[data-v-45838bc0]{color:#8d8d8d}.h-green[data-v-45838bc0]{color:#78c06e}.h-red[data-v-45838bc0]{color:#f60}.h-orange[data-v-45838bc0]{color:#f7ab01}.color-link[data-v-45838bc0],.h-blue[data-v-45838bc0]{color:#0286df}.bgf5[data-v-45838bc0]{background:#f5f5f5}.bgc9[data-v-45838bc0]{background:#c9c9c9}.bgff[data-v-45838bc0]{background:#fff}.bg02[data-v-45838bc0]{background:#0286df}.bg66[data-v-45838bc0]{background:#666}.bgb3[data-v-45838bc0]{background:#b3b3b3}.font10[data-v-45838bc0]{font-size:10px}.font12[data-v-45838bc0]{font-size:12px}.font14[data-v-45838bc0]{font-size:14px}.font16[data-v-45838bc0]{font-size:16px}.font18[data-v-45838bc0]{font-size:18px}.font20[data-v-45838bc0]{font-size:20px}.font22[data-v-45838bc0]{font-size:22px}.font24[data-v-45838bc0]{font-size:24px}.font28[data-v-45838bc0]{font-size:28px}.font36[data-v-45838bc0]{font-size:36px}.overflow[data-v-45838bc0]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.border02[data-v-45838bc0]{border:1px solid #0286df}.tc-1[data-v-45838bc0]{width:100%;height:1px}.tc-2[data-v-45838bc0]{width:100%;height:2px}.tc-3[data-v-45838bc0]{width:100%;height:3px}.tc-4[data-v-45838bc0]{width:100%;height:4px}.tc-5[data-v-45838bc0]{width:100%;height:5px}.tc-6[data-v-45838bc0]{width:100%;height:6px}.tc-7[data-v-45838bc0]{width:100%;height:7px}.tc-8[data-v-45838bc0]{width:100%;height:8px}.tc-9[data-v-45838bc0]{width:100%;height:9px}.tc-10[data-v-45838bc0]{width:100%;height:10px}.tc-13[data-v-45838bc0]{width:100%;height:13px}.tc-15[data-v-45838bc0]{width:100%;height:15px}.tc-20[data-v-45838bc0]{width:100%;height:20px}.tc-30[data-v-45838bc0]{width:100%;height:30px}.tc-40[data-v-45838bc0]{width:100%;height:40px}.tc-45[data-v-45838bc0]{width:100%;height:45px}.tc-50[data-v-45838bc0]{width:100%;height:50px}.tc-70[data-v-45838bc0]{width:100%;height:70px}.tc-80[data-v-45838bc0]{width:100%;height:80px}.tc-100[data-v-45838bc0]{width:100%;height:100px}.tc-200[data-v-45838bc0]{width:100%;height:200px}.cursor[data-v-45838bc0]{cursor:pointer}[data-v-45838bc0]::-webkit-scrollbar{width:9px;height:9px}[data-v-45838bc0]::-webkit-scrollbar-track{background-color:transparent;border-radius:2em}[data-v-45838bc0]::-webkit-scrollbar-thumb{background-color:#e1e1e1;border-radius:2em}.p-l-no[data-v-45838bc0]{padding-left:0}.el-button.h-btn-reset[data-v-45838bc0]{margin-left:10px;padding:12px 10px}.h-search-form .el-input[data-v-45838bc0]{width:200px}.h-search-form .el-date-editor--daterange.el-input__inner[data-v-45838bc0]{width:240px}.h-search-form.el-form--inline .el-form-item[data-v-45838bc0]{margin-right:10px}.btn-submit-box[data-v-45838bc0]{margin-top:40px;text-align:center}.list-table-td-a[data-v-45838bc0]{color:#0286df;cursor:pointer}.list-table-td-a[data-v-45838bc0]:hover{color:#0286df;text-decoration:underline}.h-main-box[data-v-45838bc0]{padding:10px}.h-main-box-tab[data-v-45838bc0]{padding:5px}.h-tab-content[data-v-45838bc0]{min-height:200px;padding:20px;border:1px solid #e4e7ed;margin-top:-16px}.h-divide-title[data-v-45838bc0]{font-size:16px;line-height:20px;color:#0286df;border-bottom:2px dotted #e4e7ed;padding-bottom:10px;margin:20px 0}.h-divide-title>span[data-v-45838bc0]{border-left:3px solid #0286df;padding-left:10px}.wrapper[data-v-45838bc0]{background-color:#fff;-webkit-box-shadow:0 0 10px 0 hsla(0,0%,80%,.378);box-shadow:0 0 10px 0 hsla(0,0%,80%,.378);padding:25px 10px 10px 10px;border-radius:8px;width:300px;border:1px solid hsla(0,0%,80%,.761)}.wrapper[data-v-45838bc0],.wrapper .close[data-v-45838bc0]{position:absolute;display:-webkit-box;display:-ms-flexbox;display:flex}.wrapper .close[data-v-45838bc0]{top:10px;right:10px;width:12px;height:12px;cursor:pointer}.wrapper .close img[data-v-45838bc0]{width:100%;height:100%}.wrapper .node[data-v-45838bc0]{height:68px;cursor:pointer;text-align:center;margin:0 4px;background:hsla(0,0%,80%,.054901960784313725);padding:10px 0 3px 0;border-radius:6px;color:#333;-webkit-box-flex:1;-ms-flex:1;flex:1;border:1px solid hsla(0,0%,80%,.054901960784313725);-webkit-transition:all .5s;transition:all .5s}.wrapper .node img[data-v-45838bc0]{height:40px;width:40px}.wrapper .node p[data-v-45838bc0]{margin:0;line-height:22px;text-align:center;font-size:12px}.wrapper .node[data-v-45838bc0]:hover{background-color:#fff;color:#0287df;border-color:hsla(0,0%,80%,.378);-webkit-box-shadow:0 2px 5px hsla(0,0%,80%,.378);box-shadow:0 2px 5px hsla(0,0%,80%,.378)}',""])},6322:function(e,t,n){t=e.exports=n("690e")(!1),t.push([e.i,".plannode{border:1px solid #e4e7ed;border-radius:6px}.flow-node-header{background-color:#66a6e0;height:30px;cursor:pointer;border-top-left-radius:6px;border-top-right-radius:6px}.flow-node-header a{text-decoration:none;line-height:25px;vertical-align:middle}.flow-node-header a img{line-height:25px;vertical-align:middle;margin-bottom:5px}.flow-node-header .flow-name{text-align:center;color:#fff;margin:0;line-height:30px}.flow-node-header .flow-name .el-input__inner{height:22px;width:70%}.flow-node-body{background-color:#fff;text-align:left;cursor:pointer;height:24px;line-height:24px;font-size:14px;padding:6px;border-bottom-left-radius:6px;border-bottom-right-radius:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:auto}.flow-node-operate{position:absolute;top:0;right:0;line-height:25px}.point{cursor:move}.hand-icon{cursor:pointer}",""])},"63b1":function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
133
133
  //! moment.js locale configuration
134
- var t=e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}});return t}))},"63ec":function(e,t,n){var i=n("60f8"),r=n("ca47");e.exports={throttle:i,debounce:r}},6444:function(e,t,n){"use strict";n("4074")},6520:function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
134
+ var t=e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}});return t}))},"63ec":function(e,t,n){var i=n("60f8"),r=n("ca47");e.exports={throttle:i,debounce:r}},6520:function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
135
135
  //! moment.js locale configuration
136
136
  var t=e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}});return t}))},6602:function(e,t,n){var i=n("503d"),r=n("5d2e"),o=n("9b1b"),a=n("1440"),s=n("823b"),l=n("6b3e"),u=n("5018"),c=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var d,h,f,p,m,v,g,y=n&&n.that,b=!(!n||!n.AS_ENTRIES),_=!(!n||!n.IS_ITERATOR),w=!(!n||!n.INTERRUPTED),x=a(t,y,1+b+w),k=function(e){return d&&u(d,"normal",e),new c(!0,e)},M=function(e){return b?(i(e),w?x(e[0],e[1],k):x(e[0],e[1])):w?x(e,k):x(e)};if(_)d=e;else{if(h=l(e),!h)throw TypeError(String(e)+" is not iterable");if(r(h)){for(f=0,p=o(e.length);p>f;f++)if(m=M(e[f]),m&&m instanceof c)return m;return new c(!1)}d=s(e,h)}v=d.next;while(!(g=v.call(d)).done){try{m=M(g.value)}catch(S){u(d,"throw",S)}if("object"==typeof m&&m&&m instanceof c)return m}return new c(!1)}},6611:function(e,t){var n=Math.floor,i=function(e,t){var a=e.length,s=n(a/2);return a<8?r(e,t):o(i(e.slice(0,s),t),i(e.slice(s),t),t)},r=function(e,t){var n,i,r=e.length,o=1;while(o<r){i=o,n=e[o];while(i&&t(e[i-1],n)>0)e[i]=e[--i];i!==o++&&(e[i]=n)}return e},o=function(e,t,n){var i=e.length,r=t.length,o=0,a=0,s=[];while(o<i||a<r)o<i&&a<r?s.push(n(e[o],t[a])<=0?e[o++]:t[a++]):s.push(o<i?e[o++]:t[a++]);return s};e.exports=i},"66b0":function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
137
137
  //! moment.js locale configuration
@@ -165,7 +165,7 @@ function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","ei
165
165
  //! moment.js locale configuration
166
166
  var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"},i=e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}});return i}))},7554:function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
167
167
  //! moment.js locale configuration
168
- var t=e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t=e,n="",i=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"];return t>20?n=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(n=i[t]),e+n},week:{dow:1,doy:4}});return t}))},7620:function(e,t,n){"use strict";var i;(function(r){var o={},a=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,s="\\d\\d?",l="\\d{3}",u="\\d{4}",c="[^\\s]+",d=/\[([^]*?)\]/gm,h=function(){};function f(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")}function p(e,t){for(var n=[],i=0,r=e.length;i<r;i++)n.push(e[i].substr(0,t));return n}function m(e){return function(t,n,i){var r=i[e].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~r&&(t.month=r)}}function v(e,t){e=String(e),t=t||2;while(e.length<t)e="0"+e;return e}var g=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],y=["January","February","March","April","May","June","July","August","September","October","November","December"],b=p(y,3),_=p(g,3);o.i18n={dayNamesShort:_,dayNames:g,monthNamesShort:b,monthNames:y,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!==10)*e%10]}};var w={D:function(e){return e.getDay()},DD:function(e){return v(e.getDay())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return e.getDate()},dd:function(e){return v(e.getDate())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return e.getMonth()+1},MM:function(e){return v(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},yy:function(e){return v(String(e.getFullYear()),4).substr(2)},yyyy:function(e){return v(e.getFullYear(),4)},h:function(e){return e.getHours()%12||12},hh:function(e){return v(e.getHours()%12||12)},H:function(e){return e.getHours()},HH:function(e){return v(e.getHours())},m:function(e){return e.getMinutes()},mm:function(e){return v(e.getMinutes())},s:function(e){return e.getSeconds()},ss:function(e){return v(e.getSeconds())},S:function(e){return Math.round(e.getMilliseconds()/100)},SS:function(e){return v(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return v(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+v(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)}},x={d:[s,function(e,t){e.day=t}],Do:[s+c,function(e,t){e.day=parseInt(t,10)}],M:[s,function(e,t){e.month=t-1}],yy:[s,function(e,t){var n=new Date,i=+(""+n.getFullYear()).substr(0,2);e.year=""+(t>68?i-1:i)+t}],h:[s,function(e,t){e.hour=t}],m:[s,function(e,t){e.minute=t}],s:[s,function(e,t){e.second=t}],yyyy:[u,function(e,t){e.year=t}],S:["\\d",function(e,t){e.millisecond=100*t}],SS:["\\d{2}",function(e,t){e.millisecond=10*t}],SSS:[l,function(e,t){e.millisecond=t}],D:[s,h],ddd:[c,h],MMM:[c,m("monthNamesShort")],MMMM:[c,m("monthNames")],a:[c,function(e,t,n){var i=t.toLowerCase();i===n.amPm[0]?e.isPm=!1:i===n.amPm[1]&&(e.isPm=!0)}],ZZ:["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",function(e,t){var n,i=(t+"").match(/([+-]|\d\d)/gi);i&&(n=60*i[1]+parseInt(i[2],10),e.timezoneOffset="+"===i[0]?n:-n)}]};x.dd=x.d,x.dddd=x.ddd,x.DD=x.D,x.mm=x.m,x.hh=x.H=x.HH=x.h,x.MM=x.M,x.ss=x.s,x.A=x.a,o.masks={default:"ddd MMM dd yyyy HH:mm:ss",shortDate:"M/D/yy",mediumDate:"MMM d, yyyy",longDate:"MMMM d, yyyy",fullDate:"dddd, MMMM d, yyyy",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},o.format=function(e,t,n){var i=n||o.i18n;if("number"===typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date in fecha.format");t=o.masks[t]||t||o.masks["default"];var r=[];return t=t.replace(d,(function(e,t){return r.push(t),"@@@"})),t=t.replace(a,(function(t){return t in w?w[t](e,i):t.slice(1,t.length-1)})),t.replace(/@@@/g,(function(){return r.shift()}))},o.parse=function(e,t,n){var i=n||o.i18n;if("string"!==typeof t)throw new Error("Invalid format in fecha.parse");if(t=o.masks[t]||t,e.length>1e3)return null;var r={},s=[],l=[];t=t.replace(d,(function(e,t){return l.push(t),"@@@"}));var u=f(t).replace(a,(function(e){if(x[e]){var t=x[e];return s.push(t[1]),"("+t[0]+")"}return e}));u=u.replace(/@@@/g,(function(){return l.shift()}));var c=e.match(new RegExp(u,"i"));if(!c)return null;for(var h=1;h<c.length;h++)s[h-1](r,c[h],i);var p,m=new Date;return!0===r.isPm&&null!=r.hour&&12!==+r.hour?r.hour=+r.hour+12:!1===r.isPm&&12===+r.hour&&(r.hour=0),null!=r.timezoneOffset?(r.minute=+(r.minute||0)-+r.timezoneOffset,p=new Date(Date.UTC(r.year||m.getFullYear(),r.month||0,r.day||1,r.hour||0,r.minute||0,r.second||0,r.millisecond||0))):p=new Date(r.year||m.getFullYear(),r.month||0,r.day||1,r.hour||0,r.minute||0,r.second||0,r.millisecond||0),p},e.exports?e.exports=o:(i=function(){return o}.call(t,n,t,e),void 0===i||(e.exports=i))})()},"76ab":function(e,t,n){"use strict";var i=n("2ae1"),r=n("2895"),o=10,a=40,s=800;function l(e){var t=0,n=0,i=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),i=t*o,r=n*o,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(i=e.deltaX),(i||r)&&e.deltaMode&&(1==e.deltaMode?(i*=a,r*=a):(i*=s,r*=s)),i&&!t&&(t=i<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:i,pixelY:r}}l.getEventType=function(){return i.firefox()?"DOMMouseScroll":r("wheel")?"wheel":"mousewheel"},e.exports=l},"770b":function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
168
+ var t=e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t=e,n="",i=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"];return t>20?n=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(n=i[t]),e+n},week:{dow:1,doy:4}});return t}))},7620:function(e,t,n){"use strict";var i;(function(r){var o={},a=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,s="\\d\\d?",l="\\d{3}",u="\\d{4}",c="[^\\s]+",d=/\[([^]*?)\]/gm,h=function(){};function f(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")}function p(e,t){for(var n=[],i=0,r=e.length;i<r;i++)n.push(e[i].substr(0,t));return n}function m(e){return function(t,n,i){var r=i[e].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~r&&(t.month=r)}}function v(e,t){e=String(e),t=t||2;while(e.length<t)e="0"+e;return e}var g=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],y=["January","February","March","April","May","June","July","August","September","October","November","December"],b=p(y,3),_=p(g,3);o.i18n={dayNamesShort:_,dayNames:g,monthNamesShort:b,monthNames:y,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!==10)*e%10]}};var w={D:function(e){return e.getDay()},DD:function(e){return v(e.getDay())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return e.getDate()},dd:function(e){return v(e.getDate())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return e.getMonth()+1},MM:function(e){return v(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},yy:function(e){return v(String(e.getFullYear()),4).substr(2)},yyyy:function(e){return v(e.getFullYear(),4)},h:function(e){return e.getHours()%12||12},hh:function(e){return v(e.getHours()%12||12)},H:function(e){return e.getHours()},HH:function(e){return v(e.getHours())},m:function(e){return e.getMinutes()},mm:function(e){return v(e.getMinutes())},s:function(e){return e.getSeconds()},ss:function(e){return v(e.getSeconds())},S:function(e){return Math.round(e.getMilliseconds()/100)},SS:function(e){return v(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return v(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+v(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)}},x={d:[s,function(e,t){e.day=t}],Do:[s+c,function(e,t){e.day=parseInt(t,10)}],M:[s,function(e,t){e.month=t-1}],yy:[s,function(e,t){var n=new Date,i=+(""+n.getFullYear()).substr(0,2);e.year=""+(t>68?i-1:i)+t}],h:[s,function(e,t){e.hour=t}],m:[s,function(e,t){e.minute=t}],s:[s,function(e,t){e.second=t}],yyyy:[u,function(e,t){e.year=t}],S:["\\d",function(e,t){e.millisecond=100*t}],SS:["\\d{2}",function(e,t){e.millisecond=10*t}],SSS:[l,function(e,t){e.millisecond=t}],D:[s,h],ddd:[c,h],MMM:[c,m("monthNamesShort")],MMMM:[c,m("monthNames")],a:[c,function(e,t,n){var i=t.toLowerCase();i===n.amPm[0]?e.isPm=!1:i===n.amPm[1]&&(e.isPm=!0)}],ZZ:["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",function(e,t){var n,i=(t+"").match(/([+-]|\d\d)/gi);i&&(n=60*i[1]+parseInt(i[2],10),e.timezoneOffset="+"===i[0]?n:-n)}]};x.dd=x.d,x.dddd=x.ddd,x.DD=x.D,x.mm=x.m,x.hh=x.H=x.HH=x.h,x.MM=x.M,x.ss=x.s,x.A=x.a,o.masks={default:"ddd MMM dd yyyy HH:mm:ss",shortDate:"M/D/yy",mediumDate:"MMM d, yyyy",longDate:"MMMM d, yyyy",fullDate:"dddd, MMMM d, yyyy",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},o.format=function(e,t,n){var i=n||o.i18n;if("number"===typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date in fecha.format");t=o.masks[t]||t||o.masks["default"];var r=[];return t=t.replace(d,(function(e,t){return r.push(t),"@@@"})),t=t.replace(a,(function(t){return t in w?w[t](e,i):t.slice(1,t.length-1)})),t.replace(/@@@/g,(function(){return r.shift()}))},o.parse=function(e,t,n){var i=n||o.i18n;if("string"!==typeof t)throw new Error("Invalid format in fecha.parse");if(t=o.masks[t]||t,e.length>1e3)return null;var r={},s=[],l=[];t=t.replace(d,(function(e,t){return l.push(t),"@@@"}));var u=f(t).replace(a,(function(e){if(x[e]){var t=x[e];return s.push(t[1]),"("+t[0]+")"}return e}));u=u.replace(/@@@/g,(function(){return l.shift()}));var c=e.match(new RegExp(u,"i"));if(!c)return null;for(var h=1;h<c.length;h++)s[h-1](r,c[h],i);var p,m=new Date;return!0===r.isPm&&null!=r.hour&&12!==+r.hour?r.hour=+r.hour+12:!1===r.isPm&&12===+r.hour&&(r.hour=0),null!=r.timezoneOffset?(r.minute=+(r.minute||0)-+r.timezoneOffset,p=new Date(Date.UTC(r.year||m.getFullYear(),r.month||0,r.day||1,r.hour||0,r.minute||0,r.second||0,r.millisecond||0))):p=new Date(r.year||m.getFullYear(),r.month||0,r.day||1,r.hour||0,r.minute||0,r.second||0,r.millisecond||0),p},e.exports?e.exports=o:(i=function(){return o}.call(t,n,t,e),void 0===i||(e.exports=i))})()},7662:function(e,t,n){"use strict";n("4bef")},"76ab":function(e,t,n){"use strict";var i=n("2ae1"),r=n("2895"),o=10,a=40,s=800;function l(e){var t=0,n=0,i=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),i=t*o,r=n*o,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(i=e.deltaX),(i||r)&&e.deltaMode&&(1==e.deltaMode?(i*=a,r*=a):(i*=s,r*=s)),i&&!t&&(t=i<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:i,pixelY:r}}l.getEventType=function(){return i.firefox()?"DOMMouseScroll":r("wheel")?"wheel":"mousewheel"},e.exports=l},"770b":function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
169
169
  //! moment.js locale configuration
170
170
  function t(e){return e%100===11||e%10!==1}function n(e,n,i,r){var o=e+" ";switch(i){case"s":return n||r?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?o+(n||r?"sekúndur":"sekúndum"):o+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?o+(n||r?"mínútur":"mínútum"):n?o+"mínúta":o+"mínútu";case"hh":return t(e)?o+(n||r?"klukkustundir":"klukkustundum"):o+"klukkustund";case"d":return n?"dagur":r?"dag":"degi";case"dd":return t(e)?n?o+"dagar":o+(r?"daga":"dögum"):n?o+"dagur":o+(r?"dag":"degi");case"M":return n?"mánuður":r?"mánuð":"mánuði";case"MM":return t(e)?n?o+"mánuðir":o+(r?"mánuði":"mánuðum"):n?o+"mánuður":o+(r?"mánuð":"mánuði");case"y":return n||r?"ár":"ári";case"yy":return t(e)?o+(n||r?"ár":"árum"):o+(n||r?"ár":"ári")}}var i=e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return i}))},7736:function(e,t,n){"use strict";(function(e){
171
171
  /*!
@@ -310,7 +310,7 @@ function(e){var t,n,i,r,o,a,s,l,u,c,d,h,f,p,m,v,g,y,b,_="sizzle"+1*new Date,w=e.
310
310
  //! moment.js
311
311
  o.version="2.29.1",a(Jn),o.fn=uo,o.min=ei,o.max=ti,o.now=ni,o.utc=v,o.unix=co,o.months=yo,o.isDate=f,o.locale=vn,o.invalid=_,o.duration=Ti,o.isMoment=S,o.weekdays=_o,o.parseZone=ho,o.localeData=bn,o.isDuration=li,o.monthsShort=bo,o.weekdaysMin=xo,o.defineLocale=gn,o.updateLocale=yn,o.locales=_n,o.weekdaysShort=wo,o.normalizeUnits=oe,o.relativeTimeRounding=oa,o.relativeTimeThreshold=aa,o.calendarFormat=$i,o.prototype=uo,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o}))}).call(this,n("adb6")(e))},cab7:function(e,t,n){var i=n("c87d"),r=n("5b4e");e.exports=Object.keys||function(e){return i(e,r)}},cac5:function(e,t,n){var i=n("21d5"),r=n("7bb6");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},cc26:function(e,t,n){"use strict";var i=n("cc5a");e.exports=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(i("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},cc5a:function(e,t,n){"use strict";var i=n("190f");e.exports=function(e,t,n,r,o){var a=new Error(e);return i(a,t,n,r,o)}},cd07:function(e,t,n){var i=n("bdbe"),r=n("a7f1"),o=n("503d"),a=n("6af6"),s=Object.defineProperty;t.f=i?s:function(e,t,n){if(o(e),t=a(t),o(n),r)try{return s(e,t,n)}catch(i){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},ce13:function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
312
312
  //! moment.js locale configuration
313
- var t=e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}});return t}))},ce99:function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},cee7:function(e,t,n){"use strict";var i=n("bdbe"),r=n("b20c"),o=n("6e9d"),a=n("ae12"),s=n("d43b"),l=n("2909"),u=n("7e64"),c=n("69c6"),d=n("8509"),h=n("7bb6"),f=n("3004"),p=n("6dd4").f,m=n("7776").f,v=n("cd07").f,g=n("9f4b").trim,y="Number",b=r[y],_=b.prototype,w=l(f(_))==y,x=function(e){if(c(e))throw TypeError("Cannot convert a Symbol value to a number");var t,n,i,r,o,a,s,l,u=d(e,"number");if("string"==typeof u&&u.length>2)if(u=g(u),t=u.charCodeAt(0),43===t||45===t){if(n=u.charCodeAt(2),88===n||120===n)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+u}for(o=u.slice(2),a=o.length,s=0;s<a;s++)if(l=o.charCodeAt(s),l<48||l>r)return NaN;return parseInt(o,i)}return+u};if(o(y,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var k,M=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof M&&(w?h((function(){_.valueOf.call(n)})):l(n)!=y)?u(new b(x(t)),n,M):x(t)},S=i?p(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),C=0;S.length>C;C++)s(b,k=S[C])&&!s(M,k)&&v(M,k,m(b,k));M.prototype=_,_.constructor=M,a(r,y,M)}},cf7c:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=73)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return i}))},11:function(e,t){e.exports=n("0447")},21:function(e,t){e.exports=n("8541")},4:function(e,t){e.exports=n("990b")},73:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["textarea"===e.type?"el-textarea":"el-input",e.inputSize?"el-input--"+e.inputSize:"",{"is-disabled":e.inputDisabled,"is-exceed":e.inputExceed,"el-input-group":e.$slots.prepend||e.$slots.append,"el-input-group--append":e.$slots.append,"el-input-group--prepend":e.$slots.prepend,"el-input--prefix":e.$slots.prefix||e.prefixIcon,"el-input--suffix":e.$slots.suffix||e.suffixIcon||e.clearable||e.showPassword}],on:{mouseenter:function(t){e.hovering=!0},mouseleave:function(t){e.hovering=!1}}},["textarea"!==e.type?[e.$slots.prepend?n("div",{staticClass:"el-input-group__prepend"},[e._t("prepend")],2):e._e(),"textarea"!==e.type?n("input",e._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:e.tabindex,type:e.showPassword?e.passwordVisible?"text":"password":e.type,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"input",e.$attrs,!1)):e._e(),e.$slots.prefix||e.prefixIcon?n("span",{staticClass:"el-input__prefix"},[e._t("prefix"),e.prefixIcon?n("i",{staticClass:"el-input__icon",class:e.prefixIcon}):e._e()],2):e._e(),e.getSuffixVisible()?n("span",{staticClass:"el-input__suffix"},[n("span",{staticClass:"el-input__suffix-inner"},[e.showClear&&e.showPwdVisible&&e.isWordLimitVisible?e._e():[e._t("suffix"),e.suffixIcon?n("i",{staticClass:"el-input__icon",class:e.suffixIcon}):e._e()],e.showClear?n("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(e){e.preventDefault()},click:e.clear}}):e._e(),e.showPwdVisible?n("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:e.handlePasswordVisible}}):e._e(),e.isWordLimitVisible?n("span",{staticClass:"el-input__count"},[n("span",{staticClass:"el-input__count-inner"},[e._v("\n "+e._s(e.textLength)+"/"+e._s(e.upperLimit)+"\n ")])]):e._e()],2),e.validateState?n("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",e.validateIcon]}):e._e()]):e._e(),e.$slots.append?n("div",{staticClass:"el-input-group__append"},[e._t("append")],2):e._e()]:n("textarea",e._b({ref:"textarea",staticClass:"el-textarea__inner",style:e.textareaStyle,attrs:{tabindex:e.tabindex,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"textarea",e.$attrs,!1)),e.isWordLimitVisible&&"textarea"===e.type?n("span",{staticClass:"el-input__count"},[e._v(e._s(e.textLength)+"/"+e._s(e.upperLimit))]):e._e()],2)},r=[];i._withStripped=!0;var o=n(4),a=n.n(o),s=n(11),l=n.n(s),u=void 0,c="\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",d=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function h(e){var t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),i=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),r=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width")),o=d.map((function(e){return e+":"+t.getPropertyValue(e)})).join(";");return{contextStyle:o,paddingSize:i,borderSize:r,boxSizing:n}}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;u||(u=document.createElement("textarea"),document.body.appendChild(u));var i=h(e),r=i.paddingSize,o=i.borderSize,a=i.boxSizing,s=i.contextStyle;u.setAttribute("style",s+";"+c),u.value=e.value||e.placeholder||"";var l=u.scrollHeight,d={};"border-box"===a?l+=o:"content-box"===a&&(l-=r),u.value="";var f=u.scrollHeight-r;if(null!==t){var p=f*t;"border-box"===a&&(p=p+r+o),l=Math.max(p,l),d.minHeight=p+"px"}if(null!==n){var m=f*n;"border-box"===a&&(m=m+r+o),l=Math.min(m,l)}return d.height=l+"px",u.parentNode&&u.parentNode.removeChild(u),u=null,d}var p=n(9),m=n.n(p),v=n(21),g={name:"ElInput",componentName:"ElInput",mixins:[a.a,l.a],inheritAttrs:!1,inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:"text"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return m()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"===typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(e){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[e])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var e=this;this.$nextTick((function(){e.setNativeInputValue(),e.resizeTextarea(),e.updateIconOffset()}))}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(e){this.focused=!1,this.$emit("blur",e),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var e=this.autosize,t=this.type;if("textarea"===t)if(e){var n=e.minRows,i=e.maxRows;this.textareaCalcStyle=f(this.$refs.textarea,n,i)}else this.textareaCalcStyle={minHeight:f(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var e=this.getInput();e&&e.value!==this.nativeInputValue&&(e.value=this.nativeInputValue)},handleFocus:function(e){this.focused=!0,this.$emit("focus",e)},handleCompositionStart:function(){this.isComposing=!0},handleCompositionUpdate:function(e){var t=e.target.value,n=t[t.length-1]||"";this.isComposing=!Object(v["isKorean"])(n)},handleCompositionEnd:function(e){this.isComposing&&(this.isComposing=!1,this.handleInput(e))},handleInput:function(e){this.isComposing||e.target.value!==this.nativeInputValue&&(this.$emit("input",e.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(e){this.$emit("change",e.target.value)},calcIconOffset:function(e){var t=[].slice.call(this.$el.querySelectorAll(".el-input__"+e)||[]);if(t.length){for(var n=null,i=0;i<t.length;i++)if(t[i].parentNode===this.$el){n=t[i];break}if(n){var r={suffix:"append",prefix:"prepend"},o=r[e];this.$slots[o]?n.style.transform="translateX("+("suffix"===e?"-":"")+this.$el.querySelector(".el-input-group__"+o).offsetWidth+"px)":n.removeAttribute("style")}}},updateIconOffset:function(){this.calcIconOffset("prefix"),this.calcIconOffset("suffix")},clear:function(){this.$emit("input",""),this.$emit("change",""),this.$emit("clear")},handlePasswordVisible:function(){var e=this;this.passwordVisible=!this.passwordVisible,this.$nextTick((function(){e.focus()}))},getInput:function(){return this.$refs.input||this.$refs.textarea},getSuffixVisible:function(){return this.$slots.suffix||this.suffixIcon||this.showClear||this.showPassword||this.isWordLimitVisible||this.validateState&&this.needStatusIcon}},created:function(){this.$on("inputSelect",this.select)},mounted:function(){this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()},updated:function(){this.$nextTick(this.updateIconOffset)}},y=g,b=n(0),_=Object(b["a"])(y,i,r,!1,null,null,null);_.options.__file="packages/input/src/input.vue";var w=_.exports;w.install=function(e){e.component(w.name,w)};t["default"]=w},9:function(e,t){e.exports=n("f86a")}})},d053:function(e,t,n){"use strict";var i=n("7a07");function r(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new i(e),t(n.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e,t=new r((function(t){e=t}));return{token:t,cancel:e}},e.exports=r},d112:function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
313
+ var t=e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}});return t}))},ce99:function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},cee7:function(e,t,n){"use strict";var i=n("bdbe"),r=n("b20c"),o=n("6e9d"),a=n("ae12"),s=n("d43b"),l=n("2909"),u=n("7e64"),c=n("69c6"),d=n("8509"),h=n("7bb6"),f=n("3004"),p=n("6dd4").f,m=n("7776").f,v=n("cd07").f,g=n("9f4b").trim,y="Number",b=r[y],_=b.prototype,w=l(f(_))==y,x=function(e){if(c(e))throw TypeError("Cannot convert a Symbol value to a number");var t,n,i,r,o,a,s,l,u=d(e,"number");if("string"==typeof u&&u.length>2)if(u=g(u),t=u.charCodeAt(0),43===t||45===t){if(n=u.charCodeAt(2),88===n||120===n)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+u}for(o=u.slice(2),a=o.length,s=0;s<a;s++)if(l=o.charCodeAt(s),l<48||l>r)return NaN;return parseInt(o,i)}return+u};if(o(y,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var k,M=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof M&&(w?h((function(){_.valueOf.call(n)})):l(n)!=y)?u(new b(x(t)),n,M):x(t)},S=i?p(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),C=0;S.length>C;C++)s(b,k=S[C])&&!s(M,k)&&v(M,k,m(b,k));M.prototype=_,_.constructor=M,a(r,y,M)}},cf7c:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=73)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return i}))},11:function(e,t){e.exports=n("0447")},21:function(e,t){e.exports=n("8541")},4:function(e,t){e.exports=n("990b")},73:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["textarea"===e.type?"el-textarea":"el-input",e.inputSize?"el-input--"+e.inputSize:"",{"is-disabled":e.inputDisabled,"is-exceed":e.inputExceed,"el-input-group":e.$slots.prepend||e.$slots.append,"el-input-group--append":e.$slots.append,"el-input-group--prepend":e.$slots.prepend,"el-input--prefix":e.$slots.prefix||e.prefixIcon,"el-input--suffix":e.$slots.suffix||e.suffixIcon||e.clearable||e.showPassword}],on:{mouseenter:function(t){e.hovering=!0},mouseleave:function(t){e.hovering=!1}}},["textarea"!==e.type?[e.$slots.prepend?n("div",{staticClass:"el-input-group__prepend"},[e._t("prepend")],2):e._e(),"textarea"!==e.type?n("input",e._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:e.tabindex,type:e.showPassword?e.passwordVisible?"text":"password":e.type,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"input",e.$attrs,!1)):e._e(),e.$slots.prefix||e.prefixIcon?n("span",{staticClass:"el-input__prefix"},[e._t("prefix"),e.prefixIcon?n("i",{staticClass:"el-input__icon",class:e.prefixIcon}):e._e()],2):e._e(),e.getSuffixVisible()?n("span",{staticClass:"el-input__suffix"},[n("span",{staticClass:"el-input__suffix-inner"},[e.showClear&&e.showPwdVisible&&e.isWordLimitVisible?e._e():[e._t("suffix"),e.suffixIcon?n("i",{staticClass:"el-input__icon",class:e.suffixIcon}):e._e()],e.showClear?n("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(e){e.preventDefault()},click:e.clear}}):e._e(),e.showPwdVisible?n("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:e.handlePasswordVisible}}):e._e(),e.isWordLimitVisible?n("span",{staticClass:"el-input__count"},[n("span",{staticClass:"el-input__count-inner"},[e._v("\n "+e._s(e.textLength)+"/"+e._s(e.upperLimit)+"\n ")])]):e._e()],2),e.validateState?n("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",e.validateIcon]}):e._e()]):e._e(),e.$slots.append?n("div",{staticClass:"el-input-group__append"},[e._t("append")],2):e._e()]:n("textarea",e._b({ref:"textarea",staticClass:"el-textarea__inner",style:e.textareaStyle,attrs:{tabindex:e.tabindex,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"textarea",e.$attrs,!1)),e.isWordLimitVisible&&"textarea"===e.type?n("span",{staticClass:"el-input__count"},[e._v(e._s(e.textLength)+"/"+e._s(e.upperLimit))]):e._e()],2)},r=[];i._withStripped=!0;var o=n(4),a=n.n(o),s=n(11),l=n.n(s),u=void 0,c="\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",d=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function h(e){var t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),i=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),r=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width")),o=d.map((function(e){return e+":"+t.getPropertyValue(e)})).join(";");return{contextStyle:o,paddingSize:i,borderSize:r,boxSizing:n}}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;u||(u=document.createElement("textarea"),document.body.appendChild(u));var i=h(e),r=i.paddingSize,o=i.borderSize,a=i.boxSizing,s=i.contextStyle;u.setAttribute("style",s+";"+c),u.value=e.value||e.placeholder||"";var l=u.scrollHeight,d={};"border-box"===a?l+=o:"content-box"===a&&(l-=r),u.value="";var f=u.scrollHeight-r;if(null!==t){var p=f*t;"border-box"===a&&(p=p+r+o),l=Math.max(p,l),d.minHeight=p+"px"}if(null!==n){var m=f*n;"border-box"===a&&(m=m+r+o),l=Math.min(m,l)}return d.height=l+"px",u.parentNode&&u.parentNode.removeChild(u),u=null,d}var p=n(9),m=n.n(p),v=n(21),g={name:"ElInput",componentName:"ElInput",mixins:[a.a,l.a],inheritAttrs:!1,inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:"text"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return m()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"===typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(e){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[e])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var e=this;this.$nextTick((function(){e.setNativeInputValue(),e.resizeTextarea(),e.updateIconOffset()}))}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(e){this.focused=!1,this.$emit("blur",e),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var e=this.autosize,t=this.type;if("textarea"===t)if(e){var n=e.minRows,i=e.maxRows;this.textareaCalcStyle=f(this.$refs.textarea,n,i)}else this.textareaCalcStyle={minHeight:f(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var e=this.getInput();e&&e.value!==this.nativeInputValue&&(e.value=this.nativeInputValue)},handleFocus:function(e){this.focused=!0,this.$emit("focus",e)},handleCompositionStart:function(){this.isComposing=!0},handleCompositionUpdate:function(e){var t=e.target.value,n=t[t.length-1]||"";this.isComposing=!Object(v["isKorean"])(n)},handleCompositionEnd:function(e){this.isComposing&&(this.isComposing=!1,this.handleInput(e))},handleInput:function(e){this.isComposing||e.target.value!==this.nativeInputValue&&(this.$emit("input",e.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(e){this.$emit("change",e.target.value)},calcIconOffset:function(e){var t=[].slice.call(this.$el.querySelectorAll(".el-input__"+e)||[]);if(t.length){for(var n=null,i=0;i<t.length;i++)if(t[i].parentNode===this.$el){n=t[i];break}if(n){var r={suffix:"append",prefix:"prepend"},o=r[e];this.$slots[o]?n.style.transform="translateX("+("suffix"===e?"-":"")+this.$el.querySelector(".el-input-group__"+o).offsetWidth+"px)":n.removeAttribute("style")}}},updateIconOffset:function(){this.calcIconOffset("prefix"),this.calcIconOffset("suffix")},clear:function(){this.$emit("input",""),this.$emit("change",""),this.$emit("clear")},handlePasswordVisible:function(){var e=this;this.passwordVisible=!this.passwordVisible,this.$nextTick((function(){e.focus()}))},getInput:function(){return this.$refs.input||this.$refs.textarea},getSuffixVisible:function(){return this.$slots.suffix||this.suffixIcon||this.showClear||this.showPassword||this.isWordLimitVisible||this.validateState&&this.needStatusIcon}},created:function(){this.$on("inputSelect",this.select)},mounted:function(){this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()},updated:function(){this.$nextTick(this.updateIconOffset)}},y=g,b=n(0),_=Object(b["a"])(y,i,r,!1,null,null,null);_.options.__file="packages/input/src/input.vue";var w=_.exports;w.install=function(e){e.component(w.name,w)};t["default"]=w},9:function(e,t){e.exports=n("f86a")}})},d02c:function(e,t,n){t=e.exports=n("690e")(!1),t.i(n("b797"),""),t.push([e.i,'.from[data-v-1b97e2f3]{overflow:hidden;margin-bottom:20px}.from .fromitem[data-v-1b97e2f3]{float:left;margin-right:20px}.from .fromitem span[data-v-1b97e2f3]{text-align:right;vertical-align:middle;font-size:14px;color:#606266;line-height:40px;padding:0 12px 0 0;-webkit-box-sizing:border-box;box-sizing:border-box}.talent-box[data-v-1b97e2f3]{padding:15px 20px 20px}.talent-box .title[data-v-1b97e2f3]{font-size:18px;font-weight:400;margin-bottom:15px}.offer-root[data-v-1b97e2f3]{color:#666}.offer-root .projectForm[data-v-1b97e2f3]{padding:0 0 10px 0}.offer-root .projectForm .projectForm[data-v-1b97e2f3]{margin-top:10px}.offer-root .projectForm .el-form-item[data-v-1b97e2f3]{margin-bottom:0}.continue[data-v-1b97e2f3]{color:#0286df}.common-offer-dialog .dialog-footer[data-v-1b97e2f3],.offer-pagination[data-v-1b97e2f3]{text-align:center}.offer-pagination .el-pagination[data-v-1b97e2f3]{margin:20px 0}.re-form .el-cascader[data-v-1b97e2f3],.re-form .el-date-editor[data-v-1b97e2f3],.re-form .el-input-number[data-v-1b97e2f3],.re-form .el-range-editor[data-v-1b97e2f3],.re-form .el-select[data-v-1b97e2f3]{width:100%}.re-form .el-input-number .el-input__inner[data-v-1b97e2f3]{text-align:left}.re-form .input-number-icon.el-input-number .el-input[data-v-1b97e2f3]{display:-webkit-box;display:-ms-flexbox;display:flex}.re-form .input-number-icon.el-input-number .el-input .el-input__inner[data-v-1b97e2f3]{border-radius:4px 0 4px 0}.re-form .input-number-icon.el-input-number .el-input[data-v-1b97e2f3]:after{-webkit-box-flex:1;-ms-flex:1;flex:1;padding:0 20px;height:38px;display:inline-block;background:#f5f7fa;text-align:center;border:1px solid #dcdfe6;border-left:0;border-radius:0 4px 4px 0;color:#909399}.re-form .number-yuan.el-input-number .el-input[data-v-1b97e2f3]:after{content:"\\5143"}.re-form .number-tian.el-input-number .el-input[data-v-1b97e2f3]:after{content:"\\5929"}.re-form .line-feed .el-form-item__label[data-v-1b97e2f3]{line-height:inherit!important}.el-submenu__icon-arrow[data-v-1b97e2f3]{position:absolute!important;top:50%!important;right:8px!important;margin-top:-7px!important;-webkit-transition:-webkit-transform .3s!important;transition:-webkit-transform .3s!important;transition:transform .3s!important;transition:transform .3s,-webkit-transform .3s!important;font-size:12px!important}.base-pagination[data-v-1b97e2f3]{text-align:center}.base-pagination .el-pagination[data-v-1b97e2f3]{margin:20px 0}.pointer[data-v-1b97e2f3]{cursor:pointer}.base-ellipsis[data-v-1b97e2f3]{display:inline-block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.btns-line[data-v-1b97e2f3]{margin-bottom:10px}.base-page-style[data-v-1b97e2f3]{padding:10px 10px}.base-page-style .btns-line[data-v-1b97e2f3]{margin-bottom:10px}.base-page-style .el-table .warning-row .cell[data-v-1b97e2f3]{color:red}.form-w100[data-v-1b97e2f3]{width:100%}.form-w100.el-input-number .el-input__inner[data-v-1b97e2f3]{text-align:left}.base-info-title[data-v-1b97e2f3]{font-size:18px;line-height:20px;color:#0286df;border-bottom:2px dotted #e4e7ed;padding-bottom:10px;margin-bottom:20px;position:relative}.base-info-title span[data-v-1b97e2f3]{border-left:3px solid #0286df;padding-left:10px}.base-info-title .append[data-v-1b97e2f3]{position:absolute;right:10px;top:0}.action-btns .btns[data-v-1b97e2f3]{margin-bottom:10px}.form-btns[data-v-1b97e2f3]{text-align:center}.text-danger[data-v-1b97e2f3]{color:#ff4949}.text-warning[data-v-1b97e2f3]{color:#f7ba2a}.text-blue[data-v-1b97e2f3]{color:#2e90fe}.clearboth[data-v-1b97e2f3]{clear:both}.noselect[data-v-1b97e2f3]{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}input[data-v-1b97e2f3]::-webkit-input-safebox-button{display:none}body[data-v-1b97e2f3]{background-color:#f5f5f5;font-family:Microsoft YaHei,微软雅黑,Arial,sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}.hover_02[data-v-1b97e2f3]:hover{color:#0286df!important}.color-default[data-v-1b97e2f3]{color:#0286df}.line-width[data-v-1b97e2f3]{background:#ededed;width:896px;height:1px}.bg-default[data-v-1b97e2f3]{background:#0286df}.hover-color-default[data-v-1b97e2f3]:hover{color:#0286df}.hover-bg-default[data-v-1b97e2f3]:hover{background:#ffeeea!important}.default-color[data-v-1b97e2f3]{color:#0286df}.page-left[data-v-1b97e2f3]{float:left}.page-right[data-v-1b97e2f3]{float:right}.colordefault[data-v-1b97e2f3]{color:#0286df}.colorgrey[data-v-1b97e2f3]{color:#ccc}.colortheme[data-v-1b97e2f3]{color:#ff8b00}.colorff4[data-v-1b97e2f3]{color:#ff4e00}.color-orange[data-v-1b97e2f3]{color:#f60}.p20[data-v-1b97e2f3]{padding:20px}.pl20[data-v-1b97e2f3]{padding-left:20px}.pb20[data-v-1b97e2f3]{padding-bottom:20px}.mt10[data-v-1b97e2f3]{margin-top:10px}.mt20[data-v-1b97e2f3]{margin-top:20px}.ml26[data-v-1b97e2f3]{margin-left:26px}.ml400[data-v-1b97e2f3]{margin-left:400px}.mb10[data-v-1b97e2f3]{margin-bottom:10px}.mb20[data-v-1b97e2f3]{margin-bottom:20px}.ml10[data-v-1b97e2f3]{margin-left:10px}.text-center[data-v-1b97e2f3]{text-align:center}.clearfix[data-v-1b97e2f3]{overflow:hidden}.fl[data-v-1b97e2f3]{float:left}.fr[data-v-1b97e2f3]{float:right}.avatar-uploader .el-upload[data-v-1b97e2f3]{border:1px dashed #d9d9d9;border-radius:6px;cursor:pointer;position:relative;overflow:hidden}.avatar-uploader .el-upload[data-v-1b97e2f3]:hover{border-color:#409eff}.avatar-uploader-icon[data-v-1b97e2f3]{font-size:28px;color:#8c939d;width:178px;height:178px;line-height:178px;text-align:center}.avatar-uploader-icon[data-v-1b97e2f3]:before{line-height:178px}.avatar[data-v-1b97e2f3]{width:178px;height:178px;border:1px dashed #c0ccda;border-radius:6px;display:block}.cell-button[data-v-1b97e2f3]{color:#0286df!important}.cell-del-button[data-v-1b97e2f3]{color:#f60!important}.tableStyle[data-v-1b97e2f3]{border-top:1px solid #e4e7ed;width:100%;margin-top:20px}.tabs-box .el-tabs .el-tabs__header[data-v-1b97e2f3]{margin:0}.tabs-box .el-tabs__item .is-active[data-v-1b97e2f3]{color:#0286df}.tabs-box .el-tabs__item[data-v-1b97e2f3]{color:#333}.m-l-15[data-v-1b97e2f3]{margin-left:15px!important}.m-l-20[data-v-1b97e2f3]{margin-left:20px!important}.m-l-40[data-v-1b97e2f3]{margin-left:40px!important}.pagination-box[data-v-1b97e2f3]{text-align:center;font-size:16px}.pagination-box .el-pagination[data-v-1b97e2f3]{margin-top:20px}.el-input__count[data-v-1b97e2f3]{background:none!important;bottom:-10px!important}.el-link.el-link--primary[data-v-1b97e2f3],.el-tabs__item.is-active[data-v-1b97e2f3]{color:#0286df!important}.info2 .successinfo i[data-v-1b97e2f3]{font-size:75px!important;color:#78c06e!important}.el-table__body tr.hover-row td[data-v-1b97e2f3]{background-color:#f5f7fa!important}.el-pager li.active[data-v-1b97e2f3]{color:#0286df!important}.el-loading-mask[data-v-1b97e2f3]{z-index:9999}.el-icon-loading[data-v-1b97e2f3]{font-size:40px}.el-button.is-loading .el-icon-loading[data-v-1b97e2f3]{font-size:14px}.el-tooltip__popper[data-v-1b97e2f3]{max-width:80%}li[data-v-1b97e2f3],ul[data-v-1b97e2f3]{list-style:none}a[data-v-1b97e2f3]{outline:medium none;text-decoration:none}.colorff66[data-v-1b97e2f3]{color:#f60}.color02[data-v-1b97e2f3]{color:#0286df}.color33[data-v-1b97e2f3]{color:#333}.colorff[data-v-1b97e2f3]{color:#fff}.color00[data-v-1b97e2f3]{color:#000}.color66[data-v-1b97e2f3]{color:#666}.color96[data-v-1b97e2f3]{color:#969696}.colorbf[data-v-1b97e2f3]{color:#bfbfbf}.color59[data-v-1b97e2f3]{color:#595959}.color5e[data-v-1b97e2f3]{color:#5e5e5e}.colorcc[data-v-1b97e2f3]{color:#ccc}.color6f[data-v-1b97e2f3]{color:#6f6f6f}.color2c[data-v-1b97e2f3]{color:#2c2c2b}.color8d[data-v-1b97e2f3]{color:#8d8d8d}.h-green[data-v-1b97e2f3]{color:#78c06e}.h-red[data-v-1b97e2f3]{color:#f60}.h-orange[data-v-1b97e2f3]{color:#f7ab01}.color-link[data-v-1b97e2f3],.h-blue[data-v-1b97e2f3]{color:#0286df}.bgf5[data-v-1b97e2f3]{background:#f5f5f5}.bgc9[data-v-1b97e2f3]{background:#c9c9c9}.bgff[data-v-1b97e2f3]{background:#fff}.bg02[data-v-1b97e2f3]{background:#0286df}.bg66[data-v-1b97e2f3]{background:#666}.bgb3[data-v-1b97e2f3]{background:#b3b3b3}.font10[data-v-1b97e2f3]{font-size:10px}.font12[data-v-1b97e2f3]{font-size:12px}.font14[data-v-1b97e2f3]{font-size:14px}.font16[data-v-1b97e2f3]{font-size:16px}.font18[data-v-1b97e2f3]{font-size:18px}.font20[data-v-1b97e2f3]{font-size:20px}.font22[data-v-1b97e2f3]{font-size:22px}.font24[data-v-1b97e2f3]{font-size:24px}.font28[data-v-1b97e2f3]{font-size:28px}.font36[data-v-1b97e2f3]{font-size:36px}.overflow[data-v-1b97e2f3]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.border02[data-v-1b97e2f3]{border:1px solid #0286df}.tc-1[data-v-1b97e2f3]{width:100%;height:1px}.tc-2[data-v-1b97e2f3]{width:100%;height:2px}.tc-3[data-v-1b97e2f3]{width:100%;height:3px}.tc-4[data-v-1b97e2f3]{width:100%;height:4px}.tc-5[data-v-1b97e2f3]{width:100%;height:5px}.tc-6[data-v-1b97e2f3]{width:100%;height:6px}.tc-7[data-v-1b97e2f3]{width:100%;height:7px}.tc-8[data-v-1b97e2f3]{width:100%;height:8px}.tc-9[data-v-1b97e2f3]{width:100%;height:9px}.tc-10[data-v-1b97e2f3]{width:100%;height:10px}.tc-13[data-v-1b97e2f3]{width:100%;height:13px}.tc-15[data-v-1b97e2f3]{width:100%;height:15px}.tc-20[data-v-1b97e2f3]{width:100%;height:20px}.tc-30[data-v-1b97e2f3]{width:100%;height:30px}.tc-40[data-v-1b97e2f3]{width:100%;height:40px}.tc-45[data-v-1b97e2f3]{width:100%;height:45px}.tc-50[data-v-1b97e2f3]{width:100%;height:50px}.tc-70[data-v-1b97e2f3]{width:100%;height:70px}.tc-80[data-v-1b97e2f3]{width:100%;height:80px}.tc-100[data-v-1b97e2f3]{width:100%;height:100px}.tc-200[data-v-1b97e2f3]{width:100%;height:200px}.cursor[data-v-1b97e2f3]{cursor:pointer}[data-v-1b97e2f3]::-webkit-scrollbar{width:9px;height:9px}[data-v-1b97e2f3]::-webkit-scrollbar-track{background-color:transparent;border-radius:2em}[data-v-1b97e2f3]::-webkit-scrollbar-thumb{background-color:#e1e1e1;border-radius:2em}.p-l-no[data-v-1b97e2f3]{padding-left:0}.el-button.h-btn-reset[data-v-1b97e2f3]{margin-left:10px;padding:12px 10px}.h-search-form .el-input[data-v-1b97e2f3]{width:200px}.h-search-form .el-date-editor--daterange.el-input__inner[data-v-1b97e2f3]{width:240px}.h-search-form.el-form--inline .el-form-item[data-v-1b97e2f3]{margin-right:10px}.btn-submit-box[data-v-1b97e2f3]{margin-top:40px;text-align:center}.list-table-td-a[data-v-1b97e2f3]{color:#0286df;cursor:pointer}.list-table-td-a[data-v-1b97e2f3]:hover{color:#0286df;text-decoration:underline}.h-main-box[data-v-1b97e2f3]{padding:10px}.h-main-box-tab[data-v-1b97e2f3]{padding:5px}.h-tab-content[data-v-1b97e2f3]{min-height:200px;padding:20px;border:1px solid #e4e7ed;margin-top:-16px}.h-divide-title[data-v-1b97e2f3]{font-size:16px;line-height:20px;color:#0286df;border-bottom:2px dotted #e4e7ed;padding-bottom:10px;margin:20px 0}.h-divide-title>span[data-v-1b97e2f3]{border-left:3px solid #0286df;padding-left:10px}',""])},d053:function(e,t,n){"use strict";var i=n("7a07");function r(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new i(e),t(n.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e,t=new r((function(t){e=t}));return{token:t,cancel:e}},e.exports=r},d112:function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
314
314
  //! moment.js locale configuration
315
315
  function t(e,t,n,i){var r=e+" ";switch(n){case"s":return t||i?"nekaj sekund":"nekaj sekundami";case"ss":return r+=1===e?t?"sekundo":"sekundi":2===e?t||i?"sekundi":"sekundah":e<5?t||i?"sekunde":"sekundah":"sekund",r;case"m":return t?"ena minuta":"eno minuto";case"mm":return r+=1===e?t?"minuta":"minuto":2===e?t||i?"minuti":"minutama":e<5?t||i?"minute":"minutami":t||i?"minut":"minutami",r;case"h":return t?"ena ura":"eno uro";case"hh":return r+=1===e?t?"ura":"uro":2===e?t||i?"uri":"urama":e<5?t||i?"ure":"urami":t||i?"ur":"urami",r;case"d":return t||i?"en dan":"enim dnem";case"dd":return r+=1===e?t||i?"dan":"dnem":2===e?t||i?"dni":"dnevoma":t||i?"dni":"dnevi",r;case"M":return t||i?"en mesec":"enim mesecem";case"MM":return r+=1===e?t||i?"mesec":"mesecem":2===e?t||i?"meseca":"mesecema":e<5?t||i?"mesece":"meseci":t||i?"mesecev":"meseci",r;case"y":return t||i?"eno leto":"enim letom";case"yy":return r+=1===e?t||i?"leto":"letom":2===e?t||i?"leti":"letoma":e<5?t||i?"leta":"leti":t||i?"let":"leti",r}}var n=e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},d150:function(e,t,n){var i,r,o,a,s=n("b20c"),l=n("92e1"),u=n("7bb6"),c=n("1440"),d=n("aa0d"),h=n("d7fc"),f=n("682a"),p=n("a17f"),m=s.setImmediate,v=s.clearImmediate,g=s.process,y=s.MessageChannel,b=s.Dispatch,_=0,w={},x="onreadystatechange";try{i=s.location}catch(D){}var k=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},M=function(e){return function(){k(e)}},S=function(e){k(e.data)},C=function(e){s.postMessage(String(e),i.protocol+"//"+i.host)};m&&v||(m=function(e){var t=[],n=arguments.length,i=1;while(n>i)t.push(arguments[i++]);return w[++_]=function(){(l(e)?e:Function(e)).apply(void 0,t)},r(_),_},v=function(e){delete w[e]},p?r=function(e){g.nextTick(M(e))}:b&&b.now?r=function(e){b.now(M(e))}:y&&!f?(o=new y,a=o.port2,o.port1.onmessage=S,r=c(a.postMessage,a,1)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&i&&"file:"!==i.protocol&&!u(C)?(r=C,s.addEventListener("message",S,!1)):r=x in h("script")?function(e){d.appendChild(h("script"))[x]=function(){d.removeChild(this),k(e)}}:function(e){setTimeout(M(e),0)}),e.exports={set:m,clear:v}},d18a:function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
316
316
  //! moment.js locale configuration
@@ -355,6 +355,6 @@ var t=e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_
355
355
  //! moment.js locale configuration
356
356
  var t=["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],n=["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],i=["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],r=["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],o=["Do","Lu","Má","Cé","Dé","A","Sa"],a=e.defineLocale("ga",{months:t,monthsShort:n,monthsParseExact:!0,weekdays:i,weekdaysShort:r,weekdaysMin:o,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){var t=1===e?"d":e%10===2?"na":"mh";return e+t},week:{dow:1,doy:4}});return a}))},fa2c:function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
357
357
  //! moment.js locale configuration
358
- function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi",i;case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta",i;case"h":return t?"jedan sat":"jednog sata";case"hh":return i+=1===e?"sat":2===e||3===e||4===e?"sata":"sati",i;case"dd":return i+=1===e?"dan":"dana",i;case"MM":return i+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci",i;case"yy":return i+=1===e?"godina":2===e||3===e||4===e?"godine":"godina",i}}var n=e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},faec:function(e,t,n){t=e.exports=n("690e")(!1),t.i(n("b797"),""),t.push([e.i,'.from[data-v-6dbe2c3a]{overflow:hidden;margin-bottom:20px}.from .fromitem[data-v-6dbe2c3a]{float:left;margin-right:20px}.from .fromitem span[data-v-6dbe2c3a]{text-align:right;vertical-align:middle;font-size:14px;color:#606266;line-height:40px;padding:0 12px 0 0;-webkit-box-sizing:border-box;box-sizing:border-box}.talent-box[data-v-6dbe2c3a]{padding:15px 20px 20px}.talent-box .title[data-v-6dbe2c3a]{font-size:18px;font-weight:400;margin-bottom:15px}.offer-root[data-v-6dbe2c3a]{color:#666}.offer-root .projectForm[data-v-6dbe2c3a]{padding:0 0 10px 0}.offer-root .projectForm .projectForm[data-v-6dbe2c3a]{margin-top:10px}.offer-root .projectForm .el-form-item[data-v-6dbe2c3a]{margin-bottom:0}.continue[data-v-6dbe2c3a]{color:#0286df}.common-offer-dialog .dialog-footer[data-v-6dbe2c3a],.offer-pagination[data-v-6dbe2c3a]{text-align:center}.offer-pagination .el-pagination[data-v-6dbe2c3a]{margin:20px 0}.re-form .el-cascader[data-v-6dbe2c3a],.re-form .el-date-editor[data-v-6dbe2c3a],.re-form .el-input-number[data-v-6dbe2c3a],.re-form .el-range-editor[data-v-6dbe2c3a],.re-form .el-select[data-v-6dbe2c3a]{width:100%}.re-form .el-input-number .el-input__inner[data-v-6dbe2c3a]{text-align:left}.re-form .input-number-icon.el-input-number .el-input[data-v-6dbe2c3a]{display:-webkit-box;display:-ms-flexbox;display:flex}.re-form .input-number-icon.el-input-number .el-input .el-input__inner[data-v-6dbe2c3a]{border-radius:4px 0 4px 0}.re-form .input-number-icon.el-input-number .el-input[data-v-6dbe2c3a]:after{-webkit-box-flex:1;-ms-flex:1;flex:1;padding:0 20px;height:38px;display:inline-block;background:#f5f7fa;text-align:center;border:1px solid #dcdfe6;border-left:0;border-radius:0 4px 4px 0;color:#909399}.re-form .number-yuan.el-input-number .el-input[data-v-6dbe2c3a]:after{content:"\\5143"}.re-form .number-tian.el-input-number .el-input[data-v-6dbe2c3a]:after{content:"\\5929"}.re-form .line-feed .el-form-item__label[data-v-6dbe2c3a]{line-height:inherit!important}.el-submenu__icon-arrow[data-v-6dbe2c3a]{position:absolute!important;top:50%!important;right:8px!important;margin-top:-7px!important;-webkit-transition:-webkit-transform .3s!important;transition:-webkit-transform .3s!important;transition:transform .3s!important;transition:transform .3s,-webkit-transform .3s!important;font-size:12px!important}.base-pagination[data-v-6dbe2c3a]{text-align:center}.base-pagination .el-pagination[data-v-6dbe2c3a]{margin:20px 0}.pointer[data-v-6dbe2c3a]{cursor:pointer}.base-ellipsis[data-v-6dbe2c3a]{display:inline-block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.btns-line[data-v-6dbe2c3a]{margin-bottom:10px}.base-page-style[data-v-6dbe2c3a]{padding:10px 10px}.base-page-style .btns-line[data-v-6dbe2c3a]{margin-bottom:10px}.base-page-style .el-table .warning-row .cell[data-v-6dbe2c3a]{color:red}.form-w100[data-v-6dbe2c3a]{width:100%}.form-w100.el-input-number .el-input__inner[data-v-6dbe2c3a]{text-align:left}.base-info-title[data-v-6dbe2c3a]{font-size:18px;line-height:20px;color:#0286df;border-bottom:2px dotted #e4e7ed;padding-bottom:10px;margin-bottom:20px;position:relative}.base-info-title span[data-v-6dbe2c3a]{border-left:3px solid #0286df;padding-left:10px}.base-info-title .append[data-v-6dbe2c3a]{position:absolute;right:10px;top:0}.action-btns .btns[data-v-6dbe2c3a]{margin-bottom:10px}.form-btns[data-v-6dbe2c3a]{text-align:center}.text-danger[data-v-6dbe2c3a]{color:#ff4949}.text-warning[data-v-6dbe2c3a]{color:#f7ba2a}.text-blue[data-v-6dbe2c3a]{color:#2e90fe}.clearboth[data-v-6dbe2c3a]{clear:both}.noselect[data-v-6dbe2c3a]{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}input[data-v-6dbe2c3a]::-webkit-input-safebox-button{display:none}body[data-v-6dbe2c3a]{background-color:#f5f5f5;font-family:Microsoft YaHei,微软雅黑,Arial,sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}.hover_02[data-v-6dbe2c3a]:hover{color:#0286df!important}.color-default[data-v-6dbe2c3a]{color:#0286df}.line-width[data-v-6dbe2c3a]{background:#ededed;width:896px;height:1px}.bg-default[data-v-6dbe2c3a]{background:#0286df}.hover-color-default[data-v-6dbe2c3a]:hover{color:#0286df}.hover-bg-default[data-v-6dbe2c3a]:hover{background:#ffeeea!important}.default-color[data-v-6dbe2c3a]{color:#0286df}.page-left[data-v-6dbe2c3a]{float:left}.page-right[data-v-6dbe2c3a]{float:right}.colordefault[data-v-6dbe2c3a]{color:#0286df}.colorgrey[data-v-6dbe2c3a]{color:#ccc}.colortheme[data-v-6dbe2c3a]{color:#ff8b00}.colorff4[data-v-6dbe2c3a]{color:#ff4e00}.color-orange[data-v-6dbe2c3a]{color:#f60}.p20[data-v-6dbe2c3a]{padding:20px}.pl20[data-v-6dbe2c3a]{padding-left:20px}.pb20[data-v-6dbe2c3a]{padding-bottom:20px}.mt10[data-v-6dbe2c3a]{margin-top:10px}.mt20[data-v-6dbe2c3a]{margin-top:20px}.ml26[data-v-6dbe2c3a]{margin-left:26px}.ml400[data-v-6dbe2c3a]{margin-left:400px}.mb10[data-v-6dbe2c3a]{margin-bottom:10px}.mb20[data-v-6dbe2c3a]{margin-bottom:20px}.ml10[data-v-6dbe2c3a]{margin-left:10px}.text-center[data-v-6dbe2c3a]{text-align:center}.clearfix[data-v-6dbe2c3a]{overflow:hidden}.fl[data-v-6dbe2c3a]{float:left}.fr[data-v-6dbe2c3a]{float:right}.avatar-uploader .el-upload[data-v-6dbe2c3a]{border:1px dashed #d9d9d9;border-radius:6px;cursor:pointer;position:relative;overflow:hidden}.avatar-uploader .el-upload[data-v-6dbe2c3a]:hover{border-color:#409eff}.avatar-uploader-icon[data-v-6dbe2c3a]{font-size:28px;color:#8c939d;width:178px;height:178px;line-height:178px;text-align:center}.avatar-uploader-icon[data-v-6dbe2c3a]:before{line-height:178px}.avatar[data-v-6dbe2c3a]{width:178px;height:178px;border:1px dashed #c0ccda;border-radius:6px;display:block}.cell-button[data-v-6dbe2c3a]{color:#0286df!important}.cell-del-button[data-v-6dbe2c3a]{color:#f60!important}.tableStyle[data-v-6dbe2c3a]{border-top:1px solid #e4e7ed;width:100%;margin-top:20px}.tabs-box .el-tabs .el-tabs__header[data-v-6dbe2c3a]{margin:0}.tabs-box .el-tabs__item .is-active[data-v-6dbe2c3a]{color:#0286df}.tabs-box .el-tabs__item[data-v-6dbe2c3a]{color:#333}.m-l-15[data-v-6dbe2c3a]{margin-left:15px!important}.m-l-20[data-v-6dbe2c3a]{margin-left:20px!important}.m-l-40[data-v-6dbe2c3a]{margin-left:40px!important}.pagination-box[data-v-6dbe2c3a]{text-align:center;font-size:16px}.pagination-box .el-pagination[data-v-6dbe2c3a]{margin-top:20px}.el-input__count[data-v-6dbe2c3a]{background:none!important;bottom:-10px!important}.el-link.el-link--primary[data-v-6dbe2c3a],.el-tabs__item.is-active[data-v-6dbe2c3a]{color:#0286df!important}.info2 .successinfo i[data-v-6dbe2c3a]{font-size:75px!important;color:#78c06e!important}.el-table__body tr.hover-row td[data-v-6dbe2c3a]{background-color:#f5f7fa!important}.el-pager li.active[data-v-6dbe2c3a]{color:#0286df!important}.el-loading-mask[data-v-6dbe2c3a]{z-index:9999}.el-icon-loading[data-v-6dbe2c3a]{font-size:40px}.el-button.is-loading .el-icon-loading[data-v-6dbe2c3a]{font-size:14px}.el-tooltip__popper[data-v-6dbe2c3a]{max-width:80%}li[data-v-6dbe2c3a],ul[data-v-6dbe2c3a]{list-style:none}a[data-v-6dbe2c3a]{outline:medium none;text-decoration:none}.colorff66[data-v-6dbe2c3a]{color:#f60}.color02[data-v-6dbe2c3a]{color:#0286df}.color33[data-v-6dbe2c3a]{color:#333}.colorff[data-v-6dbe2c3a]{color:#fff}.color00[data-v-6dbe2c3a]{color:#000}.color66[data-v-6dbe2c3a]{color:#666}.color96[data-v-6dbe2c3a]{color:#969696}.colorbf[data-v-6dbe2c3a]{color:#bfbfbf}.color59[data-v-6dbe2c3a]{color:#595959}.color5e[data-v-6dbe2c3a]{color:#5e5e5e}.colorcc[data-v-6dbe2c3a]{color:#ccc}.color6f[data-v-6dbe2c3a]{color:#6f6f6f}.color2c[data-v-6dbe2c3a]{color:#2c2c2b}.color8d[data-v-6dbe2c3a]{color:#8d8d8d}.h-green[data-v-6dbe2c3a]{color:#78c06e}.h-red[data-v-6dbe2c3a]{color:#f60}.h-orange[data-v-6dbe2c3a]{color:#f7ab01}.color-link[data-v-6dbe2c3a],.h-blue[data-v-6dbe2c3a]{color:#0286df}.bgf5[data-v-6dbe2c3a]{background:#f5f5f5}.bgc9[data-v-6dbe2c3a]{background:#c9c9c9}.bgff[data-v-6dbe2c3a]{background:#fff}.bg02[data-v-6dbe2c3a]{background:#0286df}.bg66[data-v-6dbe2c3a]{background:#666}.bgb3[data-v-6dbe2c3a]{background:#b3b3b3}.font10[data-v-6dbe2c3a]{font-size:10px}.font12[data-v-6dbe2c3a]{font-size:12px}.font14[data-v-6dbe2c3a]{font-size:14px}.font16[data-v-6dbe2c3a]{font-size:16px}.font18[data-v-6dbe2c3a]{font-size:18px}.font20[data-v-6dbe2c3a]{font-size:20px}.font22[data-v-6dbe2c3a]{font-size:22px}.font24[data-v-6dbe2c3a]{font-size:24px}.font28[data-v-6dbe2c3a]{font-size:28px}.font36[data-v-6dbe2c3a]{font-size:36px}.overflow[data-v-6dbe2c3a]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.border02[data-v-6dbe2c3a]{border:1px solid #0286df}.tc-1[data-v-6dbe2c3a]{width:100%;height:1px}.tc-2[data-v-6dbe2c3a]{width:100%;height:2px}.tc-3[data-v-6dbe2c3a]{width:100%;height:3px}.tc-4[data-v-6dbe2c3a]{width:100%;height:4px}.tc-5[data-v-6dbe2c3a]{width:100%;height:5px}.tc-6[data-v-6dbe2c3a]{width:100%;height:6px}.tc-7[data-v-6dbe2c3a]{width:100%;height:7px}.tc-8[data-v-6dbe2c3a]{width:100%;height:8px}.tc-9[data-v-6dbe2c3a]{width:100%;height:9px}.tc-10[data-v-6dbe2c3a]{width:100%;height:10px}.tc-13[data-v-6dbe2c3a]{width:100%;height:13px}.tc-15[data-v-6dbe2c3a]{width:100%;height:15px}.tc-20[data-v-6dbe2c3a]{width:100%;height:20px}.tc-30[data-v-6dbe2c3a]{width:100%;height:30px}.tc-40[data-v-6dbe2c3a]{width:100%;height:40px}.tc-45[data-v-6dbe2c3a]{width:100%;height:45px}.tc-50[data-v-6dbe2c3a]{width:100%;height:50px}.tc-70[data-v-6dbe2c3a]{width:100%;height:70px}.tc-80[data-v-6dbe2c3a]{width:100%;height:80px}.tc-100[data-v-6dbe2c3a]{width:100%;height:100px}.tc-200[data-v-6dbe2c3a]{width:100%;height:200px}.cursor[data-v-6dbe2c3a]{cursor:pointer}[data-v-6dbe2c3a]::-webkit-scrollbar{width:9px;height:9px}[data-v-6dbe2c3a]::-webkit-scrollbar-track{background-color:transparent;border-radius:2em}[data-v-6dbe2c3a]::-webkit-scrollbar-thumb{background-color:#e1e1e1;border-radius:2em}.p-l-no[data-v-6dbe2c3a]{padding-left:0}.el-button.h-btn-reset[data-v-6dbe2c3a]{margin-left:10px;padding:12px 10px}.h-search-form .el-input[data-v-6dbe2c3a]{width:200px}.h-search-form .el-date-editor--daterange.el-input__inner[data-v-6dbe2c3a]{width:240px}.h-search-form.el-form--inline .el-form-item[data-v-6dbe2c3a]{margin-right:10px}.btn-submit-box[data-v-6dbe2c3a]{margin-top:40px;text-align:center}.list-table-td-a[data-v-6dbe2c3a]{color:#0286df;cursor:pointer}.list-table-td-a[data-v-6dbe2c3a]:hover{color:#0286df;text-decoration:underline}.h-main-box[data-v-6dbe2c3a]{padding:10px}.h-main-box-tab[data-v-6dbe2c3a]{padding:5px}.h-tab-content[data-v-6dbe2c3a]{min-height:200px;padding:20px;border:1px solid #e4e7ed;margin-top:-16px}.h-divide-title[data-v-6dbe2c3a]{font-size:16px;line-height:20px;color:#0286df;border-bottom:2px dotted #e4e7ed;padding-bottom:10px;margin:20px 0}.h-divide-title>span[data-v-6dbe2c3a]{border-left:3px solid #0286df;padding-left:10px}',""])},fb45:function(e,t,n){"use strict";(function(e){var i=n("2004"),r=n("a158"),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o,l=s?i["a"].Buffer:void 0,u=l?l.isBuffer:void 0,c=u||r["a"];t["a"]=c}).call(this,n("2ffc")(e))},fb81:function(e,t,n){"use strict";var i=n("3cea");e.exports=i.call(Function.call,Object.prototype.hasOwnProperty)},fc3a:function(e,t,n){var i=n("8ab0");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("5925").default;r("35976cc5",i,!0,{sourceMap:!1,shadowMode:!1})},fe68:function(e,t,n){var i=n("cac5");e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fea0:function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
358
+ function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi",i;case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta",i;case"h":return t?"jedan sat":"jednog sata";case"hh":return i+=1===e?"sat":2===e||3===e||4===e?"sata":"sati",i;case"dd":return i+=1===e?"dan":"dana",i;case"MM":return i+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci",i;case"yy":return i+=1===e?"godina":2===e||3===e||4===e?"godine":"godina",i}}var n=e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},fb45:function(e,t,n){"use strict";(function(e){var i=n("2004"),r=n("a158"),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o,l=s?i["a"].Buffer:void 0,u=l?l.isBuffer:void 0,c=u||r["a"];t["a"]=c}).call(this,n("2ffc")(e))},fb81:function(e,t,n){"use strict";var i=n("3cea");e.exports=i.call(Function.call,Object.prototype.hasOwnProperty)},fc3a:function(e,t,n){var i=n("8ab0");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("5925").default;r("35976cc5",i,!0,{sourceMap:!1,shadowMode:!1})},fe68:function(e,t,n){var i=n("cac5");e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fea0:function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
359
359
  //! moment.js locale configuration
360
360
  var t=e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});function n(e,t,n,i){var r={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return i||t?r[n][0]:r[n][1]}return t}))}})}));