34 lines
314 KiB
Java
34 lines
314 KiB
Java
|
|
import{R as Go,J as Bt,O as Uo}from"./NodeContainer.vue_vue_type_style_index_0_lang-hKTylTLH-Banxh0Pc.js";import{o as $o}from"./index-Crt100Db-kwMQ9qxI.js";import{P as qo}from"./propStore-Cl0CojEU-DVRhovlH.js";import{h as io,w as oo,i as ne,e as Qn,f as Jn,g as ro,S as ao,j as Tn,O as Zt,l as so,G as Jt,m as Be,n as lo,V as An,y as Ko,o as Xo,v as Vo,q as Yo,M as Zo,p as Qo,r as Jo,N as er,t as tr,x as Ze,z as nr,D as ir,E as or,F as rr,W as li,H as ci,I as co,J as ar,K as sr,Q as lr,R as Wn,U as en,X as cr,Y as dr,_ as uo,a as ur,L as kt,T as ho,b as hr}from"./NodeStyle-B8zHc98v-CG4nvzST.js";import{aP as pr,c5 as Gn,cd as po,b_ as Re,ce as fr,cf as tn,bY as fo,h as di,c1 as gr,cg as mr,v as ui,aC as vr}from"./antd-vue-vendor-BPnV8VqP.js";import{n as go}from"./_commonjsHelpers-B52_cu2H-BG14nIm9.js";import{s as yr}from"./LoopIcon.vue_vue_type_script_setup_true_lang-C5lzCc06-DA3RGWsk.js";import{d as br,f as Dn,e as wr,aC as Cr,h as Er,o as xr,as as Nr,u as hi,aG as Sr,aF as Tr,au as Ar,aB as kr}from"./vue-vendor-C7Zq48Yl.js";import{O as Or}from"./useNode-BoUed8Qy-C7AZqKSZ.js";import{l as _r}from"./runStore-Oe6fP2qb-B0I25-TS.js";var Rr=Object.defineProperty,Mr=Object.defineProperties,Dr=Object.getOwnPropertyDescriptors,pi=Object.getOwnPropertySymbols,Pr=Object.prototype.hasOwnProperty,Lr=Object.prototype.propertyIsEnumerable,fi=(r,e,t)=>e in r?Rr(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,ei=(r,e)=>{for(var t in e||(e={}))Pr.call(e,t)&&fi(r,t,e[t]);if(pi)for(var t of pi(e))Lr.call(e,t)&&fi(r,t,e[t]);return r},ti=(r,e)=>Mr(r,Dr(e)),gi={width:40,height:40},mi={width:40,height:40},vi={width:40,height:40},yi={width:100,height:80},bi={width:100,height:80},Ir=(function(){function r(){globalThis._ids=this,this._ids=new Set}return r.prototype.generateId=function(){return"xxxxxxx".replace(/[x]/g,function(e){var t=Math.random()*16|0,n=e==="x"?t:t&3|8;return n.toString(16)})},r.prototype.next=function(){for(var e=this.generateId();this._ids.has(e);)e=this.generateId();return this._ids.add(e),e},r})(),Br=(globalThis==null?void 0:globalThis._ids)||new Ir;function Ht(){return Br.next()}var mo=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})();(function(r){mo(e,r);function e(t,n){return t.id||(t.id="Event_".concat(Ht())),t.text||(t.text=""),t.text&&typeof t.text=="string"&&(t.text={value:t.text,x:t.x,y:t.y+40}),r.call(this,t,n)||this}return e.prototype.setAttributes=function(){this.r=18},e.prototype.getConnectedTargetRules=function(){var t=r.prototype.getConnectedTargetRules.call(this),n={message:"起始节点不能作为边的终点",validate:function(){return!1}};return t.push(n),t},e.extendKey="StartEventModel",e})(io);(function(r){mo(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.extendKey="StartEventNode",e})(oo);var vo=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),dn=function(){return dn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}return r},dn.apply(this,arguments)};(function(r){vo(e,r);function e(t,n){return t.id||(t.id="Event_".concat(Ht())),t.text||(t.text=""),t.text&&typeof t.text=="string"&&(t.text={value:t.text,x:t.x,y:t.y+40}),r.call(t
|
|||
|
|
`;function sn(r,e,t){var n=Fr(t);if(r!==0&&r!==!1&&!r)return St+n+"<".concat(e," />");var i="";if(e==="#text")return St+n+pn(String(r));if(e==="#cdata-section")return St+n+"<![CDATA["+r+"]]>";if(e==="#comment")return St+n+"<!--"+r+"-->";if("".concat(e).charAt(0)==="-")return" "+e.substring(1)+'="'+zr(r)+'"';if(Array.isArray(r))r.forEach(function(a){i+=sn(a,e,t+1)});else if(Eo(r)==="[object Object]"){var o=Object.keys(r),s="",c="";i+=(t===0?"":St+n)+"<"+e,o.forEach(function(a){a.charAt(0)==="-"?s+=sn(r[a],a,t+1):c+=sn(r[a],a,t+1)}),i+=s+(c!==""?">".concat(c).concat(St+n,"</").concat(e,">"):" />")}else i+=St+n+"<".concat(e,">").concat(pn(String(r)),"</").concat(e,">");return i}function Wr(r){var e="";for(var t in r)e+=sn(r[t],t,0);return e}var Je=function(){};Je.ObjTree=function(){return this};Je.ObjTree.VERSION="0.23";Je.ObjTree.prototype.xmlDecl=`<?xml version="1.0" encoding="UTF-8" ?>
|
|||
|
|
`;Je.ObjTree.prototype.attr_prefix="-";Je.ObjTree.prototype.parseXML=function(r){var e;if(window.DOMParser){var t=new DOMParser,n=t.parseFromString(r,"application/xml");if(!n)return;e=n.documentElement}else window.ActiveXObject&&(t=new ActiveXObject("Microsoft.XMLDOM"),t.async=!1,t.loadXML(r),e=t.documentElement);if(e)return this.parseDOM(e)};Je.ObjTree.prototype.parseHTTP=function(r,e,t){var n={};for(var i in e)n[i]=e[i];if(n.method||(typeof n.postBody=="undefined"&&typeof n.postbody=="undefined"&&typeof n.parameters=="undefined"?n.method="get":n.method="post"),t){n.asynchronous=!0;var o=this,s=t,c=n.onComplete;n.onComplete=function(d){var u;d&&d.responseXML&&d.responseXML.documentElement&&(u=o.parseDOM(d.responseXML.documentElement)),s(u,d),c&&c(d)}}else n.asynchronous=!1;var a;if(typeof HTTP!="undefined"&&HTTP.Request){n.uri=r;var l=new HTTP.Request(n);l&&(a=l.transport)}else if(typeof Ajax!="undefined"&&Ajax.Request){var l=new Ajax.Request(r,n);l&&(a=l.transport)}if(t)return a;if(a&&a.responseXML&&a.responseXML.documentElement)return this.parseDOM(a.responseXML.documentElement)};Je.ObjTree.prototype.parseDOM=function(r){if(r){if(this.__force_array={},this.force_array)for(var e=0;e<this.force_array.length;e++)this.__force_array[this.force_array[e]]=1;var t=this.parseElement(r);if(this.__force_array[r.nodeName]&&(t=[t]),r.nodeType!=11){var n={};n[r.nodeName]=t,t=n}return t}};Je.ObjTree.prototype.parseElement=function(r){if(r.nodeType!=7){if(r.nodeType==3||r.nodeType==4||r.nodeType==8){var e=r.nodeValue.match(/[^\x00-\x20]/);return e==null?void 0:r.nodeValue}var t=null,n={};if(r.attributes&&r.attributes.length){t={};for(var i=0;i<r.attributes.length;i++){var o=r.attributes[i].nodeName;if(typeof o=="string"){var s=r.attributes[i].nodeValue;try{s=JSON.parse(r.attributes[i].nodeValue.replace(/'/g,'"'))}catch(l){s=r.attributes[i].nodeValue}s&&(o=this.attr_prefix+o,typeof n[o]=="undefined"&&(n[o]=0),n[o]++,this.addNode(t,o,n[o],s))}}}if(r.childNodes&&r.childNodes.length){var c=!0;t&&(c=!1);for(var i=0;i<r.childNodes.length&&c;i++){var a=r.childNodes[i].nodeType;a==3||a==4||a==8||(c=!1)}if(c){t||(t="");for(var i=0;i<r.childNodes.length;i++)t+=r.childNodes[i].nodeValue}else{t||(t={});for(var i=0;i<r.childNodes.length;i++){var o=r.childNodes[i].nodeName;if(typeof o=="string"){var s=this.parseElement(r.childNodes[i]);s&&(typeof n[o]=="undefined"&&(n[o]=0),n[o]++,this.addNode(t,o,n[o],s))}}}}else t===null&&(t={});return t}};Je.ObjTree.prototype.addNode=function(r,e,t,n){this.__force_array[e]?(t==1&&(r[e]=[]),r[e][r[e].length]=n):t==1?r[e]=n:t==2?r[e]=[r[e],n]:r[e][r[e].length]=n};Je.ObjTree.prototype.writeXML=function(r){var e=this.hash_to_xml(null,r);return this.xmlDecl+e};Je.ObjTree.prototype.hash_to_xml=function(r,e){var t=[],n=[];for(var i in e)if(e.hasOwnProperty(i)){var o=e[i];i.charAt(0)!=this.attr_prefix?typeof o=="undefined"||o==null?t[t.length]="<"+i+" />":typeof o=="object"&&o.constructor==Array?t[t.length]=this.array_to_xml(i,o):typeof o=="object"?t[t.length]=this.hash_to_xml(i,o):t[t.length]=this.scalar_to_xml(i,o):n[n.length]=" "+i.substring(1)+'="'+this.xml_escape(o)+'"'}var s=n.join(""),c=t.join("");return typeof r=="undefined"||r==null||(t.length>0?c.match(/\n/)?c="<"+r+s+`>
|
|||
|
|
`+c+"</"+r+`>
|
|||
|
|
`:c="<"+r+s+">"+c+"</"+r+`>
|
|||
|
|
`:c="<"+r+s+` />
|
|||
|
|
`),c};Je.ObjTree.prototype.array_to_xml=function(r,e){for(var t=[],n=0;n<e.length;n++){var i=e[n];typeof i=="undefined"||i==null?t[t.length]="<"+r+" />":typeof i=="object"&&i.constructor==Array?t[t.length]=this.array_to_xml(r,i):typeof i=="object"?t[t.length]=this.hash_to_xml(r,i):t[t.length]=this.scalar_to_xml(r,i)}return t.join("")};Je.ObjTree.prototype.scalar_to_xml=function(r,e){return r=="#text"?this.xml_escape(e):"<"+r+">"+this.xml_escape(e)+"</"+r+`>
|
|||
|
|
`};Je.ObjTree.prototype.xml_escape=pn;var Gr=function(r){return new Je.ObjTree().parseXML(r)},Ur=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),$n=function(){return $n=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}return r},$n.apply(this,arguments)},kn=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(c){s={error:c}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return o},vt;(function(r){r.START="bpmn:startEvent",r.END="bpmn:endEvent",r.GATEWAY="bpmn:exclusiveGateway",r.USER="bpmn:userTask",r.SYSTEM="bpmn:serviceTask",r.FLOW="bpmn:sequenceFlow"})(vt||(vt={}));var xo=["-name","-id","bpmn:incoming","bpmn:outgoing","-sourceRef","-targetRef"],Ci=["properties","startPoint","endPoint","pointsList"],No=function(r){return String(r||"").replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'")};function Ei(r){var e=r?Ci.concat(r):Ci;return function(t){function n(i){var o={};return typeof i=="string"?i:Array.isArray(i)?i.map(function(s){return n(s)}):(Object.entries(i).forEach(function(s){var c=kn(s,2),a=c[0],l=c[1];typeof l!="object"?a.indexOf("-")===0||["#text","#cdata-section","#comment"].includes(a)?o[a]=l:o["-".concat(a)]=l:e.includes(a)?o["-".concat(a)]=n(l):o[a]=n(l)}),o)}return n(t)}}function fn(r){var e={};return Object.entries(r).forEach(function(t){var n=kn(t,2),i=n[0],o=n[1];i.indexOf("-")===0?e[i.substring(1)]=hn(o):typeof o=="string"?e[i]=o:Object.prototype.toString.call(o)==="[object Object]"?e[i]=fn(o):Array.isArray(o)?e[i]=o.map(function(s){return fn(s)}):e[i]=o}),e}function $r(r,e,t){var n=new Map;e.nodes.forEach(function(o){var s,c={"-id":o.id};if(!((s=o.text)===null||s===void 0)&&s.value&&(c["-name"]=o.text.value),o.properties){var a=Ei(t)(o.properties);Object.assign(c,a)}n.set(o.id,c),r[o.type]?Array.isArray(r[o.type])?r[o.type].push(c):r[o.type]=[r[o.type],c]:r[o.type]=c});var i=e.edges.map(function(o){var s,c,a=n.get(o.targetNodeId);a["bpmn:incoming"]?Array.isArray(a["bpmn:incoming"])?a["bpmn:incoming"].push(o.id):a["bpmn:incoming"]=[a["bpmn:incoming"],o.id]:a["bpmn:incoming"]=o.id;var l={"-id":o.id,"-sourceRef":o.sourceNodeId,"-targetRef":o.targetNodeId};if(!((s=o.text)===null||s===void 0)&&s.value&&(l["-name"]=(c=o.text)===null||c===void 0?void 0:c.value),o.properties){var d=Ei(t)(o.properties);Object.assign(l,d)}return l});e.edges.forEach(function(o){var s=n.get(o.sourceNodeId);s["bpmn:outgoing"]?Array.isArray(s["bpmn:outgoing"])?s["bpmn:outgoing"].push(o.id):s["bpmn:outgoing"]=[s["bpmn:outgoing"],o.id]:s["bpmn:outgoing"]=o.id}),r[vt.FLOW]=i}function qr(r,e){r["bpmndi:BPMNEdge"]=e.edges.map(function(t){var n,i=t.id,o=t.pointsList.map(function(c){var a=c.x,l=c.y;return{"-x":a,"-y":l}}),s={"-id":"".concat(i,"_di"),"-bpmnElement":i,"di:waypoint":o};return!((n=t.text)===null||n===void 0)&&n.value&&(s["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":t.text.x-t.text.value.length*10/2,"-y":t.text.y-7,"-width":t.text.value.length*10,"-height":14}}),s}),r["bpmndi:BPMNShape"]=e.nodes.map(function(t){var n,i=t.id,o=100,s=80,c=t.x,a=t.y,l=Ct.shapeConfigMap.get(t.type);l&&(o=l.width,s=l.height),c-=o/2,a-=s/2;var d={"-id":"".concat(i,"_di"),"-bpmnElement":i,"dc:Bounds":{"-x":c,"-y":a,"-width":o,"-height":s}};return!((n=t.text)===null||n===void 0)&&n.value&&(d["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":t.text.x-t.text.value.length*10/2,"-y":t.text.y-7,"-width":t.text.value.length*10,"-height":14}}),d})
|
|||
|
|
`).forEach(function(p){o<p.length&&(o=p.length)}),i)t={value:n,x:Number(i["-x"])+o*10/2,y:Number(i["-y"])+7};else{var s=r["di:waypoint"]||[],c=s[0],a=s[s.length-1]||c,l=(Number((c==null?void 0:c["-x"])||0)+Number((a==null?void 0:a["-x"])||0))/2,d=(Number((c==null?void 0:c["-y"])||0)+Number((a==null?void 0:a["-y"])||0))/2;t={value:n,x:l,y:d}}}var u;Object.entries(e).forEach(function(p){var v=kn(p,2),y=v[0],b=v[1];xo.indexOf(y)===-1&&(u||(u={}),u[y]=b)}),u&&(u=fn(u));var h={id:e["-id"],type:vt.FLOW,pointsList:r["di:waypoint"].map(function(p){return{x:Number(p["-x"]),y:Number(p["-y"])}}),sourceNodeId:e["-sourceRef"],targetNodeId:e["-targetRef"],properties:u};return t&&(h.text=t),h}var Ct=(function(){function r(e){var t=e.lf,n=this;this.adapterOut=function(i,o){var s=$n({},n.processAttributes);$r(s,i,o);var c={"-id":"BPMNPlane_1","-bpmnElement":s["-id"]};qr(c,i);var a=n.definitionAttributes;a["bpmn:process"]=s,a["bpmndi:BPMNDiagram"]={"-id":"BPMNDiagram_1","bpmndi:BPMNPlane":c};var l={"bpmn:definitions":a};return l},this.adapterIn=function(i){if(i)return Kr(i)},t.adapterIn=function(i){return n.adapterIn(i)},t.adapterOut=function(i,o){return n.adapterOut(i,o)},this.processAttributes={"-isExecutable":"true","-id":"Process_".concat(wi())},this.definitionAttributes={"-id":"Definitions_".concat(wi()),"-xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","-xmlns:bpmn":"http://www.omg.org/spec/BPMN/20100524/MODEL","-xmlns:bpmndi":"http://www.omg.org/spec/BPMN/20100524/DI","-xmlns:dc":"http://www.omg.org/spec/DD/20100524/DC","-xmlns:di":"http://www.omg.org/spec/DD/20100524/DI","-targetNamespace":"http://logic-flow.org","-exporter":"logicflow","-exporterVersion":"1.2.0"}}return r.prototype.setCustomShape=function(e,t){r.shapeConfigMap.set(e,t)},r.pluginName="bpmn-adapter",r.shapeConfigMap=new Map,r})();Ct.shapeConfigMap.set(vt.START,{width:gi.width,height:gi.height});Ct.shapeConfigMap.set(vt.END,{width:mi.width,height:mi.height});Ct.shapeConfigMap.set(vt.GATEWAY,{width:vi.width,height:vi.height});Ct.shapeConfigMap.set(vt.SYSTEM,{width:yi.width,height:yi.height});Ct.shapeConfigMap.set(vt.USER,{width:bi.width,height:bi.height});(function(r){Ur(e,r);function e(t){var n=r.call(this,t)||this;n.adapterXmlIn=function(o){var s=typeof o=="string"?n.sanitizeNameAttributes(o):o,c=Gr(s);return n.adapterIn(c)},n.adapterXmlOut=function(o,s){var c=n.adapterOut(o,s);return Wr(c)};var i=t.lf;return i.adapterIn=n.adapterXmlIn,i.adapterOut=n.adapterXmlOut,n}return e.prototype.sanitizeNameAttributes=function(t){return t.replace(/name="([^"]*)"/g,function(n,i){var o=i.replace(/&(?!#?\w+;)/g,"&").replace(/</g,"<").replace(/>/g,">");return'name="'.concat(o,'"')})},e.pluginName="bpmnXmlAdapter",e})(Ct);var Yr=(function(){function r(){globalThis._ids=this,this._ids=new Set}return r.prototype.generateId=function(){var e="xxxxxxx".replace(/[x]/g,function(t){var n=Math.random()*16|0,i=t==="x"?n:n&3|8;return i.toString(16)});return e},r.prototype.next=function(){for(var e=this.generateId();this._ids.has(e);)e=this.generateId();return this._ids.add(e),e},r})(),Zr=(globalThis==null?void 0:globalThis._ids)||new Yr;function Qr(){return Zr.next()}ne("circle",{cx:18,cy:18,r:11,style:"stroke-linecap: round;stroke-linejoin: round;stroke: rgb(34, 36, 42);stroke-width: 2px;fill: white"}),ne("path",{d:"M 18,18 l 2.25,-7.5 m -2.25,7.5 l 5.25,1.5",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 2px;"}),ne("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(0,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ne("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(30,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ne("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(60,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ne("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(90,18,1
|
|||
|
|
`;et.ObjTree.prototype.attr_prefix="-";et.ObjTree.prototype.parseXML=function(r){var e;if(window.DOMParser){var t=new DOMParser,n=t.parseFromString(r,"application/xml");if(!n)return;e=n.documentElement}else window.ActiveXObject&&(t=new ActiveXObject("Microsoft.XMLDOM"),t.async=!1,t.loadXML(r),e=t.documentElement);if(e){var i=this.parseDOM(e);return i}};et.ObjTree.prototype.parseHTTP=function(r,e,t){var n={};for(var i in e)n[i]=e[i];if(n.method||(typeof n.postBody=="undefined"&&typeof n.postbody=="undefined"&&typeof n.parameters=="undefined"?n.method="get":n.method="post"),t){n.asynchronous=!0;var o=this,s=t,c=n.onComplete;n.onComplete=function(d){var u;d&&d.responseXML&&d.responseXML.documentElement&&(u=o.parseDOM(d.responseXML.documentElement)),s(u,d),c&&c(d)}}else n.asynchronous=!1;var a;if(typeof HTTP!="undefined"&&HTTP.Request){n.uri=r;var l=new HTTP.Request(n);l&&(a=l.transport)}else if(typeof Ajax!="undefined"&&Ajax.Request){var l=new Ajax.Request(r,n);l&&(a=l.transport)}if(t)return a;if(a&&a.responseXML&&a.responseXML.documentElement)return this.parseDOM(a.responseXML.documentElement)};et.ObjTree.prototype.parseDOM=function(r){if(r){if(this.__force_array={},this.force_array)for(var e=0;e<this.force_array.length;e++)this.__force_array[this.force_array[e]]=1;var t=this.parseElement(r);if(this.__force_array[r.nodeName]&&(t=[t]),r.nodeType!==11){var n={};n[r.nodeName]=t,t=n}return t}};et.ObjTree.prototype.parseElement=function(r){if(r.nodeType!==7){if(r.nodeType===3||r.nodeType===4||r.nodeType===8){var e=r.nodeValue.match(/[^\x00-\x20]/);return e==null?void 0:r.nodeValue}var t=null,n={};if(r.attributes&&r.attributes.length){t={};for(var i=0;i<r.attributes.length;i++){var o=r.attributes[i].nodeName;if(typeof o=="string"){var s=r.attributes[i].nodeValue;try{s=JSON.parse(r.attributes[i].nodeValue.replace(/'/g,'"'))}catch(l){s=r.attributes[i].nodeValue}s!=null&&(o=this.attr_prefix+o,typeof n[o]=="undefined"&&(n[o]=0),n[o]++,this.addNode(t,o,n[o],s))}}}if(r.childNodes&&r.childNodes.length){var c=!0;t&&(c=!1);for(var i=0;i<r.childNodes.length&&c;i++){var a=r.childNodes[i].nodeType;a===3||a===4||a===8||(c=!1)}if(c){t||(t="");for(var i=0;i<r.childNodes.length;i++)t+=r.childNodes[i].nodeValue}else{t||(t={});for(var i=0;i<r.childNodes.length;i++){var o=r.childNodes[i].nodeName;if(typeof o=="string"){var s=this.parseElement(r.childNodes[i]);s&&(typeof n[o]=="undefined"&&(n[o]=0),n[o]++,this.addNode(t,o,n[o],s))}}}}else t===null&&(t={});return t}};et.ObjTree.prototype.addNode=function(r,e,t,n){this.__force_array[e]?(t===1&&(r[e]=[]),r[e][r[e].length]=n):t===1?r[e]=n:t===2?r[e]=[r[e],n]:r[e][r[e].length]=n};et.ObjTree.prototype.writeXML=function(r){var e=this.hash_to_xml(null,r);return this.xmlDecl+e};et.ObjTree.prototype.hash_to_xml=function(r,e){var t=[],n=[];for(var i in e)if(Gn(e,i)){var o=e[i];i.charAt(0)!==this.attr_prefix?typeof o=="undefined"||o==null?t[t.length]="<".concat(i," />"):typeof o=="object"&&o.constructor===Array?t[t.length]=this.array_to_xml(i,o):typeof o=="object"?t[t.length]=this.hash_to_xml(i,o):t[t.length]=this.scalar_to_xml(i,o):n[n.length]=" ".concat(i.substring(1),'="').concat(this.xml_escape(o),'"')}var s=n.join(""),c=t.join("");return typeof r=="undefined"||r==null||(t.length>0?c.match(/\n/)?c="<".concat(r).concat(s,`>
|
|||
|
|
`).concat(c,"</").concat(r,`>
|
|||
|
|
`):c="<".concat(r).concat(s,">").concat(c,"</").concat(r,`>
|
|||
|
|
`):c="<".concat(r).concat(s,` />
|
|||
|
|
`)),c};et.ObjTree.prototype.array_to_xml=function(r,e){for(var t=[],n=0;n<e.length;n++){var i=e[n];typeof i=="undefined"||i==null?t[t.length]="<".concat(r," />"):typeof i=="object"&&i.constructor===Array?t[t.length]=this.array_to_xml(r,i):typeof i=="object"?t[t.length]=this.hash_to_xml(r,i):t[t.length]=this.scalar_to_xml(r,i)}return t.join("")};et.ObjTree.prototype.scalar_to_xml=function(r,e){return r==="#text"?this.xml_escape(e):"<".concat(r,">").concat(this.xml_escape(e),"</").concat(r,`>
|
|||
|
|
`)};et.ObjTree.prototype.xml_escape=function(r){return r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"')};var la=function(r){return new et.ObjTree().parseXML(r)};function _o(r){return Object.prototype.toString.call(r)}function Bi(r){return" ".repeat(r)}function yn(r){return _o(r)==="[object Object]"?Object.keys(r).reduce(function(e,t){var n=t;return t.charAt(0)==="-"&&(n=t.substring(1)),e[n]=yn(r[t]),e},{}):Array.isArray(r)?r.map(function(e){return yn(e)}):r}function ca(r){var e=r;try{typeof e!="string"&&(e=JSON.parse(r))}catch(t){e=JSON.stringify(yn(r)).replace(/"/g,"'")}return e}var ji=`
|
|||
|
|
`;function ln(r,e,t){var n=Bi(t),i="",o=ji+n;if(e==="-json")return"";if(e==="#text")return o+r;if(e==="#cdata-section")return"".concat(o,"<![CDATA[").concat(r,"]]>");if(e==="#comment")return"".concat(o,"<!--").concat(r,"-->");if("".concat(e).charAt(0)==="-")return" ".concat(e.substring(1),'="').concat(ca(r),'"');if(Array.isArray(r))i+=r.map(function(l){return ln(l,e,t+1)}).join("");else if(_o(r)==="[object Object]"){var s=Object.keys(r),c="",a=r["-json"]?ji+Bi(t+1)+r["-json"]:"";i+="".concat(t===0?"":o,"<").concat(e),s.forEach(function(l){l.charAt(0)==="-"?c+=ln(r[l],l,t+1):a+=ln(r[l],l,t+1)}),i+=c+(a!==""?">".concat(a).concat(o,"</").concat(e,">"):" />")}else i+="".concat(o,"<").concat(e,">").concat(r.toString(),"</").concat(e,">");return i}function da(r){var e="";for(var t in r)e+=ln(r[t],t,0);return e}var ua=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),Kn=function(){return Kn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}return r},Kn.apply(this,arguments)},Hi=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(r,n[i])&&(t[n[i]]=r[n[i]]);return t},ni=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},qe=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(c){s={error:c}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return o},pt=function(r,e,t){if(t||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return r.concat(o||Array.prototype.slice.call(e))},Qe;(function(r){r.START="bpmn:startEvent",r.END="bpmn:endEvent",r.INTERMEDIATE_CATCH="bpmn:intermediateCatchEvent",r.INTERMEDIATE_THROW="bpmn:intermediateThrowEvent",r.BOUNDARY="bpmn:boundaryEvent",r.PARALLEL_GATEWAY="bpmn:parallelGateway",r.INCLUSIVE_GATEWAY="bpmn:inclusiveGateway",r.EXCLUSIVE_GATEWAY="bpmn:exclusiveGateway",r.USER="bpmn:userTask",r.SYSTEM="bpmn:serviceTask",r.FLOW="bpmn:sequenceFlow",r.SUBPROCESS="bpmn:subProcess"})(Qe||(Qe={}));var Ro=["-name","-id","bpmn:incoming","bpmn:outgoing","-sourceRef","-targetRef","-children"],ha=["properties","startPoint","endPoint","pointsList"],bn={in:[],out:["properties.panels","properties.nodeSize","properties.definitionId","properties.timerValue","properties.timerType","properties.definitionType","properties.parent","properties.isBoundaryEventTouchingTask"]},Mo=function(r,e){var t=Object.keys(e||{});return t.forEach(function(n){if(r[n]){var i=e[n],o=i.in,s=i.out;o&&(r[n].in=o),s&&(r[n].out=s)}else r[n]=e[n]}),r},dt={"bpmn:startEvent":{out:function(r){var e,t,n=r.properties;return((t=(e=dt[n.definitionType])===null||e===void 0?void 0:e.out)===null||t===void 0?void 0:t.call(e,r))||{}}},"bpmn:intermediateCatchEvent":{out:function(r){var e,t,n=r.properties;return((t=(e=dt[n.definitionType])===null||e===void 0?void 0:e.out)===null||t===void 0?void 0:t.call(e,r))||{}}},"bpmn:intermediateThrowEvent":{out:function(r){var e,t,n=r.properties;return((t=(e=dt[n.definitionType])===null||e===void 0?void 0:e.
|
|||
|
|
`).forEach(function(l){o<l.length&&(o=l.length)}),t={value:n,x:Number(i["-x"])+o*10/2,y:Number(i["-y"])+7}}var s={};Object.entries(e).forEach(function(l){var d=qe(l,2),u=d[0],h=d[1];Ro.includes(u)||(s[u]=h)}),s=wn(s);var c=r["di:waypoint"].map(function(l){return{x:Number(l["-x"]),y:Number(l["-y"])}}),a={id:e["-id"],type:Qe.FLOW,pointsList:c,sourceNodeId:e["-sourceRef"],targetNodeId:e["-targetRef"],properties:s};return t&&(a.text=t),a}var rt=(function(){function r(e){var t=e.lf,n=this;this.adapterOut=function(i,o){var s,c,a=Kn({},n.processAttributes);fa(a,i,o);var l={"-id":"BPMNPlane_1","-bpmnElement":a["-id"]};ga(l,i);var d=n.definitionAttributes;d["bpmn:process"]=a,d["bpmndi:BPMNDiagram"]={"-id":"BPMNDiagram_1","bpmndi:BPMNPlane":l};var u={"bpmn:definitions":d};if(!((s=o==null?void 0:o.mapping)===null||s===void 0)&&s.out){var h=(c=o==null?void 0:o.mapping)===null||c===void 0?void 0:c.out,p=function(v){Array.isArray(v)&&v.forEach(function(y){return p(y)}),typeof v=="object"&&Object.keys(v).forEach(function(y){var b;(b=h[y])?(v[b]=po.cloneDeep(v[y]),delete v[y],p(v[b])):p(v[y])})};p(u)}return u},this.adapterIn=function(i,o){if(i)return va(i,o)},t.adapterIn=this.adapterIn,t.adapterOut=this.adapterOut,this.processAttributes={"-isExecutable":"true","-id":"Process"},this.definitionAttributes={"-id":"Definitions","-xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","-xmlns:bpmn":"http://www.omg.org/spec/BPMN/20100524/MODEL","-xmlns:bpmndi":"http://www.omg.org/spec/BPMN/20100524/DI","-xmlns:dc":"http://www.omg.org/spec/DD/20100524/DC","-xmlns:di":"http://www.omg.org/spec/DD/20100524/DI","-targetNamespace":"http://logic-flow.org","-exporter":"logicflow","-exporterVersion":"1.2.10"}}return r.prototype.setCustomShape=function(e,t){r.shapeConfigMap.set(e,t)},r.pluginName="bpmn-adapter",r.shapeConfigMap=new Map,r})();rt.shapeConfigMap.set(Qe.START,{width:ki.width,height:ki.height});rt.shapeConfigMap.set(Qe.END,{width:Oi.width,height:Oi.height});rt.shapeConfigMap.set(Qe.INTERMEDIATE_CATCH,{width:vn.width,height:vn.height});rt.shapeConfigMap.set(Qe.INTERMEDIATE_THROW,{width:vn.width,height:vn.height});rt.shapeConfigMap.set(Qe.BOUNDARY,{width:_i.width,height:_i.height});rt.shapeConfigMap.set(Qe.PARALLEL_GATEWAY,{width:Ri.width,height:Ri.height});rt.shapeConfigMap.set(Qe.INCLUSIVE_GATEWAY,{width:Mi.width,height:Mi.height});rt.shapeConfigMap.set(Qe.EXCLUSIVE_GATEWAY,{width:Di.width,height:Di.height});rt.shapeConfigMap.set(Qe.SYSTEM,{width:Pi.width,height:Pi.height});rt.shapeConfigMap.set(Qe.USER,{width:Li.width,height:Li.height});rt.shapeConfigMap.set(Qe.SUBPROCESS,{width:Ii.width,height:Ii.height});(function(r){ua(e,r);function e(t){var n=r.call(this,t)||this;n.adapterXmlIn=function(s){var c=la(s);return n.adapterIn(c,n.props)},n.adapterXmlOut=function(s){var c=n.adapterOut(s,n.props);return da(c)};var i=t.lf,o=t.props;return i.adapterIn=n.adapterXmlIn,i.adapterOut=n.adapterXmlOut,n.props=o,n}return e.pluginName="BPMNAdapter",e})(rt);function wa(r,e,t){var n=e.x,i=e.y,o=r.x,s=r.y,c=o-n,a=s-i,l=c*Math.cos(t)-a*Math.sin(t),d=c*Math.sin(t)+a*Math.cos(t),u=l+n,h=d+i;return{x:u,y:h}}var Ca=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),Cn=function(){return Cn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}return r},Cn.apply(this,arguments)},Ea=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(c){s={error:c}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}retu
|
|||
|
|
`,"\r"," "," "," "," "," ","\u2028","\u2029"],n="com|net|org|edu|gov|mil|aero|asia|biz|cat|coop|info|int|jobs|mobi|museum|name|post|pro|tel|travel|xxx|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cs|cu|cv|cx|cy|cz|dd|de|dj|dk|dm|do|dz|ec|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|ja|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw",i="(((?:(https?://|ftps?://|nntp://)|www\\d{0,3}[.]|[a-z0-9.\\-]+[.]("+n+")\\/)\\S+(?:[^\\s`!\\[\\]{};:'\".,?«»“”‘’])))|(([a-z0-9\\-]+\\.)?[a-z0-9\\-]+\\.("+n+"))",o=new RegExp("^("+n+")$","i"),s=new RegExp(i,"gi");function c(l){return!e.util.getClosestTag(l,"a")}var a=e.Extension.extend({init:function(){e.Extension.prototype.init.apply(this,arguments),this.disableEventHandling=!1,this.subscribe("editableKeypress",this.onKeypress.bind(this)),this.subscribe("editableBlur",this.onBlur.bind(this)),this.document.execCommand("AutoUrlDetect",!1,!1)},isLastInstance:function(){for(var l=0,d=0;d<this.window._mediumEditors.length;d++){var u=this.window._mediumEditors[d];u!==null&&u.getExtensionByName("autoLink")!==void 0&&l++}return l===1},destroy:function(){this.document.queryCommandSupported("AutoUrlDetect")&&this.isLastInstance()&&this.document.execCommand("AutoUrlDetect",!1,!0)},onBlur:function(l,d){this.performLinking(d)},onKeypress:function(l){this.disableEventHandling||e.util.isKey(l,[e.util.keyCode.SPACE,e.util.keyCode.ENTER])&&(clearTimeout(this.performLinkingTimeout),this.performLinkingTimeout=setTimeout(function(){try{var d=this.base.exportSelection();this.performLinking(l.target)&&this.base.importSelection(d,!0)}catch(u){window.console&&window.console.error("Failed to perform linking",u),this.disableEventHandling=!0}}.bind(this),0))},performLinking:function(l){var d=e.util.splitByBlockElements(l),u=!1;d.length===0&&(d=[l]);for(var h=0;h<d.length;h++)u=this.removeObsoleteAutoLinkSpans(d[h])||u,u=this.performLinkingWithinElement(d[h])||u;return this.base.events.updateInput(l,{target:l,currentTarget:l}),u},removeObsoleteAutoLinkSpans:function(l){if(!l||l.nodeType===3)return!1;for(var d=l.querySelectorAll('span[data-auto-link="true"]'),u=!1,h=0;h<d.length;h++){var p=d[h].textContent;if(p.indexOf("://")===-1&&(p=e.util.ensureUrlHasProtocol(p)),d[h].getAttribute("data-href")!==p&&c(d[h])){u=!0;var v=p.replace(/\s+$/,"");if(d[h].getAttribute("data-href")===v){var y=p.length-v.length,b=e.util.splitOffDOMTree(d[h],this.splitTextBeforeEnd(d[h],y));d[h].parentNode.insertBefore(b,d[h].nextSibling)}else e.util.unwrap(d[h],this.document)}}return u},splitTextBeforeEnd:function(l,d){for(var u=this.document.createTreeWalker(l,NodeFilter.SHOW_TEXT,null,!1),h=!0;h;)h=u.lastChild()!==null;for(var p,v,y;d>0&&y!==null;)p=u.currentNode,v=p.nodeValue,v.length>d?(y=p.splitText(v.length-d),d=0):(y=u.previousNode(),d-=v.length);return y},performLinkingWithinElement:function(l){for(var d=this.findLinkableText(l),u=!1,h=0;h<d.length;h++){var p=e.util.findOrCreateMatchingTextNodes(this.document,l,d[h]);this.shouldNotLink(p)||this.createAutoLink(p,d[h].href)}return u},shouldNotLink:function(l){for(var d=!1,u=0;u<l.length&&d===!1;u++)d=!!e.util.traverseUp(l[u],function(h){return h.nodeName.toLowerCase()==="a"||h.getAttribute&&h.getAttribute("data-auto-link")==="true"});return d},findLinkableText:function(l){for(var d=l.textContent,u=null,h=[];(u=s.exec(d))!==null;){var p=!0,v=u.index+u[0].length;p=(u.index===0||t.indexOf(d[u.index-1])!==-1)&&(v===d.length||t.indexOf(d[v])!==-1),p=p&&(u[0].indexOf("/")!==-1||o.test(u[0].split(".").pop(
|
|||
|
|
* vanilla-picker v2.12.3
|
|||
|
|
* https://vanilla-picker.js.org
|
|||
|
|
*
|
|||
|
|
* Copyright 2017-2024 Andreas Borgen (https://github.com/Sphinxxxx), Adam Brooks (https://github.com/dissimulate)
|
|||
|
|
* Released under the ISC license.
|
|||
|
|
*/var oi=function(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")},ri=(function(){function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}})(),rn=(function(){function r(e,t){var n=[],i=!0,o=!1,s=void 0;try{for(var c=e[Symbol.iterator](),a;!(i=(a=c.next()).done)&&(n.push(a.value),!(t&&n.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&c.return&&c.return()}finally{if(o)throw s}}return n}return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return r(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})();String.prototype.startsWith=String.prototype.startsWith||function(r){return this.indexOf(r)===0};String.prototype.padStart=String.prototype.padStart||function(r,e){for(var t=this;t.length<r;)t=e+t;return t};var Ga={cb:"0f8ff",tqw:"aebd7",q:"-ffff",qmrn:"7fffd4",zr:"0ffff",bg:"5f5dc",bsq:"e4c4",bck:"---",nch:"ebcd",b:"--ff",bvt:"8a2be2",brwn:"a52a2a",brw:"deb887",ctb:"5f9ea0",hrt:"7fff-",chcT:"d2691e",cr:"7f50",rnw:"6495ed",crns:"8dc",crms:"dc143c",cn:"-ffff",Db:"--8b",Dcn:"-8b8b",Dgnr:"b8860b",Dgr:"a9a9a9",Dgrn:"-64-",Dkhk:"bdb76b",Dmgn:"8b-8b",Dvgr:"556b2f",Drng:"8c-",Drch:"9932cc",Dr:"8b--",Dsmn:"e9967a",Dsgr:"8fbc8f",DsTb:"483d8b",DsTg:"2f4f4f",Dtrq:"-ced1",Dvt:"94-d3",ppnk:"1493",pskb:"-bfff",mgr:"696969",grb:"1e90ff",rbrc:"b22222",rwht:"af0",stg:"228b22",chs:"-ff",gnsb:"dcdcdc",st:"8f8ff",g:"d7-",gnr:"daa520",gr:"808080",grn:"-8-0",grnw:"adff2f",hnw:"0fff0",htpn:"69b4",nnr:"cd5c5c",ng:"4b-82",vr:"0",khk:"0e68c",vnr:"e6e6fa",nrb:"0f5",wngr:"7cfc-",mnch:"acd",Lb:"add8e6",Lcr:"08080",Lcn:"e0ffff",Lgnr:"afad2",Lgr:"d3d3d3",Lgrn:"90ee90",Lpnk:"b6c1",Lsmn:"a07a",Lsgr:"20b2aa",Lskb:"87cefa",LsTg:"778899",Lstb:"b0c4de",Lw:"e0",m:"-ff-",mgrn:"32cd32",nn:"af0e6",mgnt:"-ff",mrn:"8--0",mqm:"66cdaa",mmb:"--cd",mmrc:"ba55d3",mmpr:"9370db",msg:"3cb371",mmsT:"7b68ee","":"-fa9a",mtr:"48d1cc",mmvt:"c71585",mnLb:"191970",ntc:"5fffa",mstr:"e4e1",mccs:"e4b5",vjw:"dead",nv:"--80",c:"df5e6",v:"808-0",vrb:"6b8e23",rng:"a5-",rngr:"45-",rch:"da70d6",pgnr:"eee8aa",pgrn:"98fb98",ptrq:"afeeee",pvtr:"db7093",ppwh:"efd5",pchp:"dab9",pr:"cd853f",pnk:"c0cb",pm:"dda0dd",pwrb:"b0e0e6",prp:"8-080",cc:"663399",r:"--",sbr:"bc8f8f",rb:"4169e1",sbrw:"8b4513",smn:"a8072",nbr:"4a460",sgrn:"2e8b57",ssh:"5ee",snn:"a0522d",svr:"c0c0c0",skb:"87ceeb",sTb:"6a5acd",sTgr:"708090",snw:"afa",n:"-ff7f",stb:"4682b4",tn:"d2b48c",t:"-8080",thst:"d8bfd8",tmT:"6347",trqs:"40e0d0",vt:"ee82ee",whT:"5deb3",wht:"",hts:"5f5f5",w:"-",wgrn:"9acd32"};function Ui(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,t=e>0?r.toFixed(e).replace(/0+$/,"").replace(/\.$/,""):r.toString();return t||"0"}var Ua=(function(){function r(e,t,n,i){oi(this,r);var o=this;function s(a){if(a.startsWith("hsl")){var l=a.match(/([\-\d\.e]+)/g).map(Number),d=rn(l,4),u=d[0],h=d[1],p=d[2],v=d[3];v===void 0&&(v=1),u/=360,h/=100,p/=100,o.hsla=[u,h,p,v]}else if(a.startsWith("rgb")){var y=a.match(/([\-\d\.e]+)/g).map(Number),b=rn(y,4),k=b[0],B=b[1],W=b[2],K=b[3];K===void 0&&(K=1),o.rgba=[k,B,W,K]}else a.startsWith("#")?o.rgba=r.hexToRgb(a):o.rgba=r.nameToRgb(a)||r.hexToRgb(a)}if(e!==void 0)if(Array.isArray(e))this.rgba=e;else if(n===void 0){var c=e&&""+e;c&&s(c.toLowerCase())}else this.rgba=[e,t,n,i===void 0?1:i]}return ri(r,[{key:"printRGB",value:function(e){var t=e?this.rgba:this.rgba.slice(0,3),n=t.map(function(i,o){return Ui(i,o===3?3:0)});return e?"rgba("+n+")":"rgb("+n+")"}},{key:"printHSL",value:function(e){var t=[360,100,100,1],n=["","%","%",""],i=e?this.hsla:this.hsla.slice(0,3),o=i.map(function(s,c){return Ui(s*t[c],c===3?3:1)+n[c]});return e?"hsla("+o+")":"hsl("+o+")"}},{key:"printHex",value:function(e){var t=this.hex;return e?t:t.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=r.hslToRgb(this._hsla)},set:function(e){e.length==
|
|||
|
|
linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em`,Xa=360,Do="keydown",an="mousedown",Bn="focusin";function mt(r,e){return(e||document).querySelector(r)}function Va(r){r.preventDefault(),r.stopPropagation()}function jn(r,e,t,n,i){r.add(e,Do,function(o){t.indexOf(o.key)>=0&&n(o)})}var Po=(function(){function r(e){oi(this,r),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new $a,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(e)}return ri(r,[{key:"setOptions",value:function(e){var t=this;if(!e)return;var n=this.settings;function i(a,l,d){for(var u in a)l[u]=a[u]}if(e instanceof HTMLElement)n.parent=e;else{n.parent&&e.parent&&n.parent!==e.parent&&(this._events.remove(n.parent),this._popupInited=!1),i(e,n),e.onChange&&(this.onChange=e.onChange),e.onDone&&(this.onDone=e.onDone),e.onOpen&&(this.onOpen=e.onOpen),e.onClose&&(this.onClose=e.onClose);var o=e.color||e.colour;o&&this._setColor(o)}var s=n.parent;if(s&&n.popup&&!this._popupInited){var c=function(a){return t.openHandler(a)};this._events.add(s,"click",c),jn(this._events,s,[" ","Spacebar","Enter"],c),this._popupInited=!0}else e.parent&&!n.popup&&this.show()}},{key:"openHandler",value:function(e){if(this.show()){e&&e.preventDefault(),this.settings.parent.style.pointerEvents="none";var t=e&&e.type===Do?this._domEdit:this.domElement;setTimeout(function(){return t.focus()},100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(e){var t=e&&e.type,n=!1;if(!e)n=!0;else if(t===an||t===Bn){var i=(this.__containedEvent||0)+100;e.timeStamp>i&&(n=!0)}else Va(e),n=!0;n&&this.hide()&&(this.settings.parent.style.pointerEvents="",t!==an&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(e,t){this.closeHandler(),this.setOptions(e),t&&this.openHandler()}},{key:"setColor",value:function(e,t){this._setColor(e,{silent:t})}},{key:"_setColor",value:function(e,t){if(typeof e=="string"&&(e=e.trim()),!!e){t=t||{};var n=void 0;try{n=new Ua(e)}catch(o){if(t.failSilently)return;throw o}if(!this.settings.alpha){var i=n.hsla;i[3]=1,n.hsla=i}this.colour=this.color=n,this._setHSLA(null,null,null,null,t)}}},{key:"setColour",value:function(e,t){this.setColor(e,t)}},{key:"show",value:function(){var e=this.settings.parent;if(!e)return!1;if(this.domElement){var t=this._toggleDOM(!0);return this._setPosition(),t}var n=this.settings.template||'<div class="picker_wrapper" tabindex="-1"><div class="picker_arrow"></div><div class="picker_hue picker_slider"><div class="picker_selector"></div></div><div class="picker_sl"><div class="picker_selector"></div></div><div class="picker_alpha picker_slider"><div class="picker_selector"></div></div><div class="picker_editor"><input aria-label="Type a color name or hex value"/></div><div class="picker_sample"></div><div class="picker_done"><button>Ok</button></div><div class="picker_cancel"><button>Cancel</button></div></div>',i=qa(n);return this.domElement=i,this._domH=mt(".picker_hue",i),this._domSL=mt(".picker_sl",i),this._domA=mt(".picker_alpha",i),this._domEdit=mt(".picker_editor input",i),this._domSample=mt(".picker_sample",i),this._domOkay=mt(".picker_done button",i),this._domCancel=mt(".picker_cancel button",i),i.classList.add("layout_"+this.settings.layout),this.settings.alpha||i.classList.add("no_alpha"),this.settings.editor||i.classList.add("no_editor"),this.settings.cancelButton||i.classList.add("no_cancel"),this._ifPopup(function(){return i.classList.add("popup")}),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var e=this,t=this,n=this.domElement,i=this._events;function o(a,l,d){i.add(a,l,d)}o(n,"click",f
|
|||
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="${jo}">
|
|||
|
|
<path fill="currentColor" d="M17 13h-4v4h-2v-4H7v-2h4V7h2v4h4m-5-9A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2"/>
|
|||
|
|
</svg>
|
|||
|
|
`,ls=`
|
|||
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="${jo}">
|
|||
|
|
<path fill="currentColor" d="M12 20a8 8 0 0 1-8-8a8 8 0 0 1 8-8a8 8 0 0 1 8 8a8 8 0 0 1-8 8m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2" />
|
|||
|
|
</svg>
|
|||
|
|
`,Yn=18,cs=Yn/2;class ds extends lr{constructor(e){super(e)}setHtml(e){const t=document.createElement("div");t.className=`${Wn}-content`,t.dataset.nodeId=this.props.model.id,this.root=t,e.appendChild(t),super.renderVueComponent()}confirmUpdate(e){}getAnchorShape(e){const{x:t,y:n,type:i,allowAdd:o}=e,s=i==="top",c=i==="left",a=typeof o=="boolean"?o:i==="right",l=(()=>{const u=c?"targetAnchorId":"sourceAnchorId";return this.props.graphModel.edges.some(h=>h[u]===e.id)})(),d=a?u=>{u.preventDefault(),u.stopPropagation(),this.props.graphModel.$J.doAction("toggle-add-node-drawer",{event:u,node:this.props.model,anchor:e})}:void 0;return ne("foreignObject",ti(ei({},e),{width:Yn,height:Yn,x:c||s?t-10:t-8,y:n-cs,style:{"pointer-events":a?void 0:"none"}}),[ne("div",{className:[`${Wn}-anchor`,`${c?"left":"right"}`,`${l?"has-edge":""}`,`${a?"has-add":""}`].join(" "),onClick:d,dangerouslySetInnerHTML:{__html:`${ls}${a?Ho:""}`}})])}}function us(r){const e={getActionRender:n.bind(r),getActionShape:t.bind(r)};function t(){if(this.props.model.isDisabled)return ne("g",{});const{startPoint:i,endPoint:o}=this.props.model;return ne("foreignObject",{style:{},x:(i.x+o.x-en)/2+5,y:(i.y+o.y-en)/2+5,width:en,height:en},e.getActionRender())}function n(){const{isSilentMode:i}=this.props.graphModel.editConfigModel,o=i?!1:this.props.model.isHovered;return ne("div",{className:`${Wn}-edge-action ${o?"hover":""}`,onClick:s=>{s.preventDefault(),s.stopPropagation(),this.props.graphModel.deleteEdgeById(this.props.model.id),this.props.graphModel.$J.repaintGraph()},dangerouslySetInnerHTML:{__html:Ho}})}return e}class hs extends cr{constructor(){super(),this.$hook=us(this)}getEdge(){const e=super.getEdge(),t=this.props.model.isHovered,{isSilentMode:n}=this.props.graphModel.editConfigModel;return!n&&t&&(e.props.stroke="#1890ff"),e}getAppendWidth(){const e=this.$hook;return ne("g",{},super.getAppendWidth(),e.getActionShape())}getStartArrow(){return ne("g",{})}getEndArrow(){return ne("g",{})}toFront(){}}class ps extends dr{get isDisabled(){var e,t;return(t=(e=this.properties)==null?void 0:e.disabled)!=null?t:!1}initEdgeData(e){e.id||(e.id=uo()),super.initEdgeData(e)}getData(){return{id:this.id,type:this.type,sourceNodeId:this.sourceNodeId,targetNodeId:this.targetNodeId,sourceAnchorId:this.sourceAnchorId,targetAnchorId:this.targetAnchorId,pointsList:this.pointsList,properties:this.properties}}getEdgeStyle(){const e=super.getEdgeStyle();return e.stroke="#afafaf",e.strokeWidth=2,e}getOutlineStyle(){const e=super.getOutlineStyle();return e.stroke="none",e.hover&&(e.hover.stroke="none"),e}getEdgeAnimationStyle(){var e;const t=super.getEdgeAnimationStyle(),n=(e=this.properties)==null?void 0:e.runStatus;return n==="running"?t.stroke="#67b7ff":n==="success"?t.stroke="#52c41a":n==="fail"&&(t.stroke="#f5222d"),t}}const fs={type:"base-line-edge",view:hs,model:ps};class gs extends ii.view{constructor(e){super(e),this.$super=new ds(e)}getOperateIcon(){return ne("g",{})}get ref(){return this.$super.ref}set ref(e){this.$super.ref=e}get currentProperties(){return this.$super.currentProperties}set currentProperties(e){this.$super.currentProperties=e}get preProperties(){return this.$super.preProperties}set preProperties(e){this.$super.preProperties=e}get rootEl(){return this.$super.rootEl}setHtml(e){this.$super.setHtml.call(this,e)}shouldUpdate(){return this.$super.shouldUpdate.call(this)}componentDidMount(){this.$super.componentDidMount.call(this)}componentDidUpdate(){this.$super.componentDidUpdate.call(this)}componentWillUnmount(){this.$super.componentWillUnmount.call(this)}getShape(){return ne("g",{},[this.getAppendAreaShape(),this.$super.getShape.call(this),this.getOperateIcon()])}confirmUpdate(e){this.$super.confirmUpdate.call(this,e)}getAnchorShape(e){return this.$super.getAnchorShape.call(this,e)}get root(){return this.$super.root}set root(e){this.$super.root=e}get vm(){return this.$super.vm}set vm(e){this.$super.vm=e}getComponentContainer(){return this.$super.getComponentContainer.call(this)}targetId(){return this.$super.targetId.call(this)}renderVueComponent(){this.$super
|