Files
aiot-platform-ui/apps/web-antd/dist/js/Viewer-CVLdohs9.js

10 lines
199 KiB
JavaScript
Raw Normal View History

var wa=Object.defineProperty,xa=Object.defineProperties;var _a=Object.getOwnPropertyDescriptors;var Rr=Object.getOwnPropertySymbols;var ba=Object.prototype.hasOwnProperty,Aa=Object.prototype.propertyIsEnumerable;var Cr=(e,t,n)=>t in e?wa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ie=(e,t)=>{for(var n in t||(t={}))ba.call(t,n)&&Cr(e,n,t[n]);if(Rr)for(var n of Rr(t))Aa.call(t,n)&&Cr(e,n,t[n]);return e},Ee=(e,t)=>xa(e,_a(t));var Pt=(e,t,n)=>new Promise((r,i)=>{var a=c=>{try{l(n.next(c))}catch(p){i(p)}},s=c=>{try{l(n.throw(c))}catch(p){i(p)}},l=c=>c.done?r(c.value):Promise.resolve(c.value).then(a,s);l((n=n.apply(e,t)).next())});function Sa(e,t){return t={exports:{}},e(t,t.exports),t.exports}var Ra=Sa(function(e){var t=e.exports=function(n,r){if(r||(r=16),n===void 0&&(n=128),n<=0)return"0";for(var i=Math.log(Math.pow(2,n))/Math.log(r),a=2;i===1/0;a*=2)i=Math.log(Math.pow(2,n/a))/Math.log(r)*a;for(var s=i-Math.floor(i),l="",a=0;a<Math.floor(i);a++){var c=Math.floor(Math.random()*r).toString(r);l=c+l}if(s){var p=Math.pow(r,s),c=Math.floor(Math.random()*p).toString(r);l=c+l}var d=parseInt(l,r);return d!==1/0&&d>=Math.pow(2,n)?t(n,r):l};t.rack=function(n,r,i){var a=function(l){var c=0;do{if(c++>10)if(i)n+=i;else throw new Error("too many ID collisions, use more bits");var p=t(n,r)}while(Object.hasOwnProperty.call(s,p));return s[p]=l,p},s=a.hats={};return a.get=function(l){return a.hats[l]},a.set=function(l,c){return a.hats[l]=c,a},a.bits=n||128,a.base=r||16,a}});function Je(e){if(!(this instanceof Je))return new Je(e);e=e||[128,36,1],this._seed=e.length?Ra.rack(e[0],e[1],e[2]):e}Je.prototype.next=function(e){return this._seed(e||!0)};Je.prototype.nextPrefixed=function(e,t){var n;do n=e+this.next(!0);while(this.assigned(n));return this.claim(n,t),n};Je.prototype.claim=function(e,t){this._seed.set(e,t||!0)};Je.prototype.assigned=function(e){return this._seed.get(e)||!1};Je.prototype.unclaim=function(e){delete this._seed.hats[e]};Je.prototype.clear=function(){var e=this._seed.hats,t;for(t in e)this.unclaim(t)};function Bc(e){return Array.prototype.concat.apply([],e)}const Gt=Object.prototype.toString,Ca=Object.prototype.hasOwnProperty;function Yt(e){return e===void 0}function Mt(e){return e!==void 0}function li(e){return e==null}function Pe(e){return Gt.call(e)==="[object Array]"}function Ke(e){return Gt.call(e)==="[object Object]"}function Re(e){return Gt.call(e)==="[object Number]"}function Ze(e){const t=Gt.call(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object AsyncGeneratorFunction]"||t==="[object Proxy]"}function qe(e){return Gt.call(e)==="[object String]"}function Pa(e){if(!Pe(e))throw new Error("must supply array")}function _t(e,t){return!li(e)&&Ca.call(e,t)}function $e(e,t){const n=Tn(t);let r;return N(e,function(i,a){if(n(i,a))return r=i,!1}),r}function Ta(e,t){const n=Tn(t);let r=Pe(e)?-1:void 0;return N(e,function(i,a){if(n(i,a))return r=a,!1}),r}function wt(e,t){const n=Tn(t);let r=[];return N(e,function(i,a){n(i,a)&&r.push(i)}),r}function N(e,t){let n,r;if(Yt(e))return;const i=Pe(e)?Na:Oa;for(let a in e)if(_t(e,a)&&(n=e[a],r=t(n,i(a)),r===!1))return n}function Lc(e,t){if(Yt(e))return[];Pa(e);const n=Tn(t);return e.filter(function(r,i){return!n(r,i)})}function Dt(e,t,n){return N(e,function(r,i){n=t(n,r,i)}),n}function er(e,t){return!!Dt(e,function(n,r,i){return n&&t(r,i)},!0)}function tr(e,t){return!!$e(e,t)}function Pn(e,t){let n=[];return N(e,function(r,i){n.push(t(r,i))}),n}function ka(e){return e&&Object.keys(e)||[]}function Ic(e){return ka(e).length}function Fc(e){return Pn(e,t=>t)}function ci(e,t,n={}){return t=nr(t),N(e,function(r){let i=t(r)||"_",a=n[i];a||(a=n[i]=[]),a.push(r)}),n}function Ma(e,...t){e=nr(e);let n={};return N(t,i=>ci(i,e,n)),Pn(n,function(i,a){return i[0]})}const $c=Ma;function Da(e,t){t=nr(t);let n=[];return N(e,function(r,i){let a=t(r,i),s={d:a,v:r};for(var l=0;l<n.length;l++){let{d:c}=n[l];if(a<c){n.splice(l,0,s);return}}n.push(s)}),Pn(n,r=>r.v)}function Pr(e){return function(t){return er(e,function(n,r){retur
line: `+k+`
column: `+P+`
nested error: `+w.message;if(D)return s.addWarning({message:O,error:w}),!0;throw ht(O)}function d(w,S){return p(w,S,!0)}function g(){var w=s.elementsById,S=s.references,D,E;for(D=0;E=S[D];D++){var k=E.element,P=w[E.id],B=Qe(k).propertiesByName[E.property];if(P||s.addWarning({message:"unresolved reference <"+E.id+">",element:E.element,property:E.property,value:E.id}),B.isMany){var O=k.get(B.name),F=O.indexOf(E);F===-1&&(F=O.length),P?O[F]=P:O.splice(F,1)}else k.set(B.name,P)}}function T(){c.pop().handleEnd()}var v=/^<\?xml /i,x=/ encoding="([^"]+)"/i,C=/^utf-8$/i;function I(w){if(v.test(w)){var S=x.exec(w),D=S&&S[1];!D||C.test(D)||s.addWarning({message:"unsupported document encoding <"+D+">, falling back to UTF-8"})}}function H(w,S){var D=c.peek();try{c.push(D.handleNode(w))}catch(E){p(E,S,a)&&c.push(new yr)}}function U(w,S){try{c.peek().handleText(w)}catch(D){d(D,S)}}function _(w,S){w.trim()&&U(w,S)}var y=i.getPackages().reduce(function(w,S){return w[S.uri]=S.prefix,w},{"http://www.w3.org/XML/1998/namespace":"xml"});return l.ns(y).on("openTag",function(w,S,D,E){var k=w.attrs||{},P=Object.keys(k).reduce(function(O,F){var G=S(k[F]);return O[F]=G,O},{}),B={name:w.name,originalName:w.originalName,attributes:P,ns:w.ns};H(B,E)}).on("question",I).on("closeTag",T).on("cdata",U).on("text",function(w,S,D){_(S(w),D)}).on("error",p).on("warn",d),new Promise(function(w,S){var D;try{l.parse(e),g()}catch(O){D=O}var E=r.element;!D&&!E&&(D=ht("failed to parse document as <"+r.type.$descriptor.name+">"));var k=s.warnings,P=s.references,B=s.elementsById;return D?(D.warnings=k,S(D)):w({rootElement:E,elementsById:B,references:P,warnings:k})})};Er.prototype.handler=function(e){return new vr(this.model,e)};function Fs(){var e=[];return Object.defineProperty(e,"peek",{value:function(){return this[this.length-1]}}),e}var $s=`<?xml version="1.0" encoding="UTF-8"?>
`,js=/<|>|'|"|&|\n\r|\n/g,Xi=/<|>|&/g;function Vs(e){var t={},n={},r={},i=[],a=[];this.byUri=function(s){return n[s]||e&&e.byUri(s)},this.add=function(s,l){n[s.uri]=s,l?i.push(s):a.push(s),this.mapPrefix(s.prefix,s.uri)},this.uriByPrefix=function(s){return t[s||"xmlns"]},this.mapPrefix=function(s,l){t[s||"xmlns"]=l},this.getNSKey=function(s){return s.prefix!==void 0?s.uri+"|"+s.prefix:s.uri},this.logUsed=function(s){var l=s.uri,c=this.getNSKey(s);r[c]=this.byUri(l),e&&e.logUsed(s)},this.getUsed=function(s){function l(d){var g=c.getNSKey(d);return r[g]}var c=this,p=[].concat(i,a);return p.filter(l)}}function Ws(e){return e.charAt(0).toLowerCase()+e.slice(1)}function Hs(e,t){return Yi(t)?Ws(e):e}function Zi(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function Qi(e){return qe(e)?e:(e.prefix?e.prefix+":":"")+e.localName}function zs(e){return e.getUsed().filter(function(t){return t.prefix!=="xml"}).map(function(t){var n="xmlns"+(t.prefix?":"+t.prefix:"");return{name:n,value:t.uri}})}function Us(e,t){return t.isGeneric?V({localName:t.ns.localName},e):V({localName:Hs(t.ns.localName,t.$pkg)},e)}function Ys(e,t){return V({localName:t.ns.localName},e)}function Ks(e){var t=e.$descriptor;return wt(t.properties,function(n){var r=n.name;if(n.isVirtual||!_t(e,r))return!1;var i=e[r];return i===n.default||i===null?!1:n.isMany?i.length:!0})}var qs={"\n":"#10","\n\r":"#10",'"':"#34","'":"#39","<":"#60",">":"#62","&":"#38"},Gs={"<":"lt",">":"gt","&":"amp"};function Ji(e,t,n){return e=qe(e)?e:""+e,e.replace(t,function(r){return"&"+n[r]+";"})}function Xs(e){return Ji(e,js,qs)}function Zs(e){return Ji(e,Xi,Gs)}function Qs(e){return wt(e,function(t){return t.isAttr})}function Js(e){return wt(e,function(t){return!t.isAttr})}function wr(e){this.tagName=e}wr.prototype.build=function(e){return this.element=e,this};wr.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"+this.element.id+"</"+this.tagName+">").appendNewLine()};function xt(){}xt.prototype.serializeValue=xt.prototype.serializeTo=function(e){e.append(this.escape?Zs(this.value):this.value)};xt.prototype.build=function(e,t){return this.value=t,e.type==="String"&&t.search(Xi)!==-1&&(this.escape=!0),this};function xr(e){this.tagName=e}Zi(xr,xt);xr.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"),this.serializeValue(e),e.append("</"+this.tagName+">").appendNewLine()};function se(e,t){this.body=[],this.attrs=[],this.parent=e,this.propertyDescriptor=t}se.prototype.build=function(e){this.element=e;var t=e.$descriptor,n=this.propertyDescriptor,r,i,a=t.isGeneric;return a?r=this.parseGeneric(e):r=this.parseNsAttributes(e),n?this.ns=this.nsPropertyTagName(n):this.ns=this.nsTagName(t),this.tagName=this.addTagName(this.ns),a||(i=Ks(e),this.parseAttributes(Qs(i)),this.parseContainments(Js(i))),this.parseGenericAttributes(e,r),this};se.prototype.nsTagName=function(e){var t=this.logNamespaceUsed(e.ns);return Us(t,e)};se.prototype.nsPropertyTagName=function(e){var t=this.logNamespaceUsed(e.ns);return Ys(t,e)};se.prototype.isLocalNs=function(e){return e.uri===this.ns.uri};se.prototype.nsAttributeName=function(e){var t;if(qe(e)?t=ge(e):t=e.ns,e.inherited)return{localName:t.localName};var n=this.logNamespaceUsed(t);return this.getNamespaces().logUsed(n),this.isLocalNs(n)?{localName:t.localName}:V({localName:t.localName},n)};se.prototype.parseGeneric=function(e){var t=this,n=this.body,r=[];return N(e,function(i,a){var s;a==="$body"?n.push(new xt().build({type:"String"},i)):a==="$children"?N(i,function(l){n.push(new se(t).build(l))}):a.indexOf("$")!==0&&(s=t.parseNsAttribute(e,a,i),s&&r.push({name:a,value:i}))}),r};se.prototype.parseNsAttribute=function(e,t,n){var r=e.$model,i=ge(t),a;if(i.prefix==="xmlns"&&(a={prefix:i.localName,uri:n}),!i.prefix&&i.localName==="xmlns"&&(a={uri:n}),!a)return{name:t,value:n};if(r&&r.getPackage(n))this.logNamespace(a,!0,!0);else{var s=this.logNamespaceUsed(a,!0);this.getNamespaces().logUsed(s)}};se.prototype.parseNsAttributes=function(e,t){var n
`),this},this.appendIndent=function(){return t&&e.write(n.join(" ")),this},this.indent=function(){return n.push(""),this},this.unindent=function(){return n.pop(),this}}function nu(e){e=V({format:!1,preamble:!0},e||{});function t(n,r){var i=r||new eu,a=new tu(i,e.format);if(e.preamble&&a.append($s),new se().build(n).serializeTo(a),!r)return i.value}return{toXML:t}}function Nn(e,t){Ve.call(this,e,t)}Nn.prototype=Object.create(Ve.prototype);Nn.prototype.fromXML=function(e,t,n){qe(t)||(n=t,t="bpmn:Definitions");var r=new Er(V({model:this,lax:!0},n)),i=r.handler(t);return r.fromXML(e,i)};Nn.prototype.toXML=function(e,t){var n=new nu(t);return new Promise(function(r,i){try{var a=n.toXML(e);return r({xml:a})}catch(s){return i(s)}})};var ru="BPMN20",iu="http://www.omg.org/spec/BPMN/20100524/MODEL",au="bpmn",ou=[],su=[{name:"Interface",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"operations",type:"Operation",isMany:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"Operation",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"inMessageRef",type:"Message",isReference:!0},{name:"outMessageRef",type:"Message",isReference:!0},{name:"errorRef",type:"Error",isMany:!0,isReference:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"EndPoint",superClass:["RootElement"]},{name:"Auditing",superClass:["BaseElement"]},{name:"GlobalTask",superClass:["CallableElement"],properties:[{name:"resources",type:"ResourceRole",isMany:!0}]},{name:"Monitoring",superClass:["BaseElement"]},{name:"Performer",superClass:["ResourceRole"]},{name:"Process",superClass:["FlowElementsContainer","CallableElement"],properties:[{name:"processType",type:"ProcessType",isAttr:!0},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"properties",type:"Property",isMany:!0},{name:"laneSets",isMany:!0,replaces:"FlowElementsContainer#laneSets",type:"LaneSet"},{name:"flowElements",isMany:!0,replaces:"FlowElementsContainer#flowElements",type:"FlowElement"},{name:"artifacts",type:"Artifact",isMany:!0},{name:"resources",type:"ResourceRole",isMany:!0},{name:"correlationSubscriptions",type:"CorrelationSubscription",isMany:!0},{name:"supports",type:"Process",isMany:!0,isReference:!0},{name:"definitionalCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"isExecutable",isAttr:!0,type:"Boolean"}]},{name:"LaneSet",superClass:["BaseElement"],properties:[{name:"lanes",type:"Lane",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Lane",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"partitionElementRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"partitionElement",type:"BaseElement"},{name:"flowNodeRef",type:"FlowNode",isMany:!0,isReference:!0},{name:"childLaneSet",type:"LaneSet",xml:{serialize:"xsi:type"}}]},{name:"GlobalManualTask",superClass:["GlobalTask"]},{name:"ManualTask",superClass:["Task"]},{name:"UserTask",superClass:["Task"],properties:[{name:"renderings",type:"Rendering",isMany:!0},{name:"implementation",isAttr:!0,type:"String"}]},{name:"Rendering",superClass:["BaseElement"]},{name:"HumanPerformer",superClass:["Performer"]},{name:"PotentialOwner",superClass:["HumanPerformer"]},{name:"GlobalUserTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"renderings",type:"Rendering",isMany:!0}]},{name:"Gateway",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"gatewayDirection",type:"GatewayDirection",default:"Unspecified",isAttr:!0}]},{name:"EventBasedGateway",superClass:["Gateway"],properties:[{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"eventGatewayType",type:"EventBasedGatewayType",isAttr:!0,default:"Exclusive"}]},{name:"ComplexGateway",superClass:["Gateway"],properties:[{name:"activationCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ExclusiveGateway",superClass:["Gateway"],properties:[{name:"defau
<!-- created with bpmn-js / http://bpmn.io -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="`+c.width+'" height="'+c.height+'" viewBox="'+c.x+" "+c.y+" "+c.width+" "+c.height+'" version="1.1">'+l+s+"</svg>"}catch(r){n=r}if(this._emit("saveSVG.done",{error:n,svg:t}),n)throw n;return{svg:t}})};fe.prototype._setDefinitions=function(e){this._definitions=e};fe.prototype.getModules=function(){return this._modules};fe.prototype.clear=function(){this.getDefinitions()&&mt.prototype.clear.call(this)};fe.prototype.destroy=function(){mt.prototype.destroy.call(this),xn(this._container)};fe.prototype.on=function(e,t,n,r){return this.get("eventBus").on(e,t,n,r)};fe.prototype.off=function(e,t){this.get("eventBus").off(e,t)};fe.prototype.attachTo=function(e){if(!e)throw new Error("parentNode required");this.detach(),e.get&&e.constructor.prototype.jquery&&(e=e.get(0)),typeof e=="string"&&(e=We(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()};fe.prototype.getDefinitions=function(){return this._definitions};fe.prototype.detach=function(){const e=this._container,t=e.parentNode;t&&(this._emit("detach",{}),t.removeChild(e))};fe.prototype._init=function(e,t,n){const r=n.modules||this.getModules(n),i=n.additionalModules||[],a=[{bpmnjs:["value",this],moddle:["value",t]}],s=[].concat(a,r,i),l=V(Fa(n,["additionalModules"]),{canvas:V({},n.canvas,{container:e}),modules:s});mt.call(this,l),n&&n.container&&this.attachTo(n.container)};fe.prototype._emit=function(e,t){return this.get("eventBus").fire(e,t)};fe.prototype._createContainer=function(e){const t=Ge('<div class="bjs-container"></div>');return Ce(t,{width:Qr(e.width),height:Qr(e.height),position:e.position}),t};fe.prototype._createModdle=function(e){const t=V({},this._moddleExtensions,e.moddleExtensions);return new Yu(t)};fe.prototype._modules=[];function mn(e,t){return e.warnings=t,e}function sl(e){const n=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec(e.message);return n&&(e.message="unparsable content <"+n[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+n[2]),e}const ul={width:"100%",height:"100%",position:"relative"};function Qr(e){return e+(Re(e)?"px":"")}function ll(e,t){return t&&$e(e.diagrams,function(n){return n.id===t})||null}function cl(e){const n='<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" >'+ta+"</a>",r=Ge(n);Ce(We("svg",r),na),Ce(r,ra,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),e.appendChild(r),ar.bind(r,"click",function(i){ol(),i.preventDefault()})}function Et(e,t){return $(e,"bpmn:CallActivity")?!1:$(e,"bpmn:SubProcess")?(t=t||lt(e),t&&$(t,"bpmndi:BPMNPlane")?!0:t&&!!t.isExpanded):$(e,"bpmn:Participant")?!!oe(e).processRef:!0}function Jr(e){if(!(!$(e,"bpmn:Participant")&&!$(e,"bpmn:Lane"))){var t=lt(e).isHorizontal;return t===void 0?!0:t}}function af(e){return e&&oe(e).isInterrupting!==!1}function fl(e){return e&&!!oe(e).triggeredByEvent}function _r(e,t){var n=oe(e).eventDefinitions;return tr(n,function(r){return $(r,t)})}function of(e){return _r(e,"bpmn:ErrorEventDefinition")}function sf(e){return _r(e,"bpmn:EscalationEventDefinition")}function uf(e){return _r(e,"bpmn:CompensateEventDefinition")}var Rn={width:90,height:20},ei=15;function pl(e){return $(e,"bpmn:Event")||$(e,"bpmn:Gateway")||$(e,"bpmn:DataStoreReference")||$(e,"bpmn:DataObjectReference")||$(e,"bpmn:DataInput")||$(e,"bpmn:DataOutput")||$(e,"bpmn:SequenceFlow")||$(e,"bpmn:MessageFlow")||$(e,"bpmn:Group")}function lf(e){return pr(e.label)}function hl(e){var t=e.length/2-1,n=e[Math.floor(t)],r=e[Math.ceil(t+.01)],i=dl(e),a=Math.atan((r.y-n.y)/(r.x-n.x)),s=i.x,l=i.y;return Math.abs(a)<Math.PI/2?l-=ei:s+=ei,{x:s,y:l}}function dl(e){var t=e.length/2-1,n=e[Math.floor(t)],r=e[Math.ceil(t+.01)];return{x:n.x+(r.x-n.x)/2,y:n.y+(r.y-n.y)/2}}function ml(e){return e.waypoints?hl(e.waypoints):$(e,"bpmn:Group")?{x:e.x+e.width/2,y:e.y+Rn.height/2}:{x:e.x+e.width/2,y:e.y+e.height+Rn.height/2}}function yl(e,t){var n,r,i,a=e.label;return a&&a.bounds?(i=a.bounds,r={width:Math.max(Rn.width,i.width),height: